1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[661],{1631:(e,t,n)=>{function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){var r,o,l;r=e,o=t,l=n[t],(o=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(o))in r?Object.defineProperty(r,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[o]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){return"span"===e._type&&"text"in e&&"string"==typeof e.text&&(typeof e.marks>"u"||Array.isArray(e.marks)&&e.marks.every(e=>"string"==typeof e))}function i(e){return"string"==typeof e._type&&"@"!==e._type[0]&&(!("markDefs"in e)||!e.markDefs||Array.isArray(e.markDefs)&&e.markDefs.every(e=>"string"==typeof e._key))&&"children"in e&&Array.isArray(e.children)&&e.children.every(e=>"object"==typeof e&&"_type"in e)}function a(e){return i(e)&&"listItem"in e&&"string"==typeof e.listItem&&(typeof e.level>"u"||"number"==typeof e.level)}function u(e){return"@list"===e._type}function c(e){return"@span"===e._type}function s(e){return"@text"===e._type}n.d(t,{RK:()=>O});let d=["strong","em","code","underline","strike-through"];function f(e,t,n){if(!l(e)||!e.marks||!e.marks.length)return[];let r=e.marks.slice(),o={};return r.forEach(e=>{o[e]=1;for(let r=t+1;r<n.length;r++){let t=n[r];if(t&&l(t)&&Array.isArray(t.marks)&&-1!==t.marks.indexOf(e))o[e]++;else break}}),r.sort((e,t)=>(function(e,t,n){let r=e[t],o=e[n];if(r!==o)return o-r;let l=d.indexOf(t),i=d.indexOf(n);return l!==i?l-i:t.localeCompare(n)})(o,e,t))}function p(e,t,n){return{_type:"@list",_key:`${e._key||`${t}`}-parent`,mode:n,level:e.level||1,listItem:e.listItem,children:[e]}}function m(e,t){let n=t.level||1,r=t.listItem||"normal",o="string"==typeof t.listItem;if(u(e)&&(e.level||1)===n&&o&&(e.listItem||"normal")===r)return e;if(!("children"in e))return;let i=e.children[e.children.length-1];return i&&!l(i)?m(i,t):void 0}var h=n(7876),y=n(4232);function g(e,t,n){let r=t[n],o=e[n];return"function"==typeof r||r&&"function"==typeof o?r:r?{...o,...r}:o}let v={textDecoration:"underline"},k=(e,t)=>"[@portabletext/react] Unknown ".concat(e,", specify a component for it in the `components.").concat(t,"` prop"),b=e=>k('block type "'.concat(e,'"'),"types");function w(e){console.warn(e)}let E={display:"none"},x={types:{},block:{normal:e=>{let{children:t}=e;return(0,h.jsx)("p",{children:t})},blockquote:e=>{let{children:t}=e;return(0,h.jsx)("blockquote",{children:t})},h1:e=>{let{children:t}=e;return(0,h.jsx)("h1",{children:t})},h2:e=>{let{children:t}=e;return(0,h.jsx)("h2",{children:t})},h3:e=>{let{children:t}=e;return(0,h.jsx)("h3",{children:t})},h4:e=>{let{children:t}=e;return(0,h.jsx)("h4",{children:t})},h5:e=>{let{children:t}=e;return(0,h.jsx)("h5",{children:t})},h6:e=>{let{children:t}=e;return(0,h.jsx)("h6",{children:t})}},marks:{em:e=>{let{children:t}=e;return(0,h.jsx)("em",{children:t})},strong:e=>{let{children:t}=e;return(0,h.jsx)("strong",{children:t})},code:e=>{let{children:t}=e;return(0,h.jsx)("code",{children:t})},underline:e=>{let{children:t}=e;return(0,h.jsx)("span",{style:v,children:t})},"strike-through":e=>{let{children:t}=e;return(0,h.jsx)("del",{children:t})},link:e=>{let{children:t,value:n}=e;return(0,h.jsx)("a",{href:null==n?void 0:n.href,children:t})}},list:{number:e=>{let{children:t}=e;return(0,h.jsx)("ol",{children:t})},bullet:e=>{let{children:t}=e;return(0,h.jsx)("ul",{children:t})}},listItem:e=>{let{children:t}=e;return(0,h.jsx)("li",{children:t})},hardBreak:()=>(0,h.jsx)("br",{}),unknownType:e=>{let{value:t,isInline:n}=e,r=b(t._type);return n?(0,h.jsx)("span",{style:E,children:r}):(0,h.jsx)("div",{style:E,children:r})},unknownMark:e=>{let{markType:t,children:n}=e;return(0,h.jsx)("span",{className:"unknown__pt__mark__".concat(t),children:n})},unknownList:e=>{let{children:t}=e;return(0,h.jsx)("ul",{children:t})},unknownListItem:e=>{let{children:t}=e;return(0,h.jsx)("li",{children:t})},unknownBlockStyle:e=>{let{children:t}=e;return(0,h.jsx)("p",{children:t})}};function O(e){let{value:t,components:n,listNestingMode:r,onMissingComponent:l=w}=e,i=l||j,u=function(e,t){let n,r=[];for(let u=0;u<e.length;u++){let c=e[u];if(c){var l,i;if(!a(c)){r.push(c),n=void 0;continue}if(!n){n=p(c,u,t),r.push(n);continue}if(l=c,i=n,(l.level||1)===i.level&&l.listItem===i.listItem){n.children.push(c);continue}if((c.level||1)>n.level){let e=p(c,u,t);if("html"===t){let t=n.children[n.children.length-1],r=o(o({},t),{},{children:[...t.children,e]});n.children[n.children.length-1]=r}else n.children.push(e);n=e;continue}if((c.level||1)<n.level){let e=r[r.length-1],o=e&&m(e,c);if(o){(n=o).children.push(c);continue}n=p(c,u,t),r.push(n);continue}if(c.listItem!==n.listItem){let e=r[r.length-1],o=e&&m(e,{level:c.level||1});if(o&&o.listItem===c.listItem){(n=o).children.push(c);continue}n=p(c,u,t),r.push(n);continue}console.warn("Unknown state encountered for block",c),r.push(c)}}return r}(Array.isArray(t)?t:[t],r||"html"),c=(0,y.useMemo)(()=>n?function(e,t){let{block:n,list:r,listItem:o,marks:l,types:i,...a}=t;return{...e,block:g(e,t,"block"),list:g(e,t,"list"),listItem:g(e,t,"listItem"),marks:g(e,t,"marks"),types:g(e,t,"types"),...a}}(x,n):x,[n]),s=(0,y.useMemo)(()=>T(c,i),[c,i]),d=u.map((e,t)=>s({node:e,index:t,isInline:!1,renderNode:s}));return(0,h.jsx)(h.Fragment,{children:d})}let T=(e,t)=>
1function n(r){let{node:o,index:l,isInline:d}=r,f=o._key||"node-".concat(l);return u(o)?function(r,o,l){let i=r.children.map((e,t)=>n({node:e._key?e:{...e,_key:"li-".concat(o,"-").concat(t)},index:t,isInline:!1,renderNode:n})),a=e.list,u=("function"==typeof a?a:a[r.listItem])||e.unknownList;if(u===e.unknownList){let e=r.listItem||"bullet";t(k('list style "'.concat(e,'"'),"list"),{nodeType:"listStyle",type:e})}return(0,h.jsx)(u,{value:r,index:o,isInline:!1,renderNode:n,children:i},l)}(o,l,f):a(o)?function(r,o,l){let i=D({node:r,index:o,isInline:!1,renderNode:n}),a=e.listItem,u=("function"==typeof a?a:a[r.listItem])||e.unknownListItem;if(u===e.unknownListItem){let e=r.listItem||"bullet";t(k('list item style "'.concat(e,'"'),"listItem"),{type:e,nodeType:"listItemStyle"})}let c=i.children;if(r.style&&"normal"!==r.style){let{listItem:e,...t}=r;c=n({node:t,index:o,isInline:!1,renderNode:n})}return(0,h.jsx)(u,{value:r,index:o,isInline:!1,renderNode:n,children:c},l)}(o,l,f):c(o)?function(r,o,l){let{markDef:i,markType:a,markKey:u}=r,d=e.marks[a]||e.unknownMark,f=r.children.map((e,t)=>n({node:e,index:t,isInline:!0,renderNode:n}));return d===e.unknownMark&&t(k('mark type "'.concat(a,'"'),"marks"),{nodeType:"mark",type:a}),(0,h.jsx)(d,{text:function e(t){let n="";return t.children.forEach(t=>{s(t)?n+=t.text:c(t)&&(n+=e(t))}),n}(r),value:i,markType:a,markKey:u,renderNode:n,children:f},l)}(o,0,f):i(o)?function(r,o,l,i){let{_key:a,...u}=D({node:r,index:o,isInline:i,renderNode:n}),c=u.node.style||"normal",s=("function"==typeof e.block?e.block:e.block[c])||e.unknownBlockStyle;return s===e.unknownBlockStyle&&t(k('block style "'.concat(c,'"'),"block"),{nodeType:"blockStyle",type:c}),(0,h.jsx)(s,{...u,value:u.node,renderNode:n},l)}(o,l,f,d):s(o)?function(t,n){if("\n"===t.text){let t=e.hardBreak;return t?(0,h.jsx)(t,{},n):"\n"}return t.text}(o,f):function(r,o,l,i){let a=e.types[r._type],u={value:r,isInline:i,index:o,renderNode:n};if(a)return(0,h.jsx)(a,{...u},l);t(b(r._type),{nodeType:"block",type:r._type});let c=e.unknownType;return(0,h.jsx)(c,{...u},l)}(o,l,f,d)};function D(e){let{node:t,index:n,isInline:r,renderNode:o}=e,i=(function(e){var t,n;let{children:r}=e,o=null!=(t=e.markDefs)?t:[];if(!r||!r.length)return[];let i=r.map(f),a={_type:"@span",children:[],markType:"<unknown>"},u=[a];for(let e=0;e<r.length;e++){let t=r[e];if(!t)continue;let a=i[e]||[],c=1;if(u.length>1)for(;c<u.length;c++){let e=(null==(n=u[c])?void 0:n.markKey)||"",t=a.indexOf(e);if(-1===t)break;a.splice(t,1)}let s=(u=u.slice(0,c))[u.length-1];if(s){for(let e of a){let n=null==o?void 0:o.find(t=>t._key===e),r=n?n._type:e,l={_type:"@span",_key:t._key,children:[],markDef:n,markType:r,markKey:e};s.children.push(l),u.push(l),s=l}if(l(t)){let e=t.text.split(` 2`);for(let t=e.length;t-- >1;)e.splice(t,0,` 3`);s.children=s.children.concat(e.map(e=>({_type:"@text",text:e})))}else s.children=s.children.concat(t)}}return a.children})(t).map((e,t)=>o({node:e,isInline:!0,index:t,renderNode:o}));return{_key:t._key||"block-".concat(n),children:i,index:n,isInline:r,node:t}}function j(){}},2869:(e,t,n)=>{n.d(t,{F:()=>l});var r=n(4232),o=n(9266);function l(e,t){let n=(0,r.useRef)([]),l=(0,o._)(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])}},3644:(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,{Fr:()=>o,un:()=>r})},6345:(e,t,n)=>{n.d(t,{V:()=>d,r:()=>s});var r=n(4232),o=n(5463),l=n(367),i=n(2214),a=n(26),u=n(9266);let c=(0,r.createContext)(null);function s(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,u._)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),o=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props}),[n,e.slot,e.name,e.props]);return r.createElement(c.Provider,{value:o},e.children)},[t])]}let d=Object.assign((0,l.FX)(function(e,t){let n=(0,o.B)(),{id:u="headlessui-description-".concat(n),...s}=e,d=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}(),f=(0,a.P)(t);(0,i.s)(()=>d.register(u),[u,d.register]);let p={ref:f,...d.props,id:u};return(0,l.XX)({ourProps:p,theirProps:s,slot:d.slot||{},defaultTag:"p",name:d.name||"Description"})}),{})},7368:(e,t,n)=>{n.d(t,{l:()=>er});var r=n(4232),o=n.t(r,2),l=n(3872),i=n(367),a=n(26),u=n(9075),c=n(6439),s=n(5463),d=n(8820),f=n(5285),p=n(4163),m=n(9266),h=n(1421),y=n(1691),g=n(1217),v=n(6793),k=n(3249),b=n(2869),w=n(5069),E=n(3986);function x(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 O=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.Re
3storeFocus=16]="RestoreFocus",e[e.All=30]="All",e))(O||{});let T=Object.assign((0,i.FX)(function(e,t){let n=(0,r.useRef)(null),o=(0,a.P)(n,t),{initialFocus:u,containers:c,features:s=30,...O}=e;(0,d.g)()||(s=1);let T=(0,g.g)(n);!function(e,t){let{ownerDocument:n}=e,o=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,r.useRef)(D.slice());return(0,b.F)((e,n)=>{let[r]=e,[o]=n;!0===o&&!1===r&&(0,k._)(()=>{t.current.splice(0)}),!1===o&&!0===r&&(t.current=D.slice())},[e,D,t]),(0,m._)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);(0,b.F)(()=>{t||(null==n?void 0:n.activeElement)===(null==n?void 0:n.body)&&(0,p.pW)(o())},[t]),(0,E.X)(()=>{t&&(0,p.pW)(o())})}({ownerDocument:T},!!(16&s));let P=function(e,t){let{ownerDocument:n,container:o,initialFocus:l}=e,i=(0,r.useRef)(null),a=(0,y.a)();return(0,b.F)(()=>{if(!t)return;let e=o.current;e&&(0,k._)(()=>{if(!a.current)return;let t=null==n?void 0:n.activeElement;if(null!=l&&l.current){if((null==l?void 0:l.current)===t){i.current=t;return}}else if(e.contains(t)){i.current=t;return}null!=l&&l.current?(0,p.pW)(l.current):(0,p.CU)(e,p.BD.First)===p.Me.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),i.current=null==n?void 0:n.activeElement})},[t]),i}({ownerDocument:T,container:n,initialFocus:u},!!(2&s));!function(e,t){let{ownerDocument:n,container:r,containers:o,previousActiveElement:l}=e,i=(0,y.a)();(0,v.M)(null==n?void 0:n.defaultView,"focus",e=>{if(!t||!i.current)return;let n=x(o);r.current instanceof HTMLElement&&n.add(r.current);let a=l.current;if(!a)return;let u=e.target;u&&u instanceof HTMLElement?j(n,u)?(l.current=u,(0,p.pW)(u)):(e.preventDefault(),e.stopPropagation(),(0,p.pW)(a)):(0,p.pW)(l.current)},!0)}({ownerDocument:T,container:n,containers:c,previousActiveElement:P},!!(8&s));let _=(0,h.u)(),L=(0,m._)(e=>{let t=n.current;t&&(0,l.Y)(_.current,{[h.O.Forwards]:()=>{(0,p.CU)(t,p.BD.First,{skipElements:[e.relatedTarget]})},[h.O.Backwards]:()=>{(0,p.CU)(t,p.BD.Last,{skipElements:[e.relatedTarget]})}})}),S=(0,w.L)(),I=(0,r.useRef)(!1);return r.createElement(r.Fragment,null,!!(4&s)&&r.createElement(f.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:L,features:f.O.Focusable}),(0,i.XX)({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(I.current=!0,S.requestAnimationFrame(()=>{I.current=!1}))},onBlur(e){let t=x(c);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(j(t,r)||(I.current?(0,p.CU)(n.current,(0,l.Y)(_.current,{[h.O.Forwards]:()=>p.BD.Next,[h.O.Backwards]:()=>p.BD.Previous})|p.BD.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,p.pW)(e.target)))}},theirProps:O,defaultTag:"div",name:"FocusTrap"}),!!(4&s)&&r.createElement(f.j,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:L,features:f.O.Focusable}))}),{features:O}),D=[];function j(e,t){for(let n of e)if(n.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&D[0]!==e.target&&(D.unshift(e.target),(D=D.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})});var P=n(3247),_=n(6924),L=n(6345),S=n(140),I=n(2214);let C=(0,r.createContext)(()=>{});C.displayName="StackContext";var F=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(F||{});function M(e){let{children:t,onUpdate:n,type:o,element:l,enabled:i}=e,a=(0,r.useContext)(C),u=(0,m._)(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];null==n||n(...t),a(...t)});return(0,I.s)(()=>{let e=void 0===i||!0===i;return e&&u(0,o,l),()=>{e&&u(1,o,l)}},[u,o,l,i]),r.createElement(C.Provider,{value:u},t)}var A=n(8611);let R="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:B,useEffect:X,useLayoutEffect:N,useDebugValue:W}=o;void 0!==window.document&&window.document.createElement;let U=o.useSyncExternalStore;var H=n(9314),Y=n(3644);let V=function(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,l=Array(o>1?o-1:0),i=1;i<o;i++)l[i-1]=arguments[i];let a=t[e].call(n,...l);
3a&&(n=a,r.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,H.e)(),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,n,{doc:r,d:o,meta:l}=e,i={doc:r,d:o,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(l)},a=[(0,Y.un)()?{before(){t=window.pageYOffset},after(e){let{doc:n,d:r,meta:o}=e;function l(e){return o.containers.flatMap(e=>e()).some(t=>t.contains(e))}r.microTask(()=>{if("auto"!==window.getComputedStyle(n.documentElement).scrollBehavior){let e=(0,H.e)();e.style(n.documentElement,"scroll-behavior","auto"),r.add(()=>r.microTask(()=>e.dispose()))}r.style(n.body,"marginTop","-".concat(t,"px")),window.scrollTo(0,0);let e=null;r.addEventListener(n,"click",t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:o}=new URL(r.href),i=n.querySelector(o);i&&!l(i)&&(e=i)}catch(e){}},!0),r.addEventListener(n,"touchmove",e=>{e.target instanceof HTMLElement&&!l(e.target)&&e.preventDefault()},{passive:!1}),r.add(()=>{window.scrollTo(0,window.pageYOffset+t),e&&e.isConnected&&(e.scrollIntoView({block:"nearest"}),e=null)})})}}:{},{before(e){var t;let{doc:r}=e,o=r.documentElement;n=(null!=(t=r.defaultView)?t:window).innerWidth-o.clientWidth},after(e){let{doc:t,d:r}=e,o=t.documentElement,l=o.clientWidth-o.offsetWidth,i=n-l;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)}});V.subscribe(()=>{let e=V.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)&&V.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&V.dispatch("TEARDOWN",n)}});let q=new Map,K=new Map;function Z(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,I.s)(()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=K.get(r))?n:0;return K.set(r,o+1),0!==o||(q.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=K.get(r))?e:1;if(1===t?K.delete(r):K.set(r,t-1),1!==t)return;let n=q.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,q.delete(r))}},[e,t])}var G=n(7197),$=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))($||{}),z=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(z||{});let J={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},Q=(0,r.createContext)(null);function ee(e){let t=(0,r.useContext)(Q);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ee),t}return t}function et(e,t){return(0,l.Y)(t.type,J,e,t)}Q.displayName="DialogContext";let en=i.O5.RenderStrategy|i.O5.Static,er=Object.assign((0,i.FX)(function(e,t){var n;let o=(0,s.B)(),{id:c="headlessui-dialog-".concat(o),open:f,onClose:p,initialFocus:h,__demoMode:y=!1,...k}=e,[b,w]=(0,r.useState)(0),E=(0,S.O_)();void 0===f&&null!==E&&(f=(E&S.Uw.Open)===S.Uw.Open);let x=(0,r.useRef)(null),O=(0,a.P)(x,t),D=(0,g.g)(x),j=e.hasOwnProperty("open")||null!==E,C=e.hasOwnProperty("onClose");if(!j&&!C)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!j)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!C)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof f)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(f));if("function"!=typeof p)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(p));let R=+!f,[B,X]=(0,r.useReducer)(et,{titleId:null,descriptionId:null,panelRef:(0,r.createRef)()}),N=(0,m._)(()=>p(!1)),W=(0,m._)(e=>X({type:0,id:e})),H=!!(0,d.g)()&&!y&&0===R,Y=b>1,q=null!==(0,r.useContext)(Q),[K,$]=(0,P.k)(),{resolveContainers:z,mainTreeNodeRef:J,MainTreeNode:ee}=(0,G.i)({portals:K,defaultContainers:[null!=(n=B.panelRef.current)?n:x.current]}),er=null!==E&&(E&S.Uw.Closing)===S.Uw.Closing,eo=!q&&!er&&H;Z((0,r.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(J.current)&&e instanceof HTMLElement))?t:null},[J]),eo);let el=!!Y||H;Z((0,r.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(J.current)&&e instanceof HTMLElement))?t:null},[J]),el);let ei=!(!H||Y);(0,A.j)(z,N,ei);let ea=!(Y||0!==R);(0,v.M)(null==D?void 0:D.defaultView,"keydown",e=>{ea&&(e.defaultPrevented||e.key===u.D.Escape&&(e.preventDefault(),e.stopPropagation(),N()))}),function(e,t){var n;let r,o,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];n=e=>{var t;
3return{containers:[...null!=(t=e.containers)?t:[],l]}},r=U(V.subscribe,V.getSnapshot,V.getSnapshot),(o=e?r.get(e):void 0)&&o.count,(0,I.s)(()=>{if(!(!e||!t))return V.dispatch("PUSH",e,n),()=>V.dispatch("POP",e,n)},[t,e])}(D,!(er||0!==R||q),z),(0,r.useEffect)(()=>{if(0!==R||!x.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&&N()}});return e.observe(x.current),()=>e.disconnect()},[R,x,N]);let[eu,ec]=(0,L.r)(),es=(0,r.useMemo)(()=>[{dialogState:R,close:N,setTitleId:W},B],[R,B,N,W]),ed=(0,r.useMemo)(()=>({open:0===R}),[R]),ef={ref:O,id:c,role:"dialog","aria-modal":0===R||void 0,"aria-labelledby":B.titleId,"aria-describedby":eu};return r.createElement(M,{type:"Dialog",enabled:0===R,element:x,onUpdate:(0,m._)((e,t)=>{"Dialog"===t&&(0,l.Y)(e,{[F.Add]:()=>w(e=>e+1),[F.Remove]:()=>w(e=>e-1)})})},r.createElement(_.a,{force:!0},r.createElement(P.Z,null,r.createElement(Q.Provider,{value:es},r.createElement(P.Z.Group,{target:x},r.createElement(_.a,{force:!1},r.createElement(ec,{slot:ed,name:"Dialog.Description"},r.createElement(T,{initialFocus:h,containers:z,features:H?(0,l.Y)(Y?"parent":"leaf",{parent:T.features.RestoreFocus,leaf:T.features.All&~T.features.FocusLock}):T.features.None},r.createElement($,null,(0,i.XX)({ourProps:ef,theirProps:k,slot:ed,defaultTag:"div",features:en,visible:0===R,name:"Dialog"}))))))))),r.createElement(ee,null))}),{Backdrop:(0,i.FX)(function(e,t){let n=(0,s.B)(),{id:o="headlessui-dialog-backdrop-".concat(n),...l}=e,[{dialogState:u},c]=ee("Dialog.Backdrop"),d=(0,a.P)(t);(0,r.useEffect)(()=>{if(null===c.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[c.panelRef]);let f=(0,r.useMemo)(()=>({open:0===u}),[u]);return r.createElement(_.a,{force:!0},r.createElement(P.Z,null,(0,i.XX)({ourProps:{ref:d,id:o,"aria-hidden":!0},theirProps:l,slot:f,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,i.FX)(function(e,t){let n=(0,s.B)(),{id:o="headlessui-dialog-panel-".concat(n),...l}=e,[{dialogState:u},c]=ee("Dialog.Panel"),d=(0,a.P)(t,c.panelRef),f=(0,r.useMemo)(()=>({open:0===u}),[u]),p=(0,m._)(e=>{e.stopPropagation()});return(0,i.XX)({ourProps:{ref:d,id:o,onClick:p},theirProps:l,slot:f,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,i.FX)(function(e,t){let n=(0,s.B)(),{id:o="headlessui-dialog-overlay-".concat(n),...l}=e,[{dialogState:u,close:d}]=ee("Dialog.Overlay"),f=(0,a.P)(t),p=(0,m._)(e=>{if(e.target===e.currentTarget){if((0,c.l)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),d()}}),h=(0,r.useMemo)(()=>({open:0===u}),[u]);return(0,i.XX)({ourProps:{ref:f,id:o,"aria-hidden":!0,onClick:p},theirProps:l,slot:h,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,i.FX)(function(e,t){let n=(0,s.B)(),{id:o="headlessui-dialog-title-".concat(n),...l}=e,[{dialogState:u,setTitleId:c}]=ee("Dialog.Title"),d=(0,a.P)(t);(0,r.useEffect)(()=>(c(o),()=>c(null)),[o,c]);let f=(0,r.useMemo)(()=>({open:0===u}),[u]);return(0,i.XX)({ourProps:{ref:d,id:o},theirProps:l,slot:f,defaultTag:"h2",name:"Dialog.Title"})}),Description:L.V})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.