PageSourceSearch

https://www.cheapcarinsurance.net/_next/static/immutable/chunks/189j2sddysy94.js

js cheapcarinsurance.net collected 2026-09-24 22:02:32 UTC 87,319 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,14123,e=>{"use strict";var t=e.i(85844),n=e.i(2281),r=e.i(56463);function o(){return"u">typeof window}function a(){return"production"}function i(){return"development"===((o()?window.vam:a())||"production")}function s(e){return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)}function l(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:`/${e}`}function u(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(!o())return;let{beforeSend:r,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=a();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)),i()&&!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):i()?"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)}),r&&(null==(n=window.va)||n.call(window,"beforeSend",r)),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=i()?"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}function c(e){let o,a,i,{route:l,path:c}=(o=(0,r.useParams)(),a=(0,r.useSearchParams)(),i=(0,r.usePathname)(),o?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=s(r);e.test(n)&&(n=n.replace(e,`/[${t}]`))}for(let[t,r]of e)if(Array.isArray(r)){let e=s(r.join("/"));e.test(n)&&(n=n.replace(e,`/[...${t}]`))}return n}catch{return e}}(i,Object.keys(o).length?o:Object.fromEntries(a.entries())),path:i}:{route:null,path:i});return n.default.createElement(u,{path:c,route:l,...e,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":"4ed7ea10aa819386/script.js","viewEndpoint":"4ed7ea10aa819386/view","eventEndpoint":"4ed7ea10aa819386/event","sessionEndpoint":"4ed7ea10aa819386/session"},"speedInsights":{"scriptSrc":"2048fa8fe1d85810/script.js","endpoint":"2048fa8fe1d85810/vitals"}}'}(),framework:"next"})}e.s(["Analytics",0,function(e){return n.default.createElement(n.Suspense,{fallback:null},n.default.createElement(c,{...e}))}])},61418,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={cancelIdleCallback:function(){return i},requestIdleCallback:function(){return a}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a="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)},i="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)},38783,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={ESCAPE_REGEX:function(){return i},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},i=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},l=/[&"'<>]/g;function u(e){return e.replace(i,e=>a[e])}function c(e){return e.replace(l,e=>s[e])}},11441,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={default:function(){return y},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return b}};for(var o in r)Object.defineProperty(n,o,{enumerable:!0,get:r[o]});let a=e.r(36437),i=e.r(56421),s=e.r(9372),l=a._(e.r(35324)),u=i._(e.r(2281)),c=e.r(87762),d=e.r(21413),f=e.r(61418),p=e.r(38783),m=new Map,v=new Set,g=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:i="",strategy:s="afterInteractive",onError:u,stylesheets:c}=e,f=n||t;if(f&&v.has(f))return;if(m.has(t)){v.add(f),m.get(t).then(r,u);return}let p=()=>{o&&o(),v.add(f)},g=document.createElement("script"),h=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),p()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});a?(g.innerHTML=a.__html||"",p()):i?(g.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):"",p()):t&&(g.src=t,m.set(t,h)),(0,d.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),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(g)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function b(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");v.add(t)})}function w(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:a="afterInteractive",onError:i,stylesheets:d,...m}=e,{updateScripts:h,scripts:b,getIsSsr:w,appDir:y,nonce:x}=(0,u.useContext)(c.HeadManagerContext);x=m.nonce||x;let C=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||n;C.current||(o&&e&&v.has(e)&&o(),C.current=!0)},[o,t,n]);let E=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!E.current){if("afterInteractive"===a)g(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));E.current=!0}}
1,[e,a]),("beforeInteractive"===a||"worker"===a)&&(h?(b[a]=(b[a]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:i,...m,nonce:x}]),h(b)):w&&w()?v.add(t||n):w&&!w()&&g({...e,nonce:x})),y){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!n)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...m,id:t}]))})`}});else return l.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:x,crossOrigin:m.crossOrigin}:{as:"script",nonce:x,crossOrigin:m.crossOrigin}),(0,s.jsx)("script",{nonce:x,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([n,{...m,id:t}]))})`}});"afterInteractive"===a&&n&&l.default.preload(n,m.integrity?{as:"script",integrity:m.integrity,nonce:x,crossOrigin:m.crossOrigin}:{as:"script",nonce:x,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(w,"__nextScript",{value:!0});let y=w;("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)},56463,(e,t,n)=>{t.exports=e.r(64619)},45652,e=>{"use strict";var t=e.i(9372),n=e.i(68372),r=e.i(2281),o=e.i(31154);let a=0;function i(e,t=15e3){return new Promise(n=>{if("u"<typeof document)return void n();let r=document.createElement("script"),o=!1,a=null,i=()=>{o||(o=!0,null!==a&&(window.clearTimeout(a),a=null),n())};r.src=e,r.type="text/javascript",r.async=!0,r.onload=i,r.onerror=i,t>0&&(a=window.setTimeout(i,t)),document.head.appendChild(r)})}var s=e.i(18190);function l(){let{setSession:e,setLeadiDToken:t}=(0,n.useAwlSession)(),o=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{let n;o.current||(o.current=!0,(n=window).awl=n.awl??{},n.awl.site=n.awl.site??{},n.awl.site.scriptReplaceTags=(e,t)=>{for(let n of Array.isArray(e)?e:String(e).split(" "))u(n,t.replacementTargets,"innerHTML")},n.awl.site.scriptAddStyles=(e,t)=>{for(let n of Array.isArray(e)?e:String(e).split(" "))u(n,t.replacementTargets,"style")},n.awl.site.replaceImageByStateCode=(e,t)=>{let r=(n.UserSessionInfo?.replacementTargets??[]).find(e=>"geo-stateCode"===e.tagClass);if(!r)return;let o=r.text,a=o in e?e[o]:"https://d2en6kvan5r1zc.cloudfront.net/Assets/Sites/insurancequotes_com/images/people-in-line.png";document.querySelectorAll(t).forEach(e=>{e.src=a,e.removeAttribute("srcset")})},function(){let e=new URLSearchParams(window.location.search);if(e.has("heading")){let t=e.get("heading")??"";window.awl?.site?.scriptReplaceTags?.(["h1","h2","span"],{replacementTargets:[{tagClass:"site-lp-dynamic-heading",text:t},{tagClass:"site-article-dynamic-heading",text:t}]});let n=(e.has("size")?`font-size:${e.get("size")}px;`:"")+(e.has("top")?`margin-top:${e.get("top")}px;`:"");n&&window.awl?.site?.scriptAddStyles?.(["h1","span"],{replacementTargets:[{tagClass:"site-lp-dynamic-heading-styler",text:n}]})}else if(e.has("title")){let t=e.get("title")??"";window.awl?.site?.scriptReplaceTags?.(["h1","h2","span"],{replacementTargets:[{tagClass:"site-article-dynamic-heading",text:t}]})}}(),window.AwlSessionStatus="pending",window.AwlSessionReady=c({setSession:e,setLeadiDToken:t}))},[e,t]),null}function u(e,t,n){for(let r of t){let t=`${e}.${r.tagClass}`;document.querySelectorAll(t).forEach(e=>{"innerHTML"===n?e.innerHTML=r.text:e.setAttribute("style",r.text)})}}async function c({setSession:e,setLeadiDToken:t}){var n,r,l,u,d;let f,p,m,v,g=window.location.pathname+window.location.search,h=(0,s.buildUserSessionQueryString)(new URLSearchParams(window.location.search),g),b=`${o.AWL_CONFIG.quotexUrl}${o.QUOTEX_PATHS.userSessionJson}?${h}`;try{v=await function(e,t=15e3){return new Promise((n,r)=>{if("u"<typeof document)return void r(Error("jsonpFetch can only run in the browser"));let o=(a+=1,`awlJsonpCallback${Date.now()}_${a}_${Math.floor(1e12*Math.random())}`),i=null,s=null,l=()=>{null!==s&&(window.clearTimeout(s),s=null),i&&i.parentNode&&i.parentNode.removeChild(i),i=null;try{delete window[o]}catch{window[o]=void 0}};window[o]=e=>{l(),n(e)};let u=-1!==e.indexOf("?")?"&":"?";(i=document.createElement("script")).src=`${e}${u}callback=${o}`,i.async=!0,i.onerror=()=>{l(),r(Error(`JSONP request failed: ${e}`))},s=window.setTimeout(()=>{l(),r(Error(`JSONP request timed out after ${t}ms: ${e}`))},t),document.head.appendChild(i)})}(b)}catch(e){return console.warn("AWL session bootstrap failed:",e),window.AwlSessionStatus="failed",window.AwlLeadiDTokenStatus="failed",null}return(window.AwlUserSessionObject=v,e(v),v.AwlSessionId)?(n=v.AwlSessionId,"u">typeof document&&(document.cookie=`QX_ASP.Net_SessionId=${n}; domain=.${o.AWL_CONFIG.domain}; path=/; SameSite=Lax`),window.AwlSessionStatus="ready",r=v,(f=window.awlDataLayer)&&f[0]&&(f[0].sessionId=r.AwlSessionId??"",f[0].userSessionId=r.AwlUserSessionId?.toString()??"",f[0].testingMode=r.TestingMode??"False",f[0].adProviderCode=r.AdProviderCode??"",f[0].affiliateId=r.AffiliatePartnerId?.toString()??"",f[0].affiliateTrackingCode=r.AffiliateTrackingCode??"",f[0].userKeyword=r.UserKeyword??"",f[0].tk=r.Tk??"",f[0].tkAdvertiser=r.TkAdvertiser??"",f[0].tkAccount=r.TkAccount??"",f[0].tkCampaign=r.TkCampaign??"",f[0].tkAdGroup=r.TkAdGroup??"",f[0].tkKeyword=r.TkKeyword??""),p=[],(l=v).City&&(p.push({tagClass:"geo-city",text:l.City}),p.push({tagClass:"geo-location",text:l.City})),l.StateName&&p.push({tagClass:"geo-state",text:l.StateName}),l.StateCode&&p.push({tagClass:"geo-stateCode",text:l.StateCode}),l.ZipCode&&p.push({tagClass:"geo-zip",text:l.ZipCode}),window.UserSessionInfo={replacementTargets:p},p.length>0&&window.awl?.site?.scriptReplaceTags?.(["h1","span"],{replacementTargets:p}),window.GeoImageArray&&window.awl?.site?.replaceImageByStateCode?.(window.GeoImageArray,".geo-image-replace img"),window.LandingPageId&&(u=v.AwlSessionId,d=window.LandingPageId,m=!0===window.LandingPageCurrentlyInTest,i(`${o.AWL_CONFIG.quotexUrl}${o.QUOTEX_PATHS.logLandingPageId}?as=${encodeURIComponent(u)}&landingPageId=${encodeURIComponent(String(d))}&optimizeTest=${m?"true":"false"}`)),function(e,t){if("u"<typeof document)return;let n=e.LeadiDToken,r=null,a=null,s=(e,t)=>{window.AwlLeadiDTokenStatus=t,null!==a&&(window.clearTimeout(a),a=null),r&&(r(e),r=null)};if(n?(t(n),window.AwlLeadiDTokenStatus="ready",window.AwlLeadiDTokenReady=Prom
1ise.resolve(n)):(window.AwlLeadiDTokenStatus="pending",window.AwlLeadiDTokenReady=new Promise(e=>{r=e,a=window.setTimeout(()=>{"pending"===window.AwlLeadiDTokenStatus&&s(null,"failed")},5e3)})),window.initLeadiDTokenCapture=r=>{if(n)return void console.info("LeadiD already captured in AWL session; keeping server token",n);if(!r||0===r.length){console.warn("Jornaya callback fired with empty token"),s(null,"failed");return}if(!e.AwlSessionId){console.error("Cannot log LeadiD: missing AwlSessionId"),s(null,"failed");return}t(r),window.AwlUserSessionObject&&(window.AwlUserSessionObject.LeadiDToken=r),i(`${o.AWL_CONFIG.quotexUrl}${o.QUOTEX_PATHS.logLeadiDToken}?as=${encodeURIComponent(e.AwlSessionId)}&leadiDToken=${encodeURIComponent(r)}`,2e3).then(()=>{s(r,"ready")})},!document.getElementById("LeadiDscript")){let e=document.createElement("script");e.id="LeadiDscript",e.type="text/javascript",document.head.appendChild(e)}let l=document.createElement("script");l.id="LeadiDscript_campaign",l.type="text/javascript",l.async=!0,l.src=`//create.lidstatic.com/campaign/${o.AWL_CONFIG.jornaya.campaignId}.js?snippet_version=${o.AWL_CONFIG.jornaya.snippetVersion}&callback=initLeadiDTokenCapture`,l.onerror=()=>{n||"pending"!==window.AwlLeadiDTokenStatus||s(null,"failed")};let u=document.getElementById("LeadiDscript");u?.parentNode?.insertBefore(l,u)}(v,t)):(window.AwlSessionStatus="failed",window.AwlLeadiDTokenStatus="failed"),v}e.s(["AwlProvider",0,function({children:e}){return(0,t.jsxs)(n.AwlSessionContextProvider,{children:[(0,t.jsx)(l,{}),e]})}],45652)},79363,e=>{"use strict";var t,n,r,o,a,i,s,l,u=e.i(9372),c=e.i(72665);let d=(0,c.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]),f=(0,c.default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]),p=(0,c.default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var m=e.i(29047),v=e.i(56463),g=e.i(68557),h=e.i(25814);function b({variant:e="dark",className:t=""}){let n="dark"===e;return(0,u.jsx)(m.default,{href:"/","aria-label":"CheapCarInsurance.net home",className:`group inline-flex shrink-0 items-center transition-transform hover:scale-[1.02] ${t}`,children:(0,u.jsx)(h.default,{src:"/brand-logo.svg",alt:"CheapCarInsurance.net",width:124,height:40,priority:n,className:`h-10 w-auto ${n?"":"rounded-md bg-white"}`})})}var w=e.i(94237),y=e.i(29528),y=y,x=e.i(2281),C=e.i(35324),E=Object.defineProperty,S=(e,t)=>E(e,"name",{value:t,configurable:!0});function k(e,t=[]){let n=[];function r(t,r){let o=x.createContext(r);o.displayName=t+"Context";let a=n.length;n=[...n,r];let i=S(t=>{let{scope:n,children:r,...i}=t,s=n?.[e]?.[a]||o,l=x.useMemo(()=>i,Object.values(i));return(0,u.jsx)(s.Provider,{value:l,children:r})},"Provider");function s(n,i,l={}){let{optional:u=!1}=l,c=i?.[e]?.[a]||o,d=x.useContext(c);if(d)return d;if(void 0!==r)return r;if(!u)throw Error(`\`${n}\` must be used within \`${t}\``)}return i.displayName=t+"Provider",S(s,"useContext"),[i,s]}S(r,"createContext");let o=S(()=>{let t=n.map(e=>x.createContext(e));return S(function(n){let r=n?.[e]||t;return x.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,R(o,...t)]}function R(...e){let t=e[0];if(1===e.length)return t;let n=S(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return S(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}S(function(e,t){let n=x.createContext(t);n.displayName=e+"Context";let r=S(e=>{let{children:t,...r}=e,o=x.useMemo(()=>r,Object.values(r));return(0,u.jsx)(n.Provider,{value:o,children:t})},"Provider");function o(r,a={}){let{optional:i=!1}=a,s=x.useContext(n);if(s)return s;if(void 0!==t)return t;if(!i)throw Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",S(o,"useContext"),[r,o]},"createContext"),S(k,"createContextScope"),S(R,"composeContextScopes");var j=Object.defineProperty,N=(e,t)=>j(e,"name",{value:t,configurable:!0}),A=!!("u">typeof window&&window.document&&window.document.createElement);function T(e,t,{checkForDefaultPrevented:n=!0}={}){return N(function(r){if(e?.(r),!1===n||!r||!r.defaultPrevented)return t?.(r)},"handleEvent")}function P(e){if(!A)throw Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}function O(e){return"IFRAME"===e.tagName}N(T,"composeEventHandlers"),N(function(e){if(!A)throw Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window},"getOwnerWindow"),N(P,"getOwnerDocument"),N(function e(t,n=!1){let{activeElement:r}=P(t);if(!r?.nodeName)return null;if(O(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){let e=r.getAttribute("aria-activedescendant");if(e){let t=P(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),N(O,"isFrame");var I=e.i(63029),M=Object.defineProperty,D=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let n=(0,I.createSlot)(`Primitive.${t}`),r=x.forwardRef((e,r)=>{let{asChild:o,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(o?n:t,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function L(e,t){e&&C.flushSync(()=>e.dispatchEvent(t))}M(L,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var _=globalThis?.document?x.useLayoutEffect:()=>{},F=Object.defineProperty,$=x[" useEffectEvent ".trim().toString()],W=x[" useInsertionEffect ".trim().toString()];function z(e){if("function"==typeof $)return $(e);let t=x.useRef(()=>{throw Error("Cannot call an event handler while rendering.")});return"function"==typeof W?W(()=>{t.current=e}):_(()=>{t.current=e}),x.useMemo(()=>(...e)=>t.current?.(...e),[])}F(z,"name",{value:"useEffectEvent",configurable:!0});var U=Object.defineProperty,V=(e,t)=>U(e,"name",{value:t,configurable:!0}),K=x[" useInsertionEffect ".trim().toString()]||_;function B({prop:e,defaultProp:t,onChange:n=V(()=>{},"onChange"),caller:r}){let[o,a,i]=H({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;return[l,x.useCallback(t=>{if(s){let n=q(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i])]}function H({defaultProp:e,onChange:t}){let[n,r]=x.useState(e),o=x.useRef(n),a=x.useRef(t);return K(()=>{a.current=t},[t]),x.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}function q(e){return"function"==typeof e}V(B,"useControllableState"),V(H,"useUncontrolledState"),V(q,"isFunction");var G=Symbol("RADIX:SYNC_STATE");V(function(e,t,n,r){let{prop:o,defaultProp:a,onChange:i,caller:s}=t,l=void 0!==o,u=z(i),c=[{...n,state:a}];r&&c.push(r);let[d,f]=x.useReducer((t,n)=>{if(n.type===G)return{...t,state:n.state};let r=e(t,n);return l&&!Object.is(r.state,t.state)&&u(r.state),r},...c),p=d.state,m=x.useRef(p);x.useEffect(()=>{m.current!==p&&(m.current=p,l||u(p))},[p,m,l]);let v=x.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return x.useEffect(()=>{l&&!Object.is(o,d.state)&&f({type:G,state:o})},[o,d.state,l]),[v,f]},"useControllableStateReducer");var Y=e.i(33881),X=Object.defineProperty,J=x.createContext(void 0);function Z(e){let t=x.useContext(J);return e||t||"ltr"}X(Z,"name",{value:"useDirection",configurable:!0});var Q=Object.defineProperty,ee=(e,t)=>Q(e,"name",{value:t,configurable:!0});function et(e,t){return x.useReducer((e,n)=>t[e][n]??e,e)}ee(et,"useStateMachine");var en=ee(e=>{let{present:t,children:n}=e,r=er(t),o="function"==typeof n?n({present:r.isPresent}):x.Children.only(n),a=ea(r.ref,es(o));return"function"==typeof n||r.isPresent?x.cloneElement(o,{ref:a}):null},"Presence");function er(e){let[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),a=x.useRef("none"),i=x.useRef(void 0),[s,l]=et(e?"mounted":"unmounted",{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{"mounted"===s?(a.current=i.current??ei(r.current),i.current=void 0):a.current="none"},[s]),_(()=>{let t=r.current,n=o.current;if(n!==e){let r=a.current,s=ei(t);e?(i.current=s,l("MOUNT")):"none"===s||t?.display==="none"?l("UNMOUNT"):n&&r!==s?l("ANIMATION_OUT"):l("UNMOUNT"),o.current=e}},[e,l]),_(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,i=ee(a=>{let i=ei(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("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"),s=ee(e=>{e.target===t&&(a.current=ei(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:x.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,i.current=ei(t)}else r.current=null;n(e)},[])}}function eo(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ea(...e){let t=x.useRef(e);return t.current=e,x.useCallback(e=>{let n=t.current,r=!1,o=n.map(t=>{let n=eo(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;
1e++){let t=o[e];"function"==typeof t?t():eo(n[e],null)}}},[])}function ei(e){return e?.animationName||"none"}function es(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}ee(er,"usePresence"),ee(eo,"setRef"),ee(ea,"useStableComposedRefs"),ee(ei,"getAnimationName"),ee(es,"getElementRef");var el=Object.defineProperty,eu=x[" useId ".trim().toString()]||(()=>void 0),ec=0;function ed(e){let[t,n]=x.useState(eu());return _(()=>{e||n(e=>e??String(ec++))},[e]),e||(t?`radix-${t}`:"")}el(ed,"name",{value:"useId",configurable:!0});var ef=Object.defineProperty,ep=(e,t)=>ef(e,"name",{value:t,configurable:!0});function em(e){let t=e+"CollectionProvider",[n,r]=k(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=ep(e=>{let{scope:t,children:n}=e,r=x.useRef(null),a=x.useRef(new Map).current;return(0,u.jsx)(o,{scope:t,itemMap:a,collectionRef:r,children:n})},"CollectionProvider");i.displayName=t;let s=e+"CollectionSlot",l=(0,I.createSlot)(s),c=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=a(s,n),i=(0,Y.useComposedRefs)(t,o.collectionRef);return(0,u.jsx)(l,{ref:i,children:r})});c.displayName=s;let d=e+"CollectionItemSlot",f="data-radix-collection-item",p=(0,I.createSlot)(d),m=x.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,i=x.useRef(null),s=(0,Y.useComposedRefs)(t,i),l=a(d,n);return x.useEffect(()=>(l.itemMap.set(i,{ref:i,...o}),()=>void l.itemMap.delete(i))),(0,u.jsx)(p,{...{[f]:""},ref:s,children:r})});function v(t){let n=a(e+"CollectionConsumer",t);return x.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return m.displayName=d,ep(v,"useCollection"),[{Provider:i,Slot:c,ItemSlot:m},v,r]}ep(em,"createCollection");var ev=new WeakMap,eg=class e extends Map{static{ep(this,"OrderedDict")}#e;constructor(e){super(e),this.#e=[...super.keys()],ev.set(this,!0)}set(e,t){return ev.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,o=this.has(t),a=this.#e.length,i=ew(e),s=i>=0?i:a+i,l=s<0||s>=a?-1:s;if(l===this.size||o&&l===this.size-1||-1===l)return this.set(t,n),this;let u=this.size+ +!o;i<0&&s++;let c=[...this.#e],d=!1;for(let e=s;e<u;e++)if(s===e){let a=c[e];c[e]===t&&(a=c[e+1]),o&&this.delete(t),r=this.get(a),this.set(t,n)}else{d||c[e-1]!==t||(d=!0);let n=c[d?e:e-1],o=r;r=this.get(n),this.delete(n),this.set(n,o)}return this}with(t,n,r){let o=new e(this);return o.insert(t,n,r),o}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=eh(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=eh(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return eh(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=[],o=0;for(let e of this)Reflect.apply(t,n,[e,o,this])&&r.push(e),o++;return new e(r)}map(t,n){let r=[],o=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,o,this])]),o++;return new e(r)}reduce(...e){let[t,n]=e,r=0,o=n??this.at(0);for(let n of this)o=0===r&&1===e.length?n:Reflect.apply(t,this,[o,n,r,this]),r++;return o}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let o=this.at(n);r=n===this.size-1&&1===e.length?o:Reflect.apply(t,this,[r,o,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,o=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(o=n-1);for(let e=t;e<=o;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 eh(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=eb(e,t);return -1===n?void 0:e[n]}function eb(e,t){let n=e.length,r=ew(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function ew(e){return e!=e||0===e?0:Math.trunc(e)}function ey(e,t){if(e===t)return!0;
1if("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 ex(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function eC(e,t){return e[1].element&&t[1].element?ex(e[1].element,t[1].element)?-1:1:0}function eE(e){return new MutationObserver(t=>{for(let n of t)if("childList"===n.type)return void e()})}function eS(e){let t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...e)=>t.current?.(...e),[])}ep(eh,"at"),ep(eb,"toSafeIndex"),ep(ew,"toSafeInteger"),ep(function(e){let t=e+"CollectionProvider",[n,r]=k(t),[o,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new eg,setItemMap:ep(()=>void 0,"setItemMap")}),i=ep(({state:e,...t})=>e?(0,u.jsx)(l,{...t,state:e}):(0,u.jsx)(s,{...t}),"CollectionProvider");i.displayName=t;let s=ep(e=>{let t=g();return(0,u.jsx)(l,{...e,state:t})},"CollectionInit");s.displayName=t+"Init";let l=ep(e=>{let{scope:t,children:n,state:r}=e,a=x.useRef(null),[i,s]=x.useState(null),l=(0,Y.useComposedRefs)(a,s),[c,d]=r;return x.useEffect(()=>{if(!i)return;let e=eE(()=>{});return e.observe(i,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[i]),(0,u.jsx)(o,{scope:t,itemMap:c,setItemMap:d,collectionRef:l,collectionRefObject:a,collectionElement:i,children:n})},"CollectionProviderImpl");l.displayName=t+"Impl";let c=e+"CollectionSlot",d=(0,I.createSlot)(c),f=x.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=a(c,n),i=(0,Y.useComposedRefs)(t,o.collectionRef);return(0,u.jsx)(d,{ref:i,children:r})});f.displayName=c;let p=e+"CollectionItemSlot",m=(0,I.createSlot)(p),v=x.forwardRef((e,t)=>{let{scope:n,children:r,...o}=e,i=x.useRef(null),[s,l]=x.useState(null),c=(0,Y.useComposedRefs)(t,i,l),{setItemMap:d}=a(p,n),f=x.useRef(o);ey(f.current,o)||(f.current=o);let v=f.current;return x.useEffect(()=>(d(e=>s?e.has(s)?e.set(s,{...v,element:s}).toSorted(eC):(e.set(s,{...v,element:s}),e.toSorted(eC)):e),()=>{d(e=>s&&e.has(s)?(e.delete(s),new eg(e)):e)}),[s,v,d]),(0,u.jsx)(m,{"data-radix-collection-item":"",ref:c,children:r})});function g(){return x.useState(new eg)}function h(t){let{itemMap:n}=a(e+"CollectionConsumer",t);return n}return v.displayName=p,ep(g,"useInitCollection"),ep(h,"useCollection"),[{Provider:i,Slot:f,ItemSlot:v},{createCollectionScope:r,useCollection:h,useInitCollection:g}]},"createCollection"),ep(ey,"shallowEqual"),ep(ex,"isElementPreceding"),ep(eC,"sortByDocumentPosition"),ep(eE,"getChildListObserver"),(0,Object.defineProperty)(eS,"name",{value:"useCallbackRef",configurable:!0});var ek=Object.defineProperty,eR=(e,t)=>ek(e,"name",{value:t,configurable:!0}),ej="dismissableLayer.update",eN=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),eA=x.forwardRef(eR(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...d}=e,f=x.useContext(eN),[p,m]=x.useState(null),v=p?.ownerDocument??globalThis?.document,[,g]=x.useState({}),h=(0,Y.useComposedRefs)(t,m),b=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=w?b.indexOf(w):-1,C=p?b.indexOf(p):-1,E=f.layersWithOutsidePointerEventsDisabled.size>0,S=C>=y,k=x.useRef(!1),R=eO(e=>{a?.(e),l?.(e),e.defaultPrevented||c?.()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:k,dismissableSurfaces:f.dismissableSurfaces,shouldHandlePointerDownOutside:x.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...f.branches].some(t=>t.contains(e));return S&&!t},[f.branches,S])}),j=eI(e=>{if(r&&k.current)return;let t=e.target;![...f.branches].some(e=>e.contains(t))&&(i?.(e),l?.(e),e.defaultPrevented||c?.())},v),N=!!p&&C===b.length-1,A=eS(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return x.useEffect(()=>{if(N)return v.addEventListener("keydown",A,{capture:!0}),()=>v.removeEventListener("keydown",A,{capture:!0})},[v,N,A]),x.useEffect(()=>{if(p)return n&&(0===f.layersWithOutsidePointerEventsDisabled.size&&(s=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),eM(),()=>{n&&(f.layersWithOutsidePointerEventsDisabled.delete(p),0===f.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=s))}},[p,v,n,f]),x.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),eM())},[p,f]),x.useEffect(()=>{let e=eR(()=>g({}),"handleUpdate");return document.addEventListener(ej,e),()=>document.removeEventListener(ej,e)},[]),(0,u.jsx)(D.div,{...d,ref:h,style:{pointerEvents:E?S?"auto":"none":void 0,...e.style},onFocusCapture:T(e.onFocusCapture,j.onFocusCapture),onBlurCapture:T(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:T(e.onPointerDownCapture,R.onPointerDownCapture)})},"DismissableLayer"));function eT(){let e=x.useContext(eN),[t,n]=x.useState(null);return x.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}eR(eT,"useDismissableLayerSurface");var eP=eR(()=>!0,"IS_TRUE");function eO(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=eP}=t,s=eS(e),l=x.useRef(!1),u=x.useRef(!1),c=x.useRef(new Map),d=x.useRef(()=>{});return x.useEffect(()=>{function e(){u.current=!1,o.current=!1,c.current.clear()}function t(){return Array.from(c.current.values()).some(Boolean)}function f(e){if(!u.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||c.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function p(e){u.current&&c.current.set(e.type,!1)}eR(e,"resetOutsideInteraction"),eR(t,"isOutsideInteractionIntercepted"),eR(f,"handleInteractionCapture"),eR(p,"handleInteractionBubble");let m=eR(a=>
1{if(a.target&&!l.current){let f=function(){n.removeEventListener("click",d.current);let r=t();e(),r||eD("dismissableLayer.pointerDownOutside",s,p,{discrete:!0})};if(eR(f,"handleAndDispatchPointerDownOutsideEvent"),!i(a.target)){n.removeEventListener("click",d.current),e(),l.current=!1;return}let p={originalEvent:a};u.current=!0,o.current=r&&0===a.button,c.current.clear(),r&&0===a.button?(n.removeEventListener("click",d.current),d.current=f,n.addEventListener("click",d.current,{once:!0})):f()}else n.removeEventListener("click",d.current),e();l.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{for(let e of(window.clearTimeout(g),n.removeEventListener("pointerdown",m),n.removeEventListener("click",d.current),v))n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,o,a,i]),{onPointerDownCapture:eR(()=>l.current=!0,"onPointerDownCapture")}}function eI(e,t=globalThis?.document){let n=eS(e),r=x.useRef(!1);return x.useEffect(()=>{let e=eR(e=>{e.target&&!r.current&&eD("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:eR(()=>r.current=!0,"onFocusCapture"),onBlurCapture:eR(()=>r.current=!1,"onBlurCapture")}}function eM(){let e=new CustomEvent(ej);document.dispatchEvent(e)}function eD(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?L(o,a):o.dispatchEvent(a)}function eL(e){let t=x.useRef({value:e,previous:e});return x.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}eR(eO,"usePointerDownOutside"),eR(eI,"useFocusOutside"),eR(eM,"dispatchUpdate"),eR(eD,"handleAndDispatchCustomEvent"),(0,Object.defineProperty)(eL,"name",{value:"usePrevious",configurable:!0});var e_=Object.defineProperty,eF=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"}),e$=x.forwardRef(e_(function(e,t){return(0,u.jsx)(D.span,{...e,ref:t,style:{...eF,...e.style}})},"name",{value:"VisuallyHidden",configurable:!0})),eW=Object.defineProperty,ez=(e,t)=>eW(e,"name",{value:t,configurable:!0}),eU="NavigationMenu",[eV,eK,eB]=em(eU),[eH,eq,eG]=em(eU),[eY,eX]=k(eU,[eB,eG]),[eJ,eZ]=eY(eU),[eQ,e0]=eY(eU),e1=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,delayDuration:i=200,skipDelayDuration:s=300,orientation:l="horizontal",dir:c,...d}=e,[f,p]=x.useState(null),m=(0,Y.useComposedRefs)(t,p),v=Z(c),g=x.useRef(0),h=x.useRef(0),b=x.useRef(0),[w,y]=x.useState(!0),[C,E]=B({prop:r,onChange:ez(e=>{let t=s>0;""!==e?(window.clearTimeout(b.current),t&&y(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>y(!0),s)),o?.(e)},"onChange"),defaultProp:a??"",caller:eU}),S=x.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>E(""),150)},[E]),k=x.useCallback(e=>{window.clearTimeout(h.current),E(e)},[E]),R=x.useCallback(e=>{C===e?window.clearTimeout(h.current):g.current=window.setTimeout(()=>{window.clearTimeout(h.current),E(e)},i)},[C,E,i]);return x.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(h.current),window.clearTimeout(b.current)},[]),(0,u.jsx)(e5,{scope:n,isRootMenu:!0,value:C,dir:v,orientation:l,rootNavigationMenu:f,onTriggerEnter:e=>{window.clearTimeout(g.current),w?R(e):k(e)},onTriggerLeave:()=>{window.clearTimeout(g.current),S()},onContentEnter:()=>window.clearTimeout(h.current),onContentLeave:S,onItemSelect:e=>{E(t=>t===e?"":e)},onItemDismiss:()=>E(""),children:(0,u.jsx)(D.nav,{"aria-label":"Main","data-orientation":l,dir:v,...d,ref:m})})},"NavigationMenu")),e2="NavigationMenuSub",e3=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:a,orientation:i="horizontal",...s}=e,l=eZ(e2,n),[c,d]=B({prop:r,onChange:o,defaultProp:a??"",caller:e2});return(0,u.jsx)(e5,{scope:n,isRootMenu:!1,value:c,dir:l.dir,orientation:i,rootNavigationMenu:l.rootNavigationMenu,onTriggerEnter:e=>d(e),onItemSelect:e=>d(e),onItemDismiss:()=>d(""),children:(0,u.jsx)(D.div,{"data-orientation":i,...s,ref:t})})},"NavigationMenuSub")),e5=ez(e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:r,dir:o,orientation:a,children:i,value:s,onItemSelect:l,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:f,onContentEnter:p,onContentLeave:m}
1=e,[v,g]=x.useState(null),[h,b]=x.useState(new Map),[w,y]=x.useState(null);return(0,u.jsx)(eJ,{scope:t,isRootMenu:n,rootNavigationMenu:r,value:s,previousValue:eL(s),baseId:ed(),dir:o,orientation:a,viewport:v,onViewportChange:g,indicatorTrack:w,onIndicatorTrackChange:y,onTriggerEnter:eS(d),onTriggerLeave:eS(f),onContentEnter:eS(p),onContentLeave:eS(m),onItemSelect:eS(l),onItemDismiss:eS(c),onViewportContentChange:x.useCallback((e,t)=>{b(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:x.useCallback(e=>{b(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,u.jsx)(eV.Provider,{scope:t,children:(0,u.jsx)(eQ,{scope:t,items:h,children:i})})})},"NavigationMenuProvider"),e4=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=eZ("NavigationMenuList",n),a=(0,u.jsx)(D.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,u.jsx)(D.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,u.jsx)(eV.Slot,{scope:n,children:o.isRootMenu?(0,u.jsx)(tv,{asChild:!0,children:a}):a})})},"NavigationMenuList")),[e8,e6]=eY("NavigationMenuItem"),e9=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,value:r,...o}=e,a=ed(),i=x.useRef(null),s=x.useRef(null),l=x.useRef(null),c=x.useRef(()=>{}),d=x.useRef(!1),f=x.useCallback((e="start")=>{if(i.current){c.current();let t=tb(i.current);t.length&&tw("start"===e?t:t.reverse())}},[]),p=x.useCallback(()=>{if(i.current){let e=tb(i.current);e.length&&(c.current=ty(e))}},[]);return(0,u.jsx)(e8,{scope:n,value:r||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:i,focusProxyRef:l,wasEscapeCloseRef:d,onEntryKeyDown:f,onFocusProxyEnter:f,onRootContentClose:p,onContentFocusOutside:p,children:(0,u.jsx)(D.li,{...o,ref:t})})},"NavigationMenuItem")),e7="NavigationMenuTrigger",te=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,disabled:r,...o}=e,a=eZ(e7,e.__scopeNavigationMenu),i=e6(e7,e.__scopeNavigationMenu),s=x.useRef(null),l=(0,Y.useComposedRefs)(s,i.triggerRef,t),c=tE(a.baseId,i.value),d=tS(a.baseId,i.value),f=x.useRef(!1),p=x.useRef(!1),m=i.value===a.value;return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(eV.ItemSlot,{scope:n,value:i.value,children:(0,u.jsx)(th,{asChild:!0,children:(0,u.jsx)(D.button,{id:c,disabled:r,"data-disabled":r?"":void 0,"data-state":tC(m),"aria-expanded":m,"aria-controls":m?d:void 0,...o,ref:l,onPointerEnter:T(e.onPointerEnter,()=>{p.current=!1,i.wasEscapeCloseRef.current=!1}),onPointerMove:T(e.onPointerMove,tk(()=>{r||p.current||i.wasEscapeCloseRef.current||f.current||(a.onTriggerEnter(i.value),f.current=!0)})),onPointerLeave:T(e.onPointerLeave,tk(()=>{r||(a.onTriggerLeave(),f.current=!1)})),onClick:T(e.onClick,()=>{a.onItemSelect(i.value),p.current=m}),onKeyDown:T(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===a.dir?"ArrowLeft":"ArrowRight"}[a.orientation];m&&e.key===t&&(i.onEntryKeyDown(),e.preventDefault())})})})}),m&&(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(e$,{"aria-hidden":!0,tabIndex:0,ref:i.focusProxyRef,onFocus:e=>{let t=i.contentRef.current,n=e.relatedTarget,r=n===s.current,o=t?.contains(n);(r||!o)&&i.onFocusProxyEnter(r?"start":"end")}}),a.viewport&&(0,u.jsx)("span",{"aria-owns":d})]})]})},"NavigationMenuTrigger")),tt="navigationMenu.linkSelect",tn=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,active:r,onSelect:o,...a}=e;return(0,u.jsx)(th,{asChild:!0,children:(0,u.jsx)(D.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...a,ref:t,onClick:T(e.onClick,e=>{let t=e.target,n=new CustomEvent(tt,{bubbles:!0,cancelable:!0});t.addEventListener(tt,e=>o?.(e),{once:!0}),L(t,n),n.defaultPrevented||e.metaKey||L(t,new CustomEvent(tu,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})},"NavigationMenuLink")),tr="NavigationMenuIndicator",to=x.forwardRef(ez(function(e,t){let{forceMount:n,...r}=e,o=eZ(tr,e.__scopeNavigationMenu),a=!!o.value;return o.indicatorTrack?C.createPortal((0,u.jsx)(en,{present:n||a,children:(0,u.jsx)(ta,{...r,ref:t})}),o.indicatorTrack):null},"NavigationMenuIndicator")),ta=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=eZ(tr,n),a=eK(n),[i,s]=x.useState(null),[l,c]=x.useState(null),d="horizontal"===o.orientation,f=!!o.value;x.useEffect(()=>{let e=a(),t=e.find(e=>e.value===o.value)?.ref.current;t&&s(t)},[a,o.value]);let p=ez(()=>{i&&c({size:d?i.offsetWidth:i.offsetHeight,offset:d?i.offsetLeft:i.offsetTop})},"handlePositionChange");return tx(i,p),tx(o.indicatorTrack,p),l?(0,u.jsx)(D.div,{"aria-hidden":!0,"data-state":f?"visible":"hidden","data-orientation":o.orientation,...r,ref:t,style:{position:"absolute",...d?{left:0,width:l.size+"px",transform:`translateX(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-x":`${l.offset}px`}:{top:0,height:l.size+"px",transform:`translateY(${l.offset}px)`,"--radix-navigation-menu-indicator-translate-y":`${l.offset}px`},...r.style}}):null},"NavigationMenuIndicatorImpl")),ti="NavigationMenuContent",ts=x.forwardRef(ez(function(e,t){let{forceMount:n,...r}=e,o=eZ(ti,e.__scopeNavigationMenu),a=e6(ti,e.__scopeNavigationMenu),i=(0,Y.useComposedRefs)(a.contentRef,t),s=a.value===o.value,l={value:a.value,triggerRef:a.triggerRef,focu
1sProxyRef:a.focusProxyRef,wasEscapeCloseRef:a.wasEscapeCloseRef,onContentFocusOutside:a.onContentFocusOutside,onRootContentClose:a.onRootContentClose,...r};return o.viewport?(0,u.jsx)(tl,{forceMount:n,...l,ref:i}):(0,u.jsx)(en,{present:n||s,children:(0,u.jsx)(tc,{"data-state":tC(s),...l,ref:i,onPointerEnter:T(e.onPointerEnter,o.onContentEnter),onPointerLeave:T(e.onPointerLeave,tk(o.onContentLeave)),style:{pointerEvents:!s&&o.isRootMenu?"none":void 0,...l.style}})})},"NavigationMenuContent")),tl=x.forwardRef(ez(function(e,t){let{onViewportContentChange:n,onViewportContentRemove:r}=eZ(ti,e.__scopeNavigationMenu);return _(()=>{n(e.value,{ref:t,...e})},[e,t,n]),_(()=>()=>r(e.value),[e.value,r]),null},"ViewportContentMounter")),tu="navigationMenu.rootContentDismiss",tc=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,value:r,triggerRef:o,focusProxyRef:a,wasEscapeCloseRef:i,onRootContentClose:s,onContentFocusOutside:l,...c}=e,d=eZ(ti,n),f=x.useRef(null),p=(0,Y.useComposedRefs)(f,t),m=tE(d.baseId,r),v=tS(d.baseId,r),g=eK(n),h=x.useRef(null),{onItemDismiss:b}=d;x.useEffect(()=>{let e=f.current;if(d.isRootMenu&&e){let t=ez(()=>{b(),s(),e.contains(document.activeElement)&&o.current?.focus()},"handleClose");return e.addEventListener(tu,t),()=>e.removeEventListener(tu,t)}},[d.isRootMenu,e.value,o,b,s]);let w=x.useMemo(()=>{let e=g().map(e=>e.value);"rtl"===d.dir&&e.reverse();let t=e.indexOf(d.value),n=e.indexOf(d.previousValue),o=r===d.value,a=n===e.indexOf(r);if(!o&&!a)return h.current;let i=(()=>{if(t!==n){if(o&&-1!==n)return t>n?"from-end":"from-start";if(a&&-1!==t)return t>n?"to-start":"to-end"}return null})();return h.current=i,i},[d.previousValue,d.value,d.dir,g,r]);return(0,u.jsx)(tv,{asChild:!0,children:(0,u.jsx)(eA,{id:v,"aria-labelledby":m,"data-motion":w,"data-orientation":d.orientation,...c,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{let e=new Event(tu,{bubbles:!0,cancelable:!0});f.current?.dispatchEvent(e)},onFocusOutside:T(e.onFocusOutside,e=>{l();let t=e.target;d.rootNavigationMenu?.contains(t)&&e.preventDefault()}),onPointerDownOutside:T(e.onPointerDownOutside,e=>{let t=e.target,n=g().some(e=>e.ref.current?.contains(t)),r=d.isRootMenu&&d.viewport?.contains(t);(n||r||!d.isRootMenu)&&e.preventDefault()}),onKeyDown:T(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=tb(e.currentTarget),n=document.activeElement,r=t.findIndex(e=>e===n);tw(e.shiftKey?t.slice(0,r).reverse():t.slice(r+1,t.length))?e.preventDefault():a.current?.focus()}}),onEscapeKeyDown:T(e.onEscapeKeyDown,e=>{i.current=!0})})})},"NavigationMenuContentImpl")),td="NavigationMenuViewport",tf=x.forwardRef(ez(function(e,t){let{forceMount:n,...r}=e,o=!!eZ(td,e.__scopeNavigationMenu).value;return(0,u.jsx)(en,{present:n||o,children:(0,u.jsx)(tp,{...r,ref:t})})},"NavigationMenuViewport")),tp=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,children:r,...o}=e,a=eZ(td,n),i=(0,Y.useComposedRefs)(t,a.onViewportChange),s=e0(ti,e.__scopeNavigationMenu),[l,c]=x.useState(null),[d,f]=x.useState(null),p=l?l?.width+"px":void 0,m=l?l?.height+"px":void 0,v=!!a.value,g=v?a.value:a.previousValue,h=ez(()=>{d&&c({width:d.offsetWidth,height:d.offsetHeight})},"handleSizeChange");return tx(d,h),(0,u.jsx)(D.div,{"data-state":tC(v),"data-orientation":a.orientation,...o,ref:i,style:{pointerEvents:!v&&a.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":m,...o.style},onPointerEnter:T(e.onPointerEnter,a.onContentEnter),onPointerLeave:T(e.onPointerLeave,tk(a.onContentLeave)),children:Array.from(s.items).map(([e,{ref:t,forceMount:n,...r}])=>{let o=g===e;return(0,u.jsx)(en,{present:n||o,children:(0,u.jsx)(tm,{...r,contentRef:t,isActive:o,onActiveContentChange:f})},e)})})},"NavigationMenuViewportImpl")),tm=ez(({contentRef:e,isActive:t,onActiveContentChange:n,...r})=>{let o=x.useCallback(e=>{t&&e&&n(e)},[t,n]),a=(0,Y.useComposedRefs)(e,o);return(0,u.jsx)(tc,{...r,ref:a})},"NavigationMenuViewportItem"),tv=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=eZ("FocusGroup",n);return(0,u.jsx)(eH.Provider,{scope:n,children:(0,u.jsx)(eH.Slot,{scope:n,children:(0,u.jsx)(D.div,{dir:o.dir,...r,ref:t})})})},"FocusGroup")),tg=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],th=x.forwardRef(ez(function(e,t){let{__scopeNavigationMenu:n,...r}=e,o=eq(n),a=eZ("FocusGroupItem",n);return(0,u.jsx)(eH.ItemSlot,{scope:n,children:(0,u.jsx)(D.button,{...r,ref:t,onKeyDown:T(e.onKeyDown,e=>
1{if(["Home","End",...tg].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===a.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),tg.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>tw(t)),e.preventDefault()}})})})},"FocusGroupItem"));function tb(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ez(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 tw(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function ty(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 tx(e,t){let n=eS(t);_(()=>{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])}function tC(e){return e?"open":"closed"}function tE(e,t){return`${e}-trigger-${t}`}function tS(e,t){return`${e}-content-${t}`}function tk(e){return t=>"mouse"===t.pointerType?e(t):void 0}ez(tb,"getTabbableCandidates"),ez(tw,"focusFirst"),ez(ty,"removeFromTabOrder"),ez(tx,"useResizeObserver"),ez(tC,"getOpenState"),ez(tE,"makeTriggerId"),ez(tS,"makeContentId"),ez(tk,"whenMouse"),e.s(["Content",0,ts,"Indicator",0,to,"Item",0,e9,"Link",0,tn,"List",0,e4,"NavigationMenu",0,e1,"NavigationMenuContent",0,ts,"NavigationMenuIndicator",0,to,"NavigationMenuItem",0,e9,"NavigationMenuLink",0,tn,"NavigationMenuList",0,e4,"NavigationMenuSub",0,e3,"NavigationMenuTrigger",0,te,"NavigationMenuViewport",0,tf,"Root",0,e1,"Sub",0,e3,"Trigger",0,te,"Viewport",0,tf,"createNavigationMenuScope",0,eX],68318);var tR=e.i(68318),tR=tR,tj=e.i(11418);function tN({className:e,children:t,viewport:n=!0,...r}){return(0,u.jsxs)(tR.Root,{"data-slot":"navigation-menu","data-viewport":n,className:(0,tj.cn)("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",e),...r,children:[t,n&&(0,u.jsx)(tM,{})]})}function tA({className:e,...t}){return(0,u.jsx)(tR.List,{"data-slot":"navigation-menu-list",className:(0,tj.cn)("group flex flex-1 list-none items-center justify-center gap-1",e),...t})}function tT({className:e,...t}){return(0,u.jsx)(tR.Item,{"data-slot":"navigation-menu-item",className:(0,tj.cn)("relative",e),...t})}let tP=(0,w.cva)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-[color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=open]:bg-accent/50 data-[state=open]:text-accent-foreground data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent");function tO({className:e,children:t,...n}){return(0,u.jsxs)(tR.Trigger,{"data-slot":"navigation-menu-trigger",className:(0,tj.cn)(tP(),"group",e),...n,children:[t," ",(0,u.jsx)(y.default,{className:"relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})}function tI({className:e,...t}){return(0,u.jsx)(tR.Content,{"data-slot":"navigation-menu-content",className:(0,tj.cn)("top-0 left-0 w-full p-2 pr-2.5 data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out md:absolute md:w-auto","group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95",e),...t})}function tM({className:e,...t}){return(0,u.jsx)("div",{className:(0,tj.cn)("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,u.jsx)(tR.Viewport,{"data-slot":"navigation-menu-viewport",className:(0,tj.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),...t})})}function tD({className:e,...t}){return(0,u.jsx)(tR.Link,{"data-slot":"navigation-menu-link",className:(0,tj.cn)("flex flex-col gap-1 rounded-sm p-2 text-sm transition-all outline-none hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground data-[active=true]:hover:bg-accent data-[active=true]:focus:bg-accent [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",e),...t})}var tL=Object.defineProperty,t_=(e,t)=>
1tL(e,"name",{value:t,configurable:!0}),tF="focusScope.autoFocusOnMount",t$="focusScope.autoFocusOnUnmount",tW={bubbles:!1,cancelable:!0},tz=x.forwardRef(t_(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[s,l]=x.useState(null),c=eS(o),d=eS(a),f=x.useRef(null),p=(0,Y.useComposedRefs)(t,l),m=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:tG(f.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;null!==t&&(s.contains(t)||tG(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&tG(s)};t_(e,"handleFocusIn"),t_(t,"handleFocusOut"),t_(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,m.paused]),x.useEffect(()=>{if(s){tY.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(tF,tW);s.addEventListener(tF,c),s.dispatchEvent(t),t.defaultPrevented||(tU(tZ(tK(s)),{select:!0}),document.activeElement===e&&tG(s))}return()=>{s.removeEventListener(tF,c),setTimeout(()=>{let t=new CustomEvent(t$,tW);s.addEventListener(t$,d),s.dispatchEvent(t),t.defaultPrevented||tG(e??document.body,{select:!0}),s.removeEventListener(t$,d),tY.remove(m)},0)}}},[s,c,d,m]);let v=x.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=tV(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&tG(a,{select:!0})):(e.preventDefault(),n&&tG(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,u.jsx)(D.div,{tabIndex:-1,...i,ref:p,onKeyDown:v})},"FocusScope"));function tU(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(tG(r,{select:t}),document.activeElement!==n)return}function tV(e){let t=tK(e);return[tB(t,e),tB(t.reverse(),e)]}function tK(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t_(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 tB(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):tH(r,{upTo:t})))return r}function tH(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function tq(e){return e instanceof HTMLInputElement&&"select"in e}function tG(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tq(e)&&t&&e.select()}}t_(tU,"focusFirst"),t_(tV,"getTabbableEdges"),t_(tK,"getTabbableCandidates"),t_(tB,"findVisible"),t_(tH,"isHidden"),t_(tq,"isSelectableInput"),t_(tG,"focus");var tY=tX();function tX(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),(e=tJ(e,t)).unshift(t)},remove(t){e=tJ(e,t),e[0]?.resume()}}}function tJ(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}function tZ(e){return e.filter(e=>"A"!==e.tagName)}t_(tX,"createFocusScopesStack"),t_(tJ,"arrayRemove"),t_(tZ,"removeLinks");var tQ=Object.defineProperty,t0=x.forwardRef(tQ(function(e,t){let{container:n,...r}=e,[o,a]=x.useState(!1);_(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?C.createPortal((0,u.jsx)(D.div,{...r,ref:t}),i):null},"name",{value:"Portal",configurable:!0}
1)),t1=Object.defineProperty,t2=(e,t)=>t1(e,"name",{value:t,configurable:!0}),t3=0,t5=null;function t4(){x.useEffect(()=>{t5||(t5={start:t8(),end:t8()});let{start:e,end:t}=t5;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),t3++,()=>{1===t3&&(t5?.start.remove(),t5?.end.remove(),t5=null),t3=Math.max(0,t3-1)}},[])}function t8(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}t2(function(e){return t4(),e.children},"FocusGuards"),t2(t4,"useFocusGuards"),t2(t8,"createFocusGuard");var t6=function(){return(t6=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function t9(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var t7=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),ne="width-before-scroll-bar";function nt(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var nn="u">typeof window?x.useLayoutEffect:x.useEffect,nr=new WeakMap,no=(void 0===t&&(t={}),(void 0===n&&(n=function(e){return e}),r=[],o=!1,a={read:function(){if(o)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:null},useMedium:function(e){var t=n(e,o);return r.push(t),function(){r=r.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(o=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){o=!0;var t=[];if(r.length){var n=r;r=[],n.forEach(e),t=r}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}).options=t6({async:!0,ssr:!1},t),a),na=function(){},ni=x.forwardRef(function(e,t){var n,r,o,a,i=x.useRef(null),s=x.useState({onScrollCapture:na,onWheelCapture:na,onTouchMoveCapture:na}),l=s[0],u=s[1],c=e.forwardProps,d=e.children,f=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,g=e.sideCar,h=e.noRelative,b=e.noIsolation,w=e.inert,y=e.allowPinchZoom,C=e.as,E=e.gapMode,S=t9(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[i,t],r=function(e){return n.forEach(function(t){return nt(t,e)})},(o=(0,x.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,nn(function(){var e=nr.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||nt(e,null)}),r.forEach(function(e){t.has(e)||nt(e,o)})}nr.set(a,n)},[n]),a),R=t6(t6({},S),l);return x.createElement(x.Fragment,null,m&&x.createElement(g,{sideCar:no,removeScrollBar:p,shards:v,noRelative:h,noIsolation:b,inert:w,setCallbacks:u,allowPinchZoom:!!y,lockRef:i,gapMode:E}),c?x.cloneElement(x.Children.only(d),t6(t6({},R),{ref:k})):x.createElement(void 0===C?"div":C,t6({},R,{className:f,ref:k}),d))});ni.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ni.classNames={fullWidth:ne,zeroRight:t7};var ns=function(e){var t=e.sideCar,n=t9(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return x.createElement(r,t6({},n))};ns.isSideCarExport=!0;var nl=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=l||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,o;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nu=function(){var e=nl();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},nc=function(){var e=nu();return function(t){return e(t.styles,t.dynamic),null}},nd={left:0,top:0,right:0,gap:0},nf=function(e){return parseInt(e||"",10)||0},np=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[nf(n),nf(r),nf(o)]},nm=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return nd;var t=np(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nv=nc(),ng="data-scroll-locked",nh=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(ng,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(t7," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(ne," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(t7," .").concat(t7," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ne," .").concat(ne," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(ng,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},nb=function(){var e=parseInt(document.body.getAttribute(ng)||"0",10);return isFinite(e)?e:0},nw=function(){x.useEffect(function(){return document.body.setAttribute(ng,(nb()+1).toString()),function(){var e=nb()-1;e<=0?document.body.removeAttribute(ng):document.body.setAttribute(ng,e.toString())}},[])},ny=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;nw();var a=x.useMemo(function(){return nm(o)},[o]);return x.createElement(nv,{styles:nh(a,!t,o,n?"":"!important")})},nx=!1;if("u">typeof window)try{var nC=Object.defineProperty({},"passive",{get:function(){return nx=!0,!0}});window.addEventListener("test",nC,nC),window.removeEventListener("test",nC,nC)}catch(e){nx=!1}var nE=!!nx&&{passive:!1},nS=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},nk=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nR(e,r)){var o=nj(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},nR=function(e,t){return"v"===e?nS(t,"overflowY"):nS(t,"overflowX")},nj=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nN=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=i*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{if(!l)break;var m=nj(e,l),v=m[0],g=m[1]-m[2]-i*v;(v||g)&&nR(e,l)&&(f+=g,p+=v);var h=l.parentNode;l=h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE?h.host:h}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-s>p)&&(c=!0),c},nA=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nT=function(e){return[e.deltaX,e.deltaY]},nP=function(e){return e&&"current"in e?e.current:e},nO=0,nI=[];let nM=(i=function(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(nO++)[0],a=x.useState(nc)[0],i=x.useRef(e);x.useEffect(function(){i.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(nP),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=nA(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],u="deltaY"in e?e.deltaY:s[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var m=nk(d,c);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=nk(d,c)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var v=r.current||o;return nN(v,t,e,"h"===v?l:u,!0)},[]),l=x.useCallback(function(e){if(nI.length&&nI[nI.length-1]===a){var n="deltaY"in e?nT(e):nA(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}
1if(!r){var o=(i.current.shards||[]).map(nP).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=x.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=x.useCallback(function(e){n.current=nA(e),r.current=void 0},[]),d=x.useCallback(function(t){u(t.type,nT(t),t.target,s(t,e.lockRef.current))},[]),f=x.useCallback(function(t){u(t.type,nA(t),t.target,s(t,e.lockRef.current))},[]);x.useEffect(function(){return nI.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,nE),document.addEventListener("touchmove",l,nE),document.addEventListener("touchstart",c,nE),function(){nI=nI.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,nE),document.removeEventListener("touchmove",l,nE),document.removeEventListener("touchstart",c,nE)}},[]);var p=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?x.createElement(ny,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},no.useMedium(i),ns);var nD=x.forwardRef(function(e,t){return x.createElement(ni,t6({},e,{ref:t,sideCar:nM}))});nD.classNames=ni.classNames;var nL=new WeakMap,n_=new WeakMap,nF={},n$=0,nW=function(e){return e&&(e.host||nW(e.parentNode))},nz=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=nW(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});nF[n]||(nF[n]=new WeakMap);var a=nF[n],i=[],s=new Set,l=new Set(o),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(nL.get(e)||0)+1,u=(a.get(e)||0)+1;nL.set(e,l),a.set(e,u),i.push(e),1===l&&o&&n_.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),n$++,function(){i.forEach(function(e){var t=nL.get(e)-1,o=a.get(e)-1;nL.set(e,t),a.set(e,o),t||(n_.has(e)||e.removeAttribute(r),n_.delete(e)),o||e.removeAttribute(n)}),--n$||(nL=new WeakMap,nL=new WeakMap,n_=new WeakMap,nF={})}},nU=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),nz(r,o,n,"aria-hidden")):function(){return null}},nV=Object.defineProperty,nK=(e,t)=>nV(e,"name",{value:t,configurable:!0}),nB="Dialog",[nH,nq]=k(nB),[nG,nY]=nH(nB),nX=nK(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,s=x.useRef(null),l=x.useRef(null),[c,d]=B({prop:r,defaultProp:o??!1,onChange:a,caller:nB}),[f,p]=x.useState(0),[m,v]=x.useState(0);return(0,u.jsx)(nG,{scope:t,triggerRef:s,contentRef:l,contentId:ed(),titleId:ed(),descriptionId:ed(),titlePresent:f>0,descriptionPresent:m>0,setTitleCount:p,setDescriptionCount:v,open:c,onOpenChange:d,onOpenToggle:x.useCallback(()=>d(e=>!e),[d]),modal:i,children:n})},"Dialog"),nJ=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,...r}=e,o=nY("DialogTrigger",n),a=(0,Y.useComposedRefs)(t,o.triggerRef);return(0,u.jsx)(D.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":ra(o.open),...r,ref:a,onClick:T(e.onClick,o.onOpenToggle)})},"DialogTrigger")),nZ="DialogPortal",[nQ,n0]=nH(nZ,{forceMount:void 0}),n1=nK(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=nY(nZ,t);return(0,u.jsx)(nQ,{scope:t,forceMount:n,children:x.Children.map(r,e=>(0,u.jsx)(en,{present:n||a.open,children:(0,u.jsx)(t0,{asChild:!0,container:o,children:e})}))})},"DialogPortal"),n2="DialogOverlay",n3=x.forwardRef(nK(function(e,t){let n=n0(n2,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=nY(n2,e.__scopeDialog);return a.modal?(0,u.jsx)(en,{present:r||a.open,children:(0,u.jsx)(n4,{...o,ref:t})}):null},"DialogOverlay")),n5=(0,I.createSlot)("DialogOverlay.RemoveScroll"),n4=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,...r}=e,o=nY(n2,n),a=eT(),i=(0,Y.useComposedRefs)(t,a);return(0,u.jsx)(nD,{as:n5,allowPinchZoom:!0,shards:[o.contentRef],children:(0,u.jsx)(D.div,{"data-state":ra(o.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})},"DialogOverlayImpl")),n8="DialogContent",n6=x.forwardRef(nK(function(e,t){let n=n0(n8,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=nY(n8,e.__scopeDialog);return(0,u.jsx)(en,{present:r||a.open,children:a.modal?(0,u.jsx)(n9,{...o,ref:t}):(0,u.jsx)(n7,{...o,ref:t})})},"DialogContent")),n9=x.forwardRef(nK(function(e,t){let n=nY(n8,e.__scopeDialog),r=x.useRef(null),o=(0,Y.useComposedRefs)(t,n.contentRef,r);return x.useEffect(()=>{let e=r.current;if(e)return nU(e)},[]),(0,u.jsx)(re,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:T(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:T(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:T(e.onFocusOutside,e=>e.preventDefault())})},"DialogContentModal")),n7=x.forwardRef(nK(function(e,t){let n=nY(n8,e.__scopeDialog),r=x.useRef(!1),o=x.useRef(!1);return(0,u.jsx)(re,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})},"DialogContentNonModal")),re=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,s=nY(n8,n);return t4(),(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(tz,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,u.jsx)(eA,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":ra(s.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},"DialogContentImpl")),rt=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,...r}=e,o=nY("DialogTitle",n),{setTitleCount:a}=o;return _(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,u.jsx)(D.h2,{id:o.titleId,...r,ref:t})},"DialogTitle")),rn=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,...r}=e,o=nY("DialogDescription",n),{setDescriptionCount:a}=o;return _(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,u.jsx)(D.p,{id:o.descriptionId,...r,ref:t})},"DialogDescription")),rr=x.forwardRef(nK(function(e,t){let{__scopeDialog:n,...r}=e,o=nY("DialogClose",n);return(0,u.jsx)(D.button,{type:"button",...r,ref:t,onClick:T(e.onClick,()=>o.onOpenChange(!1))})},"DialogClose")),ro=nK(e=>e.children,"WarningProvider");function ra(e){return e?"open":"closed"}nK(ra,"getState"),e.s(["Close",0,rr,"Content",0,n6,"Description",0,rn,"Dialog",0,nX,"DialogClose",0,rr,"DialogContent",0,n6,"DialogDescription",0,rn,"DialogOverlay",0,n3,"DialogPortal",0,n1,"DialogTitle",0,rt,"DialogTrigger",0,nJ,"Overlay",0,n3,"Portal",0,n1,"Root",0,nX,"Title",0,rt,"Trigger",0,nJ,"WarningProvider",0,ro,"createDialogScope",0,nq],38583);var ri=e.i(38583),ri=ri;function rs({...e}){return(0,u.jsx)(ri.Root,{"data-slot":"sheet",...e})}function rl({...e}){return(0,u.jsx)(ri.Trigger,{"data-slot":"sheet-trigger",...e})}function ru({...e}){return(0,u.jsx)(ri.Close,{"data-slot":"sheet-close",...e})}function rc({...e}){return(0,u.jsx)(ri.Portal,{"data-slot":"sheet-portal",...e})}function rd({className:e,...t}){return(0,u.jsx)(ri.Overlay,{"data-slot":"sheet-overlay",className:(0,tj.cn)("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",e),...t})}function rf({className:e,overlayClassName:t,children:n,side:r="right",showCloseButton:o=!0,...a}){return(0,u.jsxs)(rc,{children:[(0,u.jsx)(rd,{className:t}),(0,u.jsxs)(ri.Content,{"data-slot":"sheet-content",className:(0,tj.cn)("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:animate-in data-[state=open]:duration-500","right"===r&&"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm","left"===r&&"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm","top"===r&&"inset-x-0 top-0 h-auto border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top","bottom"===r&&"inset-x-0 bottom-0 h-auto border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",e),...a,children:[n,o&&(0,u.jsxs)(ri.Close,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none data-[state=open]:bg-secondary",children:[(0,u.jsx)(p,{className:"size-4"}),(0,u.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function rp({className:e,...t}){return(0,u.jsx)(ri.Title,{"data-slot":"sheet-title",className:(0,tj.cn)("font-semibold text-foreground",e),...t})}function rm({className:e,...t}
1){return(0,u.jsx)(ri.Description,{"data-slot":"sheet-description",className:(0,tj.cn)("text-sm text-muted-foreground",e),...t})}var rv=e.i(95113);let rg=[{name:"Alabama",abbr:"AL",slug:"alabama-al"},{name:"Alaska",abbr:"AK",slug:"alaska-ak"},{name:"Arizona",abbr:"AZ",slug:"arizona-az"},{name:"Arkansas",abbr:"AR",slug:"arkansas-ar"},{name:"California",abbr:"CA",slug:"california-ca"},{name:"Colorado",abbr:"CO",slug:"colorado-co"},{name:"Connecticut",abbr:"CT",slug:"connecticut-ct"},{name:"Delaware",abbr:"DE",slug:"delaware-de"},{name:"Florida",abbr:"FL",slug:"florida-fl"},{name:"Georgia",abbr:"GA",slug:"georgia-ga"},{name:"Hawaii",abbr:"HI",slug:"hawaii-hi"},{name:"Idaho",abbr:"ID",slug:"idaho-id"},{name:"Illinois",abbr:"IL",slug:"illinois-il"},{name:"Indiana",abbr:"IN",slug:"indiana-in"},{name:"Iowa",abbr:"IA",slug:"iowa-ia"},{name:"Kansas",abbr:"KS",slug:"kansas-ks"},{name:"Kentucky",abbr:"KY",slug:"kentucky-ky"},{name:"Louisiana",abbr:"LA",slug:"louisiana-la"},{name:"Maine",abbr:"ME",slug:"maine-me"},{name:"Maryland",abbr:"MD",slug:"maryland-md"},{name:"Massachusetts",abbr:"MA",slug:"massachusetts-ma"},{name:"Michigan",abbr:"MI",slug:"michigan-mi"},{name:"Minnesota",abbr:"MN",slug:"minnesota-mn"},{name:"Mississippi",abbr:"MS",slug:"mississippi-ms"},{name:"Missouri",abbr:"MO",slug:"missouri-mo"},{name:"Montana",abbr:"MT",slug:"montana-mt"},{name:"Nebraska",abbr:"NE",slug:"nebraska-ne"},{name:"Nevada",abbr:"NV",slug:"nevada-nv"},{name:"New Hampshire",abbr:"NH",slug:"new-hampshire-nh"},{name:"New Jersey",abbr:"NJ",slug:"new-jersey-nj"},{name:"New Mexico",abbr:"NM",slug:"new-mexico-nm"},{name:"New York",abbr:"NY",slug:"new-york-ny"},{name:"North Carolina",abbr:"NC",slug:"north-carolina-nc"},{name:"North Dakota",abbr:"ND",slug:"north-dakota-nd"},{name:"Ohio",abbr:"OH",slug:"ohio-oh"},{name:"Oklahoma",abbr:"OK",slug:"oklahoma-ok"},{name:"Oregon",abbr:"OR",slug:"oregon-or"},{name:"Pennsylvania",abbr:"PA",slug:"pennsylvania-pa"},{name:"Rhode Island",abbr:"RI",slug:"rhode-island-ri"},{name:"South Carolina",abbr:"SC",slug:"south-carolina-sc"},{name:"South Dakota",abbr:"SD",slug:"south-dakota-sd"},{name:"Tennessee",abbr:"TN",slug:"tennessee-tn"},{name:"Texas",abbr:"TX",slug:"texas-tx"},{name:"Utah",abbr:"UT",slug:"utah-ut"},{name:"Vermont",abbr:"VT",slug:"vermont-vt"},{name:"Virginia",abbr:"VA",slug:"virginia-va"},{name:"Washington",abbr:"WA",slug:"washington-wa"},{name:"West Virginia",abbr:"WV",slug:"west-virginia-wv"},{name:"Wisconsin",abbr:"WI",slug:"wisconsin-wi"},{name:"Wyoming",abbr:"WY",slug:"wyoming-wy"}],rh=[{label:"Insurance Tips",href:"/insurance-tips"},{label:"About",href:"/about"},{label:"Contact",href:"/contact"}],rb="1-844-906-0664",rw=[["A","E"],["F","J"],["K","M"],["N","O"],["P","T"],["U","Z"]].map(([e,t])=>({label:`${e}–${t}`,states:rg.filter(n=>{let r=n.name[0].toUpperCase();return r>=e&&r<=t})}));function ry(e,t){return"/"===t?"/"===e:e===t||e.startsWith(`${t}/`)}let rx=(0,tj.cn)("text-sm font-medium px-3 py-2 rounded-md transition-colors","text-muted-foreground hover:text-foreground bg-transparent","hover:bg-transparent focus:bg-transparent focus:text-foreground","data-[active=true]:text-foreground data-[active=true]:hover:text-foreground","data-[state=open]:text-foreground data-[state=open]:hover:text-foreground data-[state=open]:focus:text-foreground");e.s(["Header",0,function(){let e=(0,v.usePathname)(),t=e.startsWith("/cheap-car-insurance-in-");return(0,u.jsx)("header",{className:"bg-card dark:bg-card/95 border-b border-border dark:border-border/50 sticky top-0 z-[60] backdrop-blur-sm",children:(0,u.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,u.jsxs)("div",{className:"flex items-center justify-between h-16 gap-4",children:[(0,u.jsx)(b,{variant:"dark"}),(0,u.jsx)(tN,{className:"hidden md:flex flex-1 justify-center max-w-none",children:(0,u.jsxs)(tA,{className:"gap-1",children:[(0,u.jsx)(tT,{children:(0,u.jsx)(tD,{asChild:!0,active:ry(e,"/insurance-tips"),
1className:rx,children:(0,u.jsx)(m.default,{href:"/insurance-tips","aria-current":ry(e,"/insurance-tips")?"page":void 0,children:"Insurance Tips"})})}),(0,u.jsxs)(tT,{children:[(0,u.jsx)(tO,{className:(0,tj.cn)(rx,"h-9",t&&"text-foreground"),children:"States"}),(0,u.jsx)(tI,{children:(0,u.jsx)("div",{className:"grid grid-cols-6 gap-x-4 p-4 w-[800px]",children:rw.map(t=>(0,u.jsxs)("div",{children:[(0,u.jsx)("h4",{className:"text-[0.7rem] font-bold uppercase tracking-widest text-muted-foreground/70 mb-2 pb-1.5 border-b border-border",children:t.label}),(0,u.jsx)("ul",{className:"space-y-px",children:t.states.map(t=>{let n=`/cheap-car-insurance-in-${t.slug}`,r=e===n||e.startsWith(`${n}/`);return(0,u.jsx)("li",{children:(0,u.jsx)(tD,{asChild:!0,children:(0,u.jsx)(m.default,{href:n,"aria-current":r?"page":void 0,className:(0,tj.cn)("block rounded px-2 py-1 text-sm transition-colors","hover:bg-muted hover:text-primary focus:bg-muted focus:text-primary",r&&"text-primary bg-primary/10 font-medium"),children:t.name})})},t.slug)})})]},t.label))})})]}),(0,u.jsx)(tT,{children:(0,u.jsx)(tD,{asChild:!0,active:ry(e,"/about"),className:rx,children:(0,u.jsx)(m.default,{href:"/about","aria-current":ry(e,"/about")?"page":void 0,children:"About"})})}),(0,u.jsx)(tT,{children:(0,u.jsx)(tD,{asChild:!0,active:ry(e,"/contact"),className:rx,children:(0,u.jsx)(m.default,{href:"/contact","aria-current":ry(e,"/contact")?"page":void 0,children:"Contact"})})})]})}),(0,u.jsx)("div",{className:"hidden md:flex items-center gap-4",children:(0,u.jsxs)("a",{href:`tel:${rb}`,onClick:()=>(0,rv.capturePostHogEvent)("phone_clicked",{location:"header_desktop"}),className:"hidden lg:flex items-center gap-1.5 text-sm font-semibold text-foreground hover:text-primary transition-colors",children:[(0,u.jsx)(f,{className:"h-4 w-4"}),rb]})}),(0,u.jsxs)(rs,{children:[(0,u.jsx)(rl,{asChild:!0,children:(0,u.jsxs)(g.Button,{variant:"ghost",size:"icon",className:"group md:hidden","aria-label":"Toggle menu",children:[(0,u.jsx)(d,{className:"h-5 w-5 group-data-[state=open]:hidden"}),(0,u.jsx)(p,{className:"h-5 w-5 hidden group-data-[state=open]:block"})]})}),(0,u.jsxs)(rf,{side:"top",showCloseButton:!1,className:"top-16 gap-0 p-0 shadow-2xl",overlayClassName:"top-16 bg-black/40",children:[(0,u.jsx)(rp,{className:"sr-only",children:"Navigation menu"}),(0,u.jsx)(rm,{className:"sr-only",children:"Site navigation links and contact information"}),(0,u.jsx)("nav",{className:"flex flex-col p-3",children:rh.map(t=>{let n=ry(e,t.href);return(0,u.jsx)(ru,{asChild:!0,children:(0,u.jsx)(m.default,{href:t.href,"aria-current":n?"page":void 0,className:(0,tj.cn)("px-3 py-3 text-base font-medium rounded-lg transition-colors","text-muted-foreground hover:bg-muted hover:text-foreground",n&&"text-foreground bg-muted/60"),children:t.label})},t.label)})}),(0,u.jsx)("div",{className:"px-3 pb-4 pt-2 border-t border-border space-y-2",children:(0,u.jsxs)("a",{href:`tel:${rb}`,onClick:()=>(0,rv.capturePostHogEvent)("phone_clicked",{location:"header_mobile"}),className:"flex items-center gap-2 px-3 py-2 text-sm font-semibold text-foreground",children:[(0,u.jsx)(f,{className:"h-4 w-4"}),rb]})})]})]})]})})})}],79363)}]);

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.