(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["6535"],{50308:function(e){e.exports=function(){}},76576:function(e,t,n){"use strict";n.d(t,{d:()=>d,f:()=>c});var r=n(98661),o=n(76396),l=n(16457),u=n(98790),a=n(16653),i=n(4470);let s=(0,r.createContext)(null);function c(){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}))),l=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return r.default.createElement(s.Provider,{value:l},e.children)},[t])]}let d=Object.assign((0,i.yV)(function(e,t){let n=(0,l.M)(),{id:o=`headlessui-description-${n}`,...c}=e,d=function e(){let t=(0,r.useContext)(s);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),f=(0,a.T)(t);(0,u.e)(()=>d.register(o),[o,d.register]);let p={ref:f,...d.props,id:o};return(0,i.sY)({ourProps:p,theirProps:c,slot:d.slot||{},defaultTag:"p",name:d.name||"Description"})}),{})},12048:function(e,t,n){"use strict";let r,o,l,u,a,i,s;n.d(t,{V:()=>eb});var c,d,f=n(98661),p=n(28842),m=n(76396),v=n(43090);function g(e,t,n,r){let o=(0,v.E)(n);(0,f.useEffect)(()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}var h=n(50388),E=n(97482);function w(e){let t=(0,m.z)(e),n=(0,f.useRef)(!1);(0,f.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,E.Y)(()=>{n.current&&t()})}),[t])}var b=n(72146),T=n(301),y=n(16653),L=n(50579),P=((r=P||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r),C=n(75838),S=n(57820),M=n(83575),D=n(43149),R=n(76984),A=n(4470);function O(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 k=((o=k||{})[o.None=1]="None",o[o.InitialFocus=2]="InitialFocus",o[o.TabLock=4]="TabLock",o[o.FocusLock=8]="FocusLock",o[o.RestoreFocus=16]="RestoreFocus",o[o.All=30]="All",o);let F=Object.assign((0,A.yV)(function(e,t){let n,r=(0,f.useRef)(null),o=(0,y.T)(r,t),{initialFocus:l,containers:u,features:a=30,...i}=e;(0,T.H)()||(a=1);let s=(0,b.i)(r);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,f.useRef)(M.m.slice());return(0,C.q)(([e],[n])=>{!0===n&&!1===e&&(0,E.Y)(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=M.m.slice())},[e,M.m,t]),(0,m.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);(0,C.q)(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,D.C5)(n())},[t]),w(()=>{t&&(0,D.C5)(n())})}({ownerDocument:s},!!(16&a));let c=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,f.useRef)(null),l=(0,h.t)();return(0,C.q)(()=>{if(!r)return;let u=t.current;u&&(0,E.Y)(()=>{if(!l.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t){o.current=t;return}}else if(u.contains(t)){o.current=t;return}null!=n&&n.current?(0,D.C5)(n.current):(0,D.jA)(u,D.TO.First)===D.fE.Error&&console.warn("There are no focusable elements inside the "),o.current=null==e?void 0:e.activeElement})},[r]),o}({ownerDocument:s,container:r,initialFocus:l},!!(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let l=(0,h.t)();g(null==e?void 0:e.defaultView,"focus",e=>{if(!o||!l.current)return;let u=O(n);t.current instanceof HTMLElement&&u.add(t.current);let a=r.current;if(!a)return;let i=e.target;i&&i instanceof HTMLElement?H(u,i)?(r.current=i,(0,D.C5)(i)):(e.preventDefault(),e.stopPropagation(),(0,D.C5)(a)):(0,D.C5)(r.current)},!0)}({ownerDocument:s,container:r,containers:u,previousActiveElement:c},!!(8&a));let d=(n=(0,f.useRef)(0),(0,L.s)("keydown",e=>{"Tab"===e.key&&(n.current=+!!e.shiftKey)},!0),n),v=(0,m.z)(e=>{let t=r.current;t&&(0,R.E)(d.current,{[P.Forwards]:()=>{(0,D.jA)(t,D.TO.First,{skipElements:[e.relatedTarget]})},[P.Backwards]:()=>{(0,D.jA)(t,D.TO.Last,{skipElements:[e.relatedTarget]})}})}),k=(0,p.G)(),F=(0,f.useRef)(!1);return f.default.createElement(f.default.Fragment,null,!!(4&a)&&f.default.createElement(S._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:S.A.Focusable}),(0,A.sY)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(F.current=!0,k.requestAnimationFrame(()=>{F.current=!1}))},onBlur(e){let t=O(u);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(H(t,n)||(F.current?(0,D.jA)(r.current,(0,R.E)(d.current,{[P.Forwards]:()=>D.TO.Next,[P.Backwards]:()=>D.TO.Previous})|D.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,D.C5)(e.target)))}},theirProps:i,defaultTag:"div",name:"FocusTrap"}),!!(4&a)&&f.default.createElement(S._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:v,features:S.A.Focusable}))}),{features:k});function H(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var x=n(98790);let N=(0,f.createContext)(!1);function Y(e){return f.default.createElement(N.Provider,{value:e.force},e.children)}var I=n(49581);let V=f.Fragment,z=f.Fragment,B=(0,f.createContext)(null),j=(0,f.createContext)(null),q=Object.assign((0,A.yV)(function(e,t){let n=(0,f.useRef)(null),r=(0,y.T)((0,y.h)(e=>{n.current=e}),t),o=(0,b.i)(n),l=function(e){let t=(0,f.useContext)(N),n=(0,f.useContext)(B),r=(0,b.i)(e),[o,l]=(0,f.useState)(()=>{if(!t&&null!==n||I.O.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)});return(0,f.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,f.useEffect)(()=>{t||null!==n&&l(n.current)},[n,l,t]),o}(n),[u]=(0,f.useState)(()=>{var e;return I.O.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),a=(0,f.useContext)(j),i=(0,T.H)();return(0,x.e)(()=>{!l||!u||l.contains(u)||(u.setAttribute("data-headlessui-portal",""),l.appendChild(u))},[l,u]),(0,x.e)(()=>{if(u&&a)return a.register(u)},[a,u]),w(()=>{var e;l&&u&&(u instanceof Node&&l.contains(u)&&l.removeChild(u),l.childNodes.length<=0&&(null==(e=l.parentElement)||e.removeChild(l)))}),i&&l&&u?(0,f.createPortal)((0,A.sY)({ourProps:{ref:r},theirProps:e,defaultTag:V,name:"Portal"}),u):null}),{Group:(0,A.yV)(function(e,t){let{target:n,...r}=e,o={ref:(0,y.T)(t)};return f.default.createElement(B.Provider,{value:n},(0,A.sY)({ourProps:o,theirProps:r,defaultTag:z,name:"Popover.Group"}))})}),W="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:$,useEffect:U,useLayoutEffect:_,useDebugValue:G}=f;function Z(e){let t=e.getSnapshot,n=e.value;try{let e=t();return!W(n,e)}catch{return!0}}let J="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(e,t,n){let r=t(),[{inst:o},l]=$({inst:{value:r,getSnapshot:t}});return _(()=>{o.value=r,o.getSnapshot=t,Z(o)&&l({inst:o})},[e,r,t]),U(()=>(Z(o)&&l({inst:o}),e(()=>{Z(o)&&l({inst:o})})),[e]),G(r),r},K="useSyncExternalStore"in f?f.useSyncExternalStore:J;var Q=n(98652),X=n(7137);let ee=(c=()=>new Map,d={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,Q.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({doc:e,d:t,meta:n}){let r;let o={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},l=[(0,X.gn)()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=(0,Q.k)();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,l=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),u=e.querySelector(o);u&&!r(u)&&(l=u)}catch{}},!0),t.addEventListener(e,"touchstart",e=>{if(e.target instanceof HTMLElement){if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")}}),t.addEventListener(e,"touchmove",e=>{if(e.target instanceof HTMLElement){if(r(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}),t.add(()=>{var e;o!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,o),l&&l.isConnected&&(l.scrollIntoView({block:"nearest"}),l=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;r=(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth},after({doc:e,d:t}){let n=e.documentElement,o=n.clientWidth-n.offsetWidth,l=r-o;t.style(n,"paddingRight",`${l}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];l.forEach(({before:e})=>null==e?void 0:e(o)),l.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},l=c(),u=new Set,{getSnapshot:()=>l,subscribe:e=>(u.add(e),()=>u.delete(e)),dispatch(e,...t){let n=d[e].call(l,...t);n&&(l=n,u.forEach(e=>e()))}});ee.subscribe(()=>{let e=ee.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)&&ee.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&ee.dispatch("TEARDOWN",n)}});var et=n(16457);let en=new Map,er=new Map;function eo(e,t=!0){(0,x.e)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=er.get(r))?n:0;return er.set(r,o+1),0!==o||(en.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=er.get(r))?e:1;if(1===t?er.delete(r):er.set(r,t-1),1!==t)return;let n=en.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,en.delete(r))}},[e,t])}var el=n(77242),eu=n(27737);let ea=(0,f.createContext)(()=>{});ea.displayName="StackContext";var ei=((a=ei||{})[a.Add=0]="Add",a[a.Remove=1]="Remove",a);function es({children:e,onUpdate:t,type:n,element:r,enabled:o}){let l=(0,f.useContext)(ea),u=(0,m.z)((...e)=>{null==t||t(...e),l(...e)});return(0,x.e)(()=>{let e=void 0===o||!0===o;return e&&u(0,n,r),()=>{e&&u(1,n,r)}},[u,n,r,o]),f.default.createElement(ea.Provider,{value:u},e)}var ec=n(17714),ed=n(76576),ef=n(35521),ep=((i=ep||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),em=((s=em||{})[s.SetTitleId=0]="SetTitleId",s);let ev={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eg=(0,f.createContext)(null);function eh(e){let t=(0,f.useContext)(eg);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eh),t}return t}function eE(e,t){return(0,R.E)(t.type,ev,e,t)}eg.displayName="DialogContext";let ew=A.AN.RenderStrategy|A.AN.Static,eb=Object.assign((0,A.yV)(function(e,t){let n,r,o,l,u,a=(0,et.M)(),{id:i=`headlessui-dialog-${a}`,open:s,onClose:c,initialFocus:d,role:p="dialog",__demoMode:v=!1,...h}=e,[E,w]=(0,f.useState)(0),L=(0,f.useRef)(!1);p="dialog"===p||"alertdialog"===p?p:(L.current||(L.current=!0,console.warn(`Invalid role [${p}] passed to . Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let P=(0,eu.oJ)();void 0===s&&null!==P&&(s=(P&eu.ZM.Open)===eu.ZM.Open);let C=(0,f.useRef)(null),M=(0,y.T)(C,t),D=(0,b.i)(C),O=e.hasOwnProperty("open")||null!==P,k=e.hasOwnProperty("onClose");if(!O&&!k)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!O)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!k)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof s)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);if("function"!=typeof c)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${c}`);let H=+!s,[N,I]=(0,f.useReducer)(eE,{titleId:null,descriptionId:null,panelRef:(0,f.createRef)()}),V=(0,m.z)(()=>c(!1)),z=(0,m.z)(e=>I({type:0,id:e})),B=!!(0,T.H)()&&!v&&0===H,W=E>1,$=null!==(0,f.useContext)(eg),[U,_]=(n=(0,f.useContext)(j),r=(0,f.useRef)([]),o=(0,m.z)(e=>(r.current.push(e),n&&n.register(e),()=>l(e))),l=(0,m.z)(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),u=(0,f.useMemo)(()=>({register:o,unregister:l,portals:r}),[o,l,r]),[r,(0,f.useMemo)(()=>function({children:e}){return f.default.createElement(j.Provider,{value:u},e)},[u])]),{resolveContainers:G,mainTreeNodeRef:Z,MainTreeNode:J}=function({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=(0,f.useRef)(null!=(r=null==n?void 0:n.current)?r:null),l=(0,b.i)(o),u=(0,m.z)(()=>{var n,r,u;let a=[];for(let t of e)null!==t&&(t instanceof HTMLElement?a.push(t):"current"in t&&t.current instanceof HTMLElement&&a.push(t.current));if(null!=t&&t.current)for(let e of t.current)a.push(e);for(let e of null!=(n=null==l?void 0:l.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||e.contains(null==(u=null==(r=o.current)?void 0:r.getRootNode())?void 0:u.host)||a.some(t=>e.contains(t))||a.push(e));return a});return{resolveContainers:u,contains:(0,m.z)(e=>u().some(t=>t.contains(e))),mainTreeNodeRef:o,MainTreeNode:(0,f.useMemo)(()=>function(){return null!=n?null:f.default.createElement(S._,{features:S.A.Hidden,ref:o})},[o,n])}}({portals:U,defaultContainers:[{get current(){var Q;return null!=(Q=N.panelRef.current)?Q:C.current}}]}),X=null!==P&&(P&eu.ZM.Closing)===eu.ZM.Closing,en=!$&&!X&&B;eo((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==D?void 0:D.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(Z.current)&&e instanceof HTMLElement))?t:null},[Z]),en);let er=!!W||B;eo((0,f.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==D?void 0:D.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(Z.current)&&e instanceof HTMLElement))?t:null},[Z]),er);let ea=!(!B||W);(0,el.O)(G,e=>{e.preventDefault(),V()},ea);let ec=!(W||0!==H);g(null==D?void 0:D.defaultView,"keydown",e=>{ec&&(e.defaultPrevented||e.key===ef.R.Escape&&(e.preventDefault(),e.stopPropagation(),V()))}),function(e,t,n=()=>[document.body]){var r;let o,l,u;r=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}},o=K(ee.subscribe,ee.getSnapshot,ee.getSnapshot),(l=e?o.get(e):void 0)&&l.count,(0,x.e)(()=>{if(!(!e||!t))return ee.dispatch("PUSH",e,r),()=>ee.dispatch("POP",e,r)},[t,e])}(D,!(X||0!==H||$),G),(0,f.useEffect)(()=>{if(0!==H||!C.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&V()}});return e.observe(C.current),()=>e.disconnect()},[H,C,V]);let[ep,em]=(0,ed.f)(),ev=(0,f.useMemo)(()=>[{dialogState:H,close:V,setTitleId:z},N],[H,N,V,z]),eh=(0,f.useMemo)(()=>({open:0===H}),[H]),eb={ref:M,id:i,role:p,"aria-modal":0===H||void 0,"aria-labelledby":N.titleId,"aria-describedby":ep};return f.default.createElement(es,{type:"Dialog",enabled:0===H,element:C,onUpdate:(0,m.z)((e,t)=>{"Dialog"===t&&(0,R.E)(e,{[ei.Add]:()=>w(e=>e+1),[ei.Remove]:()=>w(e=>e-1)})})},f.default.createElement(Y,{force:!0},f.default.createElement(q,null,f.default.createElement(eg.Provider,{value:ev},f.default.createElement(q.Group,{target:C},f.default.createElement(Y,{force:!1},f.default.createElement(em,{slot:eh,name:"Dialog.Description"},f.default.createElement(F,{initialFocus:d,containers:G,features:B?(0,R.E)(W?"parent":"leaf",{parent:F.features.RestoreFocus,leaf:F.features.All&~F.features.FocusLock}):F.features.None},f.default.createElement(_,null,(0,A.sY)({ourProps:eb,theirProps:h,slot:eh,defaultTag:"div",features:ew,visible:0===H,name:"Dialog"}))))))))),f.default.createElement(J,null))}),{Backdrop:(0,A.yV)(function(e,t){let n=(0,et.M)(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:l},u]=eh("Dialog.Backdrop"),a=(0,y.T)(t);(0,f.useEffect)(()=>{if(null===u.panelRef.current)throw Error("A component is being used, but a component is missing.")},[u.panelRef]);let i=(0,f.useMemo)(()=>({open:0===l}),[l]);return f.default.createElement(Y,{force:!0},f.default.createElement(q,null,(0,A.sY)({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:i,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,A.yV)(function(e,t){let n=(0,et.M)(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:l},u]=eh("Dialog.Panel"),a=(0,y.T)(t,u.panelRef),i=(0,f.useMemo)(()=>({open:0===l}),[l]),s=(0,m.z)(e=>{e.stopPropagation()});return(0,A.sY)({ourProps:{ref:a,id:r,onClick:s},theirProps:o,slot:i,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,A.yV)(function(e,t){let n=(0,et.M)(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:l,close:u}]=eh("Dialog.Overlay"),a=(0,y.T)(t),i=(0,m.z)(e=>{if(e.target===e.currentTarget){if((0,ec.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),u()}}),s=(0,f.useMemo)(()=>({open:0===l}),[l]);return(0,A.sY)({ourProps:{ref:a,id:r,"aria-hidden":!0,onClick:i},theirProps:o,slot:s,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,A.yV)(function(e,t){let n=(0,et.M)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:l,setTitleId:u}]=eh("Dialog.Title"),a=(0,y.T)(t);(0,f.useEffect)(()=>(u(r),()=>u(null)),[r,u]);let i=(0,f.useMemo)(()=>({open:0===l}),[l]);return(0,A.sY)({ourProps:{ref:a,id:r},theirProps:o,slot:i,defaultTag:"h2",name:"Dialog.Title"})}),Description:ed.d})},35521:function(e,t,n){"use strict";let r;n.d(t,{R:()=>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)},16457:function(e,t,n){"use strict";n.d(t,{M:()=>i});var r,o=n(98661),l=n(49581),u=n(98790),a=n(301);let i=null!=(r=o.default.useId)?r:function(){let e=(0,a.H)(),[t,n]=o.default.useState(e?()=>l.O.nextId():null);return(0,u.e)(()=>{null===t&&n(l.O.nextId())},[t]),null!=t?""+t:void 0}},77242:function(e,t,n){"use strict";n.d(t,{O:()=>s});var r=n(98661),o=n(43149),l=n(7137),u=n(43090);function a(e,t,n){let o=(0,u.E)(t);(0,r.useEffect)(()=>{function t(e){o.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}var i=n(50579);function s(e,t,n=!0){let u=(0,r.useRef)(!1);function c(n,r){if(!u.current||n.defaultPrevented)return;let l=r(n);if(null!==l&&l.getRootNode().contains(l)&&l.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(l)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(l,o.tJ.Loose)||-1===l.tabIndex||n.preventDefault(),t(n,l)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{u.current=n})},[n]);let d=(0,r.useRef)(null);a("pointerdown",e=>{var t,n;u.current&&(d.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("mousedown",e=>{var t,n;u.current&&(d.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),a("click",e=>{(0,l.tq)()||d.current&&(c(e,()=>d.current),d.current=null)},!0),a("touchend",e=>c(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,i.s)("blur",e=>c(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},72146:function(e,t,n){"use strict";n.d(t,{i:()=>l});var r=n(98661),o=n(51797);function l(...e){return(0,r.useMemo)(()=>(0,o.r)(...e),[...e])}},16653:function(e,t,n){"use strict";n.d(t,{T:()=>a,h:()=>u});var r=n(98661),o=n(76396);let l=Symbol();function u(e,t=!0){return Object.assign(e,{[l]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[l]))?void 0:n}},75838:function(e,t,n){"use strict";n.d(t,{q:()=>l});var r=n(98661),o=n(76396);function l(e,t){let n=(0,r.useRef)([]),l=(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=l(t,e);return n.current=t,r}},[l,...t])}},50579:function(e,t,n){"use strict";n.d(t,{s:()=>l});var r=n(98661),o=n(43090);function l(e,t,n){let l=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){l.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},57820:function(e,t,n){"use strict";let r;n.d(t,{A:()=>l,_:()=>u});var o=n(4470),l=((r=l||{})[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,...l}=e,u={ref:t,"aria-hidden":(2&r)==2||(null!=(n=l["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:u,theirProps:l,slot:{},defaultTag:"div",name:"Hidden"})})},83575:function(e,t,n){"use strict";n.d(t,{m:()=>r});let r=[];!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){e.target instanceof HTMLElement&&e.target!==document.body&&r[0]!==e.target&&(r.unshift(e.target),(r=r.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})})},17714:function(e,t,n){"use strict";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:()=>r})},51797:function(e,t,n){"use strict";n.d(t,{r:()=>o});var r=n(49581);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}},7137:function(e,t,n){"use strict";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:()=>r,tq:()=>o})}}]);