"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8212],{37830:function(e,t){/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n=Symbol.for("react.element"),r=(Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.memo"),Symbol.for("react.lazy"),{isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}}),o=Object.assign,u={};function l(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||r}function a(){}function i(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||r}l.prototype.isReactComponent={},l.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},l.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},a.prototype=l.prototype;var c=i.prototype=new a;c.constructor=i,o(c,l.prototype),c.isPureReactComponent=!0;var s=Object.prototype.hasOwnProperty,d={key:!0,ref:!0,__self:!0,__source:!0};t.createElement=function(e,t,r){var o,u={},l=null,a=null;if(null!=t)for(o in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(l=""+t.key),t)s.call(t,o)&&!d.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=r;else if(1<i){for(var c=Array(i),f=0;f<i;f++)c[f]=arguments[f+2];u.children=c}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:n,type:e,key:l,ref:a,props:u,_owner:null}}},4410:function(e,t,n){e.exports=n(37830)},8819:function(e,t,n){let r,o,u;n.d(t,{Vq:function(){return X},EM:function(){return W},$N:function(){return Q}});var l=n(2265),a=n(7551),i=n(20635),c=n(83746),s=n(6584),d=n(64524),f=n(61463),p=n(58371),m=n(39110),v=n(62707),h=n(4707),g=n(74515),E=n(33856),y=n(41469),w=n(66216),b=n(53509),T=n(37593),F=n(5583),k=n(3600),C=n(83184),S=n(99299),L=n(26400),P=n(15537),O=n(45959),D=n(22270),M=n(89080),R=n(47359),N=n(19309),x=n(28043);function H(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var _=((r=_||{})[r.None=0]="None",r[r.InitialFocus=1]="InitialFocus",r[r.TabLock=2]="TabLock",r[r.FocusLock=4]="FocusLock",r[r.RestoreFocus=8]="RestoreFocus",r[r.AutoFocus=16]="AutoFocus",r);let A=Object.assign((0,k.yV)(function(e,t){let n=(0,l.useRef)(null),r=(0,y.T)(n,t),{initialFocus:o,initialFocusFallback:u,containers:a,features:d=15,...f}=e;(0,E.H)()||(d=0);let p=(0,v.i)(n);!function(e,t){let{ownerDocument:n}=t,r=!!(8&e),o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,l.useRef)(R.m.slice());return(0,D.q)((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,x.Y)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=R.m.slice())},[e,R.m,t]),(0,s.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(r);(0,D.q)(()=>{r||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,N.C5)(o())},[r]),(0,P.L)(()=>{r&&(0,N.C5)(o())})}(d,{ownerDocument:p});let m=function(e,t){let{ownerDocument:n,container:r,initialFocus:o,initialFocusFallback:u}=t,a=(0,l.useRef)(null),i=(0,c.g)(!!(1&e),"focus-trap#initial-focus"),s=(0,L.t)();return(0,D.q)(()=>{if(0===e)return;if(!i){null!=u&&u.current&&(0,N.C5)(u.current);return}let t=r.current;t&&(0,x.Y)(()=>{if(!s.current)return;let r=null==n?void 0:n.activeElement;if(null!=o&&o.current){if((null==o?void 0:o.current)===r){a.current=r;return}}else if(t.contains(r)){a.current=r;return}if(null!=o&&o.current)(0,N.C5)(o.current);else{if(16&e){if((0,N.jA)(t,N.TO.First|N.TO.AutoFocus)!==N.fE.Error)return}else if((0,N.jA)(t,N.TO.First)!==N.fE.Error)return;if(null!=u&&u.current&&((0,N.C5)(u.current),(null==n?void 0:n.activeElement)===u.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=null==n?void 0:n.activeElement})},[u,i,e]),a}(d,{ownerDocument:p,container:n,initialFocus:o,initialFocusFallback:u});!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:u}=t,l=(0,L.t)(),a=!!(4&e);(0,i.O)(null==n?void 0:n.defaultView,"focus",e=>{if(!a||!l.current)return;let t=H(o);r.current instanceof HTMLElement&&t.add(r.current);let n=u.current;if(!n)return;let i=e.target;i&&i instanceof HTMLElement?I(t,i)?(u.current=i,(0,N.C5)(i)):(e.preventDefault(),e.stopPropagation(),(0,N.C5)(n)):(0,N.C5)(u.current)},!0)}(d,{ownerDocument:p,container:n,containers:a,previousActiveElement:m});let h=(0,O.l)(),g=(0,s.z)(e=>{let t=n.current;t&&(0,F.E)(h.current,{[O.N.Forwards]:()=>{(0,N.jA)(t,N.TO.First,{skipElements:[e.relatedTarget,u]})},[O.N.Backwards]:()=>{(0,N.jA)(t,N.TO.Last,{skipElements:[e.relatedTarget,u]})}})}),w=(0,c.g)(!!(2&d),"focus-trap#tab-lock"),b=(0,S.G)(),T=(0,l.useRef)(!1),C=(0,k.L6)();return l.createElement(l.Fragment,null,w&&l.createElement(M._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:M.x.Focusable}),C({ourProps:{ref:r,onKeyDown(e){"Tab"==e.key&&(T.current=!0,b.requestAnimationFrame(()=>{T.current=!1}))},onBlur(e){if(!(4&d))return;let t=H(a);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(I(t,r)||(T.current?(0,N.jA)(n.current,(0,F.E)(h.current,{[O.N.Forwards]:()=>N.TO.Next,[O.N.Backwards]:()=>N.TO.Previous})|N.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,N.C5)(e.target)))}},theirProps:f,defaultTag:"div",name:"FocusTrap"}),w&&l.createElement(M._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:g,features:M.x.Focusable}))}),{features:_});function I(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var q=n(22934),V=n(27070),j=((o=j||{})[o.Open=0]="Open",o[o.Closed=1]="Closed",o),z=((u=z||{})[u.SetTitleId=0]="SetTitleId",u);let B={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Y=(0,l.createContext)(null);function Z(e){let t=(0,l.useContext)(Y);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,Z),t}return t}function J(e,t){return(0,F.E)(t.type,B,e,t)}Y.displayName="DialogContext";let U=(0,k.yV)(function(e,t){let n=(0,l.useId)(),{id:r="headlessui-dialog-".concat(n),open:o,onClose:u,initialFocus:F,role:S="dialog",autoFocus:L=!0,__demoMode:P=!1,unmount:O=!1,...D}=e,M=(0,l.useRef)(!1);S="dialog"===S||"alertdialog"===S?S:(M.current||(M.current=!0,console.warn("Invalid role [".concat(S,"] passed to <Dialog />. Only `dialog` and and `alertdialog` are supported. Using `dialog` instead."))),"dialog");let R=(0,b.oJ)();void 0===o&&null!==R&&(o=(R&b.ZM.Open)===b.ZM.Open);let N=(0,l.useRef)(null),x=(0,y.T)(N,t),H=(0,v.i)(N),I=o?0:1,[V,j]=(0,l.useReducer)(J,{titleId:null,descriptionId:null,panelRef:(0,l.createRef)()}),z=(0,s.z)(()=>u(!1)),B=(0,s.z)(e=>j({type:0,id:e})),Z=!!(0,E.H)()&&0===I,[U,K]=(0,q.kF)(),W=(0,h.H1)(),{resolveContainers:Q}=(0,h.vs)({mainTreeNode:W,portals:U,defaultContainers:[{get current(){var X;return null!=(X=V.panelRef.current)?X:N.current}}]}),ee=null!==R&&(R&b.ZM.Closing)===b.ZM.Closing;(0,d.s)(!P&&!ee&&Z,{allowed:(0,s.z)(()=>{var e,t;return[null!=(t=null==(e=N.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:(0,s.z)(()=>{var e;return[null!=(e=null==W?void 0:W.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),(0,m.O)(Z,Q,e=>{e.preventDefault(),z()}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"undefined"!=typeof document?document.defaultView:null,n=arguments.length>2?arguments[2]:void 0,r=(0,c.g)(e,"escape");(0,i.O)(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===a.R.Escape&&n(e))})}(Z,null==H?void 0:H.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),z()}),(0,g.P)(!P&&!ee&&Z,H,Q),(0,p.m)(Z,N,z);let[et,en]=(0,C.fw)(),er=(0,l.useMemo)(()=>[{dialogState:I,close:z,setTitleId:B,unmount:O},V],[I,V,z,B,O]),eo=(0,l.useMemo)(()=>({open:0===I}),[I]),eu={ref:x,id:r,role:S,tabIndex:-1,"aria-modal":P?void 0:0===I||void 0,"aria-labelledby":V.titleId,"aria-describedby":et,unmount:O},el=!function(){var e;let[t]=(0,l.useState)(()=>"undefined"!=typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,l.useState)(null!=(e=null==t?void 0:t.matches)&&e);return(0,f.e)(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),ea=_.None;Z&&!P&&(ea|=_.RestoreFocus,ea|=_.TabLock,L&&(ea|=_.AutoFocus),el&&(ea|=_.InitialFocus));let ei=(0,k.L6)();return l.createElement(b.uu,null,l.createElement(T.O,{force:!0},l.createElement(q.h_,null,l.createElement(Y.Provider,{value:er},l.createElement(q.wA,{target:N},l.createElement(T.O,{force:!1},l.createElement(en,{slot:eo},l.createElement(K,null,l.createElement(A,{initialFocus:F,initialFocusFallback:N,containers:Q,features:ea},l.createElement(w.Z,{value:z},ei({ourProps:eu,theirProps:D,slot:eo,defaultTag:$,features:G,visible:0===I,name:"Dialog"})))))))))))}),$="div",G=k.VN.RenderStrategy|k.VN.Static,K=(0,k.yV)(function(e,t){let{transition:n=!1,open:r,...o}=e,u=(0,b.oJ)(),a=e.hasOwnProperty("open")||null!==u,i=e.hasOwnProperty("onClose");if(!a&&!i)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!i)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!u&&"boolean"!=typeof e.open)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(e.open));if("function"!=typeof e.onClose)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(e.onClose));return(void 0!==r||n)&&!o.static?l.createElement(h.Jl,null,l.createElement(V.u,{show:r,transition:n,unmount:o.unmount},l.createElement(U,{ref:t,...o}))):l.createElement(h.Jl,null,l.createElement(U,{ref:t,open:r,...o}))}),W=(0,k.yV)(function(e,t){let n=(0,l.useId)(),{id:r="headlessui-dialog-panel-".concat(n),transition:o=!1,...u}=e,[{dialogState:a,unmount:i},c]=Z("Dialog.Panel"),d=(0,y.T)(t,c.panelRef),f=(0,l.useMemo)(()=>({open:0===a}),[a]),p=(0,s.z)(e=>{e.stopPropagation()}),m=o?V.x:l.Fragment,v=(0,k.L6)();return l.createElement(m,{...o?{unmount:i}:{}},v({ourProps:{ref:d,id:r,onClick:p},theirProps:u,slot:f,defaultTag:"div",name:"Dialog.Panel"}))}),Q=((0,k.yV)(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:u}]=Z("Dialog.Backdrop"),a=(0,l.useMemo)(()=>({open:0===o}),[o]),i=n?V.x:l.Fragment,c=(0,k.L6)();return l.createElement(i,{...n?{unmount:u}:{}},c({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:a,defaultTag:"div",name:"Dialog.Backdrop"}))}),(0,k.yV)(function(e,t){let n=(0,l.useId)(),{id:r="headlessui-dialog-title-".concat(n),...o}=e,[{dialogState:u,setTitleId:a}]=Z("Dialog.Title"),i=(0,y.T)(t);(0,l.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let c=(0,l.useMemo)(()=>({open:0===u}),[u]);return(0,k.L6)()({ourProps:{ref:i,id:r},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),X=Object.assign(K,{Panel:W,Title:Q,Description:C.dk})},20635:function(e,t,n){n.d(t,{O:function(){return u}});var r=n(2265),o=n(88703);function u(e,t,n,u){let l=(0,o.E)(n);(0,r.useEffect)(()=>{function n(e){l.current(e)}return(e=null!=e?e:window).addEventListener(t,n,u),()=>e.removeEventListener(t,n,u)},[e,t,u])}},4707:function(e,t,n){n.d(t,{H1:function(){return d},Jl:function(){return s},vs:function(){return i}});var r=n(2265),o=n(89080),u=n(91498),l=n(6584),a=n(62707);function i(){let{defaultContainers:e=[],portals:t,mainTreeNode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,a.i)(n),o=(0,l.z)(()=>{var o,u;let l=[];for(let t of e)null!==t&&(t instanceof HTMLElement?l.push(t):"current"in t&&t.current instanceof HTMLElement&&l.push(t.current));if(null!=t&&t.current)for(let e of t.current)l.push(e);for(let e of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(u=null==n?void 0:n.getRootNode())?void 0:u.host))||l.some(t=>e.contains(t))||l.push(e));return l});return{resolveContainers:o,contains:(0,l.z)(e=>o().some(t=>t.contains(e)))}}let c=(0,r.createContext)(null);function s(e){let{children:t,node:n}=e,[l,a]=(0,r.useState)(null),i=d(null!=n?n:l);return r.createElement(c.Provider,{value:i},t,null===i&&r.createElement(o._,{features:o.x.Hidden,ref:e=>{var t,n;if(e){for(let r of null!=(n=null==(t=(0,u.r)(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(r!==document.body&&r!==document.head&&r instanceof HTMLElement&&null!=r&&r.contains(e)){a(r);break}}}}))}function d(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null!=(e=(0,r.useContext)(c))?e:t}},45959:function(e,t,n){let r;n.d(t,{N:function(){return l},l:function(){return a}});var o=n(2265),u=n(85149),l=((r=l||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function a(){let e=(0,o.useRef)(0);return(0,u.s)(!0,"keydown",t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)},!0),e}},22270:function(e,t,n){n.d(t,{q:function(){return u}});var r=n(2265),o=n(6584);function u(e,t){let n=(0,r.useRef)([]),u=(0,o.z)(e);(0,r.useEffect)(()=>{let e=[...n.current];for(let[r,o]of t.entries())if(n.current[r]!==o){let r=u(t,e);return n.current=t,r}},[u,...t])}},66216:function(e,t,n){n.d(t,{Z:function(){return u}});var r=n(2265);let o=(0,r.createContext)(()=>{});function u(e){let{value:t,children:n}=e;return r.createElement(o.Provider,{value:t},n)}},89080:function(e,t,n){let r;n.d(t,{_:function(){return l},x:function(){return u}});var o=n(3600),u=((r=u||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let l=(0,o.yV)(function(e,t){var n;let{features:r=1,...u}=e,l={ref:t,"aria-hidden":(2&r)==2||(null!=(n=u["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,o.L6)()({ourProps:l,theirProps:u,slot:{},defaultTag:"span",name:"Hidden"})})},47359:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(19309);let o=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||o[0]===e.target)return;let t=e.target;t=t.closest(r.y),o.unshift(null!=t?t:e.target),(o=o.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})}}]);