PageSourceSearch

https://www.builditluxury.net/wp-content/plugins/motopress-hotel-b…up-availability-calendar/index.js?ver=5.5.2

js builditluxury.net collected 2026-10-02 02:01:27 UTC 37,569 bytes, 2 lines download raw bytes

1(function(L,He){"use strict";var Dt=Array.isArray,lr=Array.prototype.indexOf,Et=Array.from,At=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,or=Object.getOwnPropertyDescriptors,ur=Object.prototype,fr=Array.prototype,Xt=Object.getPrototypeOf,Jt=Object.isExtensible;function cr(e){for(var t=0;t<e.length;t++)e[t]()}function Qt(){var e,t,n=new Promise((r,i)=>{e=r,t=i});return{promise:n,resolve:e,reject:t}}const P=2,St=4,Ct=8,he=16,ue=32,pe=64,Tt=128,K=256,at=512,F=1024,W=2048,fe=4096,X=8192,ge=16384,$t=32768,st=65536,en=1<<17,vr=1<<18,Me=1<<19,dr=1<<20,kt=1<<21,Lt=1<<22,me=1<<23,We=Symbol("$state"),_r=Symbol("legacy props"),hr=Symbol(""),Ie=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function pr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function gr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function mr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function br(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Dr(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Er=1,Ar=2,Sr=16,Cr=1,Tr=2,kr=4,Lr=8,xr=16,Nr=1,Mr=2,M=Symbol(),Ir="http://www.w3.org/1999/xhtml";function Rr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Or=!1;function tn(e){return e===this.v}function Pr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function nn(e){return!Pr(e,this.v)}let Ze=!1,Xi=!1;function Fr(){Ze=!0}let I=null;function Re(e){I=e}function xt(e,t=!1,n){I={p:I,c:null,e:null,s:e,x:null,l:Ze&&!t?{s:null,u:null,$:[]}:null}}function Nt(e){var t=I,n=t.e;if(n!==null){t.e=null;for(var r of n)ri(r)}return I=t.p,{}}function ze(){return!Ze||I!==null&&I.l===null}let Oe=[];function Br(){var e=Oe;Oe=[],cr(e)}function Pe(e){if(Oe.length===0){var t=Oe;queueMicrotask(()=>{t===Oe&&Br()})}Oe.push(e)}const Yr=new WeakMap;function rn(e){var t=D;if(t===null)return A.f|=me,e;if((t.f&$t)===0){if((t.f&Tt)===0)throw!t.parent&&e instanceof Error&&an(e),e;t.b.error(e)}else Fe(e,t)}function Fe(e,t){for(;t!==null;){if((t.f&Tt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&an(e),e}function an(e){const t=Yr.get(e);t&&(At(e,"message",{value:t.message}),At(e,"stack",{value:t.stack}))}const lt=new Set;let N=null,J=null,Mt=new Set,ce=[],It=null,Rt=!1;class ne{current=new Map;#r=new Map;#t=new Set;#c=0;#a=null;#l=[];#i=[];#n=[];#e=[];#s=[];skipped_effects=new Set;process(t){ce=[],this.apply();for(const a of t)this.#o(a);if(this.#c===0){var n=J;this.#f();var r=this.#l,i=this.#i;this.#l=[],this.#i=[],this.#n=[],N=null,J=n,sn(r),sn(i),this.#a?.resolve()}else this.#u(this.#l),this.#u(this.#i),this.#u(this.#n);J=null}#o(t){t.f^=F;for(var n=t.first;n!==null;){var r=n.f,i=(r&(ue|pe))!==0,a=i&&(r&F)!==0,s=a||(r&X)!==0||this.skipped_effects.has(n);if(!s&&n.fn!==null){i?n.f^=F:(r&St)!==0?this.#i.push(n):ct(n)&&((n.f&he)!==0&&this.#n.push(n),dt(n));var o=n.first;if(o!==null){n=o;continue}}var l=n.parent;for(n=n.next;n===null&&l!==null;)n=l.next,l=l.parent}}#u(t){for(const n of t)((n.f&W)!==0?this.#e:this.#s).push(n),Y(n,F);t.length=0}capture(t,n){this.#r.has(t)||this.#r.set(t,n),this.current.set(t,t.v),J?.set(t,t.v)}activate(){N=this}deactivate(){N=null,J=null}flush(){if(ce.length>0){if(this.activate(),Ur(),N!==null&&N!==this)return}else this.#c===0&&this.#f();this.deactivate();for(const t of Mt)if(Mt.delete(t),t(),N!==null)break}#f(){for(const t of this.#t)t();if(this.#t.clear(),lt.size>1){this.#r.clear();let t=!0;for(const n of lt){if(n===this){t=!1;continue}const r=[];for(const[a,s]of this.current){if(n.current.has(a))if(t&&s!==n.current.get(a))n.current.set(a,s);else continue;r.push(a)}if(r.length===0)continue;const i=[...n.current.keys()].filter(a=>!this.current.has(a));if(i.length>0){for(const a of r)ln(a,i);if(ce.length>0){N=n,n.apply();for(const a of ce)n.#o(a);ce=[],n.deactivate()}}}N=null}lt.delete(this)}increment(){this.#c+=1}
1decrement(){this.#c-=1;for(const t of this.#e)Y(t,W),we(t);for(const t of this.#s)Y(t,fe),we(t);this.flush()}add_callback(t){this.#t.add(t)}settled(){return(this.#a??=Qt()).promise}static ensure(){if(N===null){const t=N=new ne;lt.add(N),ne.enqueue(()=>{N===t&&t.flush()})}return N}static enqueue(t){Pe(t)}apply(){}}function Ur(){var e=Ye;Rt=!0;try{var t=0;for(Cn(!0);ce.length>0;){var n=ne.ensure();if(t++>1e3){var r,i;qr()}n.process(ce),ve.clear()}}finally{Rt=!1,Cn(e),It=null}}function qr(){try{gr()}catch(e){Fe(e,It)}}let be=null;function sn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ge|X))===0&&ct(r)&&(be=[],dt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?En(r):r.fn=null),be?.length>0)){ve.clear();for(const i of be)dt(i);be=[]}}be=null}}function ln(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&P)!==0?ln(n,t):(r&(Lt|he))!==0&&on(n,t)&&(Y(n,W),we(n))}}function on(e,t){if(e.deps!==null){for(const n of e.deps)if(t.includes(n)||(n.f&P)!==0&&on(n,t))return!0}return!1}function we(e){for(var t=It=e;t.parent!==null;){t=t.parent;var n=t.f;if(Rt&&t===D&&(n&he)!==0)return;if((n&(pe|ue))!==0){if((n&F)===0)return;t.f^=F}}ce.push(t)}function Vr(e){let t=0,n=ye(0),r;return()=>{ni()&&(b(n),wn(()=>(t===0&&(r=_t(()=>e(()=>Ke(n)))),t+=1,()=>{Pe(()=>{t-=1,t===0&&(r?.(),r=void 0,Ke(n))})})))}}var jr=st|Me|Tt;function Hr(e,t,n){new Wr(e,t,n)}class Wr{parent;#r=!1;#t;#c=null;#a;#l;#i;#n=null;#e=null;#s=null;#o=null;#u=0;#f=0;#d=!1;#v=null;#g=()=>{this.#v&&Ge(this.#v,this.#u)};#m=Vr(()=>(this.#v=ye(this.#u),()=>{this.#v=null}));constructor(t,n,r){this.#t=t,this.#a=n,this.#l=r,this.parent=D.b,this.#r=!!this.#a.pending,this.#i=Yt(()=>{D.b=this;{try{this.#n=$(()=>r(this.#t))}catch(i){this.error(i)}this.#f>0?this.#h():this.#r=!1}},jr)}#b(){try{this.#n=$(()=>this.#l(this.#t))}catch(t){this.error(t)}this.#r=!1}#w(){const t=this.#a.pending;t&&(this.#e=$(()=>t(this.#t)),ne.enqueue(()=>{this.#n=this.#_(()=>(ne.ensure(),$(()=>this.#l(this.#t)))),this.#f>0?this.#h():(Be(this.#e,()=>{this.#e=null}),this.#r=!1)}))}is_pending(){return this.#r||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!this.#a.pending}#_(t){var n=D,r=A,i=I;ie(this.#i),q(this.#i),Re(this.#i.ctx);try{return t()}catch(a){return rn(a),null}finally{ie(n),q(r),Re(i)}}#h(){const t=this.#a.pending;this.#n!==null&&(this.#o=document.createDocumentFragment(),Zr(this.#n,this.#o)),this.#e===null&&(this.#e=$(()=>t(this.#t)))}#p(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#p(t);return}this.#f+=t,this.#f===0&&(this.#r=!1,this.#e&&Be(this.#e,()=>{this.#e=null}),this.#o&&(this.#t.before(this.#o),this.#o=null),Pe(()=>{ne.ensure().flush()}))}update_pending_count(t){this.#p(t),this.#u+=t,Mt.add(this.#g)}get_effect_pending(){return this.#m(),b(this.#v)}error(t){var n=this.#a.onerror;let r=this.#a.failed;if(this.#d||!n&&!r)throw t;this.#n&&(Z(this.#n),this.#n=null),this.#e&&(Z(this.#e),this.#e=null),this.#s&&(Z(this.#s),this.#s=null);var i=!1,a=!1;const s=()=>
1{if(i){Rr();return}i=!0,a&&Dr(),ne.ensure(),this.#u=0,this.#s!==null&&Be(this.#s,()=>{this.#s=null}),this.#r=this.has_pending_snippet(),this.#n=this.#_(()=>(this.#d=!1,$(()=>this.#l(this.#t)))),this.#f>0?this.#h():this.#r=!1};var o=A;try{q(null),a=!0,n?.(t,s),a=!1}catch(l){Fe(l,this.#i&&this.#i.parent)}finally{q(o)}r&&Pe(()=>{this.#s=this.#_(()=>{this.#d=!0;try{return $(()=>{r(this.#t,()=>t,()=>s)})}catch(l){return Fe(l,this.#i.parent),null}finally{this.#d=!1}})})}}function Zr(e,t){for(var n=e.nodes_start,r=e.nodes_end;n!==null;){var i=n===r?null:Xe(n);t.append(n),n=i}}function zr(e,t,n){const r=ze()?ot:Pt;if(t.length===0){n(e.map(r));return}var i=N,a=D,s=Gr();Promise.all(t.map(o=>Kr(o))).then(o=>{s();try{n([...e.map(r),...o])}catch(l){(a.f&ge)===0&&Fe(l,a)}i?.deactivate(),Ot()}).catch(o=>{Fe(o,a)})}function Gr(){var e=D,t=A,n=I,r=N;return function(){ie(e),q(t),Re(n),r?.activate()}}function Ot(){ie(null),q(null),Re(null)}function ot(e){var t=P|W,n=A!==null&&(A.f&P)!==0?A:null;return D===null||n!==null&&(n.f&K)!==0?t|=K:D.f|=Me,{ctx:I,deps:null,effects:null,equals:tn,f:t,fn:e,reactions:null,rv:0,v:M,wv:0,parent:n??D,ac:null}}function Kr(e,t){let n=D;n===null&&pr();var r=n.b,i=void 0,a=ye(M),s=!A,o=new Map;return ai(()=>{var l=Qt();i=l.promise;try{Promise.resolve(e()).then(l.resolve,l.reject).then(Ot)}catch(f){l.reject(f),Ot()}var u=N,v=r.is_pending();s&&(r.update_pending_count(1),v||(u.increment(),o.get(u)?.reject(Ie),o.delete(u),o.set(u,l)));const h=(f,d=void 0)=>{if(v||u.activate(),d)d!==Ie&&(a.f|=me,Ge(a,d));else{(a.f&me)!==0&&(a.f^=me),Ge(a,f);for(const[c,p]of o){if(o.delete(c),c===u)break;p.reject(Ie)}}s&&(r.update_pending_count(-1),v||u.decrement())};l.promise.then(h,f=>h(null,f||"unknown"))}),mn(()=>{for(const l of o.values())l.reject(Ie)}),new Promise(l=>{function u(v){function h(){v===i?l(a):u(i)}v.then(h,h)}u(i)})}function un(e){const t=ot(e);return kn(t),t}function Pt(e){const t=ot(e);return t.equals=nn,t}function fn(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Z(t[n])}}function Xr(e){for(var t=e.parent;t!==null;){if((t.f&P)===0)return t;t=t.parent}return null}function Ft(e){var t,n=D;ie(Xr(e));try{fn(e),t=In(e)}finally{ie(n)}return t}function cn(e){var t=Ft(e);if(e.equals(t)||(e.v=t,e.wv=Nn()),!Ue)if(J!==null)J.set(e,e.v);else{var n=(de||(e.f&K)!==0)&&e.deps!==null?fe:F;Y(e,n)}}const ve=new Map;function ye(e,t){var n={f:0,v:e,reactions:null,equals:tn,rv:0,wv:0};return n}function U(e,t){const n=ye(e);return kn(n),n}function Jr(e,t=!1,n=!0){const r=ye(e);return t||(r.equals=nn),Ze&&n&&I!==null&&I.l!==null&&(I.l.s??=[]).push(r),r}function k(e,t,n=!1){A!==null&&(!ee||(A.f&en)!==0)&&ze()&&(A.f&(P|he|Lt|en))!==0&&!le?.includes(e)&&yr();let r=n?Q(t):t;return Ge(e,r)}function Ge(e,t){if(!e.equals(t)){var n=e.v;Ue?ve.set(e,t):ve.set(e,n),e.v=t;var r=ne.ensure();r.capture(e,n),(e.f&P)!==0&&((e.f&W)!==0&&Ft(e),Y(e,(e.f&K)===0?F:fe)),e.wv=Nn(),vn(e,W),ze()&&D!==null&&(D.f&F)!==0&&(D.f&(ue|pe))===0&&(z===null?oi([e]):z.push(e))}return t}function Ke(e){k(e,e.v+1)}function vn(e,t){var n=e.reactions;if(n!==null)for(var r=ze(),i=n.length,a=0;a<i;a++){var s=n[a],o=s.f;if(!(!r&&s===D)){var l=(o&W)===0;l&&Y(s,t),(o&P)!==0?vn(s,fe):l&&((o&he)!==0&&be!==null&&be.push(s),we(s))}}}function Q(e){if(typeof e!="object"||e===null||We in e)return e;const t=Xt(e);if(t!==ur&&t!==fr)return e;var n=new Map,r=Dt(e),i=U(0),a=De,s=o=>{if(De===a)return o();var l=A,u=De;q(null),xn(a);var v=o();return q(l),xn(u),v};return r&&n.set("length",U(e.length)),new Proxy(e,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&br();var v=n.get(l);return v===void 0?v=s(()=>{var h=U(u.value);return n.set(l,h),h}):k(v,u.value,!0),!0},deleteProperty(o,l){var u=n.get(l);if(u===void 0){if(l in o){const v=s(()=>U(M));n.set(l,v),Ke(i)}}else k(u,M),Ke(i);return!0},get(o,l,u){if(l===We)return e;var v=n.get(l),h=l in o;if(v===void 0&&(!h||Ne(o,l)?.writable)&&(v=s(()=>{var d=Q(h?o[l]:M),c=U(d);return c}),n.set(l,v)),v!==void 0){var f=b(v);return f===M?void 0:f}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);
vendor: 3,012 bytes, line 1
1if(u&&"value"in u){var v=n.get(l);v&&(u.value=b(v))}else if(u===void 0){var h=n.get(l),f=h?.v;if(h!==void 0&&f!==M)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(o,l){if(l===We)return!0;var u=n.get(l),v=u!==void 0&&u.v!==M||Reflect.has(o,l);if(u!==void 0||D!==null&&(!v||Ne(o,l)?.writable)){u===void 0&&(u=s(()=>{var f=v?Q(o[l]):M,d=U(f);return d}),n.set(l,u));var h=b(u);if(h===M)return!1}return v},set(o,l,u,v){var h=n.get(l),f=l in o;if(r&&l==="length")for(var d=u;d<h.v;d+=1){var c=n.get(d+"");c!==void 0?k(c,M):d in o&&(c=s(()=>U(M)),n.set(d+"",c))}if(h===void 0)(!f||Ne(o,l)?.writable)&&(h=s(()=>U(void 0)),k(h,Q(u)),n.set(l,h));else{f=h.v!==M;var p=s(()=>Q(u));k(h,p)}var m=Reflect.getOwnPropertyDescriptor(o,l);if(m?.set&&m.set.call(v,u),!f){if(r&&typeof l=="string"){var S=n.get("length"),y=Number(l);Number.isInteger(y)&&y>=S.v&&k(S,y+1)}Ke(i)}return!0},ownKeys(o){b(i);var l=Reflect.ownKeys(o).filter(h=>{var f=n.get(h);return f===void 0||f.v!==M});for(var[u,v]of n)v.v!==M&&!(u in o)&&l.push(u);return l},setPrototypeOf(){wr()}})}var dn,_n,hn,pn;function Qr(){if(dn===void 0){dn=window,_n=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;hn=Ne(t,"firstChild").get,pn=Ne(t,"nextSibling").get,Jt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Jt(n)&&(n.__t=void 0)}}function ut(e=""){return document.createTextNode(e)}function ft(e){return hn.call(e)}function Xe(e){return pn.call(e)}function V(e,t){return ft(e)}function $r(e,t=!1){{var n=ft(e);return n instanceof Comment&&n.data===""?Xe(n):n}}function re(e,t=1,n=!1){let r=e;for(;t--;)r=Xe(r);return r}function ei(e){e.textContent=""}function gn(){return!1}function Bt(e){var t=A,n=D;q(null),ie(null);try{return e()}finally{q(t),ie(n)}}function ti(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function se(e,t,n,r=!0){var i=D;i!==null&&(i.f&X)!==0&&(e|=X);var a={ctx:I,deps:null,nodes_start:null,nodes_end:null,f:e|W,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{dt(a),a.f|=$t}catch(l){throw Z(a),l}else t!==null&&we(a);if(r){var s=a;if(n&&s.deps===null&&s.teardown===null&&s.nodes_start===null&&s.first===s.last&&(s.f&Me)===0&&(s=s.first),s!==null&&(s.parent=i,i!==null&&ti(s,i),A!==null&&(A.f&P)!==0&&(e&pe)===0)){var o=A;(o.effects??=[]).push(s)}}return a}function ni(){return A!==null&&!ee}function mn(e){const t=se(Ct,null,!1);return Y(t,F),t.teardown=e,t}function ri(e){return se(St|dr,e,!1)}function ii(e){ne.ensure();const t=se(pe|Me,e,!0);return(n={})=>new Promise(r=>{n.outro?Be(t,()=>{Z(t),r(void 0)}):(Z(t),r(void 0))})}function bn(e){return se(St,e,!1)}function ai(e){return se(Lt|Me,e,!0)}function wn(e,t=0){return se(Ct|t,e,!0)}function Je(e,t=[],n=[]){zr(t,n,r=>{se(Ct,()=>e(...r.map(b)),!0)})}function Yt(e,t=0){var n=se(he|t,e,!0);return n}function $(e,t=!0){return se(ue|Me,e,!0,t)}function yn(e){var t=e.teardown;
1if(t!==null){const n=Ue,r=A;Tn(!0),q(null);try{t.call(null)}finally{Tn(n),q(r)}}}function Dn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const i=n.ac;i!==null&&Bt(()=>{i.abort(Ie)});var r=n.next;(n.f&pe)!==0?n.parent=null:Z(n,t),n=r}}function si(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&ue)===0&&Z(t),t=n}}function Z(e,t=!0){var n=!1;(t||(e.f&vr)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(li(e.nodes_start,e.nodes_end),n=!0),Dn(e,t&&!n),vt(e,0),Y(e,ge);var r=e.transitions;if(r!==null)for(const a of r)a.stop();yn(e);var i=e.parent;i!==null&&i.first!==null&&En(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function li(e,t){for(;e!==null;){var n=e===t?null:Xe(e);e.remove(),e=n}}function En(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Be(e,t){var n=[];Ut(e,n,!0),An(n,()=>{Z(e),t&&t()})}function An(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function Ut(e,t,n){if((e.f&X)===0){if(e.f^=X,e.transitions!==null)for(const s of e.transitions)(s.is_global||n)&&t.push(s);for(var r=e.first;r!==null;){var i=r.next,a=(r.f&st)!==0||(r.f&ue)!==0;Ut(r,t,a?n:!1),r=i}}}function qt(e){Sn(e,!0)}function Sn(e,t){if((e.f&X)!==0){e.f^=X,(e.f&F)===0&&(Y(e,W),we(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&st)!==0||(n.f&ue)!==0;Sn(n,i?t:!1),n=r}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Ye=!1;function Cn(e){Ye=e}let Ue=!1;function Tn(e){Ue=e}let A=null,ee=!1;function q(e){A=e}let D=null;function ie(e){D=e}let le=null;function kn(e){A!==null&&(le===null?le=[e]:le.push(e))}let B=null,j=0,z=null;function oi(e){z=e}let Ln=1,Qe=0,De=Qe;function xn(e){De=e}let de=!1;function Nn(){return++Ln}function ct(e){var t=e.f;if((t&W)!==0)return!0;if((t&fe)!==0){var n=e.deps,r=(t&K)!==0;if(n!==null){var i,a,s=(t&at)!==0,o=r&&D!==null&&!de,l=n.length;if((s||o)&&(D===null||(D.f&ge)===0)){var u=e,v=u.parent;for(i=0;i<l;i++)a=n[i],(s||!a?.reactions?.includes(u))&&(a.reactions??=[]).push(u);s&&(u.f^=at),o&&v!==null&&(v.f&K)===0&&(u.f^=K)}for(i=0;i<l;i++)if(a=n[i],ct(a)&&cn(a),a.wv>e.wv)return!0}(!r||D!==null&&!de)&&Y(e,F)}return!1}function Mn(e,t,n=!0){var r=e.reactions;if(r!==null&&!le?.includes(e))for(var i=0;i<r.length;i++){var a=r[i];(a.f&P)!==0?Mn(a,t,!1):t===a&&(n?Y(a,W):(a.f&F)!==0&&Y(a,fe),we(a))}}function In(e){var t=B,n=j,r=z,i=A,a=de,s=le,o=I,l=ee,u=De,v=e.f;B=null,j=0,z=null,de=(v&K)!==0&&(ee||!Ye||A===null),A=(v&(ue|pe))===0?e:null,le=null,Re(e.ctx),ee=!1,De=++Qe,e.ac!==null&&(Bt(()=>{e.ac.abort(Ie)}),e.ac=null);try{e.f|=kt;var h=e.fn,f=h(),d=e.deps;if(B!==null){var c;if(vt(e,j),d!==null&&j>0)for(d.length=j+B.length,c=0;c<B.length;c++)d[j+c]=B[c];else e.deps=d=B;if(!de||(v&P)!==0&&e.reactions!==null)for(c=j;c<d.length;c++)(d[c].reactions??=[]).push(e)}else d!==null&&j<d.length&&(vt(e,j),d.length=j);if(ze()&&z!==null&&!ee&&d!==null&&(e.f&(P|fe|W))===0)for(c=0;c<z.length;c++)Mn(z[c],e);return i!==null&&i!==e&&(Qe++,z!==null&&(r===null?r=z:r.push(...z))),(e.f&me)!==0&&(e.f^=me),f}catch(p){return rn(p)}finally{e.f^=kt,B=t,j=n,z=r,A=i,de=a,le=s,Re(o),ee=l,De=u}}function ui(e,t){let n=t.reactions;if(n!==null){var r=lr.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&(t.f&P)!==0&&(B===null||!B.includes(t))&&(Y(t,fe),(t.f&(K|at))===0&&(t.f^=at),fn(t),vt(t,0))}function vt(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)ui(e,n[r])}function dt(e){var t=e.f;if((t&ge)===0){Y(e,F);var n=D,r=Ye;D=e,Ye=!0;try{(t&he)!==0?si(e):Dn(e),yn(e);var i=In(e);e.teardown=typeof i=="function"?i:null,e.wv=Ln;var a}finally{Ye=r,D=n}}}function b(e){var t=e.f,n=(t&P)!==0;if(A!==null&&!ee){var r=D!==null&&(D.f&ge)!==0;if(!r&&!le?.includes(e)){var i=A.deps;if((A.f&kt)!==0)e.rv<Qe&&(e.rv=Qe,B===null&&i!==null&&i[j]===e?j++:B===null?B=[e]:(!de||!B.includes(e))&&B.push(e));else{(A.deps??=[]).push(e);var a=e.reactions;a===null?e.reactions=[A]:a.includes(A)||a.push(A)}}}else if(n&&e.deps===null&&e.effects===null){var s=e,o=s.parent;o!==null&&(o.f&K)===0&&(s.f^=K)}if(Ue){if(ve.has(e))return ve.get(e);if(n){s=e;var l=s.v;return((s.f&F)===0&&s.reactions!==null||Rn(s))&&(l=Ft(s)),ve.set(s,l),l}}else if(n){if(s=e,J?.has(s))return J.get(s);ct(s)&&cn(s)}if(J?.has(e))return J.get(e);if((e.f&me)!==0)throw e.v;return e.v}function Rn(e){if(e.v===M)return!0;
1if(e.deps===null)return!1;for(const t of e.deps)if(ve.has(t)||(t.f&P)!==0&&Rn(t))return!0;return!1}function _t(e){var t=ee;try{return ee=!0,e()}finally{ee=t}}const fi=-7169;function Y(e,t){e.f=e.f&fi|t}const ci=["touchstart","touchmove"];function vi(e){return ci.includes(e)}const On=new Set,Vt=new Set;function di(e,t,n,r={}){function i(a){if(r.capture||$e.call(t,a),!a.cancelBubble)return Bt(()=>n?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Pe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function Pn(e,t,n,r,i){var a={capture:r,passive:i},s=di(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&mn(()=>{t.removeEventListener(e,s,a)})}function _i(e){for(var t=0;t<e.length;t++)On.add(e[t]);for(var n of Vt)n(e)}let Fn=null;function $e(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;Fn=e;var s=0,o=Fn===e&&e.__root;if(o){var l=i.indexOf(o);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(a=i[s]||e.target,a!==t){At(e,"currentTarget",{configurable:!0,get(){return a||n}});var v=A,h=D;q(null),ie(null);try{for(var f,d=[];a!==null;){var c=a.assignedSlot||a.parentNode||a.host||null;try{var p=a["__"+r];if(p!=null&&(!a.disabled||e.target===a))if(Dt(p)){var[m,...S]=p;m.apply(a,[e,...S])}else p.call(a,e)}catch(y){f?d.push(y):f=y}if(e.cancelBubble||c===t||c===null)break;a=c}if(f){for(let y of d)queueMicrotask(()=>{throw y});throw f}}finally{e.__root=t,delete e.currentTarget,q(v),ie(h)}}}function hi(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Bn(e,t){var n=D;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function Ee(e,t){var n=(t&Nr)!==0,r=(t&Mr)!==0,i,a=!e.startsWith("<!>");return()=>{i===void 0&&(i=hi(a?e:"<!>"+e),n||(i=ft(i)));var s=r||_n?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=ft(s),l=s.lastChild;Bn(o,l)}else Bn(s,s);return s}}function Ae(e,t){e!==null&&e.before(t)}function qe(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function pi(e,t){return gi(e,t)}const Ve=new Map;function gi(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:s=!0}){Qr();var o=new Set,l=h=>{for(var f=0;f<h.length;f++){var d=h[f];if(!o.has(d)){o.add(d);var c=vi(d);t.addEventListener(d,$e,{passive:c});var p=Ve.get(d);p===void 0?(document.addEventListener(d,$e,{passive:c}),Ve.set(d,1)):Ve.set(d,p+1)}}};l(Et(On)),Vt.add(l);var u=void 0,v=ii(()=>{var h=n??t.appendChild(ut());return Hr(h,{pending:()=>{}},f=>{if(a){xt({});var d=I;d.c=a}i&&(r.$$events=i),u=e(f,r)||{},a&&Nt()}),()=>{for(var f of o){t.removeEventListener(f,$e);var d=Ve.get(f);--d===0?(document.removeEventListener(f,$e),Ve.delete(f)):Ve.set(f,d)}Vt.delete(l),h!==n&&h.parentNode?.removeChild(h)}});return mi.set(u,v),u}let mi=new WeakMap;function Yn(e,t,n=!1){var r=e,i=null,a=null,s=M,o=n?st:0,l=!1;const u=(d,c=!0)=>{l=!0,f(c,d)};var v=null;function h(){v!==null&&(v.lastChild.remove(),r.before(v),v=null);var d=s?i:a,c=s?a:i;d&&qt(d),c&&Be(c,()=>{s?a=null:i=null})}const f=(d,c)=>{if(s!==(s=d)){var p=gn(),m=r;if(p&&(v=document.createDocumentFragment(),v.append(m=ut())),s?i??=c&&$(()=>c(m)):a??=c&&$(()=>c(m)),p){var S=N,y=s?i:a,g=s?a:i;y&&S.skipped_effects.delete(y),g&&S.skipped_effects.add(g),S.add_callback(h)}else h()}};Yt(()=>{l=!1,t(u),l||f(null,null)},o)}function jt(e,t){return t}function bi(e,t,n){for(var r=e.items,i=[],a=t.length,s=0;s<a;s++)Ut(t[s].e,i,!0);var o=a>0&&i.length===0&&n!==null;if(o){var l=n.parentNode;ei(l),l.append(n),r.clear(),ae(e,t[0].prev,t[a-1].next)}An(i,()=>{for(var u=0;u<a;u++){var v=t[u];o||(r.delete(v.k),ae(e,v.prev,v.next)),Z(v.e,!o)}})}function Ht(e,t,n,r,i,a=null){var s=e,o={flags:t,items:new Map,first:null};{var l=e;s=l.appendChild(ut())}var u=null,v=!1,h=new Map,f=Pt(()=>{var m=n();return Dt(m)?m:m==null?[]:Et(m)}),d,c;function p(){wi(c,d,o,h,s,i,t,r,n),a!==null&&(d.length===0?u?qt(u):u=$(()=>a(s)):u!==null&&Be(u,()=>{u=null}))}Yt(()=>{c??=D,d=b(f);var m=d.length;if(!(v&&m===0)){v=m===0;var S,y,g,T;if(gn()){var R=new Set,Ce=N;for(y=0;y<m;y+=1){g=d[y],T=r(g,y);var je=o.items.get(T)??h.get(T);je?Un(je,g,y):(S=qn(null,o,null,null,g,T,y,i,t,n,!0),h.set(T,S)),R.add(T)}for(const[oe,H]of o.items)R.has(oe)||Ce.skipped_effects.add(H.e);
1Ce.add_callback(p)}else p();b(f)}})}function wi(e,t,n,r,i,a,s,o,l){var u=t.length,v=n.items,h=n.first,f=h,d,c=null,p=[],m=[],S,y,g,T;for(T=0;T<u;T+=1){if(S=t[T],y=o(S,T),g=v.get(y),g===void 0){var R=r.get(y);if(R!==void 0){r.delete(y),v.set(y,R);var Ce=c?c.next:f;ae(n,c,R),ae(n,R,Ce),Wt(R,Ce,i),c=R}else{var je=f?f.e.nodes_start:i;c=qn(je,n,c,c===null?n.first:c.next,S,y,T,a,s,l)}v.set(y,c),p=[],m=[],f=c.next;continue}if(Un(g,S,T),(g.e.f&X)!==0&&qt(g.e),g!==f){if(d!==void 0&&d.has(g)){if(p.length<m.length){var oe=m[0],H;c=oe.prev;var et=p[0],tt=p[p.length-1];for(H=0;H<p.length;H+=1)Wt(p[H],oe,i);for(H=0;H<m.length;H+=1)d.delete(m[H]);ae(n,et.prev,tt.next),ae(n,c,et),ae(n,tt,oe),f=oe,c=tt,T-=1,p=[],m=[]}else d.delete(g),Wt(g,f,i),ae(n,g.prev,g.next),ae(n,g,c===null?n.first:c.next),ae(n,c,g),c=g;continue}for(p=[],m=[];f!==null&&f.k!==y;)(f.e.f&X)===0&&(d??=new Set).add(f),m.push(f),f=f.next;if(f===null)continue;g=f}p.push(g),c=g,f=g.next}if(f!==null||d!==void 0){for(var nt=d===void 0?[]:Et(d);f!==null;)(f.e.f&X)===0&&nt.push(f),f=f.next;var pt=nt.length;if(pt>0){var Gt=u===0?i:null;bi(n,nt,Gt)}}e.first=n.first&&n.first.e,e.last=c&&c.e;for(var Te of r.values())Z(Te.e);r.clear()}function Un(e,t,n,r){Ge(e.v,t),e.i=n}function qn(e,t,n,r,i,a,s,o,l,u,v){var h=(l&Er)!==0,f=(l&Sr)===0,d=h?f?Jr(i,!1,!1):ye(i):i,c=(l&Ar)===0?s:ye(s),p={i:c,v:d,k:a,a:null,e:null,prev:n,next:r};try{if(e===null){var m=document.createDocumentFragment();m.append(e=ut())}return p.e=$(()=>o(e,d,c,u),Or),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?v||(t.first=p):(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function Wt(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==null&&a!==r;){var s=Xe(a);i.before(a),a=s}}function ae(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function Vn(e,t,n){bn(()=>{var r=_t(()=>t(e,n?.())||{});if(r?.destroy)return()=>r.destroy()})}function yi(e,t,n){var r=e==null?"":""+e;return r===""?null:r}function Di(e,t,n,r,i,a){var s=e.__className;if(s!==n||s===void 0){var o=yi(n);o==null?e.removeAttribute("class"):e.className=o,e.__className=n}return a}const Ei=Symbol("is custom element"),Ai=Symbol("is html");function Si(e,t){var n=jn(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!=="PROGRESS")||(e.value=t??"")}function Se(e,t,n,r){var i=jn(e);i[t]!==(i[t]=n)&&(t==="loading"&&(e[hr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ci(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jn(e){return e.__attributes??={[Ei]:e.nodeName.includes("-"),[Ai]:e.namespaceURI===Ir}}var Hn=new Map;function Ci(e){var t=e.getAttribute("is")||e.nodeName,n=Hn.get(t);if(n)return n;Hn.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){r=or(i);for(var s in r)r[s].set&&n.push(s);i=Xt(i)}return n}function Wn(e,t){return e===t||e?.[We]===t}function Zt(e={},t,n,r){return bn(()=>{var i,a;return wn(()=>{i=a,a=[],_t(()=>{e!==n(...a)&&(t(e,...a),i&&Wn(n(...i),e)&&t(null,...i))})}),()=>{Pe(()=>{a&&Wn(n(...a),e)&&t(null,...a)})}}),e}let ht=!1;function Ti(e){var t=ht;try{return ht=!1,[e(),ht]}finally{ht=t}}function zt(e,t,n,r){var i=!Ze||(n&Tr)!==0,a=(n&Lr)!==0,s=(n&xr)!==0,o=r,l=!0,u=()=>(l&&(l=!1,o=s?_t(r):r),o),v;if(a){var h=We in e||_r in e;v=Ne(e,t)?.set??(h&&t in e?g=>e[t]=g:void 0)}var f,d=!1;a?[f,d]=Ti(()=>e[t]):f=e[t],f===void 0&&r!==void 0&&(f=u(),v&&(i&&mr(),v(f)));var c;if(i?c=()=>{var g=e[t];return g===void 0?u():(l=!0,g)}:c=()=>{var g=e[t];return g!==void 0&&(o=void 0),g===void 0?o:g},i&&(n&kr)===0)return c;if(v){var p=e.$$legacy;return(function(g,T){return arguments.length>0?((!i||!T||p||d)&&v(T?c():g),g):c()})}var m=!1,S=((n&Cr)!==0?ot:Pt)(()=>(m=!1,c()));a&&b(S);var y=D;return(function(g,T){if(arguments.length>0){const R=T?b(S):i&&a?Q(g):g;return k(S,R),m=!0,o!==void 0&&(o=R),g}return Ue&&m||(y.f&ge)!==0?S.v:b(S)})}const ki="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(ki);var Li=(e,t,n,r)=>{e.preventDefault(),k(t,n.getNewDateAfterButtonClick("previous",new Date(b(t))),!0),k(r,n.getDateTitleAfterDateChange(new Date(b(t))),!0)},xi=(e,t,n,r)=>{e.preventDefault(),k(t,n.getNewDateAfterButtonClick("today",new Date(b(t))),!0),k(r,n.getDateTitleAfterDateChange(new Date(b(t))),!0)},Ni=(e,t,n,r)=>{e.preventDefault(),k(t,n.getNewDateAfterButtonClick("next",new Date(b(t))),!0),k(r,n.getDateTitleAfterDateChange(new Date(b(t))),!0)},Mi=(e,t,n,r)=>{e.preventDefault();const i=e.target.value;k(t,L.getDate(i),!0),k(n,r.getDateTitleAfterDateChange(new Date(b(t))),!0)}
1,Ii=Ee('<div class="mphb-date-navigation"><button class="mphb-button mphb-button--icon"><svg class="mphb-icon mphb-icon-chevron-left" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 12.1983L7.17341 8L11.5 3.7925L10.168 2.5L4.5 8L10.168 13.5L11.5 12.1983Z"></path></svg></button> <button class="mphb-button"> </button> <button class="mphb-button mphb-button--icon"><svg class="mphb-icon mphb-icon-chevron-right" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 12.1983L8.82659 8L4.5 3.7925L5.83198 2.5L11.5 8L5.83198 13.5L4.5 12.1983Z"></path></svg></button> <div class="mphb-date-navigation__datepicker"><button class="mphb-date-navigation__datepicker-button mphb-button"><span class="mphb-date-navigation__datepicker-title"> </span> <svg class="mphb-icon mphb-icon-chevron-down" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.7925 4.5L8 8.83019L12.2075 4.5L13.5 5.83962L8 11.5L2.5 5.83962L3.7925 4.5Z"></path></svg></button> <input type="date" class="mphb-date-navigation__datepicker-input"/></div></div>');function Ri(e,t){xt(t,!0);let n=zt(t,"isDisabled",3,!1),r=U(Q(t.date)),i=U(Q(t.getDateTitleAfterDateChange(t.date))),a;var s=Ii(),o=V(s);o.__click=[Li,r,t,i];var l=re(o,2);l.__click=[xi,r,t,i];var u=V(l),v=re(l,2);v.__click=[Ni,r,t,i];var h=re(v,2),f=V(h);f.__click=m=>{m.preventDefault(),a.showPicker()};var d=V(f),c=V(d),p=re(f,2);p.__change=[Mi,r,i,t],Zt(p,m=>a=m,()=>a),Je((m,S,y,g,T,R)=>{o.disabled=n(),Se(o,"aria-label",m),l.disabled=n(),Se(l,"aria-label",S),qe(u,y),v.disabled=n(),Se(v,"aria-label",g),f.disabled=n(),Se(f,"aria-label",T),qe(c,b(i)),Si(p,R)},[()=>He.__("Previous","motopress-hotel-booking"),()=>He.__("Today","motopress-hotel-booking"),()=>He.__("Today","motopress-hotel-booking"),()=>He.__("Next","motopress-hotel-booking"),()=>He.__("Date","motopress-calendar"),()=>L.format("Y-m-d",b(r))]),Ae(e,s),Nt()}_i(["click","change"]),Fr();var Oi=Ee('<div class="mphb-loader"><svg class="mphb-icon mphb-icon-spinner" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.26507 11.087L2.19657 11.7826C2.73082 12.5652 3.35411 13.1739 4.15548 13.6957L4.8678 12.6522C4.24452 12.2174 3.71027 11.6957 3.26507 11.087ZM2.28561 7.95652C2.28561 7.6087 2.28561 7.17391 2.37465 6.82609L1.03904 6.56522C1.03904 7 0.949997 7.52174 0.949997 7.95652C0.949997 8.3913 1.03904 8.91304 1.12808 9.34783L2.4637 9.08696C2.28561 8.73913 2.28561 8.30435 2.28561 7.95652ZM2.10753 4.13043L3.17602 4.82609C3.62123 4.21739 4.15548 3.69565 4.77876 3.26087L4.15548 2.13043C3.35411 2.65217 2.64178 3.34783 2.10753 4.13043ZM8.07328 13.6087C7.71712 13.6087 7.27191 13.6087 6.91575 13.5217L6.64863 14.8261C7.09383 14.913 7.53904 15 8.07328 15C8.60753 15 9.05274 14.913 9.49794 14.8261L9.23082 13.5217C8.87465 13.6087 8.42945 13.6087 8.07328 13.6087ZM11.2788 12.6522L11.9911 13.6957C12.7925 13.1739 13.4158 12.5652 13.95 11.7826L12.8815 11.087C12.4363 11.6957 11.9021 12.2174 11.2788 12.6522ZM6.64863 1.17391L6.91575 2.47826C7.27191 2.3913 7.62808 2.3913 8.07328 2.3913C8.51849 2.3913 8.87465 2.3913 9.23082 2.47826L9.49794 1.17391C9.05274 1.08696 8.51849 1 8.07328 1C7.62808 1 7.09383 1.08696 6.64863 1.17391Z" fill="black"></path></svg></div>');function Pi(e){var t=Oi();Ae(e,t)}var Fi=Ee('<div class="mphb-group-availability-calendar-error"> </div>
1'),Bi=Ee('<div class="mphb-group-availability-calendar-dates__date"><div class="mphb-group-availability-calendar-dates__day"> </div> <div class="mphb-group-availability-calendar-dates__week-day"> </div></div>'),Yi=Ee("<div>&nbsp;</div>"),Ui=Ee('<div class="mphb-group-availability-calendar-room-type"><a class="mphb-group-availability-calendar-room-type__title"> </a> <div class="mphb-group-availability-calendar-room-type__dates"></div></div>'),qi=Ee('<div class="mphb-toolbar"><!> <!></div> <!> <div class="mphb-group-availability-calendar-dates__wrapper"><div class="mphb-group-availability-calendar-dates"></div></div> <div class="mphb-group-availability-calendar-room-types"></div>',1);function Vi(e,t){xt(t,!0);const n="mphb_sd",r=zt(t,"startDate",3,""),i=zt(t,"roomTypes",19,()=>[]),a=window.MPHB.restApiHelper,s=window.MPHB._data.translations,o=Intl.DateTimeFormat().resolvedOptions().timeZone;let l=U(!1),u=U(""),v=U(Q({}));function h(_){if(typeof _!="string")return null;const w=L.getDate(_.trim());return isNaN(w.getTime())?null:w}const f=new URLSearchParams(window.location.search);let d=h(f.get(n));d||(r()&&/^\d{4}-\d{2}-\d{2}$/.test(r())?d=L.getDate(r()):d=L.getDate());let c=U(Q(d)),p=un(()=>{const _=Q(b(c)),w=[];for(let C=0;C<31;C++){let E=new Date(_);E.setDate(_.getDate()+C),w.push(E)}return w}),m,S,y=!1;function g(_){y||(y=!0,_?S.scrollLeft=m.scrollLeft:m.scrollLeft=S.scrollLeft,y=!1)}function T(_){if("ontouchstart"in window)return;let w=!1,C=0,E=0;function te(x){w=!0,C=x.pageX,E=_.scrollLeft,_.classList.add("is-dragging")}function G(){w=!1,_.classList.remove("is-dragging")}function O(x){w&&(x.preventDefault(),_.scrollLeft=E-(x.pageX-C))}return _.addEventListener("mousedown",te),_.addEventListener("mouseup",G),_.addEventListener("mouseleave",G),_.addEventListener("mousemove",O),{destroy(){_.removeEventListener("mousedown",te),_.removeEventListener("mouseup",G),_.removeEventListener("mouseleave",G),_.removeEventListener("mousemove",O)}}}function R(_){k(c,_,!0);const w=new Date(_);w.setDate(w.getDate()+31);const C=new URL(window.location.href),E=new URLSearchParams(C.search),te=L.format("Y-m-d",_),G=L.format("Y-m-d",L.getDate());te!==G?E.set(n,te):E.delete(n);const O=E.toString();return O!==C.search.replace(/^\?/,"")&&(C.search=O,history.pushState(null,"",C)),k(u,""),a?.getAvailabilityData({start_date:new Date(new Date(_).setDate(_.getDate()-1)),end_date:new Date(new Date(w).setDate(w.getDate()+1)),room_type_ids:i().map(x=>x.id),is_add_prices:!1,is_truncate_prices:!1,is_add_prices_currency:!1},()=>{k(l,!0)},()=>{k(l,!1)}).then(x=>{k(v,x,!0)}).catch(x=>{k(u,x.message,!0),k(l,!1)}),_.getMonth()===w.getMonth()&&_.getFullYear()===w.getFullYear()?L.dateI18n("M d",_,o)+" - "+L.dateI18n("d, Y",w,o):_.getFullYear()===w.getFullYear()?L.dateI18n("M d",_,o)+" - "+L.dateI18n("M d, Y",w,o):L.dateI18n("M d, Y",_,o)+" - "+L.dateI18n("M d, Y",w,o)}function Ce(_,w){let C=new Date(w);switch(_){case"previous":C.setDate(C.getDate()-32);break;case"next":C.setDate(C.getDate()+32);break;case"today":C=L.getDate();break}return C}function je(_,w){const C=L.format("Y-m-d",w),E=b(v)?.[_]?.[C];if(!E)return{dateClass:"",dateTitle:""};const te=L.format("Y-m-d",new Date(w).setDate(w.getDate()-1)),G=L.format("Y-m-d",new Date(w).setDate(w.getDate()+1)),O=b(v)?.[_]?.[te],x=b(v)?.[_]?.[G],_e=O?.roomTypeStatus==="available",ke=O?.roomTypeStatus==="past",Gn=O?.roomTypeStatus==="not-available",Hi=O?.isCheckInNotAllowed,Kn=O?.isStayInNotAllowed,Wi=Gn&&!Kn&&0<O?.availableRoomsCount,Xn=x?.roomTypeStatus==="not-available",Kt=x?.isStayInNotAllowed,Jn=x?.isCheckOutNotAllowed,Qn=Xn&&!Kt&&0<x?.availableRoomsCount,$n=E?.roomTypeStatus==="past",mt=E?.roomTypeStatus==="not-available",Zi=E?.roomTypeStatus==="available",er=E?.roomTypeStatus==="booked",tr=E?.roomTypeStatus==="earlier-min-advance",nr=E?.roomTypeStatus==="later-max-advance",rr=E?.isCheckInDate,ir=E?.isCheckOutDate,ar=er&&!rr&&!ir,rt=E?.isStayInNotAllowed,sr=E?.isCheckInNotAllowed,it=E?.isCheckOutNotAllowed,bt=mt&&!rt&&0<E?.availableRoomsCount,zi=E?.isEarlierThanMinAdvanceDate,Gi=E?.isLaterThanMaxAdvanceDate;let wt="",yt="";!$n&&!(_e&&bt&&!it)&&(wt="is-left-available",yt="is-right-available",bt&&(!_e||!it)||it&&ke?wt="":(ir||ar||it&&(Kn||Gn&&!Wi||rt)||mt&&!rt&&!bt&&(!_e||Hi))&&(wt="is-left-not-available"),bt?yt="":(rr||ar||rt||mt||sr&&(Qn&&Jn||Kt&&Jn||Xn&&!Qn&&!Kt))&&(yt="is-right-not-available"));
1let Le="",xe=[];return $n?Le=s.past:(Zi&&(Le=s.available+" ("+(E?.availableRoomsCount??"undefined")+")"),mt&&(Le=s.notAvailable),er&&(Le=s.booked),(tr||nr)&&(Le=s.notAvailable),rt&&xe.push(s.notStayIn),(zi||tr)&&xe.push(s.earlierMinAdvance),(Gi||nr)&&xe.push(s.laterMaxAdvance),sr&&xe.push(s.notCheckIn),it&&xe.push(s.notCheckOut)),xe.length&&(Le+=`
2`+s.rules+" "+xe.join(", ")),{dateClass:wt+" "+yt,dateTitle:Le}}var oe=qi(),H=$r(oe),et=V(H);Ri(et,{get isDisabled(){return b(l)},get date(){return b(c)},getDateTitleAfterDateChange:R,getNewDateAfterButtonClick:Ce});var tt=re(et,2);{var nt=_=>{Pi(_)};Yn(tt,_=>{b(l)&&_(nt)})}var pt=re(H,2);{var Gt=_=>{var w=Fi(),C=V(w);Je(()=>qe(C,b(u))),Ae(_,w)};Yn(pt,_=>{b(u)&&_(Gt)})}var Te=re(pt,2),ji=V(Te);Ht(ji,21,()=>b(p),jt,(_,w)=>{var C=Bi(),E=V(C),te=V(E),G=re(E,2),O=V(G);Je((x,_e,ke)=>{Se(C,"title",x),qe(te,_e),qe(O,ke)},[()=>L.dateI18n("l, F d, Y",b(w),o),()=>b(w).getDate(),()=>L.dateI18n("D",b(w),o)]),Ae(_,C)}),Zt(Te,_=>m=_,()=>m),Vn(Te,_=>T?.(_));var gt=re(Te,2);Ht(gt,21,i,jt,(_,w)=>{var C=Ui(),E=V(C),te=V(E),G=re(E,2);Ht(G,21,()=>b(p),jt,(O,x)=>{const _e=un(()=>je(b(w).id,b(x)));var ke=Yi();Je(()=>{Di(ke,1,`mphb-group-availability-calendar-room-type__date ${b(_e).dateClass??""}`),Se(ke,"title",b(_e).dateTitle)}),Ae(O,ke)}),Je(()=>{Se(E,"href",b(w).pageUrl),qe(te,b(w).title)}),Ae(_,C)}),Zt(gt,_=>S=_,()=>S),Vn(gt,_=>T?.(_)),Pn("scroll",Te,()=>g(!0)),Pn("scroll",gt,()=>g(!1)),Ae(e,oe),Nt()}const Zn=new WeakMap;function zn(e){let t=document;e&&(t=e);const n=t.querySelectorAll(".mphb-group-availability-calendar");for(const r of n){const i=document.querySelector(`#${r.id}_props`);if(i?.textContent)try{Zn.get(r)?.destroy(),r.innerHTML="";const s=JSON.parse(i.textContent),o=pi(Vi,{target:r,props:{...s}});Zn.set(r,o)}catch(a){console.error(a)}}}document.addEventListener("DOMContentLoaded",()=>zn()),window.MotoPressGroupAvailabilityCalendarShortcode={reInit:zn}})(wp.date,wp.i18n);

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.