"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3474],{75800:function(e,n,t){function r(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function o(e){var n;if(!r(e))return!1;let t=null!=(n=e.ownerDocument.defaultView)?n:window;return e instanceof t.HTMLElement}function a(e){var n,t;return null!=(t=null==(n=i(e))?void 0:n.defaultView)?t:window}function i(e){return r(e)?e.ownerDocument:document}function u(e){return i(e).activeElement}t.d(n,{Re:function(){return o},kR:function(){return a},vY:function(){return u}})},41741:function(e,n,t){t.d(n,{EB:function(){return i},Wq:function(){return u}});var r=t(75800),o=e=>e.hasAttribute("tabindex"),a=e=>o(e)&&-1===e.tabIndex;function i(e){var n;if(!(0,r.Re)(e)||function e(n){return!!(n.parentElement&&e(n.parentElement))||n.hidden}(e)||!0==!!(n=e).getAttribute("disabled")||!0==!!n.getAttribute("aria-disabled"))return!1;let{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;let a={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in a?a[t]():!!function(e){let n=e.getAttribute("contenteditable");return"false"!==n&&null!=n}(e)||o(e)}function u(e){return!!e&&(0,r.Re)(e)&&i(e)&&!a(e)}},51905:function(e,n,t){t.d(n,{t5:function(){return a}});var r=t(41741),o=e=>e.offsetWidth>0&&e.offsetHeight>0;function a(e){let n=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 n.unshift(e),n.filter(e=>(0,r.EB)(e)&&o(e))}},77446:function(e,n,t){t.d(n,{B:function(){return u},$:function(){return c}});var r=Object.defineProperty,o=(e,n,t)=>n in e?r(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,a=(e,n,t)=>(o(e,"symbol"!=typeof n?n+"":n,t),t),i=t(2784),u=new class{constructor(){a(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function c(e,n){let[t,r]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let t=e.current;if(t)return n&&r(u.add(t)),()=>{u.remove(t),r(0)}},[n,e]),t}},65654:function(e,n,t){t.d(n,{M:function(){return np}});var r,o,a,i=t(5389),u=t(77446);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var l=t(2784),d="data-focus-lock",s="data-focus-lock-disabled";function f(e,n){var t,r,o;return t=n||null,r=function(n){return e.forEach(function(e){return"function"==typeof e?e(n):e&&(e.current=n),e})},(o=(0,l.useState)(function(){return{value:t,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,o.facade}var v={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},p=function(e){var n=e.children;return l.createElement(l.Fragment,null,l.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:v}),n,n&&l.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:v}))};p.propTypes={},p.defaultProps={children:null};var m=function(){return(m=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function h(e){return e}function b(e,n){void 0===n&&(n=h);var t=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:e},useMedium:function(e){var o=n(e,r);return t.push(o),function(){t=t.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;t.length;){var n=t;t=[],n.forEach(e)}t={push:function(n){return e(n)},filter:function(){return t}}},assignMedium:function(e){r=!0;var n=[];if(t.length){var o=t;t=[],o.forEach(e),n=t}var a=function(){var t=n;n=[],t.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),t={push:function(e){n.push(e),i()},filter:function(e){return n=n.filter(e),t}}}}}function g(e,n){return void 0===n&&(n=h),b(e,n)}function y(e){void 0===e&&(e={});var n=b(null);return n.options=m({async:!0,ssr:!1},e),n}var w=g({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),E=g(),x=g(),O=y({async:!0}),k=[],N=l.forwardRef(function(e,n){var t,r=l.useState(),o=r[0],a=r[1],i=l.useRef(),u=l.useRef(!1),p=l.useRef(null),m=e.children,h=e.disabled,b=e.noFocusGuards,g=e.persistentFocus,y=e.crossFrame,x=e.autoFocus,N=(e.allowTextSelection,e.group),M=e.className,C=e.whiteList,S=e.hasPositiveIndices,A=e.shards,T=void 0===A?k:A,I=e.as,P=e.lockProps,R=e.sideCar,j=e.returnFocus,F=e.focusOptions,D=e.onActivation,L=e.onDeactivation,_=l.useState({})[0],W=l.useCallback(function(){p.current=p.current||document&&document.activeElement,i.current&&D&&D(i.current),u.current=!0},[D]),B=l.useCallback(function(){u.current=!1,L&&L(i.current)},[L]);(0,l.useEffect)(function(){h||(p.current=null)},[]);var q=l.useCallback(function(e){var n=p.current;if(n&&n.focus){var t="function"==typeof j?j(n):j;if(t){var r="object"==typeof t?t:void 0;p.current=null,e?Promise.resolve().then(function(){return n.focus(r)}):n.focus(r)}}},[j]),U=l.useCallback(function(e){u.current&&w.useMedium(e)},[]),G=E.useMedium,Y=l.useCallback(function(e){i.current!==e&&(i.current=e,a(e))},[]),$=c(((t={})[s]=h&&"disabled",t[d]=N,t),void 0===P?{}:P),H=!0!==b,X=H&&"tail"!==b,Z=f([n,Y]);return l.createElement(l.Fragment,null,H&&[l.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:v}),S?l.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:v}):null],!h&&l.createElement(R,{id:_,sideCar:O,observed:o,disabled:h,persistentFocus:g,crossFrame:y,autoFocus:x,whiteList:C,shards:T,onActivation:W,onDeactivation:B,returnFocus:q,focusOptions:F}),l.createElement(void 0===I?"div":I,c({ref:Z},$,{className:M,onBlur:G,onFocus:U}),m),X&&l.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:v}))});function M(e,n){return(M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}N.propTypes={},N.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var C=function(e){for(var n=Array(e.length),t=0;t<e.length;++t)n[t]=e[t];return n},S=function(e){return Array.isArray(e)?e:[e]},A=function(e){return Array.isArray(e)?e[0]:e},T=function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=window.getComputedStyle(e,null);return!!n&&!!n.getPropertyValue&&("none"===n.getPropertyValue("display")||"hidden"===n.getPropertyValue("visibility"))},I=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},P=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},R=function(e,n){var t,r=e.get(n);if(void 0!==r)return r;var o=(t=R.bind(void 0,e),!n||P(n)||!T(n)&&t(I(n)));return e.set(n,o),o},j=function(e,n){var t,r=e.get(n);if(void 0!==r)return r;var o=(t=j.bind(void 0,e),!n||!!P(n)||!!_(n)&&t(I(n)));return e.set(n,o),o},F=function(e){return e.dataset},D=function(e){return"INPUT"===e.tagName},L=function(e){return D(e)&&"radio"===e.type},_=function(e){return![!0,"true",""].includes(e.getAttribute("data-no-autofocus"))},W=function(e){var n;return!!(e&&(null===(n=F(e))||void 0===n?void 0:n.focusGuard))},B=function(e){return!W(e)},q=function(e){return!!e},U=function(e,n){var t=e.tabIndex-n.tabIndex,r=e.index-n.index;if(t){if(!e.tabIndex)return 1;if(!n.tabIndex)return -1}return t||r},G=function(e,n,t){return C(e).map(function(e,n){return{node:e,index:n,tabIndex:t&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}}).filter(function(e){return!n||e.tabIndex>=0}).sort(U)},Y="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",$="".concat(Y,", [data-focus-guard]"),H=function(e,n){return C((e.shadowRoot||e).children).reduce(function(e,t){return e.concat(t.matches(n?$:Y)?[t]:[],H(t))},[])},X=function(e,n){var t;return e instanceof HTMLIFrameElement&&(null===(t=e.contentDocument)||void 0===t?void 0:t.body)?Z([e.contentDocument.body],n):[e]},Z=function(e,n){return e.reduce(function(e,t){var r,o=H(t,n),a=(r=[]).concat.apply(r,o.map(function(e){return X(e,n)}));return e.concat(a,t.parentNode?C(t.parentNode.querySelectorAll(Y)).filter(function(e){return e===t}):[])},[])},z=function(e,n){return C(e).filter(function(e){return R(n,e)}).filter(function(e){return!((D(e)||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))})},V=function(e,n){return void 0===n&&(n=new Map),C(e).filter(function(e){return j(n,e)})},K=function(e,n,t){return G(z(Z(e,t),n),!0,t)},J=function(e,n){return G(z(Z(e),n),!1)},Q=function(e,n){return e.shadowRoot?Q(e.shadowRoot,n):!!(void 0!==Object.getPrototypeOf(e).contains&&Object.getPrototypeOf(e).contains.call(e,n))||C(e.children).some(function(e){var t;if(e instanceof HTMLIFrameElement){var r=null===(t=e.contentDocument)||void 0===t?void 0:t.body;return!!r&&Q(r,n)}return Q(e,n)})},ee=function(e){try{return e()}catch(e){return}},en=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var n=e.activeElement;return n.shadowRoot?en(n.shadowRoot):n instanceof HTMLIFrameElement&&ee(function(){return n.contentWindow.document})?en(n.contentWindow.document):n}},et=function(e){void 0===e&&(e=document);var n=en(e);return!!n&&C(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return Q(e,n)})},er=function(e){for(var n=new Set,t=e.length,r=0;r<t;r+=1)for(var o=r+1;o<t;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&n.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&n.add(r)}return e.filter(function(e,t){return!n.has(t)})},eo=function(e){return e.parentNode?eo(e.parentNode):e},ea=function(e){return S(e).filter(Boolean).reduce(function(e,n){var t=n.getAttribute(d);return e.push.apply(e,t?er(C(eo(n).querySelectorAll("[".concat(d,'="').concat(t,'"]:not([').concat(s,'="disabled"])')))):[n]),e},[])},ei=function(e,n){return void 0===n&&(n=en(A(e).ownerDocument)),!!n&&(!n.dataset||!n.dataset.focusGuard)&&ea(e).some(function(e){var t;return Q(e,n)||(t=n,!!C(e.querySelectorAll("iframe")).some(function(e){return e===t}))})},eu=function(e,n){return L(e)&&e.name&&n.filter(L).filter(function(n){return n.name===e.name}).filter(function(e){return e.checked})[0]||e},ec=function(e){var n=new Set;return e.forEach(function(t){return n.add(eu(t,e))}),e.filter(function(e){return n.has(e)})},el=function(e){return e[0]&&e.length>1?eu(e[0],e):e[0]},ed=function(e,n){return e.length>1?e.indexOf(eu(e[n],e)):n},es="NEW_FOCUS",ef=function(e,n,t,r){var o=e.length,a=e[0],i=e[o-1],u=W(t);if(!(t&&e.indexOf(t)>=0)){var c=void 0!==t?n.indexOf(t):-1,l=r?n.indexOf(r):c,d=r?e.indexOf(r):-1,s=c-l,f=n.indexOf(a),v=n.indexOf(i),p=ec(n),m=(void 0!==t?p.indexOf(t):-1)-(r?p.indexOf(r):c),h=ed(e,0),b=ed(e,o-1);if(-1===c||-1===d)return es;if(!s&&d>=0)return d;if(c<=f&&u&&Math.abs(s)>1)return b;if(c>=v&&u&&Math.abs(s)>1)return h;if(s&&Math.abs(m)>1)return d;if(c<=f)return b;if(c>v)return h;if(s)return Math.abs(s)>1?d:(o+d+s)%o}},ev=function(e,n,t){var r=V(e.map(function(e){return e.node}).filter(function(e){var n,r=null===(n=F(e))||void 0===n?void 0:n.autofocus;return e.autofocus||void 0!==r&&"false"!==r||t.indexOf(e)>=0}));return r&&r.length?el(r):el(V(n))},ep=function(e,n){return void 0===n&&(n=[]),n.push(e),e.parentNode&&ep(e.parentNode.host||e.parentNode,n),n},em=function(e,n){for(var t=ep(e),r=ep(n),o=0;o<t.length;o+=1){var a=t[o];if(r.indexOf(a)>=0)return a}return!1},eh=function(e,n,t){var r=S(e),o=S(n),a=r[0],i=!1;return o.filter(Boolean).forEach(function(e){i=em(i||e,e)||i,t.filter(Boolean).forEach(function(e){var n=em(a,e);n&&(i=!i||Q(n,i)?n:em(n,i))})}),i},eb=function(e,n){var t=new Map;return n.forEach(function(e){return t.set(e.node,e)}),e.map(function(e){return t.get(e)}).filter(q)},eg=function(e,n){var t=en(S(e).length>0?document:A(e).ownerDocument),r=ea(e).filter(B),o=eh(t||e,e,r),a=new Map,i=J(r,a),u=K(r,a).filter(function(e){return B(e.node)});if(u[0]||(u=i)[0]){var c=J([o],a).map(function(e){return e.node}),l=eb(c,u),d=l.map(function(e){return e.node}),s=ef(d,c,t,n);if(s===es){var f=ev(i,d,r.reduce(function(e,n){return e.concat(z(C(n.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(e){return Z([e])}).reduce(function(e,n){return e.concat(n)},[]),a))},[]));return f?{node:f}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===s?s:l[s]}},ey=function(e,n){"focus"in e&&e.focus(n),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},ew=0,eE=!1,ex=function(e,n,t){void 0===t&&(t={});var r=eg(e,n);if(!eE&&r){if(ew>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),eE=!0,setTimeout(function(){eE=!1},1);return}ew++,ey(r.node,t.focusOptions),ew--}},eO=function(e){var n=ea(e).filter(B),t=eh(e,e,n),r=new Map,o=K([t],r,!0),a=K(n,r).filter(function(e){return B(e.node)}).map(function(e){return e.node});return o.map(function(e){var n=e.node;return{node:n,index:e.index,lockItem:a.indexOf(n)>=0,guard:W(n)}})};function ek(e){var n=window.setImmediate;void 0!==n?n(e):setTimeout(e,1)}var eN=null,eM=null,eC=null,eS=!1,eA=function(e,n){eC={observerNode:e,portaledElement:n}};function eT(e,n,t,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else if(i.lockItem){if(a!==e)return;o=null}else break}while((a+=t)!==n);o&&(o.node.tabIndex=0)}var eI=function(e){return e&&"current"in e?e.current:e},eP=function(){var e=!1;if(eN){var n=eN,t=n.observed,r=n.persistentFocus,o=n.autoFocus,a=n.shards,i=n.crossFrame,u=n.focusOptions,c=t||eC&&eC.portaledElement,l=document&&document.activeElement;if(c){var d=[c].concat(a.map(eI).filter(Boolean));if((!l||(eN.whiteList||function(){return!0})(l))&&(r||(i?!!eS:"meanwhile"===eS)||!(document&&document.activeElement===document.body||et())||!eM&&o)&&(c&&!(ei(d)||l&&d.some(function(e){return function e(n,t,r){return t&&(t.host===n&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,r))}(l,e,e)})||eC&&eC.portaledElement===l)&&(document&&!eM&&l&&!o?(l.blur&&l.blur(),document.body.focus()):(e=ex(d,eM,{focusOptions:u}),eC={})),eS=!1,eM=document&&document.activeElement),document){var s=document&&document.activeElement,f=eO(d),v=f.map(function(e){return e.node}).indexOf(s);v>-1&&(f.filter(function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),eT(v,f.length,1,f),eT(v,-1,-1,f))}}}return e},eR=function(e){eP()&&e&&(e.stopPropagation(),e.preventDefault())},ej=function(){return ek(eP)},eF=function(){eS="just",setTimeout(function(){eS="meanwhile"},0)},eD=function(){document.addEventListener("focusin",eR),document.addEventListener("focusout",ej),window.addEventListener("blur",eF)},eL=function(){document.removeEventListener("focusin",eR),document.removeEventListener("focusout",ej),window.removeEventListener("blur",eF)};w.assignSyncMedium(function(e){var n=e.target,t=e.currentTarget;t.contains(n)||eA(t,n)}),E.assignMedium(ej),x.assignMedium(function(e){return e({moveFocusInside:ex,focusInside:ei})});var e_=(r=function(e){var n=e.slice(-1)[0];n&&!eN&&eD();var t=eN,r=t&&n&&n.id===t.id;eN=n,!t||r||(t.onDeactivation(),e.filter(function(e){return e.id===t.id}).length||t.returnFocus(!n)),n?(eM=null,r&&t.observed===n.observed||n.onActivation(),eP(!0),ek(eP)):(eL(),eM=null)},function(e){var n,t,o,a=[];function i(){r(o=a.map(function(e){return e.props}).filter(function(e){return!e.disabled}))}var u=function(n){function t(){return n.apply(this,arguments)||this}t.prototype=Object.create(n.prototype),t.prototype.constructor=t,M(t,n),t.peek=function(){return o};var r=t.prototype;return r.componentDidMount=function(){a.push(this),i()},r.componentDidUpdate=function(){i()},r.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),i()},r.render=function(){return l.createElement(e,this.props)},t}(l.PureComponent);return n="displayName",t="SideEffect("+(e.displayName||e.name||"Component")+")",n in u?Object.defineProperty(u,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):u[n]=t,u})(function(){return null}),eW=l.forwardRef(function(e,n){return l.createElement(N,c({sideCar:e_,ref:n},e))}),eB=N.propTypes||{};eB.sideCar,function(e,n){if(null!=e){var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n.indexOf(t=a[r])>=0||(o[t]=e[t])}}(eB,["sideCar"]),eW.propTypes={};var eq=t(51905),eU=t(52322),eG=null!=(o=eW.default)?o:eW,eY=e=>{let{initialFocusRef:n,finalFocusRef:t,contentRef:r,restoreFocus:o,children:a,isDisabled:i,autoFocus:u,persistentFocus:c,lockFocusAcrossFrames:d}=e,s=(0,l.useCallback)(()=>{(null==n?void 0:n.current)?n.current.focus():(null==r?void 0:r.current)&&0===(0,eq.t5)(r.current).length&&requestAnimationFrame(()=>{var e;null==(e=r.current)||e.focus()})},[n,r]),f=(0,l.useCallback)(()=>{var e;null==(e=null==t?void 0:t.current)||e.focus()},[t]),v=o&&!t;return(0,eU.jsx)(eG,{crossFrame:d,persistentFocus:c,autoFocus:u,disabled:i,onActivation:s,onDeactivation:f,returnFocus:v,children:a})};eY.displayName="FocusLock";var e$=t(58175),eH=function(){return(eH=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)},eX="right-scroll-bar-position",eZ="width-before-scroll-bar",ez=y(),eV=function(){},eK=l.forwardRef(function(e,n){var t=l.useRef(null),r=l.useState({onScrollCapture:eV,onWheelCapture:eV,onTouchMoveCapture:eV}),o=r[0],a=r[1],i=e.forwardProps,u=e.children,c=e.className,d=e.removeScrollBar,s=e.enabled,v=e.shards,p=e.sideCar,m=e.noIsolation,h=e.inert,b=e.allowPinchZoom,g=e.as,y=e.gapMode,w=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>n.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f([t,n]),x=eH(eH({},w),o);return l.createElement(l.Fragment,null,s&&l.createElement(p,{sideCar:ez,removeScrollBar:d,shards:v,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!b,lockRef:t,gapMode:y}),i?l.cloneElement(l.Children.only(u),eH(eH({},x),{ref:E})):l.createElement(void 0===g?"div":g,eH({},x,{className:c,ref:E}),u))});eK.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eK.classNames={fullWidth:eZ,zeroRight:eX};var eJ=function(e){var n=e.sideCar,t=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>n.indexOf(r)&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>n.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]]);return t}(e,["sideCar"]);if(!n)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=n.read();if(!r)throw Error("Sidecar medium not found");return l.createElement(r,m({},t))};eJ.isSideCarExport=!0;var eQ=function(){var e=0,n=null;return{add:function(r){if(0==e&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=a||t.nc;return n&&e.setAttribute("nonce",n),e}())){var o,i;(o=n).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=n,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!n||(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},e0=function(){var e=eQ();return function(n,t){l.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&t])}},e1=function(){var e=e0();return function(n){return e(n.styles,n.dynamic),null}},e2={left:0,top:0,right:0,gap:0},e5=function(e){return parseInt(e||"",10)||0},e7=function(e){var n=window.getComputedStyle(document.body),t=n["padding"===e?"paddingLeft":"marginLeft"],r=n["padding"===e?"paddingTop":"marginTop"],o=n["padding"===e?"paddingRight":"marginRight"];return[e5(t),e5(r),e5(o)]},e4=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return e2;var n=e7(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,r-t+n[2]-n[0])}},e3=e1(),e8=function(e,n,t,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===t&&(t="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([n&&"position: relative ".concat(r,";"),"margin"===t&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===t&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eX," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(eZ," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(eX," .").concat(eX," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(eZ," .").concat(eZ," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},e9=function(e){var n=e.noRelative,t=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r,a=l.useMemo(function(){return e4(o)},[o]);return l.createElement(e3,{styles:e8(a,!n,o,t?"":"!important")})},e6=!1;if("undefined"!=typeof window)try{var ne=Object.defineProperty({},"passive",{get:function(){return e6=!0,!0}});window.addEventListener("test",ne,ne),window.removeEventListener("test",ne,ne)}catch(e){e6=!1}var nn=!!e6&&{passive:!1},nt=function(e,n){var t=window.getComputedStyle(e);return"hidden"!==t[n]&&!(t.overflowY===t.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===t[n])},nr=function(e,n){var t=n.ownerDocument,r=n;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),no(e,r)){var o=na(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==t.body);return!1},no=function(e,n){return"v"===e?nt(n,"overflowY"):nt(n,"overflowX")},na=function(e,n){return"v"===e?[n.scrollTop,n.scrollHeight,n.clientHeight]:[n.scrollLeft,n.scrollWidth,n.clientWidth]},ni=function(e,n,t,r,o){var a,i=(a=window.getComputedStyle(n).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,c=t.target,l=n.contains(c),d=!1,s=u>0,f=0,v=0;do{var p=na(e,c),m=p[0],h=p[1]-p[2]-i*m;(m||h)&&no(e,c)&&(f+=h,v+=m),c=c.parentNode}while(!l&&c!==document.body||l&&(n.contains(c)||n===c));return s&&(o&&0===f||!o&&u>f)?d=!0:!s&&(o&&0===v||!o&&-u>v)&&(d=!0),d},nu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nc=function(e){return[e.deltaX,e.deltaY]},nl=function(e){return e&&"current"in e?e.current:e},nd=0,ns=[],nf=(ez.useMedium(function(e){var n=l.useRef([]),t=l.useRef([0,0]),r=l.useRef(),o=l.useState(nd++)[0],a=l.useState(e1)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var n=(function(e,n,t){if(t||2==arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))})([e.lockRef.current],(e.shards||[]).map(nl),!0).filter(Boolean);return n.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),n.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=l.useCallback(function(e,n){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=nu(e),u=t.current,c="deltaX"in e?e.deltaX:u[0]-a[0],l="deltaY"in e?e.deltaY:u[1]-a[1],d=e.target,s=Math.abs(c)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===s&&"range"===d.type)return!1;var f=nr(s,d);if(!f)return!0;if(f?o=s:(o="v"===s?"h":"v",f=nr(s,d)),!f)return!1;if(!r.current&&"changedTouches"in e&&(c||l)&&(r.current=o),!o)return!0;var v=r.current||o;return ni(v,n,e,"h"===v?c:l,!0)},[]),c=l.useCallback(function(e){if(ns.length&&ns[ns.length-1]===a){var t="deltaY"in e?nc(e):nu(e),r=n.current.filter(function(n){var r;return n.name===e.type&&n.target===e.target&&(r=n.delta)[0]===t[0]&&r[1]===t[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(nl).filter(Boolean).filter(function(n){return n.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=l.useCallback(function(e,t,r,o){var a={name:e,delta:t,target:r,should:o};n.current.push(a),setTimeout(function(){n.current=n.current.filter(function(e){return e!==a})},1)},[]),s=l.useCallback(function(e){t.current=nu(e),r.current=void 0},[]),f=l.useCallback(function(n){d(n.type,nc(n),n.target,u(n,e.lockRef.current))},[]),v=l.useCallback(function(n){d(n.type,nu(n),n.target,u(n,e.lockRef.current))},[]);l.useEffect(function(){return ns.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:v}),document.addEventListener("wheel",c,nn),document.addEventListener("touchmove",c,nn),document.addEventListener("touchstart",s,nn),function(){ns=ns.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,nn),document.removeEventListener("touchmove",c,nn),document.removeEventListener("touchstart",s,nn)}},[]);var p=e.removeScrollBar,m=e.inert;return l.createElement(l.Fragment,null,m?l.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?l.createElement(e9,{gapMode:e.gapMode}):null)}),eJ),nv=l.forwardRef(function(e,n){return l.createElement(eK,eH({},e,{ref:n,sideCar:nf}))});function np(e){let{autoFocus:n,trapFocus:t,dialogRef:r,initialFocusRef:o,blockScrollOnMount:a,allowPinchZoom:c,finalFocusRef:d,returnFocusOnClose:s,preserveScrollBarGap:f,lockFocusAcrossFrames:v,isOpen:p}=(0,i.vR)(),[m,h]=(0,e$.oO)();(0,l.useEffect)(()=>{!m&&h&&setTimeout(h)},[m,h]);let b=(0,u.$)(r,p);return(0,eU.jsx)(eY,{autoFocus:n,isDisabled:!t,initialFocusRef:o,finalFocusRef:d,restoreFocus:s,contentRef:r,lockFocusAcrossFrames:v,children:(0,eU.jsx)(nv,{removeScrollBar:!f,allowPinchZoom:c,enabled:1===b&&a,forwardProps:!0,children:e.children})})}nv.classNames=eK.classNames},6876:function(e,n,t){t.d(n,{Z:function(){return p}});var r=t(5389),o=t(31053),a=t(72037),i=t(17107),u=t(21056),c=t(94589),l=t(75009),d=t(2784),s=t(52322),f={initial:"exit",animate:"enter",exit:"exit",variants:{enter:({transition:e,transitionEnd:n,delay:t}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:u.p$.enter(u.Sh.enter,t),transitionEnd:null==n?void 0:n.enter}},exit:({transition:e,transitionEnd:n,delay:t}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:u.p$.exit(u.Sh.exit,t),transitionEnd:null==n?void 0:n.exit}}}};(0,d.forwardRef)(function(e,n){let{unmountOnExit:t,in:r,className:a,transition:i,transitionEnd:u,delay:d,...v}=e,p=r||t?"enter":"exit",m=!t||r&&t,h={transition:i,transitionEnd:u,delay:d};return(0,s.jsx)(c.M,{custom:h,children:m&&(0,s.jsx)(l.E.div,{ref:n,className:(0,o.cx)("chakra-fade",a),custom:h,...f,animate:p,...v})})}).displayName="Fade";var v=(0,a.m)(l.E.div),p=(0,i.G)((e,n)=>{let{className:t,transition:a,motionProps:i,...u}=e,c=(0,o.cx)("chakra-modal__overlay",t),l={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...(0,r.I_)().overlay},{motionPreset:d}=(0,r.vR)(),p="none"===d?{}:f;return(0,s.jsx)(v,{...i||p,__css:l,ref:n,className:c,...u})});p.displayName="ModalOverlay"},2167:function(e,n,t){t.d(n,{f:function(){return l}});var r=t(5389),o=t(31053),a=t(17107),i=t(72037),u=t(2784),c=t(52322),l=(0,a.G)((e,n)=>{let{className:t,...a}=e,{bodyId:l,setBodyMounted:d}=(0,r.vR)();(0,u.useEffect)(()=>(d(!0),()=>d(!1)),[d]);let s=(0,o.cx)("chakra-modal__body",t),f=(0,r.I_)();return(0,c.jsx)(i.m.div,{ref:n,className:s,id:l,...a,__css:f.body})});l.displayName="ModalBody"},5389:function(e,n,t){t.d(n,{u_:function(){return O},vR:function(){return x},I_:function(){return w}});var r=t(77446),o=t(31053),a=t(85244),i=new WeakMap,u=new WeakMap,c={},l=0,d=function(e){return e&&(e.host||d(e.parentNode))},s=function(e,n,t,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(n.contains(e))return e;var t=d(e);return t&&n.contains(t)?t:(console.error("aria-hidden",e,"in not contained inside",n,". Doing nothing"),null)}).filter(function(e){return!!e});c[t]||(c[t]=new WeakMap);var a=c[t],s=[],f=new Set,v=new Set(o),p=function(e){!e||f.has(e)||(f.add(e),p(e.parentNode))};o.forEach(p);var m=function(e){!e||v.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))m(e);else{var n=e.getAttribute(r),o=null!==n&&"false"!==n,c=(i.get(e)||0)+1,l=(a.get(e)||0)+1;i.set(e,c),a.set(e,l),s.push(e),1===c&&o&&u.set(e,!0),1===l&&e.setAttribute(t,"true"),o||e.setAttribute(r,"true")}})};return m(n),f.clear(),l++,function(){s.forEach(function(e){var n=i.get(e)-1,o=a.get(e)-1;i.set(e,n),a.set(e,o),n||(u.has(e)||e.removeAttribute(r),u.delete(e)),o||e.removeAttribute(t)}),--l||(i=new WeakMap,i=new WeakMap,u=new WeakMap,c={})}},f=function(e,n,t){void 0===t&&(t="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=n||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),s(r,o,t,"aria-hidden")):function(){return null}},v=t(2784),p=t(94301),m=t(9165),h=t(93506),b=t(94589),g=t(52322),[y,w]=(0,m.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[E,x]=(0,m.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),O=e=>{let n={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:t,children:i,autoFocus:u,trapFocus:c,initialFocusRef:l,finalFocusRef:d,returnFocusOnClose:s,blockScrollOnMount:m,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:O,lockFocusAcrossFrames:k,onCloseComplete:N}=n,M=(0,h.jC)("Modal",n),C={...function(e){let{isOpen:n,onClose:t,id:i,closeOnOverlayClick:u=!0,closeOnEsc:c=!0,useInert:l=!0,onOverlayClick:d,onEsc:s}=e,p=(0,v.useRef)(null),m=(0,v.useRef)(null),[h,b,g]=function(e,...n){let t=(0,v.useId)(),r=e||t;return(0,v.useMemo)(()=>n.map(e=>`${e}-${r}`),[r,n])}(i,"chakra-modal","chakra-modal--header","chakra-modal--body");(function(e,n){let t=e.current;(0,v.useEffect)(()=>{if(e.current&&n)return f(e.current)},[n,e,t])})(p,n&&l),(0,r.$)(p,n);let y=(0,v.useRef)(null),w=(0,v.useCallback)(e=>{y.current=e.target},[]),E=(0,v.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),c&&(null==t||t()),null==s||s())},[c,t,s]),[x,O]=(0,v.useState)(!1),[k,N]=(0,v.useState)(!1),M=(0,v.useCallback)((e={},n=null)=>({role:"dialog",...e,ref:(0,a.lq)(n,p),id:h,tabIndex:-1,"aria-modal":!0,"aria-labelledby":x?b:void 0,"aria-describedby":k?g:void 0,onClick:(0,o.v0)(e.onClick,e=>e.stopPropagation())}),[g,k,h,b,x]),C=(0,v.useCallback)(e=>{e.stopPropagation(),y.current===e.target&&r.B.isTopModal(p.current)&&(u&&(null==t||t()),null==d||d())},[t,u,d]),S=(0,v.useCallback)((e={},n=null)=>({...e,ref:(0,a.lq)(n,m),onClick:(0,o.v0)(e.onClick,C),onKeyDown:(0,o.v0)(e.onKeyDown,E),onMouseDown:(0,o.v0)(e.onMouseDown,w)}),[E,w,C]);return{isOpen:n,onClose:t,headerId:b,bodyId:g,setBodyMounted:N,setHeaderMounted:O,dialogRef:p,overlayRef:m,getDialogProps:M,getDialogContainerProps:S}}(n),autoFocus:u,trapFocus:c,initialFocusRef:l,finalFocusRef:d,returnFocusOnClose:s,blockScrollOnMount:m,allowPinchZoom:w,preserveScrollBarGap:x,motionPreset:O,lockFocusAcrossFrames:k};return(0,g.jsx)(E,{value:C,children:(0,g.jsx)(y,{value:M,children:(0,g.jsx)(b.M,{onExitComplete:N,children:C.isOpen&&(0,g.jsx)(p.h,{...t,children:i})})})})};O.displayName="Modal"},21056:function(e,n,t){t.d(n,{Lj:function(){return r},Sh:function(){return i},js:function(){return a},p$:function(){return u}});var r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},o={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function a(e){var n;switch(null!=(n=null==e?void 0:e.direction)?n:"right"){case"right":default:return o.slideRight;case"left":return o.slideLeft;case"bottom":return o.slideDown;case"top":return o.slideUp}}var i={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},u={enter:(e,n)=>({...e,delay:"number"==typeof n?n:null==n?void 0:n.enter}),exit:(e,n)=>({...e,delay:"number"==typeof n?n:null==n?void 0:n.exit})}}}]);