1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,137013,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return s},requestIdleCallback:function(){return o}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},s="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},416601,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return s},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},s=/[&><\u2028\u2029]/g,a={"&":"&",'"':""","'":"'","<":"<",">":">"},l=/[&"'<>]/g;function u(e){return e.replace(s,e=>o[e])}function c(e){return e.replace(l,e=>a[e])}},924257,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return b},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return y}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(481258),s=e.r(744066),a=e.r(595901),l=o._(e.r(346147)),u=s._(e.r(515621)),c=e.r(301603),d=e.r(808e3),f=e.r(137013),p=e.r(416601),h=new Map,m=new Set,v=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:s="",strategy:a="afterInteractive",onError:u,stylesheets:c}=e,f=n||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(r,u);return}let p=()=>{i&&i(),m.add(f)},v=document.createElement("script"),g=new Promise((e,t)=>{v.addEventListener("load",function(t){e(),r&&r.call(this,t),p()}),v.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(v.innerHTML=o.__html||"",p()):s?(v.textContent="string"==typeof s?s:Array.isArray(s)?s.join(""):"",p()):t&&(v.src=t,h.set(t,g)),(0,d.setAttributesFromProps)(v,e),"worker"===a&&v.setAttribute("type","text/partytown"),v.setAttribute("data-nscript",a),c&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}})(c),document.body.appendChild(v)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>v(e))}):v(e)}function y(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function w(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:s,stylesheets:d,...h}=e,{updateScripts:g,scripts:y,getIsSsr:w,appDir:b,nonce:E}=(0,u.useContext)(c.HeadManagerContext);E=h.nonce||E;let x=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||n;x.current||(i&&e&&m.has(e)&&i(),x.current=!0)},[i,t,n]);let C=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!C.current){if("afterInteractive"===o)v(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>v(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>v(e))}));C.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(g?(y[o]=(y[o]||[]).concat([{id:t,src:n,onLoad:r,onReady:i,onError:s,...h,nonce:E}]),g(y)):w&&w()?m.add(t||n):w&&!w()&&v({...e,nonce:E})),b){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!n)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin}),(0,a.jsx)("script",{nonce:E,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([n,{...h,id:t}]))})`}});"afterInteractive"===o&&n&&l.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:E,crossOrigin:h.crossOrigin}:{as:"script",nonce:E,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(w,"__nextScript",{value:!0});let b=w;("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esMo
1dule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},561865,e=>{"use strict";var t=e.i(527273),n=e.i(515621);function r(){return"u">typeof window}function i(){return"production"}function o(){return(r()?window.vam:i())||"production"}function s(){return"production"===o()}function a(){return"development"===o()}function l(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}e.s(["Analytics",0,function(e){return(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,n.useEffect)(()=>{!function(e={debug:!0},t){var n;if(!r())return;let{beforeSend:o,src:s,dataset:u}=function(e,t){var n,r;let o=e;if(t)try{o={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch{}!function(e="auto"){if("auto"===e){window.vam=i();return}window.vam=e}(o.mode);let s={sdkn:"@vercel/analytics"+(o.framework?`/${o.framework}`:""),sdkv:"2.0.1"};return o.disableAutoTrack&&(s.disableAutoTrack="1"),o.viewEndpoint&&(s.viewEndpoint=l(o.viewEndpoint)),o.eventEndpoint&&(s.eventEndpoint=l(o.eventEndpoint)),o.sessionEndpoint&&(s.sessionEndpoint=l(o.sessionEndpoint)),a()&&!1===o.debug&&(s.debug="false"),o.dsn&&(s.dsn=o.dsn),o.endpoint?s.endpoint=o.endpoint:o.basePath&&(s.endpoint=l(`${o.basePath}/insights`)),{beforeSend:o.beforeSend,src:(r=o).scriptSrc?l(r.scriptSrc):a()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?l(`${r.basePath}/insights/script.js`):"/_vercel/insights/script.js",dataset:s}}(e,t);if(window.va||(window.va=function(...e){window.vaq||(window.vaq=[]),window.vaq.push(e)}),o&&(null==(n=window.va)||n.call(window,"beforeSend",o)),document.head.querySelector(`script[src*="${s}"]`))return;let c=document.createElement("script");for(let[e,t]of(c.src=s,Object.entries(u)))c.dataset[e]=t;c.defer=!0,c.onerror=()=>{let e=a()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${s}. ${e}`)},document.head.appendChild(c)}({framework:e.framework||"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,n.useEffect)(()=>{e.route&&e.path&&function({route:e,path:t}){var n;null==(n=window.va)||n.call(window,"pageview",{route:e,path:t})}({route:e.route,path:e.path})},[e.route,e.path]),null},"track",0,function(e,t,n){var i,o;if(!r()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(s())console.warn(e);else throw Error(e);return}if(!t){null==(i=window.va)||i.call(window,"event",{name:e,options:n});return}try{let r=function(e,t){if(!e)return;let n=e,r=[];for(let[i,o]of Object.entries(e))"object"==typeof o&&null!==o&&(t.strip?n=function(e,{[e]:t,...n}){return n}(i,n):r.push(i));if(r.length>0&&!t.strip)throw Error(`The following properties are not valid: ${r.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return n}(t,{strip:s()});null==(o=window.va)||o.call(window,"event",{name:e,data:r,options:n})}catch(e){e instanceof Error&&a()&&console.error(e)}}])},811255,e=>{"use strict";var t=e.i(527273),n=e.i(515621),r=e.i(613180);function i(){return false}function o(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function s(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function a(e){(0,n.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.si)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]);let r=(0,n.useRef)(null);return(0,n.useEffect)(()=>{if(!r.current){let n=function(e={},t){var n;if(!("u">typeof window)||null===e.route)return null;window.si||(window.si=function(...e){window.siq=window.siq||[],window.siq.push(e)});let{beforeSend:r,src:o,dataset:a}=function(e,t){var n,r;let o=e;if(t)try{o={...null==(n=JSON.parse(t))?void 0:n.speedInsights,...e}}catch{}let a={sdkn:"@vercel/speed-insights"+(o.framework?`/${o.framework}`:""),sdkv:"2.0.0"};return o.sampleRate&&(a.sampleRate=o.sampleRate.toString()),o.route&&(a.route=o.route),i()&&!1===o.debug&&(a.debug="false"),o.dsn&&(a.dsn=o.dsn),o.endpoint?a.endpoint=s(o.endpoint):o.basePath&&(a.endpoint=s(`${o.basePath}/speed-insights/vitals`)),{src:(r=o).scriptSrc?s(r.scriptSrc):i()?"https://va.vercel-scripts.com/v1/speed-insights/script.debug.js":r.dsn?"https://va.vercel-scripts.com/v1/speed-insights/script.
1js":r.basePath?s(`${r.basePath}/speed-insights/script.js`):"/_vercel/speed-insights/script.js",beforeSend:o.beforeSend,dataset:a}}(e,t);if(document.head.querySelector(`script[src*="${o}"]`))return null;r&&(null==(n=window.si)||n.call(window,"beforeSend",r));let l=document.createElement("script");for(let[e,t]of(l.src=o,l.defer=!0,Object.entries(a)))l.dataset[e]=t;return l.onerror=()=>{console.log(`[Vercel Speed Insights] Failed to load script from ${o}. Please check if any content blockers are enabled and try again.`)},document.head.appendChild(l),{setRoute:e=>{l.dataset.route=e??void 0}}}({framework:e.framework??"react",basePath:e.basePath??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...e},e.configString??function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}());n&&(r.current=n.setRoute)}},[e]),(0,n.useEffect)(()=>{r.current&&e.route&&r.current(e.route)},[e.route]),null}function l(e){let i=(()=>{let e=(0,r.useParams)(),t=(0,r.useSearchParams)()||new URLSearchParams,n=(0,r.usePathname)();if(!e)return null;let i=Object.keys(e).length?e:Object.fromEntries(t.entries());if(!n||!i)return n;let s=n;try{let e=Object.entries(i);for(let[t,n]of e)if(!Array.isArray(n)){let e=o(n);e.test(s)&&(s=s.replace(e,`/[${t}]`))}for(let[t,n]of e)if(Array.isArray(n)){let e=o(n.join("/"));e.test(s)&&(s=s.replace(e,`/[...${t}]`))}return s}catch{return n}})();return n.default.createElement(a,{route:i,...e,framework:"next",basePath:function(){if(void 0!==t.default&&void 0!==t.default.env)return t.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==t.default&&void 0!==t.default.env)return'{"analytics":{"scriptSrc":"ad00c4a3a40a7679/script.js","viewEndpoint":"ad00c4a3a40a7679/view","eventEndpoint":"ad00c4a3a40a7679/event","sessionEndpoint":"ad00c4a3a40a7679/session"},"speedInsights":{"scriptSrc":"fcf684406896aa0b/script.js","endpoint":"fcf684406896aa0b/vitals"}}'}()})}e.s(["SpeedInsights",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(l,{...e}))}])},599359,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return c},getImageProps:function(){return u}};for(var i in r)Object.defineProperty(n,i,{enumerable:!0,get:r[i]});let o=e.r(481258),s=e.r(550536),a=e.r(481660),l=o._(e.r(279349));function u(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[360,480,640,828,1080,1360],imageSizes:[72,128,256,340,400],qualities:[70,72,75,90],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let c=a.Image},389894,(e,t,n)=>{t.exports=e.r(599359)},190742,e=>{"use strict";var t,n=e.i(595901),r=e.i(389894),i=e.i(515621),o=e.i(108264),s=e.i(613180),a=e.i(346147),l=Object.defineProperty,u=(e,t)=>l(e,"name",{value:t,configurable:!0});function c(e,t=[]){let r=[];function o(t,o){let s=i.createContext(o);s.displayName=t+"Context";let a=r.length;r=[...r,o];let l=u(t=>{let{scope:r,children:o,...l}=t,u=r?.[e]?.[a]||s,c=i.useMemo(()=>l,Object.values(l));return(0,n.jsx)(u.Provider,{value:c,children:o})},"Provider");function c(n,r,l={}){let{optional:u=!1}=l,d=r?.[e]?.[a]||s,f=i.useContext(d);if(f)return f;if(void 0!==o)return o;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",u(c,"useContext"),[l,c]}u(o,"createContext");let s=u(()=>{let t=r.map(e=>i.createContext(e));return u(function(n){let r=n?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return s.scopeName=e,[o,d(s,...t)]}function d(...e){let t=e[0];if(1===e.length)return t;let n=u(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return u(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}u(function(e,t){let r=i.createContext(t);r.displayName=e+"Context";let o=u(e=>{let{children:t,...o}=e,s=i.useMemo(()=>o,Object.values(o));return(0,n.jsx)(r.Provider,{value:s,children:t})},"Provider");function s(n,o={}){let{optional:a=!1}=o,l=i.useContext(r);if(l)return l;if(void 0!==t)return t;if(!a)throw Error(`\`${n}\` must be used within \`${e}\``)}return o.displayName=e+"Provider",u(s,"useContext"),[o,s]},"createContext"),u(c,"createContextScope"),u(d,"composeContextScopes");var f=Object.defineProperty,p=(e,t)=>f(e,"name",{value:t,configurable:!0}),h=!!("u">typeof window&&window.document&&window.document.createElement);function m(e,t,{checkForDefaultPrevented:n=!0}={}){return p(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function v(e){if(!h)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function g(e){return"IFRAME"===e.tagName}p(m,"composeEventHandlers"),p(function(e){if(!h)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),p(v,"getOwnerDocument"),p(function e(t,n=!1){let{activeElement:r}=v(t);if(!r?.nodeName)return null;if(g(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=v(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),p(g,"isFrame");var y=Object.defineProperty,w=(e,t)=>y(e,"name",{value:t,configurable:!0});function b(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function E(...e){return t=>{let n=!1,r=e.map(e=>{let r=b(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():b(e[t],null)}}}}function x(...e){return i.useCallback(E(...e),e)}w(b,"setRef"),w(E,"composeRefs"),w(x,"useComposedRefs");var C=Object.defineProperty,j=(e,t)=>C(e,"name",{value:t,configurable:!0}),S=j((e,t)=>{let n={...t};for(let r in t){let i=e[r],o=t[r];if(/^on[A-Z]/.test(r))if(i&&o){let e="function"==typeof i,t="function"==typeof o;n[r]=(...n)=>{let r=t?o(...n):void 0;return e&&i(...n),r}}else i&&(n[r]=i);else"style"===r?n[r]={..."object"==typeof i?i:null,..."object"==typeof o?o:null}
1:"className"===r?n[r]=[i,o].filter(Boolean).join(" "):"aria-describedby"===r&&(n[r]=R(o,i))}return{...e,...n}},"mergeProps");function R(...e){let t=new Set;for(let n of e)if("string"==typeof n)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(" "):void 0}j(R,"concatAriaDescribedby");var P=i.createContext(S);function O(e){let t=i.forwardRef((t,n)=>{let r=i.useContext(P),{children:o,mergeProps:s=r,...a}=t,l=null,u=!1,c=[];_(o)&&"function"==typeof $&&(o=$(o._payload)),i.Children.forEach(o,e=>{if(M(e)){u=!0;let t="child"in e.props?e.props.child:e.props.children;_(t)&&"function"==typeof $&&(t=$(t._payload)),l=N(e,t),c.push(l?.props?.children)}else c.push(e)}),l?l=i.cloneElement(l,void 0,c):!u&&1===i.Children.count(o)&&i.isValidElement(o)&&(l=o);let d=l?I(l):void 0,f=x(n,d);if(!l){if(o||0===o)throw Error(u?D(e):L(e));return o}let p=s(a,l.props??{});return l.type!==i.Fragment&&(p.ref=n?f:d),i.cloneElement(l,p)});return t.displayName=`${e}.Slot`,t}P.displayName="SlotContext",j(O,"createSlot");var k=Symbol.for("radix.slottable");j(function(e){let t=j(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=k,t},"createSlottable");var N=j((e,t)=>{if("child"in e.props){let t=e.props.child;return i.isValidElement(t)?i.cloneElement(t,void 0,e.props.children(t.props.children)):null}return i.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function I(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}function M(e){return i.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===k}j(I,"getElementRef"),j(M,"isSlottable");var A=Symbol.for("react.lazy");function _(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===A&&"_payload"in e&&T(e._payload)}function T(e){return"object"==typeof e&&null!==e&&"then"in e}j(_,"isLazyComponent"),j(T,"isPromiseLike");var L=j(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),D=j(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),$=i[" use ".trim().toString()],F=Object.defineProperty,B=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=O(`Primitive.${t}`),o=i.forwardRef((e,i)=>{let{asChild:o,...s}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,n.jsx)(o?r:t,{...s,ref:i})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function W(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}F(W,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var z=globalThis?.document?i.useLayoutEffect:()=>{},q=Object.defineProperty,U=i[" useEffectEvent ".trim().toString()],V=i[" useInsertionEffect ".trim().toString()];function K(e){if("function"==typeof U)return U(e);let t=i.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof V?V(()=>{t.current=e}):z(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}q(K,"name",{value:"useEffectEvent",configurable:!0});var H=Object.defineProperty,G=(e,t)=>H(e,"name",{value:t,configurable:!0}),J=i[" useInsertionEffect ".trim().toString()]||z;function Y({prop:e,defaultProp:t,onChange:n=G(()=>{},"onChange"),caller:r}){let[o,s,a]=X({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:o;return[u,i.useCallback(t=>{if(l){let n=Z(t)?t(e):t;n!==e&&a.current?.(n)}else s(t)},[l,e,s,a])]}function X({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),o=i.useRef(n),s=i.useRef(t);return J(()=>{s.current=t},[t]),i.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Z(e){return"function"==typeof e}G(Y,"useControllableState"),G(X,"useUncontrolledState"),G(Z,"isFunction");var Q=Symbol("RADIX:SYNC_STATE");G(function(e,t,n,r){let{prop:o,defaultProp:s,onChange:a,caller:l}=t,u=void 0!==o,c=K(a),d=[{...n,state:s}];r&&d.push(r);let[f,p]=i.useReducer((t,n)=>{if(n.type===Q)return{...t,state:n.state};let r=e(t,n);
1return u&&!Object.is(r.state,t.state)&&c(r.state),r},...d),h=f.state,m=i.useRef(h);i.useEffect(()=>{m.current!==h&&(m.current=h,u||c(h))},[h,m,u]);let v=i.useMemo(()=>void 0!==o?{...f,state:o}:f,[f,o]);return i.useEffect(()=>{u&&!Object.is(o,f.state)&&p({type:Q,state:o})},[o,f.state,u]),[v,p]},"useControllableStateReducer");var ee=Object.defineProperty,et=i.createContext(void 0);function en(e){let t=i.useContext(et);return e||t||"ltr"}ee(en,"name",{value:"useDirection",configurable:!0});var er=Object.defineProperty,ei=(e,t)=>er(e,"name",{value:t,configurable:!0});function eo(e,t){return i.useReducer((e,n)=>t[e][n]??e,e)}ei(eo,"useStateMachine");var es=ei(e=>{let{present:t,children:n}=e,r=ea(t),o="function"==typeof n?n({present:r.isPresent}):i.Children.only(n),s=eu(r.ref,ed(o));return"function"==typeof n||r.isPresent?i.cloneElement(o,{ref:s}):null},"Presence");function ea(e){let[t,n]=i.useState(),r=i.useRef(null),o=i.useRef(e),s=i.useRef("none"),a=i.useRef(void 0),[l,u]=eo(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return i.useEffect(()=>{"mounted"===l?(s.current=a.current??ec(r.current),a.current=void 0):s.current="none"},[l]),z(()=>{let t=r.current,n=o.current;if(n!==e){let r=s.current,i=ec(t);e?(a.current=i,u("MOUNT")):"none"===i||t?.display==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),o.current=e}},[e,u]),z(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=ei(i=>{let s=ec(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(u("ANIMATION_END"),!o.current)){let r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),a=ei(e=>{e.target===t&&(s.current=ec(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",a),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",a),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:i.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,a.current=ec(t)}else r.current=null;n(e)},[])}}function el(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eu(...e){let t=i.useRef(e);return t.current=e,i.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=el(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];"function"==typeof t?t():el(n[e],null)}}},[])}function ec(e){return e?.animationName||"none"}function ed(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(n=(t=Object.getOwnPropertyDescriptor(e,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}ei(ea,"usePresence"),ei(el,"setRef"),ei(eu,"useStableComposedRefs"),ei(ec,"getAnimationName"),ei(ed,"getElementRef");var ef=Object.defineProperty,ep=i[" useId ".trim().toString()]||(()=>void 0),eh=0;function em(e){let[t,n]=i.useState(ep());return z(()=>{e||n(e=>e??String(eh++))},[e]),e||(t?`radix-${t}`:"")}ef(em,"name",{value:"useId",configurable:!0});var ev=Object.defineProperty,eg=(e,t)=>ev(e,"name",{value:t,configurable:!0});function ey(e){let t=e+"CollectionProvider",[r,o]=c(t),[s,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),l=eg(e=>{let{scope:t,children:r}=e,o=i.useRef(null),a=i.useRef(new Map).current;return(0,n.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:r})},"CollectionProvider");l.displayName=t;let u=e+"CollectionSlot",d=O(u),f=i.forwardRef((e,t)=>{let{scope:r,children:i}=e,o=x(t,a(u,r).collectionRef);return(0,n.jsx)(d,{ref:o,children:i})});f.displayName=u;let p=e+"CollectionItemSlot",h="data-radix-collection-item",m=O(p),v=i.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,l=i.useRef(null),u=x(t,l),c=a(p,r);return i.useEffect(()=>(c.itemMap.set(l,{ref:l,...s}),()=>void c.itemMap.delete(l))),(0,n.jsx)(m,{...{[h]:""},ref:u,children:o})});function g(t){let n=a(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return v.displayName=p,eg(g,"useCollection"),[{Provider:l,Slot:f,ItemSlot:v},g,o]}eg(ey,"createCollection");var ew=new WeakMap,eb=class e extends Map{static{eg(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],ew.set(this,!0)}set(e,t){return ew.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r,i=this.has(t),o=this.#e.length,s=eC(e),a=s>=0?s:o+s,l=a<0||a>=o?-1:a;if(l===this.size||i&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!i;s<0&&a++;let c=[...this.#e],d=!1;for(let e=a;
1e<u;e++)if(a===e){let o=c[e];c[e]===t&&(o=c[e+1]),i&&this.delete(t),r=this.get(o),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=eE(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eE(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eE(this.#e,e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=0===r&&1===e.length?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&1===e.length?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function eE(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=ex(e,t);return -1===n?void 0:e[n]}function ex(e,t){let n=e.length,r=eC(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}function eC(e){return e!=e||0===e?0:Math.trunc(e)}function ej(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t||null==e||null==t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}function eS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eR(e,t){return e[1].element&&t[1].element?eS(e[1].element,t[1].element)?-1:1:0}function eP(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}function eO(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}eg(eE,"at"),eg(ex,"toSafeIndex"),eg(eC,"toSafeInteger"),eg(function(e){let t=e+"CollectionProvider",[r,o]=c(t),[s,a]=r(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new eb,setItemMap:eg(()=>void 0,"setItemMap")}),l=eg(({state:e,...t})=>e?(0,n.jsx)(d,{...t,state:e}):(0,n.jsx)(u,{...t}),"CollectionProvider");l.displayName=t;let u=eg(e=>{let t=y();return(0,n.jsx)(d,{...e,state:t})},"CollectionInit");u.displayName=t+"Init";let d=eg(e=>{let{scope:t,children:r,state:o}=e,a=i.useRef(null),[l,u]=i.useState(null),c=x(a,u),[d,f]=o;return i.useEffect(()=>{if(!l)return;let e=eP(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),(0,n.jsx)(s,{scope:t,itemMap:d,setItemMap:f,collectionRef:c,collectionRefObject:a,collectionElement:l,children:r})},"CollectionProviderImpl");d.displayName=t+"Impl";let f=e+"CollectionSlot",p=O(f),h=i.forwardRef((e,t)=>
1{let{scope:r,children:i}=e,o=x(t,a(f,r).collectionRef);return(0,n.jsx)(p,{ref:o,children:i})});h.displayName=f;let m=e+"CollectionItemSlot",v=O(m),g=i.forwardRef((e,t)=>{let{scope:r,children:o,...s}=e,l=i.useRef(null),[u,c]=i.useState(null),d=x(t,l,c),{setItemMap:f}=a(m,r),p=i.useRef(s);ej(p.current,s)||(p.current=s);let h=p.current;return i.useEffect(()=>(f(e=>u?e.has(u)?e.set(u,{...h,element:u}).toSorted(eR):(e.set(u,{...h,element:u}),e.toSorted(eR)):e),()=>{f(e=>u&&e.has(u)?(e.delete(u),new eb(e)):e)}),[u,h,f]),(0,n.jsx)(v,{"data-radix-collection-item":"",ref:d,children:o})});function y(){return i.useState(new eb)}function w(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return g.displayName=m,eg(y,"useInitCollection"),eg(w,"useCollection"),[{Provider:l,Slot:h,ItemSlot:g},{createCollectionScope:o,useCollection:w,useInitCollection:y}]},"createCollection"),eg(ej,"shallowEqual"),eg(eS,"isElementPreceding"),eg(eR,"sortByDocumentPosition"),eg(eP,"getChildListObserver"),(0,Object.defineProperty)(eO,"name",{value:"useCallbackRef",configurable:!0});var ek=Object.defineProperty,eN=(e,t)=>ek(e,"name",{value:t,configurable:!0}),eI="dismissableLayer.update",eM=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eA=i.forwardRef(eN(function(e,r){let{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...f}=e,p=i.useContext(eM),[h,v]=i.useState(null),g=h?.ownerDocument??globalThis?.document,[,y]=i.useState({}),w=x(r,v),b=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),C=E?b.indexOf(E):-1,j=h?b.indexOf(h):-1,S=p.layersWithOutsidePointerEventsDisabled.size>0,R=j>=C,P=i.useRef(!1),O=eT(e=>{l?.(e),c?.(e),e.defaultPrevented||d?.()},{ownerDocument:g,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:p.dismissableSurfaces,shouldHandlePointerDownOutside:i.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...p.branches].some(t=>t.contains(e));return R&&!t},[p.branches,R])}),k=eL(e=>{if(s&&P.current)return;let t=e.target;![...p.branches].some(e=>e.contains(t))&&(u?.(e),c?.(e),e.defaultPrevented||d?.())},g),N=!!h&&j===b.length-1,I=eO(e=>{"Escape"===e.key&&(a?.(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))});return i.useEffect(()=>{if(N)return g.addEventListener("keydown",I,{capture:!0}),()=>g.removeEventListener("keydown",I,{capture:!0})},[g,N,I]),i.useEffect(()=>{if(h)return o&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(t=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),eD(),()=>{o&&(p.layersWithOutsidePointerEventsDisabled.delete(h),0===p.layersWithOutsidePointerEventsDisabled.size&&(g.body.style.pointerEvents=t))}},[h,g,o,p]),i.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),eD())},[h,p]),i.useEffect(()=>{let e=eN(()=>y({}),"handleUpdate");return document.addEventListener(eI,e),()=>document.removeEventListener(eI,e)},[]),(0,n.jsx)(B.div,{...f,ref:w,style:{pointerEvents:S?R?"auto":"none":void 0,...e.style},onFocusCapture:m(e.onFocusCapture,k.onFocusCapture),onBlurCapture:m(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:m(e.onPointerDownCapture,O.onPointerDownCapture)})},"DismissableLayer"));eN(function(){let e=i.useContext(eM),[t,n]=i.useState(null);return i.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n},"useDismissableLayerSurface");var e_=eN(()=>!0,"IS_TRUE");function eT(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:s,shouldHandlePointerDownOutside:a=e_}=t,l=eO(e),u=i.useRef(!1),c=i.useRef(!1),d=i.useRef(new Map),f=i.useRef(()=>{});return i.useEffect(()=>{function e(){c.current=!1,o.current=!1,d.current.clear()}function t(){return Array.from(d.current.values()).some(Boolean)}function i(e){if(!c.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||d.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{c.current&&f.current()},0)}function p(e){c.current&&d.current.set(e.type,!1)}eN(e,"resetOutsideInteraction"),eN(t,"isOutsideInteractionIntercepted"),eN(i,"handleInteractionCapture"),eN(p,"handleInteractionBubble");let h=eN(i=>{if(i.target&&!u.current){let s=function(){n.removeEventListener("click",f.current);let r=t();e(),r||e$("dismissableLayer.pointerDownOutside",l,p,{discrete:!0})};if(eN(s,"handleAndDispatchPointerDownOutsideEvent"),!a(i.target)){n.removeEventListener("click",f.current),e(
1),u.current=!1;return}let p={originalEvent:i};c.current=!0,o.current=r&&0===i.button,d.current.clear(),r&&0===i.button?(n.removeEventListener("click",f.current),f.current=s,n.addEventListener("click",f.current,{once:!0})):s()}else n.removeEventListener("click",f.current),e();u.current=!1},"handlePointerDown"),m=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of m)n.addEventListener(e,i,!0),n.addEventListener(e,p);let v=window.setTimeout(()=>{n.addEventListener("pointerdown",h)},0);return()=>{for(let e of(window.clearTimeout(v),n.removeEventListener("pointerdown",h),n.removeEventListener("click",f.current),m))n.removeEventListener(e,i,!0),n.removeEventListener(e,p)}},[n,l,r,o,s,a]),{onPointerDownCapture:eN(()=>u.current=!0,"onPointerDownCapture")}}function eL(e,t=globalThis?.document){let n=eO(e),r=i.useRef(!1);return i.useEffect(()=>{let e=eN(e=>{e.target&&!r.current&&e$("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eN(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eN(()=>r.current=!1,"onBlurCapture")}}function eD(){let e=new CustomEvent(eI);document.dispatchEvent(e)}function e$(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?W(i,o):i.dispatchEvent(o)}function eF(e){let t=i.useRef({value:e,previous:e});return i.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}eN(eT,"usePointerDownOutside"),eN(eL,"useFocusOutside"),eN(eD,"dispatchUpdate"),eN(e$,"handleAndDispatchCustomEvent"),(0,Object.defineProperty)(eF,"name",{value:"usePrevious",configurable:!0});var eB=Object.defineProperty,eW=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ez=i.forwardRef(eB(function(e,t){return(0,n.jsx)(B.span,{...e,ref:t,style:{...eW,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),eq=Object.defineProperty,eU=(e,t)=>eq(e,"name",{value:t,configurable:!0}),eV="NavigationMenu",[eK,eH,eG]=ey(eV),[eJ,eY,eX]=ey(eV),[eZ,eQ]=c(eV,[eG,eX]),[e0,e1]=eZ(eV),[e2,e4]=eZ(eV),e6=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,value:o,onValueChange:s,defaultValue:a,delayDuration:l=200,skipDelayDuration:u=300,orientation:c="horizontal",dir:d,...f}=e,[p,h]=i.useState(null),m=x(t,h),v=en(d),g=i.useRef(0),y=i.useRef(0),w=i.useRef(0),[b,E]=i.useState(!0),[C,j]=Y({prop:o,onChange:eU(e=>{let t=u>0;""!==e?(window.clearTimeout(w.current),t&&E(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>E(!0),u)),s?.(e)},"onChange"),defaultProp:a??"",caller:eV}),S=i.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>j(""),150)},[j]),R=i.useCallback(e=>{window.clearTimeout(y.current),j(e)},[j]),P=i.useCallback(e=>{C===e?window.clearTimeout(y.current):g.current=window.setTimeout(()=>{window.clearTimeout(y.current),j(e)},l)},[C,j,l]);return i.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(y.current),window.clearTimeout(w.current)},[]),(0,n.jsx)(e7,{scope:r,isRootMenu:!0,value:C,dir:v,orientation:c,rootNavigationMenu:p,onTriggerEnter:e=>{window.clearTimeout(g.current),b?P(e):R(e)},onTriggerLeave:()=>{window.clearTimeout(g.current),S()},onContentEnter:()=>window.clearTimeout(y.current),onContentLeave:S,onItemSelect:e=>{j(t=>t===e?"":e)},onItemDismiss:()=>j(""),children:(0,n.jsx)(B.nav,{"aria-label":"Main","data-orientation":c,dir:v,...f,ref:m})})},"NavigationMenu")),e7=eU(e=>{let{scope:t,isRootMenu:r,rootNavigationMenu:o,dir:s,orientation:a,children:l,value:u,onItemSelect:c,onItemDismiss:d,onTriggerEnter:f,onTriggerLeave:p,onContentEnter:h,onContentLeave:m}=e,[v,g]=i.useState(null),[y,w]=i.useState(new Map),[b,E]=i.useState(null);return(0,n.jsx)(e0,{scope:t,isRootMenu:r,rootNavigationMenu:o,value:u,previousValue:eF(u),baseId:em(),dir:s,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:b,onIndicatorTrackChange:E,onTriggerEnter:eO(f),onTriggerLeave:eO(p),onContentEnter:eO(h),onContentLeave:eO(m),onItemSelect:eO(c),onItemDismiss:eO(d),onViewportContentChange:i.useCallback((e,t)=>{w(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:i.useCallback(e=>{w(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,n.jsx)(eK.Provider,{scope:t,children:(0,n.jsx)(e2,{scope:t,items:y,children:l})})})},"NavigationMenuProvider"),e8=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,...i}=e,o=e1("NavigationMenuList",r),s=(0,n.jsx)(B.ul,{"data-orientation":o.orientation,...i,ref:t});return(0,n.jsx)(B.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,n.jsx)(eK.Slot,{scope:r,children:o.isRootMenu?(0,n.jsx)(tu,{asChild:!0,children:s}):s})})},"NavigationMenuList")),[e9,e3]=eZ("NavigationMenuItem"),e5=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,value:o,...s}=e,a=em(),l=i.useRef(null),u=i.useRef(null),c=i.useRef(null),d=i.useRef(()=>{}),f=i.useRef(!1),p=i.useCallback((e="start")=>{if(l.current){d.current();let t=tf(l.current);t.length&&tp("start"===e?t:t.reverse())}},[]),h=i.useCallback(()=>
1{if(l.current){let e=tf(l.current);e.length&&(d.current=th(e))}},[]);return(0,n.jsx)(e9,{scope:r,value:o||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:u,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:f,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,n.jsx)(B.li,{...s,ref:t})})},"NavigationMenuItem")),te="NavigationMenuTrigger",tt=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,disabled:o,...s}=e,a=e1(te,e.__scopeNavigationMenu),l=e3(te,e.__scopeNavigationMenu),u=i.useRef(null),c=x(u,l.triggerRef,t),d=tv(a.baseId,l.value),f=tg(a.baseId,l.value),p=i.useRef(!1),h=i.useRef(!1),v=l.value===a.value;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(eK.ItemSlot,{scope:r,value:l.value,children:(0,n.jsx)(td,{asChild:!0,children:(0,n.jsx)(B.button,{id:d,disabled:o,"data-disabled":o?"":void 0,"data-state":tm(v),"aria-expanded":v,"aria-controls":v?f:void 0,...s,ref:c,onPointerEnter:m(e.onPointerEnter,()=>{h.current=!1,l.wasEscapeCloseRef.current=!1}),onPointerMove:m(e.onPointerMove,ty(()=>{o||h.current||l.wasEscapeCloseRef.current||p.current||(a.onTriggerEnter(l.value),p.current=!0)})),onPointerLeave:m(e.onPointerLeave,ty(()=>{o||(a.onTriggerLeave(),p.current=!1)})),onClick:m(e.onClick,()=>{a.onItemSelect(l.value),h.current=v}),onKeyDown:m(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];v&&e.key===t&&(l.onEntryKeyDown(),e.preventDefault())})})})}),v&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ez,{"aria-hidden":!0,tabIndex:0,ref:l.focusProxyRef,onFocus:e=>{let t=l.contentRef.current,n=e.relatedTarget,r=n===u.current,i=t?.contains(n);(r||!i)&&l.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,n.jsx)("span",{"aria-owns":f})]})]})},"NavigationMenuTrigger")),tn="navigationMenu.linkSelect",tr=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,active:i,onSelect:o,...s}=e;return(0,n.jsx)(td,{asChild:!0,children:(0,n.jsx)(B.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...s,ref:t,onClick:m(e.onClick,e=>{let t=e.target,n=new CustomEvent(tn,{bubbles:!0,cancelable:!0});t.addEventListener(tn,e=>o?.(e),{once:!0}),W(t,n),n.defaultPrevented||e.metaKey||W(t,new CustomEvent(ta,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),ti="NavigationMenuContent",to=i.forwardRef(eU(function(e,t){let{forceMount:r,...i}=e,o=e1(ti,e.__scopeNavigationMenu),s=e3(ti,e.__scopeNavigationMenu),a=x(s.contentRef,t),l=s.value===o.value,u={value:s.value,triggerRef:s.triggerRef,focusProxyRef:s.focusProxyRef,wasEscapeCloseRef:s.wasEscapeCloseRef,onContentFocusOutside:s.onContentFocusOutside,onRootContentClose:s.onRootContentClose,...i};return o.viewport?(0,n.jsx)(ts,{forceMount:r,...u,ref:a}):(0,n.jsx)(es,{present:r||l,children:(0,n.jsx)(tl,{"data-state":tm(l),...u,ref:a,onPointerEnter:m(e.onPointerEnter,o.onContentEnter),onPointerLeave:m(e.onPointerLeave,ty(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...u.style}})})},"NavigationMenuContent")),ts=i.forwardRef(eU(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=e1(ti,e.__scopeNavigationMenu);return z(()=>{n(e.value,{ref:t,...e})},[e,t,n]),z(()=>()=>r(e.value),[e.value,r]),null},"ViewportContentMounter")),ta="navigationMenu.rootContentDismiss",tl=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,value:o,triggerRef:s,focusProxyRef:a,wasEscapeCloseRef:l,onRootContentClose:u,onContentFocusOutside:c,...d}=e,f=e1(ti,r),p=i.useRef(null),h=x(p,t),v=tv(f.baseId,o),g=tg(f.baseId,o),y=eH(r),w=i.useRef(null),{onItemDismiss:b}=f;i.useEffect(()=>{let e=p.current;if(f.isRootMenu&&e){let t=eU(()=>{b(),u(),e.contains(document.activeElement)&&s.current?.focus()},"handleClose");return e.addEventListener(ta,t),()=>e.removeEventListener(ta,t)}},[f.isRootMenu,e.value,s,b,u]);let E=i.useMemo(()=>{let e=y().map(e=>e.value);"rtl"===f.dir&&e.reverse();let t=e.indexOf(f.value),n=e.indexOf(f.previousValue),r=o===f.value,i=n===e.indexOf(o);if(!r&&!i)return w.current;let s=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return w.current=s,s},[f.previousValue,f.value,f.dir,y,o]);return(0,n.jsx)(tu,{asChild:!0,children:(0,n.jsx)(eA,{id:g,"aria-labelledby":v,"data-motion":E,"data-orientation":f.orientation,...d,ref:h,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(ta,{bubbles:!0,cancelable:!0});p.current?.dispatchEvent(e)},onFocusOutside:m(e.onFocusOutside,e=>{c();let t=e.target;f.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:m(e.onPointerDownOutside,e=>{let t=e.target,n=y().some(e=>e.ref.current?.contains(t)),r=f.isRootMenu&&f.viewport?.contains(t);(n||r||!f.isRootMenu)&&e.preventDefault()}),onKeyDown:m(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=tf(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);tp(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():a.current?.focus()}}),onEscapeKeyDown:m(e.onEscapeKeyDown,e=>{l.current=!0})})})},"NavigationMenuContentImpl"));({contentRef:e,isActive:t,onActiveContentChange:r,...o})=>{let s=x(e,i.useCallback(e=>{t&&e&&r(e)},[t,r]));return(0,n.jsx)(tl,{...o,ref:s})};var tu=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,...i}=e,o=e1("FocusGroup",r);return(0,n.jsx)(eJ.Provider,{scope:r,children:(0,n.jsx)(eJ.Slot,{scope:r,children:(0,n.jsx)(B.div,{dir:o.dir,...i,ref:t})})})},"FocusGroup")),tc=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],td=i.forwardRef(eU(function(e,t){let{__scopeNavigationMenu:r,...i}=e,o=eY(r),s=e1("FocusGroupItem",r);return(0,n.jsx)(eJ.ItemSlot,{scope:r,children:(0,n.jsx)(B.button,{...i,ref:t,onKeyDown:m(e.onKeyDown,e=>
1{if(["Home","End",...tc].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===s.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),tc.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>tp(t)),e.preventDefault()}})})})},"FocusGroupItem"));function tf(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:eU(e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function tp(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function th(e){return e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}}function tm(e){return e?"open":"closed"}function tv(e,t){return`${e}-trigger-${t}`}function tg(e,t){return`${e}-content-${t}`}function ty(e){return t=>"mouse"===t.pointerType?e(t):void 0}eU(tf,"getTabbableCandidates"),eU(tp,"focusFirst"),eU(th,"removeFromTabOrder"),eU(function(e,t){let n=eO(t);z(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])},"useResizeObserver"),eU(tm,"getOpenState"),eU(tv,"makeTriggerId"),eU(tg,"makeContentId"),eU(ty,"whenMouse"),e.i(527273);let tw="https://3dgunbuilder.com".replace(/\/$/,"");function tb(e){if(e)return/^https?:\/\//.test(e)?e:e.startsWith("/wp-content/")?`https://ynrglcvyfigjcpvxfpkw.supabase.co/storage/v1/object/public/media${e}`:`${tw}${e.startsWith("/")?"":"/"}${e}`}let tE=e=>{let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>t.disconnect()},tx=()=>document.documentElement.getAttribute("data-theme")||"light",tC=()=>"light";function tj(){let e=(0,i.useSyncExternalStore)(tE,tx,tC),t=(0,i.useCallback)(()=>{let e="dark"===tx()?"light":"dark";document.documentElement.setAttribute("data-theme",e);try{localStorage.setItem("theme",e)}catch{}},[]),r="dark"===e;return(0,n.jsxs)("button",{type:"button",className:"theme-toggle",onClick:t,"aria-label":r?"Switch to light mode":"Switch to dark mode",title:r?"Light mode":"Dark mode",children:[(0,n.jsxs)("svg",{className:"theme-ico-sun",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,n.jsx)("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),(0,n.jsx)("svg",{className:"theme-ico-moon",width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})})]})}let tS=()=>(0,n.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round","aria-hidden":"true",children:[(0,n.jsx)("circle",{cx:"11",cy:"11",r:"7"}),(0,n.jsx)("path",{d:"m20 20-3.8-3.8"})]}),tR=()=>(0,n.jsx)("svg",{className:"nm-caret",width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,n.jsx)("path",{d:"m6 9 6 6 6-6"})}),tP={rifles:"Rifles",pistols:"Pistols","polymer-80":"80 Percent",accessories:"Accessories",magazines:"Magazines",guides:"Guides",reviews:"Reviews",history:"History",printerviews:"Printerviews"};e.s(["MegaNav",0,function({data:e,siteName:t,logoUrl:a}){let[l,u]=(0,i.useState)(""),[c,d]=(0,i.useState)(!1),[f,p]=(0,i.useState)({query:"",results:[],error:!1}),[h,m]=(0,i.useState)(!1),v=(0,s.useRouter)();(0,i.useEffect)(()=>{let e=l.trim();if(e.length<2)return;let t=!0,n=window.setTimeout(async()=>{try{let n=await fetch(`/api/search?q=${encodeURIComponent(e)}`);
1if(!n.ok)throw Error("Search request failed");let r=await n.json();t&&p({query:e,results:r.results||[],error:!1})}catch{t&&p({query:e,results:[],error:!0})}},200);return()=>{t=!1,window.clearTimeout(n)}},[l]);let g=l.trim(),y=f.query!==g,w=y?[]:f.results,b=!y&&f.error,E=(e.featured||[]).slice(0,2);return(0,n.jsxs)("header",{className:"nm-header",children:[(0,n.jsxs)("div",{className:"nm-bar",children:[(0,n.jsx)(o.default,{href:"/",className:"nm-logo","aria-label":t,children:(0,n.jsx)(r.default,{src:a,alt:t,width:1716,height:575,priority:!0,quality:90,sizes:"110px"})}),(0,n.jsx)(e6,{className:"nm-root",delayDuration:100,children:(0,n.jsxs)(e8,{className:"nm-list",children:[(0,n.jsxs)(e5,{children:[(0,n.jsxs)(tt,{className:"nm-trigger",children:["Builds ",(0,n.jsx)(tR,{})]}),(0,n.jsx)(to,{className:"nm-content",children:(0,n.jsxs)("div",{className:"nm-panel nm-panel-split",children:[(0,n.jsx)("div",{className:"nm-cols",children:(e.groups.Builds||[]).map(e=>(0,n.jsx)("div",{className:"nm-col",children:(0,n.jsx)(o.default,{href:`/${e.category}/`,className:"nm-col-head",prefetch:!0,children:tP[e.category]||e.category})},e.category))}),E.length>0&&(0,n.jsx)("div",{className:"nm-cards",children:E.map(e=>(0,n.jsxs)(o.default,{href:e.href,className:"nm-card",prefetch:!0,children:[e.image&&(0,n.jsx)(r.default,{src:tb(e.image),alt:"",width:280,height:170,sizes:"280px",quality:70}),(0,n.jsx)("span",{className:"nm-card-title",children:e.title}),e.subtitle&&(0,n.jsx)("span",{className:"nm-card-sub",children:e.subt
1itle})]},e.href))})]})})]}),(0,n.jsx)(e5,{children:(0,n.jsx)(tr,{asChild:!0,children:(0,n.jsx)(o.default,{href:"/guides/",className:"nm-trigger nm-link",children:"Guides"})})}),(0,n.jsx)(e5,{children:(0,n.jsx)(tr,{asChild:!0,children:(0,n.jsx)(o.default,{href:"/designers/",className:"nm-trigger nm-link",children:"Designers"})})}),(0,n.jsx)(e5,{children:(0,n.jsx)(tr,{asChild:!0,children:(0,n.jsx)(o.default,{href:"/history/",className:"nm-trigger nm-link",children:"History"})})}),(0,n.jsx)(e5,{children:(0,n.jsx)(tr,{asChild:!0,children:(0,n.jsx)(o.default,{href:"/news/",className:"nm-trigger nm-link",children:"News"})})})]})}),(0,n.jsxs)("div",{className:"nm-search-wrap",onBlur:e=>{e.currentTarget.contains(e.relatedTarget)||d(!1)},children:[(0,n.jsxs)("form",{className:"nm-search",role:"search",onSubmit:e=>{e.preventDefault();let t=l.trim();t&&(d(!1),v.push(`/search/?q=${encodeURIComponent(t)}`))},children:[(0,n.jsx)("button",{type:"submit","aria-label":"Search the site",children:(0,n.jsx)(tS,{})}),(0,n.jsx)("input",{type:"search",value:l,onChange:e=>{u(e.target.value),d(!0)},onFocus:()=>d(!0),onKeyDown:e=>{"Escape"===e.key&&d(!1)},placeholder:"Search the site","aria-label":"Search the site","aria-expanded":c&&l.trim().length>=2,"aria-controls":"nav-search-suggestions"})]}),c&&l.trim().length>=2&&(0,n.jsxs)("div",{id:"nav-search-suggestions",className:"nm-search-preview","aria-label":"Search results",children:[(0,n.jsx)("p",{className:"nm-search-status",role:"status",children:y?"Searchingâ¦":b?"Unable to load results.":`${w.length} result${1===w.length?"":"s"}`}),!y&&!b&&w.length>0&&(0,n.jsx)("ul",{children:w.map(e=>(0,n.jsx)("li",{children:(0,n.jsxs)(o.default,{href:e.href,className:"nm-search-result",onClick:()=>d(!1),children:[(0,n.jsx)("span",{className:"nm-search-result-media","aria-hidden":"true",children:e.imageUrl?(0,n.jsx)(r.default,{src:tb(e.imageUrl),alt:"",width:72,height:52,sizes:"72px",quality:70}):(0,n.jsx)("span",{})}),(0,n.jsxs)("span",{children:[(0,n.jsx)("span",{className:"nm-search-result-title",children:e.title}),(0,n.jsx)("span",{className:"nm-search-result-cat",children:"designer"===e.kind?"Designer":tP[e.category||""]||e.category})]})]})},e._id))}),!y&&!b&&0===w.length&&(0,n.jsxs)("p",{className:"nm-search-empty",children:["No matches for â",l.trim(),"â. Try another search."]}),(0,n.jsxs)(o.default,{href:`/search/?q=${encodeURIComponent(l.trim())}`,className:"nm-search-all",onClick:()=>d(!1),children:["See all results for â",l.trim(),"â"]})]})]}),(0,n.jsx)(tj,{}),(0,n.jsx)("button",{className:"nm-toggle","aria-label":"Menu","aria-expanded":h,onClick:()=>m(e=>!e),children:(0,n.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:(0,n.jsx)("path",{d:"M4 7h16M4 12h16M4 17h16"})})})]}),h&&(0,n.jsxs)("div",{className:"nm-mobile",children:[(e.groups.Builds||[]).map(e=>(0,n.jsx)(o.default,{href:`/${e.category}/`,onClick:()=>m(!1),children:tP[e.category]||e.category},e.category)),(0,n.jsx)(o.default,{href:"/guides/",onClick:()=>m(!1),children:"Guides"}),(0,n.jsx)(o.default,{href:"/designers/",onClick:()=>m(!1),children:"Designers"}),(0,n.jsx)(o.default,{href:"/history/",onClick:()=>m(!1),children:"History"}),(0,n.jsx)(o.default,{href:"/news/",onClick:()=>m(!1),children:"News"})]})]})}],190742)}]);
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.