react-luminus-components 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +52 -52
- package/dist/{useAxios-ZEhq7C_H.js → HomeDashboard.module-BI8obEZ_.js} +30 -30
- package/dist/{useAxios-BU-BqYrK.mjs → HomeDashboard.module-CuVVnp4t.mjs} +220 -219
- package/dist/Modal-DmUjIS_Q.js +1 -0
- package/dist/{Modal-_FnSEPRk.mjs → Modal-DsY3WNWM.mjs} +2 -2
- package/dist/SimpleTooltip-CqpIzhpc.js +1 -0
- package/dist/{SimpleTooltip-BjlbHsKC.mjs → SimpleTooltip-vqBAkdBP.mjs} +2 -2
- package/dist/components/common/HomeDashboard/HomeDashboard.d.ts +1 -3
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +2 -1
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +3 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +40 -38
- package/dist/{hasClass-3JW9Qluf.mjs → hasClass-D3KZs5y_.mjs} +1 -1
- package/dist/{hasClass-6m1Qq_DA.js → hasClass-DABt6TfW.js} +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +70 -70
- package/dist/useConfirm-CQCMwQlb.js +1 -0
- package/dist/{useConfirm-DH9Pmz_w.mjs → useConfirm-Yw2xz-A-.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Modal-JLnYbEat.js +0 -1
- package/dist/SimpleTooltip-D9shMl1R.js +0 -1
- package/dist/useConfirm-BazFQNRI.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./HomeDashboard.module-BI8obEZ_.js"),o=require("./hasClass-DABt6TfW.js"),d=require("react"),Le=require("react-dom");function We(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const a=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,a.get?a:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const m=We(d),Ie=()=>n.jsxRuntimeExports.jsxs("div",{className:n.classNames("luminus-loading",n.classes.loading),children:[n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary"),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary",n.classes.second),role:"status"}),n.jsxRuntimeExports.jsx("div",{className:n.classNames("spinner-grow",n.classes.spinnerGrow,"text-primary",n.classes.third),role:"status"})]}),_e=({variant:t,className:e,children:s})=>{switch(t){case"h1":return n.jsxRuntimeExports.jsx("h1",{className:n.classNames("luminus-text-primary",n.classes$1.h1,e),children:s});case"h3":return n.jsxRuntimeExports.jsx("h3",{className:n.classNames("luminus-text",n.classes$1.h3,e),children:s});case"h6":return n.jsxRuntimeExports.jsx("h6",{className:n.classNames("luminus-text",n.classes$1.h6,e),children:s});case"subtitle":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text",n.classes$1.subtitle,e),children:s});case"body":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text",n.classes$1.body,e),children:s});case"body2":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text",n.classes$1.body2,e),children:s});case"caption":return n.jsxRuntimeExports.jsx("div",{className:n.classNames("luminus-text-muted",n.classes$1.caption,e),children:s});default:return n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:s})}},He=({variant:t,className:e,children:s})=>n.jsxRuntimeExports.jsx(_e,{variant:t,className:e,children:s}),Ue=t=>m.forwardRef((e,s)=>n.jsxRuntimeExports.jsx("div",{...e,ref:s,className:n.classNames(e.className,t)}));function ye(t){const e=d.useRef(null);return d.useEffect(()=>{e.current=t}),e.current}const Ke={"aria-label":o.PropTypes.string,onClick:o.PropTypes.func,variant:o.PropTypes.oneOf(["white"])},me=m.forwardRef(({className:t,variant:e,"aria-label":s="Close",...a},r)=>n.jsxRuntimeExports.jsx("button",{ref:r,type:"button",className:n.classNames("btn-close",e&&`btn-close-${e}`,t),"aria-label":s,...a}));me.displayName="CloseButton";me.propTypes=Ke;const Ge=me;var qe=Function.prototype.bind.call(Function.prototype.call,[].slice);function j(t,e){return qe(t.querySelectorAll(e))}const Pe="data-rr-ui-";function Re(t){return`${Pe}${t}`}var J;function ge(t){if((!J&&J!==0||t)&&o.canUseDOM){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),J=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return J}function ce(t){t===void 0&&(t=o.ownerDocument());try{var e=t.activeElement;return!e||!e.nodeName?null:e}catch{return t.body}}function ze(t=document){const e=t.defaultView;return Math.abs(e.innerWidth-t.documentElement.clientWidth)}const xe=Re("modal-open");class Ve{constructor({ownerDocument:e,handleContainerOverflow:s=!0,isRTL:a=!1}={}){this.handleContainerOverflow=s,this.isRTL=a,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return ze(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const s={overflow:"hidden"},a=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[a]:r.style[a]},e.scrollBarWidth&&(s[a]=`${parseInt(o.style(r,a)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(xe,""),o.style(r,s)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const s=this.getElement();s.removeAttribute(xe),Object.assign(s.style,e.style)}add(e){let s=this.modals.indexOf(e);return s!==-1||(s=this.modals.length,this.modals.push(e),this.setModalAttributes(e),s!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),s}remove(e){const s=this.modals.indexOf(e);s!==-1&&(this.modals.splice(s,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const fe=Ve,Xe=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function Ye(t,e){if(t==null)return{};var s={},a=Object.keys(t),r,l;for(l=0;l<a.length;l++)r=a[l],!(e.indexOf(r)>=0)&&(s[r]=t[r]);return s}let de;function Je(t){return de||(de=new fe({ownerDocument:t==null?void 0:t.document})),de}function Qe(t){const e=o.useWindow(),s=t||Je(e),a=d.useRef({dialog:null,backdrop:null});return Object.assign(a.current,{add:()=>s.add(a.current),remove:()=>s.remove(a.current),isTopModal:()=>s.isTopModal(a.current),setDialogRef:d.useCallback(r=>{a.current.dialog=r},[]),setBackdropRef:d.useCallback(r=>{a.current.backdrop=r},[])})}const ve=d.forwardRef((t,e)=>{let{show:s=!1,role:a="dialog",className:r,style:l,children:E,backdrop:p=!0,keyboard:y=!0,onBackdropClick:N,onEscapeKeyDown:h,transition:S,runTransition:R,backdropTransition:b,runBackdropTransition:Q,autoFocus:_=!0,enforceFocus:Z=!0,restoreFocus:T=!0,restoreFocusOptions:ee,renderDialog:H,renderBackdrop:te=c=>n.jsxRuntimeExports.jsx("div",Object.assign({},c)),manager:se,container:ne,onShow:U,onHide:D=()=>{},onExit:oe,onExited:$,onExiting:K,onEnter:G,onEntering:q,onEntered:P}=t,ae=Ye(t,Xe);const g=o.useWindow(),M=o.useWaitForDOMRef(ne),u=Qe(se),re=o.useMounted(),z=ye(s),[v,w]=d.useState(!s),f=d.useRef(null);d.useImperativeHandle(e,()=>u,[u]),o.canUseDOM&&!z&&s&&(f.current=ce(g==null?void 0:g.document)),s&&v&&w(!1);const x=o.useEventCallback(()=>{if(u.add(),C.current=o.listen(document,"keydown",le),L.current=o.listen(document,"focus",()=>setTimeout(ie),!0),U&&U(),_){var c,Y;const I=ce((c=(Y=u.dialog)==null?void 0:Y.ownerDocument)!=null?c:g==null?void 0:g.document);u.dialog&&I&&!o.contains(u.dialog,I)&&(f.current=I,u.dialog.focus())}}),F=o.useEventCallback(()=>{if(u.remove(),C.current==null||C.current(),L.current==null||L.current(),T){var c;(c=f.current)==null||c.focus==null||c.focus(ee),f.current=null}});d.useEffect(()=>{!s||!M||x()},[s,M,x]),d.useEffect(()=>{v&&F()},[v,F]),o.useWillUnmount(()=>{F()});const ie=o.useEventCallback(()=>{if(!Z||!re()||!u.isTopModal())return;const c=ce(g==null?void 0:g.document);u.dialog&&c&&!o.contains(u.dialog,c)&&u.dialog.focus()}),V=o.useEventCallback(c=>{c.target===c.currentTarget&&(N==null||N(c),p===!0&&D())}),le=o.useEventCallback(c=>{y&&o.isEscKey(c)&&u.isTopModal()&&(h==null||h(c),c.defaultPrevented||D())}),L=d.useRef(),C=d.useRef(),X=(...c)=>{w(!0),$==null||$(...c)};if(!M)return null;const k=Object.assign({role:a,ref:u.setDialogRef,"aria-modal":a==="dialog"?!0:void 0},ae,{style:l,className:r,tabIndex:-1});let W=H?H(k):n.jsxRuntimeExports.jsx("div",Object.assign({},k,{children:m.cloneElement(E,{role:"document"})}));W=o.renderTransition(S,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!s,onExit:oe,onExiting:K,onExited:X,onEnter:G,onEntering:q,onEntered:P,children:W});let O=null;return p&&(O=te({ref:u.setBackdropRef,onClick:V}),O=o.renderTransition(b,Q,{in:!!s,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:O})),n.jsxRuntimeExports.jsx(n.jsxRuntimeExports.Fragment,{children:Le.createPortal(n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[O,W]}),M)})});ve.displayName="Modal";const Ze=Object.assign(ve,{Manager:fe});function et(t,e){t.classList?t.classList.add(e):o.hasClass(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function Ee(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function tt(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=Ee(t.className,e):t.setAttribute("class",Ee(t.className&&t.className.baseVal||"",e))}const A={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class st extends fe{adjustAndStore(e,s,a){const r=s.style[e];s.dataset[e]=r,o.style(s,{[e]:`${parseFloat(o.style(s,e))+a}px`})}restore(e,s){const a=s.dataset[e];a!==void 0&&(delete s.dataset[e],o.style(s,{[e]:a}))}setContainerStyle(e){super.setContainerStyle(e);const s=this.getElement();if(et(s,"modal-open"),!e.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,A.FIXED_CONTENT).forEach(l=>this.adjustAndStore(a,l,e.scrollBarWidth)),j(s,A.STICKY_CONTENT).forEach(l=>this.adjustAndStore(r,l,-e.scrollBarWidth)),j(s,A.NAVBAR_TOGGLER).forEach(l=>this.adjustAndStore(r,l,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const s=this.getElement();tt(s,"modal-open");const a=this.isRTL?"paddingLeft":"paddingRight",r=this.isRTL?"marginLeft":"marginRight";j(s,A.FIXED_CONTENT).forEach(l=>this.restore(a,l)),j(s,A.STICKY_CONTENT).forEach(l=>this.restore(r,l)),j(s,A.NAVBAR_TOGGLER).forEach(l=>this.restore(r,l))}}let ue;function nt(t){return ue||(ue=new st(t)),ue}const je=m.forwardRef(({className:t,bsPrefix:e,as:s="div",...a},r)=>(e=o.useBootstrapPrefix(e,"modal-body"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));je.displayName="ModalBody";const ot=je,at=m.createContext({onHide(){}}),Ne=at,be=m.forwardRef(({bsPrefix:t,className:e,contentClassName:s,centered:a,size:r,fullscreen:l,children:E,scrollable:p,...y},N)=>{t=o.useBootstrapPrefix(t,"modal");const h=`${t}-dialog`,S=typeof l=="string"?`${t}-fullscreen-${l}`:`${t}-fullscreen`;return n.jsxRuntimeExports.jsx("div",{...y,ref:N,className:n.classNames(h,e,r&&`${t}-${r}`,a&&`${h}-centered`,p&&`${h}-scrollable`,l&&S),children:n.jsxRuntimeExports.jsx("div",{className:n.classNames(`${t}-content`,s),children:E})})});be.displayName="ModalDialog";const Te=be,Me=m.forwardRef(({className:t,bsPrefix:e,as:s="div",...a},r)=>(e=o.useBootstrapPrefix(e,"modal-footer"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));Me.displayName="ModalFooter";const rt=Me,it=m.forwardRef(({closeLabel:t="Close",closeVariant:e,closeButton:s=!1,onHide:a,children:r,...l},E)=>{const p=d.useContext(Ne),y=o.useEventCallback(()=>{p==null||p.onHide(),a==null||a()});return n.jsxRuntimeExports.jsxs("div",{ref:E,...l,children:[r,s&&n.jsxRuntimeExports.jsx(Ge,{"aria-label":t,variant:e,onClick:y})]})}),lt=it,we=m.forwardRef(({bsPrefix:t,className:e,closeLabel:s="Close",closeButton:a=!1,...r},l)=>(t=o.useBootstrapPrefix(t,"modal-header"),n.jsxRuntimeExports.jsx(lt,{ref:l,...r,className:n.classNames(e,t),closeLabel:s,closeButton:a})));we.displayName="ModalHeader";const ct=we,dt=Ue("h4"),Ce=m.forwardRef(({className:t,bsPrefix:e,as:s=dt,...a},r)=>(e=o.useBootstrapPrefix(e,"modal-title"),n.jsxRuntimeExports.jsx(s,{ref:r,className:n.classNames(t,e),...a})));Ce.displayName="ModalTitle";const ut=Ce;function mt(t){return n.jsxRuntimeExports.jsx(o.Fade,{...t,timeout:null})}function ft(t){return n.jsxRuntimeExports.jsx(o.Fade,{...t,timeout:null})}const ke=m.forwardRef(({bsPrefix:t,className:e,style:s,dialogClassName:a,contentClassName:r,children:l,dialogAs:E=Te,"data-bs-theme":p,"aria-labelledby":y,"aria-describedby":N,"aria-label":h,show:S=!1,animation:R=!0,backdrop:b=!0,keyboard:Q=!0,onEscapeKeyDown:_,onShow:Z,onHide:T,container:ee,autoFocus:H=!0,enforceFocus:te=!0,restoreFocus:se=!0,restoreFocusOptions:ne,onEntered:U,onExit:D,onExiting:oe,onEnter:$,onEntering:K,onExited:G,backdropClassName:q,manager:P,...ae},g)=>{const[M,u]=d.useState({}),[re,z]=d.useState(!1),v=d.useRef(!1),w=d.useRef(!1),f=d.useRef(null),[x,F]=o.useCallbackRef(),ie=o.useMergedRefs(g,F),V=o.useEventCallback(T),le=o.useIsRTL();t=o.useBootstrapPrefix(t,"modal");const L=d.useMemo(()=>({onHide:V}),[V]);function C(){return P||nt({isRTL:le})}function X(i){if(!o.canUseDOM)return;const B=C().getScrollbarWidth()>0,he=i.scrollHeight>o.ownerDocument(i).documentElement.clientHeight;u({paddingRight:B&&!he?ge():void 0,paddingLeft:!B&&he?ge():void 0})}const k=o.useEventCallback(()=>{x&&X(x.dialog)});o.useWillUnmount(()=>{o.removeEventListener(window,"resize",k),f.current==null||f.current()});const W=()=>{v.current=!0},O=i=>{v.current&&x&&i.target===x.dialog&&(w.current=!0),v.current=!1},c=()=>{z(!0),f.current=o.transitionEnd(x.dialog,()=>{z(!1)})},Y=i=>{i.target===i.currentTarget&&c()},I=i=>{if(b==="static"){Y(i);return}if(w.current||i.target!==i.currentTarget){w.current=!1;return}T==null||T()},Oe=i=>{Q?_==null||_(i):(i.preventDefault(),b==="static"&&c())},Be=(i,B)=>{i&&X(i),$==null||$(i,B)},Ae=i=>{f.current==null||f.current(),D==null||D(i)},Se=(i,B)=>{K==null||K(i,B),o.addEventListener(window,"resize",k)},De=i=>{i&&(i.style.display=""),G==null||G(i),o.removeEventListener(window,"resize",k)},$e=d.useCallback(i=>n.jsxRuntimeExports.jsx("div",{...i,className:n.classNames(`${t}-backdrop`,q,!R&&"show")}),[R,q,t]),pe={...s,...M};pe.display="block";const Fe=i=>n.jsxRuntimeExports.jsx("div",{role:"dialog",...i,style:pe,className:n.classNames(e,t,re&&`${t}-static`,!R&&"show"),onClick:b?I:void 0,onMouseUp:O,"data-bs-theme":p,"aria-label":h,"aria-labelledby":y,"aria-describedby":N,children:n.jsxRuntimeExports.jsx(E,{...ae,onMouseDown:W,className:a,contentClassName:r,children:l})});return n.jsxRuntimeExports.jsx(Ne.Provider,{value:L,children:n.jsxRuntimeExports.jsx(Ze,{show:S,ref:ie,backdrop:b,container:ee,keyboard:!0,autoFocus:H,enforceFocus:te,restoreFocus:se,restoreFocusOptions:ne,onEscapeKeyDown:Oe,onShow:Z,onHide:T,onEnter:Be,onEntering:Se,onEntered:U,onExit:Ae,onExiting:oe,onExited:De,manager:C(),transition:R?mt:void 0,backdropTransition:R?ft:void 0,renderBackdrop:$e,renderDialog:Fe})})});ke.displayName="Modal";const pt=Object.assign(ke,{Body:ot,Header:ct,Title:ut,Footer:rt,Dialog:Te,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});exports.Loading=Ie;exports.Modal=pt;exports.Typography=He;exports.dataAttr=Re;exports.qsa=j;exports.usePrevious=ye;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as a, e as d, f as S, g as x } from "./
|
|
2
|
-
import { P as me, e as Te, o as Se, s as U, u as Fe, f as Pe, g as et, h as y, l as Re, i as Ce, j as Le, k as tt, r as je, m as nt, n as D, p as ot, q as st, v as at, w as ke, F as De, x as rt, y as it } from "./hasClass-
|
|
1
|
+
import { j as a, e as d, f as S, g as x } from "./HomeDashboard.module-CuVVnp4t.mjs";
|
|
2
|
+
import { P as me, e as Te, o as Se, s as U, u as Fe, f as Pe, g as et, h as y, l as Re, i as Ce, j as Le, k as tt, r as je, m as nt, n as D, p as ot, q as st, v as at, w as ke, F as De, x as rt, y as it } from "./hasClass-D3KZs5y_.mjs";
|
|
3
3
|
import * as u from "react";
|
|
4
4
|
import { useRef as v, useEffect as ve, forwardRef as lt, useState as Ee, useImperativeHandle as dt, useCallback as Me, useContext as ct, useMemo as ut } from "react";
|
|
5
5
|
import ft from "react-dom";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const b=require("react"),T=require("./HomeDashboard.module-BI8obEZ_.js"),O=require("./hasClass-DABt6TfW.js"),Gt=require("react-dom");function Jt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const q=Jt(b);var gt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},et=b.createContext&&b.createContext(gt),Qt=["attr","size","title"];function Zt(e,t){if(e==null)return{};var r=er(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function er(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(this,arguments)}function tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tt(Object(r),!0).forEach(function(n){tr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tr(e,t,r){return t=rr(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rr(e){var t=nr(e,"string");return typeof t=="symbol"?t:String(t)}function nr(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yt(e){return e&&e.map((t,r)=>b.createElement(t.tag,Me({key:r},t.attr),yt(t.child)))}function U(e){return t=>b.createElement(ir,je({attr:Me({},e.attr)},t),yt(e.child))}function ir(e){var t=r=>{var{attr:n,size:i,title:o}=e,c=Zt(e,Qt),s=i||r.size||"1em",a;return r.className&&(a=r.className),e.className&&(a=(a?a+" ":"")+e.className),b.createElement("svg",je({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,n,c,{className:a,style:Me(Me({color:e.color||r.color},r.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&b.createElement("title",null,o),e.children)};return et!==void 0?b.createElement(et.Consumer,null,r=>t(r)):t(gt)}function or(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(e)}function ar(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"},child:[]}]})(e)}function sr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M4 20h16v2H4zM4 2h16v2H4zM9.41 13.59 8 15l4 4 4-4-1.41-1.41L13 15.17V8.83l1.59 1.58L16 9l-4-4-4 4 1.41 1.41L11 8.83v6.34z"},child:[]}]})(e)}function ur(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"},child:[]}]})(e)}function cr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"},child:[]}]})(e)}function lr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"},child:[]}]})(e)}function fr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"},child:[]}]})(e)}function dr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"},child:[]}]})(e)}function pr(e){return U({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"},child:[]}]})(e)}function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}function rt(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function vr(e){var t=hr(e,"string");return typeof t=="symbol"?t:String(t)}function hr(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wt(e,t,r){var n=b.useRef(e!==void 0),i=b.useState(t),o=i[0],c=i[1],s=e!==void 0,a=n.current;return n.current=s,!s&&a&&o!==t&&c(t),[s?e:o,b.useCallback(function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),h=1;h<u;h++)p[h-1]=arguments[h];r&&r.apply(void 0,[l].concat(p)),c(l)},[r])]}function mr(e,t){return Object.keys(t).reduce(function(r,n){var i,o=r,c=o[rt(n)],s=o[n],a=O._objectWithoutPropertiesLoose(o,[rt(n),n].map(vr)),l=t[n],u=wt(s,c,e[l]),p=u[0],h=u[1];return Se({},a,(i={},i[n]=p,i[l]=h,i))},e)}const Be=2**31-1;function bt(e,t,r){const n=r-Date.now();e.current=n<=Be?setTimeout(t,n):setTimeout(()=>bt(e,t,r),Be)}function gr(){const e=O.useMounted(),t=b.useRef();return O.useWillUnmount(()=>clearTimeout(t.current)),b.useMemo(()=>{const r=()=>clearTimeout(t.current);function n(i,o=0){e()&&(r(),o<=Be?t.current=setTimeout(i,o):bt(t,i,Date.now()+o))}return{set:n,clear:r,handleRef:t}},[])}var nt=Object.prototype.hasOwnProperty;function it(e,t,r){for(r of e.keys())if(ce(r,t))return r}function ce(e,t){var r,n,i;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&ce(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(i=n,i&&typeof i=="object"&&(i=it(t,i),!i)||!t.has(i))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(i=n[0],i&&typeof i=="object"&&(i=it(t,i),!i)||!ce(n[1],t.get(i)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(nt.call(e,r)&&++n&&!nt.call(t,r)||!(r in t)||!ce(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function yr(e){const t=O.useMounted();return[e[0],b.useCallback(r=>{if(t())return e[1](r)},[t,e[1]])]}var $="top",z="bottom",W="right",L="left",ke="auto",ve=[$,z,W,L],re="start",de="end",wr="clippingParents",Ot="viewport",ue="popper",br="reference",ot=ve.reduce(function(e,t){return e.concat([t+"-"+re,t+"-"+de])},[]),xt=[].concat(ve,[ke]).reduce(function(e,t){return e.concat([t,t+"-"+re,t+"-"+de])},[]),Or="beforeRead",xr="read",Er="afterRead",jr="beforeMain",Mr="main",Rr="afterMain",Pr="beforeWrite",Cr="write",Ar="afterWrite",Dr=[Or,xr,Er,jr,Mr,Rr,Pr,Cr,Ar];function V(e){return e.split("-")[0]}function N(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ee(e){var t=N(e).Element;return e instanceof t||e instanceof Element}function _(e){var t=N(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function He(e){if(typeof ShadowRoot>"u")return!1;var t=N(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var Z=Math.max,Re=Math.min,ne=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Et(){return!/^((?!chrome|android).)*safari/i.test($e())}function ie(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&_(e)&&(i=e.offsetWidth>0&&ne(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ne(n.height)/e.offsetHeight||1);var c=ee(e)?N(e):window,s=c.visualViewport,a=!Et()&&r,l=(n.left+(a&&s?s.offsetLeft:0))/i,u=(n.top+(a&&s?s.offsetTop:0))/o,p=n.width/i,h=n.height/o;return{width:p,height:h,top:u,right:l+p,bottom:u+h,left:l,x:l,y:u}}function Ne(e){var t=ie(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&He(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function X(e){return e?(e.nodeName||"").toLowerCase():null}function I(e){return N(e).getComputedStyle(e)}function Tr(e){return["table","td","th"].indexOf(X(e))>=0}function Y(e){return((ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function Pe(e){return X(e)==="html"?e:e.assignedSlot||e.parentNode||(He(e)?e.host:null)||Y(e)}function at(e){return!_(e)||I(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&_(e)){var n=I(e);if(n.position==="fixed")return null}var i=Pe(e);for(He(i)&&(i=i.host);_(i)&&["html","body"].indexOf(X(i))<0;){var o=I(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function he(e){for(var t=N(e),r=at(e);r&&Tr(r)&&I(r).position==="static";)r=at(r);return r&&(X(r)==="html"||X(r)==="body"&&I(r).position==="static")?t:r||Sr(e)||t}function ze(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function le(e,t,r){return Z(e,Re(t,r))}function Br(e,t,r){var n=le(e,t,r);return n>r?r:n}function Mt(){return{top:0,right:0,bottom:0,left:0}}function Rt(e){return Object.assign({},Mt(),e)}function Pt(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var $r=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Rt(typeof t!="number"?t:Pt(t,ve))};function Lr(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,c=r.modifiersData.popperOffsets,s=V(r.placement),a=ze(s),l=[L,W].indexOf(s)>=0,u=l?"height":"width";if(!(!o||!c)){var p=$r(i.padding,r),h=Ne(o),d=a==="y"?$:L,v=a==="y"?z:W,g=r.rects.reference[u]+r.rects.reference[a]-c[a]-r.rects.popper[u],f=c[a]-r.rects.reference[a],y=he(o),m=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,E=g/2-f/2,w=p[d],j=m-h[u]-p[v],x=m/2-h[u]/2+E,M=le(w,x,j),P=a;r.modifiersData[n]=(t={},t[P]=M,t.centerOffset=M-x,t)}}function kr(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jt(t.elements.popper,i)&&(t.elements.arrow=i))}const Hr={name:"arrow",enabled:!0,phase:"main",fn:Lr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function oe(e){return e.split("-")[1]}var Nr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zr(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:ne(r*i)/i||0,y:ne(n*i)/i||0}}function st(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,c=e.offsets,s=e.position,a=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,p=e.isFixed,h=c.x,d=h===void 0?0:h,v=c.y,g=v===void 0?0:v,f=typeof u=="function"?u({x:d,y:g}):{x:d,y:g};d=f.x,g=f.y;var y=c.hasOwnProperty("x"),m=c.hasOwnProperty("y"),E=L,w=$,j=window;if(l){var x=he(r),M="clientHeight",P="clientWidth";if(x===N(r)&&(x=Y(r),I(x).position!=="static"&&s==="absolute"&&(M="scrollHeight",P="scrollWidth")),x=x,i===$||(i===L||i===W)&&o===de){w=z;var C=p&&x===j&&j.visualViewport?j.visualViewport.height:x[M];g-=C-n.height,g*=a?1:-1}if(i===L||(i===$||i===z)&&o===de){E=W;var R=p&&x===j&&j.visualViewport?j.visualViewport.width:x[P];d-=R-n.width,d*=a?1:-1}}var A=Object.assign({position:s},l&&Nr),k=u===!0?zr({x:d,y:g},N(r)):{x:d,y:g};if(d=k.x,g=k.y,a){var D;return Object.assign({},A,(D={},D[w]=m?"0":"",D[E]=y?"0":"",D.transform=(j.devicePixelRatio||1)<=1?"translate("+d+"px, "+g+"px)":"translate3d("+d+"px, "+g+"px, 0)",D))}return Object.assign({},A,(t={},t[w]=m?g+"px":"",t[E]=y?d+"px":"",t.transform="",t))}function Wr(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,c=o===void 0?!0:o,s=r.roundOffsets,a=s===void 0?!0:s,l={placement:V(t.placement),variation:oe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Fr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wr,data:{}};var Oe={passive:!0};function Vr(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,c=n.resize,s=c===void 0?!0:c,a=N(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(u){u.addEventListener("scroll",r.update,Oe)}),s&&a.addEventListener("resize",r.update,Oe),function(){o&&l.forEach(function(u){u.removeEventListener("scroll",r.update,Oe)}),s&&a.removeEventListener("resize",r.update,Oe)}}const _r={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Ir={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Ir[t]})}var Ur={start:"end",end:"start"};function ut(e){return e.replace(/start|end/g,function(t){return Ur[t]})}function We(e){var t=N(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Fe(e){return ie(Y(e)).left+We(e).scrollLeft}function Kr(e,t){var r=N(e),n=Y(e),i=r.visualViewport,o=n.clientWidth,c=n.clientHeight,s=0,a=0;if(i){o=i.width,c=i.height;var l=Et();(l||!l&&t==="fixed")&&(s=i.offsetLeft,a=i.offsetTop)}return{width:o,height:c,x:s+Fe(e),y:a}}function qr(e){var t,r=Y(e),n=We(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Z(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),c=Z(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Fe(e),a=-n.scrollTop;return I(i||r).direction==="rtl"&&(s+=Z(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:c,x:s,y:a}}function Ve(e){var t=I(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ct(e){return["html","body","#document"].indexOf(X(e))>=0?e.ownerDocument.body:_(e)&&Ve(e)?e:Ct(Pe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var n=Ct(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=N(n),c=i?[o].concat(o.visualViewport||[],Ve(n)?n:[]):n,s=t.concat(c);return i?s:s.concat(fe(Pe(c)))}function Le(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xr(e,t){var r=ie(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===Ot?Le(Kr(e,r)):ee(t)?Xr(t,r):Le(qr(Y(e)))}function Yr(e){var t=fe(Pe(e)),r=["absolute","fixed"].indexOf(I(e).position)>=0,n=r&&_(e)?he(e):e;return ee(n)?t.filter(function(i){return ee(i)&&jt(i,n)&&X(i)!=="body"}):[]}function Gr(e,t,r,n){var i=t==="clippingParents"?Yr(e):[].concat(t),o=[].concat(i,[r]),c=o[0],s=o.reduce(function(a,l){var u=ct(e,l,n);return a.top=Z(u.top,a.top),a.right=Re(u.right,a.right),a.bottom=Re(u.bottom,a.bottom),a.left=Z(u.left,a.left),a},ct(e,c,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,n=e.placement,i=n?V(n):null,o=n?oe(n):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,a;switch(i){case $:a={x:c,y:t.y-r.height};break;case z:a={x:c,y:t.y+t.height};break;case W:a={x:t.x+t.width,y:s};break;case L:a={x:t.x-r.width,y:s};break;default:a={x:t.x,y:t.y}}var l=i?ze(i):null;if(l!=null){var u=l==="y"?"height":"width";switch(o){case re:a[l]=a[l]-(t[u]/2-r[u]/2);break;case de:a[l]=a[l]+(t[u]/2-r[u]/2);break}}return a}function pe(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,c=o===void 0?e.strategy:o,s=r.boundary,a=s===void 0?wr:s,l=r.rootBoundary,u=l===void 0?Ot:l,p=r.elementContext,h=p===void 0?ue:p,d=r.altBoundary,v=d===void 0?!1:d,g=r.padding,f=g===void 0?0:g,y=Rt(typeof f!="number"?f:Pt(f,ve)),m=h===ue?br:ue,E=e.rects.popper,w=e.elements[v?m:h],j=Gr(ee(w)?w:w.contextElement||Y(e.elements.popper),a,u,c),x=ie(e.elements.reference),M=At({reference:x,element:E,strategy:"absolute",placement:i}),P=Le(Object.assign({},E,M)),C=h===ue?P:x,R={top:j.top-C.top+y.top,bottom:C.bottom-j.bottom+y.bottom,left:j.left-C.left+y.left,right:C.right-j.right+y.right},A=e.modifiersData.offset;if(h===ue&&A){var k=A[i];Object.keys(R).forEach(function(D){var B=[W,z].indexOf(D)>=0?1:-1,S=[$,z].indexOf(D)>=0?"y":"x";R[D]+=k[S]*B})}return R}function Jr(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,c=r.padding,s=r.flipVariations,a=r.allowedAutoPlacements,l=a===void 0?xt:a,u=oe(n),p=u?s?ot:ot.filter(function(v){return oe(v)===u}):ve,h=p.filter(function(v){return l.indexOf(v)>=0});h.length===0&&(h=p);var d=h.reduce(function(v,g){return v[g]=pe(e,{placement:g,boundary:i,rootBoundary:o,padding:c})[V(g)],v},{});return Object.keys(d).sort(function(v,g){return d[v]-d[g]})}function Qr(e){if(V(e)===ke)return[];var t=xe(e);return[ut(e),t,ut(t)]}function Zr(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,c=r.altAxis,s=c===void 0?!0:c,a=r.fallbackPlacements,l=r.padding,u=r.boundary,p=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,v=d===void 0?!0:d,g=r.allowedAutoPlacements,f=t.options.placement,y=V(f),m=y===f,E=a||(m||!v?[xe(f)]:Qr(f)),w=[f].concat(E).reduce(function(te,K){return te.concat(V(K)===ke?Jr(t,{placement:K,boundary:u,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:g}):K)},[]),j=t.rects.reference,x=t.rects.popper,M=new Map,P=!0,C=w[0],R=0;R<w.length;R++){var A=w[R],k=V(A),D=oe(A)===re,B=[$,z].indexOf(k)>=0,S=B?"width":"height",H=pe(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:h,padding:l}),F=B?D?W:L:D?z:$;j[S]>x[S]&&(F=xe(F));var me=xe(F),G=[];if(o&&G.push(H[k]<=0),s&&G.push(H[F]<=0,H[me]<=0),G.every(function(te){return te})){C=A,P=!1;break}M.set(A,G)}if(P)for(var ge=v?3:1,Ce=function(K){var se=w.find(function(we){var J=M.get(we);if(J)return J.slice(0,K).every(function(Ae){return Ae})});if(se)return C=se,"break"},ae=ge;ae>0;ae--){var ye=Ce(ae);if(ye==="break")break}t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}}const en={name:"flip",enabled:!0,phase:"main",fn:Zr,requiresIfExists:["offset"],data:{_skip:!1}};function lt(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ft(e){return[$,W,z,L].some(function(t){return e[t]>=0})}function tn(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),a=lt(c,n),l=lt(s,i,o),u=ft(a),p=ft(l);t.modifiersData[r]={referenceClippingOffsets:a,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const rn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:tn};function nn(e,t,r){var n=V(e),i=[L,$].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=o[0],s=o[1];return c=c||0,s=(s||0)*i,[L,W].indexOf(n)>=0?{x:s,y:c}:{x:c,y:s}}function on(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,c=xt.reduce(function(u,p){return u[p]=nn(p,t.rects,o),u},{}),s=c[t.placement],a=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=c}const an={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:on};function sn(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const un={name:"popperOffsets",enabled:!0,phase:"read",fn:sn,data:{}};function cn(e){return e==="x"?"y":"x"}function ln(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,c=r.altAxis,s=c===void 0?!1:c,a=r.boundary,l=r.rootBoundary,u=r.altBoundary,p=r.padding,h=r.tether,d=h===void 0?!0:h,v=r.tetherOffset,g=v===void 0?0:v,f=pe(t,{boundary:a,rootBoundary:l,padding:p,altBoundary:u}),y=V(t.placement),m=oe(t.placement),E=!m,w=ze(y),j=cn(w),x=t.modifiersData.popperOffsets,M=t.rects.reference,P=t.rects.popper,C=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(x){if(o){var D,B=w==="y"?$:L,S=w==="y"?z:W,H=w==="y"?"height":"width",F=x[w],me=F+f[B],G=F-f[S],ge=d?-P[H]/2:0,Ce=m===re?M[H]:P[H],ae=m===re?-P[H]:-M[H],ye=t.elements.arrow,te=d&&ye?Ne(ye):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Mt(),se=K[B],we=K[S],J=le(0,M[H],te[H]),Ae=E?M[H]/2-ge-J-se-R.mainAxis:Ce-J-se-R.mainAxis,It=E?-M[H]/2+ge+J+we+R.mainAxis:ae+J+we+R.mainAxis,De=t.elements.arrow&&he(t.elements.arrow),Ut=De?w==="y"?De.clientTop||0:De.clientLeft||0:0,Ue=(D=A==null?void 0:A[w])!=null?D:0,Kt=F+Ae-Ue-Ut,qt=F+It-Ue,Ke=le(d?Re(me,Kt):me,F,d?Z(G,qt):G);x[w]=Ke,k[w]=Ke-F}if(s){var qe,Xt=w==="x"?$:L,Yt=w==="x"?z:W,Q=x[j],be=j==="y"?"height":"width",Xe=Q+f[Xt],Ye=Q-f[Yt],Te=[$,L].indexOf(y)!==-1,Ge=(qe=A==null?void 0:A[j])!=null?qe:0,Je=Te?Xe:Q-M[be]-P[be]-Ge+R.altAxis,Qe=Te?Q+M[be]+P[be]-Ge-R.altAxis:Ye,Ze=d&&Te?Br(Je,Q,Qe):le(d?Je:Xe,Q,d?Qe:Ye);x[j]=Ze,k[j]=Ze-Q}t.modifiersData[n]=k}}const fn={name:"preventOverflow",enabled:!0,phase:"main",fn:ln,requiresIfExists:["offset"]};function dn(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pn(e){return e===N(e)||!_(e)?We(e):dn(e)}function vn(e){var t=e.getBoundingClientRect(),r=ne(t.width)/e.offsetWidth||1,n=ne(t.height)/e.offsetHeight||1;return r!==1||n!==1}function hn(e,t,r){r===void 0&&(r=!1);var n=_(t),i=_(t)&&vn(t),o=Y(t),c=ie(e,i,r),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(n||!n&&!r)&&((X(t)!=="body"||Ve(o))&&(s=pn(t)),_(t)?(a=ie(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):o&&(a.x=Fe(o))),{x:c.left+s.scrollLeft-a.x,y:c.top+s.scrollTop-a.y,width:c.width,height:c.height}}function mn(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var c=[].concat(o.requires||[],o.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var a=t.get(s);a&&i(a)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function gn(e){var t=mn(e);return Dr.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function yn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function wn(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var dt={placement:"bottom",modifiers:[],strategy:"absolute"};function pt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function bn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?dt:i;return function(s,a,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},dt,o),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},p=[],h=!1,d={state:u,setOptions:function(y){var m=typeof y=="function"?y(u.options):y;g(),u.options=Object.assign({},o,u.options,m),u.scrollParents={reference:ee(s)?fe(s):s.contextElement?fe(s.contextElement):[],popper:fe(a)};var E=gn(wn([].concat(n,u.options.modifiers)));return u.orderedModifiers=E.filter(function(w){return w.enabled}),v(),d.update()},forceUpdate:function(){if(!h){var y=u.elements,m=y.reference,E=y.popper;if(pt(m,E)){u.rects={reference:hn(m,he(E),u.options.strategy==="fixed"),popper:Ne(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var w=0;w<u.orderedModifiers.length;w++){if(u.reset===!0){u.reset=!1,w=-1;continue}var j=u.orderedModifiers[w],x=j.fn,M=j.options,P=M===void 0?{}:M,C=j.name;typeof x=="function"&&(u=x({state:u,options:P,name:C,instance:d})||u)}}}},update:yn(function(){return new Promise(function(f){d.forceUpdate(),f(u)})}),destroy:function(){g(),h=!0}};if(!pt(s,a))return d;d.setOptions(l).then(function(f){!h&&l.onFirstUpdate&&l.onFirstUpdate(f)});function v(){u.orderedModifiers.forEach(function(f){var y=f.name,m=f.options,E=m===void 0?{}:m,w=f.effect;if(typeof w=="function"){var j=w({state:u,name:y,instance:d,options:E}),x=function(){};p.push(j||x)}})}function g(){p.forEach(function(f){return f()}),p=[]}return d}}const On=bn({defaultModifiers:[rn,un,Fr,_r,an,en,fn,Hr]}),xn=["enabled","placement","strategy","modifiers"];function En(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}const jn={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Mn={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:r}=e.elements;if("removeAttribute"in t){const n=(t.getAttribute("aria-describedby")||"").split(",").filter(i=>i.trim()!==r.id);n.length?t.setAttribute("aria-describedby",n.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:r,reference:n}=e.elements,i=(t=r.getAttribute("role"))==null?void 0:t.toLowerCase();if(r.id&&i==="tooltip"&&"setAttribute"in n){const o=n.getAttribute("aria-describedby");if(o&&o.split(",").indexOf(r.id)!==-1)return;n.setAttribute("aria-describedby",o?`${o},${r.id}`:r.id)}}},Rn=[];function Dt(e,t,r={}){let{enabled:n=!0,placement:i="bottom",strategy:o="absolute",modifiers:c=Rn}=r,s=En(r,xn);const a=b.useRef(c),l=b.useRef(),u=b.useCallback(()=>{var f;(f=l.current)==null||f.update()},[]),p=b.useCallback(()=>{var f;(f=l.current)==null||f.forceUpdate()},[]),[h,d]=yr(b.useState({placement:i,update:u,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),v=b.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:f})=>{const y={},m={};Object.keys(f.elements).forEach(E=>{y[E]=f.styles[E],m[E]=f.attributes[E]}),d({state:f,styles:y,attributes:m,update:u,forceUpdate:p,placement:f.placement})}}),[u,p,d]),g=b.useMemo(()=>(ce(a.current,c)||(a.current=c),a.current),[c]);return b.useEffect(()=>{!l.current||!n||l.current.setOptions({placement:i,strategy:o,modifiers:[...g,v,jn]})},[o,i,v,n,g]),b.useEffect(()=>{if(!(!n||e==null||t==null))return l.current=On(e,t,Object.assign({},s,{placement:i,strategy:o,modifiers:[...g,Mn,v]})),()=>{l.current!=null&&(l.current.destroy(),l.current=void 0,d(f=>Object.assign({},f,{attributes:{},styles:{popper:{}}})))}},[n,e,t]),h}var Pn=process.env.NODE_ENV!=="production",Tt=function(){};if(Pn){var Cn=function(t,r){var n=arguments.length;r=new Array(n>1?n-1:0);for(var i=1;i<n;i++)r[i-1]=arguments[i];var o=0,c="Warning: "+t.replace(/%s/g,function(){return r[o++]});typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}};Tt=function(e,t,r){var n=arguments.length;r=new Array(n>2?n-2:0);for(var i=2;i<n;i++)r[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||Cn.apply(null,[t].concat(r))}}var An=Tt;const _e=T.getDefaultExportFromCjs(An),vt=()=>{};function Dn(e){return e.button===0}function Tn(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ee=e=>e&&("current"in e?e.current:e),ht={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function St(e,t=vt,{disabled:r,clickTrigger:n="click"}={}){const i=b.useRef(!1),o=b.useRef(!1),c=b.useCallback(l=>{const u=Ee(e);_e(!!u,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),i.current=!u||Tn(l)||!Dn(l)||!!O.contains(u,l.target)||o.current,o.current=!1},[e]),s=O.useEventCallback(l=>{const u=Ee(e);u&&O.contains(u,l.target)&&(o.current=!0)}),a=O.useEventCallback(l=>{i.current||t(l)});b.useEffect(()=>{var l,u;if(r||e==null)return;const p=O.ownerDocument(Ee(e)),h=p.defaultView||window;let d=(l=h.event)!=null?l:(u=h.parent)==null?void 0:u.event,v=null;ht[n]&&(v=O.listen(p,ht[n],s,!0));const g=O.listen(p,n,c,!0),f=O.listen(p,n,m=>{if(m===d){d=void 0;return}a(m)});let y=[];return"ontouchstart"in p.documentElement&&(y=[].slice.call(p.body.children).map(m=>O.listen(m,"mousemove",vt))),()=>{v==null||v(),g(),f(),y.forEach(m=>m())}},[e,r,n,c,s,a])}function Sn(e){const t={};return Array.isArray(e)?(e==null||e.forEach(r=>{t[r.name]=r}),t):e||t}function Bn(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Bt({enabled:e,enableEvents:t,placement:r,flip:n,offset:i,fixed:o,containerPadding:c,arrowElement:s,popperConfig:a={}}){var l,u,p,h,d;const v=Sn(a.modifiers);return Object.assign({},a,{placement:r,enabled:e,strategy:o?"fixed":a.strategy,modifiers:Bn(Object.assign({},v,{eventListeners:{enabled:t,options:(l=v.eventListeners)==null?void 0:l.options},preventOverflow:Object.assign({},v.preventOverflow,{options:c?Object.assign({padding:c},(u=v.preventOverflow)==null?void 0:u.options):(p=v.preventOverflow)==null?void 0:p.options}),offset:{options:Object.assign({offset:i},(h=v.offset)==null?void 0:h.options)},arrow:Object.assign({},v.arrow,{enabled:!!s,options:Object.assign({},(d=v.arrow)==null?void 0:d.options,{element:s})}),flip:Object.assign({enabled:!!n},v.flip)}))})}const $n=()=>{};function Ln(e,t,{disabled:r,clickTrigger:n}={}){const i=t||$n;St(e,i,{disabled:r,clickTrigger:n});const o=O.useEventCallback(c=>{O.isEscKey(c)&&i(c)});b.useEffect(()=>{if(r||e==null)return;const c=O.ownerDocument(Ee(e));let s=(c.defaultView||window).event;const a=O.listen(c,"keyup",l=>{if(l===s){s=void 0;return}o(l)});return()=>{a()}},[e,r,o])}const $t=q.forwardRef((e,t)=>{const{flip:r,offset:n,placement:i,containerPadding:o,popperConfig:c={},transition:s,runTransition:a}=e,[l,u]=O.useCallbackRef(),[p,h]=O.useCallbackRef(),d=O.useMergedRefs(u,t),v=O.useWaitForDOMRef(e.container),g=O.useWaitForDOMRef(e.target),[f,y]=b.useState(!e.show),m=Dt(g,l,Bt({placement:i,enableEvents:!!e.show,containerPadding:o||5,flip:r,offset:n,arrowElement:p,popperConfig:c}));e.show&&f&&y(!1);const E=(...A)=>{y(!0),e.onExited&&e.onExited(...A)},w=e.show||!f;if(Ln(l,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:j,onExiting:x,onEnter:M,onEntering:P,onEntered:C}=e;let R=e.children(Object.assign({},m.attributes.popper,{style:m.styles.popper,ref:d}),{popper:m,placement:i,show:!!e.show,arrowProps:Object.assign({},m.attributes.arrow,{style:m.styles.arrow,ref:h})});return R=O.renderTransition(s,a,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:R,onExit:j,onExiting:x,onExited:E,onEnter:M,onEntering:P,onEntered:C}),v?Gt.createPortal(R,v):null});$t.displayName="Overlay";const kn=$t,Lt=q.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=O.useBootstrapPrefix(t,"popover-header"),T.jsxRuntimeExports.jsx(r,{ref:i,className:T.classNames(e,t),...n})));Lt.displayName="PopoverHeader";const Hn=Lt,kt=q.forwardRef(({className:e,bsPrefix:t,as:r="div",...n},i)=>(t=O.useBootstrapPrefix(t,"popover-body"),T.jsxRuntimeExports.jsx(r,{ref:i,className:T.classNames(e,t),...n})));kt.displayName="PopoverBody";const Ht=kt;function Nt(e,t){let r=e;return e==="left"?r=t?"end":"start":e==="right"&&(r=t?"start":"end"),r}function zt(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Nn=q.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:i,body:o,arrowProps:c,hasDoneInitialMeasure:s,popper:a,show:l,...u},p)=>{const h=O.useBootstrapPrefix(e,"popover"),d=O.useIsRTL(),[v]=(t==null?void 0:t.split("-"))||[],g=Nt(v,d);let f=n;return l&&!s&&(f={...n,...zt(a==null?void 0:a.strategy)}),T.jsxRuntimeExports.jsxs("div",{ref:p,role:"tooltip",style:f,"x-placement":v,className:T.classNames(r,h,v&&`bs-popover-${g}`),...u,children:[T.jsxRuntimeExports.jsx("div",{className:"popover-arrow",...c}),o?T.jsxRuntimeExports.jsx(Ht,{children:i}):i]})}),Wt=Object.assign(Nn,{Header:Hn,Body:Ht,POPPER_OFFSET:[0,8]}),Ft=q.forwardRef(({bsPrefix:e,placement:t="right",className:r,style:n,children:i,arrowProps:o,hasDoneInitialMeasure:c,popper:s,show:a,...l},u)=>{e=O.useBootstrapPrefix(e,"tooltip");const p=O.useIsRTL(),[h]=(t==null?void 0:t.split("-"))||[],d=Nt(h,p);let v=n;return a&&!c&&(v={...n,...zt(s==null?void 0:s.strategy)}),T.jsxRuntimeExports.jsxs("div",{ref:u,style:v,role:"tooltip","x-placement":h,className:T.classNames(r,e,`bs-tooltip-${d}`),...l,children:[T.jsxRuntimeExports.jsx("div",{className:"tooltip-arrow",...o}),T.jsxRuntimeExports.jsx("div",{className:`${e}-inner`,children:i})]})});Ft.displayName="Tooltip";const Ie=Object.assign(Ft,{TOOLTIP_OFFSET:[0,6]});function zn(e){const t=b.useRef(null),r=O.useBootstrapPrefix(void 0,"popover"),n=O.useBootstrapPrefix(void 0,"tooltip"),i=b.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(O.hasClass(t.current,r))return Wt.POPPER_OFFSET;if(O.hasClass(t.current,n))return Ie.TOOLTIP_OFFSET}return[0,0]}}}),[e,r,n]);return[t,[i]]}function Wn(e,t){const{ref:r}=e,{ref:n}=t;e.ref=r.__wrapped||(r.__wrapped=i=>r(O.safeFindDOMNode(i))),t.ref=n.__wrapped||(n.__wrapped=i=>n(O.safeFindDOMNode(i)))}const Vt=q.forwardRef(({children:e,transition:t=O.Fade,popperConfig:r={},rootClose:n=!1,placement:i="top",show:o=!1,...c},s)=>{const a=b.useRef({}),[l,u]=b.useState(null),[p,h]=zn(c.offset),d=O.useMergedRefs(s,p),v=t===!0?O.Fade:t||void 0,g=O.useEventCallback(f=>{u(f),r==null||r.onFirstUpdate==null||r.onFirstUpdate(f)});return O.useIsomorphicEffect(()=>{l&&c.target&&(a.current.scheduleUpdate==null||a.current.scheduleUpdate())},[l,c.target]),b.useEffect(()=>{o||u(null)},[o]),T.jsxRuntimeExports.jsx(kn,{...c,ref:d,popperConfig:{...r,modifiers:h.concat(r.modifiers||[]),onFirstUpdate:g},transition:v,rootClose:n,placement:i,show:o,children:(f,{arrowProps:y,popper:m,show:E})=>{var w,j;Wn(f,y);const x=m==null?void 0:m.placement,M=Object.assign(a.current,{state:m==null?void 0:m.state,scheduleUpdate:m==null?void 0:m.update,placement:x,outOfBoundaries:(m==null||(w=m.state)==null||(j=w.modifiersData.hide)==null?void 0:j.isReferenceHidden)||!1,strategy:r.strategy}),P=!!l;return typeof e=="function"?e({...f,placement:x,show:E,...!t&&E&&{className:"show"},popper:M,arrowProps:y,hasDoneInitialMeasure:P}):q.cloneElement(e,{...f,placement:x,arrowProps:y,popper:M,hasDoneInitialMeasure:P,className:T.classNames(e.props.className,!t&&E&&"show"),style:{...e.props.style,...f.style}})}})});Vt.displayName="Overlay";const Fn=Vt;function Vn(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function mt(e,t,r){const[n]=t,i=n.currentTarget,o=n.relatedTarget||n.nativeEvent[r];(!o||o!==i)&&!O.contains(i,o)&&e(...t)}O.PropTypes.oneOf(["click","hover","focus"]);const _n=({trigger:e=["hover","focus"],overlay:t,children:r,popperConfig:n={},show:i,defaultShow:o=!1,onToggle:c,delay:s,placement:a,flip:l=a&&a.indexOf("auto")!==-1,...u})=>{const p=b.useRef(null),h=O.useMergedRefs(p,r.ref),d=gr(),v=b.useRef(""),[g,f]=wt(i,o,c),y=Vn(s),{onFocus:m,onBlur:E,onClick:w}=typeof r!="function"?q.Children.only(r).props:{},j=S=>{h(O.safeFindDOMNode(S))},x=b.useCallback(()=>{if(d.clear(),v.current="show",!y.show){f(!0);return}d.set(()=>{v.current==="show"&&f(!0)},y.show)},[y.show,f,d]),M=b.useCallback(()=>{if(d.clear(),v.current="hide",!y.hide){f(!1);return}d.set(()=>{v.current==="hide"&&f(!1)},y.hide)},[y.hide,f,d]),P=b.useCallback((...S)=>{x(),m==null||m(...S)},[x,m]),C=b.useCallback((...S)=>{M(),E==null||E(...S)},[M,E]),R=b.useCallback((...S)=>{f(!g),w==null||w(...S)},[w,f,g]),A=b.useCallback((...S)=>{mt(x,S,"fromElement")},[x]),k=b.useCallback((...S)=>{mt(M,S,"toElement")},[M]),D=e==null?[]:[].concat(e),B={ref:j};return D.indexOf("click")!==-1&&(B.onClick=R),D.indexOf("focus")!==-1&&(B.onFocus=P,B.onBlur=C),D.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_e(D.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),B.onMouseOver=A,B.onMouseOut=k),T.jsxRuntimeExports.jsxs(T.jsxRuntimeExports.Fragment,{children:[typeof r=="function"?r(B):b.cloneElement(r,B),T.jsxRuntimeExports.jsx(Fn,{...u,show:g,onHide:M,flip:l,placement:a,popperConfig:n,target:p.current,children:t})]})},_t=_n,In=({text:e,placement:t,children:r})=>T.jsxRuntimeExports.jsx(_t,{placement:t,overlay:T.jsxRuntimeExports.jsx(Ie,{className:"luminus-tooltip",children:e}),children:r});exports.MdClear=or;exports.MdOutlineAddCircleOutline=ur;exports.MdOutlineArrowBack=dr;exports.MdOutlineDelete=ar;exports.MdOutlineExpand=sr;exports.MdOutlineKeyboardArrowDown=cr;exports.MdOutlineKeyboardArrowLeft=lr;exports.MdOutlineKeyboardArrowRight=fr;exports.MdOutlineMenu=pr;exports.OverlayTrigger=_t;exports.Popover=Wt;exports.SimpleTooltip=In;exports.Tooltip=Ie;exports.mergeOptionsWithPopperConfig=Bt;exports.useClickOutside=St;exports.usePopper=Dt;exports.useUncontrolled=mr;exports.warning=_e;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as q from "react";
|
|
2
2
|
import Z, { useRef as k, useState as Be, useCallback as z, useMemo as De, useEffect as he, cloneElement as ur } from "react";
|
|
3
|
-
import { h as lr, j as T, e as ye } from "./
|
|
4
|
-
import { _ as fr, g as Ct, j as dr, i as Ve, h as Ce, o as Tt, l as fe, k as pr, p as ut, q as Ke, f as lt, r as vr, n as ne, v as $t, m as ft, z as hr, F as dt, A as Fe, P as mr } from "./hasClass-
|
|
3
|
+
import { h as lr, j as T, e as ye } from "./HomeDashboard.module-CuVVnp4t.mjs";
|
|
4
|
+
import { _ as fr, g as Ct, j as dr, i as Ve, h as Ce, o as Tt, l as fe, k as pr, p as ut, q as Ke, f as lt, r as vr, n as ne, v as $t, m as ft, z as hr, F as dt, A as Fe, P as mr } from "./hasClass-D3KZs5y_.mjs";
|
|
5
5
|
import gr from "react-dom";
|
|
6
6
|
var St = {
|
|
7
7
|
color: void 0,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import DashboardWidget from '@models/types/DashboardWidget';
|
|
3
|
-
import HomeDashboardTexts from '@models/texts/HomeDashboardTexts';
|
|
4
3
|
type Props = {
|
|
5
4
|
availableWidgets: DashboardWidget[];
|
|
6
|
-
texts: HomeDashboardTexts;
|
|
7
5
|
};
|
|
8
|
-
declare const HomeDashboard: ({ availableWidgets
|
|
6
|
+
declare const HomeDashboard: ({ availableWidgets }: Props) => import("react").JSX.Element;
|
|
9
7
|
export default HomeDashboard;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AxiosInstance } from 'axios';
|
|
3
3
|
import { LinkProps } from 'react-router-dom';
|
|
4
|
-
import { AxiosTexts, ConfirmTexts, EmployeeSearchModalTexts, FormValidationTexts } from '@models/index';
|
|
4
|
+
import { AxiosTexts, ConfirmTexts, EmployeeSearchModalTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
5
5
|
interface ILuminusComponentsContext {
|
|
6
6
|
axiosInstance: AxiosInstance;
|
|
7
7
|
LinkComponent: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -10,6 +10,7 @@ interface ILuminusComponentsContext {
|
|
|
10
10
|
confirmTexts: ConfirmTexts;
|
|
11
11
|
formValidationTexts: FormValidationTexts;
|
|
12
12
|
employeePickerModalTexts: EmployeeSearchModalTexts;
|
|
13
|
+
homeDashboardTexts: HomeDashboardTexts;
|
|
13
14
|
}
|
|
14
15
|
declare const LuminusComponentsContext: import("react").Context<ILuminusComponentsContext>;
|
|
15
16
|
export default LuminusComponentsContext;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { LinkProps } from 'react-router-dom';
|
|
3
3
|
import { AxiosInstance } from 'axios';
|
|
4
|
-
import { AxiosTexts, ConfirmTexts, EmployeeSearchModalTexts, FormValidationTexts } from '@models/index';
|
|
4
|
+
import { AxiosTexts, ConfirmTexts, EmployeeSearchModalTexts, FormValidationTexts, HomeDashboardTexts } from '@models/index';
|
|
5
5
|
type Props = {
|
|
6
6
|
axiosInstance: AxiosInstance;
|
|
7
7
|
LinkComponent: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -10,7 +10,8 @@ type Props = {
|
|
|
10
10
|
confirmTexts: ConfirmTexts;
|
|
11
11
|
formValidationTexts: FormValidationTexts;
|
|
12
12
|
employeePickerModalTexts: EmployeeSearchModalTexts;
|
|
13
|
+
homeDashboardTexts: HomeDashboardTexts;
|
|
13
14
|
children: React.ReactNode;
|
|
14
15
|
};
|
|
15
|
-
declare const LuminusComponentsProvider: ({ axiosInstance, LinkComponent, language, axiosTexts, confirmTexts, formValidationTexts, employeePickerModalTexts, children, }: Props) => import("react").JSX.Element;
|
|
16
|
+
declare const LuminusComponentsProvider: ({ axiosInstance, LinkComponent, language, axiosTexts, confirmTexts, formValidationTexts, employeePickerModalTexts, homeDashboardTexts, children, }: Props) => import("react").JSX.Element;
|
|
16
17
|
export default LuminusComponentsProvider;
|
package/dist/contexts.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./HomeDashboard.module-BI8obEZ_.js"),t=require("react"),d=require("./Modal-DmUjIS_Q.js"),j=require("./useConfirm-CQCMwQlb.js"),p=({children:u})=>{const[o,n]=t.useState(!1),[s,r]=t.useState(""),i=t.useCallback(x=>{n(!0),r(x)},[]),l=t.useCallback(()=>{n(!1)},[]),a=t.useMemo(()=>({show:o,text:s,showConfirm:i,hideConfirm:l}),[o,s,i,l]);return e.jsxRuntimeExports.jsxs(e.ConfirmContext.Provider,{value:a,children:[e.jsxRuntimeExports.jsx(v,{}),u]})},g=({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:s,confirmTexts:r,formValidationTexts:i,employeePickerModalTexts:l,homeDashboardTexts:a,children:x})=>{const m=t.useMemo(()=>({axiosInstance:u,LinkComponent:o,language:n,axiosTexts:s,confirmTexts:r,formValidationTexts:i,employeePickerModalTexts:l,homeDashboardTexts:a}),[u,o,n,s,r,i,l,a]);return e.jsxRuntimeExports.jsx(e.LuminusComponentsContext.Provider,{value:m,children:e.jsxRuntimeExports.jsxs(p,{children:[e.jsxRuntimeExports.jsx(e.Ie,{}),x]})})},b=({children:u})=>{const[o,n]=t.useState(!1),[s]=t.useState(new Set),r=t.useCallback(a=>{s.add(a),n(!0)},[s]),i=t.useCallback(a=>{s.delete(a),s.size===0&&n(!1)},[s]),l=t.useMemo(()=>({isLoading:o,startLoading:r,stopLoading:i}),[o,r,i]);return e.jsxRuntimeExports.jsxs(e.LoadingContext.Provider,{value:l,children:[o&&e.jsxRuntimeExports.jsx(d.Loading,{}),u]})},f=({children:u})=>{const o=e.useAxios(),n=t.useCallback(()=>{const c=localStorage.getItem("user")??null;return c?JSON.parse(c):null},[]),[s,r]=t.useState(n()),i=t.useCallback(async()=>{let c=null;return await o.get("/user/detail").then(C=>{c=C.data}).catch(()=>{c=null}),localStorage.setItem("user",JSON.stringify(c)),c},[o]),l=t.useCallback(()=>{localStorage.removeItem("user")},[]),a=t.useCallback(async()=>{const c=await i();return c?(r(c),!0):!1},[i]),x=t.useCallback(()=>{l(),r(null)},[l]),m=t.useMemo(()=>({user:s,loginUser:a,logoutUser:x}),[s,a,x]);return t.useEffect(()=>{r(n())},[n]),e.jsxRuntimeExports.jsx(e.UserContext.Provider,{value:m,children:u})},v=()=>{const{confirmTexts:u}=t.useContext(e.LuminusComponentsContext),{onConfirm:o,onCancel:n,text:s,show:r}=j.useConfirm();return e.jsxRuntimeExports.jsx(d.Modal,{show:r,size:"sm",centered:!0,onHide:n,children:e.jsxRuntimeExports.jsxs(d.Modal.Body,{children:[e.jsxRuntimeExports.jsx("div",{className:"mb-5 text-center",children:e.jsxRuntimeExports.jsx(d.Typography,{variant:"h6",children:s})}),e.jsxRuntimeExports.jsxs("div",{className:"w-100 d-flex gap-5",children:[e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-secondary w-100",onClick:n,children:u.no}),e.jsxRuntimeExports.jsx("button",{type:"button",className:"btn btn-primary w-100 ml",onClick:o,children:u.yes})]})]})})};exports.LoadingContext=e.LoadingContext;exports.LuminusComponentsContext=e.LuminusComponentsContext;exports.UserContext=e.UserContext;exports.LoadingProvider=b;exports.LuminusComponentsProvider=g;exports.UserProvider=f;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,77 +1,79 @@
|
|
|
1
|
-
import { j as s, C as j, L as
|
|
1
|
+
import { j as s, C as j, L as h, I as v, d as p, b, U as w } from "./HomeDashboard.module-CuVVnp4t.mjs";
|
|
2
2
|
import { useState as m, useCallback as u, useMemo as x, useEffect as y, useContext as L } from "react";
|
|
3
|
-
import { L as S, M as
|
|
4
|
-
import { u as P } from "./useConfirm-
|
|
3
|
+
import { L as S, M as g, T as U } from "./Modal-DsY3WNWM.mjs";
|
|
4
|
+
import { u as P } from "./useConfirm-Yw2xz-A-.mjs";
|
|
5
5
|
const I = ({ children: r }) => {
|
|
6
|
-
const [n,
|
|
7
|
-
|
|
8
|
-
}, []),
|
|
9
|
-
|
|
10
|
-
}, []), c = x(() => ({ show: n, text:
|
|
6
|
+
const [n, e] = m(!1), [t, o] = m(""), i = u((d) => {
|
|
7
|
+
e(!0), o(d);
|
|
8
|
+
}, []), a = u(() => {
|
|
9
|
+
e(!1);
|
|
10
|
+
}, []), c = x(() => ({ show: n, text: t, showConfirm: i, hideConfirm: a }), [n, t, i, a]);
|
|
11
11
|
return /* @__PURE__ */ s.jsxs(j.Provider, { value: c, children: [
|
|
12
12
|
/* @__PURE__ */ s.jsx(N, {}),
|
|
13
13
|
r
|
|
14
14
|
] });
|
|
15
|
-
}, O = ({ axiosInstance: r, LinkComponent: n, language:
|
|
16
|
-
const
|
|
15
|
+
}, O = ({ axiosInstance: r, LinkComponent: n, language: e, axiosTexts: t, confirmTexts: o, formValidationTexts: i, employeePickerModalTexts: a, homeDashboardTexts: c, children: d }) => {
|
|
16
|
+
const f = x(() => ({
|
|
17
17
|
axiosInstance: r,
|
|
18
18
|
LinkComponent: n,
|
|
19
|
-
language:
|
|
20
|
-
axiosTexts:
|
|
19
|
+
language: e,
|
|
20
|
+
axiosTexts: t,
|
|
21
21
|
confirmTexts: o,
|
|
22
|
-
formValidationTexts:
|
|
23
|
-
employeePickerModalTexts:
|
|
22
|
+
formValidationTexts: i,
|
|
23
|
+
employeePickerModalTexts: a,
|
|
24
|
+
homeDashboardTexts: c
|
|
24
25
|
}), [
|
|
25
26
|
r,
|
|
26
27
|
n,
|
|
27
|
-
t,
|
|
28
28
|
e,
|
|
29
|
+
t,
|
|
29
30
|
o,
|
|
31
|
+
i,
|
|
30
32
|
a,
|
|
31
|
-
|
|
33
|
+
c
|
|
32
34
|
]);
|
|
33
|
-
return /* @__PURE__ */ s.jsx(
|
|
35
|
+
return /* @__PURE__ */ s.jsx(h.Provider, { value: f, children: /* @__PURE__ */ s.jsxs(I, { children: [
|
|
34
36
|
/* @__PURE__ */ s.jsx(v, {}),
|
|
35
|
-
|
|
37
|
+
d
|
|
36
38
|
] }) });
|
|
37
39
|
}, k = ({ children: r }) => {
|
|
38
|
-
const [n,
|
|
39
|
-
|
|
40
|
-
}, [
|
|
41
|
-
|
|
42
|
-
}, [
|
|
43
|
-
return /* @__PURE__ */ s.jsxs(p.Provider, { value:
|
|
40
|
+
const [n, e] = m(!1), [t] = m(/* @__PURE__ */ new Set()), o = u((c) => {
|
|
41
|
+
t.add(c), e(!0);
|
|
42
|
+
}, [t]), i = u((c) => {
|
|
43
|
+
t.delete(c), t.size === 0 && e(!1);
|
|
44
|
+
}, [t]), a = x(() => ({ isLoading: n, startLoading: o, stopLoading: i }), [n, o, i]);
|
|
45
|
+
return /* @__PURE__ */ s.jsxs(p.Provider, { value: a, children: [
|
|
44
46
|
n && /* @__PURE__ */ s.jsx(S, {}),
|
|
45
47
|
r
|
|
46
48
|
] });
|
|
47
49
|
}, A = ({ children: r }) => {
|
|
48
|
-
const n = b(),
|
|
50
|
+
const n = b(), e = u(() => {
|
|
49
51
|
const l = localStorage.getItem("user") ?? null;
|
|
50
52
|
return l ? JSON.parse(l) : null;
|
|
51
|
-
}, []), [
|
|
53
|
+
}, []), [t, o] = m(e()), i = u(async () => {
|
|
52
54
|
let l = null;
|
|
53
55
|
return await n.get("/user/detail").then((C) => {
|
|
54
56
|
l = C.data;
|
|
55
57
|
}).catch(() => {
|
|
56
58
|
l = null;
|
|
57
59
|
}), localStorage.setItem("user", JSON.stringify(l)), l;
|
|
58
|
-
}, [n]),
|
|
60
|
+
}, [n]), a = u(() => {
|
|
59
61
|
localStorage.removeItem("user");
|
|
60
62
|
}, []), c = u(async () => {
|
|
61
|
-
const l = await
|
|
63
|
+
const l = await i();
|
|
62
64
|
return l ? (o(l), !0) : !1;
|
|
63
|
-
}, [
|
|
64
|
-
|
|
65
|
-
}, [
|
|
65
|
+
}, [i]), d = u(() => {
|
|
66
|
+
a(), o(null);
|
|
67
|
+
}, [a]), f = x(() => ({ user: t, loginUser: c, logoutUser: d }), [t, c, d]);
|
|
66
68
|
return y(() => {
|
|
67
|
-
o(
|
|
68
|
-
}, [
|
|
69
|
+
o(e());
|
|
70
|
+
}, [e]), /* @__PURE__ */ s.jsx(w.Provider, { value: f, children: r });
|
|
69
71
|
}, N = () => {
|
|
70
|
-
const { confirmTexts: r } = L(
|
|
71
|
-
return /* @__PURE__ */ s.jsx(
|
|
72
|
-
/* @__PURE__ */ s.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ s.jsx(U, { variant: "h6", children:
|
|
72
|
+
const { confirmTexts: r } = L(h), { onConfirm: n, onCancel: e, text: t, show: o } = P();
|
|
73
|
+
return /* @__PURE__ */ s.jsx(g, { show: o, size: "sm", centered: !0, onHide: e, children: /* @__PURE__ */ s.jsxs(g.Body, { children: [
|
|
74
|
+
/* @__PURE__ */ s.jsx("div", { className: "mb-5 text-center", children: /* @__PURE__ */ s.jsx(U, { variant: "h6", children: t }) }),
|
|
73
75
|
/* @__PURE__ */ s.jsxs("div", { className: "w-100 d-flex gap-5", children: [
|
|
74
|
-
/* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-secondary w-100", onClick:
|
|
76
|
+
/* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-secondary w-100", onClick: e, children: r.no }),
|
|
75
77
|
/* @__PURE__ */ s.jsx("button", { type: "button", className: "btn btn-primary w-100 ml", onClick: n, children: r.yes })
|
|
76
78
|
] })
|
|
77
79
|
] }) });
|
|
@@ -79,7 +81,7 @@ const I = ({ children: r }) => {
|
|
|
79
81
|
export {
|
|
80
82
|
p as LoadingContext,
|
|
81
83
|
k as LoadingProvider,
|
|
82
|
-
|
|
84
|
+
h as LuminusComponentsContext,
|
|
83
85
|
O as LuminusComponentsProvider,
|
|
84
86
|
w as UserContext,
|
|
85
87
|
A as UserProvider
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ue from "react";
|
|
2
2
|
import K, { useContext as ne, useMemo as ot, useRef as Y, useCallback as $, useEffect as H, useState as Ae, useLayoutEffect as it, createContext as at, cloneElement as De } from "react";
|
|
3
|
-
import { h as st, j as Q, e as ut } from "./
|
|
3
|
+
import { h as st, j as Q, e as ut } from "./HomeDashboard.module-CuVVnp4t.mjs";
|
|
4
4
|
import ee from "react-dom";
|
|
5
5
|
function ct(e, n) {
|
|
6
6
|
if (e == null)
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
"use strict";const p=require("react"),G=require("./
|
|
1
|
+
"use strict";const p=require("react"),G=require("./HomeDashboard.module-BI8obEZ_.js"),J=require("react-dom");function st(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return n.default=e,Object.freeze(n)}const ie=st(p);function Ve(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}function Oe(e,n){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},Oe(e,n)}function ut(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Oe(e,n)}const ct=["xxl","xl","lg","md","sm","xs"],ft="xs",se=ie.createContext({prefixes:{},breakpoints:ct,minBreakpoint:ft});function lt(e,n){const{prefixes:i}=p.useContext(se);return e||i[n]||n}function dt(){const{breakpoints:e}=p.useContext(se);return e}function pt(){const{minBreakpoint:e}=p.useContext(se);return e}function vt(){const{dir:e}=p.useContext(se);return e==="rtl"}function we(e){return e&&e.ownerDocument||document}function Et(e){var n=we(e);return n&&n.defaultView||window}function yt(e,n){return Et(e).getComputedStyle(e,n)}var mt=/([A-Z])/g;function ht(e){return e.replace(mt,"-$1").toLowerCase()}var bt=/^ms-/;function re(e){return ht(e).replace(bt,"-ms-")}var xt=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function Tt(e){return!!(e&&xt.test(e))}function je(e,n){var i="",r="";if(typeof n=="string")return e.style.getPropertyValue(re(n))||yt(e).getPropertyValue(re(n));Object.keys(n).forEach(function(o){var t=n[o];!t&&t!==0?e.style.removeProperty(re(o)):Tt(o)?r+=o+"("+t+") ":i+=re(o)+": "+t+";"}),r&&(i+="transform: "+r+";"),e.style.cssText+=";"+i}var Se={exports:{}},oe={exports:{}},_={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var Ie;function gt(){if(Ie)return _;Ie=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,
|
|
8
|
+
*/var Ie;function gt(){if(Ie)return _;Ie=1;var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,E=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function A(c){if(typeof c=="object"&&c!==null){var N=c.$$typeof;switch(N){case n:switch(c=c.type,c){case d:case v:case r:case t:case o:case y:return c;default:switch(c=c&&c.$$typeof,c){case u:case E:case k:case M:case s:return c;default:return N}}case i:return N}}}function D(c){return A(c)===v}return _.AsyncMode=d,_.ConcurrentMode=v,_.ContextConsumer=u,_.ContextProvider=s,_.Element=n,_.ForwardRef=E,_.Fragment=r,_.Lazy=k,_.Memo=M,_.Portal=i,_.Profiler=t,_.StrictMode=o,_.Suspense=y,_.isAsyncMode=function(c){return D(c)||A(c)===d},_.isConcurrentMode=D,_.isContextConsumer=function(c){return A(c)===u},_.isContextProvider=function(c){return A(c)===s},_.isElement=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===n},_.isForwardRef=function(c){return A(c)===E},_.isFragment=function(c){return A(c)===r},_.isLazy=function(c){return A(c)===k},_.isMemo=function(c){return A(c)===M},_.isPortal=function(c){return A(c)===i},_.isProfiler=function(c){return A(c)===t},_.isStrictMode=function(c){return A(c)===o},_.isSuspense=function(c){return A(c)===y},_.isValidElementType=function(c){return typeof c=="string"||typeof c=="function"||c===r||c===v||c===t||c===o||c===y||c===C||typeof c=="object"&&c!==null&&(c.$$typeof===k||c.$$typeof===M||c.$$typeof===s||c.$$typeof===u||c.$$typeof===E||c.$$typeof===I||c.$$typeof===L||c.$$typeof===F||c.$$typeof===j)},_.typeOf=A,_}var P={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var Le;function Rt(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,
|
|
15
|
+
*/var Le;function Rt(){return Le||(Le=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,n=e?Symbol.for("react.element"):60103,i=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,t=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,E=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,C=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,j=e?Symbol.for("react.block"):60121,I=e?Symbol.for("react.fundamental"):60117,L=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function A(f){return typeof f=="string"||typeof f=="function"||f===r||f===v||f===t||f===o||f===y||f===C||typeof f=="object"&&f!==null&&(f.$$typeof===k||f.$$typeof===M||f.$$typeof===s||f.$$typeof===u||f.$$typeof===E||f.$$typeof===I||f.$$typeof===L||f.$$typeof===F||f.$$typeof===j)}function D(f){if(typeof f=="object"&&f!==null){var q=f.$$typeof;switch(q){case n:var ne=f.type;switch(ne){case d:case v:case r:case t:case o:case y:return ne;default:var Ae=ne&&ne.$$typeof;switch(Ae){case u:case E:case k:case M:case s:return Ae;default:return q}}case i:return q}}}var c=d,N=v,V=u,ce=s,fe=n,le=E,ee=r,de=k,pe=M,K=i,ve=t,W=o,X=y,te=!1;function Ee(f){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),a(f)||D(f)===d}function a(f){return D(f)===v}function l(f){return D(f)===u}function g(f){return D(f)===s}function x(f){return typeof f=="object"&&f!==null&&f.$$typeof===n}function m(f){return D(f)===E}function R(f){return D(f)===r}function b(f){return D(f)===k}function T(f){return D(f)===M}function O(f){return D(f)===i}function w(f){return D(f)===t}function S(f){return D(f)===o}function $(f){return D(f)===y}P.AsyncMode=c,P.ConcurrentMode=N,P.ContextConsumer=V,P.ContextProvider=ce,P.Element=fe,P.ForwardRef=le,P.Fragment=ee,P.Lazy=de,P.Memo=pe,P.Portal=K,P.Profiler=ve,P.StrictMode=W,P.Suspense=X,P.isAsyncMode=Ee,P.isConcurrentMode=a,P.isContextConsumer=l,P.isContextProvider=g,P.isElement=x,P.isForwardRef=m,P.isFragment=R,P.isLazy=b,P.isMemo=T,P.isPortal=O,P.isProfiler=w,P.isStrictMode=S,P.isSuspense=$,P.isValidElementType=A,P.typeOf=D}()),P}var Ne;function Xe(){return Ne||(Ne=1,process.env.NODE_ENV==="production"?oe.exports=gt():oe.exports=Rt()),oe.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var ye,$e;function Ot(){if($e)return ye;$e=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(s),null," "));var f=$(T,S,m,R,b+"."+S,i);if(f)return f}return null}return I(l)}function K(s){switch(typeof s){case"number":case"string":case"undefined":return!0;case"boolean":return!s;case"object":if(Array.isArray(s))return s.every(K);if(s===null||u(s))return!0;var l=y(s);if(l){var g=l.call(s),x;if(l!==s.entries){for(;!(x=g.next()).done;)if(!K(x.value))return!1}else for(;!(x=g.next()).done;){var m=x.value;if(m&&!K(m[1]))return!1}}else return!1;return!0;default:return!1}}function ve(s,l){return s==="symbol"?!0:l?l["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&l instanceof Symbol:!1}function W(s){var l=typeof s;return Array.isArray(s)?"array":s instanceof RegExp?"object":ve(l,s)?"symbol":l}function X(s){if(typeof s>"u"||s===null)return""+s;var l=W(s);if(l==="object"){if(s instanceof Date)return"date";if(s instanceof RegExp)return"regexp"}return l}function te(s){var l=X(s);switch(l){case"array":case"object":return"an "+l;case"boolean":case"date":case"regexp":return"a "+l;default:return l}}function Ee(s){return!s.constructor||!s.constructor.name?C:s.constructor.name}return M.checkPropTypes=o,M.resetWarningCache=o.resetWarningCache,M.PropTypes=M,M},xe}var Te,Ye;function _t(){if(Ye)return Te;Ye=1;var e=De();function n(){}function i(){}return i.resetWarningCache=n,Te=function(){function r(a,u,d,v,E,y){if(y!==e){var C=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 C.name="Invariant Violation",C}}r.isRequired=r;function o(){return r}var t={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:i,resetWarningCache:n};return t.PropTypes=t,t},Te}if(process.env.NODE_ENV!=="production"){var Pt=Xe(),wt=!0;Se.exports=Ct()(Pt.isElement,wt)}else Se.exports=_t()();var jt=Se.exports;const h=G.getDefaultExportFromCjs(jt),Be={disabled:!1};var Dt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.shape({enter:h.number,exit:h.number,appear:h.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&h.oneOfType([h.string,h.shape({enter:h.string,exit:h.string,active:h.string}),h.shape({enter:h.string,enterDone:h.string,enterActive:h.string,exit:h.string,exitDone:h.string,exitActive:h.string})]);const He=p.createContext(null);var Mt=function(n){return n.scrollTop},Z="unmounted",B="exited",U="entering",z="entered",se="exiting",Y=function(e){ut(n,e);function n(r,o){var t;t=e.call(this,r,o)||this;var a=o,u=a&&!a.isMounting?r.enter:r.appear,d;return t.appearStatus=null,r.in?u?(d=B,t.appearStatus=U):d=z:r.unmountOnExit||r.mountOnEnter?d=Z:d=B,t.state={status:d},t.nextCallback=null,t}n.getDerivedStateFromProps=function(o,t){var a=o.in;return a&&t.status===Z?{status:B}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(o){var t=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==U&&a!==z&&(t=U):(a===U||a===z)&&(t=se)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var o=this.props.timeout,t,a,u;return t=a=u=o,o!=null&&typeof o!="number"&&(t=o.exit,a=o.enter,u=o.appear!==void 0?o.appear:a),{exit:t,enter:a,appear:u}},i.updateStatus=function(o,t){if(o===void 0&&(o=!1),t!==null)if(this.cancelNextCallback(),t===U){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:J.findDOMNode(this);a&&Mt(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===B&&this.setState({status:Z})},i.performEnter=function(o){var t=this,a=this.props.enter,u=this.context?this.context.isMounting:o,d=this.props.nodeRef?[u]:[J.findDOMNode(this),u],v=d[0],E=d[1],y=this.getTimeouts(),C=u?y.appear:y.enter;if(!o&&!a||Be.disabled){this.safeSetState({status:z},function(){t.props.onEntered(v)});return}this.props.onEnter(v,E),this.safeSetState({status:U},function(){t.props.onEntering(v,E),t.onTransitionEnd(C,function(){t.safeSetState({status:z},function(){t.props.onEntered(v,E)})})})},i.performExit=function(){var o=this,t=this.props.exit,a=this.getTimeouts(),u=this.props.nodeRef?void 0:J.findDOMNode(this);if(!t||Be.disabled){this.safeSetState({status:B},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:se},function(){o.props.onExiting(u),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:B},function(){o.props.onExited(u)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(o,t){t=this.setNextCallback(t),this.setState(o,t)},i.setNextCallback=function(o){var t=this,a=!0;return this.nextCallback=function(u){a&&(a=!1,t.nextCallback=null,o(u))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},i.onTransitionEnd=function(o,t){this.setNextCallback(t);var a=this.props.nodeRef?this.props.nodeRef.current:J.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!a||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],v=d[0],E=d[1];this.props.addEndListener(v,E)}o!=null&&setTimeout(this.nextCallback,o)},i.render=function(){var o=this.state.status;if(o===Z)return null;var t=this.props,a=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var u=Ve(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(He.Provider,{value:null},typeof a=="function"?a(o,u):p.cloneElement(p.Children.only(a),u))},n}(p.Component);Y.contextType=He;Y.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:h.shape({current:typeof Element>"u"?h.any:function(e,n,i,r,o,t){var a=e[n];return h.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,n,i,r,o,t)}}),children:h.oneOfType([h.func.isRequired,h.element.isRequired]).isRequired,in:h.bool,mountOnEnter:h.bool,unmountOnExit:h.bool,appear:h.bool,enter:h.bool,exit:h.bool,timeout:function(n){var i=Dt;n.addEndListener||(i=i.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),t=1;t<r;t++)o[t-1]=arguments[t];return i.apply(void 0,[n].concat(o))},addEndListener:h.func,onEnter:h.func,onEntering:h.func,onEntered:h.func,onExit:h.func,onExiting:h.func,onExited:h.func}:{};function H(){}Y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:H,onEntering:H,onEntered:H,onExit:H,onExiting:H,onExited:H};Y.UNMOUNTED=Z;Y.EXITED=B;Y.ENTERING=U;Y.ENTERED=z;Y.EXITING=se;const kt=Y,ue=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ce=!1,_e=!1;try{var ge={get passive(){return Ce=!0},get once(){return _e=Ce=!0}};ue&&(window.addEventListener("test",ge,ge),window.removeEventListener("test",ge,!0))}catch{}function Je(e,n,i,r){if(r&&typeof r!="boolean"&&!_e){var o=r.once,t=r.capture,a=i;!_e&&o&&(a=i.__once||function u(d){this.removeEventListener(n,u,t),i.call(this,d)},i.__once=a),e.addEventListener(n,a,Ce?r:t)}e.addEventListener(n,i,r)}function Ze(e,n,i,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(n,i,o),i.__once&&e.removeEventListener(n,i.__once,o)}function Me(e,n,i,r){return Je(e,n,i,r),function(){Ze(e,n,i,r)}}function At(e,n,i,r){if(i===void 0&&(i=!1),r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(n,i,r),e.dispatchEvent(o)}}function It(e){var n=je(e,"transitionDuration")||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function Lt(e,n,i){i===void 0&&(i=5);var r=!1,o=setTimeout(function(){r||At(e,"transitionend",!0)},n+i),t=Me(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),t()}}function Qe(e,n,i,r){i==null&&(i=It(e)||0);var o=Lt(e,i,r),t=Me(e,"transitionend",n);return function(){o(),t()}}function ze(e,n){const i=je(e,n)||"",r=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*r}function et(e,n){const i=ze(e,"transitionDuration"),r=ze(e,"transitionDelay"),o=Qe(e,t=>{t.target===e&&(o(),n(t))},i+r)}function tt(e){e.offsetHeight}const Ge=e=>!e||typeof e=="function"?e:n=>{e.current=n};function Nt(e,n){const i=Ge(e),r=Ge(n);return o=>{i&&i(o),r&&r(o)}}function Q(e,n){return p.useMemo(()=>Nt(e,n),[e,n])}function nt(e){return e&&"setState"in e?J.findDOMNode(e):e??null}const $t=p.forwardRef(({onEnter:e,onEntering:n,onEntered:i,onExit:r,onExiting:o,onExited:t,addEndListener:a,children:u,childRef:d,...v},E)=>{const y=p.useRef(null),C=Q(y,d),M=N=>{C(nt(N))},k=N=>V=>{N&&y.current&&N(y.current,V)},j=p.useCallback(k(e),[e]),I=p.useCallback(k(n),[n]),L=p.useCallback(k(i),[i]),F=p.useCallback(k(r),[r]),A=p.useCallback(k(o),[o]),D=p.useCallback(k(t),[t]),c=p.useCallback(k(a),[a]);return G.jsxRuntimeExports.jsx(kt,{ref:E,...v,onEnter:j,onEntered:L,onEntering:I,onExit:F,onExited:D,onExiting:A,addEndListener:c,nodeRef:y,children:typeof u=="function"?(N,V)=>u(N,{...V,ref:M}):p.cloneElement(u,{ref:M})})}),rt=$t;function Wt(e){const n=p.useRef(e);return p.useEffect(()=>{n.current=e},[e]),n}function ke(e){const n=Wt(e);return p.useCallback(function(...i){return n.current&&n.current(...i)},[n])}function qt(){return p.useState(null)}function Ft(){const e=p.useRef(!0),n=p.useRef(()=>e.current);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),n.current}const Ut=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Yt=typeof document<"u",Pe=Yt||Ut?p.useLayoutEffect:p.useEffect,Bt={[U]:"show",[z]:"show"},ot=ie.forwardRef(({className:e,children:n,transitionClasses:i={},onEnter:r,...o},t)=>{const a={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},u=p.useCallback((d,v)=>{tt(d),r==null||r(d,v)},[r]);return G.jsxRuntimeExports.jsx(rt,{ref:t,addEndListener:et,...a,onEnter:u,childRef:n.ref,children:(d,v)=>ie.cloneElement(n,{...v,className:G.classNames("fade",e,n.props.className,Bt[d],i[d])})})});ot.displayName="Fade";const zt=ot;function Gt(e){const n=p.useRef(e);return n.current=e,n}function Vt(e){const n=Gt(e);p.useEffect(()=>()=>n.current(),[])}function Xt(e,n){if(e.contains)return e.contains(n);if(e.compareDocumentPosition)return e===n||!!(e.compareDocumentPosition(n)&16)}const it=p.createContext(ue?window:void 0);it.Provider;function st(){return p.useContext(it)}const Re=(e,n)=>ue?e==null?(n||we()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Kt(e,n){const i=st(),[r,o]=p.useState(()=>Re(e,i==null?void 0:i.document));if(!r){const t=Re(e);t&&o(t)}return p.useEffect(()=>{n&&r&&n(r)},[n,r]),p.useEffect(()=>{const t=Re(e);t!==r&&o(t)},[e,r]),r}function Ht({children:e,in:n,onExited:i,mountOnEnter:r,unmountOnExit:o}){const t=p.useRef(null),a=p.useRef(n),u=ke(i);p.useEffect(()=>{n?a.current=!0:u(t.current)},[n,u]);const d=Q(t,e.ref),v=p.cloneElement(e,{ref:d});return n?v:o||!a.current&&r?null:v}const Jt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Zt(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}function Qt(e){let{onEnter:n,onEntering:i,onEntered:r,onExit:o,onExiting:t,onExited:a,addEndListener:u,children:d}=e,v=Zt(e,Jt);const E=p.useRef(null),y=Q(E,typeof d=="function"?null:d.ref),C=D=>c=>{D&&E.current&&D(E.current,c)},M=p.useCallback(C(n),[n]),k=p.useCallback(C(i),[i]),j=p.useCallback(C(r),[r]),I=p.useCallback(C(o),[o]),L=p.useCallback(C(t),[t]),F=p.useCallback(C(a),[a]),A=p.useCallback(C(u),[u]);return Object.assign({},v,{nodeRef:E},n&&{onEnter:M},i&&{onEntering:k},r&&{onEntered:j},o&&{onExit:I},t&&{onExiting:L},a&&{onExited:F},u&&{addEndListener:A},{children:typeof d=="function"?(D,c)=>d(D,Object.assign({},c,{ref:y})):p.cloneElement(d,{ref:y})})}const en=["component"];function tn(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}const nn=ie.forwardRef((e,n)=>{let{component:i}=e,r=tn(e,en);const o=Qt(r);return G.jsxRuntimeExports.jsx(i,Object.assign({ref:n},o))}),rn=nn;function on({in:e,onTransition:n}){const i=p.useRef(null),r=p.useRef(!0),o=ke(n);return Pe(()=>{if(!i.current)return;let t=!1;return o({in:e,element:i.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,o]),Pe(()=>(r.current=!1,()=>{r.current=!0}),[]),i}function sn({children:e,in:n,onExited:i,onEntered:r,transition:o}){const[t,a]=p.useState(!n);n&&t&&a(!1);const u=on({in:!!n,onTransition:v=>{const E=()=>{v.isStale()||(v.in?r==null||r(v.element,v.initial):(a(!0),i==null||i(v.element)))};Promise.resolve(o(v)).then(E,y=>{throw v.in||a(!0),y})}}),d=Q(u,e.ref);return t&&!n?null:p.cloneElement(e,{ref:d})}function an(e,n,i){return e?G.jsxRuntimeExports.jsx(rn,Object.assign({},i,{component:e})):n?G.jsxRuntimeExports.jsx(sn,Object.assign({},i,{transition:n})):G.jsxRuntimeExports.jsx(Ht,Object.assign({},i))}function un(e){return e.code==="Escape"||e.keyCode===27}function cn(e,n){return e.classList?!!n&&e.classList.contains(n):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")!==-1}exports.ENTERED=z;exports.ENTERING=U;exports.EXITED=B;exports.EXITING=se;exports.Fade=zt;exports.PropTypes=h;exports.TransitionWrapper=rt;exports._objectWithoutPropertiesLoose=Ve;exports.addEventListener=Je;exports.canUseDOM=ue;exports.contains=Xt;exports.hasClass=cn;exports.isEscKey=un;exports.listen=Me;exports.ownerDocument=we;exports.removeEventListener=Ze;exports.renderTransition=an;exports.safeFindDOMNode=nt;exports.style=je;exports.transitionEnd=Qe;exports.transitionEndListener=et;exports.triggerBrowserReflow=tt;exports.useBootstrapBreakpoints=dt;exports.useBootstrapMinBreakpoint=pt;exports.useBootstrapPrefix=lt;exports.useCallbackRef=qt;exports.useEventCallback=ke;exports.useIsRTL=vt;exports.useIsomorphicEffect=Pe;exports.useMergedRefs=Q;exports.useMounted=Ft;exports.useWaitForDOMRef=Kt;exports.useWillUnmount=Vt;exports.useWindow=st;
|
|
19
|
+
*/var ye,$e;function Ot(){if($e)return ye;$e=1;var e=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function o(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var s={},u=0;u<10;u++)s["_"+String.fromCharCode(u)]=u;var d=Object.getOwnPropertyNames(s).map(function(E){return s[E]});if(d.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(E){v[E]=E}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ye=o()?Object.assign:function(t,s){for(var u,d=r(t),v,E=1;E<arguments.length;E++){u=Object(arguments[E]);for(var y in u)n.call(u,y)&&(d[y]=u[y]);if(e){v=e(u);for(var C=0;C<v.length;C++)i.call(u,v[C])&&(d[v[C]]=u[v[C]])}}return d},ye}var me,We;function De(){if(We)return me;We=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return me=e,me}var he,qe;function Ke(){return qe||(qe=1,he=Function.call.bind(Object.prototype.hasOwnProperty)),he}var be,Fe;function St(){if(Fe)return be;Fe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var n=De(),i={},r=Ke();e=function(t){var s="Warning: "+t;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(t,s,u,d,v){if(process.env.NODE_ENV!=="production"){for(var E in t)if(r(t,E)){var y;try{if(typeof t[E]!="function"){var C=Error((d||"React class")+": "+u+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw C.name="Invariant Violation",C}y=t[E](s,E,d,u,null,n)}catch(k){y=k}if(y&&!(y instanceof Error)&&e((d||"React class")+": type specification of "+u+" `"+E+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof y+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),y instanceof Error&&!(y.message in i)){i[y.message]=!0;var M=v?v():"";e("Failed "+u+" type: "+y.message+(M??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},be=o,be}var xe,Ue;function Ct(){if(Ue)return xe;Ue=1;var e=Xe(),n=Ot(),i=De(),r=Ke(),o=St(),t=function(){};process.env.NODE_ENV!=="production"&&(t=function(u){var d="Warning: "+u;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function s(){return null}return xe=function(u,d){var v=typeof Symbol=="function"&&Symbol.iterator,E="@@iterator";function y(a){var l=a&&(v&&a[v]||a[E]);if(typeof l=="function")return l}var C="<<anonymous>>",M={array:L("array"),bigint:L("bigint"),bool:L("boolean"),func:L("function"),number:L("number"),object:L("object"),string:L("string"),symbol:L("symbol"),any:F(),arrayOf:A,element:D(),elementType:c(),instanceOf:N,node:le(),objectOf:ce,oneOf:V,oneOfType:fe,shape:de,exact:pe};function k(a,l){return a===l?a!==0||1/a===1/l:a!==a&&l!==l}function j(a,l){this.message=a,this.data=l&&typeof l=="object"?l:{},this.stack=""}j.prototype=Error.prototype;function I(a){if(process.env.NODE_ENV!=="production")var l={},g=0;function x(R,b,T,O,w,S,$){if(O=O||C,S=S||T,$!==i){if(d){var f=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 f.name="Invariant Violation",f}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var q=O+":"+T;!l[q]&&g<3&&(t("You are manually calling a React.PropTypes validation function for the `"+S+"` prop on `"+O+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),l[q]=!0,g++)}}return b[T]==null?R?b[T]===null?new j("The "+w+" `"+S+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new j("The "+w+" `"+S+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:a(b,T,O,w,S)}var m=x.bind(null,!1);return m.isRequired=x.bind(null,!0),m}function L(a){function l(g,x,m,R,b,T){var O=g[x],w=W(O);if(w!==a){var S=X(O);return new j("Invalid "+R+" `"+b+"` of type "+("`"+S+"` supplied to `"+m+"`, expected ")+("`"+a+"`."),{expectedType:a})}return null}return I(l)}function F(){return I(s)}function A(a){function l(g,x,m,R,b){if(typeof a!="function")return new j("Property `"+b+"` of component `"+m+"` has invalid PropType notation inside arrayOf.");var T=g[x];if(!Array.isArray(T)){var O=W(T);return new j("Invalid "+R+" `"+b+"` of type "+("`"+O+"` supplied to `"+m+"`, expected an array."))}for(var w=0;w<T.length;w++){var S=a(T,w,m,R,b+"["+w+"]",i);if(S instanceof Error)return S}return null}return I(l)}function D(){function a(l,g,x,m,R){var b=l[g];if(!u(b)){var T=W(b);return new j("Invalid "+m+" `"+R+"` of type "+("`"+T+"` supplied to `"+x+"`, expected a single ReactElement."))}return null}return I(a)}function c(){function a(l,g,x,m,R){var b=l[g];if(!e.isValidElementType(b)){var T=W(b);return new j("Invalid "+m+" `"+R+"` of type "+("`"+T+"` supplied to `"+x+"`, expected a single ReactElement type."))}return null}return I(a)}function N(a){function l(g,x,m,R,b){if(!(g[x]instanceof a)){var T=a.name||C,O=Ee(g[x]);return new j("Invalid "+R+" `"+b+"` of type "+("`"+O+"` supplied to `"+m+"`, expected ")+("instance of `"+T+"`."))}return null}return I(l)}function V(a){if(!Array.isArray(a))return process.env.NODE_ENV!=="production"&&(arguments.length>1?t("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):t("Invalid argument supplied to oneOf, expected an array.")),s;function l(g,x,m,R,b){for(var T=g[x],O=0;O<a.length;O++)if(k(T,a[O]))return null;var w=JSON.stringify(a,function($,f){var q=X(f);return q==="symbol"?String(f):f});return new j("Invalid "+R+" `"+b+"` of value `"+String(T)+"` "+("supplied to `"+m+"`, expected one of "+w+"."))}return I(l)}function ce(a){function l(g,x,m,R,b){if(typeof a!="function")return new j("Property `"+b+"` of component `"+m+"` has invalid PropType notation inside objectOf.");var T=g[x],O=W(T);if(O!=="object")return new j("Invalid "+R+" `"+b+"` of type "+("`"+O+"` supplied to `"+m+"`, expected an object."));for(var w in T)if(r(T,w)){var S=a(T,w,m,R,b+"."+w,i);if(S instanceof Error)return S}return null}return I(l)}function fe(a){if(!Array.isArray(a))return process.env.NODE_ENV!=="production"&&t("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var l=0;l<a.length;l++){var g=a[l];if(typeof g!="function")return t("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(g)+" at index "+l+"."),s}function x(m,R,b,T,O){for(var w=[],S=0;S<a.length;S++){var $=a[S],f=$(m,R,b,T,O,i);if(f==null)return null;f.data&&r(f.data,"expectedType")&&w.push(f.data.expectedType)}var q=w.length>0?", expected one of type ["+w.join(", ")+"]":"";return new j("Invalid "+T+" `"+O+"` supplied to "+("`"+b+"`"+q+"."))}return I(x)}function le(){function a(l,g,x,m,R){return K(l[g])?null:new j("Invalid "+m+" `"+R+"` supplied to "+("`"+x+"`, expected a ReactNode."))}return I(a)}function ee(a,l,g,x,m){return new j((a||"React class")+": "+l+" type `"+g+"."+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+m+"`.")}function de(a){function l(g,x,m,R,b){var T=g[x],O=W(T);if(O!=="object")return new j("Invalid "+R+" `"+b+"` of type `"+O+"` "+("supplied to `"+m+"`, expected `object`."));for(var w in a){var S=a[w];if(typeof S!="function")return ee(m,R,b,w,X(S));var $=S(T,w,m,R,b+"."+w,i);if($)return $}return null}return I(l)}function pe(a){function l(g,x,m,R,b){var T=g[x],O=W(T);if(O!=="object")return new j("Invalid "+R+" `"+b+"` of type `"+O+"` "+("supplied to `"+m+"`, expected `object`."));var w=n({},g[x],a);for(var S in w){var $=a[S];if(r(a,S)&&typeof $!="function")return ee(m,R,b,S,X($));if(!$)return new j("Invalid "+R+" `"+b+"` key `"+S+"` supplied to `"+m+"`.\nBad object: "+JSON.stringify(g[x],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(a),null," "));var f=$(T,S,m,R,b+"."+S,i);if(f)return f}return null}return I(l)}function K(a){switch(typeof a){case"number":case"string":case"undefined":return!0;case"boolean":return!a;case"object":if(Array.isArray(a))return a.every(K);if(a===null||u(a))return!0;var l=y(a);if(l){var g=l.call(a),x;if(l!==a.entries){for(;!(x=g.next()).done;)if(!K(x.value))return!1}else for(;!(x=g.next()).done;){var m=x.value;if(m&&!K(m[1]))return!1}}else return!1;return!0;default:return!1}}function ve(a,l){return a==="symbol"?!0:l?l["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&l instanceof Symbol:!1}function W(a){var l=typeof a;return Array.isArray(a)?"array":a instanceof RegExp?"object":ve(l,a)?"symbol":l}function X(a){if(typeof a>"u"||a===null)return""+a;var l=W(a);if(l==="object"){if(a instanceof Date)return"date";if(a instanceof RegExp)return"regexp"}return l}function te(a){var l=X(a);switch(l){case"array":case"object":return"an "+l;case"boolean":case"date":case"regexp":return"a "+l;default:return l}}function Ee(a){return!a.constructor||!a.constructor.name?C:a.constructor.name}return M.checkPropTypes=o,M.resetWarningCache=o.resetWarningCache,M.PropTypes=M,M},xe}var Te,Ye;function _t(){if(Ye)return Te;Ye=1;var e=De();function n(){}function i(){}return i.resetWarningCache=n,Te=function(){function r(s,u,d,v,E,y){if(y!==e){var C=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 C.name="Invariant Violation",C}}r.isRequired=r;function o(){return r}var t={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:i,resetWarningCache:n};return t.PropTypes=t,t},Te}if(process.env.NODE_ENV!=="production"){var Pt=Xe(),wt=!0;Se.exports=Ct()(Pt.isElement,wt)}else Se.exports=_t()();var jt=Se.exports;const h=G.getDefaultExportFromCjs(jt),Be={disabled:!1};var Dt=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.shape({enter:h.number,exit:h.number,appear:h.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&h.oneOfType([h.string,h.shape({enter:h.string,exit:h.string,active:h.string}),h.shape({enter:h.string,enterDone:h.string,enterActive:h.string,exit:h.string,exitDone:h.string,exitActive:h.string})]);const He=p.createContext(null);var Mt=function(n){return n.scrollTop},Z="unmounted",B="exited",U="entering",z="entered",ae="exiting",Y=function(e){ut(n,e);function n(r,o){var t;t=e.call(this,r,o)||this;var s=o,u=s&&!s.isMounting?r.enter:r.appear,d;return t.appearStatus=null,r.in?u?(d=B,t.appearStatus=U):d=z:r.unmountOnExit||r.mountOnEnter?d=Z:d=B,t.state={status:d},t.nextCallback=null,t}n.getDerivedStateFromProps=function(o,t){var s=o.in;return s&&t.status===Z?{status:B}:null};var i=n.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(o){var t=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==U&&s!==z&&(t=U):(s===U||s===z)&&(t=ae)}this.updateStatus(!1,t)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var o=this.props.timeout,t,s,u;return t=s=u=o,o!=null&&typeof o!="number"&&(t=o.exit,s=o.enter,u=o.appear!==void 0?o.appear:s),{exit:t,enter:s,appear:u}},i.updateStatus=function(o,t){if(o===void 0&&(o=!1),t!==null)if(this.cancelNextCallback(),t===U){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:J.findDOMNode(this);s&&Mt(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===B&&this.setState({status:Z})},i.performEnter=function(o){var t=this,s=this.props.enter,u=this.context?this.context.isMounting:o,d=this.props.nodeRef?[u]:[J.findDOMNode(this),u],v=d[0],E=d[1],y=this.getTimeouts(),C=u?y.appear:y.enter;if(!o&&!s||Be.disabled){this.safeSetState({status:z},function(){t.props.onEntered(v)});return}this.props.onEnter(v,E),this.safeSetState({status:U},function(){t.props.onEntering(v,E),t.onTransitionEnd(C,function(){t.safeSetState({status:z},function(){t.props.onEntered(v,E)})})})},i.performExit=function(){var o=this,t=this.props.exit,s=this.getTimeouts(),u=this.props.nodeRef?void 0:J.findDOMNode(this);if(!t||Be.disabled){this.safeSetState({status:B},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:ae},function(){o.props.onExiting(u),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:B},function(){o.props.onExited(u)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(o,t){t=this.setNextCallback(t),this.setState(o,t)},i.setNextCallback=function(o){var t=this,s=!0;return this.nextCallback=function(u){s&&(s=!1,t.nextCallback=null,o(u))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},i.onTransitionEnd=function(o,t){this.setNextCallback(t);var s=this.props.nodeRef?this.props.nodeRef.current:J.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!s||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],v=d[0],E=d[1];this.props.addEndListener(v,E)}o!=null&&setTimeout(this.nextCallback,o)},i.render=function(){var o=this.state.status;if(o===Z)return null;var t=this.props,s=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var u=Ve(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return p.createElement(He.Provider,{value:null},typeof s=="function"?s(o,u):p.cloneElement(p.Children.only(s),u))},n}(p.Component);Y.contextType=He;Y.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:h.shape({current:typeof Element>"u"?h.any:function(e,n,i,r,o,t){var s=e[n];return h.instanceOf(s&&"ownerDocument"in s?s.ownerDocument.defaultView.Element:Element)(e,n,i,r,o,t)}}),children:h.oneOfType([h.func.isRequired,h.element.isRequired]).isRequired,in:h.bool,mountOnEnter:h.bool,unmountOnExit:h.bool,appear:h.bool,enter:h.bool,exit:h.bool,timeout:function(n){var i=Dt;n.addEndListener||(i=i.isRequired);for(var r=arguments.length,o=new Array(r>1?r-1:0),t=1;t<r;t++)o[t-1]=arguments[t];return i.apply(void 0,[n].concat(o))},addEndListener:h.func,onEnter:h.func,onEntering:h.func,onEntered:h.func,onExit:h.func,onExiting:h.func,onExited:h.func}:{};function H(){}Y.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:H,onEntering:H,onEntered:H,onExit:H,onExiting:H,onExited:H};Y.UNMOUNTED=Z;Y.EXITED=B;Y.ENTERING=U;Y.ENTERED=z;Y.EXITING=ae;const kt=Y,ue=!!(typeof window<"u"&&window.document&&window.document.createElement);var Ce=!1,_e=!1;try{var ge={get passive(){return Ce=!0},get once(){return _e=Ce=!0}};ue&&(window.addEventListener("test",ge,ge),window.removeEventListener("test",ge,!0))}catch{}function Je(e,n,i,r){if(r&&typeof r!="boolean"&&!_e){var o=r.once,t=r.capture,s=i;!_e&&o&&(s=i.__once||function u(d){this.removeEventListener(n,u,t),i.call(this,d)},i.__once=s),e.addEventListener(n,s,Ce?r:t)}e.addEventListener(n,i,r)}function Ze(e,n,i,r){var o=r&&typeof r!="boolean"?r.capture:r;e.removeEventListener(n,i,o),i.__once&&e.removeEventListener(n,i.__once,o)}function Me(e,n,i,r){return Je(e,n,i,r),function(){Ze(e,n,i,r)}}function At(e,n,i,r){if(i===void 0&&(i=!1),r===void 0&&(r=!0),e){var o=document.createEvent("HTMLEvents");o.initEvent(n,i,r),e.dispatchEvent(o)}}function It(e){var n=je(e,"transitionDuration")||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function Lt(e,n,i){i===void 0&&(i=5);var r=!1,o=setTimeout(function(){r||At(e,"transitionend",!0)},n+i),t=Me(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(o),t()}}function Qe(e,n,i,r){i==null&&(i=It(e)||0);var o=Lt(e,i,r),t=Me(e,"transitionend",n);return function(){o(),t()}}function ze(e,n){const i=je(e,n)||"",r=i.indexOf("ms")===-1?1e3:1;return parseFloat(i)*r}function et(e,n){const i=ze(e,"transitionDuration"),r=ze(e,"transitionDelay"),o=Qe(e,t=>{t.target===e&&(o(),n(t))},i+r)}function tt(e){e.offsetHeight}const Ge=e=>!e||typeof e=="function"?e:n=>{e.current=n};function Nt(e,n){const i=Ge(e),r=Ge(n);return o=>{i&&i(o),r&&r(o)}}function Q(e,n){return p.useMemo(()=>Nt(e,n),[e,n])}function nt(e){return e&&"setState"in e?J.findDOMNode(e):e??null}const $t=p.forwardRef(({onEnter:e,onEntering:n,onEntered:i,onExit:r,onExiting:o,onExited:t,addEndListener:s,children:u,childRef:d,...v},E)=>{const y=p.useRef(null),C=Q(y,d),M=N=>{C(nt(N))},k=N=>V=>{N&&y.current&&N(y.current,V)},j=p.useCallback(k(e),[e]),I=p.useCallback(k(n),[n]),L=p.useCallback(k(i),[i]),F=p.useCallback(k(r),[r]),A=p.useCallback(k(o),[o]),D=p.useCallback(k(t),[t]),c=p.useCallback(k(s),[s]);return G.jsxRuntimeExports.jsx(kt,{ref:E,...v,onEnter:j,onEntered:L,onEntering:I,onExit:F,onExited:D,onExiting:A,addEndListener:c,nodeRef:y,children:typeof u=="function"?(N,V)=>u(N,{...V,ref:M}):p.cloneElement(u,{ref:M})})}),rt=$t;function Wt(e){const n=p.useRef(e);return p.useEffect(()=>{n.current=e},[e]),n}function ke(e){const n=Wt(e);return p.useCallback(function(...i){return n.current&&n.current(...i)},[n])}function qt(){return p.useState(null)}function Ft(){const e=p.useRef(!0),n=p.useRef(()=>e.current);return p.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),n.current}const Ut=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Yt=typeof document<"u",Pe=Yt||Ut?p.useLayoutEffect:p.useEffect,Bt={[U]:"show",[z]:"show"},ot=ie.forwardRef(({className:e,children:n,transitionClasses:i={},onEnter:r,...o},t)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...o},u=p.useCallback((d,v)=>{tt(d),r==null||r(d,v)},[r]);return G.jsxRuntimeExports.jsx(rt,{ref:t,addEndListener:et,...s,onEnter:u,childRef:n.ref,children:(d,v)=>ie.cloneElement(n,{...v,className:G.classNames("fade",e,n.props.className,Bt[d],i[d])})})});ot.displayName="Fade";const zt=ot;function Gt(e){const n=p.useRef(e);return n.current=e,n}function Vt(e){const n=Gt(e);p.useEffect(()=>()=>n.current(),[])}function Xt(e,n){if(e.contains)return e.contains(n);if(e.compareDocumentPosition)return e===n||!!(e.compareDocumentPosition(n)&16)}const it=p.createContext(ue?window:void 0);it.Provider;function at(){return p.useContext(it)}const Re=(e,n)=>ue?e==null?(n||we()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function Kt(e,n){const i=at(),[r,o]=p.useState(()=>Re(e,i==null?void 0:i.document));if(!r){const t=Re(e);t&&o(t)}return p.useEffect(()=>{n&&r&&n(r)},[n,r]),p.useEffect(()=>{const t=Re(e);t!==r&&o(t)},[e,r]),r}function Ht({children:e,in:n,onExited:i,mountOnEnter:r,unmountOnExit:o}){const t=p.useRef(null),s=p.useRef(n),u=ke(i);p.useEffect(()=>{n?s.current=!0:u(t.current)},[n,u]);const d=Q(t,e.ref),v=p.cloneElement(e,{ref:d});return n?v:o||!s.current&&r?null:v}const Jt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Zt(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}function Qt(e){let{onEnter:n,onEntering:i,onEntered:r,onExit:o,onExiting:t,onExited:s,addEndListener:u,children:d}=e,v=Zt(e,Jt);const E=p.useRef(null),y=Q(E,typeof d=="function"?null:d.ref),C=D=>c=>{D&&E.current&&D(E.current,c)},M=p.useCallback(C(n),[n]),k=p.useCallback(C(i),[i]),j=p.useCallback(C(r),[r]),I=p.useCallback(C(o),[o]),L=p.useCallback(C(t),[t]),F=p.useCallback(C(s),[s]),A=p.useCallback(C(u),[u]);return Object.assign({},v,{nodeRef:E},n&&{onEnter:M},i&&{onEntering:k},r&&{onEntered:j},o&&{onExit:I},t&&{onExiting:L},s&&{onExited:F},u&&{addEndListener:A},{children:typeof d=="function"?(D,c)=>d(D,Object.assign({},c,{ref:y})):p.cloneElement(d,{ref:y})})}const en=["component"];function tn(e,n){if(e==null)return{};var i={},r=Object.keys(e),o,t;for(t=0;t<r.length;t++)o=r[t],!(n.indexOf(o)>=0)&&(i[o]=e[o]);return i}const nn=ie.forwardRef((e,n)=>{let{component:i}=e,r=tn(e,en);const o=Qt(r);return G.jsxRuntimeExports.jsx(i,Object.assign({ref:n},o))}),rn=nn;function on({in:e,onTransition:n}){const i=p.useRef(null),r=p.useRef(!0),o=ke(n);return Pe(()=>{if(!i.current)return;let t=!1;return o({in:e,element:i.current,initial:r.current,isStale:()=>t}),()=>{t=!0}},[e,o]),Pe(()=>(r.current=!1,()=>{r.current=!0}),[]),i}function an({children:e,in:n,onExited:i,onEntered:r,transition:o}){const[t,s]=p.useState(!n);n&&t&&s(!1);const u=on({in:!!n,onTransition:v=>{const E=()=>{v.isStale()||(v.in?r==null||r(v.element,v.initial):(s(!0),i==null||i(v.element)))};Promise.resolve(o(v)).then(E,y=>{throw v.in||s(!0),y})}}),d=Q(u,e.ref);return t&&!n?null:p.cloneElement(e,{ref:d})}function sn(e,n,i){return e?G.jsxRuntimeExports.jsx(rn,Object.assign({},i,{component:e})):n?G.jsxRuntimeExports.jsx(an,Object.assign({},i,{transition:n})):G.jsxRuntimeExports.jsx(Ht,Object.assign({},i))}function un(e){return e.code==="Escape"||e.keyCode===27}function cn(e,n){return e.classList?!!n&&e.classList.contains(n):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+n+" ")!==-1}exports.ENTERED=z;exports.ENTERING=U;exports.EXITED=B;exports.EXITING=ae;exports.Fade=zt;exports.PropTypes=h;exports.TransitionWrapper=rt;exports._objectWithoutPropertiesLoose=Ve;exports.addEventListener=Je;exports.canUseDOM=ue;exports.contains=Xt;exports.hasClass=cn;exports.isEscKey=un;exports.listen=Me;exports.ownerDocument=we;exports.removeEventListener=Ze;exports.renderTransition=sn;exports.safeFindDOMNode=nt;exports.style=je;exports.transitionEnd=Qe;exports.transitionEndListener=et;exports.triggerBrowserReflow=tt;exports.useBootstrapBreakpoints=dt;exports.useBootstrapMinBreakpoint=pt;exports.useBootstrapPrefix=lt;exports.useCallbackRef=qt;exports.useEventCallback=ke;exports.useIsRTL=vt;exports.useIsomorphicEffect=Pe;exports.useMergedRefs=Q;exports.useMounted=Ft;exports.useWaitForDOMRef=Kt;exports.useWillUnmount=Vt;exports.useWindow=at;
|