1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34294,e=>{"use strict";var t=e.i(67354),n=e.i(88465);function r(e="https://app.cal.com/embed/embed.js"){var t;let n,o;return t=window,n=function(e,t){e.q.push(t)},o=t.document,t.Cal=t.Cal||function(){let r=t.Cal,a=arguments;if(r.loaded||(r.ns={},r.q=r.q||[],o.head.appendChild(o.createElement("script")).src=e,r.loaded=!0),"init"===a[0]){let e=function(){n(e,arguments)},t=a[1];e.q=e.q||[],"string"==typeof t?(r.ns[t]=r.ns[t]||e,n(r.ns[t],a),n(r,["initNamespace",t])):n(r,a);return}n(r,a)},window.Cal}function o(e){let{namespace:t="",embedJsUrl:n}="string"==typeof e?{embedJsUrl:e}:e??{};return new Promise(function e(o){let a=r(n);a("init",t);let i=t?a.ns[t]:a;i?o(i):setTimeout(()=>{e(o)},50)})}r.toString();var a=e.i(83024),i=e.i(54330);let l={layout:"month_view",useSlotsViewOnSmallScreen:"true"};function s(e={}){return{...l,...function(){let e,t=(0,i.readAttributionCookie)(),n={...t?(0,a.getConversionUtms)(t):{},...(e=(0,a.buildSnapshot)({url:window.location.href,referrer:document.referrer,hostname:window.location.hostname}))?(0,a.getSnapshotUtms)(e):{}},r={};for(let[e,t]of Object.entries(n))r[e]=t,r[`metadata[${e}]`]=t;return r}(),...e}}let u=(0,n.forwardRef)(function({namespace:e,calLink:r,config:a,onBookingSuccessful:i,children:u,...c},d){let[f,p]=(0,n.useState)(()=>JSON.stringify(function(e={}){return{...l,...e}}(a))),m=JSON.stringify(a??{});return!function({namespace:e,onBookingSuccessful:t}){let r=(0,n.useRef)(t),a=!!t;(0,n.useEffect)(()=>{r.current=t},[t]),(0,n.useEffect)(()=>{let t,n,i=!0;return(async()=>{let l=await o({namespace:e});!i||(n=l,l("ui",{hideEventTypeDetails:!1,layout:"month_view"}),a&&l("on",{action:"bookingSuccessfulV2",callback:t=e=>r.current?.(e)}))})(),()=>{i=!1;let e=t;e&&n?.("off",{action:"bookingSuccessfulV2",callback:e})}},[e,a]),(0,n.useCallback)(async({calLink:t,config:n})=>{let r=await o({namespace:e});r("ui",{hideEventTypeDetails:!1,layout:"month_view"}),r("modal",{calLink:t,config:s(n)})},[e])}({namespace:e,onBookingSuccessful:i}),(0,n.useEffect)(()=>{p(JSON.stringify(s(JSON.parse(m))))},[m]),(0,t.jsx)("button",{ref:d,type:"button","data-cal-namespace":e,"data-cal-link":r,"data-cal-config":f,...c,children:u})}),c=new Set;e.s(["CalBookingButton",0,function({onBookingSuccessful:e,...n}){return(0,t.jsx)(u,{...n,onBookingSuccessful:t=>{let n=t.detail.data,r=n.uid??`${t.detail.namespace}:${n.eventTypeId??""}:${n.startTime??""}:${n.endTime??""}`;c.has(r)||(c.add(r),window.gtag?.("event","conversion",{send_to:"AW-11435361279/tfIWCNq6gJkcEP-H58wq"})),e?.(t)}})}],34294)},71091,e=>{"use strict";var t=e.i(67354),n=e.i(75402);let r={sm:"h-[28px] px-[16px] pt-[2px]",md:"h-[40px] px-[16px] pt-[4px] pb-[2px]"},o={gray:"border-white/30 bg-landing-gray text-[rgb(68,68,68)] shadow-[0_4px_4px_-2px_rgba(0,0,0,0.05),0_10px_10px_-5px_rgba(0,0,0,0.05),inset_0_-2px_0_0_rgb(152,151,156)]",white:"border-[rgba(160,160,160,0.54)] bg-white text-landing-ink shadow-[0_4px_4px_-2px_rgba(255,255,255,0.05),0_10px_10px_-5px_rgba(255,255,255,0.05),inset_0_-1px_0_0_rgb(137,137,137)]",pink:"border-white/30 bg-landing-pink text-landing-pink-text shadow-[0_4px_4px_-2px_rgba(0,0,0,0.05),0_10px_10px_-5px_rgba(0,0,0,0.05),inset_0_-2px_0_0_rgb(180,69,156)]",dark:"border-white/[0.21] bg-landing-ink text-white shadow-[0_4px_4px_-2px_rgba(0,0,0,0.05),0_10px_10px_-5px_rgba(0,0,0,0.05),inset_0_-1px_0_0_rgb(19,19,19)]",cli:"font-mono-ui inline-flex h-[40px] items-center gap-[10px] rounded-[6px] border-[1.5px] border-dashed border-white/80 bg-[rgba(28,28,28,0.55)] px-[12px] text-[14px] font-medium normal-case leading-none tracking-[0.02em] text-white"},a={sm:"hover:[transform:translate3d(0,-1px,0)] group-hover:[transform:translate3d(0,-1px,0)] active:[transform:translate3d(0,3px,0)]",md:"hover:[transform:translate3d(0,-2px,0)] group-hover:[transform:translate3d(0,-2px,0)] active:[transform:translate3d(0,4px,0)]"},i={gray:{sm:"shadow-[0_3px_0_0_rgb(140,139,146)] hover:shadow-[0_4px_0_0_rgb(140,139,146)] group-hover:shadow-[0_4px_0_0_rgb(140,139,146
1)] active:shadow-[0_0_0_0_rgb(140,139,146)]",md:"shadow-[0_4px_0_0_rgb(140,139,146)] hover:shadow-[0_6px_0_0_rgb(140,139,146)] group-hover:shadow-[0_6px_0_0_rgb(140,139,146)] active:shadow-[0_0_0_0_rgb(140,139,146)]"},white:{sm:"shadow-[0_3px_0_0_rgb(137,137,137)] hover:shadow-[0_4px_0_0_rgb(137,137,137)] group-hover:shadow-[0_4px_0_0_rgb(137,137,137)] active:shadow-[0_0_0_0_rgb(137,137,137)]",md:"shadow-[0_4px_0_0_rgb(137,137,137)] hover:shadow-[0_6px_0_0_rgb(137,137,137)] group-hover:shadow-[0_6px_0_0_rgb(137,137,137)] active:shadow-[0_0_0_0_rgb(137,137,137)]"},pink:{sm:"shadow-[0_3px_0_0_rgb(180,69,156)] hover:shadow-[0_4px_0_0_rgb(180,69,156)] group-hover:shadow-[0_4px_0_0_rgb(180,69,156)] active:shadow-[0_0_0_0_rgb(180,69,156)]",md:"shadow-[0_4px_0_0_rgb(180,69,156)] hover:shadow-[0_6px_0_0_rgb(180,69,156)] group-hover:shadow-[0_6px_0_0_rgb(180,69,156)] active:shadow-[0_0_0_0_rgb(180,69,156)]"},dark:{sm:"shadow-[0_3px_0_0_rgb(19,19,19)] hover:shadow-[0_4px_0_0_rgb(19,19,19)] group-hover:shadow-[0_4px_0_0_rgb(19,19,19)] active:shadow-[0_0_0_0_rgb(19,19,19)]",md:"shadow-[0_4px_0_0_rgb(19,19,19)] hover:shadow-[0_6px_0_0_rgb(19,19,19)] group-hover:shadow-[0_6px_0_0_rgb(19,19,19)] active:shadow-[0_0_0_0_rgb(19,19,19)]"}};function l(e,t="md",s,u){if("cli"===e)return(0,n.cn)(o.cli,"sm"===t&&"h-[36px] border-white/50 text-[12px]",s);let c=!u?.flat;return(0,n.cn)("font-mono-ui inline-flex items-center justify-center gap-[8px] rounded-[6px] border text-[14px] font-bold uppercase leading-none tracking-[0.02em] whitespace-nowrap cursor-pointer transition-transform duration-75 ease-out active:translate-y-px",r[t],o[e],!c&&"gray"===e&&"sm"===t&&"shadow-[0_4px_4px_-2px_rgba(0,0,0,0.05),0_10px_10px_-5px_rgba(0,0,0,0.05),inset_0_-1px_0_0_rgb(152,151,156)]",c&&"[transform:translate3d(0,0,0)] transition-[transform,box-shadow,filter] duration-150 ease-out hover:brightness-110 group-hover:brightness-110 active:duration-75",c&&a[t],c&&i[e][t],s)}e.s(["LandingButton",0,({variant:e,size:n="md",className:r,children:o,as:a="a",flat:i,...s})=>{let u=l(e,n,r,{flat:i});return"span"===a?(0,t.jsx)("span",{className:u,...s,children:o}):"button"===a?(0,t.jsx)("button",{className:u,...s,children:o}):(0,t.jsx)("a",{className:u,...s,children:o})},"landingButtonClassName",0,l])},65838,e=>{"use strict";var t=e.i(67354),n=e.i(97255);e.s(["LogoMark",0,({className:e})=>(0,t.jsx)(n.default,{src:"/hero-new/dosu-icon.svg",alt:"",width:24,height:24,draggable:!1,"aria-hidden":"true",className:e})])},84417,e=>{"use strict";var t=e.i(67354),n=e.i(88465),r=e.i(97255),o=e.i(97156),a=e.i(27183),i=e.i(27791),l=e.i(23968);let s=n.forwardRef(function({title:e,titleId:t,...r},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});var u=e.i(51765),c=e.i(5340),d=e.i(8050),f=e.i(75402),p=e.i(34294);let m=[{path:"",sitemap:{changeFrequency:"weekly",priority:1,lastModified:"latest-post"},llms:{label:"Homepage",description:"Product overview and value proposition",order:1}},{path:"/blog",sitemap:{changeFrequency:"daily",priority:.9,lastModified:"latest-blog"},nav:{label:"BLOG",order:4}},{path:"/customers",sitemap:{changeFrequency:"monthly",priority:.8,lastModified:"latest-case-study"},llms:{label:"Customers",description:"Case studies from CNCF, IBM Research, Dify, and more",order:5},nav:{label:"CASE STUDIES",order:2}},{path:"/webinars",sitemap:{changeFrequency:"weekly",priority:.8,lastModified:"latest-webinar"},llms:{label:"Webinars",description:"Webinar recordings and transcripts from the Dosu team",order:11},footer:[{column:"company",label:"Webinars",order:3}]},{path:"/careers",sitemap:{changeFrequency:"monthly",priority:.8},footer:[{column:"company",label:"Careers",order:2}]},{path:"/oss",sitemap:{changeFrequency:"monthly",priority:.8},llms:{label:"For Open Source",description:"Free tier for public repositories and OSS partner programs",order:6},footer:[{column:"product",label:"For OSS",order:4}]},{path:"/for-individuals",sitemap:{changeFrequency:"monthly",priority:.8},llms:{label:"For Individuals",description:"Free auto-generated docs, specs, and agent memory for solo builders on public repos",order:3},solutionsNav:{label:"Dosu For Individuals",order:2},footer:[{column:"product",label:"For Individuals",order:1}]},{path:"/for-agents",sitemap:{changeFrequency:"monthly",priority:.8},llms:{label:"For Agents",description:"Context layer for coding agents with AGENTS.md, skills, and persistent memory that stay current",order:4},solutionsNav:{label:"Dosu For Agents",order:1},footer:[{column:"product",label:"For Agents",order:2}]},{path:"/for-startups",sitemap:{changeFrequency:"monthly",priority:.8},solutionsNav:{label:"Dosu For Startups",order:3}},{path:"/for-enterprises",sitemap:{changeFrequency:"monthly",priority:.8},solutionsNav:{label:"Dosu For Enterprises",order:4}},{path:"/articles",sitemap:{changeFrequency:"weekly",priority:.5,lastModified:"latest-article"}},{path:"/articles/dosu-vs-mintlify",sitemap:{changeFrequency:"monthly",priority:.7},llms:{label:"Dosu vs Mintlify",description:"How Dosu compares to Mintlify: no migration, internal engineering knowledge, and multi-repo coverage",order:7}},{path:"/articles/dosu-vs-glean",sitemap:{changeFrequency:"monthly",priority:.7}
1,llms:{label:"Dosu vs Glean",description:"How Dosu compares to Glean: vertical engineering knowledge that Dosu generates and maintains, alongside horizontal enterprise search",order:8}},{path:"/articles/dosu-vs-unblocked",sitemap:{changeFrequency:"monthly",priority:.7},llms:{label:"Dosu vs Unblocked",description:"How Dosu compares to Unblocked: durable documents and a maintained knowledge layer rather than answer-only retrieval",order:9}},{path:"/articles/best-tools-for-ai-context",sitemap:{changeFrequency:"monthly",priority:.7},llms:{label:"Best Tools For AI Context",description:"How DeepWiki, Context7, and GitBook compare to Dosu for agent context: multi-source ingestion, compounding knowledge, and lower agent token spend",order:10}},{path:"/about",sitemap:{changeFrequency:"monthly",priority:.7},footer:[{column:"company",label:"About",order:1}]},{path:"/contact",sitemap:{changeFrequency:"monthly",priority:.7},footer:[{column:"company",label:"Contact Us",order:4}]},{path:"/developers",sitemap:{changeFrequency:"monthly",priority:.6},llms:{label:"Developer Resources",description:"Index of developer resources, API docs, MCP server, and CLI",order:12},footer:[{column:"product",label:"Developers",order:6}]},{path:"/developers/api-versioning",sitemap:{changeFrequency:"monthly",priority:.5}},{path:"/pricing",sitemap:{changeFrequency:"weekly",priority:.8},llms:{label:"Pricing",description:"Plans for teams of all sizes, with a free tier for open source",order:2},nav:{label:"PRICING",order:1},footer:[{column:"product",label:"For Teams",order:3},{column:"product",label:"Pricing",order:5}]},{path:"/legal/terms",sitemap:{changeFrequency:"monthly",priority:.5}},{path:"/legal/privacy",sitemap:{changeFrequency:"monthly",priority:.5}}],h=(e,t)=>e.order-t.order;var g=e.i(71091),v=e.i(65838);let b=[...(()=>{let e=m.flatMap(e=>e.nav?[{...e.nav,href:e.path||"/"}]:[]).sort(h).map(({label:e,href:t})=>({name:e,href:t})),t={name:"SOLUTIONS",children:m.flatMap(e=>e.solutionsNav?[{...e.solutionsNav,href:e.path}]:[]).sort(h).map(({label:e,href:t})=>({name:e,href:t}))},n=[];for(let r of e)2===n.length&&n.push(t),n.push(r);return n})(),{name:"DOCS",href:c.DOSU_DOCS_URL,newTab:!0}];e.s(["LandingNav",0,function({theme:e}={}){let[m,h]=(0,n.useState)(!1),x="light"===e;return(0,t.jsxs)("nav",{className:(0,f.cn)("absolute left-0 right-0 top-0 z-50 flex h-[68px] items-center justify-between px-[24px] py-[20px] min-[880px]:px-[64px] xl:px-[132px]",x?"text-landing-ink":"text-white"),children:[(0,t.jsxs)(o.default,{href:"/",className:"flex items-center gap-[11px]",children:[(0,t.jsx)(v.LogoMark,{className:(0,f.cn)("block h-[24px] w-[24px] shrink-0",!x&&"invert")}),(0,t.jsx)(r.default,{src:"/hero-new/dosu-wordmark.svg",alt:"Dosu",width:68,height:23,draggable:!1,className:(0,f.cn)("h-[22.7px] w-[67.8px] shrink-0",x?"brightness-0":"brightness-0 invert")})]}),(0,t.jsxs)("div",{className:"hidden items-center gap-[24px] min-[1200px]:flex",children:[(0,t.jsx)("div",{className:"flex items-center gap-[28px]",children:b.map(e=>e.children?(0,t.jsxs)("div",{className:"group relative flex items-center",children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"menu",className:(0,f.cn)("font-mono-ui inline-flex items-center gap-[5px] whitespace-nowrap text-[13px] font-medium uppercase leading-none tracking-[0.04em] transition-colors hover:text-landing-gold",x?"text-landing-ink/80":"text-white/90"),children:[e.name,(0,t.jsx)(s,{className:"h-[14px] w-[14px] transition-transform duration-150 group-hover:rotate-180","aria-hidden":"true"})]}),(0,t.jsx)("div",{className:"invisible absolute left-0 top-full z-50 pt-3 opacity-0 transition-all duration-150 group-hover:visible group-hover:opacity-100 focus-within:visible focus-within:opacity-100",children:(0,t.jsx)("div",{className:"flex min-w-[220px] flex-col gap-[2px] rounded-[10px] border border-white/10 bg-landing-dark p-2 shadow-xl",children:e.children.map(e=>(0,t.jsx)("a",{href:e.href,className:"font-mono-ui whitespace-nowrap rounded-[6px] px-3 py-2 text-[13px] uppercase leading-none tracking-[0.04em] text-white/90 transition-colors hover:bg-white/10 hover:text-landing-gold",children:e.name},e.name))})})]},e.name):(0,t.jsx)("a",{href:e.href,target:e.newTab?"_blank":void 0,rel:e.newTab?"noreferrer":void 0,className:(0,f.cn)("font-mono-ui whitespace-nowrap text-[13px] font-medium uppercase leading-none tracking-[0.04em] transition-colors hover:text-landing-gold",x?"text-landing-ink/80":"text-white/90"),children:e.name},e.name))}),(0,t.jsx)("span",{className:(0,f.cn)("h-[28px] w-px",x?"bg-landing-ink/15":"bg-white/15")}),(0,t.jsx)("a",{href:c.DISCORD_INVITE_URL,target:"_blank",rel:"noreferrer","aria-label":"Discord",className:(0,f.cn)("flex items-center transition-colors hover:text-[#5865F2]",x?"text-landing-ink/70":"text-white/90"),children:(0,t.jsx)(d.DiscordMono,{className:"h-5 w-5"})}),(0,t.jsx)("span",{className:(0,f.cn)("h-[28px] w-px",x?"bg-landing-ink/15":"bg-white/15")}),(0,t.jsxs)("div",{className:"flex items-center gap-[8px]",children:[(0,t.jsx)(p.CalBookingButton,{namespace:"demo",calLink:"team/dosu/demo",className:"group",children:(0,t.jsx)("span",{className:(0,g.landingButtonClassName)("gray","sm"),children:"BOOK A DEMO"})}),(0,t.jsx)(g.LandingButton,{variant:"white",size:"sm",href:c.APP_URL,children:"GO TO APP"})]})]}),(0,t.jsxs)("button",{type:"button",className:(0,f.cn)("inline-flex items-center justify-center p-2.5 min-[1200px]:hidden",x?"text-landing-ink":"text-white"),onClick:()=>h(!0),children:[(0,t.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,t.jsx)(l.Bars3Icon,{className:"h-8 w-8","aria-hidden":"true"})]}),(0,t.jsx)(i.Transition,{show:m,as:n.Fragment,children:(0,t.jsxs)(a.Dialog,{as:"div",className:"min-[1200px]:hidden",onClose:h,children:[(0,t.jsx)(i.TransitionChild,{as:n.Fragment,enter:"ease-out duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 z-10 bg-black/40"})}),(0,t.jsx)("div",{className:"fixed inset-0 z-[999] overflow-y-auto",children:(0,t.jsx)(i.TransitionChild,{as:n.Fragment,enter:"ease-out duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsxs)(a.DialogPanel,{className:"fixed inset-y-0 right-0 z-10 w-full overflow-y-auto bg-landing-dark px-7 pt-[26px] text-white sm:max-w-sm",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)(o.default,{href:"/",className:"flex items-center gap-[11px]",onClick:()=>
1h(!1),children:[(0,t.jsx)(v.LogoMark,{className:"block h-[24px] w-[24px] shrink-0 invert"}),(0,t.jsx)(r.default,{src:"/hero-new/dosu-wordmark.svg",alt:"Dosu",width:68,height:23,draggable:!1,className:"h-[22.7px] w-[67.8px] shrink-0 brightness-0 invert"})]}),(0,t.jsxs)("button",{type:"button",className:"-m-2.5 p-2.5 text-white",onClick:()=>h(!1),children:[(0,t.jsx)("span",{className:"sr-only",children:"Close menu"}),(0,t.jsx)(u.XMarkIcon,{className:"h-8 w-8","aria-hidden":"true"})]})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col gap-6",children:[b.map(e=>e.children?(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)("span",{className:"font-mono-ui text-[15px] uppercase tracking-[0.04em] text-white/50",children:e.name}),e.children.map(e=>(0,t.jsx)("a",{href:e.href,className:"font-mono-ui pl-4 text-[15px] uppercase tracking-[0.04em] text-white hover:opacity-70",onClick:()=>h(!1),children:e.name},e.name))]},e.name):(0,t.jsx)("a",{href:e.href,target:e.newTab?"_blank":void 0,rel:e.newTab?"noreferrer":void 0,className:"font-mono-ui text-[15px] uppercase tracking-[0.04em] text-white hover:opacity-70",onClick:()=>h(!1),children:e.name},e.name)),(0,t.jsx)("a",{href:c.DISCORD_INVITE_URL,target:"_blank",rel:"noreferrer",className:"font-mono-ui text-[15px] uppercase tracking-[0.04em] text-white hover:opacity-70",onClick:()=>h(!1),children:"DISCORD"}),(0,t.jsxs)("div",{className:"mt-2 flex flex-col gap-3",children:[(0,t.jsx)(p.CalBookingButton,{namespace:"demo",calLink:"team/dosu/demo",className:"group",children:(0,t.jsx)("span",{className:(0,g.landingButtonClassName)("gray","md","w-full"),children:"BOOK A DEMO"})}),(0,t.jsx)(g.LandingButton,{variant:"white",size:"md",href:c.APP_URL,className:"w-full",children:"GO TO APP"})]})]})]})})})]})})]})}],84417)},35087,e=>{"use strict";var t=e.i(88465);let n=` 2 âââââââââââââ ââââââââ 3 ââââ ââ âââ ââââ 4 ââââ ââ âââ âââ 5 ââââ ââ ââ ââ âââ âââ ââââââ âââââââ âââ âââ 6 ââââ ââ ââ ââ âââ ââ âââ âââ ââââ ââ âââ âââ 7 ââââ âââ ââ âââ âââ âââ âââ ââââ âââ âââ 8 ââââ ââ âââ âââ âââ âââ ââââ âââ âââ 9 âââââââââââââ âââ ââââ âââ âââ ââ ââââ âââ âââ 10 ââââââââââââ ââââââââ ââââââ âââââââ ââââââ â 11`;e.s(["PrintDosuLogoInConsole",0,()=>{let e=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{e.current||(console.log(n),e.current=!0)},[]),null}])},27183,27791,23968,51765,8050,e=>{"use strict";let t,n,r,o,a,i,l,s,u,c,d,f,p,m,h,g;var v,b=e.i(88465),x=((t=x||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t),y=Object.defineProperty,w=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?y(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n};let E=new class{constructor(){w(this,"current",this.detect()),w(this,"handoffState","pending"),w(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"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},_=(e,t)=>
11{E.isServer?(0,b.useEffect)(e,t):(0,b.useLayoutEffect)(e,t)};function C(e){let t=(0,b.useRef)(e);return _(()=>{t.current=e},[e]),t}function k(e,t,n,r){let o=C(n);(0,b.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])}class S extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function N(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let a=t[e].call(n,...o);a&&(n=a,r.forEach(e=>e()))}}}function F(e){return(0,b.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}let P=new S(()=>N(()=>[],{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 T(e,t){let n=P.get(t),r=(0,b.useId)(),o=F(n);if(_(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let a=o.indexOf(r),i=o.length;return -1===a&&(a=i,i+=1),a===i-1}let O=function(e){let t=C(e);return b.default.useCallback((...e)=>t.current(...e),[t])};function j(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function L(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add(()=>e.removeEventListener(n,r,o))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return j(()=>{n.current&&e[0]()}),t.add(()=>{n.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(e){let t=L();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function A(e){return E.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let D=new Map,R=new Map;function M(e){var t;let n=null!=(t=R.get(e))?t:0;return R.set(e,n+1),0!==n?()=>I(e):(D.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>I(e))}function I(e){var t;let n=null!=(t=R.get(e))?t:1;if(1===n?R.delete(e):R.set(e,n-1),1!==n)return;let r=D.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,D.delete(e))}function U(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,U),r}let B=["[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(","),H=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var q=((n=q||{})[n.First=1]="First",n[n.Previous=2]="Previous",n[n.Next=4]="Next",n[n.Last=8]="Last",n[n.WrapAround=16]="WrapAround",n[n.NoScroll=32]="NoScroll",n[n.AutoFocus=64]="AutoFocus",n),$=((r=$||{})[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r),W=((o=W||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o),V=((a=V||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a),z=((i=z||{})[i.Keyboard=0]="Keyboard",i[i.Mouse=1]="Mouse",i);function G(e){null==e||e.focus({preventScroll:!0})}function K(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var a,i,l;let s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?n?function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let a=r.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(H)).sort((e,t)=>
11Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(B)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e);o.length>0&&u.length>1&&(u=u.filter(e=>!o.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r: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")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(r))-1;if(4&t)return Math.max(0,u.indexOf(r))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},p=0,m=u.length,h;do{if(p>=m||p+m<=0)return 0;let e=d+p;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(h=u[e])||h.focus(f),p+=c}while(h!==s.activeElement)return 6&t&&null!=(l=null==(i=null==(a=h)?void 0:a.matches)?void 0:i.call(a,"textarea,input"))&&l&&h.select(),2}function Y(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function X(e,t,n,r){let o=C(n);(0,b.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function J(e,t,n,r){let o=C(n);(0,b.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function Z(...e){return(0,b.useMemo)(()=>A(...e),[...e])}function Q(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}"u">typeof window&&"u">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));var ee=((l=ee||{})[l.None=0]="None",l[l.RenderStrategy=1]="RenderStrategy",l[l.Static=2]="Static",l),et=((s=et||{})[s.Unmount=0]="Unmount",s[s.Hidden=1]="Hidden",s);function en({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:l}){l=null!=l?l:eo;let s=ea(t,e);if(a)return er(s,n,r,i,l);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=s;if(e)return er(t,n,r,i,l)}if(1&u){let{unmount:e=!0,...t}=s;return U(+!e,{0:()=>null,1:()=>er({...t,hidden:!0,style:{display:"none"}},n,r,i,l)})}return er(s,n,r,i,l)}function er(e,t={},n,r,o){let{as:a=n,children:i,refName:l="ref",...s}=es(e,["unmount","static"]),u=void 0!==e.ref?{[l]:e.ref}:{},c="function"==typeof i?i(t):i;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let d={};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(d["data-headlessui-state"]=n.join(" "),n))d[`data-${e}`]=""}if(a===b.Fragment&&(Object.keys(el(s)).length>0||Object.keys(el(d)).length>0))if(!(0,b.isValidElement)(c)||Array.isArray(c)&&c.length>1){if(Object.keys(el(s)).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(el(s)).concat(Object.keys(el(d))).map(e=>` - ${e}`).join(` 12`),"","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(` 13`)].join(` 14`))}else{let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Q(t(...e),s.className):Q(t,s.className),r=ea(c.props,el(es(s,["ref"])));for(let e in d)e in r&&delete d[e];return(0,b.cloneElement)(c,Object.assign({},r,d,u,{ref:o(c.ref,u.ref)},n?{className:n}:{}))}return(0,b.createElement)(a,Object.assign({},es(s,["ref"]),a!==b.Fragment&&u,a!==b.Fragment&&d),c)}function eo(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ea(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let o of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...r)}}});return t}function ei(e){var t;return Object.assign((0,b.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function el(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function es(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var eu=((u=eu||{})[u.None=1]="None",u[u.Focusable=2]="Focusable",u[u.Hidden=4]="Hidden",u);let ec=ei(function(e,t){var n;let{features:r=1,...o}=e;return en({ourProps:{ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["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"}}},theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),ed=(0,b.createContext)(null);function ef({children:e,node:t}){let[n,r]=(0,b.useState)(null),o=ep(null!=t?t:n);return b.default.createElement(ed.Provider,{value:o},e,null===o&&b.default.createElement(ec,{features:eu.Hidden,ref:e=>{var t,n;if(e){for(let o of null!=(n=null==(t=A(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&o instanceof HTMLElement&&null!=o&&o.contains(e)){r(o);break}}}}))}function ep(e=null){var t;return null!=(t=(0,b.useContext)(ed))?t:e}let em=N(()=>new Map,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:L(),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,o={doc:e,d:t,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(n)},a=[Y()?{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=L();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,a=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),i=e.querySelector(o);i&&!r(i)&&(a=i)}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&&"INPUT"!==e.target.tagName)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),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{},{before({doc:e}){var t;let n=e.documentElement;
14r=Math.max(0,(null!=(t=e.defaultView)?t:window).innerWidth-n.clientWidth)},after({doc:e,d:t}){let n=e.documentElement,o=Math.max(0,n.clientWidth-n.offsetWidth),a=Math.max(0,r-o);t.style(n,"paddingRight",`${a}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];a.forEach(({before:e})=>null==e?void 0:e(o)),a.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function eh(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in b&&(0,b.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,r]=b.useState(E.isHandoffComplete);return n&&!1===E.isHandoffComplete&&r(!1),b.useEffect(()=>{!0!==n&&r(!0)},[n]),b.useEffect(()=>E.handoff(),[]),!t&&n}em.subscribe(()=>{let e=em.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)&&em.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&em.dispatch("TEARDOWN",n)}});let eg=Symbol();function ev(...e){let t=(0,b.useRef)(e);(0,b.useEffect)(()=>{t.current=e},[e]);let n=O(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[eg]))?void 0:n}let eb=(0,b.createContext)(()=>{});function ex({value:e,children:t}){return b.default.createElement(eb.Provider,{value:e},t)}let ey=(0,b.createContext)(null);ey.displayName="OpenClosedContext";var ew=((c=ew||{})[c.Open=1]="Open",c[c.Closed=2]="Closed",c[c.Closing=4]="Closing",c[c.Opening=8]="Opening",c);function eE(){return(0,b.useContext)(ey)}function e_({value:e,children:t}){return b.default.createElement(ey.Provider,{value:e},t)}function eC({children:e}){return b.default.createElement(ey.Provider,{value:null},e)}let ek=(0,b.createContext)(!1);function eS(e){return b.default.createElement(ek.Provider,{value:e.force},e.children)}let eN=(0,b.createContext)(void 0),eF=(0,b.createContext)(null);eF.displayName="DescriptionContext";let eP=Object.assign(ei(function(e,t){let n=(0,b.useId)(),r=(0,b.useContext)(eN),{id:o=`headlessui-description-${n}`,...a}=e,i=function e(){let t=(0,b.useContext)(eF);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}(),l=ev(t);_(()=>i.register(o),[o,i.register]);let s=r||!1,u=(0,b.useMemo)(()=>({...i.slot,disabled:s}),[i.slot,s]);return en({ourProps:{ref:l,...i.props,id:o},theirProps:a,slot:u,defaultTag:"p",name:i.name||"Description"})}),{});function eT(){let[e]=(0,b.useState)(L);return(0,b.useEffect)(()=>()=>e.dispose(),[e]),e}function eO(){let e=(0,b.useRef)(!1);return _(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function ej(e){let t=O(e),n=(0,b.useRef)(!1);(0,b.useEffect)(()=>(n.current=!1,()=>{n.current=!0,j(()=>{n.current&&t()})}),[t])}var eL=((d=eL||{})[d.Forwards=0]="Forwards",d[d.Backwards=1]="Backwards",d);function eA(e,t){let n=(0,b.useRef)([]),r=O(e);(0,b.useEffect)(()=>{let e=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let o=r(t,e);return n.current=t,o}},[r,...t])}let eD=[];function eR(){"loading"!==document.readyState&&((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||eD[0]===e.target)return;let t=e.target;t=t.closest(B),eD.unshift(null!=t?t:e.target),(eD=eD.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})})(),document.removeEventListener("DOMContentLoaded",eR))}function eM(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}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",eR),eR());var eI=((f=eI||{})[f.None=0]="None",f[f.InitialFocus=1]="InitialFocus",f[f.TabLock=2]="TabLock",f[f.FocusLock=4]="FocusLock",f[f.RestoreFocus=8]="RestoreFocus",f[f.AutoFocus=16]="AutoFocus",f);let eU=Object.assign(ei(function(e,t){let n,r=(0,b.useRef)(null),o=ev(r,t),{initialFocus:a,initialFocusFallback:i,containers:l,features:s=15,...u}=e;eh()||(s=0);let c=Z(r);!function(e,{ownerDocument:t}){let n=!!(8&e),r=function(e=!0){let t=(0,b.useRef)(eD.slice());return eA(([e],[n])=>{!0===n&&!1===e&&j(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=eD.slice())},[e,eD,t]),O(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);eA(()=>{n||(null==t?void 0:t.activeElement)===(null==t?void 0:t.body)&&G(r())},[n]),ej(()=>{n&&G(r())})}(s,{ownerDocument:c});let d=function(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}
14){let a=(0,b.useRef)(null),i=T(!!(1&e),"focus-trap#initial-focus"),l=eO();return eA(()=>{if(0===e)return;if(!i){null!=o&&o.current&&G(o.current);return}let s=n.current;s&&j(()=>{if(!l.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n){a.current=n;return}}else if(s.contains(n)){a.current=n;return}if(null!=r&&r.current)G(r.current);else{if(16&e){if(K(s,q.First|q.AutoFocus)!==$.Error)return}else if(K(s,q.First)!==$.Error)return;if(null!=o&&o.current&&(G(o.current),(null==t?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=null==t?void 0:t.activeElement})},[o,i,e]),a}(s,{ownerDocument:c,container:r,initialFocus:a,initialFocusFallback:i});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let a=eO(),i=!!(4&e);k(null==t?void 0:t.defaultView,"focus",e=>{if(!i||!a.current)return;let t=eM(r);n.current instanceof HTMLElement&&t.add(n.current);let l=o.current;if(!l)return;let s=e.target;s&&s instanceof HTMLElement?eB(t,s)?(o.current=s,G(s)):(e.preventDefault(),e.stopPropagation(),G(l)):G(o.current)},!0)}(s,{ownerDocument:c,container:r,containers:l,previousActiveElement:d});let f=(n=(0,b.useRef)(0),J(!0,"keydown",e=>{"Tab"===e.key&&(n.current=+!!e.shiftKey)},!0),n),p=O(e=>{let t=r.current;t&&U(f.current,{[eL.Forwards]:()=>{K(t,q.First,{skipElements:[e.relatedTarget,i]})},[eL.Backwards]:()=>{K(t,q.Last,{skipElements:[e.relatedTarget,i]})}})}),m=T(!!(2&s),"focus-trap#tab-lock"),h=eT(),g=(0,b.useRef)(!1);return b.default.createElement(b.default.Fragment,null,m&&b.default.createElement(ec,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eu.Focusable}),en({ourProps:{ref:o,onKeyDown(e){"Tab"==e.key&&(g.current=!0,h.requestAnimationFrame(()=>{g.current=!1}))},onBlur(e){if(!(4&s))return;let t=eM(l);r.current instanceof HTMLElement&&t.add(r.current);let n=e.relatedTarget;n instanceof HTMLElement&&"true"!==n.dataset.headlessuiFocusGuard&&(eB(t,n)||(g.current?K(r.current,U(f.current,{[eL.Forwards]:()=>q.Next,[eL.Backwards]:()=>q.Previous})|q.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&G(e.target)))}},theirProps:u,defaultTag:"div",name:"FocusTrap"}),m&&b.default.createElement(ec,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eu.Focusable}))}),{features:eI});function eB(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var eH=e.i(60320);let eq=b.Fragment,e$=ei(function(e,t){let n=(0,b.useRef)(null),r=ev(function(e,t=!0){return Object.assign(e,{[eg]:t})}(e=>{n.current=e}),t),o=Z(n),a=function(e){let t=(0,b.useContext)(ek),n=(0,b.useContext)(eV),r=Z(e),[o,a]=(0,b.useState)(()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(E.isServer)return null;let o=null==r?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(null===r)return null;let a=r.createElement("div");return a.setAttribute("id","headlessui-portal-root"),r.body.appendChild(a)});return(0,b.useEffect)(()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))},[o,r]),(0,b.useEffect)(()=>{t||null!==n&&a(n.current)},[n,a,t]),o}(n),[i]=(0,b.useState)(()=>{var e;return E.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null}),l=(0,b.useContext)(ez),s=eh();return _(()=>{!a||!i||a.contains(i)||(i.setAttribute("data-headlessui-portal",""),a.appendChild(i))},[a,i]),_(()=>{if(i&&l)return l.register(i)},[l,i]),ej(()=>{var e;a&&i&&(i instanceof Node&&a.contains(i)&&a.removeChild(i),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}),s&&a&&i?(0,eH.createPortal)(en({ourProps:{ref:r},theirProps:e,slot:{},defaultTag:eq,name:"Portal"}),i):null}),eW=b.Fragment,eV=(0,b.createContext)(null),ez=(0,b.createContext)(null),eG=ei(function(e,t){let n=ev(t),{enabled:r=!0,...o}=e;return r?b.default.createElement(e$,{...o,ref:n}):en({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:eq,name:"Portal"})}),eK=ei(function(e,t){let{target:n,...r}=e,o={ref:ev(t)};return b.default.createElement(eV.Provider,{value:n},en({ourProps:o,theirProps:r,defaultTag:eW,name:"Popover.Group"}))}),eY=Object.assign(eG,{Group:eK});var eX=e.i(72461);void 0!==eX.default&&"u">typeof globalThis&&(null==(v=null==eX.default?void 0:eX.default.env)?void 0:v.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.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(` 15`)),[]});var eJ=((p=eJ||{})[p.None=0]="None",p[p.Closed=1]="Closed",p[p.Enter=2]="Enter",p[p.Leave=4]="Leave",p);function eZ(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:e4)!==b.Fragment||1===b.default.Children.count(e.children)}let eQ=(0,b.createContext)(null);eQ.displayName="TransitionContext";var e0=((m=e0||{}).Visible="visible",m.Hidden="hidden",m);let e1=(0,b.createContext)(null);function e5(e){return"children"in e?e5(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function e2(e,t){let n=C(e),r=(0,b.useRef)([]),o=eO(),a=eT(),i=O((e,t=et.Hidden)=>{let i=r.current.findIndex(({el:t})=>t===e);-1!==i&&(U(t,{[et.Unmount](){r.current.splice(i,1)},[et.Hidden](){r.current[i].state="hidden"}}),a.microTask(()=>{var e;!e5(r)&&o.current&&(null==(e=n.current)||e.call(n))}))}),l=O(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>i(e,et.Unmount)}),s=(0,b.useRef)([]),u=(0,b.useRef)(Promise.resolve()),c=(0,b.useRef)({enter:[],leave:[]}
15),d=O((e,n,r)=>{s.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{s.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(c.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?u.current=u.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),f=O((e,t,n)=>{Promise.all(c.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=s.current.shift())||e()}).then(()=>n(t))});return(0,b.useMemo)(()=>({children:r,register:l,unregister:i,onStart:d,onStop:f,wait:u,chains:c}),[l,i,r,d,f,c,u])}e1.displayName="NestingContext";let e4=b.Fragment,e8=ee.RenderStrategy,e6=ei(function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...a}=e,i=(0,b.useRef)(null),l=ev(...eZ(e)?[i,t]:null===t?[]:[t]);eh();let s=eE();if(void 0===n&&null!==s&&(n=(s&ew.Open)===ew.Open),void 0===n)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,c]=(0,b.useState)(n?"visible":"hidden"),d=e2(()=>{n||c("hidden")}),[f,p]=(0,b.useState)(!0),m=(0,b.useRef)([n]);_(()=>{!1!==f&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let h=(0,b.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);_(()=>{n?c("visible"):e5(d)||null===i.current||c("hidden")},[n,d]);let g={unmount:o},v=O(()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),x=O(()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)});return b.default.createElement(e1.Provider,{value:d},b.default.createElement(eQ.Provider,{value:h},en({ourProps:{...g,as:b.Fragment,children:b.default.createElement(e3,{ref:l,...g,...a,beforeEnter:v,beforeLeave:x})},theirProps:{},defaultTag:b.Fragment,features:e8,visible:"visible"===u,name:"Transition"})))}),e3=ei(function(e,t){var n,r;let{transition:o=!0,beforeEnter:a,afterEnter:i,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:d,entered:f,leave:p,leaveFrom:m,leaveTo:h,...g}=e,[v,x]=(0,b.useState)(null),y=(0,b.useRef)(null),w=eZ(e),E=ev(...w?[y,t,x]:null===t?[]:[t]),C=null==(n=g.unmount)||n?et.Unmount:et.Hidden,{show:k,appear:S,initial:N}=function(){let e=(0,b.useContext)(eQ);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[F,P]=(0,b.useState)(k?"visible":"hidden"),T=function(){let e=(0,b.useContext)(e1);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:j,unregister:A}=T;_(()=>j(y),[j,y]),_(()=>{if(C===et.Hidden&&y.current)return k&&"visible"!==F?void P("visible"):U(F,{hidden:()=>A(y),visible:()=>j(y)})},[F,y,j,A,k,C]);let D=eh();_(()=>{if(w&&D&&"visible"===F&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,F,D,w]);let R=N&&!S,M=S&&k&&N,I=(0,b.useRef)(!1),B=e2(()=>{I.current||(P("hidden"),A(y))},T),H=O(e=>{I.current=!0,B.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())})}),q=O(e=>{let t=e?"enter":"leave";I.current=!1,B.onStop(y,t,e=>{"enter"===e?null==i||i():"leave"===e&&(null==s||s())}),"leave"!==t||e5(B)||(P("hidden"),A(y))});(0,b.useEffect)(()=>{w&&o||(H(k),q(k))},[k,w,o]);let[,$]=function(e,t,n,r){let[o,a]=(0,b.useState)(n),{hasFlag:i,addFlag:l,removeFlag:s}=function(e=0){let[t,n]=(0,b.useState)(e),r=(0,b.useCallback)(e=>n(e),[t]),o=(0,b.useCallback)(e=>n(t=>t|e),[t]),a=(0,b.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:a,removeFlag:(0,b.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,b.useCallback)(e=>n(t=>t^e),[n])}}(e&&o?3:0),u=(0,b.useRef)(!1),c=(0,b.useRef)(!1);return _(()=>{var o;if(e){if(n&&a(!0),!t){n&&l(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let a=L();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(function(e,t){var n,r;let o=L();if(!e)return o.dispose;let a=!1;o.add(()=>{a=!0});let i=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===i.length?t():Promise.allSettled(i.map(e=>e.finished)).then(()=>{a||t()}),o.dispose}(e,r))})}),a.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,
15c.current||(n?(l(3),s(4)):(l(4),s(2)))},run(){c.current?n?(s(3),l(4)):(s(4),l(3)):n?s(1):l(1)},done(){var e;c.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(u.current=!1,s(7),n||a(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,eT()]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}(!(!o||!w||!D||R),v,k,{start:H,end:q}),W=el({ref:E,className:(null==(r=Q(g.className,M&&u,M&&c,$.enter&&u,$.enter&&$.closed&&c,$.enter&&!$.closed&&d,$.leave&&p,$.leave&&!$.closed&&m,$.leave&&$.closed&&h,!$.transition&&k&&f))?void 0:r.trim())||void 0,...function(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}($)}),V=0;return"visible"===F&&(V|=ew.Open),"hidden"===F&&(V|=ew.Closed),$.enter&&(V|=ew.Opening),$.leave&&(V|=ew.Closing),b.default.createElement(e1.Provider,{value:B},b.default.createElement(e_,{value:V},en({ourProps:W,theirProps:g,defaultTag:e4,features:e8,visible:"visible"===F,name:"Transition.Child"})))}),e9=ei(function(e,t){let n=null!==(0,b.useContext)(eQ),r=null!==eE();return b.default.createElement(b.default.Fragment,null,!n&&r?b.default.createElement(e6,{ref:t,...e}):b.default.createElement(e3,{ref:t,...e}))}),e7=Object.assign(e6,{Child:e9,Root:e6});e.s(["Transition",0,e7,"TransitionChild",0,e9],27791);var te=((h=te||{})[h.Open=0]="Open",h[h.Closed=1]="Closed",h),tt=((g=tt||{})[g.SetTitleId=0]="SetTitleId",g);let tn={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},tr=(0,b.createContext)(null);function to(e){let t=(0,b.useContext)(tr);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,to),t}return t}function ta(e,t){return U(t.type,tn,e,t)}tr.displayName="DialogContext";let ti=ei(function(e,t){let n,r,o,a,i,l,s,u,c,d,f,p=(0,b.useId)(),{id:m=`headlessui-dialog-${p}`,open:h,onClose:g,initialFocus:v,role:y="dialog",autoFocus:w=!0,__demoMode:E=!1,unmount:S=!1,...N}=e,P=(0,b.useRef)(!1);y="dialog"===y||"alertdialog"===y?y:(P.current||(P.current=!0,console.warn(`Invalid role [${y}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let j=eE();void 0===h&&null!==j&&(h=(j&ew.Open)===ew.Open);let D=(0,b.useRef)(null),R=ev(D,t),I=Z(D),H=+!h,[q,$]=(0,b.useReducer)(ta,{titleId:null,descriptionId:null,panelRef:(0,b.createRef)()}),W=O(()=>g(!1)),z=O(e=>$({type:0,id:e})),G=!!eh()&&0===H,[K,Q]=(n=(0,b.useContext)(ez),r=(0,b.useRef)([]),o=O(e=>(r.current.push(e),n&&n.register(e),()=>a(e))),a=O(e=>{let t=r.current.indexOf(e);-1!==t&&r.current.splice(t,1),n&&n.unregister(e)}),i=(0,b.useMemo)(()=>({register:o,unregister:a,portals:r}),[o,a,r]),[r,(0,b.useMemo)(()=>function({children:e}){return b.default.createElement(ez.Provider,{value:i},e)},[i])]),ee=ep(),{resolveContainers:et}=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Z(n),o=O(()=>{var o,a;let i=[];for(let t of e)null!==t&&(t instanceof HTMLElement?i.push(t):"current"in t&&t.current instanceof HTMLElement&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(o=null==r?void 0:r.querySelectorAll("html > *, body > *"))?o:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(a=null==n?void 0:n.getRootNode())?void 0:a.host))||i.some(t=>e.contains(t))||i.push(e));return i});
15return{resolveContainers:o,contains:O(e=>o().some(t=>t.contains(e)))}}({mainTreeNode:ee,portals:K,defaultContainers:[{get current(){var er;return null!=(er=q.panelRef.current)?er:D.current}}]}),eo=null!==j&&(j&ew.Closing)===ew.Closing;(function(e,{allowed:t,disallowed:n}={}){let r=T(e,"inert-others");_(()=>{var e,o;if(!r)return;let a=L();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&a.add(M(t));let i=null!=(o=null==t?void 0:t())?o:[];for(let e of i){if(!e)continue;let t=A(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)i.some(t=>e.contains(t))||a.add(M(e));n=n.parentElement}}return a.dispose},[r,t,n])})(!E&&!eo&&G,{allowed:O(()=>{var e,t;return[null!=(t=null==(e=D.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:O(()=>{var e;return[null!=(e=null==ee?void 0:ee.closest("body > *:not(#headlessui-portal-root)"))?e:null]})}),l=T(G,"outside-click"),s=C(e=>{e.preventDefault(),W()}),u=(0,b.useCallback)(function(e,t){if(e.defaultPrevented)return;let n=t(e);if(null!==n&&n.getRootNode().contains(n)&&n.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(et))if(null!==t&&(t.contains(n)||e.composed&&e.composedPath().includes(t)))return;return function(e,t=0){var n;return e!==(null==(n=A(e))?void 0:n.body)&&U(t,{0:()=>e.matches(B),1(){let t=e;for(;null!==t;){if(t.matches(B))return!0;t=t.parentElement}return!1}})}(n,V.Loose)||-1===n.tabIndex||e.preventDefault(),s.current(e,n)}},[s,et]),c=(0,b.useRef)(null),X(l,"pointerdown",e=>{var t,n;c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),X(l,"mousedown",e=>{var t,n;c.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target},!0),X(l,"click",e=>{Y()||/Android/gi.test(window.navigator.userAgent)||c.current&&(u(e,()=>c.current),c.current=null)},!0),d=(0,b.useRef)({x:0,y:0}),X(l,"touchstart",e=>{d.current.x=e.touches[0].clientX,d.current.y=e.touches[0].clientY},!0),X(l,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-d.current.x)>=30||Math.abs(t.y-d.current.y)>=30))return u(e,()=>e.target instanceof HTMLElement?e.target:null)},!0),J(l,"blur",e=>u(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0),function(e,t="u">typeof document?document.defaultView:null,n){let r=T(e,"escape");k(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===x.Escape&&n(e))})}(G,null==I?void 0:I.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),W()}),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=F(em),o=t?r.get(t):void 0;o&&o.count,_(()=>{if(!(!t||!e))return em.dispatch("PUSH",t,n),()=>em.dispatch("POP",t,n)},[e,t])}(T(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!E&&!eo&&G,I,et),f=C(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&W()}),(0,b.useEffect)(()=>{if(!G)return;let e=null===D?null:D instanceof HTMLElement?D:D.current;if(!e)return;let t=L();if("u">typeof ResizeObserver){let n=new ResizeObserver(()=>f.current(e));n.observe(e),t.add(()=>n.disconnect())}if("u">typeof IntersectionObserver){let n=new IntersectionObserver(()=>f.current(e));n.observe(e),t.add(()=>n.disconnect())}return()=>t.dispose()},[D,f,G]);let[ea,ei]=function(){let[e,t]=(0,b.useState)([]);return[e.length>0?e.join(" "):void 0,(0,b.useMemo)(()=>function(e){let n=O(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,b.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 b.default.createElement(eF.Provider,{value:r},e.children)},[t])]}(),el=(0,b.useMemo)(()=>[{dialogState:H,close:W,setTitleId:z,unmount:S},q],[H,q,W,z,S]),es=(0,b.useMemo)(()=>({open:0===H}),[H]),eu={ref:R,id:m,role:y,tabIndex:-1,"aria-modal":E?void 0:0===H||void 0,"aria-labelledby":q.titleId,"aria-describedby":ea,unmount:S},ec=!function(){var e;let[t]=(0,b.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,b.useState)(null!=(e=null==t?void 0:t.matches)&&e);return _(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),ed=eI.None;return G&&!E&&(ed|=eI.RestoreFocus,ed|=eI.TabLock,w&&(ed|=eI.AutoFocus),ec&&(ed|=eI.InitialFocus)),b.default.createElement(eC,null,b.default.createElement(eS,{force:!0},b.default.createElement(eY,null,b.default.createElement(tr.Provider,{value:el},b.default.createElement(eK,{target:D},b.default.createElement(eS,{force:!1},b.default.createElement(ei,{slot:es},b.default.createElement(Q,null,b.default.createElement(eU,{initialFocus:v,initialFocusFallback:D,containers:et,features:ed},b.default.createElement(ex,{value:W},en({ourProps:eu,theirProps:N,slot:es,defaultTag:tl,features:ts,visible:0===H,name:"Dialog"})))))))))))}),tl="div",ts=ee.RenderStrategy|ee.Static,tu=ei(function(e,t){let{transition:n=!1,open:r,...o}=e,a=eE(),i=e.hasOwnProperty("open")||null!==a,l=e.hasOwnProperty("onClose");if(!i&&!l)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!i)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
15if(!a&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==r||n)&&!o.static?b.default.createElement(ef,null,b.default.createElement(e7,{show:r,transition:n,unmount:o.unmount},b.default.createElement(ti,{ref:t,...o}))):b.default.createElement(ef,null,b.default.createElement(ti,{ref:t,open:r,...o}))}),tc=ei(function(e,t){let n=(0,b.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...a}=e,[{dialogState:i,unmount:l},s]=to("Dialog.Panel"),u=ev(t,s.panelRef),c=(0,b.useMemo)(()=>({open:0===i}),[i]),d=O(e=>{e.stopPropagation()});return b.default.createElement(o?e9:b.Fragment,{...o?{unmount:l}:{}},en({ourProps:{ref:u,id:r,onClick:d},theirProps:a,slot:c,defaultTag:"div",name:"Dialog.Panel"}))}),td=Object.assign(tu,{Panel:tc,Title:(ei(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:a}]=to("Dialog.Backdrop"),i=(0,b.useMemo)(()=>({open:0===o}),[o]);return b.default.createElement(n?e9:b.Fragment,{...n?{unmount:a}:{}},en({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:i,defaultTag:"div",name:"Dialog.Backdrop"}))}),ei(function(e,t){let n=(0,b.useId)(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:a,setTitleId:i}]=to("Dialog.Title"),l=ev(t);return(0,b.useEffect)(()=>(i(r),()=>i(null)),[r,i]),en({ourProps:{ref:l,id:r},theirProps:o,slot:(0,b.useMemo)(()=>({open:0===a}),[a]),defaultTag:"h2",name:"Dialog.Title"})})),Description:eP});e.s(["Dialog",0,td,"DialogPanel",0,tc],27183);let tf=b.forwardRef(function({title:e,titleId:t,...n},r){return b.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?b.createElement("title",{id:t},e):null,b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});e.s(["Bars3Icon",0,tf],23968);let tp=b.forwardRef(function({title:e,titleId:t,...n},r){return b.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?b.createElement("title",{id:t},e):null,b.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["XMarkIcon",0,tp],51765);var tm=e.i(67354);function th({className:e,fill:t}){return(0,tm.jsx)("svg",{className:e,fill:t||"currentColor","aria-hidden":"true",viewBox:"0 -28.5 256 256",xmlns:"http://www.w3.org/2000/svg",children:(0,tm.jsx)("g",{children:(0,tm.jsx)("path",{d:"M216.856339,16.5966031 C200.285002,8.84328665 182.566144,3.2084988 164.041564,0 C161.766523,4.11318106 159.108624,9.64549908 157.276099,14.0464379 C137.583995,11.0849896 118.072967,11.0849896 98.7430163,14.0464379 C96.9108417,9.64549908 94.1925838,4.11318106 91.8971895,0 C73.3526068,3.2084988 55.6133949,8.86399117 39.0420583,16.6376612 C5.61752293,67.146514 -3.4433191,116.400813 1.08711069,164.955721 C23.2560196,181.510915 44.7403634,191.567697 65.8621325,198.148576 C71.0772151,190.971126 75.7283628,183.341335 79.7352139,175.300261 C72.104019,172.400575 64.7949724,168.822202 57.8887866,164.667963 C59.7209612,163.310589 61.5131304,161.891452 63.2445898,160.431257 C105.36741,180.133187 151.134928,180.133187 192.754523,160.431257 C194.506336,161.891452 196.298154,163.310589 198.110326,164.667963 C191.183787,168.842556 183.854737,172.420929 176.223542,175.320965 C180.230393,183.341335 184.861538,190.991831 190.096624,198.16893 C211.238746,191.588051 232.743023,181.531619 254.911949,164.955721 C260.227747,108.668201 245.831087,59.8662432 216.856339,16.5966031 Z M85.4738752,135.09489 C72.8290281,135.09489 62.4592217,123.290155 62.4592217,108.914901 C62.4592217,94.5396472 72.607595,82.7145587 85.4738752,82.7145587 C98.3405064,82.7145587 108.709962,94.5189427 108.488529,108.914901 C108.508531,123.290155 98.3405064,135.09489 85.4738752,135.09489 Z M170.525237,135.09489 C157.88039,135.09489 147.510584,123.290155 147.510584,108.914901 C147.510584,94.5396472 157.658606,82.7145587 170.525237,82.7145587 C183.391518,82.7145587 193.761324,94.5189427 193.539891,108.914901 C193.539891,123.290155 183.391518,135.09489 170.525237,135.09489 Z",fill:t??"#5865F2",fillRule:"nonzero"})})})}e.s(["DiscordMono",0,function({className:e}){return(0,tm.jsx)(th,{fill:"currentColor",className:e})}],8050)}
15,97156,(e,t,n)=>{"use strict";e.i(72461),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return v},useLinkStatus:function(){return x}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(95783),i=e.r(67354),l=a._(e.r(88465)),s=e.r(63617),u=e.r(46966),c=e.r(46664),d=e.r(81762),f=e.r(88245),p=e.r(95808),m=e.r(47103),h=e.r(17222),g=e.r(25122);function v(t){var n;let r,o,a,[v,x]=(0,l.useOptimistic)(m.IDLE_LINK_STATUS),y=(0,l.useRef)(null),{href:w,as:E,children:_,prefetch:C=null,passHref:k,replace:S,shallow:N,scroll:F,onClick:P,onMouseEnter:T,onTouchStart:O,legacyBehavior:j=!1,onNavigate:L,transitionTypes:A,ref:D,unstable_dynamicOnHover:R,...M}=t;r=_,j&&("string"==typeof r||"number"==typeof r)&&(r=(0,i.jsx)("a",{children:r}));let I=l.default.useContext(u.AppRouterContext),U=!1!==C,B=!1===C?"none":!0===C?"full":"auto",H="none"!==B?"auto"===B?g.FetchStrategy.PPR:g.FetchStrategy.Full:g.FetchStrategy.PPR,q="string"==typeof(n=E||w)?n:(0,s.formatUrl)(n);if(j){if(r?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=l.default.Children.only(r)}let $=j?o&&"object"==typeof o&&o.ref:D,W,V=l.default.useCallback(e=>(null!==I&&(y.current=(0,m.mountLinkInstance)(e,q,I,H,U,x,W)),()=>{y.current&&((0,m.unmountLinkForCurrentNavigation)(y.current),y.current=null),(0,m.unmountPrefetchableInstance)(e)}),[U,q,I,H,x,W]),z={ref:(0,c.useMergedRef)(V,$),onClick(t){j||"function"!=typeof P||P(t),j&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!I||t.defaultPrevented||function(t,n,r,o,a,i,s,u="none"){if("u">typeof window){let c,{nodeName:d}=t.currentTarget;if("A"===d.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(n)){o&&(t.preventDefault(),location.replace(n));return}if(t.preventDefault(),i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(79892);l.default.startTransition(()=>{f(n,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,r.current,s,u)})}}(t,q,y,S,F,L,A,B)},onMouseEnter(e){j||"function"!=typeof T||T(e),j&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),I&&U&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){j||"function"!=typeof O||O(e),j&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),I&&U&&(0,m.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(q)?z.href=q:j&&!k&&("a"!==o.type||"href"in o.props)||(z.href=(0,f.addBasePath)(q)),a=j?l.default.cloneElement(o,z):(0,i.jsx)("a",{...M,...z,children:r}),(0,i.jsx)(b.Provider,{value:v,children:a})}let b=(0,l.createContext)(m.IDLE_LINK_STATUS),x=()=>(0,l.useContext)(b);("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},36771,(e,t,n)=>{"use strict";e.i(72461),Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return u}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(65568),i=e.r(57617),l=e.r(18938),s=a._(e.r(25860));function u(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],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 c=l.Image},97255,(e,t,n)=>{t.exports=e.r(36771)},17222,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"isLocalURL",{enumerable:!0,get:function(){return a}});let r=e.r(81762),o=e.r(87345);function a(e){if(!(0,r.isAbsoluteUrl)(e))return!0;try{let t=(0,r.getLocationOrigin)(),n=new URL(e,t);return n.origin===t&&(0,o.hasBasePath)(n.pathname)}catch(e){return!1}}},76970,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={assign:function(){return s},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return l}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});function a(e){let t={};for(let[n,r]of e.entries()){let e=t[n];void 0===e?t[n]=r:Array.isArray(e)?e.push(r):t[n]=[e,r]}return t}function i(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,i(e));else t.set(n,i(r));return t}function s(e,...t){for(let n of t){for(let t of n.keys())e.delete(t);for(let[t,r]of n.entries())e.append(t,r)}return e}},63617,(e,t,n)=>{"use strict";e.i(72461),Object.defineProperty(n,"__esModule",{value:!0});var r={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(95783)._(e.r(76970)),i=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:n}=e,r=e.protocol||"",o=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(a.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return r&&!r.endsWith(":")&&(r+=":"),e.slashes||(!r||i.test(r))&&!1!==u?(u="//"+(u||""),o&&"/"!==o[0]&&(o="/"+o)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),o=o.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${r}${u}${o}${c}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},81762,(e,t,n)=>{"use strict";e.i(72461),Object.defineProperty(n,"__esModule",{value:!0});var r={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return y},NormalizeError:function(){return b},PageNotFoundError:function(){return x},SP:function(){return h},ST:function(){return g},WEB_VITALS:function(){return a},execOnce:function(){return i},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return m}
15,normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return E}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function i(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>{let t=e.charCodeAt(0);return!!(t>=65&&t<=90||t>=97&&t<=122)&&l.test(e)};function u(){let{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function m(e,t){let n=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await m(t.Component,t.ctx)}:{};let r=await e.getInitialProps(t);if(n&&f(n))return r;if(!r)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${r}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return r}let h="u">typeof performance,g=h&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class b extends Error{}class x extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class y extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function E(e){return JSON.stringify({message:e.message,stack:e.stack})}}]);
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.