1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,98183,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return i},searchParamsToUrlQuery:function(){return a},urlQueryToSearchParams:function(){return l}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});function a(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function o(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,o(e));else t.set(r,o(n));return t}function i(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},18967,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return b},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return g},SP:function(){return m},ST:function(){return x},WEB_VITALS:function(){return a},execOnce:function(){return o},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return i},isResSent:function(){return h},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return f},stringifyError:function(){return k}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=["CLS","FCP","FID","INP","LCP","TTFB"];function o(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,i=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function h(e){return e.finished||e.headersSent}function f(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&h(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,x=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class b extends Error{}class y extends Error{}class g extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function k(e){return JSON.stringify({message:e.message,stack:e.stack})}},33525,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(90809)._(e.r(98183)),o=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",s=e.pathname||"",l=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||o.test(n))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),s=s.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${s}${u}${l}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},18581,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return s}});let n=e.r(71645);function s(e,t){let r=(0,n.useRef)(null),s=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=s.current;t&&(s.current=null,t())}else e&&(r.current=a(e,n)),t&&(s.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),s=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,s.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return b},useLinkStatus:function(){return g}};for(var s in n)Object.defineProperty(r,s,{enumerable:!0,get:n[s]});let a=e.r(90809),o=e.r(43476),l=a._(e.r(71645)),i=e.r(95057),c=e.r(8372),u=e.r(18581),d=e.r(18967),h=e.r(5550);e.r(33525);let f=e.r(88540),p=e.r(91949),m=e.r(73668),x=e.r(9396);function b(t){var r,n;let s,a,b,[g,v]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),j=(0,l.useRef)(null),{href:k,as:w,children:N,prefetch:$=null,passHref:E,replace:S,shallow:C,scroll:I,onClick:P,onMouseEnter:O,onTouchStart:A,legacyBehavior:L=!1,onNavigate:R,transitionTypes:M,ref:_,unstable_dynamicOnHover:T,...D}=t;s=N,L&&("string"==typeof s||"number"==typeof s)&&(s=(0,o.jsx)("a",{children:s}));let U=l.default.useContext(c.AppRouterContext),F=!1!==$,z=!1!==$?null===(n=$)||"auto"===n?x.FetchStrategy.PPR:x.FetchStrategy.Full:x.FetchStrategy.PPR,B="string"==typeof(r=w||k)?r:(0,i.formatUrl)(r);if(L){if(s?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(s)}let K=L?a&&"object"==typeof a&&a.ref:_,W=l.default.useCallback(e=>(null!==U&&(j.current=(0,p.mountLinkInstance)(e,B,U,z,F,v)),()=>{j.current&&((0,p.unmountLinkForCurrentNavigation)(j.current),j.current=null),(0,p.unmountPrefetchableInstance)(e)}),[F,B,U,z,v]),q={ref:(0,u.useMergedRef)(W,K),onClick(t){L||"function"!=typeof P||P(t),L&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!U||t.defaultPrevented||function(t,r,n,s,a,o,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(99781);l.default.startTransition(()=>{d(r,s?"replace":"push",!1===a?f.ScrollBehavior.NoScroll:f.ScrollBehavior.Default,n.current,i)})}}(t,B,j,S,I,R,M)},onMouseEnter(e){L||"function"!=typeof O||O(e),L&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),U&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)},onTouchStart:function(e){L||"function"!=typeof A||A(e),L&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),U&&F&&(0,p.onNavigationIntent)(e.currentTarget,!0===T)}};return(0,d.isAbsoluteUrl)(B)?q.href=B:L&&!E&&("a"!==a.type||"href"in a.props)||(q.href=(0,h.addBasePath)(B)),b=L?l.default.cloneElement(a,q):(0,o.jsx)("a",{...D,...q,children:s}),(0,o.jsx)(y.Provider,{value:g,children:b})}e.r(84508);let y=(0,l.createContext)(p.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},18566,(e,t,r)=>{t.exports=e.r(76562)},85806,e=>{"use strict";var t=e.i(43476);function r(e){return e>=80?"#5FB98C":e>=50?"#D9A441":"#D9534F"}function n(e){return null==e?"â":(Math.max(0,Math.min(100,e))/10).toFixed(1)}e.s(["default",0,function({score:e,size:s=72}){let a=Math.max(0,Math.min(100,e)),o=s<56?3.5:s<80?4.5:5.5,l=s/2,i=l-o/2-Math.max(4.5,.1*s),c=i-o/2-Math.max(3,.05*s),u=2*Math.PI*i,d=a/100*u,h=r(a),f=a>=80?"#8FD9B0":a>=50?"#F0C979":"#EE8C88",p=`cs${s}-${Math.round(a)}`,m=n(a),x=s*(m.length>3?.25:.32);return(0,t.jsxs)("div",{className:"relative inline-grid place-items-center",style:{width:s,height:s},role:"img","aria-label":`Chrono Score ${m} out of 10`,children:[(0,t.jsxs)("svg",{width:s,height:s,viewBox:`0 0 ${s} ${s}`,className:"absolute inset-0",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:`${p}a`,x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,t.jsx)("stop",{offset:"0",stopColor:f}),(0,t.jsx)("stop",{offset:"1",stopColor:h})]}),(0,t.jsxs)("radialGradient",{id:`${p}d`,cx:"0.5",cy:"0.3",r:"0.75",children:[(0,t.jsx)("stop",{offset:"0",stopColor:"var(--brass)",stopOpacity:"0.16"}),(0,t.jsx)("stop",{offset:"1",stopColor:"var(--brass)",stopOpacity:"0.02"})]})]}),(0,t.jsx)("circle",{cx:l,cy:l,r:l-.6,fill:"none",stroke:"var(--brass)",strokeOpacity:"0.55",strokeWidth:"1"}),(0,t.jsxs)("g",{transform:`rotate(-90 ${l} ${l})`,children:[(0,t.jsx)("circle",{cx:l,cy:l,r:i,fill:"none",stroke:"var(--mist)",strokeOpacity:"0.18",strokeWidth:o}),a>0&&(0,t.jsx)("circle",{cx:l,cy:l,r:i,fill:"none",stroke:h,strokeOpacity:"0.14",strokeWidth:o+3,strokeLinecap:"round",strokeDasharray:`${d} ${u}`}),a>0&&(0,t.jsx)("circle",{cx:l,cy:l,r:i,fill:"none",stroke:`url(#${p}a)`,strokeWidth:o,strokeLinecap:"round",strokeDasharray:`${d} ${u}`})]}),(0,t.jsx)("circle",{cx:l,cy:l,r:c,fill:`url(#${p}d)`}),(0,t.jsx)("circle",{cx:l,cy:l,r:c,fill:"none",stroke:"var(--brass)",strokeOpacity:"0.22",strokeWidth:"0.75"})]}),(0,t.jsx)("span",{className:"relative font-serif leading-none",style:{color:"var(--ivory)",fontSize:x},children:m})]})},"score10",0,n,"scoreColor",0,r,"scoreLabel",0,function(e){return e>=80?"Fresh":e>=50?"Ageing":"Tired"}])},91204,42084,e=>{"use strict";var t=e.i(43476);let r=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e.s(["default",0,function({text:e,tokens:n}){let s,a=n.filter(e=>e.length>=2).map(r);if(!a.length||!e)return(0,t.jsx)(t.Fragment,{children:e});let o=RegExp(`(${a.join("|")})`,"ig"),l=[],i=0;for(;null!==(s=o.exec(e));)s.index>i&&l.push(e.slice(i,s.index)),l.push((0,t.jsx)("mark",{className:"rounded-[3px] bg-brass/25 px-px text-ivory",children:s[0]},s.index)),i=s.index+s[0].length,s.index===o.lastIndex&&o.lastIndex++;return i<e.length&&l.push(e.slice(i)),(0,t.jsx)(t.Fragment,{children:l})}],91204);let n={nyc:"new york",ny:"new york",la:"los angeles",sf:"san francisco",lv:"las vegas",vegas:"las vegas",dc:"washington",nola:"new orleans",philly:"philadelphia",uk:"united kingdom",usa:"united states",us:"united states",uae:"united arab emirates",ksa:"saudi arabia",czechia:"czech republic",holland:"netherlands",bcn:"barcelona",ibz:"ibiza",cdmx:"mexico city",rio:"rio de janeiro",bkk:"bangkok",hk:"hong kong",kl:"kuala lumpur",st:"saint",mtn:"mountain"};e.s(["expandQuery",0,function(e){let t=e.trim().split(/\s+/);if(!t.length)return e;let r=t.map(e=>n[e.toLowerCase().replace(/[^a-z0-9]/g,"")]??e).join(" ");return r!==e.trim()?r:e}],42084)},49941,e=>{"use strict";var t=e.i(43476),r=e.i(22016),n=e.i(71645);let s="hc_compare";e.s(["default",0,function(){let[e,a]=(0,n.useState)([]);return((0,n.useEffect)(()=>{let e=()=>a(function(){try{return JSON.parse(localStorage.getItem(s)||"[]")}catch{return[]}}());return e(),window.addEventListener("hc-compare-change",e),window.addEventListener("storage",e),()=>{window.removeEventListener("hc-compare-change",e),window.removeEventListener("storage",e)}},[]),0===e.length)?null:(0,t.jsxs)("div",{className:"fixed bottom-4 left-1/2 z-[90] flex -translate-x-1/2 items-center gap-3 rounded-full border border-brass/40 bg-ink-panel/95 px-4 py-2.5 shadow-[0_12px_34px_rgba(0,0,0,0.5)] backdrop-blur",children:[(0,t.jsxs)("span",{className:"font-mono text-xs text-mist",children:[e.length," selected"]}),(0,t.jsx)(r.default,{href:`/compare?h=${e.join(",")}`,className:"rounded-full bg-brass px-4 py-1.5 text-sm font-medium text-onbrass transition-colors hover:bg-brass-bright",children:"Compare â"}),(0,t.jsx)("button",{onClick:function(){localStorage.setItem(s,"[]"),window.dispatchEvent(new Event("hc-compare-change"))},className:"font-mono text-xs text-mist hover:text-ivory",children:"Clear"})]})}])},11015,e=>{"use strict";var t=e.i(43476),r=e.i(71645);let n="hc-consent";function s(){if("u"<typeof document||document.getElementById("tp-drive"))return;let e=document.createElement("script");e.id="tp-drive",e.async=!0,e.src="https://emrld.ltd/NTQxMDIx.js?t=541021",document.body.appendChild(e)}e.s(["default",0,function(){let[e,a]=(0,r.useState)(!1);function o(e){try{localStorage.setItem(n,e?"accepted":"declined")}catch{}e&&s(),a(!1)}return((0,r.useEffect)(()=>{let e=null;try{e=localStorage.getItem(n)}catch{}"accepted"===e?s():null==e&&a(!0)},[]),e)?(0,t.jsx)("div",{role:"dialog","aria-label":"Cookie consent",className:"fixed inset-x-3 bottom-3 z-[100] mx-auto max-w-2xl rounded-2xl border border-brass/30 bg-ink-deep/95 p-4 text-ivory shadow-2xl backdrop-blur sm:inset-x-auto sm:left-1/2 sm:-translate-x-1/2",children:(0,t.jsxs)("div",{className:"flex flex-col items-start gap-3 sm:flex-row sm:items-center",children:[(0,t.jsxs)("p",{className:"flex-1 text-sm text-mist",children:["We use a cookie-based affiliate tool to keep HotelChrono free. It loads only if you accept."," ",(0,t.jsx)("a",{href:"/privacy",className:"text-brass hover:underline",children:"Privacy"}),"."]}),(0,t.jsxs)("div",{className:"flex shrink-0 gap-2",children:[(0,t.jsx)("button",{onClick:()=>o(!1),className:"rounded-full border border-brass/30 px-4 py-2 text-sm text-mist transition-colors hover:border-brass hover:text-ivory",children:"Decline"}),(0,t.jsx)("button",{onClick:()=>o(!0),className:"rounded-full bg-brass px-4 py-2 text-sm font-medium text-onbrass transition-colors hover:bg-brass-bright",children:"Accept"})]})]})}):null}])},47898,e=>{"use strict";var t=e.i(43476),r=e.i(71645);e.s(["default",0,function(){let[e,n]=(0,r.useState)(!1),[s,a]=(0,r.useState)(!1),[o,l]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{if("1"===new URLSearchParams(window.location.search).get("preview_update"))return void n(!0);let e=!1;async function t(){if("hidden"!==document.visibilityState)try{let t=await fetch("/api/version",{cache:"no-store"});if(!t.ok)return;let r=await t.json();!e&&r.v&&"837774a2"!==r.v&&n(!0)}catch{}}t();let r=window.setInterval(t,6e4),s=()=>t();return window.addEventListener("focus",s),document.addEventListener("visibilitychange",s),()=>{e=!0,window.clearInterval(r),window.removeEventListener("focus",s),document.removeEventListener("visibilitychange",s)}},[]),!e||s)?null:(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"fixed inset-x-4 bottom-4 z-[80] mx-auto max-w-sm sm:inset-x-auto sm:right-6 sm:mx-0",style:{animation:"hcUpNotice .32s cubic-bezier(.2,.8,.2,1)"},children:[(0,t.jsx)("style",{children:"@keyframes hcUpNotice{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}"}),(0,t.jsxs)("div",{className:"relative overflow-hidden rounded-2xl border border-brass/40 bg-ink-deep/95 p-4 shadow-2xl backdrop-blur",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-brass to-transparent"}),(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-10 w-10 shrink-0 items-center justify-center rounded-full border border-brass/40 bg-brass/[0.08] text-lg text-brass-bright","aria-hidden":!0,children:"â·"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"font-mono text-[10px] uppercase tracking-[0.25em] text-brass",children:"Update ready"}),(0,t.jsx)("p",{className:"mt-1 font-serif text-lg leading-tight text-ivory",children:"A new version is available"}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed text-mist",children:"We've shipped an improvement while you were here. Refresh to get the latest."}),(0,t.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{l(!0),window.location.reload()},disabled:o,className:"rounded-full bg-brass px-4 py-1.5 text-sm font-medium text-onbrass transition-colors hover:bg-brass-bright disabled:opacity-70",children:o?"Refreshingâ¦":"Refresh"}),(0,t.jsx)("button",{type:"button",onClick:()=>a(!0),className:"rounded-full px-3 py-1.5 text-sm text-mist transition-colors hover:text-ivory",children:"Later"})]})]}),(0,t.jsx)("button",{type:"button",onClick:()=>a(!0),"aria-label":"Dismiss",className:"shrink-0 rounded-full px-1 text-mist transition-colors hover:text-ivory",children:"â"})]})]})]})}])},26009,e=>{"use strict";var t=e.i(43476),r=e.i(18566),n=e.i(71645),s=e.i(91204),a=e.i(85806),o=e.i(42084);let l="hc:recent",i=e=>e.toLowerCase().normalize("NFD").replace(/[Ì-ͯ]/g,"").replace(/[^a-z0-9]+/g," ").trim(),c=[{label:"Search all hotels",sub:"Open full search",icon:"â",href:"/search"},{label:"World map",sub:"Every hotel by freshness",icon:"ðº",href:"/map"},{label:"Renovation Radar",sub:"Supplier leads & renovation signals",icon:"ð¡",href:"/radar"},{label:"Opening soon",sub:"New & announced hotels",icon:"ð",href:"/opening-soon"},{label:"Pricing",sub:"Plans & data licence",icon:"â¬",href:"/pricing"},{label:"For hoteliers",sub:"Claim & verify your hotel",icon:"ð¨",href:"/for-hoteliers"},{label:"Methodology",sub:"How we verify every date",icon:"ð",href:"/methodology"},{label:"Ask AI concierge",sub:"Any hotel's age, answered",icon:"ð¤",href:"/ai"},{label:"Data API",sub:"License the dataset",icon:"{ }",href:"/api-docs"},{label:"About",sub:"Our mission & sources",icon:"â",href:"/about"},{label:"Toggle light / dark theme",sub:"Switch appearance",icon:"â",run:function(){let e=document.documentElement.classList.contains("light")?"dark":"light";document.documentElement.classList.toggle("light","light"===e);try{localStorage.setItem("theme",e)}catch{}window.dispatchEvent(new Event("themechange"))}}];e.s(["default",0,function(){let[e,u]=(0,n.useState)(!1),[d,h]=(0,n.useState)(""),[f,p]=(0,n.useState)([]),[m,x]=(0,n.useState)([]),[b,y]=(0,n.useState)(!1),[g,v]=(0,n.use
1State)(-1),[j,k]=(0,n.useState)([]),[w,N]=(0,n.useState)([]),[$,E]=(0,n.useState)(""),S=(0,r.useRouter)(),C=(0,n.useRef)(null),I=(0,n.useRef)(null),P=(0,n.useRef)(e);P.current=e;let O=d.trim(),A=(0,n.useMemo)(()=>(0,o.expandQuery)(O),[O]);(0,n.useEffect)(()=>{function e(e){let t=(e.metaKey||e.ctrlKey)&&("k"===e.key||"K"===e.key),r="/"===e.key&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!function(e){if(!e)return!1;let t=e.tagName;return"INPUT"===t||"TEXTAREA"===t||"SELECT"===t||e.isContentEditable}(e.target);if(t||r){e.preventDefault(),u(e=>!e);return}"Escape"===e.key&&P.current&&(e.preventDefault(),u(!1))}window.addEventListener("keydown",e);let t=()=>u(!0);return window.addEventListener("hc:open-palette",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("hc:open-palette",t)}},[]),(0,n.useEffect)(()=>{if(!e)return;h(""),p([]),x([]),v(-1),E("");try{let e=JSON.parse(localStorage.getItem(l)||"[]");k(Array.isArray(e)?e.slice(0,6):[])}catch{k([])}try{let e=JSON.parse(localStorage.getItem("hc:viewed")||"[]");N(Array.isArray(e)?e.slice(0,8):[])}catch{N([])}let t=document.body.style.overflow;document.body.style.overflow="hidden",C.current?.focus();let r=requestAnimationFrame(()=>C.current?.focus()),n=setTimeout(()=>C.current?.focus(),40);return()=>{document.body.style.overflow=t,cancelAnimationFrame(r),clearTimeout(n)}},[e]),(0,n.useEffect)(()=>{if(!e)return;if(O.length<2&&!$){p([]),x([]),y(!1);return}let t=new AbortController,r=$?`&country=${encodeURIComponent($)}`:"";y(!0);let n=setTimeout(()=>{fetch(`/api/suggest?q=${encodeURIComponent(A)}${r}`,{signal:t.signal}).then(e=>e.json()).then(e=>{p(e),v(-1),y(!1)}).catch(()=>y(!1)),!$&&A.length>=3?fetch(`/api/suggest-candidates?q=${encodeURIComponent(A)}`,{signal:t.signal}).then(e=>e.json()).then(e=>x(Array.isArray(e)?e:[])).catch(()=>{}):x([])},150);return()=>{clearTimeout(n),t.abort()}},[O,A,e,$]);let L=(0,n.useCallback)(e=>{let t=[e];try{let r=JSON.parse(localStorage.getItem(l)||"[]"),n=Array.isArray(r)?r:[];t=[e,...n.filter(t=>t&&t.href!==e.href)].slice(0,6),localStorage.setItem(l,JSON.stringify(t))}catch{}k(t)},[]),R=(0,n.useCallback)(()=>u(!1),[]),M=(0,n.useCallback)(e=>{u(!1),S.push(e)},[S]);function _(e){if("country"===e.type)E(e.country),h(""),v(-1),C.current?.focus();else if("city"===e.type)L({label:e.city,sub:`${e.country} \xb7 ${e.count} hotels`,href:`/city/${e.citySlug}`}),M(`/city/${e.citySlug}`);else if("candidate"===e.type){let t=new URLSearchParams({q:e.name,city:e.city,country:e.country,load:"1"});M(`/search?${t.toString()}`)}else L({label:e.name,sub:`${e.city}, ${e.country}`,href:`/hotel/${e.slug}`}),M(`/hotel/${e.slug}`)}function T(){O&&L({label:O,sub:"Search",href:`/search?q=${encodeURIComponent(O)}`}),M(O?`/search?q=${encodeURIComponent(O)}`:"/search")}function D(){O&&M(`/search?q=${encodeURIComponent(O)}&load=1`)}let U=(0,n.useMemo)(()=>{let e=f.filter(e=>"hotel"===e.type).map(e=>i(e.name)),t=new Set,r=[];for(let n of m){let s=`${n.name}|${n.city}`.toLowerCase(),a=i(n.name).split(" ")[0];a&&e.some(e=>e.includes(a))||t.has(s)||(t.add(s),r.push({type:"candidate",name:n.name,city:n.city,country:n.country}))}return r.slice(0,6)},[f,m]),F=(0,n.useMemo)(()=>[...f,...U],[f,U]),z=(0,n.useMemo)(()=>i(A).split(" ").filter(e=>e.length>2),[A]),B=(0,n.useMemo)(()=>f.some(e=>{if("candidate"===e.type)return!1;let t=new Set(i("hotel"===e.type?`${e.name} ${e.city} ${e.country}`:"city"===e.type?`${e.city} ${e.country}`:e.country).split(" "));return z.length>0&&z.every(e=>t.has(e))}),[f,z]),K=(0,n.useMemo)(()=>Array.from(new Set([...O.toLowerCase().split(/\s+/).filter(e=>e.length>=2),...A.toLowerCase().split(/\s+/).filter(e=>e.length>=2)])),[O,A]),{rows:W,actions:q}=(0,n.useMemo)(()=>{let e=[],t=[],r=e=>{let r=t.length;return t.push(e),r},n=e=>()=>e.href?M(e.href):(e.run?.(),R());if($){let n=$.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");return e.push({t:"command",c:{label:`Open ${$}`,sub:"Browse all hotels & city stats",icon:"â",href:`/country/${n}`},navIndex:r(()=>M(`/country/${n}`))}),f.length&&(e.push({t:"header",label:O?`Matches in ${$}`:`Top in ${$}`,key:"h-scope"}),f.forEach(t=>e.push({t:"suggestion",s:t,navIndex:r(()=>_(t))}))),{rows:e,actions:t}}if(O.length<2)return w.length&&(e.push({t:"header",label:"Recently viewed",key:"h-viewed"}
1),w.forEach(t=>{let n={type:"hotel",slug:t.slug,name:t.name,city:t.city,country:t.country,score:t.score,stars:t.stars};e.push({t:"suggestion",s:n,navIndex:r(()=>_(n))})})),j.length&&(e.push({t:"header",label:"Recent searches",key:"h-recent"}),j.forEach(t=>e.push({t:"recent",r:t,navIndex:r(()=>M(t.href))}))),e.push({t:"header",label:"Jump to",key:"h-jump"}),c.forEach(t=>e.push({t:"command",c:t,navIndex:r(n(t))})),{rows:e,actions:t};let s=!B;s&&e.push({t:"research",navIndex:r(D)}),F.length&&(e.push({t:"header",label:s?"In our database":"Results",key:"h-res"}),F.forEach(t=>e.push({t:"suggestion",s:t,navIndex:r(()=>_(t))})));let a=c.filter(e=>{let t=i(`${e.label} ${e.sub}`),r=t.split(" ");return z.length>0&&z.every(e=>t.includes(e)||r.some(t=>t.startsWith(e)))});return a.length&&(e.push({t:"header",label:"Pages",key:"h-pages"}),a.forEach(t=>e.push({t:"command",c:t,navIndex:r(n(t))}))),e.push({t:"all",navIndex:r(T)}),{rows:e,actions:t}},[O,A,j,w,F,f,B,z,$]),J=q.length;if((0,n.useEffect)(()=>{!(g<0)&&I.current&&I.current.querySelector(`#hc-cmd-${g}`)?.scrollIntoView({block:"nearest"})},[g]),!e)return null;let Q=(e,t="")=>["flex w-full items-center gap-3 rounded-xl px-3 py-2.5 text-left transition-colors",e?"bg-brass/15":"hover:bg-brass/10",t].join(" ");return(0,t.jsxs)("div",{className:"fixed inset-0 z-[200] flex items-start justify-center px-3 pt-[7vh] pb-6 sm:px-4 sm:pt-[12vh] sm:pb-8",role:"dialog","aria-modal":"true","aria-label":"Command palette",onMouseDown:e=>{e.target===e.currentTarget&&R()},children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-ink/70 backdrop-blur-sm","aria-hidden":!0,onMouseDown:R}),(0,t.jsxs)("div",{className:"relative w-full max-w-xl overflow-hidden rounded-2xl border border-brass/25 bg-ink-deep/95 shadow-2xl backdrop-blur",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b border-brass/15 px-4",children:[(0,t.jsx)("span",{className:"shrink-0 text-mist","aria-hidden":!0,children:b?(0,t.jsx)("span",{className:"block h-4 w-4 animate-spin rounded-full border-2 border-brass/30 border-t-brass"}):"â"}),$&&(0,t.jsxs)("button",{type:"button",onClick:()=>{E(""),C.current?.focus()},className:"flex min-w-0 max-w-[55%] shrink-0 items-center gap-1.5 rounded-lg border border-brass/40 bg-brass/[0.12] px-2.5 py-1 text-sm text-ivory transition-colors hover:bg-brass/20 sm:max-w-[16rem]","aria-label":`Clear ${$} filter`,children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"â"}),(0,t.jsx)("span",{className:"truncate",children:$}),(0,t.jsx)("span",{className:"text-mist","aria-hidden":!0,children:"â"})]}),(0,t.jsx)("input",{ref:C,value:d,onChange:e=>h(e.target.value),onKeyDown:function(e){"Backspace"===e.key&&""===d&&$?(e.preventDefault(),E("")):"Escape"===e.key?(e.preventDefault(),R()):"ArrowDown"===e.key?(e.preventDefault(),J&&v(e=>(e+1)%J)):"ArrowUp"===e.key?(e.preventDefault(),J&&v(e=>e<=0?J-1:e-1)):"Home"===e.key?(e.preventDefault(),J&&v(0)):"End"===e.key?(e.preventDefault(),J&&v(J-1)):"Enter"===e.key&&(e.preventDefault(),g>=0&&g<J?q[g]():O&&T())},type:"text",autoComplete:"off",spellCheck:!1,enterKeyHint:"search",placeholder:$?`Search in ${$}â¦`:"Search hotels, cities, countries â or jump to a pageâ¦","aria-label":"Search or run a command","aria-controls":"hc-cmd-list","aria-activedescendant":g>=0?`hc-cmd-${g}`:void 0,className:"min-w-0 flex-1 bg-transparent py-4 text-base text-ivory placeholder:text-mist focus:outline-none"}),(0,t.jsx)("kbd",{className:"pointer-events-none hidden shrink-0 select-none rounded-md border border-brass/25 px-1.5 py-0.5 font-mono text-[10px] text-mist sm:inline-block",children:"Esc"})]}),(0,t.jsxs)("div",{ref:I,id:"hc-cmd-list",role:"listbox","aria-label":"Results",className:"max-h-[min(60vh,460px)] overflow-y-auto overscroll-contain p-1.5",children:[0===W.length&&(0,t.jsx)("p",{className:"px-3 py-6 text-center text-sm text-mist",children:O?`No matches for â${O}â.`:"Type to search."}),W.map(e=>{if("header"===e.t)return(0,t.jsx)("div",{className:"px-3 pb-1 pt-2 font-mono text-[10px] uppercase tracking-widest text-mist/60",children:e.label},e.key);let r=e.navIndex===g;if("research"===e.t)return(0,t.jsx)("div",{role:"option","aria-selected":r,id:`hc-cmd-${e.navIndex}`,children:(0,t.jsxs)("button",{type:"button",onMouseMove:()=>v(e.navIndex),onClick:()=>q[e.navIndex](),className:["mb-1 flex w-full items-center gap-3 rounded-xl border border-brass/40 px-3 py-3 text-left transition-colors",r?"bg-brass/25":"bg-brass/[0.13] hover:bg-brass/20"].join(" "),children:[(0,t.jsx)("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-brass text-base text-onbrass",children:"ð"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"block truncate font-medium text-ivory",children:["Load â",O,"â with AI"]}),(0,t.jsx)("span",{className:"block truncate font-mono text-xs text-mist",children:"Not in our database â our AI builds its full sourced profile (~20s)"})]}),(0,t.jsx)("span",{className:"shrink-0 rounded-full bg-brass px-3 py-1 font-mono text-[10px] font-medium uppercase tracking-wide text-onbrass",children:"Find it â"})]})},"research");if("all"===e.t)return(0,t.jsx)("div",{role:"option","aria-selected":r,id:`hc-cmd-${e.navIndex}`,children:(0,t.jsxs)("button",{type:"button",onMouseMove:()=>v(e.navIndex),onClick:()=>q[e.navIndex](),className:["mt-0.5 flex w-full items-center gap-2 rounded-xl px-3 py-2.5 text-left font-mono text-xs transition-colors",r?"bg-brass/15 text-ivory":"text-mist hover:bg-brass/10 hover:text-ivory"].join(" "),children:[(0,t.jsx)("span",{"aria-hidden":!0,
1children:"â"})," See all results for â",O,"â â"]})},"all");if("recent"===e.t)return(0,t.jsx)("div",{role:"option","aria-selected":r,id:`hc-cmd-${e.navIndex}`,children:(0,t.jsxs)("button",{type:"button",onMouseMove:()=>v(e.navIndex),onClick:()=>q[e.navIndex](),className:Q(r),children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-brass/20 text-mist","aria-hidden":!0,children:"â©"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-ivory",children:e.r.label}),(0,t.jsx)("span",{className:"block truncate font-mono text-xs text-mist",children:e.r.sub})]})]})},`r-${e.r.href}`);if("command"===e.t)return(0,t.jsx)("div",{role:"option","aria-selected":r,id:`hc-cmd-${e.navIndex}`,children:(0,t.jsxs)("button",{type:"button",onMouseMove:()=>v(e.navIndex),onClick:()=>q[e.navIndex](),className:Q(r),children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-brass/25 font-mono text-sm text-brass-bright","aria-hidden":!0,children:e.c.icon}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-ivory",children:(0,t.jsx)(s.default,{text:e.c.label,tokens:K})}),(0,t.jsx)("span",{className:"block truncate font-mono text-xs text-mist",children:e.c.sub})]}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] uppercase tracking-wide text-brass",children:e.c.href?"Page":"Action"})]})},`cmd-${e.c.label}`);let n=e.s;return(0,t.jsx)("div",{role:"option","aria-selected":r,id:`hc-cmd-${e.navIndex}`,children:(0,t.jsx)("button",{type:"button",onMouseMove:()=>v(e.navIndex),onClick:()=>q[e.navIndex](),className:Q(r),children:"country"===n.type?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-brass/30 text-brass-bright","aria-hidden":!0,children:"â"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-ivory",children:(0,t.jsx)(s.default,{text:n.country,tokens:K})}),(0,t.jsxs)("span",{className:"block truncate font-mono text-xs text-mist",children:[n.count," ",1===n.count?"hotel":"hotels"," · search within âµ"]})]}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] uppercase tracking-wide text-brass",children:"Filter â"})]}):"city"===n.type?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-brass/30 text-brass-bright","aria-hidden":!0,children:"â"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-ivory",children:(0,t.jsx)(s.default,{text:n.city,tokens:K})}),(0,t.jsxs)("span",{className:"block truncate font-mono text-xs text-mist",children:[n.country," · ",n.count," ",1===n.count?"hotel":"hotels"]})]}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] uppercase tracking-wide text-brass",children:"City"})]}):"candidate"===n.type?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full border-2 border-dashed border-brass/50 font-mono text-xs text-brass","aria-hidden":!0,children:"?"}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"block truncate text-ivory",children:(0,t.jsx)(s.default,{text:n.name,tokens:K})}),(0,t.jsxs)("span",{className:"block truncate font-mono text-xs text-mist",children:[[n.city,n.country].filter(Boolean).join(", ")," · tap to load with AI"]})]}),(0,t.jsx)("span",{className:"shrink-0 font-mono text-[10px] uppercase tracking-wide text-brass",children:"AI"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-full font-mono text-xs font-bold",style:{color:(0,a.scoreColor)(n.score??50),backgroundColor:`${(0,a.scoreColor)(n.score??50)}22`},children:null==n.score?"â":(0,a.score10)(n.score)}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("span",{className:"block truncate text-ivory",children:[n.stars?(0,t.jsx)("span",{className:"mr-1.5 text-xs tracking-tight text-brass",children:"â
".repeat(n.stars)}):null,(0,t.jsx)(s.default,{text:n.name,tokens:K})]}),(0,t.jsx)("span",{className:"block truncate font-mono text-xs text-mist",children:(0,t.jsx)(s.default,{text:`${n.city}, ${n.country}`,tokens:K})})]})]})})},"hotel"===n.type?`h-${n.slug}`:"city"===n.type?`c-${n.citySlug}`:"candidate"===n.type?`n-${n.name}-${n.city}`:`k-${n.country}`)})]}),(0,t.jsxs)("div",{className:"hidden items-center gap-4 border-t border-brass/15 px-4 py-2 font-mono text-[10px] text-mist/70 sm:flex",children:[(0,t.jsxs)("span",{children:[(0,t.jsx)("kbd",{className:"rounded border border-brass/25 px-1",children:"â"})," ",(0,t.jsx)("kbd",{className:"rounded border border-brass/25 px-1",children:"â"})," navigate"]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("kbd",{className:"rounded border border-brass/25 px-1",children:"âµ"})," open"]}),(0,t.jsxs)("span",{children:[(0,t.jsx)("kbd",{className:"rounded border border-brass/25 px-1",children:"esc"})," close"]}),(0,t.jsx)("span",{className:"ml-auto",children:"Powered by AI · live"})]})]})]})}])},77041,e=>{"use strict";var t=e.i(71645),r=e.i(18566);e.s(["default",0,function(){let e=(0,r.usePathname)();return(0,t.useEffect)(()=>{let e=window,t=()=>{let t=e.Rewardful?.referral;if(t)for(let e of Array.from(document.querySelectorAll('a[href^="https://buy.stripe.com/"]')))try{let r=new URL(e.href);if(r.searchParams.get("client_reference_id")===t)continue;r.searchParams.set("client_reference_id",t),e.href=r.toString()}catch{}};"function"==typeof e.rewardful&&e.rewardful("ready",t),t();let r=setTimeout(t,1500),n=setTimeout(t,4e3);return()=>{clearTimeout(r),clearTimeout(n)}},[e]),null}])}]);
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.