!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b6d88630-274a-493a-9f66-bb0c4f425519",e._sentryDebugIdIdentifier="sentry-dbid-b6d88630-274a-493a-9f66-bb0c4f425519")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4737],{4210:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(6358),o=n(83375),i=n(46650),a=n(35475),u=(0,o.forwardRef)((e,t)=>{let{icon:n,children:o,isRound:u,"aria-label":l,...s}=e,c=n||o,f=(0,i.isValidElement)(c)?(0,i.cloneElement)(c,{"aria-hidden":!0,focusable:!1}):null;return(0,a.jsx)(r.z,{padding:"0",borderRadius:u?"full":void 0,ref:t,"aria-label":l,...s,children:f})});u.displayName="IconButton"},60398:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(46650),o=n(1842),i=n(72168);function a(e){let{tagName:t,isContentEditable:n}=e.target;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==n}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{ref:t,isDisabled:n,isFocusable:u,clickOnEnter:l=!0,clickOnSpace:s=!0,onMouseDown:c,onMouseUp:f,onClick:d,onKeyDown:p,onKeyUp:m,tabIndex:h,onMouseOver:v,onMouseLeave:b,...g}=e,[y,w]=(0,r.useState)(!0),[x,O]=(0,r.useState)(!1),E=function(){let e=(0,r.useRef)(new Map),t=e.current,n=(0,r.useCallback)((t,n,r,o)=>{e.current.set(r,{type:n,el:t,options:o}),t.addEventListener(n,r,o)},[]),o=(0,r.useCallback)((t,n,r,o)=>{t.removeEventListener(n,r,o),e.current.delete(r)},[]);return(0,r.useEffect)(()=>()=>{t.forEach((e,t)=>{o(e.el,e.type,t,e.options)})},[o,t]),{add:n,remove:o}}(),k=y?h:h||0,C=n&&!u,D=(0,r.useCallback)(e=>{if(n){e.stopPropagation(),e.preventDefault();return}e.currentTarget.focus(),null==d||d(e)},[n,d]),N=(0,r.useCallback)(e=>{x&&a(e)&&(e.preventDefault(),e.stopPropagation(),O(!1),E.remove(document,"keyup",N,!1))},[x,E]),R=(0,r.useCallback)(e=>{if(null==p||p(e),n||e.defaultPrevented||e.metaKey||!a(e.nativeEvent)||y)return;let t=l&&"Enter"===e.key;s&&" "===e.key&&(e.preventDefault(),O(!0)),t&&(e.preventDefault(),e.currentTarget.click()),E.add(document,"keyup",N,!1)},[n,y,p,l,s,E,N]),A=(0,r.useCallback)(e=>{null==m||m(e),!n&&!e.defaultPrevented&&!e.metaKey&&a(e.nativeEvent)&&!y&&s&&" "===e.key&&(e.preventDefault(),O(!1),e.currentTarget.click())},[s,y,n,m]),I=(0,r.useCallback)(e=>{0===e.button&&(O(!1),E.remove(document,"mouseup",I,!1))},[E]),M=(0,r.useCallback)(e=>{if(0===e.button){if(n){e.stopPropagation(),e.preventDefault();return}y||O(!0),e.currentTarget.focus({preventScroll:!0}),E.add(document,"mouseup",I,!1),null==c||c(e)}},[n,y,c,E,I]),S=(0,r.useCallback)(e=>{0===e.button&&(y||O(!1),null==f||f(e))},[f,y]),j=(0,r.useCallback)(e=>{if(n){e.preventDefault();return}null==v||v(e)},[n,v]),_=(0,r.useCallback)(e=>{x&&(e.preventDefault(),O(!1)),null==b||b(e)},[x,b]),T=(0,i.lq)(t,e=>{e&&"BUTTON"!==e.tagName&&w(!1)});return y?{...g,ref:T,type:"button","aria-disabled":C?void 0:n,disabled:C,onClick:D,onMouseDown:c,onMouseUp:f,onKeyUp:m,onKeyDown:p,onMouseOver:v,onMouseLeave:b}:{...g,ref:T,role:"button","data-active":(0,o.PB)(x),"aria-disabled":n?"true":void 0,tabIndex:C?void 0:k,onClick:D,onMouseDown:M,onMouseUp:S,onKeyUp:A,onKeyDown:R,onMouseOver:j,onMouseLeave:_}}},53679:function(e,t,n){n.d(t,{n:function(){return g}});var r=n(46650),o=Object.defineProperty,i=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,a=(e,t,n)=>(i(e,"symbol"!=typeof t?t+"":t,n),n);function u(e){return e.sort((e,t)=>{let n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return -1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(!(n&Node.DOCUMENT_POSITION_DISCONNECTED)&&!(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC))return 0;throw Error("Cannot sort the given nodes.")})}var l=e=>"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE;function s(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function c(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var f="undefined"!=typeof window?r.useLayoutEffect:r.useEffect,d=e=>e,p=class{constructor(){var e=this;a(this,"descendants",new Map),a(this,"register",e=>{if(null!=e)return l(e)?this.registerNode(e):t=>{this.registerNode(t,e)}}),a(this,"unregister",e=>{this.descendants.delete(e);let t=u(Array.from(this.descendants.keys()));this.assignIndex(t)}),a(this,"destroy",()=>{this.descendants.clear()}),a(this,"assignIndex",e=>{this.descendants.forEach(t=>{let n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),a(this,"count",()=>this.descendants.size),a(this,"enabledCount",()=>this.enabledValues().length),a(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),a(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),a(this,"item",e=>{if(0!==this.count())return this.values()[e]}),a(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),a(this,"first",()=>this.item(0)),a(this,"firstEnabled",()=>this.enabledItem(0)),a(this,"last",()=>this.item(this.descendants.size-1)),a(this,"lastEnabled",()=>{let e=this.enabledValues().length-1;return this.enabledItem(e)}),a(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),a(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),a(this,"next",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=s(t,e.count(),n);return e.item(r)}),a(this,"nextEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let o=s(e.enabledIndexOf(r.node),e.enabledCount(),n);return e.enabledItem(o)}),a(this,"prev",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=c(t,e.count()-1,n);return e.item(r)}),a(this,"prevEnabled",function(t){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],r=e.item(t);if(!r)return;let o=c(e.enabledIndexOf(r.node),e.enabledCount()-1,n);return e.enabledItem(o)}),a(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;let n=u(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);let r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}},m=n(85495),h=n(72168),[v,b]=(0,m.k)({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function g(){return[d(v),()=>d(b()),()=>(function(){let e=(0,r.useRef)(new p);return f(()=>()=>e.current.destroy()),e.current})(),e=>(function(e){let t=b(),[n,o]=(0,r.useState)(-1),i=(0,r.useRef)(null);f(()=>()=>{i.current&&t.unregister(i.current)},[]),f(()=>{if(!i.current)return;let e=Number(i.current.dataset.index);n==e||Number.isNaN(e)||o(e)});let a=e?d(t.register(e)):d(t.register);return{descendants:t,index:n,enabledIndex:t.enabledIndexOf(i.current),register:(0,h.lq)(a,i)}})(e)]}},62359:function(e,t,n){function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function o(e){var t;if(!r(e))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}function i(e){var t,n;return null!=(n=null==(t=a(e))?void 0:t.defaultView)?n:window}function a(e){return r(e)?e.ownerDocument:document}function u(e){return a(e).activeElement}n.d(t,{Re:function(){return o},kR:function(){return i},vY:function(){return u}})},51850:function(e,t,n){n.d(t,{EB:function(){return a},Wq:function(){return u}});var r=n(62359),o=e=>e.hasAttribute("tabindex"),i=e=>o(e)&&-1===e.tabIndex;function a(e){var t;if(!(0,r.Re)(e)||function e(t){return!!(t.parentElement&&e(t.parentElement))||t.hidden}(e)||!0==!!(t=e).getAttribute("disabled")||!0==!!t.getAttribute("aria-disabled"))return!1;let{localName:n}=e;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let i={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return n in i?i[n]():!!function(e){let t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||o(e)}function u(e){return!!e&&(0,r.Re)(e)&&a(e)&&!i(e)}},88418:function(e,t,n){n.d(t,{t5:function(){return i}});var r=n(51850),o=e=>e.offsetWidth>0&&e.offsetHeight>0;function i(e){let t=Array.from(e.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return t.unshift(e),t.filter(e=>(0,r.EB)(e)&&o(e))}},64467:function(e,t,n){n.d(t,{I:function(){return u}});var r=n(42164),o=n(83375),i=n(46650),a=n(35475);function u(e){let{viewBox:t="0 0 24 24",d:n,displayName:u,defaultProps:l={}}=e,s=i.Children.toArray(e.path),c=(0,o.forwardRef)((e,o)=>(0,a.jsx)(r.J,{ref:o,viewBox:t,...l,...e,children:s.length?s:(0,a.jsx)("path",{fill:"currentColor",d:n})}));return c.displayName=u,c}},95986:function(e,t,n){n.d(t,{r:function(){return s}});var r=n(83375),o=n(82522),i=n(9778),a=n(30508),u=n(1842),l=n(35475),s=(0,r.forwardRef)(function(e,t){let n=(0,o.useStyleConfig)("Link",e),{className:r,isExternal:s,...c}=(0,i.Lr)(e);return(0,l.jsx)(a.chakra.a,{target:s?"_blank":void 0,rel:s?"noopener":void 0,ref:t,className:(0,u.cx)("chakra-link",r),...c,__css:n})});s.displayName="Link"},12386:function(e,t,n){n.d(t,{k:function(){return r}});function r(e){let{wasSelected:t,enabled:n,isSelected:r,mode:o="unmount"}=e;return!n||!!r||"keepMounted"===o&&!!t}},2026:function(e,t,n){n.d(t,{d:function(){return u}});var r=n(77326),o=n(83375),i=n(30508),a=n(35475),u=(0,o.forwardRef)((e,t)=>{let n=(0,r.x)();return(0,a.jsx)(i.chakra.span,{ref:t,...e,__css:n.command,className:"chakra-menu__command"})});u.displayName="MenuCommand"},54739:function(e,t,n){n.d(t,{s:function(){return c}});var r=n(2026),o=n(28597),i=n(57867),a=n(87678),u=n(83375),l=n(1842),s=n(35475),c=(0,u.forwardRef)((e,t)=>{let{icon:n,iconSpacing:u="0.75rem",command:c,commandSpacing:f="0.75rem",children:d,...p}=e,m=(0,a.iX)(p,t),h=n||c?(0,s.jsx)("span",{style:{pointerEvents:"none",flex:1},children:d}):d;return(0,s.jsxs)(o.C,{...m,className:(0,l.cx)("chakra-menu__menuitem",m.className),children:[n&&(0,s.jsx)(i.O,{fontSize:"0.8em",marginEnd:u,children:n}),h,c&&(0,s.jsx)(r.d,{marginStart:f,children:c})]})});c.displayName="MenuItem"},5796:function(e,t,n){n.d(t,{q:function(){return d}});var r=n(77326),o=n(87678),i=n(1842),a=n(30508),u=n(83375),l=n(6522),s=n(35475),c={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}},f=(0,a.chakra)(l.E.div),d=(0,u.forwardRef)(function(e,t){var n,u;let{rootProps:l,motionProps:d,...p}=e,{isOpen:m,onTransitionEnd:h,unstable__animationState:v}=(0,o.Xh)(),b=(0,o._l)(p,t),g=(0,o.Qh)(l),y=(0,r.x)();return(0,s.jsx)(a.chakra.div,{...g,__css:{zIndex:null!=(u=e.zIndex)?u:null==(n=y.list)?void 0:n.zIndex},children:(0,s.jsx)(f,{variants:c,initial:!1,animate:m?"enter":"exit",__css:{outline:0,...y.list},...d,className:(0,i.cx)("chakra-menu__menu-list",b.className),...b,onUpdate:h,onAnimationComplete:(0,i.PP)(v.onComplete,b.onAnimationComplete)})})});d.displayName="MenuList"},57867:function(e,t,n){n.d(t,{O:function(){return l}});var r=n(77326),o=n(30508),i=n(1842),a=n(46650),u=n(35475),l=e=>{let{className:t,children:n,...l}=e,s=(0,r.x)(),c=a.Children.only(n),f=(0,a.isValidElement)(c)?(0,a.cloneElement)(c,{focusable:"false","aria-hidden":!0,className:(0,i.cx)("chakra-menu__icon",c.props.className)}):null,d=(0,i.cx)("chakra-menu__icon-wrapper",t);return(0,u.jsx)(o.chakra.span,{className:d,...l,__css:s.icon,children:f})};l.displayName="MenuIcon"},28597:function(e,t,n){n.d(t,{C:function(){return l}});var r=n(77326),o=n(83375),i=n(30508),a=n(46650),u=n(35475),l=(0,o.forwardRef)((e,t)=>{let{type:n,...o}=e,l=(0,r.x)(),s=o.as||n?null!=n?n:void 0:"button",c=(0,a.useMemo)(()=>({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0,...l.item}),[l.item]);return(0,u.jsx)(i.chakra.button,{ref:t,type:s,...o,__css:c})})},87678:function(e,t,n){n.d(t,{wN:function(){return w},Kb:function(){return k},H9:function(){return R},zZ:function(){return A},Xh:function(){return C},mX:function(){return E},Zf:function(){return O},oZ:function(){return x},iX:function(){return j},_l:function(){return M},gO:function(){return _},Vg:function(){return T},Qh:function(){return S},w8:function(){return P}});var r=n(46650),o=n(60398),i=n(53679),a=n(90758),u=n(80237),l=n(5388),s=n(42150);function c(e,t){var n;let r=e.target;return(!r||!!f(r).contains(r))&&!(null==(n=t.current)?void 0:n.contains(r))}function f(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}var d=n(13742),p=n(85495),m=n(25216),h=n(13557),v=n(9481),b=n(72168),g=n(1842),y=n(12386),[w,x,O,E]=(0,i.n)(),[k,C]=(0,p.k)({strict:!1,name:"MenuContext"});function D(e){var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document}function N(e){return D(e).activeElement===e}function R(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{id:t,closeOnSelect:n=!0,closeOnBlur:o=!0,initialFocusRef:i,autoSelect:p=!0,isLazy:m,isOpen:h,defaultIsOpen:b,onClose:g,onOpen:y,placement:w="bottom-start",lazyBehavior:x="unmount",direction:E,computePositionOnMount:k=!1,...C}=e,N=(0,r.useRef)(null),R=(0,r.useRef)(null),A=O(),I=(0,r.useCallback)(()=>{requestAnimationFrame(()=>{var e;null==(e=N.current)||e.focus({preventScroll:!1})})},[]),M=(0,r.useCallback)(()=>{let e=setTimeout(()=>{var e;if(i)null==(e=i.current)||e.focus();else{let e=A.firstEnabled();e&&Z(e.index)}});U.current.add(e)},[A,i]),S=(0,r.useCallback)(()=>{let e=setTimeout(()=>{let e=A.lastEnabled();e&&Z(e.index)});U.current.add(e)},[A]),j=(0,r.useCallback)(()=>{null==y||y(),p?M():I()},[p,M,I,y]),{isOpen:_,onOpen:T,onClose:P,onToggle:L}=(0,l.q)({isOpen:h,defaultIsOpen:b,onClose:g,onOpen:j});!function(e){let{ref:t,handler:n,enabled:o=!0}=e,i=(0,s.W)(n),a=(0,r.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;(0,r.useEffect)(()=>{if(!o)return;let e=e=>{c(e,t)&&(a.isPointerDown=!0)},r=e=>{if(a.ignoreEmulatedMouseEvents){a.ignoreEmulatedMouseEvents=!1;return}a.isPointerDown&&n&&c(e,t)&&(a.isPointerDown=!1,i(e))},u=e=>{a.ignoreEmulatedMouseEvents=!0,n&&a.isPointerDown&&c(e,t)&&(a.isPointerDown=!1,i(e))},l=f(t.current);return l.addEventListener("mousedown",e,!0),l.addEventListener("mouseup",r,!0),l.addEventListener("touchstart",e,!0),l.addEventListener("touchend",u,!0),()=>{l.removeEventListener("mousedown",e,!0),l.removeEventListener("mouseup",r,!0),l.removeEventListener("touchstart",e,!0),l.removeEventListener("touchend",u,!0)}},[n,t,i,a,o])}({enabled:_&&o,ref:N,handler:e=>{var t;(null==(t=R.current)?void 0:t.contains(e.target))||P()}});let q=(0,u.D)({...C,enabled:_||k,placement:w,direction:E}),[W,Z]=(0,r.useState)(-1);(0,v.r)(()=>{_||Z(-1)},[_]),(0,a.C)(N,{focusRef:R,visible:_,shouldFocus:!0});let B=(0,d.h)({isOpen:_,ref:N}),[z,H]=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];let i=(0,r.useId)(),a=e||i;return(0,r.useMemo)(()=>n.map(e=>"".concat(e,"-").concat(a)),[a,n])}(t,"menu-button","menu-list"),V=(0,r.useCallback)(()=>{T(),I()},[T,I]),U=(0,r.useRef)(new Set([]));(0,r.useEffect)(()=>{let e=U.current;return()=>{e.forEach(e=>clearTimeout(e)),e.clear()}},[]);let K=(0,r.useCallback)(()=>{T(),M()},[M,T]),F=(0,r.useCallback)(()=>{T(),S()},[T,S]),X=(0,r.useCallback)(()=>{var e,t;let n=D(N.current),r=null==(e=N.current)?void 0:e.contains(n.activeElement);if(!(_&&!r))return;let o=null==(t=A.item(W))?void 0:t.node;null==o||o.focus({preventScroll:!0})},[_,W,A]),Y=(0,r.useRef)(null);return{openAndFocusMenu:V,openAndFocusFirstItem:K,openAndFocusLastItem:F,onTransitionEnd:X,unstable__animationState:B,descendants:A,popper:q,buttonId:z,menuId:H,forceUpdate:q.forceUpdate,orientation:"vertical",isOpen:_,onToggle:L,onOpen:T,onClose:P,menuRef:N,buttonRef:R,focusedIndex:W,closeOnSelect:n,closeOnBlur:o,autoSelect:p,setFocusedIndex:Z,isLazy:m,lazyBehavior:x,initialFocusRef:i,rafId:Y}}function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=C(),{onToggle:o,popper:i,openAndFocusFirstItem:a,openAndFocusLastItem:u}=n,l=(0,r.useCallback)(e=>{let t={Enter:a,ArrowDown:a,ArrowUp:u}[e.key];t&&(e.preventDefault(),e.stopPropagation(),t(e))},[a,u]);return{...e,ref:(0,b.lq)(n.buttonRef,t,i.referenceRef),id:n.buttonId,"data-active":(0,g.PB)(n.isOpen),"aria-expanded":n.isOpen,"aria-haspopup":"menu","aria-controls":n.menuId,onClick:(0,g.v0)(e.onClick,o),onKeyDown:(0,g.v0)(e.onKeyDown,l)}}function I(e){var t;return function(e){var t;if(!(null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE))return!1;let n=null!=(t=e.ownerDocument.defaultView)?t:window;return e instanceof n.HTMLElement}(e)&&!!(null==(t=null==e?void 0:e.getAttribute("role"))?void 0:t.startsWith("menuitem"))}function M(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=C();if(!n)throw Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");let{focusedIndex:o,setFocusedIndex:i,menuRef:a,isOpen:u,onClose:l,menuId:s,isLazy:c,lazyBehavior:f,unstable__animationState:d}=n,p=x(),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{timeout:t=300,preventDefault:n=()=>!0}=e,[o,i]=(0,r.useState)([]),a=(0,r.useRef)(),u=()=>{a.current&&(clearTimeout(a.current),a.current=null)},l=()=>{u(),a.current=setTimeout(()=>{i([]),a.current=null},t)};return(0,r.useEffect)(()=>u,[]),function(e){return t=>{if("Backspace"===t.key){let e=[...o];e.pop(),i(e);return}if(function(e){let{key:t}=e;return 1===t.length||t.length>1&&/[^a-zA-Z0-9]/.test(t)}(t)){let r=o.concat(t.key);n(t)&&(t.preventDefault(),t.stopPropagation()),i(r),e(r.join("")),l()}}}}({preventDefault:e=>" "!==e.key&&I(e.target)}),h=(0,r.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t={Tab:e=>e.preventDefault(),Escape:l,ArrowDown:()=>{let e=p.nextEnabled(o);e&&i(e.index)},ArrowUp:()=>{let e=p.prevEnabled(o);e&&i(e.index)}}[e.key];if(t){e.preventDefault(),t(e);return}let n=m(e=>{let t=function(e,t,n,r){if(null==t)return r;if(!r)return e.find(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));let o=e.filter(e=>n(e).toLowerCase().startsWith(t.toLowerCase()));if(o.length>0){let t;return o.includes(r)?((t=o.indexOf(r)+1)===o.length&&(t=0),o[t]):(t=e.indexOf(o[0]),e[t])}return r}(p.values(),e,e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.node)?void 0:t.textContent)?n:""},p.item(o));t&&i(p.indexOf(t.node))});I(e.target)&&n(e)},[p,o,m,l,i]),v=(0,r.useRef)(!1);u&&(v.current=!0);let w=(0,y.k)({wasSelected:v.current,enabled:c,mode:f,isSelected:d.present});return{...e,ref:(0,b.lq)(a,t),children:w?e.children:null,tabIndex:-1,role:"menu",id:s,style:{...e.style,transformOrigin:"var(--popper-transform-origin)"},"aria-orientation":"vertical",onKeyDown:(0,g.v0)(e.onKeyDown,h)}}function S(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{popper:t,isOpen:n}=C();return t.getPopperProps({...e,style:{visibility:n?"visible":"hidden",...e.style}})}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{onMouseEnter:n,onMouseMove:i,onMouseLeave:a,onClick:u,onFocus:l,isDisabled:s,isFocusable:c,closeOnSelect:f,type:d,...p}=e,{setFocusedIndex:m,focusedIndex:h,closeOnSelect:g,onClose:y,menuRef:w,isOpen:x,menuId:O,rafId:k}=C(),D=(0,r.useRef)(null),R="".concat(O,"-menuitem-").concat((0,r.useId)()),{index:A,register:M}=E({disabled:s&&!c}),S=(0,r.useCallback)(e=>{null==n||n(e),s||m(A)},[m,A,s,n]),j=(0,r.useCallback)(e=>{null==i||i(e),D.current&&!N(D.current)&&S(e)},[S,i]),_=(0,r.useCallback)(e=>{null==a||a(e),s||m(-1)},[m,s,a]),T=(0,r.useCallback)(e=>{null==u||u(e),I(e.currentTarget)&&(null!=f?f:g)&&y()},[y,u,g,f]),P=(0,r.useCallback)(e=>{null==l||l(e),m(A)},[m,l,A]),L=A===h,q=s&&!c;(0,v.r)(()=>{if(x)return L&&!q&&D.current?(k.current&&cancelAnimationFrame(k.current),k.current=requestAnimationFrame(()=>{var e;null==(e=D.current)||e.focus({preventScroll:!0}),k.current=null})):w.current&&!N(w.current)&&w.current.focus({preventScroll:!0}),()=>{k.current&&cancelAnimationFrame(k.current)}},[L,q,w,x]);let W=(0,o.h)({onClick:T,onFocus:P,onMouseEnter:S,onMouseMove:j,onMouseLeave:_,ref:(0,b.lq)(M,D,t),isDisabled:s,isFocusable:c});return{...p,...W,type:null!=d?d:W.type,id:R,role:"menuitem",tabIndex:L?0:-1}}function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{type:n="radio",isChecked:r,...o}=e;return{...j(o,t),role:"menuitem".concat(n),"aria-checked":r}}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{children:t,type:n="radio",value:o,defaultValue:i,onChange:a,...u}=e,l="radio"===n,[s,c]=(0,h.T)({defaultValue:null!=i?i:l?"":[],value:o,onChange:a}),f=(0,r.useCallback)(e=>{"radio"===n&&"string"==typeof s&&c(e),"checkbox"===n&&Array.isArray(s)&&c(s.includes(e)?s.filter(t=>t!==e):s.concat(e))},[s,c,n]),d=(0,m.W)(t).map(e=>{if("MenuItemOption"!==e.type.id)return e;let t="radio"===n?e.props.value===s:s.includes(e.props.value);return(0,r.cloneElement)(e,{type:n,onClick:t=>{var n,r;f(e.props.value),null==(r=(n=e.props).onClick)||r.call(n,t)},isChecked:t})});return{...u,children:d}}function P(){let{isOpen:e,onClose:t}=C();return{isOpen:e,onClose:t}}},77326:function(e,t,n){n.d(t,{v:function(){return p},x:function(){return d}});var r=n(87678),o=n(85495),i=n(82522),a=n(9778),u=n(19695),l=n(1842),s=n(46650),c=n(35475),[f,d]=(0,o.k)({name:"MenuStylesContext",errorMessage:"useMenuStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Menu />\" "}),p=e=>{let{children:t}=e,n=(0,i.useMultiStyleConfig)("Menu",e),o=(0,a.Lr)(e),{direction:d}=(0,u.useTheme)(),{descendants:p,...m}=(0,r.H9)({...o,direction:d}),h=(0,s.useMemo)(()=>m,[m]),{isOpen:v,onClose:b,forceUpdate:g}=h;return(0,c.jsx)(r.wN,{value:p,children:(0,c.jsx)(r.Kb,{value:h,children:(0,c.jsx)(f,{value:n,children:(0,l.Pu)(t,{isOpen:v,onClose:b,forceUpdate:g})})})})};p.displayName="Menu"},81785:function(e,t,n){n.d(t,{j:function(){return c}});var r=n(77326),o=n(87678),i=n(83375),a=n(30508),u=n(1842),l=n(35475),s=(0,i.forwardRef)((e,t)=>{let n=(0,r.x)();return(0,l.jsx)(a.chakra.button,{ref:t,...e,__css:{display:"inline-flex",appearance:"none",alignItems:"center",outline:0,...n.button}})}),c=(0,i.forwardRef)((e,t)=>{let{children:n,as:r,...i}=e,c=(0,o.zZ)(i,t),f=r||s;return(0,l.jsx)(f,{...c,className:(0,u.cx)("chakra-menu__menu-button",e.className),children:(0,l.jsx)(a.chakra.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0},children:e.children})})});c.displayName="MenuButton"},30971:function(e,t,n){n.d(t,{$B:function(){return s},Dq:function(){return o},Ke:function(){return i},mv:function(){return u}});var r=(e,t)=>({var:e,varRef:t?"var(".concat(e,", ").concat(t,")"):"var(".concat(e,")")}),o={arrowShadowColor:r("--popper-arrow-shadow-color"),arrowSize:r("--popper-arrow-size","8px"),arrowSizeHalf:r("--popper-arrow-size-half"),arrowBg:r("--popper-arrow-bg"),transformOrigin:r("--popper-transform-origin"),arrowOffset:r("--popper-arrow-offset")};function i(e){return e.includes("top")?"1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("bottom")?"-1px -1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("right")?"-1px 1px 0px 0 var(--popper-arrow-shadow-color)":e.includes("left")?"1px -1px 0px 0 var(--popper-arrow-shadow-color)":void 0}var a={top:"bottom center","top-start":"bottom left","top-end":"bottom right",bottom:"top center","bottom-start":"top left","bottom-end":"top right",left:"right center","left-start":"right top","left-end":"right bottom",right:"left center","right-start":"left top","right-end":"left bottom"},u=e=>a[e],l={scroll:!0,resize:!0};function s(e){return"object"==typeof e?{enabled:!0,options:{...l,...e}}:{enabled:e,options:l}}},80237:function(e,t,n){n.d(t,{D:function(){return b}});var r=n(30971),o={name:"matchWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:e=>{let{state:t}=e;t.styles.popper.width="".concat(t.rects.reference.width,"px")},effect:e=>{let{state:t}=e;return()=>{let e=t.elements.reference;t.elements.popper.style.width="".concat(e.offsetWidth,"px")}}},i={name:"transformOrigin",enabled:!0,phase:"write",fn:e=>{let{state:t}=e;a(t)},effect:e=>{let{state:t}=e;return()=>{a(t)}}},a=e=>{e.elements.popper.style.setProperty(r.Dq.transformOrigin.var,(0,r.mv)(e.placement))},u={name:"positionArrow",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;l(t)}},l=e=>{var t;if(!e.placement)return;let n=s(e.placement);if((null==(t=e.elements)?void 0:t.arrow)&&n){Object.assign(e.elements.arrow.style,{[n.property]:n.value,width:r.Dq.arrowSize.varRef,height:r.Dq.arrowSize.varRef,zIndex:-1});let t={[r.Dq.arrowSizeHalf.var]:"calc(".concat(r.Dq.arrowSize.varRef," / 2 - 1px)"),[r.Dq.arrowOffset.var]:"calc(".concat(r.Dq.arrowSizeHalf.varRef," * -1)")};for(let n in t)e.elements.arrow.style.setProperty(n,t[n])}},s=e=>e.startsWith("top")?{property:"bottom",value:r.Dq.arrowOffset.varRef}:e.startsWith("bottom")?{property:"top",value:r.Dq.arrowOffset.varRef}:e.startsWith("left")?{property:"right",value:r.Dq.arrowOffset.varRef}:e.startsWith("right")?{property:"left",value:r.Dq.arrowOffset.varRef}:void 0,c={name:"innerArrow",enabled:!0,phase:"main",requires:["arrow"],fn:e=>{let{state:t}=e;f(t)},effect:e=>{let{state:t}=e;return()=>{f(t)}}},f=e=>{if(!e.elements.arrow)return;let t=e.elements.arrow.querySelector("[data-popper-arrow-inner]");if(!t)return;let n=(0,r.Ke)(e.placement);n&&t.style.setProperty("--popper-arrow-default-shadow",n),Object.assign(t.style,{transform:"rotate(45deg)",background:r.Dq.arrowBg.varRef,top:0,left:0,width:"100%",height:"100%",position:"absolute",zIndex:"inherit",boxShadow:"var(--popper-arrow-shadow, var(--popper-arrow-default-shadow))"})},d={"start-start":{ltr:"left-start",rtl:"right-start"},"start-end":{ltr:"left-end",rtl:"right-end"},"end-start":{ltr:"right-start",rtl:"left-start"},"end-end":{ltr:"right-end",rtl:"left-end"},start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}},p={"auto-start":"auto-end","auto-end":"auto-start","top-start":"top-end","top-end":"top-start","bottom-start":"bottom-end","bottom-end":"bottom-start"},m=n(72168),h=n(39350),v=n(46650);function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:t=!0,modifiers:n,placement:a="bottom",strategy:l="absolute",arrowPadding:s=8,eventListeners:f=!0,offset:b,gutter:g=8,flip:y=!0,boundary:w="clippingParents",preventOverflow:x=!0,matchWidth:O,direction:E="ltr"}=e,k=(0,v.useRef)(null),C=(0,v.useRef)(null),D=(0,v.useRef)(null),N=function(e){var t,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ltr",o=(null==(t=d[e])?void 0:t[r])||e;return"ltr"===r?o:null!=(n=p[e])?n:o}(a,E),R=(0,v.useRef)(()=>{}),A=(0,v.useCallback)(()=>{var e;t&&k.current&&C.current&&(null==(e=R.current)||e.call(R),D.current=(0,h.fi)(k.current,C.current,{placement:N,modifiers:[c,u,i,{...o,enabled:!!O},{name:"eventListeners",...(0,r.$B)(f)},{name:"arrow",options:{padding:s}},{name:"offset",options:{offset:null!=b?b:[0,g]}},{name:"flip",enabled:!!y,options:{padding:8}},{name:"preventOverflow",enabled:!!x,options:{boundary:w}},...null!=n?n:[]],strategy:l}),D.current.forceUpdate(),R.current=D.current.destroy)},[N,t,n,O,f,s,b,g,y,x,w,l]);(0,v.useEffect)(()=>()=>{var e;k.current||C.current||(null==(e=D.current)||e.destroy(),D.current=null)},[]);let I=(0,v.useCallback)(e=>{k.current=e,A()},[A]),M=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,m.lq)(I,t)}},[I]),S=(0,v.useCallback)(e=>{C.current=e,A()},[A]),j=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:(0,m.lq)(S,t),style:{...e.style,position:l,minWidth:O?void 0:"max-content",inset:"0 auto auto 0"}}},[l,S,O]),_=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{size:n,shadowColor:r,bg:o,style:i,...a}=e;return{...a,ref:t,"data-popper-arrow":"",style:function(e){let{size:t,shadowColor:n,bg:r,style:o}=e,i={...o,position:"absolute"};return t&&(i["--popper-arrow-size"]=t),n&&(i["--popper-arrow-shadow-color"]=n),r&&(i["--popper-arrow-bg"]=r),i}(e)}},[]),T=(0,v.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...e,ref:t,"data-popper-arrow-inner":""}},[]);return{update(){var e;null==(e=D.current)||e.update()},forceUpdate(){var e;null==(e=D.current)||e.forceUpdate()},transformOrigin:r.Dq.transformOrigin.varRef,referenceRef:I,popperRef:S,getPopperProps:j,getArrowProps:_,getArrowInnerProps:T,getReferenceProps:M}}},13742:function(e,t,n){n.d(t,{h:function(){return a}});var r=n(46650),o=n(66849),i=n(62359);function a(e){let{isOpen:t,ref:n}=e,[a,u]=(0,r.useState)(t),[l,s]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{l||(u(t),s(!0))},[t,l,a]),(0,o.O)(()=>n.current,"animationend",()=>{u(t)}),{present:!(!t&&!a),onComplete(){var e;let t=new((0,i.kR)(n.current)).CustomEvent("animationend",{bubbles:!0});null==(e=n.current)||e.dispatchEvent(t)}}}},42150:function(e,t,n){n.d(t,{W:function(){return o}});var r=n(46650);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return(0,r.useEffect)(()=>{n.current=e}),(0,r.useCallback)(function(){for(var e,t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];return null==(e=n.current)?void 0:e.call(n,...r)},t)}},13557:function(e,t,n){n.d(t,{T:function(){return i}});var r=n(46650),o=n(42150);function i(e){let{value:t,defaultValue:n,onChange:i,shouldUpdate:a=(e,t)=>e!==t}=e,u=(0,o.W)(i),l=(0,o.W)(a),[s,c]=(0,r.useState)(n),f=void 0!==t,d=f?t:s,p=(0,o.W)(e=>{let t="function"==typeof e?e(d):e;l(d,t)&&(f||c(t),u(t))},[f,u,d,l]);return[d,p]}},5388:function(e,t,n){n.d(t,{q:function(){return i}});var r=n(42150),o=n(46650);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:t,onOpen:n,isOpen:i,id:a}=e,u=(0,r.W)(n),l=(0,r.W)(t),[s,c]=(0,o.useState)(e.defaultIsOpen||!1),f=void 0!==i?i:s,d=void 0!==i,p=(0,o.useId)(),m=null!=a?a:"disclosure-".concat(p),h=(0,o.useCallback)(()=>{d||c(!1),null==l||l()},[d,l]),v=(0,o.useCallback)(()=>{d||c(!0),null==u||u()},[d,u]),b=(0,o.useCallback)(()=>{f?h():v()},[f,v,h]);return{isOpen:f,onOpen:v,onClose:h,onToggle:b,isControlled:d,getButtonProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"aria-expanded":f,"aria-controls":m,onClick(t){var n;null==(n=e.onClick)||n.call(e,t),b()}}},getDisclosureProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,hidden:!f,id:m}}}}},66849:function(e,t,n){n.d(t,{O:function(){return i}});var r=n(46650),o=n(42150);function i(e,t,n,i){let a=(0,o.W)(n);return(0,r.useEffect)(()=>{let r="function"==typeof e?e():null!=e?e:document;if(n&&r)return r.addEventListener(t,a,i),()=>{r.removeEventListener(t,a,i)}},[t,e,i,a,n]),()=>{let n="function"==typeof e?e():null!=e?e:document;null==n||n.removeEventListener(t,a,i)}}},90758:function(e,t,n){n.d(t,{C:function(){return c},G:function(){return d}});var r=n(62359),o=n(51850),i=n(88418),a=n(66849),u=n(21887),l=n(9481),s=n(46650);function c(e,t){let{shouldFocus:n,visible:i,focusRef:a}=t,u=n&&!i;(0,l.r)(()=>{let t;if(!u||function(e){let t=e.current;if(!t)return!1;let n=(0,r.vY)(t);return!(!n||t.contains(n))&&!!(0,o.Wq)(n)}(e))return;let n=(null==a?void 0:a.current)||e.current;if(n)return t=requestAnimationFrame(()=>{n.focus({preventScroll:!0})}),()=>{cancelAnimationFrame(t)}},[u,e,a])}var f={preventScroll:!0,shouldFocus:!1};function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,{focusRef:n,preventScroll:r,shouldFocus:o,visible:c}=t,d="current"in e?e.current:e,p=o&&c,m=(0,s.useRef)(p),h=(0,s.useRef)(c);(0,u.G)(()=>{!h.current&&c&&(m.current=p),h.current=c},[c,p]);let v=(0,s.useCallback)(()=>{if(c&&d&&m.current&&(m.current=!1,!d.contains(document.activeElement))){if(null==n?void 0:n.current)requestAnimationFrame(()=>{var e;null==(e=n.current)||e.focus({preventScroll:r})});else{let e=(0,i.t5)(d);e.length>0&&requestAnimationFrame(()=>{e[0].focus({preventScroll:r})})}}},[c,r,d,n]);(0,l.r)(()=>{v()},[v]),(0,a.O)(d,"transitionend",v)}},9481:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(46650);function o(e,t){let n=(0,r.useRef)(!1),o=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(n.current&&o.current)return e();o.current=!0},t),(0,r.useEffect)(()=>(n.current=!0,()=>{n.current=!1}),[])}},80963:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){return e?(e.nodeName||"").toLowerCase():null}},26064:function(e,t,n){n.d(t,{Z:function(){return r}});function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}},39760:function(e,t,n){n.d(t,{Re:function(){return i},Zq:function(){return a},kK:function(){return o}});var r=n(26064);function o(e){var t=(0,r.Z)(e).Element;return e instanceof t||e instanceof Element}function i(e){var t=(0,r.Z)(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function a(e){if("undefined"==typeof ShadowRoot)return!1;var t=(0,r.Z)(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}},68082:function(e,t,n){var r=n(80963),o=n(39760);t.Z={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},a=t.elements[e];(0,o.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?a.removeAttribute(e):a.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],a=t.attributes[e]||{},u=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});(0,o.Re)(i)&&(0,r.Z)(i)&&(Object.assign(i.style,u),Object.keys(a).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]}},39350:function(e,t,n){n.d(t,{fi:function(){return el}});var r,o,i,a,u,l=n(39760),s=Math.max,c=Math.min,f=Math.round,d=n(26064);function p(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function m(){return!/^((?!chrome|android).)*safari/i.test(p())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&(0,l.Re)(e)&&(o=e.offsetWidth>0&&f(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&f(r.height)/e.offsetHeight||1);var a=((0,l.kK)(e)?(0,d.Z)(e):window).visualViewport,u=!m()&&n,s=(r.left+(u&&a?a.offsetLeft:0))/o,c=(r.top+(u&&a?a.offsetTop:0))/i,p=r.width/o,h=r.height/i;return{width:p,height:h,top:c,right:s+p,bottom:c+h,left:s,x:s,y:c}}function v(e){var t=(0,d.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var b=n(80963);function g(e){return(((0,l.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return h(g(e)).left+v(e).scrollLeft}function w(e){return(0,d.Z)(e).getComputedStyle(e)}function x(e){var t=w(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function O(e){var t=h(e),n=e.offsetWidth,r=e.offsetHeight;return 1>=Math.abs(t.width-n)&&(n=t.width),1>=Math.abs(t.height-r)&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e){return"html"===(0,b.Z)(e)?e:e.assignedSlot||e.parentNode||((0,l.Zq)(e)?e.host:null)||g(e)}function k(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf((0,b.Z)(t))>=0?t.ownerDocument.body:(0,l.Re)(t)&&x(t)?t:e(E(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=(0,d.Z)(r),a=o?[i].concat(i.visualViewport||[],x(r)?r:[]):r,u=t.concat(a);return o?u:u.concat(k(E(a)))}function C(e){return(0,l.Re)(e)&&"fixed"!==w(e).position?e.offsetParent:null}function D(e){for(var t,n=(0,d.Z)(e),r=C(e);r&&(t=r,["table","td","th"].indexOf((0,b.Z)(t))>=0)&&"static"===w(r).position;)r=C(r);return r&&("html"===(0,b.Z)(r)||"body"===(0,b.Z)(r)&&"static"===w(r).position)?n:r||function(e){var t=/firefox/i.test(p());if(/Trident/i.test(p())&&(0,l.Re)(e)&&"fixed"===w(e).position)return null;var n=E(e);for((0,l.Zq)(n)&&(n=n.host);(0,l.Re)(n)&&0>["html","body"].indexOf((0,b.Z)(n));){var r=w(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||n}var N="bottom",R="right",A="left",I="auto",M=["top",N,R,A],S="start",j="viewport",_="popper",T=M.reduce(function(e,t){return e.concat([t+"-"+S,t+"-end"])},[]),P=[].concat(M,[I]).reduce(function(e,t){return e.concat([t,t+"-"+S,t+"-end"])},[]),L=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function W(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var Z={passive:!0};function B(e){return e.split("-")[0]}function z(e){return e.split("-")[1]}function H(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function V(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?B(o):null,a=o?z(o):null,u=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:u,y:n.y-r.height};break;case N:t={x:u,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var s=i?H(i):null;if(null!=s){var c="y"===s?"height":"width";switch(a){case S:t[s]=t[s]-(n[c]/2-r[c]/2);break;case"end":t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function K(e){var t,n,r,o,i,a,u,l=e.popper,s=e.popperRect,c=e.placement,p=e.variation,m=e.offsets,h=e.position,v=e.gpuAcceleration,b=e.adaptive,y=e.roundOffsets,x=e.isFixed,O=m.x,E=void 0===O?0:O,k=m.y,C=void 0===k?0:k,I="function"==typeof y?y({x:E,y:C}):{x:E,y:C};E=I.x,C=I.y;var M=m.hasOwnProperty("x"),S=m.hasOwnProperty("y"),j=A,_="top",T=window;if(b){var P=D(l),L="clientHeight",q="clientWidth";P===(0,d.Z)(l)&&"static"!==w(P=g(l)).position&&"absolute"===h&&(L="scrollHeight",q="scrollWidth"),("top"===c||(c===A||c===R)&&"end"===p)&&(_=N,C-=(x&&P===T&&T.visualViewport?T.visualViewport.height:P[L])-s.height,C*=v?1:-1),(c===A||("top"===c||c===N)&&"end"===p)&&(j=R,E-=(x&&P===T&&T.visualViewport?T.visualViewport.width:P[q])-s.width,E*=v?1:-1)}var W=Object.assign({position:h},b&&U),Z=!0===y?(t={x:E,y:C},n=(0,d.Z)(l),r=t.x,o=t.y,{x:f(r*(i=n.devicePixelRatio||1))/i||0,y:f(o*i)/i||0}):{x:E,y:C};return(E=Z.x,C=Z.y,v)?Object.assign({},W,((u={})[_]=S?"0":"",u[j]=M?"0":"",u.transform=1>=(T.devicePixelRatio||1)?"translate("+E+"px, "+C+"px)":"translate3d("+E+"px, "+C+"px, 0)",u)):Object.assign({},W,((a={})[_]=S?C+"px":"",a[j]=M?E+"px":"",a.transform="",a))}var F=n(68082),X={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,function(e){return X[e]})}var G={start:"end",end:"start"};function Q(e){return e.replace(/start|end/g,function(e){return G[e]})}function $(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,l.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ee(e,t,n){var r,o,i,a,u,c,f,p,b,x;return t===j?J(function(e,t){var n=(0,d.Z)(e),r=g(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,u=0,l=0;if(o){i=o.width,a=o.height;var s=m();(s||!s&&"fixed"===t)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:u+y(e),y:l}}(e,n)):(0,l.kK)(t)?((r=h(t,!1,"fixed"===n)).top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r):J((o=g(e),a=g(o),u=v(o),c=null==(i=o.ownerDocument)?void 0:i.body,f=s(a.scrollWidth,a.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),p=s(a.scrollHeight,a.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),b=-u.scrollLeft+y(o),x=-u.scrollTop,"rtl"===w(c||a).direction&&(b+=s(a.clientWidth,c?c.clientWidth:0)-f),{width:f,height:p,x:b,y:x}))}function et(){return{top:0,right:0,bottom:0,left:0}}function en(e){return Object.assign({},et(),e)}function er(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function eo(e,t){void 0===t&&(t={});var n,r,o,i,a,u,f,d,p=t,m=p.placement,v=void 0===m?e.placement:m,y=p.strategy,x=void 0===y?e.strategy:y,O=p.boundary,C=p.rootBoundary,A=p.elementContext,I=void 0===A?_:A,S=p.altBoundary,T=p.padding,P=void 0===T?0:T,L=en("number"!=typeof P?P:er(P,M)),q=e.rects.popper,W=e.elements[void 0!==S&&S?I===_?"reference":_:I],Z=(n=(0,l.kK)(W)?W:W.contextElement||g(e.elements.popper),r=void 0===O?"clippingParents":O,o=void 0===C?j:C,f=(u=[].concat("clippingParents"===r?(i=k(E(n)),a=["absolute","fixed"].indexOf(w(n).position)>=0&&(0,l.Re)(n)?D(n):n,(0,l.kK)(a)?i.filter(function(e){return(0,l.kK)(e)&&$(e,a)&&"body"!==(0,b.Z)(e)}):[]):[].concat(r),[o]))[0],(d=u.reduce(function(e,t){var r=ee(n,t,x);return e.top=s(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=s(r.left,e.left),e},ee(n,f,x))).width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d),B=h(e.elements.reference),z=V({reference:B,element:q,strategy:"absolute",placement:v}),H=J(Object.assign({},q,z)),U=I===_?H:B,K={top:Z.top-U.top+L.top,bottom:U.bottom-Z.bottom+L.bottom,left:Z.left-U.left+L.left,right:U.right-Z.right+L.right},F=e.modifiersData.offset;if(I===_&&F){var X=F[v];Object.keys(K).forEach(function(e){var t=[R,N].indexOf(e)>=0?1:-1,n=["top",N].indexOf(e)>=0?"y":"x";K[e]+=X[n]*t})}return K}function ei(e,t,n){return s(e,c(t,n))}function ea(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function eu(e){return["top",R,N,A].some(function(t){return e[t]>=0})}var el=(i=void 0===(o=(r={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,l=(0,d.Z)(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&s.forEach(function(e){e.addEventListener("scroll",n.update,Z)}),u&&l.addEventListener("resize",n.update,Z),function(){i&&s.forEach(function(e){e.removeEventListener("scroll",n.update,Z)}),u&&l.removeEventListener("resize",n.update,Z)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=V({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=n.adaptive,i=n.roundOffsets,a=void 0===i||i,u={placement:B(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===r||r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,K(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,K(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},F.Z,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=P.reduce(function(e,n){var r,o,a,u,l,s;return e[n]=(r=t.rects,a=[A,"top"].indexOf(o=B(n))>=0?-1:1,l=(u="function"==typeof i?i(Object.assign({},r,{placement:n})):i)[0],s=u[1],l=l||0,s=(s||0)*a,[A,R].indexOf(o)>=0?{x:s,y:l}:{x:l,y:s}),e},{}),u=a[t.placement],l=u.x,s=u.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,u=void 0===a||a,l=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,m=void 0===p||p,h=n.allowedAutoPlacements,v=t.options.placement,b=B(v)===v,g=l||(b||!m?[Y(v)]:function(e){if(B(e)===I)return[];var t=Y(e);return[Q(e),t,Q(t)]}(v)),y=[v].concat(g).reduce(function(e,n){var r,o,i,a,u,l,d,p,v,b,g,y;return e.concat(B(n)===I?(o=(r={placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:m,allowedAutoPlacements:h}).placement,i=r.boundary,a=r.rootBoundary,u=r.padding,l=r.flipVariations,p=void 0===(d=r.allowedAutoPlacements)?P:d,0===(g=(b=(v=z(o))?l?T:T.filter(function(e){return z(e)===v}):M).filter(function(e){return p.indexOf(e)>=0})).length&&(g=b),Object.keys(y=g.reduce(function(e,n){return e[n]=eo(t,{placement:n,boundary:i,rootBoundary:a,padding:u})[B(n)],e},{})).sort(function(e,t){return y[e]-y[t]})):n)},[]),w=t.rects.reference,x=t.rects.popper,O=new Map,E=!0,k=y[0],C=0;C<y.length;C++){var D=y[C],j=B(D),_=z(D)===S,L=["top",N].indexOf(j)>=0,q=L?"width":"height",W=eo(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:s}),Z=L?_?R:A:_?N:"top";w[q]>x[q]&&(Z=Y(Z));var H=Y(Z),V=[];if(i&&V.push(W[j]<=0),u&&V.push(W[Z]<=0,W[H]<=0),V.every(function(e){return e})){k=D,E=!1;break}O.set(D,V)}if(E)for(var U=m?3:1,K=function(e){var t=y.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},F=U;F>0&&"break"!==K(F);F--);t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=n.altAxis,a=n.boundary,u=n.rootBoundary,l=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,m=n.tetherOffset,h=void 0===m?0:m,v=eo(t,{boundary:a,rootBoundary:u,padding:f,altBoundary:l}),b=B(t.placement),g=z(t.placement),y=!g,w=H(b),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,I="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,M="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(E){if(void 0===o||o){var T,P="y"===w?"top":A,L="y"===w?N:R,q="y"===w?"height":"width",W=E[w],Z=W+v[P],V=W-v[L],U=p?-C[q]/2:0,K=g===S?k[q]:C[q],F=g===S?-C[q]:-k[q],X=t.elements.arrow,Y=p&&X?O(X):{width:0,height:0},G=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:et(),Q=G[P],$=G[L],J=ei(0,k[q],Y[q]),ee=y?k[q]/2-U-J-Q-M.mainAxis:K-J-Q-M.mainAxis,en=y?-k[q]/2+U+J+$+M.mainAxis:F+J+$+M.mainAxis,er=t.elements.arrow&&D(t.elements.arrow),ea=er?"y"===w?er.clientTop||0:er.clientLeft||0:0,eu=null!=(T=null==j?void 0:j[w])?T:0,el=ei(p?c(Z,W+ee-eu-ea):Z,W,p?s(V,W+en-eu):V);E[w]=el,_[w]=el-W}if(void 0!==i&&i){var es,ec,ef="x"===w?"top":A,ed="x"===w?N:R,ep=E[x],em="y"===x?"height":"width",eh=ep+v[ef],ev=ep-v[ed],eb=-1!==["top",A].indexOf(b),eg=null!=(ec=null==j?void 0:j[x])?ec:0,ey=eb?eh:ep-k[em]-C[em]-eg+M.altAxis,ew=eb?ep+k[em]+C[em]-eg-M.altAxis:ev,ex=p&&eb?(es=ei(ey,ep,ew))>ew?ew:es:ei(p?ey:eh,ep,p?ew:ev);E[x]=ex,_[x]=ex-ep}t.modifiersData[r]=_}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n,r=e.state,o=e.name,i=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,l=B(r.placement),s=H(l),c=[A,R].indexOf(l)>=0?"height":"width";if(a&&u){var f=en("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:er(t,M)),d=O(a),p="y"===s?"top":A,m="y"===s?N:R,h=r.rects.reference[c]+r.rects.reference[s]-u[s]-r.rects.popper[c],v=u[s]-r.rects.reference[s],b=D(a),g=b?"y"===s?b.clientHeight||0:b.clientWidth||0:0,y=f[p],w=g-d[c]-f[m],x=g/2-d[c]/2+(h/2-v/2),E=ei(y,x,w);r.modifiersData[o]=((n={})[s]=E,n.centerOffset=E-x,n)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&$(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=eo(t,{elementContext:"reference"}),u=eo(t,{altBoundary:!0}),l=ea(a,r),s=ea(u,o,i),c=eu(l),f=eu(s);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}).defaultModifiers)?[]:o,u=void 0===(a=r.defaultOptions)?q:a,function(e,t,n){void 0===n&&(n=u);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,u),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,p={state:a,setOptions:function(n){var r,o,c,f,d,h="function"==typeof n?n(a.options):n;m(),a.options=Object.assign({},u,a.options,h),a.scrollParents={reference:(0,l.kK)(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var v=(o=Object.keys(r=[].concat(i,a.options.modifiers).reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{})).map(function(e){return r[e]}),c=new Map,f=new Set,d=[],o.forEach(function(e){c.set(e.name,e)}),o.forEach(function(e){f.has(e.name)||function e(t){f.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!f.has(t)){var n=c.get(t);n&&e(n)}}),d.push(t)}(e)}),L.reduce(function(e,t){return e.concat(d.filter(function(e){return e.phase===t}))},[]));return a.orderedModifiers=v.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=e.effect;if("function"==typeof r){var o=r({state:a,name:t,instance:p,options:void 0===n?{}:n});s.push(o||function(){})}}),p.update()},forceUpdate:function(){if(!c){var e,t,n,r,o,i,u,s,m,w,E,k,C=a.elements,N=C.reference,R=C.popper;if(W(N,R)){a.rects={reference:(t=D(R),n="fixed"===a.options.strategy,r=(0,l.Re)(t),s=(0,l.Re)(t)&&(i=f((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,u=f(o.height)/t.offsetHeight||1,1!==i||1!==u),m=g(t),w=h(N,s,n),E={scrollLeft:0,scrollTop:0},k={x:0,y:0},(r||!r&&!n)&&(("body"!==(0,b.Z)(t)||x(m))&&(E=(e=t)!==(0,d.Z)(e)&&(0,l.Re)(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:v(e)),(0,l.Re)(t)?(k=h(t,!0),k.x+=t.clientLeft,k.y+=t.clientTop):m&&(k.x=y(m))),{x:w.left+E.scrollLeft-k.x,y:w.top+E.scrollTop-k.y,width:w.width,height:w.height}),popper:O(R)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var A=0;A<a.orderedModifiers.length;A++){if(!0===a.reset){a.reset=!1,A=-1;continue}var I=a.orderedModifiers[A],M=I.fn,S=I.options,j=void 0===S?{}:S,_=I.name;"function"==typeof M&&(a=M({state:a,options:j,name:_,instance:p})||a)}}}},update:(r=function(){return new Promise(function(e){p.forceUpdate(),e(a)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(r())})})),o}),destroy:function(){m(),c=!0}};if(!W(e,t))return p;function m(){s.forEach(function(e){return e()}),s=[]}return p.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),p})}}]);
//# sourceMappingURL=4737-fac322ac19728369.js.map