1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,954001,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(387644);e.s(["DeferredGoogleTagManager",0,function({gtmId:e}){let[o,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e,t,n=()=>{window.removeEventListener("pointerdown",i),window.removeEventListener("keydown",i)},r=()=>{n(),a(!0)},o=()=>{if("requestIdleCallback"in window){e=window.requestIdleCallback(r,{timeout:2e3});return}r()};function i(){window.clearTimeout(t),void 0!==e&&window.cancelIdleCallback(e),t=window.setTimeout(o,1e4)}return window.addEventListener("pointerdown",i,{passive:!0}),window.addEventListener("keydown",i),i(),()=>{window.clearTimeout(t),void 0!==e&&window.cancelIdleCallback(e),n()}},[]),o?(0,t.jsx)(r.GoogleTagManager,{gtmId:e}):null}])},811931,e=>{"use strict";var t=e.i(271645),n=e.i(395816),r=e.i(143040);let o=e=>{(0,r.pushTelemetryEvent)({event:"web_vitals",metric_id:e.id,metric_name:e.name,metric_value:"CLS"===e.name?1e3*e.value:e.value,metric_delta:"CLS"===e.name?1e3*e.delta:e.delta,metric_rating:e.rating,navigation_type:e.navigationType})};function a(e){(0,r.pushTelemetryEvent)({event:"storefront_resource_timing",...e})}e.s(["WebVitals",0,function(){return(0,n.useReportWebVitals)(o),(0,t.useEffect)(()=>(function(e){if("u"<typeof PerformanceObserver||!PerformanceObserver.supportedEntryTypes.includes("resource"))return()=>{};let t=new PerformanceObserver(t=>{for(let n of t.getEntries()){let t=function(e){let t=new URL(e.name),n=t.searchParams.has("_rsc")?"navigation":t.hostname.endsWith("gokwik.co")?"gokwik":t.pathname.startsWith("/api/")||t.hostname.endsWith("capcons.ai")||t.hostname.endsWith("snapmint.com")?"api":null;return n?{resource_kind:n,resource_host:t.host,resource_path:t.pathname,resource_duration:Math.round(e.duration),resource_ttfb:Math.max(0,Math.round(e.responseStart-e.requestStart)),resource_transfer_size:e.transferSize,resource_protocol:e.nextHopProtocol}:null}(n);t&&e(t)}});return t.observe({type:"resource",buffered:!0}),()=>t.disconnect()})(a),[]),null}],811931)},851231,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(657688);let o=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:"M6 18 18 6M6 6l12 12"}))});var a=e.i(167881),i=e.i(388636),s=e.i(890538),l=e.i(852917),u=e.i(127341),c=e.i(374500),d=e.i(500261);e.s(["CategorySheet",0,function({open:e,onOpenChange:f}){let[h,p]=(0,n.useState)(d.CATEGORY_TREES[0].name),m=d.CATEGORY_TREES.find(e=>e.name===h)??d.CATEGORY_TREES[0];return(0,t.jsxs)(i.AppSheet,{open:e,onOpenChange:f,interaction:"category",side:"bottom",className:"flex h-[96dvh] max-h-[96dvh] flex-col gap-0 overflow-hidden p-0 duration-200 data-[state=closed]:duration-150 data-[state=open]:duration-200 sm:!max-w-none",children:[(0,t.jsx)("header",{className:"shrink-0 border-b border-gray-200 px-4 py-4",children:(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(l.SheetTitle,{className:"text-lg font-semibold",children:"Categories"}),(0,t.jsx)(l.SheetDescription,{className:"sr-only",children:"Browse Woodland product categories"}),(0,t.jsx)(l.SheetClose,{asChild:!0,children:(0,t.jsx)(a.Button,{"aria-label":"Close categories",className:"text-gray-400",size:"icon",variant:"ghost",children:(0,t.jsx)(o,{className:"h-6 w-6"})})})]})}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto overscroll-contain",children:(0,t.jsxs)(u.Tabs,{className:"w-full",value:h,onValueChange:p,children:[(0,t.jsx)(u.TabsList,{className:"flex h-auto rounded-none border-b bg-transparent p-0",children:d.CATEGORY_TREES.map(e=>(0,t.jsx)(u.TabsTrigger,{className:"relative w-full flex-1 flex-col rounded-none py-4 text-xs after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 data-[state=active]:bg-transparent data-[state=active]:shadow-none data-[state=active]:after:bg-primary",value:e.name,children:e.name},e.gender))}),(0,t.jsxs)(u.TabsContent,{className:"mt-0 p-4",value:m.name,children:[(0,t.jsx)("div",{className:"grid grid-cols-3 gap-4",children:m.cards.map(e=>(0,t.jsxs)("div",{className:"group relative",children:[(0,t.jsx)("div",{className:"relative aspect-square w-full overflow-hidden rounded-md bg-[#f3f3f3]",children:(0,t.jsx)(r.default,{alt:e.imageAlt,fill:!0,sizes:"33vw",className:"object-cover mix-blend-multiply",src:e.imageSrc})}),(0,t.jsxs)("a",{className:"mt-3 block text-sm font-medium text-gray-900",href:e.href,onClick:()=>f(!1),children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"absolute inset-0 z-10"}),e.name]}),(0,t.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Shop now"})]},e.name))}),(0,t.jsx)("div",{className:"mt-6 border-t border-gray-200 pt-6",children:(0,t.jsx)(s.Accordion,{className:"w-full",collapsible:!0,type:"single",children:m.groups.filter(e=>"featured"!==e.id).map(e=>(0,t.jsxs)(s.AccordionItem,{className:"border-b border-gray-200 last:border-b-0",value:e.id,children:[(0,t.jsx)(s.AccordionTrigger,{className:"py-4 text-left font-medium hover:no-underline",children:(0,t.jsx)("span",{className:"text-base font-medium text-gray-900",children:e.name})}),(0,t.jsx)(s.AccordionContent,{className:"pb-4",children:(0,t.jsx)("div",{className:"space-y-2 pl-4",children:e.children.map(n=>(0,t.jsx)("a",{className:"block border-b border-gray-100 py-2 text-sm text-gray-600 last:border-b-0 hover:text-gray-900",href:(0,c.hrefFor)({kind:"leaf",gender:m.gender,groupId:e.id,slug:n.slug}),onClick:()=>f(!1),children:n.name},n.slug))})})]},e.id))})})]})]})})]})}],851231)},314082,e=>{"use strict";
1var t=e.i(843476),n=e.i(657688);e.s(["Footer",0,()=>(0,t.jsx)("footer",{className:"mt-auto bg-primary py-6 text-white sm:!pb-20 sm:!pt-10 lg:!pt-10",children:(0,t.jsx)("div",{className:" px-4",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6 sm:gap-8 max-w-7xl mx-auto",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-1 sm:gap-4",children:[{icon:"https://assets.woodland.social/new_woodland/extra/ig.webp",href:"https://www.instagram.com/woodlandexploremore/",alt:"Instagram"},{icon:"https://assets.woodland.social/new_woodland/extra/fb.webp",href:"https://www.facebook.com/woodlandadventure",alt:"Facebook"},{icon:"https://assets.woodland.social/new_woodland/extra/yt.webp",href:"https://www.youtube.com/@woodland",alt:"YouTube"},{icon:"https://assets.woodland.social/new_woodland/extra/x.webp",href:"https://twitter.com/Woodland",alt:"Twitter"},{icon:"https://assets.woodland.social/new_woodland/extra/in.webp",href:"https://www.linkedin.com/company/woodland/",alt:"LinkedIn"}].map(e=>(0,t.jsx)("a",{href:e.href,className:"transition-opacity hover:opacity-80",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(n.default,{alt:e.alt,className:"h-6 w-6 sm:h-8 sm:w-8",height:32,unoptimized:!0,src:e.icon,width:32})},e.alt))}),(0,t.jsxs)("div",{className:"flex items-center gap-1 sm:gap-4",children:[(0,t.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.woodlandworldwide.app&hl=en_IN ",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(n.default,{alt:"Get it on Google Play",className:"h-[28px] w-[80px] sm:h-[40px] sm:w-[135px]",height:40,unoptimized:!0,src:"https://assets.woodland.social/new_woodland/extra/gp.webp",width:135})}),(0,t.jsx)("a",{href:"https://apps.apple.com/in/app/woodland/id6529542414",target:"_blank",rel:"noopener noreferrer",children:(0,t.jsx)(n.default,{alt:"Download on the App Store",className:"h-[28px] w-[80px] sm:h-[40px] sm:w-[135px]",height:40,unoptimized:!0,src:"https://assets.woodland.social/new_woodland/extra/as.webp",width:135})})]})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-6 md:flex-row md:justify-between",children:[(0,t.jsx)("div",{className:"flex flex-wrap gap-x-4 gap-y-2 sm:gap-x-8",children:[{label:"About Us",href:"/about"},{label:"Terms of Service",href:"/compliance/terms"},{label:"Privacy Policy",href:"/compliance/privacy"},{label:"Refund Policy",href:"/compliance/refund"},{label:"Shipping Policy",href:"/compliance/shipping"},{label:"Track Order",href:"/track-order"},{label:"Outlet",href:"/store"},{label:"Blogs",href:"https://blog.woodlandworldwide.com/"},{label:"Contact Us",href:"/contact-us"},{label:"Regulatory Compliance",href:"/compliance/regulatory"},{label:"Ambassador",href:"/ambassador"}].map(e=>(0,t.jsx)("a",{href:e.href,className:"text-xs hover:underline sm:text-sm",children:e.label},e.label))}),(0,t.jsx)("div",{className:"text-center text-xs sm:text-sm md:text-right text-white/80",children:"Copyright 2025, Woodland (Aero Club) Private Limited"})]})]})})})])},150239,e=>{"use strict";let t,n,r,o,a,i,s,l,u,c,d,f,h,p,m,v,g,b;var y,x,w,E,j,S,C,k=e.i(843476),N=e.i(271645),P=e.i(770703),T=e.i(558038),O=e.i(406511),F=e.i(85494);let L=(0,T.observer)(function({selection:e,items:t}){let n=(0,F.useCommerceEngine)(),r=t??n.category.crumbs(e);return r.length<=1?null:(0,k.jsx)(O.BreadCrumbs,{items:[...r]})});var M=e.i(167881),A=e.i(647163);let I=(0,T.observer)(function({selection:e,preserve:t}){let n=(0,F.useCommerceEngine)(),r=n.category.tabs(e);return 0===r.length?null:(0,k.jsx)("nav",{"aria-label":"Collection categories",className:"flex w-full gap-2 overflow-x-auto scrollbar-hide",children:r.map(r=>(0,k.jsx)(M.Button,{asChild:!0,className:(0,A.cn)("shrink-0 whitespace-nowrap transition-[color,background-color,border-color,transform] duration-150 active:scale-[0.96]"),size:"sm",variant:r.active?"default":"outline",children:(0,k.jsx)("a",{"aria-current":r.active?"page":void 0,href:function(e,t){if(!t?.toString())return e;let[n,r=""]=e.split("?"),o=new URLSearchParams(r);t.forEach((e,t)=>{o.has(t)||o.set(t,e)});let a=o.toString();return a?`${n}?${a}`:n}(n.category.tabHref(e,r),t),children:r.name})},"all"===r.kind?"all":"gender"===r.kind?`gender-${r.gender}`:`leaf-${r.slug}`))})});(0,T.observer)(function({selection:e,showBreadcrumbs:t=!1,preserve:n,actions:r}){return(0,k.jsxs)("div",{className:"w-full space-y-3 md:space-y-4",children:[t||r?(0,k.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[t?(0,k.jsx)(L,{selection:e}):(0,k.jsx)("span",{}),r]}):null,(0,k.jsx)(I,{preserve:n,selection:e})]})});var R=e.i(657688),D=e.i(174080),_=e.i(247167);let H="u">typeof document?N.default.useLayoutEffect:()=>{},q=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])'];
1q.join(":not([hidden]),"),q.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),q.join(':not([hidden]):not([tabindex="-1"]),');let B=e=>{var t;return null!=(t=null==e?void 0:e.ownerDocument)?t:document},W=e=>e&&"window"in e&&e.window===e?e:B(e).defaultView||window;function z(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function G(e){var t;let n,r=(0,N.useRef)({isFocused:!1,observer:null});H(()=>{let e=r.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let o=(t=t=>{null==e||e(t)},n=(0,N.useRef)(null),H(()=>{n.current=t},[t]),(0,N.useCallback)((...e)=>{let t=n.current;return null==t?void 0:t(...e)},[]));return(0,N.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){r.current.isFocused=!0;let t=e.target;t.addEventListener("focusout",e=>{r.current.isFocused=!1,t.disabled&&o(z(e)),r.current.observer&&(r.current.observer.disconnect(),r.current.observer=null)},{once:!0}),r.current.observer=new MutationObserver(()=>{if(r.current.isFocused&&t.disabled){var e;null==(e=r.current.observer)||e.disconnect();let n=t===document.activeElement?null:document.activeElement;t.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),t.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),r.current.observer.observe(t,{attributes:!0,attributeFilter:["disabled"]})}},[o])}function Q(e){var t;return!("u"<typeof window)&&null!=window.navigator&&((null==(t=window.navigator.userAgentData)?void 0:t.brands.some(t=>e.test(t.brand)))||e.test(window.navigator.userAgent))}function K(e){var t;return"u">typeof window&&null!=window.navigator&&e.test((null==(t=window.navigator.userAgentData)?void 0:t.platform)||window.navigator.platform)}function $(e){let t=null;return()=>(null==t&&(t=e()),t)}let U=$(function(){return K(/^Mac/i)}),V=$(function(){return K(/^iPhone/i)}),Y=$(function(){return K(/^iPad/i)||U()&&navigator.maxTouchPoints>1}),X=$(function(){return V()||Y()});$(function(){return U()||X()}),$(function(){return Q(/AppleWebKit/i)&&!Z()});let Z=$(function(){return Q(/Chrome/i)}),J=$(function(){return Q(/Android/i)});$(function(){return Q(/Firefox/i)});let ee={prefix:String(Math.round(1e10*Math.random())),current:0};N.default.createContext(ee),N.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;N.default.useId;let et=null,en=new Set,er=new Map,eo=!1,ea=!1,ei={Tab:!0,Escape:!0};function es(e,t){for(let n of en)n(e,t)}function el(e){eo=!0,e.metaKey||!U()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(et="keyboard",es("keyboard",e))}
1function eu(e){et="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(eo=!0,es("pointer",e))}function ec(e){(0===e.mozInputSource&&e.isTrusted||(J()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(eo=!0,et="virtual")}function ed(e){e.target!==window&&e.target!==document&&e.isTrusted&&(eo||ea||(et="virtual",es("virtual",e)),eo=!1,ea=!1)}function ef(){eo=!1,ea=!0}function eh(e){if("u"<typeof window||"u"<typeof document||er.get(W(e)))return;let t=W(e),n=B(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){eo=!0,r.apply(this,arguments)},n.addEventListener("keydown",el,!0),n.addEventListener("keyup",el,!0),n.addEventListener("click",ec,!0),t.addEventListener("focus",ed,!0),t.addEventListener("blur",ef,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",eu,!0),n.addEventListener("pointermove",eu,!0),n.addEventListener("pointerup",eu,!0)),t.addEventListener("beforeunload",()=>{ep(e)},{once:!0}),er.set(t,{focus:r})}let ep=(e,t)=>{let n=W(e),r=B(e);t&&r.removeEventListener("DOMContentLoaded",t),er.has(n)&&(n.HTMLElement.prototype.focus=er.get(n).focus,r.removeEventListener("keydown",el,!0),r.removeEventListener("keyup",el,!0),r.removeEventListener("click",ec,!0),n.removeEventListener("focus",ed,!0),n.removeEventListener("blur",ef,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",eu,!0),r.removeEventListener("pointermove",eu,!0),r.removeEventListener("pointerup",eu,!0)),er.delete(n))};function em(){return"pointer"!==et}"u">typeof document&&("loading"!==(t=B(void 0)).readyState?eh(void 0):t.addEventListener("DOMContentLoaded",()=>{eh(void 0)}));let ev=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function eg(e,t){return!!t&&!!e&&e.contains(t)}function eb(){let e=(0,N.useRef)(new Map),t=(0,N.useCallback)((t,n,r,o)=>{let a=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:a,options:o}),t.addEventListener(n,a,o)},[]),n=(0,N.useCallback)((t,n,r,o)=>{var a;let i=(null==(a=e.current.get(r))?void 0:a.fn)||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),r=(0,N.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,N.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}let ey=!1,ex=0;function ew(e){"touch"===e.pointerType&&(ey=!0,setTimeout(()=>{ey=!1},50))}function eE(){if("u">typeof document)return"u">typeof PointerEvent&&document.addEventListener("pointerup",ew),ex++,()=>{!(--ex>0)&&"u">typeof PointerEvent&&document.removeEventListener("pointerup",ew)}}var ej=Object.defineProperty,eS=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?ej(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n};let eC=new class{constructor(){eS(this,"current",this.detect()),eS(this,"handoffState","pending"),eS(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}};function ek(e){var t;return eC.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function eN(e){var t,n;return eC.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function eP(e){var t,n;return null!=(n=null==(t=eN(e))?void 0:t.activeElement)?n:null}function eT(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function eO(){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 eT(()=>{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=eO();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 eF(){let[e]=(0,N.useState)(eO);return(0,N.useEffect)(()=>()=>
1e.dispose(),[e]),e}let eL=(e,t)=>{eC.isServer?(0,N.useEffect)(e,t):(0,N.useLayoutEffect)(e,t)};function eM(e){let t=(0,N.useRef)(e);return eL(()=>{t.current=e},[e]),t}let eA=function(e){let t=eM(e);return N.default.useCallback((...e)=>t.current(...e),[t])};function eI(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function eR(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"tagName"in e}function eD(e){return eR(e)&&"accessKey"in e}function e_(e){return eR(e)&&"tabIndex"in e}function eH(e){return eD(e)&&"LEGEND"===e.nodeName}function eq(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,eq),r}let eB=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),eW=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ez=((n=ez||{})[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),eG=((r=eG||{})[r.Error=0]="Error",r[r.Overflow=1]="Overflow",r[r.Success=2]="Success",r[r.Underflow=3]="Underflow",r),eQ=((o=eQ||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function eK(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(eB)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var e$=((a=e$||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function eU(e,t=0){var n;return e!==(null==(n=ek(e))?void 0:n.body)&&eq(t,{0:()=>e.matches(eB),1(){let t=e;for(;null!==t;){if(t.matches(eB))return!0;t=t.parentElement}return!1}})}var eV=((i=eV||{})[i.Keyboard=0]="Keyboard",i[i.Mouse=1]="Mouse",i);function eY(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var a,i,s;let l=Array.isArray(e)?e.length>0?eN(e[0]):document:eN(e),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(eW)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):eK(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:null==l?void 0:l.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}:{},h=0,p=u.length,m;do{if(h>=p||h+p<=0)return 0;let e=d+h;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(m=u[e])||m.focus(f),h+=c}while(m!==eP(m))return 6&t&&null!=(s=null==(i=null==(a=m)?void 0:a.matches)?void 0:i.call(a,"textarea,input"))&&s&&m.select(),2}function eX(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function eZ(){return eX()||/Android/gi.test(window.navigator.userAgent)}function eJ(e,t,n,r){let o=eM(n);(0,N.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function e0(e,t,n,r){let o=eM(n);(0,N.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}function e1(...e){return(0,N.useMemo)(()=>ek(...e),[...e])}function e5(...e){return Array.from(new Set(e.flatMap(e=>
1"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 e2=((s=e2||{})[s.None=0]="None",s[s.RenderStrategy=1]="RenderStrategy",s[s.Static=2]="Static",s),e6=((l=e6||{})[l.Unmount=0]="Unmount",l[l.Hidden=1]="Hidden",l);function e3(){let e,t,n=(e=(0,N.useRef)([]),t=(0,N.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,N.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:a=!0,name:i,mergeRefs:s}){s=null!=s?s:e8;let l=e7(t,e);if(a)return e4(l,n,r,i,s);let u=null!=o?o:0;if(2&u){let{static:e=!1,...t}=l;if(e)return e4(t,n,r,i,s)}if(1&u){let{unmount:e=!0,...t}=l;return eq(+!e,{0:()=>null,1:()=>e4({...t,hidden:!0,style:{display:"none"}},n,r,i,s)})}return e4(l,n,r,i,s)})({mergeRefs:n,...e}),[n])}function e4(e,t={},n,r,o){let{as:a=n,children:i,refName:s="ref",...l}=tn(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof i?i(t):i;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["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(tr(a)&&(Object.keys(tt(l)).length>0||Object.keys(tt(d)).length>0))if(!(0,N.isValidElement)(c)||Array.isArray(c)&&c.length>1||tr(c.type)){if(Object.keys(tt(l)).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(tt(l)).concat(Object.keys(tt(d))).map(e=>` - ${e}`).join(` 2`),"","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(` 3`)].join(` 4`))}else{var f;let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>e5(t(...e),l.className):e5(t,l.className),r=e7(c.props,tt(tn(l,["ref"])));for(let e in d)e in r&&delete d[e];return(0,N.cloneElement)(c,Object.assign({},r,d,u,{ref:o((f=c,N.default.version.split(".")[0]>="19"?f.props.ref:f.ref),u.ref)},n?{className:n}:{}))}return(0,N.createElement)(a,Object.assign({},tn(l,["ref"]),!tr(a)&&u,!tr(a)&&d),c)}function e8(...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 e7(...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 e9(...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];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t}function te(e){var t;return Object.assign((0,N.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function tt(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function tn(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function tr(e){return e===N.Fragment||e===Symbol.for("react.fragment")}var to=((u=to||{})[u.None=1]="None",u[u.Focusable=2]="Focusable",u[u.Hidden=4]="Hidden",u);let ta=te(function(e,t){var n;let{features:r=1,...o}=e,a={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"}}};return e3()({ourProps:a,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),ti=(0,N.createContext)(null);function ts({children:e,node:t}){let[n,r]=(0,N.useState)(null),o=tl(null!=t?t:n);return N.default.createElement(ti.Provider,{value:o},e,null===o&&N.default.createElement(ta,{features:to.Hidden,ref:e=>{var t,n;if(e){for(let o of null!=(n=null==(t=ek(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(o!==document.body&&o!==document.head&&eR(o)&&null!=o&&o.contains(e)){r(o);break}}}}))}function tl(e=null){var t;return null!=(t=(0,N.useContext)(ti))?t:e}function tu(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let tc=(y=()=>new Map,x={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:eO(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=tu(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=tu(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[eX()?{before({doc:e,d:t,meta:n}
4){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=eO();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(e_(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),i=e.querySelector(o);e_(i)&&!r(i)&&(a=i)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{var t;if(n.dispose(),e_(e.target)&&eR(t=e.target)&&"style"in t)if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(e_(e.target)){var t;if(!(eD(t=e.target)&&"INPUT"===t.nodeName))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 n;let r=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-r.clientWidth)},after({doc:e,d:n}){let r=e.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,t-o);n.style(r,"paddingRight",`${a}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(n)),r.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},c=y(),d=new Set,{getSnapshot:()=>c,subscribe:e=>(d.add(e),()=>d.delete(e)),dispatch(e,...t){let n=x[e].call(c,...t);n&&(c=n,d.forEach(e=>e()))}});tc.subscribe(()=>{let e=tc.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)&&tc.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&tc.dispatch("TEARDOWN",n)}});class td 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}}var tf=Object.defineProperty,th=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},tp=(e,t,n)=>(th(e,t,"read from private field"),n?n.call(e):t.get(e)),tm=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},tv=(e,t,n,r)=>(th(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class tg{constructor(e){tm(this,w,{}),tm(this,E,new td(()=>new Set)),tm(this,j,new Set),((e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?tf(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,"disposables",eO()),tv(this,w,e),eC.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return tp(this,w)}subscribe(e,t){if(eC.isServer)return()=>{};let n={selector:e,callback:t,current:e(tp(this,w))};return tp(this,j).add(n),this.disposables.add(()=>{tp(this,j).delete(n)})}on(e,t){return eC.isServer?()=>{}:(tp(this,E).get(e).add(t),this.disposables.add(()=>{tp(this,E).get(e).delete(t)}))}send(e){let t=this.reduce(tp(this,w),e);if(t!==tp(this,w)){for(let e of(tv(this,w,t),tp(this,j))){let t=e.selector(tp(this,w));tb(e.current,t)||(e.current=t,e.callback(t))}for(let t of tp(this,E).get(e.type))t(tp(this,w),e)}}}function tb(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&ty(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&ty(e.entries(),t.entries()):!!(tx(e)&&tx(t))&&ty(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function ty(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;
4if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function tx(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}w=new WeakMap,E=new WeakMap,j=new WeakMap;var tw=Object.defineProperty,tE=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?tw(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},tj=((f=tj||{})[f.Push=0]="Push",f[f.Pop=1]="Pop",f);let tS={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class tC extends tg{constructor(){super(...arguments),tE(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),tE(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new tC({stack:[]})}reduce(e,t){return eq(t.type,tS,e,t)}}let tk=new td(()=>tC.new());var tN=e.i(313027);function tP(e,t,n=tb){return(0,tN.useSyncExternalStoreWithSelector)(eA(t=>e.subscribe(tT,t)),eA(()=>e.state),eA(()=>e.state),eA(t),n)}function tT(e){return e}function tO(e){return(0,N.useMemo)(()=>e,Object.values(e))}let tF=Symbol();function tL(e,t=!0){return Object.assign(e,{[tF]:t})}function tM(...e){let t=(0,N.useRef)(e);(0,N.useEffect)(()=>{t.current=e},[e]);let n=eA(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[tF]))?void 0:n}var tA=((h=tA||{})[h.Forwards=0]="Forwards",h[h.Backwards=1]="Backwards",h);function tI(){let e=(0,N.useRef)(0);return e0(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}void 0!==_.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(S=null==_.default?void 0:_.default.env)?void 0:S.NODE_ENV)==="test"&&void 0===(null==(C=null==Element?void 0:Element.prototype)?void 0:C.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(` 5`)),[]});var tR=((p=tR||{})[p.None=0]="None",p[p.Closed=1]="Closed",p[p.Enter=2]="Enter",p[p.Leave=4]="Leave",p);function tD(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function t_(e,t,n,r){let[o,a]=(0,N.useState)(n),{hasFlag:i,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=(0,N.useState)(e),r=(0,N.useCallback)(e=>n(e),[]),o=(0,N.useCallback)(e=>n(t=>t|e),[]),a=(0,N.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:a,removeFlag:(0,N.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,N.useCallback)(e=>n(t=>t^e),[])}}(e&&o?3:0),u=(0,N.useRef)(!1),c=(0,N.useRef)(!1);return eL(()=>{var o;if(e){if(n&&a(!0),!t){n&&s(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=eO();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=eO();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,c.current||(n?(s(3),l(4)):(s(4),l(2)))},run(){c.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e,o,i,s;c.current&&(null!=(s=null==(i=(o=t).getAnimations)?void 0:i.call(o))?s:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(u.current=!1,l(7),n||a(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,eF()]),e?[o,{closed:i(1),enter:i(2),leave:i(4),transition:i(2)||i(4)}
5]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}let tH=(0,N.createContext)(()=>{});function tq({value:e,children:t}){return N.default.createElement(tH.Provider,{value:e},t)}var tB=e.i(953760),tW=e.i(258950),tz=e.i(229315),tG=e.i(343084),tQ="u"<typeof Element;tQ||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tQ||Element.prototype.getRootNode;let tK={...N},t$=tK.useInsertionEffect||(e=>e());function tU(e){let t=N.useRef(()=>{});return t$(()=>{t.current=e}),N.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var tV="u">typeof document?N.useLayoutEffect:N.useEffect;let tY=!1,tX=0,tZ=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tX++,tJ=tK.useId||function(){let[e,t]=N.useState(()=>tY?tZ():void 0);return tV(()=>{null==e&&t(tZ())},[]),N.useEffect(()=>{tY=!0},[]),e},t0=N.createContext(null),t1=N.createContext(null),t5="active",t2="selected";function t6(e,t,n){let r=new Map,o="item"===n,a=e;if(o&&e){let{[t5]:t,[t2]:n,...r}=e;a=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...a,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(o&&[t5,t2].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof a){var i;null==(i=r.get(n))||i.push(a),e[n]=function(){for(var e,t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=a}),e),{})}}function t3(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let t4=(0,N.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});t4.displayName="FloatingContext";let t8=(0,N.createContext)(null);function t7({children:e,enabled:t=!0}){var n,r,o,a,i,s,l;let u,c,d,f,h,p,m,v,g,b,[y,x]=(0,N.useState)(null),[w,E]=(0,N.useState)(0),j=(0,N.useRef)(null),[S,C]=(0,N.useState)(null);eL(()=>{if(!r)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(r).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(r.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(r,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[r=S]);let k=t&&null!==y&&null!==S,{to:P="bottom",gap:T=0,offset:O=0,padding:F=0,inner:L}=(o=y,a=S,u=t9(null!=(i=null==o?void 0:o.gap)?i:"var(--anchor-gap, 0)",a),c=t9(null!=(s=null==o?void 0:o.offset)?s:"var(--anchor-offset, 0)",a),d=t9(null!=(l=null==o?void 0:o.padding)?l:"var(--anchor-padding, 0)",a),{...o,gap:u,offset:c,padding:d}),[M,A="center"]=P.split(" ");eL(()=>{k&&E(0)},[k]);let{refs:I,floatingStyles:R,context:_}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:r,elements:o}=e,a=tJ(),i=N.useRef({}),[s]=N.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),l=null!=((null==(t=N.useContext(t0))?void 0:t.id)||null),[u,c]=N.useState(o.reference),d=tU((e,t,n)=>{i.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)}),f=N.useMemo(()=>({setPositionReference:c}),[]),h=N.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return N.useMemo(()=>({dataRef:i,open:n,onOpenChange:d,elements:h,events:s,floatingId:a,refs:f}),[n,d,h,s,a,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[a,i]=N.useState(null),[s,l]=N.useState(null),u=(null==o?void 0:o.domReference)||a,c=N.useRef(null),d=N.useContext(t1);tV(()=>{u&&(c.current=u)},[u]);let f=(0,tW.useFloating)({...e,elements:{...o,...s&&{reference:s}}}),h=N.useCallback(e=>{let t=(0,tz.isElement)(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),p=N.useCallback(e=>{((0,tz.isElement)(e)||null===e)&&(c.current=e,i(e)),((0,tz.isElement)(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!(0,tz.isElement)(e))&&f.refs.setReference(e)},[f.refs]),m=N.useMemo(()=>({...f.refs,setReference:p,setPositionReference:h,domReference:c}),[f.refs,p,h]),v=N.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),g=N.useMemo(()=>({...f,...r,refs:m,elements:v,nodeId:t}),[f,m,v,t,r]);return tV(()=>{r.dataRef.current.floatingContext=g;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=g)}),N.useMemo(()=>({...f,context:g,refs:m,elements:v}),[f,m,v,g])}({open:k,placement:"selection"===M?"center"===A?"bottom":`bottom-${A}`:"center"===A?`${M}`:`${M}-${A}`,strategy:"absolute",transform:!1,middleware:[(0,tW.offset)({mainAxis:"selection"===M?0:T,crossAxis:O}),(0,tW.shift)({padding:F}),"selection"!==M&&(0,tW.flip)({padding:F}),"selection"===M&&L?{name:"inner",options:f={...L,padding:F,overflowRef:j,offset:w,minItemsVisible:4,referenceOverflowThreshold:F,onFallbackChange(e){var t,n;if(!e)return;let r=_.elements.floating;if(!r)return;
5let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),i=0,s=0;for(let e of null!=(n=null==(t=_.elements.floating)?void 0:t.childNodes)?n:[])if(eD(e)){let t=e.offsetTop,n=t+e.clientHeight+o,l=r.scrollTop,u=l+r.clientHeight;if(t>=l&&n<=u)a--;else{s=Math.max(0,Math.min(n,u)-Math.max(t,l)),i=e.clientHeight;break}}a>=1&&E(e=>{let t=i*a-s+o;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:a=0,minItemsVisible:i=4,referenceOverflowThreshold:s=0,scrollRef:l,...u}=(0,tG.evaluate)(f,e),{rects:c,elements:{floating:d}}=e,h=t.current[a],p=(null==l?void 0:l.current)||d,m=d.clientTop||p.clientTop,v=0!==d.clientTop,g=0!==p.clientTop,b=d===p;if(!h)return{};let y={...e,...await (0,tW.offset)(-h.offsetTop-d.clientTop-c.reference.height/2-h.offsetHeight/2-o).fn(e)},x=await (0,tB.detectOverflow)(t3(y,p.scrollHeight+m+d.clientTop),u),w=await (0,tB.detectOverflow)(y,{...u,elementContext:"reference"}),E=(0,tG.max)(0,x.top),j=y.y+E,S=(p.scrollHeight>p.clientHeight?e=>e:tG.round)((0,tG.max)(0,p.scrollHeight+(v&&b||g?2*m:0)-E-(0,tG.max)(0,x.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=E,r){let e=p.offsetHeight<h.offsetHeight*(0,tG.min)(i,t.current.length)-1||w.top>=-s||w.bottom>=-s;D.flushSync(()=>r(e))}return n&&(n.current=await (0,tB.detectOverflow)(t3({...y,y:j},p.offsetHeight+m+d.clientTop),u)),{y:j}}}:null,(0,tW.size)({padding:F,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:tB.autoUpdate}),[H=M,q=A]=_.placement.split("-");"selection"===M&&(H="selection");let B=(0,N.useMemo)(()=>
5({anchor:[H,q].filter(Boolean).join(" ")}),[H,q]),{getReferenceProps:W,getFloatingProps:z}=(h=(n=[function(e,t){let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:a,scrollRef:i,onChange:s}=t,l=tU(s),u=N.useRef(!1),c=N.useRef(null),d=N.useRef(null);N.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==a.current)return;let n=e.deltaY,r=a.current.top>=-.5,o=a.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!o&&n<0)e.preventDefault(),D.flushSync(()=>{l(e=>e+Math[u](n,i*s))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==i?void 0:i.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=a.current&&(d.current={...a.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,a,i,l]);let f=N.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==i?void 0:i.current)||r.floating;if(a.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(a.current.bottom<-.5&&t<-1||a.current.top<-.5&&t>1)&&D.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,l,a,i]);return N.useMemo(()=>o?{floating:f}:{},[o,f])}(_,{overflowRef:j,onChange:E})]).map(e=>null==e?void 0:e.reference),p=n.map(e=>null==e?void 0:e.floating),m=n.map(e=>null==e?void 0:e.item),v=N.useCallback(e=>t6(e,n,"reference"),h),g=N.useCallback(e=>t6(e,n,"floating"),p),b=N.useCallback(e=>t6(e,n,"item"),m),N.useMemo(()=>({getReferenceProps:v,getFloatingProps:g,getItemProps:b}),[v,g,b])),G=eA(e=>{C(e),I.setFloating(e)});return N.createElement(t8.Provider,{value:x},N.createElement(t4.Provider,{value:{setFloating:G,setReference:I.setReference,styles:R,getReferenceProps:W,getFloatingProps:z,slot:B}},e))}function t9(e,t,n){let r=eF(),o=eA((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=ne(e,t);return[o,n=>{let a=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let i=a.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function s(){r.nextFrame(s);let l=!1;for(let[e,n]of a.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(i[e]!==r){i[e]=r,l=!0;break}}if(!l)return;let u=ne(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),a=(0,N.useMemo)(()=>o(e,t)[0],[e,t]),[i=a,s]=(0,N.useState)();return eL(()=>{let[n,r]=o(e,t);if(s(n),r)return r(s)},[e,t]),i}function ne(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}t8.displayName="PlacementContext";let nt=(0,N.createContext)(null);nt.displayName="OpenClosedContext";var nn=((m=nn||{})[m.Open=1]="Open",m[m.Closed=2]="Closed",m[m.Closing=4]="Closing",m[m.Opening=8]="Opening",m);function nr(){return(0,N.useContext)(nt)}function no({value:e,children:t}){return N.default.createElement(nt.Provider,{value:e},t)}function na({children:e}){return N.default.createElement(nt.Provider,{value:null},e)}function ni(e){var t;let n=e.parentElement,r=null;for(;n&&!(eD(t=n)&&"FIELDSET"===t.nodeName);)eH(n)&&(r=n),n=n.parentElement;let o=(null==n?void 0:n.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(eH(t))return!1;t=t.previousElementSibling}return!0}(r))&&o}var ns=((v=ns||{}).Space=" ",v.Enter="Enter",v.Escape="Escape",v.Backspace="Backspace",v.Delete="Delete",v.ArrowLeft="ArrowLeft",v.ArrowUp="ArrowUp",v.ArrowRight="ArrowRight",v.ArrowDown="ArrowDown",v.Home="Home",v.End="End",v.PageUp="PageUp",v.PageDown="PageDown",v.Tab="Tab",v);function nl(e){let t=eA(e),n=(0,N.useRef)(!1);(0,N.useEffect)(()=>(n.current=!1,()=>{n.current=!0,eT(()=>{n.current&&t()})}),[t])}let nu=(0,N.createContext)(!1),nc=N.Fragment,nd=te(function(e,t){let{ownerDocument:n=null,...r}=e,o=(0,N.useRef)(null),a=tM(tL(e=>{o.current=e}),t),i=e1(o.current),s=function(e){let t=(0,N.useContext)(nu),n=(0,N.useContext)(nh),[r,o]=(0,N.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(eC.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");
5if(o)return o;if(null===e)return null;let a=e.createElement("div");return a.setAttribute("id","headlessui-portal-root"),e.body.appendChild(a)});return(0,N.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,N.useEffect)(()=>{t||null!==n&&o(n.current)},[n,o,t]),r}(null!=n?n:i),l=(0,N.useContext)(np),u=eF(),c=e3();return nl(()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))}),s?(0,D.createPortal)(N.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),l&&e&&u.add(l.register(e))}},c({ourProps:{ref:a},theirProps:r,slot:{},defaultTag:nc,name:"Portal"})),s):null}),nf=N.Fragment,nh=(0,N.createContext)(null),np=(0,N.createContext)(null),nm=Object.assign(te(function(e,t){let n=tM(t),{enabled:r=!0,ownerDocument:o,...a}=e,i=e3();return r?N.default.createElement(nd,{...a,ownerDocument:o,ref:n}):i({ourProps:{ref:n},theirProps:a,slot:{},defaultTag:nc,name:"Portal"})}),{Group:te(function(e,t){let{target:n,...r}=e,o={ref:tM(t)},a=e3();return N.default.createElement(nh.Provider,{value:n},a({ourProps:o,theirProps:r,defaultTag:nf,name:"Popover.Group"}))})});var nv=Object.defineProperty,ng=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?nv(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},nb=((g=nb||{})[g.Open=0]="Open",g[g.Closed=1]="Closed",g),ny=((b=ny||{})[b.OpenPopover=0]="OpenPopover",b[b.ClosePopover=1]="ClosePopover",b[b.SetButton=2]="SetButton",b[b.SetButtonId=3]="SetButtonId",b[b.SetPanel=4]="SetPanel",b[b.SetPanelId=5]="SetPanelId",b);let nx={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
5e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class nw extends tg{constructor(e){super(e),ng(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?eD(e)?e:"current"in e&&eD(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),ng(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=ek(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let r=eK(n),o=r.indexOf(e.button),a=(o+r.length-1)%r.length,i=(o+1)%r.length,s=r[a],l=r[i];return!e.panel.contains(s)&&!e.panel.contains(l)}});{let e=this.state.id,t=tk.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new nw({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return eq(t.type,nx,e,t)}}let nE=(0,N.createContext)(null);function nj(e){let t=(0,N.useContext)(nE);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,nj),t}return t}let nS=(0,N.createContext)(null);function nC(){return(0,N.useContext)(nS)}nS.displayName="PopoverGroupContext";let nk=(0,N.createContext)(null);nk.displayName="PopoverPanelContext";let nN=e2.RenderStrategy|e2.Static;function nP(e,t){let n=(0,N.useId)(),{id:r=`headlessui-popover-backdrop-${n}`,transition:o=!1,...a}=e,i=nj("Popover.Backdrop"),s=tP(i,(0,N.useCallback)(e=>e.popoverState,[])),[l,u]=(0,N.useState)(null),c=tM(t,u),d=nr(),[f,h]=t_(o,l,null!==d?(d&nn.Open)===nn.Open:s===nb.Open),p=eA(e=>{if(ni(e.currentTarget))return e.preventDefault();i.actions.close()}),m=tO({open:s===nb.Open}),v={ref:c,id:r,"aria-hidden":!0,onClick:p,...tD(h)};return e3()({ourProps:v,theirProps:a,slot:m,defaultTag:"div",features:nN,visible:f,name:"Popover.Backdrop"})}let nT=e2.RenderStrategy|e2.Static,nO=te(function(e,t){var n,r,o,a,i;let s,l,u,c,d,f,h,p,m,v,g=(0,N.useId)(),{__demoMode:b=!1,...y}=e,x=function({id:e,__demoMode:t=!1}){let n=(0,N.useMemo)(()=>nw.new({id:e,__demoMode:t}),[]);return nl(()=>n.dispose()),n}({id:g,__demoMode:b}),w=(0,N.useRef)(null),E=tM(t,tL(e=>{w.current=e})),[j,S,C,k,P]=tP(x,(0,N.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),T=function(...e){return(0,N.useMemo)(()=>eN(...e),[...e])}(null!=(n=w.current)?n:S),O=eM(k),F=eM(P),L=(0,N.useMemo)(()=>({buttonId:O,panelId:F,close:x.actions.close}),[O,F,x]),M=nC(),A=null==M?void 0:M.registerPopover,I=eA(()=>{var e,t;let n=eP(null!=(e=w.current)?e:S);return null!=(t=null==M?void 0:M.isFocusWithinPopoverGroup())?t:n&&((null==S?void 0:S.contains(n))||(null==C?void 0:C.contains(n)))});(0,N.useEffect)(()=>null==A?void 0:A(L),[A,L]);let[R,D]=(s=(0,N.useContext)(np),l=(0,N.useRef)([]),u=eA(e=>(l.current.push(e),s&&s.register(e),()=>c(e))),c=eA(e=>{let t=l.current.indexOf(e);-1!==t&&l.current.splice(t,1),s&&s.unregister(e)}),d=(0,N.useMemo)(()=>({register:u,unregister:c,portals:l}),[u,c,l]),[l,(0,N.useMemo)(()=>function({children:e}){return N.default.createElement(np.Provider,{value:d},e)},[d])]),_=tl(S),H=function({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=eA(()=>{var r,o;let a=ek(n),i=[];for(let t of e)null!==t&&(eR(t)?i.push(t):"current"in t&&eR(t.current)&&i.push(t.current));if(null!=t&&t.current)for(let e of t.current)i.push(e);for(let e of null!=(r=null==a?void 0:a.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&eR(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(o=null==n?void 0:n.getRootNode())?void 0:o.host))||i.some(t=>e.contains(t))||i.push(e));return i});
5return{resolveContainers:r,contains:eA(e=>r().some(t=>t.contains(e)))}}({mainTreeNode:_,portals:R,defaultContainers:[{get current(){return x.state.button}},{get current(){return x.state.panel}}]});r=T,o="focus",f=eM(e=>{var t,n,r,o,a,i;e.target!==window&&e_(e.target)&&x.state.popoverState===nb.Open&&(I()||x.state.button&&x.state.panel&&(H.contains(e.target)||null!=(n=null==(t=x.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(o=null==(r=x.state.afterPanelSentinel.current)?void 0:r.contains)&&o.call(r,e.target)||null!=(i=null==(a=x.state.afterButtonSentinel.current)?void 0:a.contains)&&i.call(a,e.target)||x.actions.close()))}),(0,N.useEffect)(()=>{function e(e){f.current(e)}return(r=null!=r?r:window).addEventListener(o,e,!0),()=>r.removeEventListener(o,e,!0)},[r,o,!0]),a=j===nb.Open,i=H.resolveContainers,h=eM((e,t)=>{x.actions.close(),eU(t,e$.Loose)||(e.preventDefault(),null==S||S.focus())}),p=(0,N.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]}(i))if(null!==t&&(t.contains(n)||e.composed&&e.composedPath().includes(t)))return;return eU(n,e$.Loose)||-1===n.tabIndex||e.preventDefault(),h.current(e,n)}},[h,i]),m=(0,N.useRef)(null),eJ(a,"pointerdown",e=>{var t,n;eZ()||(m.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),eJ(a,"pointerup",e=>{if(eZ()||!m.current)return;let t=m.current;return m.current=null,p(e,()=>t)},!0),v=(0,N.useRef)({x:0,y:0}),eJ(a,"touchstart",e=>{v.current.x=e.touches[0].clientX,v.current.y=e.touches[0].clientY},!0),eJ(a,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-v.current.x)>=30||Math.abs(t.y-v.current.y)>=30))return p(e,()=>e_(e.target)?e.target:null)},!0),e0(a,"blur",e=>p(e,()=>{var e;return eD(e=window.document.activeElement)&&"IFRAME"===e.nodeName?window.document.activeElement:null}),!0);let q=tO({open:j===nb.Open,close:x.actions.refocusableClose}),B=tP(x,(0,N.useCallback)(e=>eq(e.popoverState,{[nb.Open]:nn.Open,[nb.Closed]:nn.Closed}),[])),W=e3();return N.default.createElement(ts,{node:_},N.default.createElement(t7,null,N.default.createElement(nk.Provider,{value:null},N.default.createElement(nE.Provider,{value:x},N.default.createElement(tq,{value:x.actions.refocusableClose},N.default.createElement(no,{value:B},N.default.createElement(D,null,W({ourProps:{ref:E},theirProps:y,slot:q,defaultTag:"div",name:"Popover"}))))))))}),nF=te(function(e,t){let n=(0,N.useId)(),{id:r=`headlessui-popover-button-${n}`,disabled:o=!1,autoFocus:a=!1,...i}=e,s=nj("Popover.Button"),[l,u,c,d,f,h,p]=tP(s,(0,N.useCallback)(e=>[e.popoverState,s.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),m=(0,N.useRef)(null),v=`headlessui-focus-sentinel-${(0,N.useId)()}`,g=nC(),b=null==g?void 0:g.closeOthers,y=null!==(0,N.useContext)(nk);(0,N.useEffect)(()=>{if(!y)return s.actions.setButtonId(r),()=>s.actions.setButtonId(null)},[y,r,s]);let[x]=(0,N.useState)(()=>Symbol()),w=tM(m,t,(0,N.useContext)(t4).setReference,eA(e=>{if(!y){if(e)s.state.buttons.current.push(x);else{let e=s.state.buttons.current.indexOf(x);-1!==e&&s.state.buttons.current.splice(e,1)}s.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&s.actions.setButton(e)}})),E=tM(m,t),j=eA(e=>{var t,n,r;if(y){if(s.state.popoverState===nb.Closed)return;switch(e.key){case ns.Space:case ns.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),s.actions.close(),null==(r=s.state.button)||r.focus()}}else switch(e.key){case ns.Space:case ns.Enter:e.preventDefault(),e.stopPropagation(),s.state.popoverState===nb.Closed?(null==b||b(s.state.buttonId),s.actions.open()):s.actions.close();break;case ns.Escape:if(s.state.popoverState!==nb.Open)return null==b?void 0:b(s.state.buttonId);if(!m.current)return;let o=eP(m.current);if(o&&!m.current.contains(o))return;e.preventDefault(),e.stopPropagation(),s.actions.close()}}),S=eA(e=>{y||e.key===ns.Space&&e.preventDefault()}),C=eA(e=>{var t,n;ni(e.currentTarget)||o||(y?(s.actions.close(),null==(t=s.state.button)||t.focu
5s()):(e.preventDefault(),e.stopPropagation(),s.state.popoverState===nb.Closed?(null==b||b(s.state.buttonId),s.actions.open()):s.actions.close(),null==(n=s.state.button)||n.focus()))}),k=eA(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:P,focusProps:T}=function(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:o}=e,a=(0,N.useRef)({isFocused:!1,isFocusVisible:n||em()}),[i,s]=(0,N.useState)(!1),[l,u]=(0,N.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),c=(0,N.useCallback)(()=>u(a.current.isFocused&&a.current.isFocusVisible),[]),d=(0,N.useCallback)(e=>{a.current.isFocused=e,s(e),c()},[c]);t={isTextInput:r},eh(),(0,N.useEffect)(()=>{let e=(e,n)=>{var r;let o,i,s,l,u;r=!!(null==t?void 0:t.isTextInput),o=B(null==n?void 0:n.target),i="u">typeof window?W(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,s="u">typeof window?W(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="u">typeof window?W(null==n?void 0:n.target).HTMLElement:HTMLElement,u="u">typeof window?W(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent,(r=r||o.activeElement instanceof i&&!ev.has(o.activeElement.type)||o.activeElement instanceof s||o.activeElement instanceof l&&o.activeElement.isContentEditable)&&"keyboard"===e&&n instanceof u&&!ei[n.key]||(e=>{a.current.isFocusVisible=e,c()})(em())};return en.add(e),()=>{en.delete(e)}},[]);let{focusProps:f}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,a=(0,N.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),i=G(a),s=(0,N.useCallback)(e=>{var t;let r=B(e.target),a=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();e.target===e.currentTarget&&a===(t=e.nativeEvent,t.target)&&(n&&n(e),o&&o(!0),i(e))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?a:void 0}}}({isDisabled:o,onFocusChange:d}),{focusWithinProps:h}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,a=(0,N.useRef)({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:s}=eb(),l=(0,N.useCallback)(e=>{e.currentTarget.contains(e.target)&&a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))},[n,o,a,s]),u=G(l),c=(0,N.useCallback)(e=>{var t;if(!e.currentTarget.contains(e.target))return;let n=B(e.target),s=((e=document)=>e.activeElement)(n);if(!a.current.isFocusWithin&&s===(t=e.nativeEvent,t.target)){r&&r(e),o&&o(!0),a.current.isFocusWithin=!0,u(e);let t=e.currentTarget;i(n,"focus",e=>{if(a.current.isFocusWithin&&!eg(t,e.target)){let r=new n.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:t}),Object.defineProperty(r,"currentTarget",{value:t}),l(z(r))}},{capture:!0})}},[r,o,u,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}({isDisabled:!o,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:l,focusProps:o?h:f}}({autoFocus:a}),{isHovered:O,hoverProps:F}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[a,i]=(0,N.useState)(!1),s=(0,N.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,N.useEffect)(eE,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=eb(),{hoverProps:c,triggerHoverEnd:d}=(0,N.useMemo)(()=>{let e=(e,t)=>{let o=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&o&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),i(!1))},a={};return"u">typeof PointerEvent&&(a.onPointerEnter=r=>{ey&&"mouse"===r.pointerType||((r,a)=>{if(s.pointerType=a,o||"touch"===a||s.isHovered||!r.currentTarget.contains(r.target))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,l(B(r.target),"pointerover",t=>{s.isHovered&&s.target&&!eg(s.target,t.target)&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:a}),n&&n(!0),i(!0)})(r,r.pointerType)},a.onPointerLeave=t=>{!o&&t.currentTarget.contains(t.target)&&e(t,t.pointerType)}),{hoverProps:a,triggerHoverEnd:e}},[t,n,r,o,s,l,u]);return(0,N.useEffect)(()=>{o&&d({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:c,isHovered:a}}({isDisabled:o}),{pressed:L,pressProps:M}=function({disabled:e=!1}={}){let t=(0,N.useRef)(null),[n,r]=(0,N.useState)(!1),o=eF(),a=eA(()=>{t.current=null,r(!1),o.dispose()}),i=eA(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=ek(e.currentTarget);o.addEventListener(n,"pointerup",a,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let a,i;r((a=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+a,bottom:e.clientY+i,left:e.clientX-a},o=t.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:i,onPointerUp:a,onClick:a}}}({disabled:o}),A=l===nb.Open,I=tO({open:A,active:L||A,disabled:o,hover:O,focus:P,autofocus:a}),R=(0,N.useMemo)(()=>{var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==c?void 0:c.tagName)==="BUTTON"&&!c.hasAttribute("type"))return"button"},[e.type,e.as,c]),D=y?e9({ref:E,type:R,onKeyDown:j,onClick:C,disabled:o||void 0,autoFocus:a},T,F,M):e9({ref:w,id:d,type:R,"aria-expanded":l===nb.Open,"aria-controls":f?h:void 0,disabled:o||void 0,autoFocus:a,onKeyDown:j,onKeyUp:S,onClick:C,onMouseDown:k},T,F,M),_=tI(),H=eA(()=>{if(!eD(s.state.panel))return;let e=s.state.panel;eq(_.current,{[tA.Forwards]:()=>eY(e,ez.First),[tA.Backwards]:()=>eY(e,ez.Last)})===eG.Error&&eY(eK(eN(s.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),eq(_.current,{[tA.Forwards]:ez.Next,[tA.Backwards]:ez.Previous}),{relativeTo:s.state.button})}),q=e3();return N.default.createElement(N.default.Fragment,null,q({ourProps:D,theirProps:i,slot:I,defaultTag:"button",name:"Popover.Button"}),A&&!y&&u&&N.default.createElement(ta,{id:v,ref:p,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:H}))}),nL=te(nP),nM=te(nP),nA=te(function(e,t){var n;let r,o=(0,N.useId)(),{id:a=`headlessui-popover-panel-${o}`,focus:i=!1,anchor:s,portal:l=!1,modal:u=!1,transition:c=!1,...d}=e,f=nj("Popover.Panel"),h=tP(f,f.selectors.isPortalled),[p,m,v,g,b]=tP(f,(0,N.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),y=`headlessui-focus-sentinel-before-${o}`,x=`headlessui-focus-sentinel-after-${o}`,w=(0,N.useRef)(null),E=(0,N.useMemo)(()=>s?"string"==typeof s?{to:s}:s:null,[s]),[j,S]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,N.useContext)(t8),n=(0,N.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);eL(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,N.useContext)(t4);return(0,N.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}(E),C=function(){let{getFloatingProps:e,slot:t}=(0,N.useContext)(t4);return(0,N.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}();E&&(l=!0);let[k,P]=(0,N.useState)(null),T=tM(w,t,E?j:null,f.actions.setPanel,P),O=e1(m),F=e1(w.current);eL(()=>(f.actions.setPanelId(a),()=>f.actions.setPanelId(null)),[a,f]);let L=nr(),[M,A]=t_(c,k,null!==L?(L&nn.Open)===nn.Open:p===nb.Open);n=f.actions.close,r=eM(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}),(0,N.useEffect)(()=>
5{if(!M)return;let e=null===m?null:eD(m)?m:m.current;if(!e)return;let t=eO();if("u">typeof ResizeObserver){let n=new ResizeObserver(()=>r.current(e));n.observe(e),t.add(()=>n.disconnect())}if("u">typeof IntersectionObserver){let n=new IntersectionObserver(()=>r.current(e));n.observe(e),t.add(()=>n.disconnect())}return()=>t.dispose()},[m,r,M]),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=(0,N.useSyncExternalStore)(tc.subscribe,tc.getSnapshot,tc.getSnapshot),o=t?r.get(t):void 0;o&&o.count,eL(()=>{if(!(!t||!e))return tc.dispatch("PUSH",t,n),()=>tc.dispatch("POP",t,n)},[e,t])}(function(e,t){let n=(0,N.useId)(),r=tk.get(t),[o,a]=tP(r,(0,N.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return eL(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!a||o)}(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!v&&u&&M,F);let I=eA(e=>{var t;if(e.key===ns.Escape){if(f.state.popoverState!==nb.Open||!w.current)return;let n=eP(w.current);if(n&&!w.current.contains(n))return;e.preventDefault(),e.stopPropagation(),f.actions.close(),null==(t=f.state.button)||t.focus()}});(0,N.useEffect)(()=>{var t;e.static||p===nb.Closed&&(null==(t=e.unmount)||t)&&f.actions.setPanel(null)},[p,e.unmount,e.static,f]),(0,N.useEffect)(()=>{if(v||!i||p!==nb.Open||!w.current)return;let e=eP(w.current);w.current.contains(e)||eY(w.current,ez.First)},[v,i,w.current,p]);let R=tO({open:p===nb.Open,close:f.actions.refocusableClose}),D=e9(E?C():{},{ref:T,id:a,onKeyDown:I,onBlur:i&&p===nb.Open?e=>{var t,n,r,o,a;let i=e.relatedTarget;i&&w.current&&(null!=(t=w.current)&&t.contains(i)||(f.actions.close(),(null!=(r=null==(n=g.current)?void 0:n.contains)&&r.call(n,i)||null!=(a=null==(o=b.current)?void 0:o.contains)&&a.call(o,i))&&i.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...d.style,...S,"--button-width":function(e,t,n=!1){let[r,o]=(0,N.useState)(()=>eI(t));return eL(()=>{if(!t||!e)return;let n=eO();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=eI(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}(M,m,!0).width},...tD(A)}),_=tI(),H=eA(()=>{let e=w.current;e&&eq(_.current,{[tA.Forwards]:()=>{var t;eY(e,ez.First)===eG.Error&&(null==(t=f.state.afterPanelSentinel.current)||t.focus())},[tA.Backwards]:()=>{var e;null==(e=f.state.button)||e.focus({preventScroll:!0})}})}),q=eA(()=>{let e=w.current;e&&eq(_.current,{[tA.Forwards]:()=>{var e;if(!f.state.button)return;let t=eK(null!=(e=eN(f.state.button))?e:document.body),n=t.indexOf(f.state.button),r=t.slice(0,n+1),o=[...t.slice(n+1),...r];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=k&&k.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}eY(o,ez.First,{sorted:!1})},[tA.Backwards]:()=>{var t;eY(e,ez.Previous)===eG.Error&&(null==(t=f.state.button)||t.focus())}})}),B=e3();return N.default.createElement(na,null,N.default.createElement(nk.Provider,{value:a},N.default.createElement(tq,{value:f.actions.refocusableClose},N.default.createElement(nm,{enabled:!!l&&(e.static||M),ownerDocument:O},M&&h&&N.default.createElement(ta,{id:y,ref:g,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:H}),B({ourProps:D,theirProps:d,slot:R,defaultTag:"div",features:nT,visible:M,name:"Popover.Panel"}),M&&h&&N.default.createElement(ta,{id:x,ref:b,features:to.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:q})))))}),nI=te(function(e,t){let n=(0,N.useRef)(null),r=tM(n,t),[o,a]=(0,N.useState)([]),i=eA(e=>{a(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),s=eA(e=>(a(t=>[...t,e]),()=>i(e))),l=eA(()=>{var e;let t=eN(n.current);if(!t)return!1;let r=eP(n.current);return!!(null!=(e=n.current)&&e.contains(r))||o.some(e=>{var n,o;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(o=t.getElementById(e.panelId.current))?void 0:o.contains(r))})}),u=eA(e=>{for(let t of o)t.buttonId.current!==e&&t.close()}),c=(0,N.useMemo)(()=>({registerPopover:s,unregisterPopover:i,isFocusWithinPopoverGroup:l,closeOthers:u}),[s,i,l,u]),d=tO({}),f=e3();return N.default.createElement(ts,null,N.default.createElement(nS.Provider,{value:c},f({ourProps:{ref:r},theirProps:e,slot:d,defaultTag:"div",name:"Popover.Group"})))}),nR=Object.assign(nO,{Button:nF,Backdrop:nM,Overlay:nL,Panel:nA,Group:nI});var nD=e.i(618566),n_=e.i(374500),nH=e.i(500261);function nq(e){return e instanceof HTMLElement&&!!e.closest("a[href]")}let nB={gator:{image:"https://assets.woodland.social/new_woodland/extra/gator_banner.png",alt:"Gator Collection"},grizzly:{image:"https://assets.woodland.social/new_woodland/extra/grizzly_banner.png",alt:"Grizzly Collection"},rhino:{image:"https://assets.woodland.social/new_woodland/extra/rhino_banner.png",alt:"Rhino Collection"},hawk:{image:"https://assets.woodland.social/new_woodland/extra/hawk_banner.png",alt:"Hawk Collection"}},nW=(0,n_.menuFor)(),nz=(0,nH.treeFor)("MEN").groups.find(e=>"featured"===e.id);function nG({onClose:e}){return(0,N.useEffect)(()=>(window.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{window.removeEventListener("scroll",e,{capture:!0})}),[e]),(0,D.createPortal)((0,k.jsx)("div",{className:"fixed inset-0 z-30 bg-black/20",onClick:e}),document.body)}let nQ="relative flex items-center text-nowrap text-sm font-medium text-white transition-colors duration-200 hover:text-white/70";function nK(){let e=(0,nD.usePathname)().startsWith("/khiladi-sale");return(0,k.jsx)("a",{href:"/khiladi-sale","aria-current":e?"page":void 0,className:(0,A.cn)(nQ,e&&"text-[#e7ad1c] hover:text-[#e7ad1c] after:absolute after:inset-x-0 after:-bottom-2 after:h-px after:bg-[#e7ad1c]"),children:"Khiladi Edition"})}function n$(){return(0,k.jsx)(nI,{className:"hidden min-w-0 lg:block lg:flex-1 lg:self-stretch",children:(0,k.jsxs)("div",{className:"flex h-full min-w-0 items-center gap-6 xl:gap-8",children:[nW.map(e=>(0,k.jsx)(nU,{tree:e},e.gender)),nH.CATEGORY_PAGES.map(e=>"Featured"===e.name?(0,k.jsx)(nV,{},e.name):"/khiladi-sale"===e.href?(0,k.jsx)(N.Suspense,{fallback:(0,k.jsx)("a",{href:e.href,className:nQ,children:e.name}),children:(0,k.jsx)(nK,{})},e.name):(0,k.jsx)("a",{href:e.href,className:nQ,children:e.name},e.name))]})})}function nU({tree:e}){let t=function(e,t=2){let n=[];for(let r=0;r<e.length;r+=t)n.push([...e.slice(r,r+t)]);return n}(e.groups);return(0,k.jsx)(nR,{className:"flex",children:({open:n,close:r})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"relative flex",children:(0,k.jsxs)(nF,{className:"group relative z-10 flex items-center justify-center border-none text-sm font-medium text-white outline-none transition-colors duration-200 ease-out hover:text-white/70 data-open:text-indigo-600",children:[e.name,(0,k.jsx)("span",{"aria-hidden":"true",className:"absolute inset-x-0 bottom-0 h-0.5 transition-colors duration-200 ease-out group-data-open:bg-indigo-600 sm:mt-5 sm:translate-y-
5px sm:transform"})]})}),n?(0,k.jsxs)(nA,{static:!0,className:"absolute inset-x-0 top-full z-9999",onClickCapture:e=>{nq(e.target)&&r()},children:[(0,k.jsx)(nG,{onClose:r}),(0,k.jsx)("div",{className:"relative overflow-y-auto bg-white px-4",children:(0,k.jsx)("div",{className:"mx-auto max-w-7xl",children:(0,k.jsxs)("div",{className:"grid grid-cols-2 gap-x-8 gap-y-10 py-8",children:[(0,k.jsx)("div",{className:"grid grid-cols-2 grid-rows-1 gap-4 text-sm",children:e.featured.map((e,t)=>(0,k.jsxs)("a",{href:e.href,className:(0,A.cn)("group relative overflow-hidden rounded-lg bg-gray-100 transition-shadow duration-150 [@media(hover:hover)_and_(pointer:fine)]:hover:shadow-xl",0===t&&"col-span-2"),children:[(0,k.jsx)("div",{className:(0,A.cn)("relative w-full",0===t?"aspect-2/1":"aspect-square"),children:(0,k.jsx)(R.default,{alt:e.imageAlt,src:e.imageSrc,fill:!0,sizes:0===t?"50vw":"25vw",className:"object-cover transition-opacity duration-150 [@media(hover:hover)_and_(pointer:fine)]:group-hover:opacity-75"})}),(0,k.jsx)("div",{"aria-hidden":"true",className:"absolute inset-0 bg-gradient-to-b from-transparent via-transparent to-black/70"}),(0,k.jsx)("div",{className:"absolute inset-0 flex items-end p-4",children:"sale"===e.name.toLowerCase()?null:(0,k.jsxs)("div",{children:[(0,k.jsx)("span",{className:"font-semibold text-white",children:e.name}),(0,k.jsx)("p",{className:"mt-0.5 text-sm text-white/90",children:"Shop Now"})]})})]},e.name))}),(0,k.jsx)("div",{className:"grid grid-cols-3 gap-x-8 gap-y-10 text-sm text-gray-500",children:t.map(e=>(0,k.jsx)("div",{className:"space-y-10",children:e.map(e=>(0,k.jsxs)("div",{children:[(0,k.jsx)("p",{className:"text-base font-semibold text-black",children:e.name}),(0,k.jsx)("ul",{className:"mt-4 space-y-3",children:e.items.map(e=>(0,k.jsx)("li",{children:(0,k.jsx)("a",{href:e.href,className:"text-sm font-medium text-gray-500 transition-colors duration-200 hover:text-gray-900",children:e.name})},e.slug))})]},e.id))},e[0]?.id))})]})})})]}):null]})})}function nV(){return nz?(0,k.jsx)(nR,{className:"flex",children:({open:e,close:t})=>(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{className:"relative flex",children:(0,k.jsx)(nF,{className:"group relative z-10 flex items-center justify-center border-none text-sm font-medium text-white outline-none transition-colors duration-200 ease-out hover:text-white/70",children:"Featured"})}),e?(0,k.jsxs)(nA,{static:!0,className:"absolute inset-x-0 top-full z-[9999]",onClickCapture:e=>{nq(e.target)&&t()},children:[(0,k.jsx)(nG,{onClose:t}),(0,k.jsx)("div",{className:"relative bg-white px-4 py-8",children:(0,k.jsx)("div",{className:"mx-auto grid max-w-7xl grid-cols-4 gap-4",children:nz.children.map(e=>{let t=nB[e.slug];return(0,k.jsx)("a",{href:(0,n_.featuredHref)(e.slug),children:(0,k.jsx)("div",{className:"bg-gray-100",children:(0,k.jsx)(R.default,{src:t?.image??"",alt:t?.alt??e.name,width:398,height:389,className:"size-full object-contain"})})},e.slug)})})})]}):null]})}):null}e.i(851231);var nY=e.i(482514),nX=e.i(387257),nZ=e.i(846753),nZ=nZ,nJ=e.i(30207),n0=e.i(934620),n1=e.i(991918),n5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,n1.createSlot)(`Primitive.${t}`),r=N.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,k.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),n2=e.i(802239);function n6(){return()=>{}}var n3="Avatar",[n4,n8]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>N.createContext(e));return function(n){let r=n?.[e]||t;return N.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=N.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let i=t=>{let{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=N.useMemo(()=>i,Object.values(i));return(0,k.jsx)(s.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){let s=i?.[e]?.[a]||o,l=N.useContext(s);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return N.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(n3),[n7,n9]=n4(n3),re=N.forwardRef((e,t)=>
5{let{__scopeAvatar:n,...r}=e,[o,a]=N.useState("idle");return(0,k.jsx)(n7,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:a,children:(0,k.jsx)(n5.span,{...r,ref:t})})});re.displayName=n3;var rt="AvatarImage",rn=N.forwardRef((e,t)=>{let{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...a}=e,i=n9(rt,n),s=function(e,{referrerPolicy:t,crossOrigin:n}){let r=(0,n2.useSyncExternalStore)(n6,()=>!0,()=>!1),o=N.useRef(null),a=r?(o.current||(o.current=new window.Image),o.current):null,[i,s]=N.useState(()=>ra(a,e));return(0,n0.useLayoutEffect)(()=>{s(ra(a,e))},[a,e]),(0,n0.useLayoutEffect)(()=>{let e=e=>()=>{s(e)};if(!a)return;let r=e("loaded"),o=e("error");return a.addEventListener("load",r),a.addEventListener("error",o),t&&(a.referrerPolicy=t),"string"==typeof n&&(a.crossOrigin=n),()=>{a.removeEventListener("load",r),a.removeEventListener("error",o)}},[a,n,t]),i}(r,a),l=(0,nJ.useCallbackRef)(e=>{o(e),i.onImageLoadingStatusChange(e)});return(0,n0.useLayoutEffect)(()=>{"idle"!==s&&l(s)},[s,l]),"loaded"===s?(0,k.jsx)(n5.img,{...a,ref:t,src:r}):null});rn.displayName=rt;var rr="AvatarFallback",ro=N.forwardRef((e,t)=>{let{__scopeAvatar:n,delayMs:r,...o}=e,a=n9(rr,n),[i,s]=N.useState(void 0===r);return N.useEffect(()=>{if(void 0!==r){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),i&&"loaded"!==a.imageLoadingStatus?(0,k.jsx)(n5.span,{...o,ref:t}):null});function ra(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}ro.displayName=rr;let ri=N.forwardRef(({className:e,...t},n)=>(0,k.jsx)(re,{ref:n,className:(0,A.cn)("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));ri.displayName=re.displayName;let rs=N.forwardRef(({className:e,...t},n)=>(0,k.jsx)(rn,{ref:n,className:(0,A.cn)("aspect-square h-full w-full",e),...t}));rs.displayName=rn.displayName;let rl=N.forwardRef(({className:e,...t},n)=>(0,k.jsx)(ro,{ref:n,className:(0,A.cn)("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));rl.displayName=ro.displayName;var ru=e.i(786625),rc=e.i(39875),rd=e.i(23750),rf=e.i(531183);function rh({onOpen:e,open:t=!1}){return(0,k.jsxs)("button",{type:"button","aria-expanded":t,"aria-label":t?"Close search":"Search",className:"hidden size-10 shrink-0 items-center justify-center rounded-md text-white transition-[color,transform,background-color] duration-150 ease-out hover:bg-white/10 hover:text-white/70 active:scale-[0.96] md:flex",onMouseDown:e=>e.preventDefault(),onClick:e,children:[(0,k.jsx)("span",{className:"sr-only",children:t?"Close search":"Search"}),(0,k.jsx)(rc.MagnifyingGlassIcon,{"aria-hidden":"true",className:"size-6"})]})}function rp({onClose:e}){let t=(0,N.useRef)(null),n=(0,N.useRef)(Date.now()),r=(0,nD.useRouter)();return(0,k.jsxs)("form",{action:rf.STOREFRONT_LIST_ROOT,method:"get",className:"relative hidden min-w-0 flex-1 md:block",onSubmit:n=>{let o;n.preventDefault();let a=(o=(t.current?.value??"").trim())?`${rf.STOREFRONT_LIST_ROOT}?${new URLSearchParams({search:o})}`:null;a&&(e(),r.push(a))},children:[(0,k.jsx)(rc.MagnifyingGlassIcon,{className:"pointer-events-none absolute top-1/2 left-2.5 size-5 -translate-y-1/2 text-white/70"}),(0,k.jsx)(rd.Input,{ref:t,autoFocus:!0,className:(0,A.cn)("h-9 min-w-0 w-full rounded-md border-white/30 bg-transparent pl-9 text-white shadow-none placeholder:text-white/60 focus-visible:border-white/70 focus-visible:ring-0"),placeholder:"Search",name:"search",type:"search","aria-label":"Search products",onBlur:r=>{if(Date.now()-n.current<300)return;let o=r.relatedTarget;o instanceof Node&&r.currentTarget.form?.contains(o)||window.setTimeout(()=>{t.current!==document.activeElement&&e()},150)},onKeyDown:t=>{"Escape"===t.key&&e()}})]})}let rm=(0,T.observer)(function({session:e,searchOpen:t,onSearchOpen:n,onCartIntent:r,onLoginIntent:o}){let a=(0,F.useCommerceEngine)(),i=(0,ru.useHydrated)(),s=i?a.cart.totalItems:0,l=i?a.state.favoriteCount:0,u=e.isAuth||a.state.authenticated;return(0,k.jsxs)("div",{className:"hidden shrink-0 items-center justify-end gap-1 sm:gap-2 md:flex",children:[(0,k.jsx)(rh,{open:t,onOpen:n}),(0,k.jsxs)("a",{href:"/wishlist",className:"relative hidden size-10 shrink-0 items-center justify-center text-white transition-colors duration-150 ease-out hover:text-white/70 md:flex",children:[(0,k.jsx)(nY.HeartIcon,{className:"h-6 w-6"}),(0,k.jsx)("span",{suppressHydrationWarning:!0,className:(0,A.cn)("absolute top-0 right-0 flex h-4 w-4 items-center justify-center rounded-full bg-red-500 text-[0.625rem] font-medium text-white",l>0?"":"invisible"),children:l}),(0,k.jsx)("span",{className:"sr-only",children:"Favorites"})]}),u?(0,k.jsx)("a",{href:"/orders",className:"hidden touch-manipulation md:block",children:(0,k.jsx)(ri,{className:"h-8 w-8 ring-2 ring-white/20 transition-shadow hover:ring-white/40",children:e.user?.profile?(0,k.jsx)(rs,{src:"",alt:e.user?.name||"User"}):(0,k.jsx)(rl,{className:"bg-white/20 text-white",children:"W"})})}):(0,k.jsxs)("button",{type:"button",className:"hidden size-10 shrink-0 items-center justify-center text-white transition-[color,transform] duration-150 ease-out hover:text-white/70 active:scale-[0.96] md:flex",onClick:()=>a.state.openLogin(),onPointerEnter:o,onPointerDown:o,onFocus:o,children:[(0,k.jsx)("span",{className:"sr-only",children:"Account"}),(0,k.jsx)(nZ.default,{"aria-hidden":"true",className:"size-6"})]}),(0,k.jsx)("div",{className:"hidden md:block",children:(0,k.jsxs)("button",{type:"button",className:"group relative flex size-10 shrink-0 items-center justify-center text-white transition-transform duration-150 ease-out active:scale-[0.96]",onClick:()=>a.state.openCart(),onPointerEnter:r,onPointerDown:r,onFocus:r,children:[(0,k.jsx)(nX.ShoppingBagIcon,{"aria-hidden":"true",className:"size-6 shrink-0 text-white transition-colors group-hover:text-white/70"}),(0,k.jsx)("span",{suppressHydrationWarning:!0,className:(0,A.cn)("absolute top-0 right-0 flex size-4 items-center justify-center rounded-full bg-red-500 text-[0.625rem] font-medium text-white",s>0?"":"invisible"),children:s}),(0,k.jsx)("span",{className:"sr-only",children:"items in cart, view bag"})]})})]})});var rv=e.i(579697);let rg=(0,P.default)(()=>e.A(840623).then(e=>e.CartSheet),{loadableGenerated:{modules:[168817]},ssr:!1}),rb=(0,P.default)(()=>e.A(285419).then(e=>e.LoginSheet),{loadableGenerated:{modules:[279571]},ssr:!1}),ry=(0,P.default)(()=>e.A(599558).then(e=>e.SearchSheet),{loadableGenerated:{modules:[760319]},ssr:!1});function rx(){e.A(558160)}function rw(){e.A(724823)}let rE=(0,T.observer)(function({session:e}){let t=(0,F.useCommerceEngine)(),n=t.state.isSearchOpen,[r,o]=(0,N.useState)(!1);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)("div",{"data-desktop-header":!0,className:"sticky top-[var(--storefront-ticker-h)] z-50 hidden bg-primary md:block",children:(0,k.jsx)("header",{className:"relative bg-primary px-4",children:(0,k.jsx)("nav",{"aria-label":"Top",className:"mx-auto max-w-7xl",children:(0,k.jsxs)("div",{className:"flex h-12 min-w-0 items-center justify-between gap-3",children:[(0,k.jsxs)("a",{href:"/",className:"mr-4 flex shrink-0 lg:mr-6",children:[(0,k.jsx)("span",{className:"sr-only",children:"Woodland"}),(0,k.jsx)("img",{src:rv.WOODLAND_DESKTOP_LOGO,alt:"",width:140,height:50,loading:"lazy",className:"h-10 w-auto"})]}),r?(0,k.jsx)(rp,{onClose:()=>o(!1)}):(0,k.jsx)(n$,{}),(0,k.jsx)(rm,{session:e,searchOpen:r,onSearchOpen:()=>o(e=>!e),onCartIntent:rx,onLoginIntent:rw})]})})})}),t.state.isCartOpen?(0,k.jsx)(rg,{}):null,!e.isAuth&&t.state.loginOpen?(0,k.jsx)(rb,{}):null,n?(0,k.jsx)(ry,{isOpen:!0,onClose:()=>t.state.close()}):null]})});e.s(["HeaderClient",0,rE],150239)},353938,e=>{"use strict";var t=e.i(843476),n=e.i(618566),r=e.i(271645),o=e.i(307163),a=e.i(482514),i=e.i(39875),s=e.i(387257),l=e.i(558038),u=e.i(786625),c=e.i(85494),d=e.i(531183),f=e.i(647163);let h="relative z-10 flex size-11 shrink-0 items-center justify-center text-foreground transition-transform duration-150 ease-out active:scale-[0.96] motion-reduce:transform-none";function p({onOpen:e,trailing:n,idle:o}){let[a,s]=(0,r.useState)(!1);function l(){s(!1)}return a?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("form",{action:d.STOREFRONT_LIST_ROOT,method:"get",className:"relative z-10 min-w-0 flex-1 px-2",children:(0,t.jsx)("input",{autoFocus:!0,name:"search",type:"search",placeholder:"Search","aria-label":"Search products",onKeyDown:e=>{"Escape"===e.key&&l()},className:"h-9 w-full bg-transparent text-sm text-foreground outline-none placeholder:text-muted-foreground"})}),(0,t.jsxs)("button",{type:"button",className:h,onClick:l,children:[(0,t.jsx)("span",{className:"sr-only",children:"Close search"}
5),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-[11px] uppercase tracking-[0.14em]",children:"Close"})]})]}):(0,t.jsxs)(t.Fragment,{children:[o,(0,t.jsxs)("div",{className:"ml-auto flex items-center",children:[(0,t.jsx)("button",{type:"button",className:h,"aria-label":"Search",onClick:()=>{e?.(),s(!0)},children:(0,t.jsx)(i.MagnifyingGlassIcon,{"aria-hidden":!0,className:"size-5"})}),n]})]})}function m({label:e,onClick:n,onMouseEnter:r,className:o,children:a}){return(0,t.jsx)("button",{type:"button","aria-label":e,onClick:n,onMouseEnter:r,className:(0,f.cn)(h,o),children:a})}let v=(0,l.observer)(function(){let e=(0,c.useCommerceEngine)(),n=(0,u.useHydrated)(),r=n?e.cart.totalItems:0,o=n?e.state.favoriteCount:0;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{href:"/wishlist",className:(0,f.cn)(h,"relative"),children:[(0,t.jsx)(a.HeartIcon,{"aria-hidden":!0,className:"size-5"}),(0,t.jsx)("span",{className:(0,f.cn)("absolute top-1.5 right-1.5 size-1.5 rounded-full bg-primary",o>0?"":"invisible")}),(0,t.jsx)("span",{className:"sr-only",children:"Wishlist"})]}),(0,t.jsxs)(m,{label:"Cart",onClick:()=>e.state.openCart(),children:[(0,t.jsx)(s.ShoppingBagIcon,{"aria-hidden":!0,className:"size-5"}),(0,t.jsx)("span",{className:(0,f.cn)("absolute top-1.5 right-1.5 size-1.5 rounded-full bg-primary",r>0?"":"invisible")})]})]})});var g=e.i(443791),b=e.i(579697);function y({className:e,children:n}){return(0,t.jsx)("header",{"data-mobile-header":!0,className:(0,f.cn)("sticky top-[var(--storefront-ticker-h)] z-50 bg-white",e),children:(0,t.jsx)("div",{className:"relative flex h-12 items-center border-b border-black/8 px-1",children:n})})}function x(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"sr-only",children:"Woodland"}),(0,t.jsx)("img",{src:b.WOODLAND_MOBILE_LOGO,alt:"",width:120,height:40,loading:"lazy",className:"h-10 w-auto"})]})}function w(){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,className:"size-5",children:[(0,t.jsx)("path",{d:"M12 3.5v11",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M8.5 7 12 3.5 15.5 7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M6.5 10.5V18a2 2 0 0 0 2 2h7a2 2 0 0 0 2-2v-7.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}function E(){let e=(0,n.useRouter)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{"data-chrome-home":!0,href:"/",className:"relative z-10 ml-2 flex shrink-0 items-center",children:(0,t.jsx)(x,{})}),(0,t.jsx)("span",{"data-chrome-back":!0,children:(0,t.jsx)(m,{label:"Go back",onClick:()=>{if(window.history.length>1)return void e.back();let t="list"===document.documentElement.dataset.chrome;window.location.assign(t?d.STOREFRONT_LIST_ROOT:"/")},children:(0,t.jsx)(o.ChevronLeftIcon,{"aria-hidden":!0,className:"size-5"})})})]})}function j({merch:e}){let r=(0,n.usePathname)();return(0,t.jsx)("span",{className:"truncate",children:(0,g.listTitleFromPathname)(r,e)})}function S(){let e=(0,n.useSearchParams)();return(0,t.jsx)(j,{merch:(0,g.listMerchFromSearch)(e)})}function C(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{"data-chrome-title":!0,className:"pointer-events-none absolute inset-y-0 left-11 right-[8.5rem] items-center justify-center text-balance text-sm font-medium uppercase tracking-[0.14em] text-foreground",children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("span",{className:"truncate",children:"Â "}),children:(0,t.jsx)(S,{})})}),(0,t.jsx)("a",{"data-chrome-mark":!0,href:"/",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2",children:(0,t.jsx)(x,{})})]})}function k(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"data-chrome-share":!0,children:(0,t.jsx)(m,{label:"Share",onClick:function(){let e=window.location.href;navigator.share?navigator.share({url:e}).catch(()=>{}):navigator.clipboard.writeText(e)},children:(0,t.jsx)(w,{})})}),(0,t.jsx)(v,{})]})}e.s(["MobileStorefrontHeader",0,function(){return(0,t.jsxs)(y,{children:[(0,t.jsx)(E,{}),(0,t.jsx)(p,{idle:(0,t.jsx)(C,{}),trailing:(0,t.jsx)(k,{})})]})}],353938)},150068,e=>{"use strict";var t=e.i(271645),n=e.i(831007);e.s(["StorefrontBootSync",0,function(){return(0,t.useLayoutEffect)(()=>{let e=window.location.pathname,t="/"===e||""===e?"home":e.startsWith("/collections")?"list":e.startsWith("/product")?"product":"other";document.documentElement.dataset.chrome=t;try{document.documentElement.dataset.listDensity=(0,n.parseListDensity)(localStorage.getItem(n.LIST_DENSITY_STORAGE_KEY))}catch{document.documentElement.dataset.listDensity="2"}},[]),null}])},527317,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(618566),o=e.i(558038),a=e.i(387257),i=e.i(730049),s=e.i(927591),l=e.i(786625),u=e.i(85494),c=e.i(851231),d=e.i(816576),f=e.i(872937);let h=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:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))});function p(){return(0,t.jsxs)("span",{className:"relative inline-flex size-8 items-center justify-center",children:[(0,t.jsx)(h,{"aria-hidden":!0,strokeWidth:d.DOCK_ICON_STROKE,className:"size-7"}
5),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute top-0 left-[80%] -translate-x-1/2 rounded-full bg-[#d5232f] px-1 py-0.5 text-[0.5rem] font-bold leading-none tracking-wide text-white shadow-sm",children:"SALE"})]})}var m=e.i(898487),v=e.i(647163),g=e.i(281918),b=e.i(11309);let y="relative flex min-h-11 min-w-11 flex-col items-center justify-center rounded-lg transition-[transform,background-color,color] duration-150 ease-[var(--ease-out)] active:scale-[0.96] motion-reduce:transform-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";function x({children:e,className:n,type:r="button",...o}){return(0,t.jsx)("button",{type:r,className:(0,v.cn)(y,n),...o,children:e})}function w({className:e,...n}){return(0,t.jsx)("a",{className:(0,v.cn)(y,e),...n})}var E=e.i(226996);let j=(0,t.jsx)(m.WoodlandMarkIcon,{className:d.DOCK_HOME_ICON_CLASS});function S(){e.A(558160)}function C(){e.A(724823)}function k({active:e,children:n}){return(0,t.jsx)("span",{className:(0,v.cn)("flex items-center justify-center text-foreground transition-colors duration-150 ease-[var(--ease-out)]",e&&"text-primary"),children:n})}let N=(0,o.observer)(function(){let e=(0,u.useCommerceEngine)(),n=(0,l.useHydrated)()&&e.cart.totalItems>0,r=e.state.isCartOpen;return(0,t.jsxs)(x,{"aria-label":"Cart",className:"w-full",onClick:()=>e.state.openCart(),onPointerEnter:S,onPointerDown:S,onFocus:S,children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,v.cn)("absolute top-2 right-5 size-2 rounded-full bg-red-500",n?"":"invisible")}),(0,t.jsx)(k,{active:r,children:(0,t.jsx)(f.DockIcon,{icon:a.ShoppingBagIcon})})]})}),P=(0,o.observer)(function(){let e=(0,r.usePathname)(),n=(0,u.useCommerceEngine)(),o=(0,l.useHydrated)(),a=e.startsWith("/orders")||e.startsWith("/profile");return o&&n.state.authenticated?(0,t.jsx)(w,{href:b.PROFILE_HREF,className:"w-full","aria-label":"Profile","aria-current":a?"page":void 0,children:(0,t.jsx)(k,{active:a,children:(0,t.jsx)(f.DockIcon,{icon:s.UserIcon})})}):(0,t.jsx)(x,{"aria-label":"Sign in",className:"w-full",onClick:()=>n.state.openLogin(),onPointerEnter:C,onPointerDown:C,onFocus:C,children:(0,t.jsx)(k,{children:(0,t.jsx)(f.DockIcon,{icon:s.UserIcon})})})});function T(){let e=(0,r.usePathname)(),[o,a]=(0,n.useState)(!1);if(e.startsWith("/product/"))return null;let s="/cart"===e,l="/"===e,u=e.startsWith(b.SALE_HREF);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c.CategorySheet,{open:o,onOpenChange:a}),(0,t.jsx)(E.DockShell,{className:"border-t border-black/8 bg-white shadow-sm safe-area-bottom",children:(0,t.jsxs)("nav",{"aria-label":"Primary",className:(0,v.cn)("mx-auto grid grid-cols-5 bg-white",b.DOCK_HEIGHT_CLASS),children:[(0,t.jsx)(x,{"aria-label":"Categories","aria-expanded":o,"aria-haspopup":"dialog",className:(0,v.cn)("w-full",s&&"pointer-events-none opacity-50"),onClick:()=>{s||a(e=>(e||(0,g.beginStorefrontInteraction)("category"),!e))},children:(0,t.jsx)(k,{active:o,children:(0,t.jsx)(f.DockIcon,{icon:i.Squares2X2Icon})})}),(0,t.jsx)(w,{href:b.SALE_HREF,className:"w-full","aria-label":"Sale","aria-current":u?"page":void 0,children:(0,t.jsx)(k,{active:u,children:(0,t.jsx)(p,{})})}),(0,t.jsx)(w,{href:"/",className:"w-full","aria-label":"Home","aria-current":l?"page":void 0,children:(0,t.jsx)(k,{active:l,children:j})}),(0,t.jsx)(N,{}),(0,t.jsx)(P,{})]})})]})}e.s(["SessionDock",0,function(){return(0,t.jsx)(T,{})}],527317)},895933,e=>{"use strict";var t=e.i(843476),n=e.i(733977),r=e.i(447795);function o({item:e}){let n=!!e.code;return(0,t.jsxs)("button",{type:"button",disabled:!n,onClick:()=>{n&&(0,r.copyPromoCode)(e.code)},className:"flex h-8 shrink-0 items-center gap-2 whitespace-nowrap px-5 font-mono text-[0.6875rem] font-medium uppercase tracking-[0.16em] text-white transition-transform duration-150 ease-[
5cubic-bezier(0.23,1,0.32,1)] enabled:active:scale-[0.96] motion-reduce:transform-none even:bg-white/[0.07]",children:["first-purchase"===e.kind?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"font-semibold text-amber-300",children:"First order only"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"text-white/35",children:"·"})]}):null,e.sale?(0,t.jsx)("span",{className:"font-semibold",children:"Sale"}):null,e.sale?(0,t.jsx)("span",{"aria-hidden":!0,className:"text-white/35",children:"·"}):null,(0,t.jsx)("span",{className:"font-semibold tabular-nums",children:e.off}),n?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"text-white/35",children:"·"}),(0,t.jsx)("span",{className:"font-normal tracking-[0.12em] text-white/70",children:"Use code"}),(0,t.jsx)("span",{className:"font-semibold tracking-[0.18em]",children:e.code})]}):null]})}function a({items:e,copy:n=!1}){return(0,t.jsx)("div",{className:"offer-ticker-lane",...n?{"aria-hidden":!0,inert:!0}:{},children:e.map(e=>(0,t.jsx)(o,{item:e},e.id))})}function i({items:e}){let r=(0,n.loopTickerLane)(e);return(0,t.jsxs)("div",{className:"offer-ticker-track",style:{animationDuration:`${(0,n.tickerDurationSec)(r.length)}s`},children:[(0,t.jsx)(a,{items:r}),(0,t.jsx)(a,{items:r,copy:!0})]})}e.s(["OfferTicker",0,function({items:e}){return 0===e.length?null:(0,t.jsx)("div",{"data-offer-ticker":!0,className:"offer-ticker sticky top-0 z-[60] h-8 bg-black text-white safe-area-top",children:(0,t.jsx)("div",{role:"region","aria-label":"Sale and coupon offers",className:"offer-ticker-viewport",children:(0,t.jsx)(i,{items:[...e]})})})}])},396873,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(266027),o=e.i(540143),a=e.i(114272),i=e.i(619273),s=e.i(915823),l=class extends s.Subscribable{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new a.Mutation({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=u(e);if("string"==typeof t){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){let t=u(e);if("string"==typeof t){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){let t=u(e);if("string"!=typeof t)return!0;{let n=this.#t.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=u(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#t.get(t)?.find(t=>
5t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){o.notifyManager.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchMutation)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,i.matchMutation)(e,t))}notify(e){o.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return o.notifyManager.batch(()=>Promise.all(e.map(e=>e.continue().catch(i.noop))))}};function u(e){return e.options.scope?.id}var c=e.i(286491),d=s,f=class extends d.Subscribable{constructor(e={}){super(),this.config=e,this.#r=new Map}#r;build(e,t,n){let r=t.queryKey,o=t.queryHash??(0,i.hashQueryKeyByOptions)(r,t),a=this.get(o);return a||(a=new c.Query({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#r.has(e.queryHash)||(this.#r.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#r.get(e.queryHash);t&&(e.destroy(),t===e&&this.#r.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){o.notifyManager.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#r.get(e)}getAll(){return[...this.#r.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,i.matchQuery)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,i.matchQuery)(e,t)):t}notify(e){o.notifyManager.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){o.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){o.notifyManager.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},h=e.i(175555),p=e.i(814448),m=e.i(992571),v=class{#o;#a;#i;#s;#l;#u;#c;#d;constructor(e={}){this.#o=e.queryCache||new f,this.#a=e.mutationCache||new l,this.#i=e.defaultOptions||{},this.#s=new Map,this.#l=new Map,this.#u=0}mount(){this.#u++,1===this.#u&&(this.#c=h.focusManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#o.onFocus())}),this.#d=p.onlineManager.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#o.onOnline())}))}unmount(){this.#u--,0===this.#u&&(this.#c?.(),this.#c=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#o.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#o.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#o.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#o.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),o=this.#o.get(r.queryHash),a=o?.state.data,s=(0,i.functionalUpdate)(t,a);if(void 0!==s)return this.#o.build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return o.notifyManager.batch(()=>this.#o.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#o.get(t.queryHash)?.state}removeQueries(e){let t=this.#o;o.notifyManager.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#o;return o.notifyManager.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(o.notifyManager.batch(()=>this.#o.findAll(e).map(e=>e.cancel(n)))).then(i.noop).catch(i.noop)}invalidateQueries(e,t={}){return o.notifyManager.batch(()=>(this.#o.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(o.notifyManager.batch(()=>this.#o.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(i.noop)),"paused"===e.state.fetchStatus?Promise.resolve():t}
5))).then(i.noop)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#o.build(this,t);return n.isStaleByTime((0,i.resolveStaleTime)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(i.noop).catch(i.noop)}fetchInfiniteQuery(e){return e.behavior=(0,m.infiniteQueryBehavior)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(i.noop).catch(i.noop)}ensureInfiniteQueryData(e){return e.behavior=(0,m.infiniteQueryBehavior)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p.onlineManager.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#o}getMutationCache(){return this.#a}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#s.set((0,i.hashKey)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#l.set((0,i.hashKey)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#l.values()],n={};return t.forEach(t=>{(0,i.partialMatchKey)(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,i.hashQueryKeyByOptions)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===i.skipToken&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#o.clear(),this.#a.clear()}},g=e.i(912598),b=e.i(717521);function y({children:e}){let[r]=(0,n.useState)(()=>new v({mutationCache:new l({onError:e=>{(0,b.handleCapconsRequestError)({error:e})}}),defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1,staleTime:6e4}}}));return(0,t.jsx)(g.QueryClientProvider,{client:r,children:e})}var x=e.i(924540),w=e.i(150361);function E(){(0,x.c)("[nuqs] Aborting queues"),w.t.abortAll(),w.n.abort().forEach(e=>w.t.queuedQuerySync.emit(e))}var j=e.i(618566);let S=0;function C(){S=0,E()}function k(){--S<=0&&(S=0,queueMicrotask(E))}function N(){return(0,n.useEffect)(()=>(!function(){var e;if(e="next/app","u"<typeof history||(history.nuqs?.version&&"2.8.6"!==history.nuqs.version?(console.error((0,x.s)(409),history.nuqs.version,"2.8.6",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let t=history.replaceState,n=history.pushState;history.replaceState=function(e,n,r){return k(),t.call(history,e,n,r)},history.pushState=function(e,t,r){return k(),n.call(history,e,t,r)},history.nuqs=history.nuqs??{version:"2.8.6",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",C),()=>window.removeEventListener("popstate",C)),[]),null}let P=(0,x.n)(function(){let e=(0,j.useRouter)(),[t,r]=(0,n.useOptimistic)((0,j.useSearchParams)());return{searchParams:t,updateUrl:(0,n.useCallback)((t,o)=>{(0,n.startTransition)(()=>{o.shallow||r(t);let n=function(e){let{origin:t,pathname:n,hash:r}=location;return t+n+(0,x.o)(e)+r}(t);(0,x.c)("[nuqs next/app] Updating url: %s",n);let a="push"===o.history?history.pushState:history.replaceState;S=3,a.call(history,null,"",n),o.scroll&&window.scrollTo(0,0),o.shallow||e.replace(n,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!1}});function T({children:e,...t}){return(0,n.createElement)(P,{...t,children:[(0,n.createElement)(n.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,n.createElement)(N)}),e]})}function O({children:e}){return(0,t.jsx)(T,{children:e})}var F=e.i(846696);let L=({...e})=>(0,t.jsx)(F.Toaster,{theme:"light",position:"top-center",closeButton:!0,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e});var M=e.i(85494),A=e.i(95187);let I=(0,A.createServerReference)("00222f7b0576e3a9d27bf468ede92680e093427410",A.callServer,void 0,A.findSourceMapURL,"resolveAnalyticsUserId");e.s(["Providers",0,function({children:e,shell:n}){return(0,t.jsx)(y,{children:(0,t.jsxs)(M.CommerceEngineProvider,{children:[(0,t.jsx)(O,{children:e}),n,(0,t.jsx)(L,{})]})})},"SessionBootstrap",0,function(){let e=(0,M.useCommerceEngine)(),t=(0,r.useQuery)({queryKey:["session"],queryFn:async({signal:e})=>{let t=await fetch("/api/session",{credentials:"include",signal:e});if(!t.ok)throw Error("Unable to read session");return t.json()},staleTime:0,retry:0});return(0,n.useEffect)(()=>{let n=t.data;if(!n||(e.state.setSession({authenticated:n.authenticated,credential:n.credential,userId:n.userId||e.state.userId}
5),!n.authenticated||n.userId||e.state.userId))return;let r=!0;return I().then(t=>{r&&t&&e.state.setUserId(t)}),()=>{r=!1}},[e,t.data]),null}],396873)},786625,e=>{"use strict";var t=e.i(271645);let n=()=>()=>{};e.s(["useHydrated",0,function(){return(0,t.useSyncExternalStore)(n,()=>!0,()=>!1)}])},39875,579697,e=>{"use strict";var t=e.i(271645);let n=t.forwardRef(function({title:e,titleId:n,...r},o){return t.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":n},r),e?t.createElement("title",{id:n},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))});e.s(["MagnifyingGlassIcon",0,n],39875),e.s(["WOODLAND_DESKTOP_LOGO",0,"https://assets.woodland.social/new_woodland/header/color-logo.png","WOODLAND_MOBILE_LOGO",0,"https://assets.woodland.social/new_woodland/header/logo-white.png"],579697)},491708,(e,t,n)=>{!function(){"use strict";var e={};e.d=function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},void 0!==e&&(e.ab="/ROOT/node_modules/next/dist/compiled/web-vitals/");var n={};e.r(n),e.d(n,{CLSThresholds:function(){return N},FCPThresholds:function(){return C},FIDThresholds:function(){return ee},INPThresholds:function(){return q},LCPThresholds:function(){return W},TTFBThresholds:function(){return Q},onCLS:function(){return P},onFCP:function(){return k},onFID:function(){return et},onINP:function(){return B},onLCP:function(){return G},onTTFB:function(){return $}});var r,o,a,i,s,l=-1,u=function(e){addEventListener("pageshow",function(t){t.persisted&&(l=t.timeStamp,e(t))},!0)},c=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},d=function(){var e=c();return e&&e.activationStart||0},f=function(e,t){var n=c(),r="navigate";return l>=0?r="back-forward-cache":n&&(document.prerendering||d()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(0x82f79cd8fff*Math.random())+1e12),navigationType:r}},h=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){Promise.resolve().then(function(){t(e.getEntries())})});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},p=function(e,t,n,r){var o,a;return function(i){var s;t.value>=0&&(i||r)&&((a=t.value-(o||0))||void 0===o)&&(o=t.value,t.delta=a,s=t.value,t.rating=s>n[1]?"poor":s>n[0]?"needs-improvement":"good",e(t))}},m=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},v=function(e){document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&e()})},g=function(e){var t=!1;return function(){t||(e(),t=!0)}},b=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},x=function(e){"hidden"===document.visibilityState&&b>-1&&(b="visibilitychange"===e.type?e.timeStamp:0,E())},w=function(){addEventListener("visibilitychange",x,!0),addEventListener("prerenderingchange",x,!0)},E=function(){removeEventListener("visibilitychange",x,!0),removeEventListener("prerenderingchange",x,!0)},j=function(){return b<0&&(b=y(),w(),u(function(){setTimeout(function(){b=y(),w()},0)})),{get firstHiddenTime(){return b}}},S=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},C=[1800,3e3],k=function(e,t){t=t||{},S(function(){var n,r=j(),o=f("FCP"),a=h("paint",function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(a.disconnect(),e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-d(),0),o.entries.push(e),n(!0)))})});a&&(n=p(e,o,C,t.reportAllChanges),u(function(r){n=p(e,o=f("FCP"),C,t.reportAllChanges),m(function(){o.value=performance.now()-r.timeStamp,n(!0)})}))})},N=[.1,.25],P=function(e,t){t=t||{},k(g(function(){var n,r=f("CLS",0),o=0,a=[],i=function(e){e.forEach(function(e){if(!e.hadRecentInput){var t=a[0],n=a[a.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e])}}),o>r.value&&(r.value=o,r.entries=a,n())},s=h("layout-shift",i);s&&(n=p(e,r,N,t.reportAllChanges),v(function(){i(s.takeRecords()),n(!0)}),u(function(){o=0,n=p(e,r=f("CLS",0),N,t.reportAllChanges),m(function(){return n()})}),setTimeout(n,0))}
5))},T=0,O=1/0,F=0,L=function(e){e.forEach(function(e){e.interactionId&&(O=Math.min(O,e.interactionId),T=(F=Math.max(F,e.interactionId))?(F-O)/7+1:0)})},M=function(){"interactionCount"in performance||r||(r=h("event",L,{type:"event",buffered:!0,durationThreshold:0}))},A=[],I=new Map,R=0,D=[],_=function(e){if(D.forEach(function(t){return t(e)}),e.interactionId||"first-input"===e.entryType){var t=A[A.length-1],n=I.get(e.interactionId);if(n||A.length<10||e.duration>t.latency){if(n)e.duration>n.latency?(n.entries=[e],n.latency=e.duration):e.duration===n.latency&&e.startTime===n.entries[0].startTime&&n.entries.push(e);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};I.set(r.id,r),A.push(r)}A.sort(function(e,t){return t.latency-e.latency}),A.length>10&&A.splice(10).forEach(function(e){return I.delete(e.id)})}}},H=function(e){var t=self.requestIdleCallback||self.setTimeout,n=-1;return e=g(e),"hidden"===document.visibilityState?e():(n=t(e),v(e)),n},q=[200,500],B=function(e,t){"PerformanceEventTiming"in self&&"interactionId"in PerformanceEventTiming.prototype&&(t=t||{},S(function(){M();var n,o,a=f("INP"),i=function(e){H(function(){e.forEach(_);var t,n=(t=Math.min(A.length-1,Math.floor(((r?T:performance.interactionCount||0)-R)/50)),A[t]);n&&n.latency!==a.value&&(a.value=n.latency,a.entries=n.entries,o())})},s=h("event",i,{durationThreshold:null!=(n=t.durationThreshold)?n:40});o=p(e,a,q,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),v(function(){i(s.takeRecords()),o(!0)}),u(function(){R=0,A.length=0,I.clear(),o=p(e,a=f("INP"),q,t.reportAllChanges)}))}))},W=[2500,4e3],z={},G=function(e,t){t=t||{},S(function(){var n,r=j(),o=f("LCP"),a=function(e){t.reportAllChanges||(e=e.slice(-1)),e.forEach(function(e){e.startTime<r.firstHiddenTime&&(o.value=Math.max(e.startTime-d(),0),o.entries=[e],n())})},i=h("largest-contentful-paint",a);if(i){n=p(e,o,W,t.reportAllChanges);var s=g(function(){z[o.id]||(a(i.takeRecords()),i.disconnect(),z[o.id]=!0,n(!0))});["keydown","click"].forEach(function(e){addEventListener(e,function(){return H(s)},!0)}),v(s),u(function(r){n=p(e,o=f("LCP"),W,t.reportAllChanges),m(function(){o.value=performance.now()-r.timeStamp,z[o.id]=!0,n(!0)})})}})},Q=[800,1800],K=function e(t){document.prerendering?S(function(){return e(t)}):"complete"!==document.readyState?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},$=function(e,t){t=t||{};var n=f("TTFB"),r=p(e,n,Q,t.reportAllChanges);K(function(){var o=c();o&&(n.value=Math.max(o.responseStart-d(),0),n.entries=[o],r(!0),u(function(){(r=p(e,n=f("TTFB",0),Q,t.reportAllChanges))(!0)}))})},U={passive:!0,capture:!0},V=new Date,Y=function(e,t){o||(o=t,a=e,i=new Date,J(removeEventListener),X())},X=function(){if(a>=0&&a<i-V){var e={entryType:"first-input",name:o.type,target:o.target,cancelable:o.cancelable,startTime:o.timeStamp,processingStart:o.timeStamp+a};s.forEach(function(t){t(e)}),s=[]}},Z=function(e){if(e.cancelable){var t,n,r,o=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?(t=function(){Y(o,e),r()},n=function(){r()},r=function(){removeEventListener("pointerup",t,U),removeEventListener("pointercancel",n,U)},addEventListener("pointerup",t,U),addEventListener("pointercancel",n,U)):Y(o,e)}},J=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,Z,U)})},ee=[100,300],et=function(e,t){t=t||{},S(function(){var n,r=j(),i=f("FID"),l=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},c=function(e){e.forEach(l)},d=h("first-input",c);n=p(e,i,ee,t.reportAllChanges),d&&(v(g(function(){c(d.takeRecords()),d.disconnect()})),u(function(){n=p(e,i=f("FID"),ee,t.reportAllChanges),s=[],a=-1,o=null,J(addEventListener),s.push(l),X()}))})};t.exports=n}()},208619,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"useReportWebVitals",{enumerable:!0,get:function(){return a}});let r=e.r(271645),o=e.r(491708);function a(e){(0,r.useEffect)(()=>{(0,o.onCLS)(e),(0,o.onFID)(e),(0,o.onLCP)(e),(0,o.onINP)(e),(0,o.onFCP)(e),(0,o.onTTFB)(e)},[e])}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
5dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},395816,(e,t,n)=>{t.exports=e.r(208619)},755838,(e,t,n)=>{"use strict";var r=e.r(271645),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),i(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},802239,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(755838)},614595,(e,t,n)=>{"use strict";var r=e.r(271645),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useSyncExternalStore,i=r.useRef,s=r.useEffect,l=r.useMemo,u=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=a(e,(d=l(function(){function e(e){if(!s){if(s=!0,a=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,o(a,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(a=e,t):(a=e,i=n)}var a,i,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},313027,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(614595)}]);
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.