"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{6648:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(5601),o=n.n(r)},5601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getImageProps:function(){return l}});let r=n(9920),o=n(497),u=n(8173),i=r._(n(1241));function l(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let a=u.Image},3184:function(e,t,n){n.d(t,{dk:function(){return f},fw:function(){return d},zH:function(){return s}});var r=n(2265),o=n(6584),u=n(1463),i=n(1469),l=n(3040),a=n(3600);let c=(0,r.createContext)(null);function s(){var e,t;return null!=(t=null==(e=(0,r.useContext)(c))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),u=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(c.Provider,{value:u},e.children)},[t])]}c.displayName="DescriptionContext";let f=Object.assign((0,a.yV)(function(e,t){let n=(0,r.useId)(),o=(0,l.B)(),{id:s="headlessui-description-".concat(n),...d}=e,f=function e(){let t=(0,r.useContext)(c);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),v=(0,i.T)(t);(0,u.e)(()=>f.register(s),[s,f.register]);let m=o||!1,p=(0,r.useMemo)(()=>({...f.slot,disabled:m}),[f.slot,m]),h={ref:v,...f.props,id:s};return(0,a.sY)({ourProps:h,theirProps:d,slot:p,defaultTag:"p",name:f.name||"Description"})}),{})},7551:function(e,t,n){let r;n.d(t,{R:function(){return o}});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},2934:function(e,t,n){n.d(t,{h_:function(){return A},kF:function(){return w},wA:function(){return b}});var r=n(2265),o=n(4887),u=n(6584),i=n(1463),l=n(5537),a=n(6832),c=n(3856),s=n(1469),d=n(7593),f=n(4462),v=n(3600);let m=r.Fragment,p=(0,v.yV)(function(e,t){let n=(0,r.useRef)(null),u=(0,s.T)((0,s.h)(e=>{n.current=e}),t),p=(0,a.i)(n),h=function(e){let t=(0,d.n)(),n=(0,r.useContext)(g),o=(0,a.i)(e),[u,i]=(0,r.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(f.O.isServer)return null;let r=null==o?void 0:o.getElementById("headlessui-portal-root");if(r)return r;if(null===o)return null;let u=o.createElement("div");return u.setAttribute("id","headlessui-portal-root"),o.body.appendChild(u)});return(0,r.useEffect)(()=>{null!==u&&(null!=o&&o.body.contains(u)||null==o||o.body.appendChild(u))},[u,o]),(0,r.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),u}(n),[w]=(0,r.useState)(()=>{var e;return f.O.isServer?null:null!=(e=null==p?void 0:p.createElement("div"))?e:null}),y=(0,r.useContext)(E),b=(0,c.H)();return(0,i.e)(()=>{!h||!w||h.contains(w)||(w.setAttribute("data-headlessui-portal",""),h.appendChild(w))},[h,w]),(0,i.e)(()=>{if(w&&y)return y.register(w)},[y,w]),(0,l.L)(()=>{var e;h&&w&&(w instanceof Node&&h.contains(w)&&h.removeChild(w),h.childNodes.length<=0&&(null==(e=h.parentElement)||e.removeChild(h)))}),b&&h&&w?(0,o.createPortal)((0,v.sY)({ourProps:{ref:u},theirProps:e,slot:{},defaultTag:m,name:"Portal"}),w):null}),h=r.Fragment,g=(0,r.createContext)(null),E=(0,r.createContext)(null);function w(){let e=(0,r.useContext)(E),t=(0,r.useRef)([]),n=(0,u.z)(n=>(t.current.push(n),e&&e.register(n),()=>o(n))),o=(0,u.z)(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),i=(0,r.useMemo)(()=>({register:n,unregister:o,portals:t}),[n,o,t]);return[t,(0,r.useMemo)(()=>function(e){let{children:t}=e;return r.createElement(E.Provider,{value:i},t)},[i])]}let y=(0,v.yV)(function(e,t){let n=(0,s.T)(t),{enabled:o=!0,...u}=e;return o?r.createElement(p,{...u,ref:n}):(0,v.sY)({ourProps:{ref:n},theirProps:u,slot:{},defaultTag:m,name:"Portal"})}),b=(0,v.yV)(function(e,t){let{target:n,...o}=e,u={ref:(0,s.T)(t)};return r.createElement(g.Provider,{value:n},(0,v.sY)({ourProps:u,theirProps:o,defaultTag:h,name:"Popover.Group"}))}),A=Object.assign(y,{Group:b})},635:function(e,t,n){n.d(t,{O:function(){return u}});var r=n(2265),o=n(8703);function u(e,t,n,u){let i=(0,o.E)(n);(0,r.useEffect)(()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,u),()=>e.removeEventListener(t,n,u)},[e,t,u])}},4524:function(e,t,n){n.d(t,{s:function(){return s}});var r=n(777),o=n(1498),u=n(3746),i=n(1463);let l=new Map,a=new Map;function c(e){var t;let n=null!=(t=a.get(e))?t:0;return a.set(e,n+1),0!==n||(l.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=a.get(e))?t:1;if(1===n?a.delete(e):a.set(e,n-1),1!==n)return;let r=l.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,l.delete(e))})(e)}function s(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,u.g)(e,"inert-others");(0,i.e)(()=>{var e,u;if(!l)return;let i=(0,r.k)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(c(t));let a=null!=(u=null==t?void 0:t())?u:[];for(let e of a){if(!e)continue;let t=(0,o.r)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)a.some(t=>e.contains(t))||i.add(c(e));n=n.parentElement}}return i.dispose},[l,t,n])}},3746:function(e,t,n){n.d(t,{g:function(){return c}});var r=n(2265);class o extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}var u=n(8528),i=n(1463),l=n(9258);let a=new o(()=>(0,u.M)(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}}));function c(e,t){let n=a.get(t),o=(0,r.useId)(),u=(0,l.o)(n);if((0,i.e)(()=>{if(e)return n.dispatch("ADD",o),()=>n.dispatch("REMOVE",o)},[n,e]),!e)return!1;let c=u.indexOf(o),s=u.length;return -1===c&&(c=s,s+=1),c===s-1}},8371:function(e,t,n){n.d(t,{m:function(){return i}});var r=n(2265),o=n(777),u=n(8703);function i(e,t,n){let i=(0,u.E)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let r=(0,o.k)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>i.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>i.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,i,e])}},5537:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(2265),o=n(8043),u=n(6584);function i(e){let t=(0,u.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},9110:function(e,t,n){n.d(t,{O:function(){return s}});var r=n(2265),o=n(9309),u=n(1555),i=n(8703);function l(e,t,n,o){let u=(0,i.E)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,o),()=>document.removeEventListener(t,n,o);function n(e){u.current(e)}},[e,t,o])}var a=n(3746),c=n(5149);function s(e,t,n){let s=(0,a.g)(e,"outside-click"),d=(0,i.E)(n),f=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,o.sP)(r,o.tJ.Loose)||-1===r.tabIndex||e.preventDefault(),d.current(e,r)}},[d,t]),v=(0,r.useRef)(null);l(s,"pointerdown",e=>{var t,n;v.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),l(s,"mousedown",e=>{var t,n;v.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),l(s,"click",e=>{(0,u.tq)()||v.current&&(f(e,()=>v.current),v.current=null)},!0);let m=(0,r.useRef)({x:0,y:0});l(s,"touchstart",e=>{m.current.x=e.touches[0].clientX,m.current.y=e.touches[0].clientY},!0),l(s,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-m.current.x)>=30||Math.abs(t.y-m.current.y)>=30))return f(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),(0,c.s)(s,"blur",e=>f(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},6832:function(e,t,n){n.d(t,{i:function(){return u}});var r=n(2265),o=n(1498);function u(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...t),[...t])}},4515:function(e,t,n){n.d(t,{P:function(){return s}});var r=n(9258),o=n(1463),u=n(777),i=n(8528),l=n(1555);let a=(0,i.M)(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,u.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,i={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},a=[(0,l.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,u.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),u=t.querySelector(r);u&&!o(u)&&(i=u)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(e.target instanceof HTMLElement){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(e.target instanceof HTMLElement&&"INPUT"!==e.target.tagName){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,u=Math.max(0,o.clientWidth-o.offsetWidth),i=Math.max(0,t-u);r.style(o,"paddingRight","".concat(i,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];a.forEach(e=>{let{before:t}=e;return null==t?void 0:t(i)}),a.forEach(e=>{let{after:t}=e;return null==t?void 0:t(i)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}});a.subscribe(()=>{let e=a.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&a.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&a.dispatch("TEARDOWN",n)}});var c=n(3746);function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),u=(0,r.o)(a),i=t?u.get(t):void 0;i&&i.count,(0,o.e)(()=>{if(!(!t||!e))return a.dispatch("PUSH",t,n),()=>a.dispatch("POP",t,n)},[e,t])}((0,c.g)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},3856:function(e,t,n){n.d(t,{H:function(){return i}});var r,o=n(2265),u=n(4462);function i(){let e;let t=(e="undefined"==typeof document,(0,(r||(r=n.t(o,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[i,l]=o.useState(u.O.isHandoffComplete);return i&&!1===u.O.isHandoffComplete&&l(!1),o.useEffect(()=>{!0!==i&&l(!0)},[i]),o.useEffect(()=>u.O.handoff(),[]),!t&&i}},9258:function(e,t,n){n.d(t,{o:function(){return o}});var r=n(2265);function o(e){return(0,r.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}},1469:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return i}});var r=n(2265),o=n(6584);let u=Symbol();function i(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[u]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let i=(0,r.useRef)(t);(0,r.useEffect)(()=>{i.current=t},[t]);let l=(0,o.z)(e=>{for(let t of i.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[u]))?void 0:l}},9072:function(e,t,n){let r;n.d(t,{X:function(){return d},Y:function(){return f}});var o,u=n(2265),i=n(777),l=n(9299),a=n(1463),c=n(357);void 0!==c&&"undefined"!=typeof globalThis&&(null==(o=null==c?void 0:c.env)?void 0:o.NODE_ENV)==="test"&&void 0===Element.prototype.getAnimations&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var s=((r=s||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function d(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function f(e,t,n,r){let[o,c]=(0,u.useState)(n),{hasFlag:s,addFlag:d,removeFlag:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,u.useState)(e),r=(0,u.useCallback)(e=>n(e),[t]),o=(0,u.useCallback)(e=>n(t=>t|e),[t]),i=(0,u.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:(0,u.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,u.useCallback)(e=>n(t=>t^e),[n])}}(e&&o?3:0),v=(0,u.useRef)(!1),m=(0,u.useRef)(!1),p=(0,l.G)();return(0,a.e)(()=>{var o;if(e){if(n&&c(!0),!t){n&&d(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,t){let{prepare:n,run:r,done:o,inFlight:u}=t,l=(0,i.k)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:n,inFlight:u}),l.nextFrame(()=>{r(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,r;let o=(0,i.k)();if(!e)return o.dispose;let u=!1;o.add(()=>{u=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{u||t()}),o.dispose}(e,o))})}),l.dispose}(t,{inFlight:v,prepare(){m.current?m.current=!1:m.current=v.current,v.current=!0,m.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){m.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e;m.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(v.current=!1,f(7),n||c(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,p]),e?[o,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},2270: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])}},5149:function(e,t,n){n.d(t,{s:function(){return u}});var r=n(2265),o=n(8703);function u(e,t,n,u){let i=(0,o.E)(n);(0,r.useEffect)(()=>{if(e)return window.addEventListener(t,n,u),()=>window.removeEventListener(t,n,u);function n(e){i.current(e)}},[e,t,u])}},9080:function(e,t,n){let r;n.d(t,{_:function(){return i},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 i=(0,o.yV)(function(e,t){var n;let{features:r=1,...u}=e,i={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.sY)({ourProps:i,theirProps:u,slot:{},defaultTag:"span",name:"Hidden"})})},3509:function(e,t,n){let r;n.d(t,{ZM:function(){return i},oJ:function(){return l},up:function(){return a},uu:function(){return c}});var o=n(2265);let u=(0,o.createContext)(null);u.displayName="OpenClosedContext";var i=((r=i||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function l(){return(0,o.useContext)(u)}function a(e){let{value:t,children:n}=e;return o.createElement(u.Provider,{value:t},n)}function c(e){let{children:t}=e;return o.createElement(u.Provider,{value:null},t)}},7593:function(e,t,n){n.d(t,{O:function(){return i},n:function(){return u}});var r=n(2265);let o=(0,r.createContext)(!1);function u(){return(0,r.useContext)(o)}function i(e){return r.createElement(o.Provider,{value:e.force},e.children)}},7359:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(9309);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})})},9309:function(e,t,n){let r,o,u,i,l;n.d(t,{C5:function(){return E},TO:function(){return f},fE:function(){return v},jA:function(){return y},sP:function(){return h},tJ:function(){return p},y:function(){return s},z2:function(){return w}});var a=n(5583),c=n(1498);let s=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),d=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var f=((r=f||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r[r.AutoFocus=64]="AutoFocus",r),v=((o=v||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),m=((u=m||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u),p=((i=p||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function h(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,c.r)(e))?void 0:t.body)&&(0,a.E)(n,{0:()=>e.matches(s),1(){let t=e;for(;null!==t;){if(t.matches(s))return!0;t=t.parentElement}return!1}})}var g=((l=g||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function E(e){null==e||e.focus({preventScroll:!0})}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let u=r.compareDocumentPosition(o);return u&Node.DOCUMENT_POSITION_FOLLOWING?-1:u&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function y(e,t){var n,r,o;let{sorted:u=!0,relativeTo:i=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?u?w(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(d)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(s)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);l.length>0&&c.length>1&&(c=c.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),i=null!=i?i:a.activeElement;let f=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),v=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(i))-1;if(4&t)return Math.max(0,c.indexOf(i))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),m=32&t?{preventScroll:!0}:{},p=0,h=c.length,g;do{if(p>=h||p+h<=0)return 0;let e=v+p;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(g=c[e])||g.focus(m),p+=f}while(g!==a.activeElement);return 6&t&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},1555:function(e,t,n){function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:function(){return r},tq:function(){return o}})},8528:function(e,t,n){n.d(t,{M:function(){return r}});function r(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e){for(var o=arguments.length,u=Array(o>1?o-1:0),i=1;i<o;i++)u[i-1]=arguments[i];let l=t[e].call(n,...u);l&&(n=l,r.forEach(e=>e()))}}}}}]);