"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31190],{31190:function(e,n,t){t.d(n,{Z:function(){return D}});var o=t(67294),r=t(73935),l=t(93967),i=t.n(l);var a=!1;if("undefined"!==typeof window){var u={get passive(){a=!0}};window.addEventListener("testPassive",null,u),window.removeEventListener("testPassive",null,u)}var c="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),d=[],s=!1,v=-1,f=void 0,m=void 0,y=function(e){return d.some((function(n){return!(!n.options.allowTouchMove||!n.options.allowTouchMove(e))}))},p=function(e){var n=e||window.event;return!!y(n.target)||(n.touches.length>1||(n.preventDefault&&n.preventDefault(),!1))},h=function(){void 0!==m&&(document.body.style.paddingRight=m,m=void 0),void 0!==f&&(document.body.style.overflow=f,f=void 0)},g=function(e,n){if(e){if(!d.some((function(n){return n.targetElement===e}))){var t={targetElement:e,options:n||{}};d=[].concat(function(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(n)&&t<0?p(e):e.stopPropagation())}(n,e)},s||(document.addEventListener("touchmove",p,a?{passive:!1}:void 0),s=!0)):function(e){if(void 0===m){var n=!!e&&!0===e.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;n&&t>0&&(m=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===f&&(f=document.body.style.overflow,document.body.style.overflow="hidden")}(n)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")};function b(e,n={isStateful:!0}){const t=function(e=null){let[n,t]=o.useState(e);const{current:r}=o.useRef({current:n});return Object.defineProperty(r,"current",{get:()=>n,set:e=>{Object.is(n,e)||(n=e,t(e))}}),r}(null),r=(0,o.useRef)(null),l=n.isStateful?t:r;return o.useEffect((()=>{!e||("function"==typeof e?e(l.current):e.current=l.current)})),l}t(83454);function w(){return w=Object.assign||function(e){for(var n=1;n-1&&!A(l)&&k(l))&&o.push(l)}return o}function S(e){var n=parseInt(e.getAttribute("tabindex"),10);return isNaN(n)?function(e){return e.getAttribute("contentEditable")}(e)?0:e.tabIndex:n}var N=function(e){var n=e.container,t=e.initialFocusRef,r=(0,o.useRef)();return(0,o.useEffect)((function(){var e=function(e){(null==n?void 0:n.current)&&function(e,n){if(e&&"Tab"===e.key){if(!n||!n.contains)return!1;if(!n.contains(e.target))return!1;var t=O(n),o=t[0],r=t[t.length-1];e.shiftKey&&e.target===o?(r.focus(),e.preventDefault()):!e.shiftKey&&e.target===r&&(o.focus(),e.preventDefault())}}(e,n.current)};if(C&&document.addEventListener("keydown",e),C&&(null==n?void 0:n.current)){var o=function(){-1!==I.findIndex((function(e){var n;return null==(n=document.activeElement)?void 0:n.matches(e)}))&&(r.current=document.activeElement)};if(t)o(),requestAnimationFrame((function(){var e;null==(e=t.current)||e.focus()}));else{var l=O(n.current);l[0]&&(o(),l[0].focus())}}return function(){var n;C&&(document.removeEventListener("keydown",e),null==(n=r.current)||n.focus())}}),[n,t]),null},R=[],B=function(e){R.push(e)},L=function(e){R=R.filter((function(n){return n!==e}))},T=function(e){return!!R.length&&R[R.length-1]===e};var P=function(e,n,t,r,l){var i=(0,o.useRef)(null);(0,o.useEffect)((function(){return n&&e.current&&r&&(i.current=e.current,g(e.current,{reserveScrollBarGap:l})),function(){var e;i.current&&((e=i.current)?(d=d.filter((function(n){return n.targetElement!==e})),c?(e.ontouchstart=null,e.ontouchmove=null,s&&0===d.length&&(document.removeEventListener("touchmove",p,a?{passive:!1}:void 0),s=!1)):d.length||h()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."),i.current=null)}}),[n,t,e,r,l])},x={root:"react-responsive-modal-root",overlay:"react-responsive-modal-overlay",overlayAnimationIn:"react-responsive-modal-overlay-in",overlayAnimationOut:"react-responsive-modal-overlay-out",modalContainer:"react-responsive-modal-container",modalContainerCenter:"react-responsive-modal-containerCenter",modal:"react-responsive-modal-modal",modalAnimationIn:"react-responsive-modal-modal-in",modalAnimationOut:"react-responsive-modal-modal-out",closeButton:"react-responsive-modal-closeButton"},D=o.forwardRef((function(e,n){var t,l,a,u,c=e.open,d=e.center,s=e.blockScroll,v=void 0===s||s,f=e.closeOnEsc,m=void 0===f||f,y=e.closeOnOverlayClick,p=void 0===y||y,h=e.container,g=e.showCloseIcon,I=void 0===g||g,A=e.closeIconId,k=e.closeIcon,O=e.focusTrapped,S=void 0===O||O,R=e.initialFocusRef,D=void 0===R?void 0:R,M=e.animationDuration,j=void 0===M?300:M,F=e.classNames,_=e.styles,q=e.role,G=void 0===q?"dialog":q,K=e.ariaDescribedby,H=e.ariaLabelledby,U=e.containerId,W=e.modalId,Y=e.onClose,z=e.onEscKeyDown,Z=e.onOverlayClick,J=e.onAnimationEnd,Q=e.children,V=e.reserveScrollBarGap,X=b(n),$=(0,o.useRef)(null),ee=(0,o.useRef)(null),ne=(0,o.useRef)(null);null===ne.current&&C&&(ne.current=document.createElement("div"));var te=(0,o.useState)(!1),oe=te[0],re=te[1];!function(e,n){(0,o.useEffect)((function(){return n&&B(e),function(){L(e)}}),[n,e])}($,c),P($,c,oe,v,V);var le=function(e){27===e.keyCode&&T($)&&(null==z||z(e),m&&Y())};(0,o.useEffect)((function(){return function(){oe&&(ne.current&&!h&&document.body.contains(ne.current)&&document.body.removeChild(ne.current),document.removeEventListener("keydown",le))}}),[oe]),(0,o.useEffect)((function(){c&&!oe&&(re(!0),!ne.current||h||document.body.contains(ne.current)||document.body.appendChild(ne.current),document.addEventListener("keydown",le))}),[c]);var ie=function(){ee.current=!1},ae=h||ne.current,ue=c?null!=(t=null==F?void 0:F.overlayAnimationIn)?t:x.overlayAnimationIn:null!=(l=null==F?void 0:F.overlayAnimationOut)?l:x.overlayAnimationOut,ce=c?null!=(a=null==F?void 0:F.modalAnimationIn)?a:x.modalAnimationIn:null!=(u=null==F?void 0:F.modalAnimationOut)?u:x.modalAnimationOut;return oe&&ae?r.createPortal(o.createElement("div",{className:i()(x.root,null==F?void 0:F.root),style:null==_?void 0:_.root,"data-testid":"root"},o.createElement("div",{className:i()(x.overlay,null==F?void 0:F.overlay),"data-testid":"overlay","aria-hidden":!0,style:w({animation:ue+" "+j+"ms"},null==_?void 0:_.overlay)}),o.createElement("div",{ref:$,id:U,className:i()(x.modalContainer,d&&x.modalContainerCenter,null==F?void 0:F.modalContainer),style:null==_?void 0:_.modalContainer,"data-testid":"modal-container",onClick:function(e){null===ee.current&&(ee.current=!0),ee.current?(null==Z||Z(e),p&&Y(),ee.current=null):ee.current=null}},o.createElement("div",{ref:X,className:i()(x.modal,null==F?void 0:F.modal),style:w({animation:ce+" "+j+"ms"},null==_?void 0:_.modal),onMouseDown:ie,onMouseUp:ie,onClick:ie,onAnimationEnd:function(){c||re(!1),null==J||J()},id:W,role:G,"aria-modal":"true","aria-labelledby":H,"aria-describedby":K,"data-testid":"modal",tabIndex:-1},S&&o.createElement(N,{container:X,initialFocusRef:D}),Q,I&&o.createElement(E,{classes:x,classNames:F,styles:_,closeIcon:k,onClick:Y,id:A})))),ae):null}))}}]);