"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[738],{7388: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)},6750:function(e,t,n){n.d(t,{x:function(){return l}});var r=n(2265),o=n(293),i=n(945),u=n(8036);function l(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useRef)(null),[n,l]=(0,r.useState)(!1),s=(0,i.G)(),a=(0,u.z)(()=>{t.current=null,l(!1),s.dispose()}),c=(0,u.z)(e=>{if(s.dispose(),null===t.current){t.current=e.currentTarget,l(!0);{let n=(0,o.r)(e.currentTarget);s.addEventListener(n,"pointerup",a,!1),s.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let o,i;l((o=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},r=t.current.getBoundingClientRect(),!(!n||!r||n.rightr.right||n.bottomr.bottom)))}},!1),s.addEventListener(n,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:a,onClick:a}}}},945:function(e,t,n){n.d(t,{G:function(){return i}});var r=n(2265),o=n(5473);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},8036:function(e,t,n){n.d(t,{z:function(){return i}});var r=n(2265),o=n(1948);let i=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},1948:function(e,t,n){n.d(t,{E:function(){return i}});var r=n(2265),o=n(4518);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},4:function(e,t,n){n.d(t,{f:function(){return o}});var r=n(2265);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},3689:function(e,t,n){n.d(t,{T:function(){return l},h:function(){return u}});var r=n(2265),o=n(8036);let i=Symbol();function u(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function l(){for(var e=arguments.length,t=Array(e),n=0;n{u.current=t},[t]);let l=(0,o.z)(e=>{for(let t of u.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:l}},8198:function(e,t,n){let r;n.d(t,{_:function(){return u},x:function(){return i}});var o=n(8533),i=((r=i||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let u=(0,o.yV)(function(e,t){var n;let{features:r=1,...i}=e,u={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["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:u,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})},7634:function(e,t,n){function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:function(){return r}})},5473:function(e,t,n){n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;rcancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;rn.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;rclearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o{i.current&&t[0]()}),n.add(()=>{i.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(6822)},1424:function(e,t,n){n.d(t,{O:function(){return l}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class u{constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let l=new u},7105:function(e,t,n){let r,o,i,u,l;n.d(t,{GO:function(){return m},TO:function(){return f},fE:function(){return p},jA:function(){return b},sP:function(){return g},tJ:function(){return h},z2:function(){return y}});var s=n(4536),a=n(293);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),d=["[data-autofocus]"].map(e=>`${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),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),v=((i=v||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(c)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=((u=h||{})[u.Strict=0]="Strict",u[u.Loose=1]="Loose",u);function g(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,a.r)(e))?void 0:t.body)&&(0,s.E)(n,{0:()=>e.matches(c),1(){let t=e;for(;null!==t;){if(t.matches(c))return!0;t=t.parentElement}return!1}})}var E=((l=E||{})[l.Keyboard=0]="Keyboard",l[l.Mouse=1]="Mouse",l);function y(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 i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b(e,t){var n,r,o;let{sorted:i=!0,relativeTo:u=null,skipElements:l=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?i?y(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):m(e);l.length>0&&a.length>1&&(a=a.filter(e=>!l.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),u=null!=u?u:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(u))-1;if(4&t)return Math.max(0,a.indexOf(u))+1;if(8&t)return a.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},v=0,h=a.length,g;do{if(v>=h||v+h<=0)return 0;let e=f+v;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(g=a[e])||g.focus(p),v+=c}while(g!==s.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))},4536:function(e,t,n){n.d(t,{E:function(){return r}});function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(u,r),u}},6822:function(e,t,n){n.d(t,{Y:function(){return r}});function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}},293:function(e,t,n){n.d(t,{r:function(){return o}});var r=n(1424);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},8533:function(e,t,n){let r,o;n.d(t,{VN:function(){return s},oA:function(){return h},yV:function(){return m},dG:function(){return v},L6:function(){return c}});var i=n(2265);function u(){for(var e=arguments.length,t=Array(e),n=0;n"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var l=n(4536),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),a=((o=a||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c(){let e,t;let n=(e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;onull==e))return e.current=r,t});return(0,i.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:u=!0,name:s,mergeRefs:a}=e;a=null!=a?a:f;let c=p(n,t);if(u)return d(c,r,o,s,a);let v=null!=i?i:0;if(2&v){let{static:e=!1,...t}=c;if(e)return d(t,r,o,s,a)}if(1&v){let{unmount:e=!0,...t}=c;return(0,l.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,a)})}return d(c,r,o,s,a)})({mergeRefs:n,...e}),[n])}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:l=n,children:s,refName:a="ref",...c}=g(e,["unmount","static"]),d=void 0!==e.ref?{[a]:e.ref}:{},f="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let v={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(v["data-headlessui-state"]=n.join(" "),n))v[`data-${e}`]=""}if(l===i.Fragment&&(Object.keys(h(c)).length>0||Object.keys(h(v)).length>0)){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(h(c)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(h(c)).concat(Object.keys(h(v))).map(e=>` - ${e}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` `)].join(` `))}else{let e=f.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r="19"?f.props.ref:f.ref,d.ref)},n?{className:n}:{}))}}return(0,i.createElement)(l,Object.assign({},g(c,["ref"]),l!==i.Fragment&&d,l!==i.Fragment&&v),f)}function f(){for(var e=arguments.length,t=Array(e),n=0;nnull==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function p(){for(var e=arguments.length,t=Array(e),n=0;n{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},2664:function(e,t,n){function r(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function o(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function i(e){let t=null;return()=>(null==t&&(t=e()),t)}n.d(t,{F:function(){return R}});let u=i(function(){return o(/^Mac/i)}),l=i(function(){return o(/^iPhone/i)}),s=i(function(){return o(/^iPad/i)||u()&&navigator.maxTouchPoints>1}),a=i(function(){return l()||s()});i(function(){return u()||a()}),i(function(){return r(/AppleWebKit/i)&&!c()});let c=i(function(){return r(/Chrome/i)}),d=i(function(){return r(/Android/i)});i(function(){return r(/Firefox/i)});let f=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},p=e=>e&&"window"in e&&e.window===e?e:f(e).defaultView||window;var v=n(2265);let m=null,h=new Set,g=new Map,E=!1,y=!1,b={Tab:!0,Escape:!0};function w(e,t){for(let n of h)n(e,t)}function T(e){E=!0,e.metaKey||!u()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(m="keyboard",w("keyboard",e))}function L(e){m="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(E=!0,w("pointer",e))}function F(e){(0===e.mozInputSource&&e.isTrusted||(d()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(E=!0,m="virtual")}function P(e){e.target!==window&&e.target!==document&&(E||y||(m="virtual",w("virtual",e)),E=!1,y=!1)}function A(){E=!1,y=!0}function k(e){if("undefined"==typeof window||g.get(p(e)))return;let t=p(e),n=f(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){E=!0,r.apply(this,arguments)},n.addEventListener("keydown",T,!0),n.addEventListener("keyup",T,!0),n.addEventListener("click",F,!0),t.addEventListener("focus",P,!0),t.addEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",L,!0),n.addEventListener("pointermove",L,!0),n.addEventListener("pointerup",L,!0)):(n.addEventListener("mousedown",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("mouseup",L,!0)),t.addEventListener("beforeunload",()=>{S(e)},{once:!0}),g.set(t,{focus:r})}let S=(e,t)=>{let n=p(e),r=f(e);t&&r.removeEventListener("DOMContentLoaded",t),g.has(n)&&(n.HTMLElement.prototype.focus=g.get(n).focus,r.removeEventListener("keydown",T,!0),r.removeEventListener("keyup",T,!0),r.removeEventListener("click",F,!0),n.removeEventListener("focus",P,!0),n.removeEventListener("blur",A,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",L,!0),r.removeEventListener("pointermove",L,!0),r.removeEventListener("pointerup",L,!0)):(r.removeEventListener("mousedown",L,!0),r.removeEventListener("mousemove",L,!0),r.removeEventListener("mouseup",L,!0)),g.delete(n))};function M(){return"pointer"!==m}"undefined"!=typeof document&&function(e){let t;let n=f(void 0);"loading"!==n.readyState?k(void 0):(t=()=>{k(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>S(e,t)}();let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),x="undefined"!=typeof document?v.useLayoutEffect:()=>{};class O{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function C(e){let t=(0,v.useRef)({isFocused:!1,observer:null});x(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,v.useRef)(null);return x(()=>{t.current=e},[e]),(0,v.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,v.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(new O("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function R(e={}){var t,n,r;let{autoFocus:o=!1,isTextInput:i,within:u}=e,l=(0,v.useRef)({isFocused:!1,isFocusVisible:o||M()}),[s,a]=(0,v.useState)(!1),[c,d]=(0,v.useState)(()=>l.current.isFocused&&l.current.isFocusVisible),m=(0,v.useCallback)(()=>d(l.current.isFocused&&l.current.isFocusVisible),[]),g=(0,v.useCallback)(e=>{l.current.isFocused=e,a(e),m()},[m]);t=e=>{l.current.isFocusVisible=e,m()},n=[],r={isTextInput:i},k(),(0,v.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){var r;let o="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,u="undefined"!=typeof window?p(null==n?void 0:n.target).HTMLElement:HTMLElement,l="undefined"!=typeof window?p(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!N.has(null==n?void 0:null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof u&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof l&&!b[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(M())};return h.add(e),()=>{h.delete(e)}},n);let{focusProps:E}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,v.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),u=C(i),l=(0,v.useCallback)(e=>{let t=f(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),u(e))},[o,n,u]);return{focusProps:{onFocus:!t&&(n||o||r)?l:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:u,onFocusChange:g}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,v.useRef)({isFocusWithin:!1}),u=(0,v.useCallback)(e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))},[n,o,i]),l=C(u),s=(0,v.useCallback)(e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,l(e))},[r,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:u}}}({isDisabled:!u,onFocusWithinChange:g});return{isFocused:s,isFocusVisible:c,focusProps:u?y:E}}},1323:function(e,t,n){n.d(t,{X:function(){return a}});var r=n(2265);let o=!1,i=0;function u(){o=!0,setTimeout(()=>{o=!1},50)}function l(e){"touch"===e.pointerType&&u()}function s(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",l):document.addEventListener("touchend",u),i++,()=>{--i>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",l):document.removeEventListener("touchend",u))}}function a(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:u}=e,[l,a]=(0,r.useState)(!1),c=(0,r.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,r.useEffect)(s,[]);let{hoverProps:d,triggerHoverEnd:f}=(0,r.useMemo)(()=>{let e=(e,r)=>{if(c.pointerType=r,u||"touch"===r||c.isHovered||!e.currentTarget.contains(e.target))return;c.isHovered=!0;let o=e.currentTarget;c.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},r=(e,t)=>{if(c.pointerType="",c.target=null,"touch"===t||!c.isHovered)return;c.isHovered=!1;let r=e.currentTarget;i&&i({type:"hoverend",target:r,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{o&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}):(l.onTouchStart=()=>{c.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{c.ignoreEmulatedMouseEvents||o||e(t,"mouse"),c.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!u&&e.currentTarget.contains(e.target)&&r(e,"mouse")}),{hoverProps:l,triggerHoverEnd:r}},[t,n,i,u,c]);return(0,r.useEffect)(()=>{u&&f({currentTarget:c.target},c.pointerType)},[u]),{hoverProps:d,isHovered:l}}},5095:function(e,t,n){n.d(t,{M:function(){return h}});var r=n(2265),o=n(1534);function i(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var u=n(8345),l=n(4252),s=n(3576);class a extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:e,isPresent:t}){let n=(0,r.useId)(),o=(0,r.useRef)(null),i=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:e,height:r,top:u,left:l}=i.current;if(t||!o.current||!e||!r)return;o.current.dataset.motionPopId=n;let s=document.createElement("style");return document.head.appendChild(s),s.sheet&&s.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; height: ${r}px !important; top: ${u}px !important; left: ${l}px !important; } `),()=>{document.head.removeChild(s)}},[t]),r.createElement(a,{isPresent:t,childRef:o,sizeRef:i},r.cloneElement(e,{ref:o}))}let d=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:i,presenceAffectsLayout:u,mode:a})=>{let d=(0,s.h)(f),p=(0,r.useId)(),v=(0,r.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),u?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{n||d.size||!o||o()},[n]),"popLayout"===a&&(e=r.createElement(c,{isPresent:n},e)),r.createElement(l.O.Provider,{value:v},e)};function f(){return new Map}var p=n(8881),v=n(3223);let m=e=>e.key||"",h=({children:e,custom:t,initial:n=!0,onExitComplete:l,exitBeforeEnter:s,presenceAffectsLayout:a=!0,mode:c="sync"})=>{var f;(0,v.k)(!s,"Replace exitBeforeEnter with mode='wait'");let h=(0,r.useContext)(p.p).forceRender||function(){let e=i(),[t,n]=(0,r.useState)(0),o=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>u.Wi.postRender(o),[o]),t]}()[0],g=i(),E=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),y=E,b=(0,r.useRef)(new Map).current,w=(0,r.useRef)(y),T=(0,r.useRef)(new Map).current,L=(0,r.useRef)(!0);if((0,o.L)(()=>{L.current=!1,function(e,t){e.forEach(e=>{let n=m(e);t.set(n,e)})}(E,T),w.current=y}),f=()=>{L.current=!0,T.clear(),b.clear()},(0,r.useEffect)(()=>()=>f(),[]),L.current)return r.createElement(r.Fragment,null,y.map(e=>r.createElement(d,{key:m(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:a,mode:c},e)));y=[...y];let F=w.current.map(m),P=E.map(m),A=F.length;for(let e=0;e{if(-1!==P.indexOf(n))return;let o=T.get(n);if(!o)return;let i=F.indexOf(n),u=e;u||(u=r.createElement(d,{key:m(o),isPresent:!1,onExitComplete:()=>{b.delete(n);let e=Array.from(T.keys()).filter(e=>!P.includes(e));if(e.forEach(e=>T.delete(e)),w.current=E.filter(t=>{let r=m(t);return r===n||e.includes(r)}),!b.size){if(!1===g.current)return;h(),l&&l()}},custom:t,presenceAffectsLayout:a,mode:c},o),b.set(n,u)),y.splice(i,0,u)}),y=y.map(e=>{let t=e.key;return b.has(t)?e:r.createElement(d,{key:m(e),isPresent:!0,presenceAffectsLayout:a,mode:c},e)}),r.createElement(r.Fragment,null,b.size?y:y.map(e=>(0,r.cloneElement)(e)))}}}]);