(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6090],{27753:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,i){try{return function e(i,a){if(i===a)return!0;if(i&&a&&"object"==typeof i&&"object"==typeof a){var s,f,c,u;if(i.constructor!==a.constructor)return!1;if(Array.isArray(i)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(!e(i[f],a[f]))return!1;return!0}if(n&&i instanceof Map&&a instanceof Map){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;for(u=i.entries();!(f=u.next()).done;)if(!e(f.value[1],a.get(f.value[0])))return!1;return!0}if(r&&i instanceof Set&&a instanceof Set){if(i.size!==a.size)return!1;for(u=i.entries();!(f=u.next()).done;)if(!a.has(f.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(a)){if((s=i.length)!=a.length)return!1;for(f=s;0!=f--;)if(i[f]!==a[f])return!1;return!0}if(i.constructor===RegExp)return i.source===a.source&&i.flags===a.flags;if(i.valueOf!==Object.prototype.valueOf&&"function"==typeof i.valueOf&&"function"==typeof a.valueOf)return i.valueOf()===a.valueOf();if(i.toString!==Object.prototype.toString&&"function"==typeof i.toString&&"function"==typeof a.toString)return i.toString()===a.toString();if((s=(c=Object.keys(i)).length)!==Object.keys(a).length)return!1;for(f=s;0!=f--;)if(!Object.prototype.hasOwnProperty.call(a,c[f]))return!1;if(t&&i instanceof Element)return!1;for(f=s;0!=f--;)if(("_owner"!==c[f]&&"__v"!==c[f]&&"__o"!==c[f]||!i.$$typeof)&&!e(i[c[f]],a[c[f]]))return!1;return!0}return i!=i&&a!=a}(e,i)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},10340:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(53048),o=n(70079),i=n(90165),a=n(98445),s=n(74593),f=n(49753),c=n(77296),u=n(58096),l=n(88458),p=n(24458),d=n(22319),m=n(35250),h=n(15466);let v=e=>{let{attachListener:t,callback:n,eventType:r,parent:i}=e;(0,o.useEffect)(()=>(t&&!(0,h.o8)(i)&&i.addEventListener(r,n,!0),()=>{(0,h.o8)(i)||i.removeEventListener(r,n,!0)}),[t,n,r,i])},y=e=>{let{role:t="dialog",...n}=e,h=(0,o.useRef)(null),y=(0,o.useRef)(null),g=(0,o.useRef)(null),[b,x]=(0,o.useState)(!1),w=(0,o.useRef)(0),O=(0,o.useRef)(0),E=(0,o.useRef)(0);function j(e){null!==h.current&&(h.current.style.transform="translateY(".concat(e,"px)"))}function L(e){x(!1),O.current=0,null!==h.current&&h.current.style.removeProperty("transform"),n.onClose&&n.onClose(e)}v({attachListener:n.open&&!(0,u.s$)(),callback:()=>{if(null!==y.current){let{classList:e}=y.current;P()?e.remove("np-bottom-sheet--top-bar--shadow"):e.add("np-bottom-sheet--top-bar--shadow")}},eventType:"scroll",parent:(0,u.s$)()?void 0:document});let T=e=>{E.current=("touches"in e?e.touches[0]:e).clientY,x(!0)},A=e=>{if(b){let{clientY:t}="touches"in e?e.touches[0]:e,n=t-E.current;n>0&&P()&&(O.current=n,w.current=requestAnimationFrame(()=>{void 0!==w.current&&null!==h.current&&j(n)}))}};function M(e){cancelAnimationFrame(w.current),x(!1),O.current>50&&P()?L(e):j(0),O.current=0}function P(){var e;return(null==g?void 0:null===(e=g.current)||void 0===e?void 0:e.scrollTop)!==void 0&&g.current.scrollTop<=1}let k=(0,l.G)("(max-width: ".concat(p.U.ZOOM_400,"px)")),D=(0,o.useContext)(s.S);return k?(0,m.jsx)(a.Z,{"aria-labelledby":n["aria-labelledby"],"aria-label":n["aria-label"],role:t,open:n.open,className:n.className,onClose:L,children:n.children}):(0,m.jsx)(i.ZP,{open:n.open,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:L,children:(0,m.jsx)(f.Z,{ref:h,open:n.open,position:d.L.BOTTOM,className:(0,r.W)("np-bottom-sheet",n.className),children:(0,m.jsxs)("div",{id:D,"aria-labelledby":n["aria-labelledby"]||void 0,"aria-label":n["aria-label"]||void 0,role:t,"aria-modal":!0,onTouchStart:T,onTouchMove:A,onTouchEnd:M,onMouseDown:T,onMouseMove:A,onMouseUp:M,children:[(0,m.jsxs)("div",{ref:y,className:"np-bottom-sheet--top-bar",children:[(0,m.jsx)("div",{className:"np-bottom-sheet--handler"}),(0,m.jsx)(c.P,{size:"sm",className:"sr-only np-bottom-sheet--close-btn",onClick:L})]}),(0,m.jsx)("div",{ref:g,style:function(){let e=(0,u.s$)()?0:window.innerHeight;return{maxHeight:"calc(".concat("".concat(1*e,"px")," - ").concat("64px"," - ").concat("32px",")")}}(),className:"np-bottom-sheet--content",children:n.children})]})})})}},58096:function(e,t,n){"use strict";n.d(t,{GM:function(){return i},UW:function(){return s},s$:function(){return a},wH:function(){return o}});var r=n(70107);function o(){(0,r.O)()&&document.documentElement.classList.add("ios-click")}function i(){(0,r.O)()&&document.documentElement.classList.remove("ios-click")}function a(){return!1}function s(e){e.stopPropagation(),e.preventDefault(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation()}},6440:function(e,t,n){"use strict";n.d(t,{Z:function(){return eL}});var r,o,i,a,s,f=n(53048),c=n(70079),u=n(99581);function l(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function p(e){var t=l(e).Element;return e instanceof t||e instanceof Element}function d(e){var t=l(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function m(e){if("undefined"==typeof ShadowRoot)return!1;var t=l(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var h=Math.max,v=Math.min,y=Math.round;function g(){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 b(){return!/^((?!chrome|android).)*safari/i.test(g())}function x(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&d(e)&&(o=e.offsetWidth>0&&y(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&y(r.height)/e.offsetHeight||1);var a=(p(e)?l(e):window).visualViewport,s=!b()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,m=r.height/i;return{width:u,height:m,top:c,right:f+u,bottom:c+m,left:f,x:f,y:c}}function w(e){var t=l(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function O(e){return e?(e.nodeName||"").toLowerCase():null}function E(e){return((p(e)?e.ownerDocument:e.document)||window.document).documentElement}function j(e){return x(E(e)).left+w(e).scrollLeft}function L(e){return l(e).getComputedStyle(e)}function T(e){var t=L(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function A(e){var t=x(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 M(e){return"html"===O(e)?e:e.assignedSlot||e.parentNode||(m(e)?e.host:null)||E(e)}function P(e,t){void 0===t&&(t=[]);var n,r=function e(t){return["html","body","#document"].indexOf(O(t))>=0?t.ownerDocument.body:d(t)&&T(t)?t:e(M(t))}(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=l(r),a=o?[i].concat(i.visualViewport||[],T(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(P(M(a)))}function k(e){return d(e)&&"fixed"!==L(e).position?e.offsetParent:null}function D(e){for(var t=l(e),n=k(e);n&&["table","td","th"].indexOf(O(n))>=0&&"static"===L(n).position;)n=k(n);return n&&("html"===O(n)||"body"===O(n)&&"static"===L(n).position)?t:n||function(e){var t=/firefox/i.test(g());if(/Trident/i.test(g())&&d(e)&&"fixed"===L(e).position)return null;var n=M(e);for(m(n)&&(n=n.host);d(n)&&0>["html","body"].indexOf(O(n));){var r=L(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)||t}var S="bottom",R="right",B="left",W="auto",C=["top",S,R,B],H="start",N="viewport",_="popper",F=C.reduce(function(e,t){return e.concat([t+"-"+H,t+"-end"])},[]),U=[].concat(C,[W]).reduce(function(e,t){return e.concat([t,t+"-"+H,t+"-end"])},[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"],q={placement:"bottom",modifiers:[],strategy:"absolute"};function I(){for(var e=arguments.length,t=Array(e),n=0;n=0?"x":"y"}function Y(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Z(o):null,a=o?G(o):null,s=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2;switch(i){case"top":t={x:s,y:n.y-r.height};break;case S:t={x:s,y:n.y+n.height};break;case R:t={x:n.x+n.width,y:f};break;case B:t={x:n.x-r.width,y:f};break;default:t={x:n.x,y:n.y}}var c=i?$(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case H:t[c]=t[c]-(n[u]/2-r[u]/2);break;case"end":t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n,r,o,i,a,s,f=e.popper,c=e.popperRect,u=e.placement,p=e.variation,d=e.offsets,m=e.position,h=e.gpuAcceleration,v=e.adaptive,g=e.roundOffsets,b=e.isFixed,x=d.x,w=void 0===x?0:x,O=d.y,j=void 0===O?0:O,T="function"==typeof g?g({x:w,y:j}):{x:w,y:j};w=T.x,j=T.y;var A=d.hasOwnProperty("x"),M=d.hasOwnProperty("y"),P=B,k="top",W=window;if(v){var C=D(f),H="clientHeight",N="clientWidth";C===l(f)&&"static"!==L(C=E(f)).position&&"absolute"===m&&(H="scrollHeight",N="scrollWidth"),("top"===u||(u===B||u===R)&&"end"===p)&&(k=S,j-=(b&&C===W&&W.visualViewport?W.visualViewport.height:C[H])-c.height,j*=h?1:-1),(u===B||("top"===u||u===S)&&"end"===p)&&(P=R,w-=(b&&C===W&&W.visualViewport?W.visualViewport.width:C[N])-c.width,w*=h?1:-1)}var _=Object.assign({position:m},v&&X),F=!0===g?(t={x:w,y:j},n=l(f),r=t.x,o=t.y,{x:y(r*(i=n.devicePixelRatio||1))/i||0,y:y(o*i)/i||0}):{x:w,y:j};return(w=F.x,j=F.y,h)?Object.assign({},_,((s={})[k]=M?"0":"",s[P]=A?"0":"",s.transform=1>=(W.devicePixelRatio||1)?"translate("+w+"px, "+j+"px)":"translate3d("+w+"px, "+j+"px, 0)",s)):Object.assign({},_,((a={})[k]=M?j+"px":"",a[P]=A?w+"px":"",a.transform="",a))}var K={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,function(e){return K[e]})}var ee={start:"end",end:"start"};function et(e){return e.replace(/start|end/g,function(e){return ee[e]})}function en(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&m(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function er(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function eo(e,t,n){var r,o,i,a,s,f,c,u,d,m;return t===N?er(function(e,t){var n=l(e),r=E(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=b();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+j(e),y:f}}(e,n)):p(t)?((r=x(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):er((o=E(e),a=E(o),s=w(o),f=null==(i=o.ownerDocument)?void 0:i.body,c=h(a.scrollWidth,a.clientWidth,f?f.scrollWidth:0,f?f.clientWidth:0),u=h(a.scrollHeight,a.clientHeight,f?f.scrollHeight:0,f?f.clientHeight:0),d=-s.scrollLeft+j(o),m=-s.scrollTop,"rtl"===L(f||a).direction&&(d+=h(a.clientWidth,f?f.clientWidth:0)-c),{width:c,height:u,x:d,y:m}))}function ei(){return{top:0,right:0,bottom:0,left:0}}function ea(e){return Object.assign({},ei(),e)}function es(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}function ef(e,t){void 0===t&&(t={});var n,r,o,i,a,s,f,c,u=t,l=u.placement,m=void 0===l?e.placement:l,y=u.strategy,g=void 0===y?e.strategy:y,b=u.boundary,w=u.rootBoundary,j=u.elementContext,T=void 0===j?_:j,A=u.altBoundary,k=u.padding,B=void 0===k?0:k,W=ea("number"!=typeof B?B:es(B,C)),H=e.rects.popper,F=e.elements[void 0!==A&&A?T===_?"reference":_:T],U=(n=p(F)?F:F.contextElement||E(e.elements.popper),r=void 0===b?"clippingParents":b,o=void 0===w?N:w,f=(s=[].concat("clippingParents"===r?(i=P(M(n)),p(a=["absolute","fixed"].indexOf(L(n).position)>=0&&d(n)?D(n):n)?i.filter(function(e){return p(e)&&en(e,a)&&"body"!==O(e)}):[]):[].concat(r),[o]))[0],(c=s.reduce(function(e,t){var r=eo(n,t,g);return e.top=h(r.top,e.top),e.right=v(r.right,e.right),e.bottom=v(r.bottom,e.bottom),e.left=h(r.left,e.left),e},eo(n,f,g))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),V=x(e.elements.reference),q=Y({reference:V,element:H,strategy:"absolute",placement:m}),I=er(Object.assign({},H,q)),z=T===_?I:V,Z={top:U.top-z.top+W.top,bottom:z.bottom-U.bottom+W.bottom,left:U.left-z.left+W.left,right:z.right-U.right+W.right},G=e.modifiersData.offset;if(T===_&&G){var $=G[m];Object.keys(Z).forEach(function(e){var t=[R,S].indexOf(e)>=0?1:-1,n=["top",S].indexOf(e)>=0?"y":"x";Z[e]+=$[n]*t})}return Z}function ec(e,t,n){return h(e,v(t,n))}function eu(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 el(e){return["top",R,S,B].some(function(t){return e[t]>=0})}var ep=(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,s=void 0===a||a,f=l(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,z)}),s&&f.addEventListener("resize",n.update,z),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,z)}),s&&f.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]=Y({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,s={placement:Z(t.placement),variation:G(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,J(Object.assign({},s,{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,J(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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]||{},r=t.attributes[e]||{},o=t.elements[e];d(o)&&O(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.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 r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});d(r)&&O(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]},{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=U.reduce(function(e,n){var r,o,a,s,f,c;return e[n]=(r=t.rects,a=[B,"top"].indexOf(o=Z(n))>=0?-1:1,f=(s="function"==typeof i?i(Object.assign({},r,{placement:n})):i)[0],c=s[1],f=f||0,c=(c||0)*a,[B,R].indexOf(o)>=0?{x:c,y:f}:{x:f,y:c}),e},{}),s=a[t.placement],f=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=c),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,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,l=n.rootBoundary,p=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,y=Z(v)===v,g=f||(y||!m?[Q(v)]:function(e){if(Z(e)===W)return[];var t=Q(e);return[et(e),t,et(t)]}(v)),b=[v].concat(g).reduce(function(e,n){var r,o,i,a,s,f,p,d,v,y,g,b;return e.concat(Z(n)===W?(o=(r={placement:n,boundary:u,rootBoundary:l,padding:c,flipVariations:m,allowedAutoPlacements:h}).placement,i=r.boundary,a=r.rootBoundary,s=r.padding,f=r.flipVariations,d=void 0===(p=r.allowedAutoPlacements)?U:p,0===(g=(y=(v=G(o))?f?F:F.filter(function(e){return G(e)===v}):C).filter(function(e){return d.indexOf(e)>=0})).length&&(g=y),Object.keys(b=g.reduce(function(e,n){return e[n]=ef(t,{placement:n,boundary:i,rootBoundary:a,padding:s})[Z(n)],e},{})).sort(function(e,t){return b[e]-b[t]})):n)},[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,j=b[0],L=0;L=0,k=P?"width":"height",D=ef(t,{placement:T,boundary:u,rootBoundary:l,altBoundary:p,padding:c}),N=P?M?R:B:M?S:"top";x[k]>w[k]&&(N=Q(N));var _=Q(N),V=[];if(i&&V.push(D[A]<=0),s&&V.push(D[N]<=0,D[_]<=0),V.every(function(e){return e})){j=T,E=!1;break}O.set(T,V)}if(E)for(var q=m?3:1,I=function(e){var t=b.find(function(t){var n=O.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return j=t,"break"},z=q;z>0&&"break"!==I(z);z--);t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,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,s=n.rootBoundary,f=n.altBoundary,c=n.padding,u=n.tether,l=void 0===u||u,p=n.tetherOffset,d=void 0===p?0:p,m=ef(t,{boundary:a,rootBoundary:s,padding:c,altBoundary:f}),y=Z(t.placement),g=G(t.placement),b=!g,x=$(y),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,L="function"==typeof d?d(Object.assign({},t.rects,{placement:t.placement})):d,T="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(O){if(void 0===o||o){var k,W="y"===x?"top":B,C="y"===x?S:R,N="y"===x?"height":"width",_=O[x],F=_+m[W],U=_-m[C],V=l?-j[N]/2:0,q=g===H?E[N]:j[N],I=g===H?-j[N]:-E[N],z=t.elements.arrow,Y=l&&z?A(z):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ei(),J=X[W],K=X[C],Q=ec(0,E[N],Y[N]),ee=b?E[N]/2-V-Q-J-T.mainAxis:q-Q-J-T.mainAxis,et=b?-E[N]/2+V+Q+K+T.mainAxis:I+Q+K+T.mainAxis,en=t.elements.arrow&&D(t.elements.arrow),er=en?"y"===x?en.clientTop||0:en.clientLeft||0:0,eo=null!=(k=null==M?void 0:M[x])?k:0,ea=ec(l?v(F,_+ee-eo-er):F,_,l?h(U,_+et-eo):U);O[x]=ea,P[x]=ea-_}if(void 0!==i&&i){var es,eu,el="x"===x?"top":B,ep="x"===x?S:R,ed=O[w],em="y"===w?"height":"width",eh=ed+m[el],ev=ed-m[ep],ey=-1!==["top",B].indexOf(y),eg=null!=(eu=null==M?void 0:M[w])?eu:0,eb=ey?eh:ed-E[em]-j[em]-eg+T.altAxis,ex=ey?ed+E[em]+j[em]-eg-T.altAxis:ev,ew=l&&ey?(es=ec(eb,ed,ex))>ex?ex:es:ec(l?eb:eh,ed,l?ex:ev);O[w]=ew,P[w]=ew-ed}t.modifiersData[r]=P}},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,s=r.modifiersData.popperOffsets,f=Z(r.placement),c=$(f),u=[B,R].indexOf(f)>=0?"height":"width";if(a&&s){var l=ea("number"!=typeof(t="function"==typeof(t=i.padding)?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:es(t,C)),p=A(a),d="y"===c?"top":B,m="y"===c?S:R,h=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],v=s[c]-r.rects.reference[c],y=D(a),g=y?"y"===c?y.clientHeight||0:y.clientWidth||0:0,b=l[d],x=g-p[u]-l[m],w=g/2-p[u]/2+(h/2-v/2),O=ec(b,w,x);r.modifiersData[o]=((n={})[c]=O,n.centerOffset=O-w,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)))&&en(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=ef(t,{elementContext:"reference"}),s=ef(t,{altBoundary:!0}),f=eu(a,r),c=eu(s,o,i),u=el(f),l=el(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}}]}).defaultModifiers)?[]:o,s=void 0===(a=r.defaultOptions)?q:a,function(e,t,n){void 0===n&&(n=s);var r,o,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},q,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},f=[],c=!1,u={state:a,setOptions:function(n){var r,o,c,l,d,h="function"==typeof n?n(a.options):n;m(),a.options=Object.assign({},s,a.options,h),a.scrollParents={reference:p(e)?P(e):e.contextElement?P(e.contextElement):[],popper:P(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,l=new Set,d=[],o.forEach(function(e){c.set(e.name,e)}),o.forEach(function(e){l.has(e.name)||function e(t){l.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!l.has(t)){var n=c.get(t);n&&e(n)}}),d.push(t)}(e)}),V.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:u,options:void 0===n?{}:n});f.push(o||function(){})}}),u.update()},forceUpdate:function(){if(!c){var e,t,n,r,o,i,s,f,p,m,h,v,g=a.elements,b=g.reference,L=g.popper;if(I(b,L)){a.rects={reference:(t=D(L),n="fixed"===a.options.strategy,r=d(t),f=d(t)&&(i=y((o=t.getBoundingClientRect()).width)/t.offsetWidth||1,s=y(o.height)/t.offsetHeight||1,1!==i||1!==s),p=E(t),m=x(b,f,n),h={scrollLeft:0,scrollTop:0},v={x:0,y:0},(r||!r&&!n)&&(("body"!==O(t)||T(p))&&(h=(e=t)!==l(e)&&d(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:w(e)),d(t)?(v=x(t,!0),v.x+=t.clientLeft,v.y+=t.clientTop):p&&(v.x=j(p))),{x:m.left+h.scrollLeft-v.x,y:m.top+h.scrollTop-v.y,width:m.width,height:m.height}),popper:A(L)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var M=0;M{s&&O&&O()},[s]);let E={...d?{width:null===(n=p.current)||void 0===n?void 0:n.clientWidth}:void 0},j=(0,c.useContext)(ex.S);return(0,ew.jsx)(eb.ZP,{open:s,transparent:!0,fadeContentOnEnter:!0,fadeContentOnExit:!0,onClose:u,children:(0,ew.jsx)("div",{id:j,...m,ref:g,role:"dialog",style:{...x.popper},...w.popper,className:(0,f.W)("np-panel",{"np-panel--open":s},m.className),children:(0,ew.jsxs)("div",{ref:t,style:E,className:(0,f.W)("np-panel__content"),children:[a,r&&(0,ew.jsx)("div",{ref:v,className:(0,f.W)("np-panel__arrow"),style:x.arrow})]})})})})}}]); //# sourceMappingURL=6090-19ae1e422c31ad03.js.map