react-bootstrap.min.js 111 KB
Newer Older
1 2
/*! For license information please see react-bootstrap.min.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(self,(function(e,t){return(()=>{var n={814:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)&&n.length){var i=o.apply(null,n);i&&e.push(i)}else if("object"===a)for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},286:e=>{"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];function r(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=null;return t.forEach((function(e){if(null==o){var t=e.apply(void 0,n);null!=t&&(o=t)}})),o}return(0,o.default)(r)};var r,o=(r=n(844))&&r.__esModule?r:{default:r};e.exports=t.default},422:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r,o,a){var i=r||"<<anonymous>>",s=a||n;if(null==t[n])return new Error("The "+o+" `"+s+"` is required to make `"+i+"` accessible for users of assistive technologies such as screen readers.");for(var l=arguments.length,c=Array(l>5?l-5:0),u=5;u<l;u++)c[u-5]=arguments[u];return e.apply(void 0,[t,n,r,o,a].concat(c))}},e.exports=t.default},844:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t,n,r,o,a,i){var s=o||"<<anonymous>>",l=i||r;if(null==n[r])return t?new Error("Required "+a+" `"+l+"` was not specified in `"+s+"`."):null;for(var c=arguments.length,u=Array(c>6?c-6:0),d=6;d<c;d++)u[d-6]=arguments[d];return e.apply(void 0,[n,r,s,a,l].concat(u))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n},e.exports=t.default},428:(e,t,n)=>{"use strict";var r=n(134);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array: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:a,resetWarningCache:o};return n.PropTypes=n,n}},526:(e,t,n)=>{e.exports=n(428)()},134:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},459:e=>{"use strict";e.exports=function(){}},698:t=>{"use strict";t.exports=e},207:e=>{"use strict";e.exports=t}},r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={exports:{}};return n[e](t,t.exports,o),t.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";function e(){return(e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function t(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}o.r(a),o.d(a,{Accordion:()=>pe,AccordionCollapse:()=>de,AccordionContext:()=>E,AccordionToggle:()=>N,Alert:()=>Fe,Badge:()=>Ae,Breadcrumb:()=>He,BreadcrumbItem:()=>Be,Button:()=>ze,ButtonGroup:()=>qe,ButtonToolbar:()=>We,Card:()=>lt,CardColumns:()=>ct,CardDeck:()=>ut,CardGroup:()=>dt,CardImg:()=>Ye,Carousel:()=>Ot,CarouselItem:()=>yt,CloseButton:()=>we,Col:()=>Tt,Collapse:()=>ce,Container:()=>ho,Dropdown:()=>Ar,DropdownButton:()=>Kr,Fade:()=>ye,Figure:()=>Po,Form:()=>vo,FormCheck:()=>$r,FormControl:()=>ro,FormFile:()=>to,FormGroup:()=>ao,FormLabel:()=>so,FormText:()=>co,Image:()=>xo,InputGroup:()=>So,Jumbotron:()=>Io,ListGroup:()=>_o,ListGroupItem:()=>Ko,Media:()=>qo,Modal:()=>Oa,ModalBody:()=>pa,ModalDialog:()=>ba,ModalFooter:()=>ha,ModalTitle:()=>xa,Nav:()=>Da,NavDropdown:()=>qa,NavItem:()=>Ra,NavLink:()=>Ma,Navbar:()=>za,NavbarBrand:()=>La,Overlay:()=>$a,OverlayTrigger:()=>Qa,PageItem:()=>ti,Pagination:()=>ci,Popover:()=>pi,PopoverContent:()=>di,PopoverTitle:()=>ui,ProgressBar:()=>hi,ResponsiveEmbed:()=>yi,Row:()=>wi,SafeAnchor:()=>Re,Spinner:()=>Ci,SplitButton:()=>ki,Tab:()=>Di,TabContainer:()=>Ri,TabContent:()=>Ti,TabPane:()=>Mi,Table:()=>Fi,Tabs:()=>ji,ThemeProvider:()=>h,Toast:()=>Vi,ToastBody:()=>_i,ToastHeader:()=>Hi,ToggleButton:()=>Wi,ToggleButtonGroup:()=>Xi,Tooltip:()=>Yi,useAccordionToggle:()=>w});var n=o(814),r=o.n(n),i=o(698),s=o.n(i),l=o(286),c=o.n(l);function u(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function d(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t,n){var r=(0,i.useRef)(void 0!==e),o=(0,i.useState)(t),a=o[0],s=o[1],l=void 0!==e,c=r.current;return r.current=l,!l&&c&&a!==t&&s(t),[l?e:a,(0,i.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];n&&n.apply(void 0,[e].concat(r)),s(e)}),[n])]}function p(n,r){return Object.keys(r).reduce((function(o,a){var i,s=o,l=s[u(a)],c=s[a],p=t(s,[u(a),a].map(d)),m=r[a],v=f(c,l,n[m]),b=v[0],h=v[1];return e({},p,((i={})[a]=b,i[m]=h,i))}),n)}var m=s().createContext({}),v=(m.Consumer,m.Provider);function b(e,t){var n=(0,i.useContext)(m);return e||n[t]||t}const h=function(t){var n=t.prefixes,r=t.children,o=(0,i.useMemo)((function(){return e({},n)}),[n]);return s().createElement(v,{value:o},r)};var g=function(e,t){return void 0===t&&(t=null),null!=e?String(e):t||null};const y=s().createContext(null);var x=s().createContext(null);x.displayName="AccordionContext";const E=x;function w(e,t){var n=(0,i.useContext)(E),r=(0,i.useContext)(y);return function(o){r&&r(e===n?null:e,o),t&&t(o)}}const N=s().forwardRef((function(n,r){var o=n.as,a=void 0===o?"button":o,i=n.children,l=n.eventKey,c=n.onClick,u=t(n,["as","children","eventKey","onClick"]),d=w(l,c);return"button"===a&&(u.type="button"),s().createElement(a,e({ref:r,onClick:d},u),i)}));function C(e){return e&&e.ownerDocument||document}var P=/([A-Z])/g,O=/^ms-/;function k(e){return function(e){return e.replace(P,"-$1").toLowerCase()}(e).replace(O,"-ms-")}var R=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const T=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(k(t))||function(e,t){return function(e){var t=C(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}(e).getPropertyValue(k(t));Object.keys(t).forEach((function(o){var a=t[o];a||0===a?function(e){return!(!e||!R.test(e))}(o)?r+=o+"("+a+") ":n+=k(o)+": "+a+";":e.style.removeProperty(k(o))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,S(e,t)}var I=o(526),D=o.n(I),F=o(207),L=o.n(F);const A=s().createContext(null);var j="unmounted",B="exited",K="entering",H="entered",_="exiting",z=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=B,r.appearStatus=K):o=H:o=t.unmountOnExit||t.mountOnEnter?j:B,r.state={status:o},r.nextCallback=null,r}M(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===j?{status:B}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==K&&n!==H&&(t=K):n!==K&&n!==H||(t=_)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===K?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===B&&this.setState({status:j})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[L().findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:K},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:H},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:H},(function(){t.props.onEntered(a)}))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:L().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:_},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:B},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:B},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:L().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===j)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,t(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s().createElement(A.Provider,{value:null},"function"==typeof r?r(e,o):s().cloneElement(s().Children.only(r),o))},n}(s().Component);function V(){}z.contextType=A,z.propTypes={},z.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:V,onEntering:V,onEntered:V,onExit:V,onExiting:V,onExited:V},z.UNMOUNTED=j,z.EXITED=B,z.ENTERING=K,z.ENTERED=H,z.EXITING=_;const q=z,U=!("undefined"==typeof window||!window.document||!window.document.createElement);var W=!1,G=!1;try{var X={get passive(){return W=!0},get once(){return G=W=!0}};U&&(window.addEventListener("test",X,X),window.removeEventListener("test",X,!0))}catch(e){}const $=function(e,t,n,r){if(r&&"boolean"!=typeof r&&!G){var o=r.once,a=r.capture,i=n;!G&&o&&(i=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=i),e.addEventListener(t,i,W?r:a)}e.addEventListener(t,n,r)},Y=function(e,t,n,r){var o=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,o),n.__once&&e.removeEventListener(t,n.__once,o)},J=function(e,t,n,r){return $(e,t,n,r),function(){Y(e,t,n,r)}};function Z(e,t,n,r){var o,a;null==n&&(a=-1===(o=T(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(o)*a||0);var i=function(e,t,n){void 0===n&&(n=5);var r=!1,o=setTimeout((function(){r||function(e){var t=document.createEvent("HTMLEvents");t.initEvent("transitionend",!0,!0),e.dispatchEvent(t)}(e)}),t+n),a=J(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(o),a()}}(e,n,r),s=J(e,"transitionend",t);return function(){i(),s()}}function Q(e,t){var n=T(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ee(e,t){var n=Q(e,"transitionDuration"),r=Q(e,"transitionDelay"),o=Z(e,(function(n){n.target===e&&(o(),t(n))}),n+r)}const te=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!=typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),null)};function ne(e){e.offsetHeight}var re,oe={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function ae(e,t){var n=t["offset"+e[0].toUpperCase()+e.slice(1)],r=oe[e];return n+parseInt(T(t,r[0]),10)+parseInt(T(t,r[1]),10)}var ie=((re={}).exited="collapse",re.exiting="collapsing",re.entering="collapsing",re.entered="collapse show",re),se={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,getDimensionValue:ae},le=s().forwardRef((function(n,o){var a=n.onEnter,l=n.onEntering,c=n.onEntered,u=n.onExit,d=n.onExiting,f=n.className,p=n.children,m=n.dimension,v=void 0===m?"height":m,b=n.getDimensionValue,h=void 0===b?ae:b,g=t(n,["onEnter","onEntering","onEntered","onExit","onExiting","className","children","dimension","getDimensionValue"]),y="function"==typeof v?v():v,x=(0,i.useMemo)((function(){return te((function(e){e.style[y]="0"}),a)}),[y,a]),E=(0,i.useMemo)((function(){return te((function(e){var t="scroll"+y[0].toUpperCase()+y.slice(1);e.style[y]=e[t]+"px"}),l)}),[y,l]),w=(0,i.useMemo)((function(){return te((function(e){e.style[y]=null}),c)}),[y,c]),N=(0,i.useMemo)((function(){return te((function(e){e.style[y]=h(y,e)+"px",ne(e)}),u)}),[u,h,y]),C=(0,i.useMemo)((function(){return te((function(e){e.style[y]=null}),d)}),[y,d]);return s().createElement(q,e({ref:o,addEndListener:ee},g,{"aria-expanded":g.role?g.in:null,onEnter:x,onEntering:E,onEntered:w,onExit:N,onExiting:C}),(function(t,n){return s().cloneElement(p,e({},n,{className:r()(f,p.props.className,ie[t],"width"===y&&"width")}))}))}));le.defaultProps=se;const ce=le;var ue=s().forwardRef((function(n,r){var o=n.children,a=n.eventKey,l=t(n,["children","eventKey"]),c=(0,i.useContext)(E);return s().createElement(y.Provider,{value:null},s().createElement(ce,e({ref:r,in:c===a},l),s().createElement("div",null,s().Children.only(o))))}));ue.displayName="AccordionCollapse";const de=ue;var fe=s().forwardRef((function(n,o){var a=p(n,{activeKey:"onSelect"}),i=a.as,l=void 0===i?"div":i,c=a.activeKey,u=a.bsPrefix,d=a.children,f=a.className,m=a.onSelect,v=t(a,["as","activeKey","bsPrefix","children","className","onSelect"]),h=r()(f,b(u,"accordion"));return s().createElement(E.Provider,{value:c||null},s().createElement(y.Provider,{value:m||null},s().createElement(l,e({ref:o},v,{className:h}),d)))}));fe.displayName="Accordion",fe.Toggle=N,fe.Collapse=de;const pe=fe,me=function(e){var t=(0,i.useRef)(e);return(0,i.useEffect)((function(){t.current=e}),[e]),t};function ve(e){var t=me(e);return(0,i.useCallback)((function(){return t.current&&t.current.apply(t,arguments)}),[t])}var be,he=((be={}).entering="show",be.entered="show",be),ge=s().forwardRef((function(n,o){var a=n.className,l=n.children,c=t(n,["className","children"]),u=(0,i.useCallback)((function(e){ne(e),c.onEnter&&c.onEnter(e)}),[c]);return s().createElement(q,e({ref:o,addEndListener:ee},c,{onEnter:u}),(function(t,n){return s().cloneElement(l,e({},n,{className:r()("fade",a,l.props.className,he[t])}))}))}));ge.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},ge.displayName="Fade";const ye=ge;var xe={label:D().string.isRequired,onClick:D().func},Ee=s().forwardRef((function(n,o){var a=n.label,i=n.onClick,l=n.className,c=t(n,["label","onClick","className"]);return s().createElement("button",e({ref:o,type:"button",className:r()("close",l),onClick:i},c),s().createElement("span",{"aria-hidden":"true"},"×"),s().createElement("span",{className:"sr-only"},a))}));Ee.displayName="CloseButton",Ee.propTypes=xe,Ee.defaultProps={label:"Close"};const we=Ee,Ne=function(t){return s().forwardRef((function(n,o){return s().createElement("div",e({},n,{ref:o,className:r()(n.className,t)}))}))};var Ce=/-(.)/g;function Pe(n,o){var a,i,l=void 0===o?{}:o,c=l.displayName,u=void 0===c?(a=n)[0].toUpperCase()+(i=a,i.replace(Ce,(function(e,t){return t.toUpperCase()}))).slice(1):c,d=l.Component,f=l.defaultProps,p=s().forwardRef((function(o,a){var i=o.className,l=o.bsPrefix,c=o.as,u=void 0===c?d||"div":c,f=t(o,["className","bsPrefix","as"]),p=b(l,n);return s().createElement(u,e({ref:a,className:r()(i,p)},f))}));return p.defaultProps=f,p.displayName=u,p}function Oe(e){return!e||"#"===e.trim()}var ke=s().forwardRef((function(n,r){var o=n.as,a=void 0===o?"a":o,i=n.disabled,l=n.onKeyDown,c=t(n,["as","disabled","onKeyDown"]),u=function(e){var t=c.href,n=c.onClick;(i||Oe(t))&&e.preventDefault(),i?e.stopPropagation():n&&n(e)};return Oe(c.href)&&(c.role=c.role||"button",c.href=c.href||"#"),i&&(c.tabIndex=-1,c["aria-disabled"]=!0),s().createElement(a,e({ref:r},c,{onClick:u,onKeyDown:te((function(e){" "===e.key&&(e.preventDefault(),u(e))}),l)}))}));ke.displayName="SafeAnchor";const Re=ke;var Te=Ne("h4");Te.displayName="DivStyledAsH4";var Se=Pe("alert-heading",{Component:Te}),Me=Pe("alert-link",{Component:Re}),Ie={show:!0,transition:ye,closeLabel:"Close alert"},De=s().forwardRef((function(n,o){var a=p(n,{show:"onClose"}),i=a.bsPrefix,l=a.show,c=a.closeLabel,u=a.className,d=a.children,f=a.variant,m=a.onClose,v=a.dismissible,h=a.transition,g=t(a,["bsPrefix","show","closeLabel","className","children","variant","onClose","dismissible","transition"]),y=b(i,"alert"),x=ve((function(e){m&&m(!1,e)})),E=!0===h?ye:h,w=s().createElement("div",e({role:"alert"},E?void 0:g,{ref:o,className:r()(u,y,f&&y+"-"+f,v&&y+"-dismissible")}),v&&s().createElement(we,{onClick:x,label:c}),d);return E?s().createElement(E,e({unmountOnExit:!0},g,{ref:void 0,in:l}),w):l?w:null}));De.displayName="Alert",De.defaultProps=Ie,De.Link=Me,De.Heading=Se;const Fe=De;var Le=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.variant,l=n.pill,c=n.className,u=n.as,d=void 0===u?"span":u,f=t(n,["bsPrefix","variant","pill","className","as"]),p=b(a,"badge");return s().createElement(d,e({ref:o},f,{className:r()(c,p,l&&p+"-pill",i&&p+"-"+i)}))}));Le.displayName="Badge",Le.defaultProps={pill:!1};const Ae=Le;var je=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.active,l=n.children,c=n.className,u=n.as,d=void 0===u?"li":u,f=n.linkAs,p=void 0===f?Re:f,m=n.linkProps,v=n.href,h=n.title,g=n.target,y=t(n,["bsPrefix","active","children","className","as","linkAs","linkProps","href","title","target"]),x=b(a,"breadcrumb-item");return s().createElement(d,e({ref:o},y,{className:r()(x,c,{active:i}),"aria-current":i?"page":void 0}),i?l:s().createElement(p,e({},m,{href:v,title:h,target:g}),l))}));je.displayName="BreadcrumbItem",je.defaultProps={active:!1,linkProps:{}};const Be=je;var Ke=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.listProps,c=n.children,u=n.label,d=n.as,f=void 0===d?"nav":d,p=t(n,["bsPrefix","className","listProps","children","label","as"]),m=b(a,"breadcrumb");return s().createElement(f,e({"aria-label":u,className:i,ref:o},p),s().createElement("ol",e({},l,{className:r()(m,null==l?void 0:l.className)}),c))}));Ke.displayName="Breadcrumb",Ke.defaultProps={label:"breadcrumb",listProps:{}},Ke.Item=Be;const He=Ke;var _e=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.variant,l=n.size,c=n.active,u=n.className,d=n.block,f=n.type,p=n.as,m=t(n,["bsPrefix","variant","size","active","className","block","type","as"]),v=b(a,"btn"),h=r()(u,v,c&&"active",i&&v+"-"+i,d&&v+"-block",l&&v+"-"+l);if(m.href)return s().createElement(Re,e({},m,{as:p,ref:o,className:r()(h,m.disabled&&"disabled")}));o&&(m.ref=o),f?m.type=f:p||(m.type="button");var g=p||"button";return s().createElement(g,e({},m,{className:h}))}));_e.displayName="Button",_e.defaultProps={variant:"primary",active:!1,disabled:!1};const ze=_e;var Ve=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.size,l=n.toggle,c=n.vertical,u=n.className,d=n.as,f=void 0===d?"div":d,p=t(n,["bsPrefix","size","toggle","vertical","className","as"]),m=b(a,"btn-group"),v=m;return c&&(v=m+"-vertical"),s().createElement(f,e({},p,{ref:o,className:r()(u,v,i&&m+"-"+i,l&&m+"-toggle")}))}));Ve.displayName="ButtonGroup",Ve.defaultProps={vertical:!1,toggle:!1,role:"group"};const qe=Ve;var Ue=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=t(n,["bsPrefix","className"]),c=b(a,"btn-toolbar");return s().createElement("div",e({},l,{ref:o,className:r()(i,c)}))}));Ue.displayName="ButtonToolbar",Ue.defaultProps={role:"toolbar"};const We=Ue;var Ge=s().createContext(null);Ge.displayName="CardContext";const Xe=Ge;var $e=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.variant,c=n.as,u=void 0===c?"img":c,d=t(n,["bsPrefix","className","variant","as"]),f=b(a,"card-img");return s().createElement(u,e({ref:o,className:r()(l?f+"-"+l:f,i)},d))}));$e.displayName="CardImg",$e.defaultProps={variant:null};const Ye=$e;var Je=Ne("h5"),Ze=Ne("h6"),Qe=Pe("card-body"),et=Pe("card-title",{Component:Je}),tt=Pe("card-subtitle",{Component:Ze}),nt=Pe("card-link",{Component:"a"}),rt=Pe("card-text",{Component:"p"}),ot=Pe("card-header"),at=Pe("card-footer"),it=Pe("card-img-overlay"),st=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.bg,u=n.text,d=n.border,f=n.body,p=n.children,m=n.as,v=void 0===m?"div":m,h=t(n,["bsPrefix","className","bg","text","border","body","children","as"]),g=b(a,"card"),y=(0,i.useMemo)((function(){return{cardHeaderBsPrefix:g+"-header"}}),[g]);return s().createElement(Xe.Provider,{value:y},s().createElement(v,e({ref:o},h,{className:r()(l,g,c&&"bg-"+c,u&&"text-"+u,d&&"border-"+d)}),f?s().createElement(Qe,null,p):p))}));st.displayName="Card",st.defaultProps={body:!1},st.Img=Ye,st.Title=et,st.Subtitle=tt,st.Body=Qe,st.Link=nt,st.Text=rt,st.Header=ot,st.Footer=at,st.ImgOverlay=it;const lt=st,ct=Pe("card-columns"),ut=Pe("card-deck"),dt=Pe("card-group");function ft(){var e=(0,i.useRef)(!0),t=(0,i.useRef)((function(){return e.current}));return(0,i.useEffect)((function(){return function(){e.current=!1}}),[]),t.current}function pt(e){var t,n,r=(t=e,(n=(0,i.useRef)(t)).current=t,n);(0,i.useEffect)((function(){return function(){return r.current()}}),[])}var mt=Math.pow(2,31)-1;function vt(e,t,n){var r=n-Date.now();e.current=r<=mt?setTimeout(t,r):setTimeout((function(){return vt(e,t,n)}),mt)}function bt(){var e=ft(),t=(0,i.useRef)();return pt((function(){return clearTimeout(t.current)})),(0,i.useMemo)((function(){var n=function(){return clearTimeout(t.current)};return{set:function(r,o){void 0===o&&(o=0),e()&&(n(),o<=mt?t.current=setTimeout(r,o):vt(t,r,Date.now()+o))},clear:n}}),[])}const ht=Pe("carousel-caption");var gt=s().forwardRef((function(n,o){var a=n.as,i=void 0===a?"div":a,l=n.bsPrefix,c=n.children,u=n.className,d=t(n,["as","bsPrefix","children","className"]),f=r()(u,b(l,"carousel-item"));return s().createElement(i,e({ref:o},d,{className:f}),c)}));gt.displayName="CarouselItem";const yt=gt;function xt(e,t){var n=0;return s().Children.map(e,(function(e){return s().isValidElement(e)?t(e,n++):e}))}function Et(e,t){var n=0;s().Children.forEach(e,(function(e){s().isValidElement(e)&&t(e,n++)}))}var wt={bsPrefix:D().string,as:D().elementType,slide:D().bool,fade:D().bool,controls:D().bool,indicators:D().bool,activeIndex:D().number,onSelect:D().func,onSlide:D().func,onSlid:D().func,interval:D().number,keyboard:D().bool,pause:D().oneOf(["hover",!1]),wrap:D().bool,touch:D().bool,prevIcon:D().node,prevLabel:D().string,nextIcon:D().node,nextLabel:D().string},Nt={slide:!0,fade:!1,controls:!0,indicators:!0,defaultActiveIndex:0,interval:5e3,keyboard:!0,pause:"hover",wrap:!0,touch:!0,prevIcon:s().createElement("span",{"aria-hidden":"true",className:"carousel-control-prev-icon"}),prevLabel:"Previous",nextIcon:s().createElement("span",{"aria-hidden":"true",className:"carousel-control-next-icon"}),nextLabel:"Next"};function Ct(n,o){var a=p(n,{activeIndex:"onSelect"}),l=a.as,c=void 0===l?"div":l,u=a.bsPrefix,d=a.slide,f=a.fade,m=a.controls,v=a.indicators,h=a.activeIndex,g=a.onSelect,y=a.onSlide,x=a.onSlid,E=a.interval,w=a.keyboard,N=a.onKeyDown,C=a.pause,P=a.onMouseOver,O=a.onMouseOut,k=a.wrap,R=a.touch,T=a.onTouchStart,S=a.onTouchMove,M=a.onTouchEnd,I=a.prevIcon,D=a.prevLabel,F=a.nextIcon,L=a.nextLabel,A=a.className,j=a.children,B=t(a,["as","bsPrefix","slide","fade","controls","indicators","activeIndex","onSelect","onSlide","onSlid","interval","keyboard","onKeyDown","pause","onMouseOver","onMouseOut","wrap","touch","onTouchStart","onTouchMove","onTouchEnd","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]),K=b(u,"carousel"),H=(0,i.useRef)(null),_=(0,i.useState)("next"),z=_[0],V=_[1],U=(0,i.useState)(!1),W=U[0],G=U[1],X=(0,i.useState)(!1),$=X[0],Y=X[1],J=(0,i.useState)(h||0),Z=J[0],Q=J[1];$||h===Z||(H.current?V(H.current):V((h||0)>Z?"next":"prev"),d&&Y(!0),Q(h||0)),(0,i.useEffect)((function(){H.current&&(H.current=null)}));var te,re=0;Et(j,(function(e,t){++re,t===h&&(te=e.props.interval)}));var oe=me(te),ae=(0,i.useCallback)((function(e){if(!$){var t=Z-1;if(t<0){if(!k)return;t=re-1}H.current="prev",g&&g(t,e)}}),[$,Z,g,k,re]),ie=ve((function(e){if(!$){var t=Z+1;if(t>=re){if(!k)return;t=0}H.current="next",g&&g(t,e)}})),se=(0,i.useRef)();(0,i.useImperativeHandle)(o,(function(){return{element:se.current,prev:ae,next:ie}}));var le,ce,ue,de=ve((function(){!document.hidden&&function(e){if(!(e&&e.style&&e.parentNode&&e.parentNode.style))return!1;var t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&"none"!==getComputedStyle(e.parentNode).display}(se.current)&&ie()})),fe="next"===z?"left":"right";le=function(){d||(y&&y(Z,fe),x&&x(Z,fe))},ce=[Z],ue=(0,i.useRef)(!0),(0,i.useEffect)((function(){if(!ue.current)return le();ue.current=!1}),ce);var pe=K+"-item-"+z,be=K+"-item-"+fe,he=(0,i.useCallback)((function(e){ne(e),y&&y(Z,fe)}),[y,Z,fe]),ge=(0,i.useCallback)((function(){Y(!1),x&&x(Z,fe)}),[x,Z,fe]),ye=(0,i.useCallback)((function(e){if(w&&!/input|textarea/i.test(e.target.tagName))switch(e.key){case"ArrowLeft":return e.preventDefault(),void ae(e);case"ArrowRight":return e.preventDefault(),void ie(e)}N&&N(e)}),[w,N,ae,ie]),xe=(0,i.useCallback)((function(e){"hover"===C&&G(!0),P&&P(e)}),[C,P]),Ee=(0,i.useCallback)((function(e){G(!1),O&&O(e)}),[O]),we=(0,i.useRef)(0),Ne=(0,i.useRef)(0),Ce=bt(),Pe=(0,i.useCallback)((function(e){we.current=e.touches[0].clientX,Ne.current=0,"hover"===C&&G(!0),T&&T(e)}),[C,T]),Oe=(0,i.useCallback)((function(e){e.touches&&e.touches.length>1?Ne.current=0:Ne.current=e.touches[0].clientX-we.current,S&&S(e)}),[S]),ke=(0,i.useCallback)((function(e){if(R){var t=Ne.current;Math.abs(t)>40&&(t>0?ae(e):ie(e))}"hover"===C&&Ce.set((function(){G(!1)}),E||void 0),M&&M(e)}),[R,C,ae,ie,Ce,E,M]),Te=null!=E&&!W&&!$,Se=(0,i.useRef)();(0,i.useEffect)((function(){var e,t;if(Te)return Se.current=window.setInterval(document.visibilityState?de:ie,null!=(e=null!=(t=oe.current)?t:E)?e:void 0),function(){null!==Se.current&&clearInterval(Se.current)}}),[Te,ie,oe,E,de]);var Me=(0,i.useMemo)((function(){return v&&Array.from({length:re},(function(e,t){return function(e){g&&g(t,e)}}))}),[v,re,g]);return s().createElement(c,e({ref:se},B,{onKeyDown:ye,onMouseOver:xe,onMouseOut:Ee,onTouchStart:Pe,onTouchMove:Oe,onTouchEnd:ke,className:r()(A,K,d&&"slide",f&&K+"-fade")}),v&&s().createElement("ol",{className:K+"-indicators"},xt(j,(function(e,t){return s().createElement("li",{key:t,className:t===Z?"active":void 0,onClick:Me?Me[t]:void 0})}))),s().createElement("div",{className:K+"-inner"},xt(j,(function(e,t){var n=t===Z;return d?s().createElement(q,{in:n,onEnter:n?he:void 0,onEntered:n?ge:void 0,addEndListener:ee},(function(t){return s().cloneElement(e,{className:r()(e.props.className,n&&"entered"!==t&&pe,("entered"===t||"exiting"===t)&&"active",("entering"===t||"exiting"===t)&&be)})})):s().cloneElement(e,{className:r()(e.props.className,n&&"active")})}))),m&&s().createElement(s().Fragment,null,(k||0!==h)&&s().createElement(Re,{className:K+"-control-prev",onClick:ae},I,D&&s().createElement("span",{className:"sr-only"},D)),(k||h!==re-1)&&s().createElement(Re,{className:K+"-control-next",onClick:ie},F,L&&s().createElement("span",{className:"sr-only"},L))))}var Pt=s().forwardRef(Ct);Pt.displayName="Carousel",Pt.propTypes=wt,Pt.defaultProps=Nt,Pt.Caption=ht,Pt.Item=yt;const Ot=Pt;var kt=["xl","lg","md","sm","xs"],Rt=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.as,c=void 0===l?"div":l,u=t(n,["bsPrefix","className","as"]),d=b(a,"col"),f=[],p=[];return kt.forEach((function(e){var t,n,r,o=u[e];if(delete u[e],"object"==typeof o&&null!=o){var a=o.span;t=void 0===a||a,n=o.offset,r=o.order}else t=o;var i="xs"!==e?"-"+e:"";t&&f.push(!0===t?""+d+i:""+d+i+"-"+t),null!=r&&p.push("order"+i+"-"+r),null!=n&&p.push("offset"+i+"-"+n)})),f.length||f.push(d),s().createElement(c,e({},u,{ref:o,className:r().apply(void 0,[i].concat(f,p))}))}));Rt.displayName="Col";const Tt=Rt;var St,Mt=Function.prototype.bind.call(Function.prototype.call,[].slice);function It(e,t){return Mt(e.querySelectorAll(t))}function Dt(e){var t=(0,i.useRef)(null);return(0,i.useEffect)((function(){t.current=e})),t.current}function Ft(){return(0,i.useReducer)((function(e){return!e}),!1)[1]}const Lt=s().createContext(null);function At(){return(0,i.useState)(null)}function jt(e){return e.split("-")[0]}function Bt(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Kt(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ht(e){return e instanceof Kt(e).Element||e instanceof Element}function _t(e){return e instanceof Kt(e).HTMLElement||e instanceof HTMLElement}function zt(e,t){var n,r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&((n=r)instanceof Kt(n).ShadowRoot||n instanceof ShadowRoot)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function Vt(e){return e?(e.nodeName||"").toLowerCase():null}function qt(e){return Kt(e).getComputedStyle(e)}function Ut(e){return["table","td","th"].indexOf(Vt(e))>=0}function Wt(e){return((Ht(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gt(e){return"html"===Vt(e)?e:e.assignedSlot||e.parentNode||e.host||Wt(e)}function Xt(e){if(!_t(e)||"fixed"===qt(e).position)return null;var t=e.offsetParent;if(t){var n=Wt(t);if("body"===Vt(t)&&"static"===qt(t).position&&"static"!==qt(n).position)return n}return t}function $t(e){for(var t=Kt(e),n=Xt(e);n&&Ut(n)&&"static"===qt(n).position;)n=Xt(n);return n&&"body"===Vt(n)&&"static"===qt(n).position?t:n||function(e){for(var t=Gt(e);_t(t)&&["html","body"].indexOf(Vt(t))<0;){var n=qt(t);if("none"!==n.transform||"none"!==n.perspective||n.willChange&&"auto"!==n.willChange)return t;t=t.parentNode}return null}(e)||t}function Yt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Jt(e,t,n){return Math.max(e,Math.min(t,n))}function Zt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Qt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var en="top",tn="bottom",nn="right",rn="left",on="auto",an=[en,tn,nn,rn],sn="start",ln="end",cn="viewport",un="popper",dn=an.reduce((function(e,t){return e.concat([t+"-"+sn,t+"-"+ln])}),[]),fn=[].concat(an,[on]).reduce((function(e,t){return e.concat([t,t+"-"+sn,t+"-"+ln])}),[]),pn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],mn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.offsets,i=e.position,s=e.gpuAcceleration,l=e.adaptive,c=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(a),u=c.x,d=c.y,f=a.hasOwnProperty("x"),p=a.hasOwnProperty("y"),m=rn,v=en,b=window;if(l){var h=$t(n);h===Kt(n)&&(h=Wt(n)),o===en&&(v=tn,d-=h.clientHeight-r.height,d*=s?1:-1),o===rn&&(m=nn,u-=h.clientWidth-r.width,u*=s?1:-1)}var g,y=Object.assign({position:i},l&&mn);return s?Object.assign(Object.assign({},y),{},((g={})[v]=p?"0":"",g[m]=f?"0":"",g.transform=(b.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",g)):Object.assign(Object.assign({},y),{},((t={})[v]=p?d+"px":"",t[m]=f?u+"px":"",t.transform="",t))}var bn={passive:!0},hn={left:"right",right:"left",bottom:"top",top:"bottom"};function gn(e){return e.replace(/left|right|bottom|top/g,(function(e){return hn[e]}))}var yn={start:"end",end:"start"};function xn(e){return e.replace(/start|end/g,(function(e){return yn[e]}))}function En(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function wn(e){var t=Kt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Nn(e){return En(Wt(e)).left+wn(e).scrollLeft}function Cn(e){var t=qt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Pn(e){return["html","body","#document"].indexOf(Vt(e))>=0?e.ownerDocument.body:_t(e)&&Cn(e)?e:Pn(Gt(e))}function On(e,t){void 0===t&&(t=[]);var n=Pn(e),r="body"===Vt(n),o=Kt(n),a=r?[o].concat(o.visualViewport||[],Cn(n)?n:[]):n,i=t.concat(a);return r?i:i.concat(On(Gt(a)))}function kn(e){return Object.assign(Object.assign({},e),{},{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Rn(e,t){return t===cn?kn(function(e){var t=Kt(e),n=Wt(e),r=t.visualViewport,o=n.clientWidth,a=n.clientHeight,i=0,s=0;return r&&(o=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=r.offsetLeft,s=r.offsetTop)),{width:o,height:a,x:i+Nn(e),y:s}}(e)):_t(t)?function(e){var t=En(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):kn(function(e){var t=Wt(e),n=wn(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),i=-n.scrollLeft+Nn(e),s=-n.scrollTop;return"rtl"===qt(r||t).direction&&(i+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:i,y:s}}(Wt(e)))}function Tn(e){return e.split("-")[1]}function Sn(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?jt(o):null,i=o?Tn(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case en:t={x:s,y:n.y-r.height};break;case tn:t={x:s,y:n.y+n.height};break;case nn:t={x:n.x+n.width,y:l};break;case rn:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?Yt(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case sn:t[c]=Math.floor(t[c])-Math.floor(n[u]/2-r[u]/2);break;case ln:t[c]=Math.floor(t[c])+Math.ceil(n[u]/2-r[u]/2)}}return t}function Mn(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.boundary,i=void 0===a?"clippingParents":a,s=n.rootBoundary,l=void 0===s?cn:s,c=n.elementContext,u=void 0===c?un:c,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,m=void 0===p?0:p,v=Zt("number"!=typeof m?m:Qt(m,an)),b=u===un?"reference":un,h=e.elements.reference,g=e.rects.popper,y=e.elements[f?b:u],x=function(e,t,n){var r="clippingParents"===t?function(e){var t=On(Gt(e)),n=["absolute","fixed"].indexOf(qt(e).position)>=0&&_t(e)?$t(e):e;return Ht(n)?t.filter((function(e){return Ht(e)&&zt(e,n)&&"body"!==Vt(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),a=o[0],i=o.reduce((function(t,n){var r=Rn(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),Rn(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(Ht(y)?y:y.contextElement||Wt(e.elements.popper),i,l),E=En(h),w=Sn({reference:E,element:g,strategy:"absolute",placement:o}),N=kn(Object.assign(Object.assign({},g),w)),C=u===un?N:E,P={top:x.top-C.top+v.top,bottom:C.bottom-x.bottom+v.bottom,left:x.left-C.left+v.left,right:C.right-x.right+v.right},O=e.modifiersData.offset;if(u===un&&O){var k=O[o];Object.keys(P).forEach((function(e){var t=[nn,tn].indexOf(e)>=0?1:-1,n=[en,tn].indexOf(e)>=0?"y":"x";P[e]+=k[n]*t}))}return P}function In(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Dn(e){return[en,nn,tn,rn].some((function(t){return e[t]>=0}))}function Fn(e,t,n){void 0===n&&(n=!1);var r,o,a=Wt(t),i=En(e),s=_t(t),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!n)&&(("body"!==Vt(t)||Cn(a))&&(l=(r=t)!==Kt(r)&&_t(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:wn(r)),_t(t)?((c=En(t)).x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Nn(a))),{x:i.left+l.scrollLeft-c.x,y:i.top+l.scrollTop-c.y,width:i.width,height:i.height}}function Ln(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var An={placement:"bottom",modifiers:[],strategy:"absolute"};function jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}var Bn=function(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?An:o;return function(e,t,n){void 0===n&&(n=a);var o,i,s={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},An),a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(n){d(),s.options=Object.assign(Object.assign(Object.assign({},a),s.options),n),s.scrollParents={reference:Ht(e)?On(e):e.contextElement?On(e.contextElement):[],popper:On(t)};var o,i,c=function(e){var t=Ln(e);return pn.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,s.options.modifiers),i=o.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{},{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{}),Object.keys(i).map((function(e){return i[e]}))));return s.orderedModifiers=c.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:s,name:t,instance:u,options:r});l.push(a||function(){})}})),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,n=e.popper;if(jn(t,n)){s.rects={reference:Fn(t,$t(n),"fixed"===s.options.strategy),popper:Bt(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],a=o.fn,i=o.options,l=void 0===i?{}:i,d=o.name;"function"==typeof a&&(s=a({state:s,options:l,name:d,instance:u})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!jn(e,t))return u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Mn(t,{elementContext:"reference"}),s=Mn(t,{altBoundary:!0}),l=In(i,r),c=In(s,o,a),u=Dn(l),d=Dn(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Sn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s={placement:jt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign(Object.assign({},t.styles.popper),vn(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign(Object.assign({},t.styles.arrow),vn(Object.assign(Object.assign({},s),{},{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign(Object.assign({},t.attributes.popper),{},{"data-popper-placement":t.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Kt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,bn)})),s&&l.addEventListener("resize",n.update,bn),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,bn)})),s&&l.removeEventListener("resize",n.update,bn)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=fn.reduce((function(e,n){return e[n]=function(e,t,n){var r=jt(e),o=[rn,en].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign(Object.assign({},t),{},{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[rn,nn].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=void 0===p||p,v=n.allowedAutoPlacements,b=t.options.placement,h=jt(b),g=l||(h!==b&&m?function(e){if(jt(e)===on)return[];var t=gn(e);return[xn(e),t,xn(t)]}(b):[gn(b)]),y=[b].concat(g).reduce((function(e,n){return e.concat(jt(n)===on?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?fn:l,u=Tn(r),d=u?s?dn:dn.filter((function(e){return Tn(e)===u})):an,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Mn(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[jt(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,E=t.rects.popper,w=new Map,N=!0,C=y[0],P=0;P<y.length;P++){var O=y[P],k=jt(O),R=Tn(O)===sn,T=[en,tn].indexOf(k)>=0,S=T?"width":"height",M=Mn(t,{placement:O,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),I=T?R?nn:rn:R?tn:en;x[S]>E[S]&&(I=gn(I));var D=gn(I),F=[];if(a&&F.push(M[k]<=0),s&&F.push(M[I]<=0,M[D]<=0),F.every((function(e){return e}))){C=O,N=!1;break}w.set(O,F)}if(N)for(var L=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=m?3:1;A>0&&"break"!==L(A);A--);t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,b=Mn(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),h=jt(t.placement),g=Tn(t.placement),y=!g,x=Yt(h),E="x"===x?"y":"x",w=t.modifiersData.popperOffsets,N=t.rects.reference,C=t.rects.popper,P="function"==typeof v?v(Object.assign(Object.assign({},t.rects),{},{placement:t.placement})):v,O={x:0,y:0};if(w){if(a){var k="y"===x?en:rn,R="y"===x?tn:nn,T="y"===x?"height":"width",S=w[x],M=w[x]+b[k],I=w[x]-b[R],D=p?-C[T]/2:0,F=g===sn?N[T]:C[T],L=g===sn?-C[T]:-N[T],A=t.elements.arrow,j=p&&A?Bt(A):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=B[k],H=B[R],_=Jt(0,N[T],j[T]),z=y?N[T]/2-D-_-K-P:F-_-K-P,V=y?-N[T]/2+D+_+H+P:L+_+H+P,q=t.elements.arrow&&$t(t.elements.arrow),U=q?"y"===x?q.clientTop||0:q.clientLeft||0:0,W=t.modifiersData.offset?t.modifiersData.offset[t.placement][x]:0,G=w[x]+z-W-U,X=w[x]+V-W,$=Jt(p?Math.min(M,G):M,S,p?Math.max(I,X):I);w[x]=$,O[x]=$-S}if(s){var Y="x"===x?en:rn,J="x"===x?tn:nn,Z=w[E],Q=Jt(Z+b[Y],Z,Z-b[J]);w[E]=Q,O[E]=Q-Z}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,a=n.modifiersData.popperOffsets,i=jt(n.placement),s=Yt(i),l=[rn,nn].indexOf(i)>=0?"height":"width";if(o&&a){var c=n.modifiersData[r+"#persistent"].padding,u=Bt(o),d="y"===s?en:rn,f="y"===s?tn:nn,p=n.rects.reference[l]+n.rects.reference[s]-a[s]-n.rects.popper[l],m=a[s]-n.rects.reference[s],v=$t(o),b=v?"y"===s?v.clientHeight||0:v.clientWidth||0:0,h=p/2-m/2,g=c[d],y=b-u[l]-c[f],x=b/2-u[l]/2+h,E=Jt(g,x,y),w=s;n.modifiersData[r]=((t={})[w]=E,t.centerOffset=E-x,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,a=void 0===o?"[data-popper-arrow]":o,i=n.padding,s=void 0===i?0:i;null!=a&&("string"!=typeof a||(a=t.elements.popper.querySelector(a)))&&zt(t.elements.popper,a)&&(t.elements.arrow=a,t.modifiersData[r+"#persistent"]={padding:Zt("number"!=typeof s?s:Qt(s,an))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}),Kn=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},Hn={name:"applyStyles",enabled:!1},_n={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var o=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));o.length?n.setAttribute("aria-describedby",o.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,o=n.reference,a=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in o){var i=o.getAttribute("aria-describedby");if(i&&-1!==i.split(",").indexOf(r.id))return;o.setAttribute("aria-describedby",i?i+","+r.id:r.id)}}},zn=[];const Vn=function(n,r,o){var a,s,l=void 0===o?{}:o,c=l.enabled,u=void 0===c||c,d=l.placement,f=void 0===d?"bottom":d,p=l.strategy,m=void 0===p?"absolute":p,v=l.modifiers,b=void 0===v?zn:v,h=t(l,["enabled","placement","strategy","modifiers"]),g=(0,i.useRef)(),y=(0,i.useCallback)((function(){var e;null==(e=g.current)||e.update()}),[]),x=(0,i.useCallback)((function(){var e;null==(e=g.current)||e.forceUpdate()}),[]),E=(a=(0,i.useState)({placement:f,update:y,forceUpdate:x,attributes:{},styles:{popper:Kn(m),arrow:{}}}),s=ft(),[a[0],(0,i.useCallback)((function(e){if(s())return a[1](e)}),[s,a[1]])]),w=E[0],N=E[1],C=(0,i.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),N({state:t,styles:n,attributes:r,update:y,forceUpdate:x,placement:t.placement})}}}),[y,x,N]);return(0,i.useEffect)((function(){g.current&&u&&g.current.setOptions({placement:f,strategy:m,modifiers:[].concat(b,[C,Hn])})}),[m,f,C,u]),(0,i.useEffect)((function(){if(u&&null!=n&&null!=r)return g.current=Bn(n,r,e({},h,{placement:f,strategy:m,modifiers:[].concat(b,[_n,C])})),function(){null!=g.current&&(g.current.destroy(),g.current=void 0,N((function(t){return e({},t,{attributes:{},styles:{popper:Kn(m)}})})))}}),[u,n,r]),w};function qn(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var Un=o(459),Wn=o.n(Un);function Gn(e){return e&&"setState"in e?L().findDOMNode(e):null!=e?e:null}var Xn=function(){},$n=function(e){return e&&("current"in e?e.current:e)};const Yn=function(e,t,n){var r=void 0===n?{}:n,o=r.disabled,a=r.clickTrigger,s=void 0===a?"click":a,l=(0,i.useRef)(!1),c=t||Xn,u=(0,i.useCallback)((function(t){var n,r=$n(e);Wn()(!!r,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),l.current=!(r&&(n=t,!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey))&&function(e){return 0===e.button}(t)&&!qn(r,t.target))}),[e]),d=ve((function(e){l.current||c(e)})),f=ve((function(e){27===e.keyCode&&c(e)}));(0,i.useEffect)((function(){if(!o&&null!=e){var t=window.event,n=C(Gn($n(e))),r=J(n,s,u,!0),a=J(n,s,(function(e){e!==t?d(e):t=void 0})),i=J(n,"keyup",(function(e){e!==t?f(e):t=void 0})),l=[];return"ontouchstart"in n.documentElement&&(l=[].slice.call(n.body.children).map((function(e){return J(e,"mousemove",Xn)}))),function(){r(),a(),i(),l.forEach((function(e){return e()}))}}}),[e,o,s,u,d,f])};function Jn(e){return void 0===e&&(e={}),Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t].name=t,e[t]}))}function Zn(t){var n,r,o,a,i=t.enabled,s=t.enableEvents,l=t.placement,c=t.flip,u=t.offset,d=t.fixed,f=t.containerPadding,p=t.arrowElement,m=t.popperConfig,v=void 0===m?{}:m,b=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(v.modifiers);return e({},v,{placement:l,enabled:i,strategy:d?"fixed":v.strategy,modifiers:Jn(e({},b,{eventListeners:{enabled:s},preventOverflow:e({},b.preventOverflow,{options:f?e({padding:f},null==(n=b.preventOverflow)?void 0:n.options):null==(r=b.preventOverflow)?void 0:r.options}),offset:{options:e({offset:u},null==(o=b.offset)?void 0:o.options)},arrow:e({},b.arrow,{enabled:!!p,options:e({},null==(a=b.arrow)?void 0:a.options,{element:p})}),flip:e({enabled:!!c},b.flip)}))})}var Qn=function(){};function er(t){void 0===t&&(t={});var n=(0,i.useContext)(Lt),r=At(),o=r[0],a=r[1],s=(0,i.useRef)(!1),l=t,c=l.flip,u=l.offset,d=l.rootCloseEvent,f=l.fixed,p=void 0!==f&&f,m=l.popperConfig,v=void 0===m?{}:m,b=l.usePopper,h=void 0===b?!!n:b,g=null==(null==n?void 0:n.show)?!!t.show:n.show,y=null==(null==n?void 0:n.alignEnd)?t.alignEnd:n.alignEnd;g&&!s.current&&(s.current=!0);var x=n||{},E=x.drop,w=x.setMenu,N=x.menuElement,C=x.toggleElement,P=y?"bottom-end":"bottom-start";"up"===E?P=y?"top-end":"top-start":"right"===E?P=y?"right-end":"right-start":"left"===E&&(P=y?"left-end":"left-start");var O=Vn(C,N,Zn({placement:P,enabled:!(!h||!g),enableEvents:g,offset:u,flip:c,fixed:p,arrowElement:o,popperConfig:v})),k=e({ref:w||Qn,"aria-labelledby":null==C?void 0:C.id},O.attributes.popper,{style:O.styles.popper}),R={show:g,alignEnd:y,hasShown:s.current,toggle:null==n?void 0:n.toggle,popper:h?O:null,arrowProps:h?e({ref:a},O.attributes.arrow,{style:O.styles.arrow}):{}};return Yn(N,(function(e){null==n||n.toggle(!1,e)}),{clickTrigger:d,disabled:!g}),[k,R]}var tr={children:D().func.isRequired,show:D().bool,alignEnd:D().bool,flip:D().bool,usePopper:D().oneOf([!0,!1]),popperConfig:D().object,rootCloseEvent:D().string};function nr(e){var n=e.children,r=er(t(e,["children"])),o=r[0],a=r[1];return s().createElement(s().Fragment,null,a.hasShown?n(o,a):null)}nr.displayName="ReactOverlaysDropdownMenu",nr.propTypes=tr,nr.defaultProps={usePopper:!0};const rr=nr;var or=function(){};function ar(){var e=(0,i.useContext)(Lt)||{},t=e.show,n=void 0!==t&&t,r=e.toggle,o=void 0===r?or:r,a=e.setToggle,s=(0,i.useCallback)((function(e){o(!n,e)}),[n,o]);return[{ref:a||or,onClick:s,"aria-haspopup":!0,"aria-expanded":!!n},{show:n,toggle:o}]}var ir={children:D().func.isRequired};function sr(e){var t=e.children,n=ar(),r=n[0],o=n[1];return s().createElement(s().Fragment,null,t(r,o))}sr.displayName="ReactOverlaysDropdownToggle",sr.propTypes=ir;const lr=sr;var cr={children:D().node,drop:D().oneOf(["up","left","right","down"]),focusFirstItemOnShow:D().oneOf([!1,!0,"keyboard"]),itemSelector:D().string,alignEnd:D().bool,show:D().bool,defaultShow:D().bool,onToggle:D().func};function ur(){var e=Ft(),t=(0,i.useRef)(null),n=(0,i.useCallback)((function(n){t.current=n,e()}),[e]);return[t,n]}function dr(e){var t=e.drop,n=e.alignEnd,r=e.defaultShow,o=e.show,a=e.onToggle,l=e.itemSelector,c=void 0===l?"* > *":l,u=e.focusFirstItemOnShow,d=e.children,p=f(o,r,a),m=p[0],v=p[1],b=ur(),h=b[0],g=b[1],y=h.current,x=ur(),E=x[0],w=x[1],N=E.current,C=Dt(m),P=(0,i.useRef)(null),O=(0,i.useRef)(!1),k=(0,i.useCallback)((function(e,t){v(e,t)}),[v]),R=(0,i.useMemo)((function(){return{toggle:k,drop:t,show:m,alignEnd:n,menuElement:y,toggleElement:N,setMenu:g,setToggle:w}}),[k,t,m,n,y,N,g,w]);y&&C&&!m&&(O.current=y.contains(document.activeElement));var T=ve((function(){N&&N.focus&&N.focus()})),S=ve((function(){var e=P.current,t=u;if(null==t&&(t=!(!h.current||!function(e,t){if(!St){var n=document.body,r=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;St=function(e,t){return r.call(e,t)}}return St(e,"[role=menu]")}(h.current))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=It(h.current,c)[0];n&&n.focus&&n.focus()}}));(0,i.useEffect)((function(){m?S():O.current&&(O.current=!1,T())}),[m,O,T,S]),(0,i.useEffect)((function(){P.current=null}));var M,I,D,F=function(e,t){if(!h.current)return null;var n=It(h.current,c),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return M="keydown",I=function(e){var t,n,r=e.key,o=e.target,a=null==(t=h.current)?void 0:t.contains(o),i=null==(n=E.current)?void 0:n.contains(o);if((!/input|textarea/i.test(o.tagName)||!(" "===r||"Escape"!==r&&a))&&(a||i))switch(P.current=e.type,r){case"ArrowUp":var s=F(o,-1);return s&&s.focus&&s.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),m){var l=F(o,1);l&&l.focus&&l.focus()}else v(!0,e);return;case"Escape":case"Tab":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),v(!1,e)}},void 0===D&&(D=!1),function(e,t,n,r){void 0===r&&(r=!1);var o=ve(n);(0,i.useEffect)((function(){var n="function"==typeof e?e():e;return n.addEventListener(t,o,r),function(){return n.removeEventListener(t,o,r)}}),[e])}((0,i.useCallback)((function(){return document}),[]),M,I,D),s().createElement(Lt.Provider,{value:R},d)}dr.displayName="ReactOverlaysDropdown",dr.propTypes=cr,dr.Menu=rr,dr.Toggle=lr;const fr=dr;var pr=s().createContext(null);pr.displayName="NavContext";const mr=pr;var vr={as:Re,disabled:!1},br=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.children,u=n.eventKey,d=n.disabled,f=n.href,p=n.onClick,m=n.onSelect,v=n.active,h=n.as,x=t(n,["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"]),E=b(a,"dropdown-item"),w=(0,i.useContext)(y),N=((0,i.useContext)(mr)||{}).activeKey,C=g(u,f),P=null==v&&null!=C?g(N)===C:v,O=ve((function(e){d||(p&&p(e),w&&w(C,e),m&&m(C,e))}));return s().createElement(h,e({},x,{ref:o,href:f,disabled:d,className:r()(l,E,P&&"active",d&&"disabled"),onClick:O}),c)}));br.displayName="DropdownItem",br.defaultProps=vr;const hr=br;var gr=function(e){return e&&"function"!=typeof e?function(t){e.current=t}:e};const yr=function(e,t){return(0,i.useMemo)((function(){return function(e,t){var n=gr(e),r=gr(t);return function(e){n&&n(e),r&&r(e)}}(e,t)}),[e,t])};var xr=s().createContext(null);xr.displayName="NavbarContext";const Er=xr;function wr(e,t){return e}function Nr(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}function Cr(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}function Pr(){var e=(0,i.useRef)(null),t=(0,i.useRef)(null),n=b(void 0,"popover"),r=b(void 0,"dropdown-menu");return[(0,i.useCallback)((function(o){o&&(Nr(o,n)||Nr(o,r))&&(t.current=Cr(o),o.style.margin="0",e.current=o)}),[n,r]),[(0,i.useMemo)((function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,o=r.top,a=r.left,i=r.bottom,s=r.right;switch(n.split("-")[0]){case"top":return[0,i];case"left":return[0,s];case"bottom":return[0,o];case"right":return[0,a];default:return[0,0]}}}}}),[t]),(0,i.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",requiresIfExists:["arrow"],effect:function(t){var r=t.state;if(e.current&&r.elements.arrow&&Nr(e.current,n)&&r.modifiersData["arrow#persistent"]){var o=Cr(r.elements.arrow),a=o.top,i=o.right,s=a||i;return r.modifiersData["arrow#persistent"].padding={top:s,left:s,right:s,bottom:s},r.elements.arrow.style.margin="0",function(){r.elements.arrow&&(r.elements.arrow.style.margin="")}}}}}),[n])]]}var Or=D().oneOf(["left","right"]),kr=D().oneOfType([Or,D().shape({sm:Or}),D().shape({md:Or}),D().shape({lg:Or}),D().shape({xl:Or})]),Rr=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.align,u=n.alignRight,d=n.rootCloseEvent,f=n.flip,p=n.show,m=n.renderOnMount,v=n.as,h=void 0===v?"div":v,g=n.popperConfig,y=t(n,["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"]),x=(0,i.useContext)(Er),E=b(a,"dropdown-menu"),w=Pr(),N=w[0],C=w[1],P=[];if(c)if("object"==typeof c){var O=Object.keys(c);if(O.length){var k=O[0],R=c[k];u="left"===R,P.push(E+"-"+k+"-"+R)}}else"right"===c&&(u=!0);var T=er({flip:f,rootCloseEvent:d,show:p,alignEnd:u,usePopper:!x&&0===P.length,popperConfig:e({},g,{modifiers:C.concat((null==g?void 0:g.modifiers)||[])})}),S=T[0],M=T[1],I=M.hasShown,D=M.popper,F=M.show,L=M.alignEnd,A=M.toggle;if(S.ref=yr(N,yr(wr(o),S.ref)),!I&&!m)return null;"string"!=typeof h&&(S.show=F,S.close=function(){return null==A?void 0:A(!1)},S.alignRight=L);var j=y.style;return null!=D&&D.placement&&(j=e({},y.style,S.style),y["x-placement"]=D.placement),s().createElement(h,e({},y,S,{style:j,className:r().apply(void 0,[l,E,F&&"show",L&&E+"-right"].concat(P))}))}));Rr.displayName="DropdownMenu",Rr.defaultProps={align:"left",alignRight:!1,flip:!0};const Tr=Rr;o(422);var Sr=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.split,l=n.className,c=n.childBsPrefix,u=n.as,d=void 0===u?ze:u,f=t(n,["bsPrefix","split","className","childBsPrefix","as"]),p=b(a,"dropdown-toggle");void 0!==c&&(f.bsPrefix=c);var m=ar()[0];return m.ref=yr(m.ref,wr(o)),s().createElement(d,e({className:r()(l,p,i&&p+"-split")},m,f))}));Sr.displayName="DropdownToggle";const Mr=Sr;var Ir=Pe("dropdown-header",{defaultProps:{role:"heading"}}),Dr=Pe("dropdown-divider",{defaultProps:{role:"separator"}}),Fr=Pe("dropdown-item-text",{Component:"span"}),Lr=s().forwardRef((function(n,o){var a=p(n,{show:"onToggle"}),l=a.bsPrefix,c=a.drop,u=a.show,d=a.className,f=a.alignRight,m=a.onSelect,v=a.onToggle,h=a.focusFirstItemOnShow,g=a.as,x=void 0===g?"div":g,E=(a.navbar,t(a,["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"])),w=(0,i.useContext)(y),N=b(l,"dropdown"),C=ve((function(e,t,n){void 0===n&&(n=t.type),t.currentTarget!==document||"keydown"===n&&"Escape"!==t.key||(n="rootClose"),v&&v(e,t,{source:n})})),P=ve((function(e,t){w&&w(e,t),m&&m(e,t),C(!1,t,"select")}));return s().createElement(y.Provider,{value:P},s().createElement(fr,{drop:c,show:u,alignEnd:f,onToggle:C,focusFirstItemOnShow:h,itemSelector:"."+N+"-item:not(.disabled):not(:disabled)"},s().createElement(x,e({},E,{ref:o,className:r()(d,u&&"show",(!c||"down"===c)&&N,"up"===c&&"dropup","right"===c&&"dropright","left"===c&&"dropleft")}))))}));Lr.displayName="Dropdown",Lr.defaultProps={navbar:!1},Lr.Divider=Dr,Lr.Header=Ir,Lr.Item=hr,Lr.ItemText=Fr,Lr.Menu=Tr,Lr.Toggle=Mr;const Ar=Lr;var jr={id:D().any,href:D().string,onClick:D().func,title:D().node.isRequired,disabled:D().bool,menuAlign:kr,menuRole:D().string,renderMenuOnMount:D().bool,rootCloseEvent:D().string,bsPrefix:D().string,variant:D().string,size:D().string},Br=s().forwardRef((function(n,r){var o=n.title,a=n.children,i=n.bsPrefix,l=n.rootCloseEvent,c=n.variant,u=n.size,d=n.menuAlign,f=n.menuRole,p=n.renderMenuOnMount,m=n.disabled,v=n.href,b=n.id,h=t(n,["title","children","bsPrefix","rootCloseEvent","variant","size","menuAlign","menuRole","renderMenuOnMount","disabled","href","id"]);return s().createElement(Ar,e({ref:r},h),s().createElement(Mr,{id:b,href:v,size:u,variant:c,disabled:m,childBsPrefix:i},o),s().createElement(Tr,{align:d,role:f,renderOnMount:p,rootCloseEvent:l},a))}));Br.displayName="DropdownButton",Br.propTypes=jr;const Kr=Br;o(946);var Hr={type:D().string,tooltip:D().bool,as:D().elementType},_r=s().forwardRef((function(n,o){var a=n.as,i=void 0===a?"div":a,l=n.className,c=n.type,u=void 0===c?"valid":c,d=n.tooltip,f=void 0!==d&&d,p=t(n,["as","className","type","tooltip"]);return s().createElement(i,e({},p,{ref:o,className:r()(l,u+"-"+(f?"tooltip":"feedback"))}))}));_r.displayName="Feedback",_r.propTypes=Hr;const zr=_r,Vr=s().createContext({controlId:void 0});var qr=s().forwardRef((function(n,o){var a=n.id,l=n.bsPrefix,c=n.bsCustomPrefix,u=n.className,d=n.type,f=void 0===d?"checkbox":d,p=n.isValid,m=void 0!==p&&p,v=n.isInvalid,h=void 0!==v&&v,g=n.isStatic,y=n.as,x=void 0===y?"input":y,E=t(n,["id","bsPrefix","bsCustomPrefix","className","type","isValid","isInvalid","isStatic","as"]),w=(0,i.useContext)(Vr),N=w.controlId,C=w.custom?[c,"custom-control-input"]:[l,"form-check-input"];return l=b(C[0],C[1]),s().createElement(x,e({},E,{ref:o,type:f,id:a||N,className:r()(u,l,m&&"is-valid",h&&"is-invalid",g&&"position-static")}))}));qr.displayName="FormCheckInput";const Ur=qr;var Wr=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.bsCustomPrefix,c=n.className,u=n.htmlFor,d=t(n,["bsPrefix","bsCustomPrefix","className","htmlFor"]),f=(0,i.useContext)(Vr),p=f.controlId,m=f.custom?[l,"custom-control-label"]:[a,"form-check-label"];return a=b(m[0],m[1]),s().createElement("label",e({},d,{ref:o,htmlFor:u||p,className:r()(c,a)}))}));Wr.displayName="FormCheckLabel";const Gr=Wr;var Xr=s().forwardRef((function(n,o){var a=n.id,l=n.bsPrefix,c=n.bsCustomPrefix,u=n.inline,d=void 0!==u&&u,f=n.disabled,p=void 0!==f&&f,m=n.isValid,v=void 0!==m&&m,h=n.isInvalid,g=void 0!==h&&h,y=n.feedbackTooltip,x=void 0!==y&&y,E=n.feedback,w=n.className,N=n.style,C=n.title,P=void 0===C?"":C,O=n.type,k=void 0===O?"checkbox":O,R=n.label,T=n.children,S=n.custom,M=n.as,I=void 0===M?"input":M,D=t(n,["id","bsPrefix","bsCustomPrefix","inline","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","title","type","label","children","custom","as"]),F="switch"===k||S,L=F?[c,"custom-control"]:[l,"form-check"];l=b(L[0],L[1]);var A=(0,i.useContext)(Vr).controlId,j=(0,i.useMemo)((function(){return{controlId:a||A,custom:F}}),[A,F,a]),B=F||null!=R&&!1!==R&&!T,K=s().createElement(Ur,e({},D,{type:"switch"===k?"checkbox":k,ref:o,isValid:v,isInvalid:g,isStatic:!B,disabled:p,as:I}));return s().createElement(Vr.Provider,{value:j},s().createElement("div",{style:N,className:r()(w,l,F&&"custom-"+k,d&&l+"-inline")},T||s().createElement(s().Fragment,null,K,B&&s().createElement(Gr,{title:P},R),(v||g)&&s().createElement(zr,{type:v?"valid":"invalid",tooltip:x},E))))}));Xr.displayName="FormCheck",Xr.Input=Ur,Xr.Label=Gr;const $r=Xr;var Yr=s().forwardRef((function(n,o){var a=n.id,l=n.bsPrefix,c=n.bsCustomPrefix,u=n.className,d=n.isValid,f=n.isInvalid,p=n.lang,m=n.as,v=void 0===m?"input":m,h=t(n,["id","bsPrefix","bsCustomPrefix","className","isValid","isInvalid","lang","as"]),g=(0,i.useContext)(Vr),y=g.controlId,x=g.custom?[c,"custom-file-input"]:[l,"form-control-file"];return l=b(x[0],x[1]),s().createElement(v,e({},h,{ref:o,id:a||y,type:"file",lang:p,className:r()(u,l,d&&"is-valid",f&&"is-invalid")}))}));Yr.displayName="FormFileInput";const Jr=Yr;var Zr=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.bsCustomPrefix,c=n.className,u=n.htmlFor,d=t(n,["bsPrefix","bsCustomPrefix","className","htmlFor"]),f=(0,i.useContext)(Vr),p=f.controlId,m=f.custom?[l,"custom-file-label"]:[a,"form-file-label"];return a=b(m[0],m[1]),s().createElement("label",e({},d,{ref:o,htmlFor:u||p,className:r()(c,a),"data-browse":d["data-browse"]}))}));Zr.displayName="FormFileLabel";const Qr=Zr;var eo=s().forwardRef((function(n,o){var a=n.id,l=n.bsPrefix,c=n.bsCustomPrefix,u=n.disabled,d=void 0!==u&&u,f=n.isValid,p=void 0!==f&&f,m=n.isInvalid,v=void 0!==m&&m,h=n.feedbackTooltip,g=void 0!==h&&h,y=n.feedback,x=n.className,E=n.style,w=n.label,N=n.children,C=n.custom,P=n.lang,O=n["data-browse"],k=n.as,R=void 0===k?"div":k,T=n.inputAs,S=void 0===T?"input":T,M=t(n,["id","bsPrefix","bsCustomPrefix","disabled","isValid","isInvalid","feedbackTooltip","feedback","className","style","label","children","custom","lang","data-browse","as","inputAs"]),I=C?[c,"custom"]:[l,"form-file"];l=b(I[0],I[1]);var D=(0,i.useContext)(Vr).controlId,F=(0,i.useMemo)((function(){return{controlId:a||D,custom:C}}),[D,C,a]),L=null!=w&&!1!==w&&!N,A=s().createElement(Jr,e({},M,{ref:o,isValid:p,isInvalid:v,disabled:d,as:S,lang:P}));return s().createElement(Vr.Provider,{value:F},s().createElement(R,{style:E,className:r()(x,l,C&&"custom-file")},N||s().createElement(s().Fragment,null,C?s().createElement(s().Fragment,null,A,L&&s().createElement(Qr,{"data-browse":O},w)):s().createElement(s().Fragment,null,L&&s().createElement(Qr,null,w),A),(p||v)&&s().createElement(zr,{type:p?"valid":"invalid",tooltip:g},y))))}));eo.displayName="FormFile",eo.Input=Jr,eo.Label=Qr;const to=eo;var no=s().forwardRef((function(n,o){var a,l,c=n.bsPrefix,u=n.bsCustomPrefix,d=n.type,f=n.size,p=n.htmlSize,m=n.id,v=n.className,h=n.isValid,g=void 0!==h&&h,y=n.isInvalid,x=void 0!==y&&y,E=n.plaintext,w=n.readOnly,N=n.custom,C=n.as,P=void 0===C?"input":C,O=t(n,["bsPrefix","bsCustomPrefix","type","size","htmlSize","id","className","isValid","isInvalid","plaintext","readOnly","custom","as"]),k=(0,i.useContext)(Vr).controlId,R=N?[u,"custom"]:[c,"form-control"];if(c=b(R[0],R[1]),E)(l={})[c+"-plaintext"]=!0,a=l;else if("file"===d){var T;(T={})[c+"-file"]=!0,a=T}else if("range"===d){var S;(S={})[c+"-range"]=!0,a=S}else if("select"===P&&N){var M;(M={})[c+"-select"]=!0,M[c+"-select-"+f]=f,a=M}else{var I;(I={})[c]=!0,I[c+"-"+f]=f,a=I}return s().createElement(P,e({},O,{type:d,size:p,ref:o,readOnly:w,id:m||k,className:r()(v,a,g&&"is-valid",x&&"is-invalid")}))}));no.displayName="FormControl";const ro=Object.assign(no,{Feedback:zr});var oo=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.children,u=n.controlId,d=n.as,f=void 0===d?"div":d,p=t(n,["bsPrefix","className","children","controlId","as"]);a=b(a,"form-group");var m=(0,i.useMemo)((function(){return{controlId:u}}),[u]);return s().createElement(Vr.Provider,{value:m},s().createElement(f,e({},p,{ref:o,className:r()(l,a)}),c))}));oo.displayName="FormGroup";const ao=oo;var io=s().forwardRef((function(n,o){var a=n.as,l=void 0===a?"label":a,c=n.bsPrefix,u=n.column,d=n.srOnly,f=n.className,p=n.htmlFor,m=t(n,["as","bsPrefix","column","srOnly","className","htmlFor"]),v=(0,i.useContext)(Vr).controlId;c=b(c,"form-label");var h="col-form-label";"string"==typeof u&&(h=h+" "+h+"-"+u);var g=r()(f,c,d&&"sr-only",u&&h);return p=p||v,u?s().createElement(Tt,e({as:"label",className:g,htmlFor:p},m)):s().createElement(l,e({ref:o,className:g,htmlFor:p},m))}));io.displayName="FormLabel",io.defaultProps={column:!1,srOnly:!1};const so=io;var lo=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.as,c=void 0===l?"small":l,u=n.muted,d=t(n,["bsPrefix","className","as","muted"]);return a=b(a,"form-text"),s().createElement(c,e({},d,{ref:o,className:r()(i,a,u&&"text-muted")}))}));lo.displayName="FormText";const co=lo;var uo=s().forwardRef((function(t,n){return s().createElement($r,e({},t,{ref:n,type:"switch"}))}));uo.displayName="Switch",uo.Input=$r.Input,uo.Label=$r.Label;const fo=uo;var po=Pe("form-row"),mo=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.inline,l=n.className,c=n.validated,u=n.as,d=void 0===u?"form":u,f=t(n,["bsPrefix","inline","className","validated","as"]);return a=b(a,"form"),s().createElement(d,e({},f,{ref:o,className:r()(l,c&&"was-validated",i&&a+"-inline")}))}));mo.displayName="Form",mo.defaultProps={inline:!1},mo.Row=po,mo.Group=ao,mo.Control=ro,mo.Check=$r,mo.File=to,mo.Switch=fo,mo.Label=so,mo.Text=co;const vo=mo;var bo=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.fluid,l=n.as,c=void 0===l?"div":l,u=n.className,d=t(n,["bsPrefix","fluid","as","className"]),f=b(a,"container"),p="string"==typeof i?"-"+i:"-fluid";return s().createElement(c,e({ref:o},d,{className:r()(u,i?""+f+p:f)}))}));bo.displayName="Container",bo.defaultProps={fluid:!1};const ho=bo;var go={bsPrefix:D().string,fluid:D().bool,rounded:D().bool,roundedCircle:D().bool,thumbnail:D().bool},yo=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.fluid,c=n.rounded,u=n.roundedCircle,d=n.thumbnail,f=t(n,["bsPrefix","className","fluid","rounded","roundedCircle","thumbnail"]);a=b(a,"img");var p=r()(l&&a+"-fluid",c&&"rounded",u&&"rounded-circle",d&&a+"-thumbnail");return s().createElement("img",e({ref:o},f,{className:r()(i,p)}))}));yo.displayName="Image",yo.defaultProps={fluid:!1,rounded:!1,roundedCircle:!1,thumbnail:!1};const xo=yo;var Eo=s().forwardRef((function(n,o){var a=n.className,i=t(n,["className"]);return s().createElement(xo,e({ref:o},i,{className:r()(a,"figure-img")}))}));Eo.displayName="FigureImage",Eo.propTypes=go,Eo.defaultProps={fluid:!0};const wo=Eo,No=Pe("figure-caption",{Component:"figcaption"});var Co=Pe("figure",{Component:"figure"});Co.Image=wo,Co.Caption=No;const Po=Co;var Oo=Pe("input-group-append"),ko=Pe("input-group-prepend"),Ro=Pe("input-group-text",{Component:"span"}),To=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.size,l=n.hasValidation,c=n.className,u=n.as,d=void 0===u?"div":u,f=t(n,["bsPrefix","size","hasValidation","className","as"]);return a=b(a,"input-group"),s().createElement(d,e({ref:o},f,{className:r()(c,a,i&&a+"-"+i,l&&"has-validation")}))}));To.displayName="InputGroup";const So=e({},To,{Text:Ro,Radio:function(t){return s().createElement(Ro,null,s().createElement("input",e({type:"radio"},t)))},Checkbox:function(t){return s().createElement(Ro,null,s().createElement("input",e({type:"checkbox"},t)))},Append:Oo,Prepend:ko});var Mo=s().forwardRef((function(n,o){var a,i=n.as,l=void 0===i?"div":i,c=n.className,u=n.fluid,d=n.bsPrefix,f=t(n,["as","className","fluid","bsPrefix"]),p=((a={})[d=b(d,"jumbotron")]=!0,a[d+"-fluid"]=u,a);return s().createElement(l,e({ref:o},f,{className:r()(c,p)}))}));Mo.defaultProps={fluid:!1},Mo.displayName="Jumbotron";const Io=Mo,Do=s().createContext(null);var Fo=function(){};const Lo=s().forwardRef((function(n,r){var o,a,l=n.as,c=void 0===l?"ul":l,u=n.onSelect,d=n.activeKey,f=n.role,p=n.onKeyDown,m=t(n,["as","onSelect","activeKey","role","onKeyDown"]),v=Ft(),b=(0,i.useRef)(!1),h=(0,i.useContext)(y),x=(0,i.useContext)(Do);x&&(f=f||"tablist",d=x.activeKey,o=x.getControlledId,a=x.getControllerId);var E=(0,i.useRef)(null),w=function(e){var t=E.current;if(!t)return null;var n=It(t,"[data-rb-event-key]:not(.disabled)"),r=t.querySelector(".active");if(!r)return null;var o=n.indexOf(r);if(-1===o)return null;var a=o+e;return a>=n.length&&(a=0),a<0&&(a=n.length-1),n[a]},N=function(e,t){null!=e&&(u&&u(e,t),h&&h(e,t))};(0,i.useEffect)((function(){if(E.current&&b.current){var e=E.current.querySelector("[data-rb-event-key].active");e&&e.focus()}b.current=!1}));var C=yr(r,E);return s().createElement(y.Provider,{value:N},s().createElement(mr.Provider,{value:{role:f,activeKey:g(d),getControlledId:o||Fo,getControllerId:a||Fo}},s().createElement(c,e({},m,{onKeyDown:function(e){var t;switch(p&&p(e),e.key){case"ArrowLeft":case"ArrowUp":t=w(-1);break;case"ArrowRight":case"ArrowDown":t=w(1);break;default:return}t&&(e.preventDefault(),N(t.dataset.rbEventKey,e),b.current=!0,v())},ref:C,role:f}))))}));var Ao=s().forwardRef((function(n,o){var a=n.active,l=n.className,c=n.eventKey,u=n.onSelect,d=n.onClick,f=n.as,p=t(n,["active","className","eventKey","onSelect","onClick","as"]),m=g(c,p.href),v=(0,i.useContext)(y),b=(0,i.useContext)(mr),h=a;if(b){p.role||"tablist"!==b.role||(p.role="tab");var x=b.getControllerId(m),E=b.getControlledId(m);p["data-rb-event-key"]=m,p.id=x||p.id,p["aria-controls"]=E||p["aria-controls"],h=null==a&&null!=m?b.activeKey===m:a}"tab"===p.role&&(p.disabled&&(p.tabIndex=-1,p["aria-disabled"]=!0),p["aria-selected"]=h);var w=ve((function(e){d&&d(e),null!=m&&(u&&u(m,e),v&&v(m,e))}));return s().createElement(f,e({},p,{ref:o,onClick:w,className:r()(l,h&&"active")}))}));Ao.defaultProps={disabled:!1};const jo=Ao;var Bo=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.active,c=n.disabled,u=n.className,d=n.variant,f=n.action,p=n.as,m=n.eventKey,v=n.onClick,h=t(n,["bsPrefix","active","disabled","className","variant","action","as","eventKey","onClick"]);a=b(a,"list-group-item");var y=(0,i.useCallback)((function(e){if(c)return e.preventDefault(),void e.stopPropagation();v&&v(e)}),[c,v]);return c&&void 0===h.tabIndex&&(h.tabIndex=-1,h["aria-disabled"]=!0),s().createElement(jo,e({ref:o},h,{eventKey:g(m,h.href),as:p||(f?h.href?"a":"button":"div"),onClick:y,className:r()(u,a,l&&"active",c&&"disabled",d&&a+"-"+d,f&&a+"-action")}))}));Bo.defaultProps={variant:void 0,active:!1,disabled:!1},Bo.displayName="ListGroupItem";const Ko=Bo;var Ho=s().forwardRef((function(n,o){var a,i=p(n,{activeKey:"onSelect"}),l=i.className,c=i.bsPrefix,u=i.variant,d=i.horizontal,f=i.as,m=void 0===f?"div":f,v=t(i,["className","bsPrefix","variant","horizontal","as"]),h=b(c,"list-group");return a=d?!0===d?"horizontal":"horizontal-"+d:null,s().createElement(Lo,e({ref:o},v,{as:m,className:r()(l,h,u&&h+"-"+u,a&&h+"-"+a)}))}));Ho.defaultProps={variant:void 0,horizontal:void 0},Ho.displayName="ListGroup",Ho.Item=Ko;const _o=Ho;var zo=Pe("media-body"),Vo=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.as,c=void 0===l?"div":l,u=t(n,["bsPrefix","className","as"]),d=b(a,"media");return s().createElement(c,e({},u,{ref:o,className:r()(i,d)}))}));Vo.displayName="Media",Vo.Body=zo;const qo=Vo;var Uo;function Wo(e){if((!Uo&&0!==Uo||e)&&U){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),Uo=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Uo}function Go(e){void 0===e&&(e=C());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(t){return e.body}}function Xo(e,t){e.classList?e.classList.add(t):Nr(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function $o(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Yo(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=$o(e.className,t):e.setAttribute("class",$o(e.className&&e.className.baseVal||"",t))}function Jo(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function Zo(e){var t;return Jo(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=Jo(e)?C():C(e),n=Jo(e)||t.defaultView;return t.body.clientWidth<n.innerWidth}(e):e.scrollHeight>e.clientHeight}var Qo=["template","script","style"],ea=function(e,t,n){[].forEach.call(e.children,(function(e){var r,o,a;-1===t.indexOf(e)&&(o=(r=e).nodeType,a=r.tagName,1===o&&-1===Qo.indexOf(a.toLowerCase()))&&n(e)}))};function ta(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}const na=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,o=t.handleContainerOverflow,a=void 0===o||o;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=a,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=Wo()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return t=this.data,n=function(t){return-1!==t.modals.indexOf(e)},r=-1,t.some((function(e,t){return!!n(e)&&(r=t,!0)})),r;var t,n,r},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(T(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),T(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),o=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;ea(e,[n,r],(function(e){return ta(!0,e)}))}(t,e),-1!==o)return this.data[o].modals.push(e),r;var a={modals:[e],classes:n?n.split(/\s+/):[],overflowing:Zo(t)};return this.handleContainerOverflow&&this.setContainerStyle(a,t),a.classes.forEach(Xo.bind(null,t)),this.containers.push(t),this.data.push(a),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],o=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(Yo.bind(null,o)),this.handleContainerOverflow&&this.removeContainerStyle(r,o),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;ea(e,[n,r],(function(e){return ta(!1,e)}))}(o,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var a=r.modals[r.modals.length-1],i=a.backdrop;ta(!1,a.dialog),ta(!1,i)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}();var ra,oa=function(e){var t;return"undefined"==typeof document?null:null==e?C().body:("function"==typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function aa(e,t){var n=(0,i.useState)((function(){return oa(e)})),r=n[0],o=n[1];if(!r){var a=oa(e);a&&o(a)}return(0,i.useEffect)((function(){t&&r&&t(r)}),[t,r]),(0,i.useEffect)((function(){var t=oa(e);t!==r&&o(t)}),[e,r]),r}var ia=(0,i.forwardRef)((function(n,r){var o=n.show,a=void 0!==o&&o,l=n.role,c=void 0===l?"dialog":l,u=n.className,d=n.style,f=n.children,p=n.backdrop,m=void 0===p||p,v=n.keyboard,b=void 0===v||v,h=n.onBackdropClick,g=n.onEscapeKeyDown,y=n.transition,x=n.backdropTransition,E=n.autoFocus,w=void 0===E||E,N=n.enforceFocus,C=void 0===N||N,P=n.restoreFocus,O=void 0===P||P,k=n.restoreFocusOptions,R=n.renderDialog,T=n.renderBackdrop,S=void 0===T?function(e){return s().createElement("div",e)}:T,M=n.manager,I=n.container,D=n.containerClassName,F=n.onShow,A=n.onHide,j=void 0===A?function(){}:A,B=n.onExit,K=n.onExited,H=n.onExiting,_=n.onEnter,z=n.onEntering,V=n.onEntered,q=t(n,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),W=aa(I),G=function(e){var t=e||(ra||(ra=new na),ra),n=(0,i.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:(0,i.useCallback)((function(e){n.current.dialog=e}),[]),setBackdropRef:(0,i.useCallback)((function(e){n.current.backdrop=e}),[])})}(M),X=ft(),$=Dt(a),Y=(0,i.useState)(!a),Z=Y[0],Q=Y[1],ee=(0,i.useRef)(null);(0,i.useImperativeHandle)(r,(function(){return G}),[G]),U&&!$&&a&&(ee.current=Go()),y||a||Z?a&&Z&&Q(!1):Q(!0);var te=ve((function(){if(G.add(W,D),se.current=J(document,"keydown",ae),ie.current=J(document,"focus",(function(){return setTimeout(re)}),!0),F&&F(),w){var e=Go(document);G.dialog&&e&&!qn(G.dialog,e)&&(ee.current=e,G.dialog.focus())}})),ne=ve((function(){var e;G.remove(),null==se.current||se.current(),null==ie.current||ie.current(),O&&(null==(e=ee.current)||null==e.focus||e.focus(k),ee.current=null)}));(0,i.useEffect)((function(){a&&W&&te()}),[a,W,te]),(0,i.useEffect)((function(){Z&&ne()}),[Z,ne]),pt((function(){ne()}));var re=ve((function(){if(C&&X()&&G.isTopModal()){var e=Go();G.dialog&&e&&!qn(G.dialog,e)&&G.dialog.focus()}})),oe=ve((function(e){e.target===e.currentTarget&&(null==h||h(e),!0===m&&j())})),ae=ve((function(e){b&&27===e.keyCode&&G.isTopModal()&&(null==g||g(e),e.defaultPrevented||j())})),ie=(0,i.useRef)(),se=(0,i.useRef)(),le=y;if(!W||!(a||le&&!Z))return null;var ce=e({role:c,ref:G.setDialogRef,"aria-modal":"dialog"===c||void 0},q,{style:d,className:u,tabIndex:-1}),ue=R?R(ce):s().createElement("div",ce,s().cloneElement(f,{role:"document"}));le&&(ue=s().createElement(le,{appear:!0,unmountOnExit:!0,in:!!a,onExit:B,onExiting:H,onExited:function(){Q(!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==K||K.apply(void 0,t)},onEnter:_,onEntering:z,onEntered:V},ue));var de=null;if(m){var fe=x;de=S({ref:G.setBackdropRef,onClick:oe}),fe&&(de=s().createElement(fe,{appear:!0,in:!!a},de))}return s().createElement(s().Fragment,null,L().createPortal(s().createElement(s().Fragment,null,de,ue),W))})),sa={show:D().bool,container:D().any,onShow:D().func,onHide:D().func,backdrop:D().oneOfType([D().bool,D().oneOf(["static"])]),renderDialog:D().func,renderBackdrop:D().func,onEscapeKeyDown:D().func,onBackdropClick:D().func,containerClassName:D().string,keyboard:D().bool,transition:D().elementType,backdropTransition:D().elementType,autoFocus:D().bool,enforceFocus:D().bool,restoreFocus:D().bool,restoreFocusOptions:D().shape({preventScroll:D().bool}),onEnter:D().func,onEntering:D().func,onEntered:D().func,onExit:D().func,onExiting:D().func,onExited:D().func,manager:D().instanceOf(na)};ia.displayName="Modal",ia.propTypes=sa;const la=Object.assign(ia,{Manager:na});var ca=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ua=".sticky-top",da=".navbar-toggler",fa=function(e){function t(){return e.apply(this,arguments)||this}M(t,e);var n=t.prototype;return n.adjustAndStore=function(e,t,n){var r,o=t.style[e];t.dataset[e]=o,T(t,((r={})[e]=parseFloat(T(t,e))+n+"px",r))},n.restore=function(e,t){var n,r=t.dataset[e];void 0!==r&&(delete t.dataset[e],T(t,((n={})[e]=r,n)))},n.setContainerStyle=function(t,n){var r=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var o=Wo();It(n,ca).forEach((function(e){return r.adjustAndStore("paddingRight",e,o)})),It(n,ua).forEach((function(e){return r.adjustAndStore("marginRight",e,-o)})),It(n,da).forEach((function(e){return r.adjustAndStore("marginRight",e,o)}))}},n.removeContainerStyle=function(t,n){var r=this;e.prototype.removeContainerStyle.call(this,t,n),It(n,ca).forEach((function(e){return r.restore("paddingRight",e)})),It(n,ua).forEach((function(e){return r.restore("marginRight",e)})),It(n,da).forEach((function(e){return r.restore("marginRight",e)}))},t}(na);const pa=Pe("modal-body"),ma=s().createContext({onHide:function(){}});var va=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.contentClassName,c=n.centered,u=n.size,d=n.children,f=n.scrollable,p=t(n,["bsPrefix","className","contentClassName","centered","size","children","scrollable"]),m=(a=b(a,"modal"))+"-dialog";return s().createElement("div",e({},p,{ref:o,className:r()(m,i,u&&a+"-"+u,c&&m+"-centered",f&&m+"-scrollable")}),s().createElement("div",{className:r()(a+"-content",l)},d))}));va.displayName="ModalDialog";const ba=va,ha=Pe("modal-footer");var ga=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.closeLabel,c=n.closeButton,u=n.onHide,d=n.className,f=n.children,p=t(n,["bsPrefix","closeLabel","closeButton","onHide","className","children"]);a=b(a,"modal-header");var m=(0,i.useContext)(ma),v=ve((function(){m&&m.onHide(),u&&u()}));return s().createElement("div",e({ref:o},p,{className:r()(d,a)}),f,c&&s().createElement(we,{label:l,onClick:v}))}));ga.displayName="ModalHeader",ga.defaultProps={closeLabel:"Close",closeButton:!1};const ya=ga,xa=Pe("modal-title",{Component:Ne("h4")});var Ea,wa={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:ba};function Na(e){return s().createElement(ye,e)}function Ca(e){return s().createElement(ye,e)}var Pa=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.style,u=n.dialogClassName,d=n.contentClassName,f=n.children,p=n.dialogAs,m=n["aria-labelledby"],v=n.show,h=n.animation,g=n.backdrop,y=n.keyboard,x=n.onEscapeKeyDown,E=n.onShow,w=n.onHide,N=n.container,P=n.autoFocus,O=n.enforceFocus,k=n.restoreFocus,R=n.restoreFocusOptions,T=n.onEntered,S=n.onExit,M=n.onExiting,I=n.onEnter,D=n.onEntering,F=n.onExited,L=n.backdropClassName,A=n.manager,j=t(n,["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"]),B=(0,i.useState)({}),K=B[0],H=B[1],_=(0,i.useState)(!1),z=_[0],V=_[1],q=(0,i.useRef)(!1),W=(0,i.useRef)(!1),G=(0,i.useRef)(null),X=At(),J=X[0],Q=X[1],ee=ve(w);a=b(a,"modal"),(0,i.useImperativeHandle)(o,(function(){return{get _modal(){return J}}}),[J]);var te=(0,i.useMemo)((function(){return{onHide:ee}}),[ee]);function ne(){return A||(Ea||(Ea=new fa),Ea)}function re(e){if(U){var t=ne().isContainerOverflowing(J),n=e.scrollHeight>C(e).documentElement.clientHeight;H({paddingRight:t&&!n?Wo():void 0,paddingLeft:!t&&n?Wo():void 0})}}var oe=ve((function(){J&&re(J.dialog)}));pt((function(){Y(window,"resize",oe),G.current&&G.current()}));var ae=function(){q.current=!0},ie=function(e){q.current&&J&&e.target===J.dialog&&(W.current=!0),q.current=!1},se=function(){V(!0),G.current=Z(J.dialog,(function(){V(!1)}))},le=function(e){"static"!==g?W.current||e.target!==e.currentTarget?W.current=!1:w():function(e){e.target===e.currentTarget&&se()}(e)},ce=(0,i.useCallback)((function(t){return s().createElement("div",e({},t,{className:r()(a+"-backdrop",L,!h&&"show")}))}),[h,L,a]),ue=e({},c,K);return h||(ue.display="block"),s().createElement(ma.Provider,{value:te},s().createElement(la,{show:v,ref:Q,backdrop:g,container:N,keyboard:!0,autoFocus:P,enforceFocus:O,restoreFocus:k,restoreFocusOptions:R,onEscapeKeyDown:function(e){y||"static"!==g?y&&x&&x(e):(e.preventDefault(),se())},onShow:E,onHide:w,onEnter:function(e){e&&(e.style.display="block",re(e));for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];I&&I.apply(void 0,[e].concat(n))},onEntering:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];D&&D.apply(void 0,[e].concat(n)),$(window,"resize",oe)},onEntered:T,onExit:function(e){G.current&&G.current();for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];S&&S.apply(void 0,[e].concat(n))},onExiting:M,onExited:function(e){e&&(e.style.display="");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];F&&F.apply(void 0,n),Y(window,"resize",oe)},manager:ne(),containerClassName:a+"-open",transition:h?Na:void 0,backdropTransition:h?Ca:void 0,renderBackdrop:ce,renderDialog:function(t){return s().createElement("div",e({role:"dialog"},t,{style:ue,className:r()(l,a,z&&a+"-static"),onClick:g?le:void 0,onMouseUp:ie,"aria-labelledby":m}),s().createElement(p,e({},j,{onMouseDown:ae,className:u,contentClassName:d}),f))}}))}));Pa.displayName="Modal",Pa.defaultProps=wa,Pa.Body=pa,Pa.Header=ya,Pa.Title=xa,Pa.Footer=ha,Pa.Dialog=ba,Pa.TRANSITION_DURATION=300,Pa.BACKDROP_TRANSITION_DURATION=150;const Oa=Pa;var ka=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.children,c=n.as,u=void 0===c?"div":c,d=t(n,["bsPrefix","className","children","as"]);return a=b(a,"nav-item"),s().createElement(u,e({},d,{ref:o,className:r()(i,a)}),l)}));ka.displayName="NavItem";const Ra=ka;var Ta={disabled:!1,as:Re},Sa=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.disabled,l=n.className,c=n.href,u=n.eventKey,d=n.onSelect,f=n.as,p=t(n,["bsPrefix","disabled","className","href","eventKey","onSelect","as"]);return a=b(a,"nav-link"),s().createElement(jo,e({},p,{href:c,ref:o,eventKey:u,as:f,disabled:i,onSelect:d,className:r()(l,a,i&&"disabled")}))}));Sa.displayName="NavLink",Sa.defaultProps=Ta;const Ma=Sa;var Ia=s().forwardRef((function(n,o){var a,l,c,u=p(n,{activeKey:"onSelect"}),d=u.as,f=void 0===d?"div":d,m=u.bsPrefix,v=u.variant,h=u.fill,g=u.justify,y=u.navbar,x=u.className,E=u.children,w=u.activeKey,N=t(u,["as","bsPrefix","variant","fill","justify","navbar","className","children","activeKey"]),C=b(m,"nav"),P=!1,O=(0,i.useContext)(Er),k=(0,i.useContext)(Xe);return O?(l=O.bsPrefix,P=null==y||y):k&&(c=k.cardHeaderBsPrefix),s().createElement(Lo,e({as:f,ref:o,activeKey:w,className:r()(x,(a={},a[C]=!P,a[l+"-nav"]=P,a[c+"-"+v]=!!c,a[C+"-"+v]=!!v,a[C+"-fill"]=h,a[C+"-justified"]=g,a))},N),E)}));Ia.displayName="Nav",Ia.defaultProps={justify:!1,fill:!1},Ia.Item=Ra,Ia.Link=Ma;const Da=Ia;var Fa=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.as,c=t(n,["bsPrefix","className","as"]);a=b(a,"navbar-brand");var u=l||(c.href?"a":"span");return s().createElement(u,e({},c,{ref:o,className:r()(i,a)}))}));Fa.displayName="NavbarBrand";const La=Fa;var Aa=s().forwardRef((function(n,r){var o=n.children,a=n.bsPrefix,i=t(n,["children","bsPrefix"]);return a=b(a,"navbar-collapse"),s().createElement(Er.Consumer,null,(function(t){return s().createElement(ce,e({in:!(!t||!t.expanded)},i),s().createElement("div",{ref:r,className:a},o))}))}));Aa.displayName="NavbarCollapse";const ja=Aa;var Ba=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.children,u=n.label,d=n.as,f=void 0===d?"button":d,p=n.onClick,m=t(n,["bsPrefix","className","children","label","as","onClick"]);a=b(a,"navbar-toggler");var v=(0,i.useContext)(Er)||{},h=v.onToggle,g=v.expanded,y=ve((function(e){p&&p(e),h&&h()}));return"button"===f&&(m.type="button"),s().createElement(f,e({},m,{ref:o,onClick:y,"aria-label":u,className:r()(l,a,!g&&"collapsed")}),c||s().createElement("span",{className:a+"-icon"}))}));Ba.displayName="NavbarToggle",Ba.defaultProps={label:"Toggle navigation"};const Ka=Ba;var Ha=Pe("navbar-text",{Component:"span"}),_a=s().forwardRef((function(n,o){var a=p(n,{expanded:"onToggle"}),l=a.bsPrefix,c=a.expand,u=a.variant,d=a.bg,f=a.fixed,m=a.sticky,v=a.className,h=a.children,g=a.as,x=void 0===g?"nav":g,E=a.expanded,w=a.onToggle,N=a.onSelect,C=a.collapseOnSelect,P=t(a,["bsPrefix","expand","variant","bg","fixed","sticky","className","children","as","expanded","onToggle","onSelect","collapseOnSelect"]),O=b(l,"navbar"),k=(0,i.useCallback)((function(){N&&N.apply(void 0,arguments),C&&E&&w&&w(!1)}),[N,C,E,w]);void 0===P.role&&"nav"!==x&&(P.role="navigation");var R=O+"-expand";"string"==typeof c&&(R=R+"-"+c);var T=(0,i.useMemo)((function(){return{onToggle:function(){return w&&w(!E)},bsPrefix:O,expanded:!!E}}),[O,E,w]);return s().createElement(Er.Provider,{value:T},s().createElement(y.Provider,{value:k},s().createElement(x,e({ref:o},P,{className:r()(v,O,c&&R,u&&O+"-"+u,d&&"bg-"+d,m&&"sticky-"+m,f&&"fixed-"+f)}),h)))}));_a.defaultProps={expand:!0,variant:"light",collapseOnSelect:!1},_a.displayName="Navbar",_a.Brand=La,_a.Toggle=Ka,_a.Collapse=ja,_a.Text=Ha;const za=_a;var Va=s().forwardRef((function(n,o){var a=n.id,i=n.title,l=n.children,c=n.bsPrefix,u=n.className,d=n.rootCloseEvent,f=n.menuRole,p=n.disabled,m=n.active,v=n.renderMenuOnMount,h=t(n,["id","title","children","bsPrefix","className","rootCloseEvent","menuRole","disabled","active","renderMenuOnMount"]),g=b(void 0,"nav-item");return s().createElement(Ar,e({ref:o},h,{className:r()(u,g)}),s().createElement(Ar.Toggle,{id:a,eventKey:null,active:m,disabled:p,childBsPrefix:c,as:Ma},i),s().createElement(Ar.Menu,{role:f,renderOnMount:v,rootCloseEvent:d},l))}));Va.displayName="NavDropdown",Va.Item=Ar.Item,Va.ItemText=Ar.ItemText,Va.Divider=Ar.Divider,Va.Header=Ar.Header;const qa=Va;var Ua=s().forwardRef((function(n,r){var o=n.flip,a=n.offset,l=n.placement,c=n.containerPadding,u=void 0===c?5:c,d=n.popperConfig,f=void 0===d?{}:d,p=n.transition,m=At(),v=m[0],b=m[1],h=At(),g=h[0],y=h[1],x=yr(b,r),E=aa(n.container),w=aa(n.target),N=(0,i.useState)(!n.show),C=N[0],P=N[1],O=Vn(w,v,Zn({placement:l,enableEvents:!!n.show,containerPadding:u||5,flip:o,offset:a,arrowElement:g,popperConfig:f})),k=O.styles,R=O.attributes,T=t(O,["styles","attributes"]);n.show?C&&P(!1):n.transition||C||P(!0);var S=n.show||p&&!C;if(Yn(v,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!S)return null;var M=n.children(e({},T,{show:!!n.show,props:e({},R.popper,{style:k.popper,ref:x}),arrowProps:e({},R.arrow,{style:k.arrow,ref:y})}));if(p){var I=n.onExit,D=n.onExiting,F=n.onEnter,A=n.onEntering,j=n.onEntered;M=s().createElement(p,{in:n.show,appear:!0,onExit:I,onExiting:D,onExited:function(){P(!0),n.onExited&&n.onExited.apply(n,arguments)},onEnter:F,onEntering:A,onEntered:j},M)}return E?L().createPortal(M,E):null}));Ua.displayName="Overlay",Ua.propTypes={show:D().bool,placement:D().oneOf(fn),target:D().any,container:D().any,flip:D().bool,children:D().func.isRequired,containerPadding:D().number,popperConfig:D().object,rootClose:D().bool,rootCloseEvent:D().oneOf(["click","mousedown"]),rootCloseDisabled:D().bool,onHide:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;return e.rootClose?(o=D().func).isRequired.apply(o,[e].concat(n)):D().func.apply(D(),[e].concat(n))},transition:D().elementType,onEnter:D().func,onEntering:D().func,onEntered:D().func,onExit:D().func,onExiting:D().func,onExited:D().func};const Wa=Ua;var Ga={transition:ye,rootClose:!1,show:!1,placement:"top"};function Xa(n){var o=n.children,a=n.transition,l=n.popperConfig,c=void 0===l?{}:l,u=t(n,["children","transition","popperConfig"]),d=(0,i.useRef)({}),f=Pr(),p=f[0],m=f[1],v=!0===a?ye:a||null;return s().createElement(Wa,e({},u,{ref:p,popperConfig:e({},c,{modifiers:m.concat(c.modifiers||[])}),transition:v}),(function(n){var i,l=n.props,c=n.arrowProps,u=n.show,f=n.update,p=(n.forceUpdate,n.placement),m=n.state,v=t(n,["props","arrowProps","show","update","forceUpdate","placement","state"]);!function(e,t){var n=e.ref,r=t.ref;e.ref=n.__wrapped||(n.__wrapped=function(e){return n(Gn(e))}),t.ref=r.__wrapped||(r.__wrapped=function(e){return r(Gn(e))})}(l,c);var b=Object.assign(d.current,{state:m,scheduleUpdate:f,placement:p,outOfBoundaries:(null==m||null==(i=m.modifiersData.hide)?void 0:i.isReferenceHidden)||!1});return"function"==typeof o?o(e({},v,l,{placement:p,show:u},!a&&u&&{className:"show"},{popper:b,arrowProps:c})):s().cloneElement(o,e({},v,l,{placement:p,arrowProps:c,popper:b,className:r()(o.props.className,!a&&u&&"show"),style:e({},o.props.style,l.style)}))}))}Xa.defaultProps=Ga;const $a=Xa;var Ya=function(e){function t(){return e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){return this.props.children},t}(s().Component);function Ja(e,t,n){var r=t[0],o=r.currentTarget,a=r.relatedTarget||r.nativeEvent[n];a&&a===o||qn(o,a)||e.apply(void 0,t)}function Za(n){var r=n.trigger,o=n.overlay,a=n.children,l=n.popperConfig,c=void 0===l?{}:l,u=n.show,d=n.defaultShow,p=void 0!==d&&d,m=n.onToggle,v=n.delay,b=n.placement,h=n.flip,g=void 0===h?b&&-1!==b.indexOf("auto"):h,y=t(n,["trigger","overlay","children","popperConfig","show","defaultShow","onToggle","delay","placement","flip"]),x=(0,i.useRef)(null),E=bt(),w=(0,i.useRef)(""),N=f(u,p,m),C=N[0],P=N[1],O=function(e){return e&&"object"==typeof e?e:{show:e,hide:e}}(v),k="function"!=typeof a?s().Children.only(a).props:{},R=k.onFocus,T=k.onBlur,S=k.onClick,M=(0,i.useCallback)((function(){return Gn(x.current)}),[]),I=(0,i.useCallback)((function(){E.clear(),w.current="show",O.show?E.set((function(){"show"===w.current&&P(!0)}),O.show):P(!0)}),[O.show,P,E]),D=(0,i.useCallback)((function(){E.clear(),w.current="hide",O.hide?E.set((function(){"hide"===w.current&&P(!1)}),O.hide):P(!1)}),[O.hide,P,E]),F=(0,i.useCallback)((function(){I();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==R||R.apply(void 0,t)}),[I,R]),L=(0,i.useCallback)((function(){D();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==T||T.apply(void 0,t)}),[D,T]),A=(0,i.useCallback)((function(){P(!C),S&&S.apply(void 0,arguments)}),[S,P,C]),j=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Ja(I,t,"fromElement")}),[I]),B=(0,i.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Ja(D,t,"toElement")}),[D]),K=null==r?[]:[].concat(r),H={};return-1!==K.indexOf("click")&&(H.onClick=A),-1!==K.indexOf("focus")&&(H.onFocus=F,H.onBlur=L),-1!==K.indexOf("hover")&&(H.onMouseOver=j,H.onMouseOut=B),s().createElement(s().Fragment,null,"function"==typeof a?a(e({},H,{ref:x})):s().createElement(Ya,{ref:x},(0,i.cloneElement)(a,H)),s().createElement($a,e({},y,{show:C,onHide:D,flip:g,placement:b,popperConfig:c,target:M}),o))}Za.defaultProps={defaultShow:!1,trigger:["hover","focus"]};const Qa=Za;var ei=s().forwardRef((function(n,o){var a=n.active,i=n.disabled,l=n.className,c=n.style,u=n.activeLabel,d=n.children,f=t(n,["active","disabled","className","style","activeLabel","children"]),p=a||i?"span":Re;return s().createElement("li",{ref:o,style:c,className:r()(l,"page-item",{active:a,disabled:i})},s().createElement(p,e({className:"page-link",disabled:i},f),d,a&&u&&s().createElement("span",{className:"sr-only"},u)))}));ei.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"},ei.displayName="PageItem";const ti=ei;function ni(e,n,r){function o(e){var o=e.children,a=t(e,["children"]);return s().createElement(ei,a,s().createElement("span",{"aria-hidden":"true"},o||n),s().createElement("span",{className:"sr-only"},r))}return void 0===r&&(r=e),o.displayName=e,o}var ri=ni("First","«"),oi=ni("Prev","‹","Previous"),ai=ni("Ellipsis","…","More"),ii=ni("Next","›"),si=ni("Last","»"),li=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.children,c=n.size,u=t(n,["bsPrefix","className","children","size"]),d=b(a,"pagination");return s().createElement("ul",e({ref:o},u,{className:r()(i,d,c&&d+"-"+c)}),l)}));li.First=ri,li.Prev=oi,li.Ellipsis=ai,li.Item=ti,li.Next=ii,li.Last=si;const ci=li,ui=s().forwardRef((function(n,o){var a=n.as,i=void 0===a?"div":a,l=n.bsPrefix,c=n.className,u=n.children,d=t(n,["as","bsPrefix","className","children"]);return l=b(l,"popover-header"),s().createElement(i,e({ref:o},d,{className:r()(l,c)}),u)})),di=s().forwardRef((function(n,o){var a=n.as,i=void 0===a?"div":a,l=n.bsPrefix,c=n.className,u=n.children,d=t(n,["as","bsPrefix","className","children"]);return l=b(l,"popover-body"),s().createElement(i,e({ref:o},d,{className:r()(c,l)}),u)}));var fi=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.placement,l=n.className,c=n.style,u=n.children,d=n.content,f=n.arrowProps,p=(n.popper,n.show,t(n,["bsPrefix","placement","className","style","children","content","arrowProps","popper","show"])),m=b(a,"popover"),v=((null==i?void 0:i.split("-"))||[])[0];return s().createElement("div",e({ref:o,role:"tooltip",style:c,"x-placement":v,className:r()(l,m,v&&"bs-popover-"+v)},p),s().createElement("div",e({className:"arrow"},f)),d?s().createElement(di,null,u):u)}));fi.defaultProps={placement:"right"},fi.Title=ui,fi.Content=di;const pi=fi;function mi(e,t,n){var r=(e-t)/(n-t)*100;return Math.round(1e3*r)/1e3}function vi(n,o){var a,i=n.min,l=n.now,c=n.max,u=n.label,d=n.srOnly,f=n.striped,p=n.animated,m=n.className,v=n.style,b=n.variant,h=n.bsPrefix,g=t(n,["min","now","max","label","srOnly","striped","animated","className","style","variant","bsPrefix"]);return s().createElement("div",e({ref:o},g,{role:"progressbar",className:r()(m,h+"-bar",(a={},a["bg-"+b]=b,a[h+"-bar-animated"]=p,a[h+"-bar-striped"]=p||f,a)),style:e({width:mi(l,i,c)+"%"},v),"aria-valuenow":l,"aria-valuemin":i,"aria-valuemax":c}),d?s().createElement("span",{className:"sr-only"},u):u)}var bi=s().forwardRef((function(n,o){var a=n.isChild,l=t(n,["isChild"]);if(l.bsPrefix=b(l.bsPrefix,"progress"),a)return vi(l,o);var c=l.min,u=l.now,d=l.max,f=l.label,p=l.srOnly,m=l.striped,v=l.animated,h=l.bsPrefix,g=l.variant,y=l.className,x=l.children,E=t(l,["min","now","max","label","srOnly","striped","animated","bsPrefix","variant","className","children"]);return s().createElement("div",e({ref:o},E,{className:r()(y,h)}),x?xt(x,(function(e){return(0,i.cloneElement)(e,{isChild:!0})})):vi({min:c,now:u,max:d,label:f,srOnly:p,striped:m,animated:v,bsPrefix:h,variant:g},o))}));bi.displayName="ProgressBar",bi.defaultProps={min:0,max:100,animated:!1,isChild:!1,srOnly:!1,striped:!1};const hi=bi;var gi=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.children,c=n.aspectRatio,u=t(n,["bsPrefix","className","children","aspectRatio"]),d=b(a,"embed-responsive"),f=s().Children.only(l);return s().createElement("div",e({ref:o},u,{className:r()(d,i,c&&d+"-"+c)}),s().cloneElement(f,{className:r()(f.props.className,d+"-item")}))}));gi.defaultProps={aspectRatio:"1by1"};const yi=gi;var xi=["xl","lg","md","sm","xs"],Ei=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.noGutters,c=n.as,u=void 0===c?"div":c,d=t(n,["bsPrefix","className","noGutters","as"]),f=b(a,"row"),p=f+"-cols",m=[];return xi.forEach((function(e){var t,n=d[e];delete d[e];var r="xs"!==e?"-"+e:"";null!=(t=null!=n&&"object"==typeof n?n.cols:n)&&m.push(""+p+r+"-"+t)})),s().createElement(u,e({ref:o},d,{className:r().apply(void 0,[i,f,l&&"no-gutters"].concat(m))}))}));Ei.displayName="Row",Ei.defaultProps={noGutters:!1};const wi=Ei;var Ni=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.variant,l=n.animation,c=n.size,u=n.children,d=n.as,f=void 0===d?"div":d,p=n.className,m=t(n,["bsPrefix","variant","animation","size","children","as","className"]),v=(a=b(a,"spinner"))+"-"+l;return s().createElement(f,e({ref:o},m,{className:r()(p,v,c&&v+"-"+c,i&&"text-"+i)}),u)}));Ni.displayName="Spinner";const Ci=Ni;var Pi={id:D().any,toggleLabel:D().string,href:D().string,target:D().string,onClick:D().func,title:D().node.isRequired,type:D().string,disabled:D().bool,menuAlign:kr,menuRole:D().string,renderMenuOnMount:D().bool,rootCloseEvent:D().string,bsPrefix:D().string,variant:D().string,size:D().string},Oi=s().forwardRef((function(n,r){var o=n.id,a=n.bsPrefix,i=n.size,l=n.variant,c=n.title,u=n.type,d=n.toggleLabel,f=n.children,p=n.onClick,m=n.href,v=n.target,b=n.menuAlign,h=n.menuRole,g=n.renderMenuOnMount,y=n.rootCloseEvent,x=t(n,["id","bsPrefix","size","variant","title","type","toggleLabel","children","onClick","href","target","menuAlign","menuRole","renderMenuOnMount","rootCloseEvent"]);return s().createElement(Ar,e({ref:r},x,{as:qe}),s().createElement(ze,{size:i,variant:l,disabled:x.disabled,bsPrefix:a,href:m,target:v,onClick:p,type:u},c),s().createElement(Ar.Toggle,{split:!0,id:o?o.toString():void 0,size:i,variant:l,disabled:x.disabled,childBsPrefix:a},s().createElement("span",{className:"sr-only"},d)),s().createElement(Ar.Menu,{align:b,role:h,renderOnMount:g,rootCloseEvent:y},f))}));Oi.propTypes=Pi,Oi.defaultProps={toggleLabel:"Toggle dropdown",type:"button"},Oi.displayName="SplitButton";const ki=Oi,Ri=function(e){var t=p(e,{activeKey:"onSelect"}),n=t.id,r=t.generateChildId,o=t.onSelect,a=t.activeKey,l=t.transition,c=t.mountOnEnter,u=t.unmountOnExit,d=t.children,f=(0,i.useMemo)((function(){return r||function(e,t){return n?n+"-"+t+"-"+e:null}}),[n,r]),m=(0,i.useMemo)((function(){return{onSelect:o,activeKey:a,transition:l,mountOnEnter:c||!1,unmountOnExit:u||!1,getControlledId:function(e){return f(e,"tabpane")},getControllerId:function(e){return f(e,"tab")}}}),[o,a,l,c,u,f]);return s().createElement(Do.Provider,{value:m},s().createElement(y.Provider,{value:o||null},d))},Ti=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.as,l=void 0===i?"div":i,c=n.className,u=t(n,["bsPrefix","as","className"]),d=b(a,"tab-content");return s().createElement(l,e({ref:o},u,{className:r()(c,d)}))}));var Si=s().forwardRef((function(n,o){var a=function(n){var r=(0,i.useContext)(Do);if(!r)return n;var o=r.activeKey,a=r.getControlledId,s=r.getControllerId,l=t(r,["activeKey","getControlledId","getControllerId"]),c=!1!==n.transition&&!1!==l.transition,u=g(n.eventKey);return e({},n,{active:null==n.active&&null!=u?g(o)===u:n.active,id:a(n.eventKey),"aria-labelledby":s(n.eventKey),transition:c&&(n.transition||l.transition||ye),mountOnEnter:null!=n.mountOnEnter?n.mountOnEnter:l.mountOnEnter,unmountOnExit:null!=n.unmountOnExit?n.unmountOnExit:l.unmountOnExit})}(n),l=a.bsPrefix,c=a.className,u=a.active,d=a.onEnter,f=a.onEntering,p=a.onEntered,m=a.onExit,v=a.onExiting,h=a.onExited,x=a.mountOnEnter,E=a.unmountOnExit,w=a.transition,N=a.as,C=void 0===N?"div":N,P=(a.eventKey,t(a,["bsPrefix","className","active","onEnter","onEntering","onEntered","onExit","onExiting","onExited","mountOnEnter","unmountOnExit","transition","as","eventKey"])),O=b(l,"tab-pane");if(!u&&!w&&E)return null;var k=s().createElement(C,e({},P,{ref:o,role:"tabpanel","aria-hidden":!u,className:r()(c,O,{active:u})}));return w&&(k=s().createElement(w,{in:u,onEnter:d,onEntering:f,onEntered:p,onExit:m,onExiting:v,onExited:h,mountOnEnter:x,unmountOnExit:E},k)),s().createElement(Do.Provider,{value:null},s().createElement(y.Provider,{value:null},k))}));Si.displayName="TabPane";const Mi=Si;var Ii=function(e){function t(){return e.apply(this,arguments)||this}return M(t,e),t.prototype.render=function(){throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")},t}(s().Component);Ii.Container=Ri,Ii.Content=Ti,Ii.Pane=Mi;const Di=Ii,Fi=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.className,l=n.striped,c=n.bordered,u=n.borderless,d=n.hover,f=n.size,p=n.variant,m=n.responsive,v=t(n,["bsPrefix","className","striped","bordered","borderless","hover","size","variant","responsive"]),h=b(a,"table"),g=r()(i,h,p&&h+"-"+p,f&&h+"-"+f,l&&h+"-striped",c&&h+"-bordered",u&&h+"-borderless",d&&h+"-hover"),y=s().createElement("table",e({},v,{className:g,ref:o}));if(m){var x=h+"-responsive";return"string"==typeof m&&(x=x+"-"+m),s().createElement("div",{className:x},y)}return y}));function Li(e){var t=e.props,n=t.title,r=t.eventKey,o=t.disabled,a=t.tabClassName,i=t.id;return null==n?null:s().createElement(Ra,{as:Ma,eventKey:r,disabled:o,id:i,className:a},n)}var Ai=function(n){var r=p(n,{activeKey:"onSelect"}),o=r.id,a=r.onSelect,i=r.transition,l=r.mountOnEnter,c=r.unmountOnExit,u=r.children,d=r.activeKey,f=void 0===d?function(e){var t;return Et(e,(function(e){null==t&&(t=e.props.eventKey)})),t}(u):d,m=t(r,["id","onSelect","transition","mountOnEnter","unmountOnExit","children","activeKey"]);return s().createElement(Ri,{id:o,activeKey:f,onSelect:a,transition:i,mountOnEnter:l,unmountOnExit:c},s().createElement(Da,e({},m,{role:"tablist",as:"nav"}),xt(u,Li)),s().createElement(Ti,null,xt(u,(function(t){var n=e({},t.props);return delete n.title,delete n.disabled,delete n.tabClassName,s().createElement(Mi,n)}))))};Ai.defaultProps={variant:"tabs",mountOnEnter:!1,unmountOnExit:!1},Ai.displayName="Tabs";const ji=Ai,Bi=s().createContext({onClose:function(){}});var Ki=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.closeLabel,c=n.closeButton,u=n.className,d=n.children,f=t(n,["bsPrefix","closeLabel","closeButton","className","children"]);a=b(a,"toast-header");var p=(0,i.useContext)(Bi),m=ve((function(e){p&&p.onClose&&p.onClose(e)}));return s().createElement("div",e({ref:o},f,{className:r()(a,u)}),d,c&&s().createElement(we,{label:l,onClick:m,className:"ml-2 mb-1","data-dismiss":"toast"}))}));Ki.displayName="ToastHeader",Ki.defaultProps={closeLabel:"Close",closeButton:!0};const Hi=Ki,_i=Pe("toast-body");var zi=s().forwardRef((function(n,o){var a=n.bsPrefix,l=n.className,c=n.children,u=n.transition,d=void 0===u?ye:u,f=n.show,p=void 0===f||f,m=n.animation,v=void 0===m||m,h=n.delay,g=void 0===h?3e3:h,y=n.autohide,x=void 0!==y&&y,E=n.onClose,w=t(n,["bsPrefix","className","children","transition","show","animation","delay","autohide","onClose"]);a=b(a,"toast");var N=(0,i.useRef)(g),C=(0,i.useRef)(E);(0,i.useEffect)((function(){N.current=g,C.current=E}),[g,E]);var P=bt(),O=!(!x||!p),k=(0,i.useCallback)((function(){O&&(null==C.current||C.current())}),[O]);(0,i.useEffect)((function(){P.set(k,N.current)}),[P,k]);var R=(0,i.useMemo)((function(){return{onClose:E}}),[E]),T=!(!d||!v),S=s().createElement("div",e({},w,{ref:o,className:r()(a,l,!T&&(p?"show":"hide")),role:"alert","aria-live":"assertive","aria-atomic":"true"}),c);return s().createElement(Bi.Provider,{value:R},T&&d?s().createElement(d,{in:p,unmountOnExit:!0},S):S)}));zi.displayName="Toast";const Vi=Object.assign(zi,{Body:_i,Header:Hi});var qi=function(){},Ui=s().forwardRef((function(n,o){var a=n.children,l=n.name,c=n.className,u=n.checked,d=n.type,f=n.onChange,p=n.value,m=n.disabled,v=n.inputRef,b=t(n,["children","name","className","checked","type","onChange","value","disabled","inputRef"]),h=(0,i.useState)(!1),g=h[0],y=h[1],x=(0,i.useCallback)((function(e){"INPUT"===e.target.tagName&&y(!0)}),[]),E=(0,i.useCallback)((function(e){"INPUT"===e.target.tagName&&y(!1)}),[]);return s().createElement(ze,e({},b,{ref:o,className:r()(c,g&&"focus",m&&"disabled"),type:void 0,active:!!u,as:"label"}),s().createElement("input",{name:l,type:d,value:p,ref:v,autoComplete:"off",checked:!!u,disabled:!!m,onFocus:x,onBlur:E,onChange:f||qi}),a)}));Ui.displayName="ToggleButton";const Wi=Ui;var Gi=s().forwardRef((function(n,r){var o=p(n,{value:"onChange"}),a=o.children,i=o.type,l=o.name,u=o.value,d=o.onChange,f=t(o,["children","type","name","value","onChange"]),m=function(){return null==u?[]:[].concat(u)};return"radio"!==i||l||c()(!1),s().createElement(qe,e({},f,{ref:r,toggle:!0}),xt(a,(function(e){var t=m(),n=e.props,r=n.value,o=n.onChange;return s().cloneElement(e,{type:i,name:e.name||l,checked:-1!==t.indexOf(r),onChange:te(o,(function(e){return function(e,t){if(d){var n=m(),r=-1!==n.indexOf(e);"radio"!==i?d(r?n.filter((function(t){return t!==e})):[].concat(n,[e]),t):!r&&d&&d(e,t)}}(r,e)}))})})))}));Gi.defaultProps={type:"radio",vertical:!1},Gi.Button=Wi;const Xi=Gi;var $i=s().forwardRef((function(n,o){var a=n.bsPrefix,i=n.placement,l=n.className,c=n.style,u=n.children,d=n.arrowProps,f=(n.popper,n.show,t(n,["bsPrefix","placement","className","style","children","arrowProps","popper","show"]));a=b(a,"tooltip");var p=((null==i?void 0:i.split("-"))||[])[0];return s().createElement("div",e({ref:o,style:c,role:"tooltip","x-placement":p,className:r()(l,a,"bs-tooltip-"+p)},f),s().createElement("div",e({className:"arrow"},d)),s().createElement("div",{className:a+"-inner"},u))}));$i.defaultProps={placement:"right"},$i.displayName="Tooltip";const Yi=$i})(),a})()}));