1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f456cabd-ee7d-4075-a2cb-a7e02f0a70d2",e._sentryDebugIdIdentifier="sentry-dbid-f456cabd-ee7d-4075-a2cb-a7e02f0a70d2")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8879],{39399:function(e,n,t){t.d(n,{AM:function(){return o},CB:function(){return y},Co:function(){return R},Ds:function(){return d},Ee:function(){return E},QG:function(){return M},Td:function(){return p},Uz:function(){return N},VJ:function(){return A},WH:function(){return h},X7:function(){return _},bX:function(){return l},eS:function(){return g},ll:function(){return s},mC:function(){return T},mN:function(){return m},t0:function(){return c},tM:function(){return f}});var r=t(3113),i=t(26141),u=t(81244),I=t(39959),a=t(93191);let T={query:"",querySource:"",mapLatLng:void 0,prevLatLng:void 0,spaceType:r.dP.REST,date:"",time:{text:"",value:""},sortCriteria:void 0,priceRange:void 0,starRating:[],theme:"",paymentOption:[],amenities:[],pax:4,page:1,tier:1,isImmediateSearch:!1,isMapPan:!1,suggestionId:"",suggestionCategory:"",duration:0,isShowOvernight:!0,isMapOpen:!1,isMapExpanded:!1,zoomLevel:12,bookType:[],priceMode:""},o=(0,u.w0)(T,(e,n)=>{let t={};return(0,i.l$)(n,"date")&&(t.date=n.date),(0,i.l$)(n,"spaceType")&&(t.spaceType=n.spaceType),(0,i.l$)(n,"time")&&(t.time=n.time),(0,i.l$)(n,"priceRange")&&(t.priceRange=n.priceRange),(0,i.l$)(n,"starRating")&&(t.starRating=n.starRating),(0,i.l$)(n,"query")&&(t.query=n.query),(0,i.l$)(n,"querySource")&&(t.querySource=n.querySource),(0,i.l$)(n,"suggestionId")&&(t.suggestionId=n.suggestionId,""===n.suggestionId?(t.mapLatLng=e.prevLatLng,t.prevLatLng=void 0):(t.prevLatLng=e.mapLatLng,t.mapLatLng=void 0)),(0,i.l$)(n,"sortCriteria")&&(t.sortCriteria=n.sortCriteria),(0,i.l$)(n,"pax")&&(t.pax=n.pax),(0,i.l$)(n,"theme")&&(t.theme=n.theme),(0,i.l$)(n,"paymentOption")&&(t.paymentOption=n.paymentOption),(0,i.l$)(n,"amenities")&&(t.amenities=n.amenities),(0,i.l$)(n,"mapLatLng")&&(t.mapLatLng=n.mapLatLng,t.suggestionId="",t.suggestionCategory=""),(0,i.l$)(n,"page")&&(t.page=n.page),(0,i.l$)(n,"suggestionCategory")&&(t.suggestionCategory=n.suggestionCategory),(0,i.l$)(n,"duration")&&(t.duration=n.duration),(0,i.l$)(n,"isShowOvernight")&&(t.isShowOvernight=n.isShowOvernight),(0,i.l$)(n,"isMapOpen")&&(t.isMapOpen=n.isMapOpen),(0,i.l$)(n,"isMapExpanded")&&(t.isMapExpanded=n.isMapExpanded),(0,i.l$)(n,"zoomLevel")&&(t.zoomLevel=n.zoomLevel),(0,i.l$)(n,"bookType")&&(t.bookType=n.bookType),(0,i.l$)(n,"priceMode")&&(t.priceMode=n.priceMode),e.isImmediateSearch=(0,i.l$)(n,"isImmediateSearch")&&n.isImmediateSearch,e.isMapPan=(0,i.l$)(n,"isMapPan")&&n.isMapPan,{...e,...t}});o.debugLabel=a.d.MAP_CRITERIA;let s=(0,I.cn)(e=>e(o).spaceType),c=(0,I.cn)(e=>e(o).query),E=(0,I.cn)(e=>e(o).date),l=(0,I.cn)(e=>e(o).time);(0,I.cn)(e=>e(o).pax);let d=(0,I.cn)(e=>e(o).starRating),_=(0,I.cn)(e=>e(o).duration),M=(0,I.cn)(e=>e(o).theme),p=(0,I.cn)(e=>e(o).paymentOption),g=(0,I.cn)(e=>e(o).amenities),N=(0,I.cn)(e=>e(o).isShowOvernight),f=(0,I.cn)(e=>e(o).isMapOpen),m=(0,I.cn)(e=>e(o).isMapExpanded),R=(0,I.cn)(e=>e(o).mapLatLng),A=(0,I.cn)(e=>e(o).priceRange),h=(0,I.cn)(e=>e(o).priceMode),y=(0,I.cn)(null)},93191:function(e,n,t){t.d(n,{d:function(){return r}});let r={SEARCH_CRITERIA:"search criteria",MAP_CRITERIA:"map criteria"}},67512:function(e,n,t){t.d(n,{$F:function(){return v},Dw:function(){return h},H3:function(){return $},NI:function(){return M},P5:function(){return S},T3:function(){return d},Ue:function(){return A},XF:function(){return g},Xs:function(){return m},fV:function(){return R},ml:function(){return f},pS:function(){return N},qJ:function(){return y},qf:function(){return D},tg:function(){return _},xX:function(){return C}});var r=t(3113),i=t(62679),u=t(37081),I=t(43298),a=t(7802),T=t(25e3),o=t(2577),s=t(19678),c=t(46502),E=t(68961);let l=(e,n)=>"en"===n?"en-US":"ms"===n?"ms-MY":("hk"===e||"mo"===e)&&"zh"===n?"zh-HK":"zh-CN",d=function(e){let n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),i=e.getFullYear();return n?i+"-"+r+"-"+t:i+"-"+r}
1,_=(e,n)=>d((0,c.zW)(e,(0,E.R4)(n))),M=(e,n)=>{let t=(0,c.zW)(e,(0,E.R4)(n));return t.setDate(t.getDate()+1),d(t)},p=(e,n,t)=>{let r=l(n,t),i=new Intl.DateTimeFormat(r,{month:"short"}).format(e);return`${i} ${e.getDate()}`},g=(e,n,t)=>p((0,c.zW)(e,(0,E.R4)(n)),n,t),N=(e,n,t)=>{let r=(0,c.zW)(e,(0,E.R4)(n));return r.setDate(r.getDate()+1),p(r,n,t)},f=(e,n,t)=>{let r=(0,c.zW)(n,(0,E.R4)(t)),u=(0,i.Y)(r,{nearestTo:e,roundingMethod:"ceil"}),I=(0,i.Y)(r,{nearestTo:e,roundingMethod:"trunc"});return I.valueOf()>r.valueOf()?I:u},m=(e,n,t,r)=>{let i=(0,E.Su)(r),I="yyyy-MM-dd HH:mm xxx",a=(0,c.zW)(t,(0,E.R4)(r));return e===_(t,r)?n?.length===0?f(15,t,r).valueOf():(0,u.Qc)(`${e} ${n} ${i}`,I,a).valueOf():n?.length===0?(0,u.Qc)(`${e} 00:00 ${i}`,I,a).valueOf():(0,u.Qc)(`${e} ${n} ${i}`,I,a).valueOf()},R=function(e,n,t){let i,u,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r.TI.INTERVAL_MINUTE;return i=e===_(n,t)?f(a,n,t).valueOf():m(e,r.TI.MIDNIGHT_TIME_START,n,t),u=m(e,r.TI.END_OF_DAY,n,t),(0,I.z)({start:i,end:u},{step:r.TI.INTERVAL_MINUTE})}
1,A=(e,n)=>{let t=(0,E.R4)(n);return(0,c.CV)(e,t,"HH:mm")},h=(e,n)=>{let t=m(_(e,n),r.TI.MIDNIGHT_TIME_START,e,n),i=(0,a.E)(t,6);return(0,T.D)({start:t,end:i})},y=(e,n)=>{let t=(0,E.R4)(n);return(0,c.CV)(e,t,"yyyy-MM-dd HH:mm")},O=(e,n)=>(0,o.WU)(f(15,e,n),"HH:mm"),S=(e,n,t,i)=>e===_(t,i)?n===r.TI.ASAP_CHECK_IN_TIME||n===r.TI.ANY_CHECK_IN_TIME?O(t,i):n:n===r.TI.ANY_CHECK_IN_TIME?"00:00":n===r.TI.ASAP_CHECK_IN_TIME?O(t,i):n,C=e=>{if(e===r.TI.MIDNIGHT_TIME)return"Midnight time";if(e===r.TI.MORNING_TIME)return"Morning time";if(e===r.TI.AFTERNOON_TIME)return"Afternoon time";if(e===r.TI.EVENING_TIME)return"Evening time";if(e===r.TI.AFTER_X_TIME)return"After x pm";if(e===r.TI.ASAP_CHECK_IN_TIME_N)return"As soon as possible";if(e===r.TI.AFTER_MIDNIGHT_TIME)return"After midnight";else if(e===r.TI.ANY_CHECK_IN_TIME)return"Any time";else return e},v=e=>e?.includes(r.TI.MIDNIGHT_TIME)||e?.includes(r.TI.MORNING_TIME)||e?.includes(r.TI.AFTERNOON_TIME)||e?.includes(r.TI.EVENING_TIME)||e?.includes(r.TI.AFTER_X_TIME)||e?.includes(r.TI.ASAP_CHECK_IN_TIME_N)||e?.includes(r.TI.AFTER_MIDNIGHT_TIME),$=e=>{let n=[],t=e.split(",");return(t.includes(r.TI.MIDNIGHT_TIME)||t.includes(r.TI.MORNING_TIME)||t.includes(r.TI.AFTERNOON_TIME)||t.includes(r.TI.EVENING_TIME))&&(n.push("hour"),n.push("session")),(t.includes(r.TI.ASAP_CHECK_IN_TIME_N)||t.includes(r.TI.AFTER_X_TIME)||t.includes(r.TI.AFTER_MIDNIGHT_TIME))&&n.push("overnight"),n.join(",")},D=(e,n,t,i)=>{let u,I;let a=[],T=[],o=[],c=[],E=[],l=[],d=[];n.includes(r.TI.MIDNIGHT_TIME)&&(a=[u=m(e,r.TI.MIDNIGHT_TIME_START,t,i),I=m(e,r.TI.MIDNIGHT_TIME_END,t,i)]),n.includes(r.TI.MORNING_TIME)&&(T=[u=m(e,r.TI.MORNING_TIME_START,t,i),I]),n.includes(r.TI.AFTERNOON_TIME)&&(o=[u=m(e,r.TI.AFTERNOON_TIME_START,t,i),I=m(e,r.TI.AFTERNOON_TIME_END,t,i)]),n.includes(r.TI.EVENING_TIME)&&(c=[u=m(e,r.TI.EVENING_TIME_START,t,i),I=m(e,r.TI.EVENING_TIME_END,t,i)]),n.includes(r.TI.AFTER_X_TIME)&&(E=[u=m(e,"14:00",t,i),I=m(e,r.TI.EVENING_TIME_END,t,i)]),n.includes(r.TI.ASAP_CHECK_IN_TIME_N)&&(u=f(15,t,i).valueOf(),I=(0,s.T)(u,2),u<I&&(l=[u,I])),n.includes(r.TI.AFTER_MIDNIGHT_TIME)&&(d=[u=m(e,r.TI.MIDNIGHT_TIME_START,t,i),I=m(e,r.TI.MIDNIGHT_TIME_END,t,i)]);let _=[...a,...T,...o,...c].map(e=>e.valueOf()/r.TI.MILLIS_ONE_MINUTE),M=[...E,...l,...d].map(e=>e.valueOf()/r.TI.MILLIS_ONE_MINUTE);return{hour:_=[...new Set(_)].sort(),session:_,overnight:M=[...new Set(M)].sort()}}}}]);
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.