ba-js-common-header 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -24560,9 +24560,15 @@ var jed = { exports: {} };
|
|
|
24560
24560
|
})(jed, jed.exports);
|
|
24561
24561
|
var Jed = jed.exports;
|
|
24562
24562
|
const fetcher = (url) => fetch(url).then((r2) => r2.json());
|
|
24563
|
+
function messageFormat(string, replacements) {
|
|
24564
|
+
return string.replace(/\{(\d+)\}/g, function() {
|
|
24565
|
+
return replacements[arguments[1]];
|
|
24566
|
+
});
|
|
24567
|
+
}
|
|
24563
24568
|
function useI18n() {
|
|
24564
24569
|
const userLanguage = useSelector((state) => state.userLanguage);
|
|
24565
|
-
const {
|
|
24570
|
+
const { VITE_I8N_ENDPOINT } = { "VITE_TITLE_BAR_ENDPOINT": "/api/titlebar", "VITE_I8N_ENDPOINT": "https://www.bookassist.com/rest/api/v1/i18n/jed/bookassist.i18n.HotelAdminRB/{0}", "BASE_URL": "/", "MODE": "production", "DEV": false, "PROD": true };
|
|
24571
|
+
const { data, error } = index(messageFormat(VITE_I8N_ENDPOINT, [userLanguage]), fetcher);
|
|
24566
24572
|
return {
|
|
24567
24573
|
i18n: new Jed({
|
|
24568
24574
|
locale_data: data || {
|
|
@@ -26843,7 +26849,7 @@ function Header(props) {
|
|
|
26843
26849
|
}
|
|
26844
26850
|
}, [windowWidth]);
|
|
26845
26851
|
useEffect(() => {
|
|
26846
|
-
fetch("/
|
|
26852
|
+
fetch("/api/titlebar").then((res) => res.json()).then((json) => {
|
|
26847
26853
|
dispatch(setTitleBar(json));
|
|
26848
26854
|
});
|
|
26849
26855
|
}, []);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var j3=Object.defineProperty,L3=Object.defineProperties;var z3=Object.getOwnPropertyDescriptors;var Vv=Object.getOwnPropertySymbols;var H3=Object.prototype.hasOwnProperty,U3=Object.prototype.propertyIsEnumerable;var Yv=(rr,z,Fr)=>z in rr?j3(rr,z,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):rr[z]=Fr,$t=(rr,z)=>{for(var Fr in z||(z={}))H3.call(z,Fr)&&Yv(rr,Fr,z[Fr]);if(Vv)for(var Fr of Vv(z))U3.call(z,Fr)&&Yv(rr,Fr,z[Fr]);return rr},dr=(rr,z)=>L3(rr,z3(z));(function(rr,z){typeof exports=="object"&&typeof module!="undefined"?z(exports,require("react"),require("react-dom"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.weak-map.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.object.assign.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","core-js/modules/web.dom-collections.for-each.js","core-js/modules/es.object.keys.js","core-js/modules/es.weak-map.js","core-js/modules/es.object.to-string.js","core-js/modules/es.string.iterator.js","core-js/modules/es.array.iterator.js","core-js/modules/web.dom-collections.iterator.js","core-js/modules/es.object.get-own-property-descriptor.js","core-js/modules/es.symbol.js","core-js/modules/es.symbol.description.js","core-js/modules/es.symbol.iterator.js","core-js/modules/es.object.assign.js"],z):(rr=typeof globalThis!="undefined"?globalThis:rr||self,z(rr.baJsHeader={},rr.React,rr.ReactDOM))})(this,function(rr,z,Fr){"use strict";function Qv(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Jv(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var st=Qv(z),ui=Jv(z),B3="",me=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zv="[object Object]";function e1(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function t1(e,t){return function(r){return e(t(r))}}var r1=Function.prototype,Od=Object.prototype,Sd=r1.toString,n1=Od.hasOwnProperty,i1=Sd.call(Object),a1=Od.toString,o1=t1(Object.getPrototypeOf,Object);function s1(e){return!!e&&typeof e=="object"}function u1(e){if(!s1(e)||a1.call(e)!=Zv||e1(e))return!1;var t=o1(e);if(t===null)return!0;var r=n1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sd.call(r)==i1}var Iu=u1,c1="[object AsyncFunction]",l1="[object Function]",f1="[object GeneratorFunction]",d1="[object Null]",h1="[object Proxy]",p1="[object Undefined]",g1=typeof me=="object"&&me&&me.Object===Object&&me,y1=typeof self=="object"&&self&&self.Object===Object&&self,m1=g1||y1||Function("return this")(),Ad=Object.prototype,v1=Ad.hasOwnProperty,Pd=Ad.toString,Id=m1.Symbol,Ai=Id?Id.toStringTag:void 0;function b1(e){return e==null?e===void 0?p1:d1:Ai&&Ai in Object(e)?_1(e):w1(e)}function _1(e){var t=v1.call(e,Ai),r=e[Ai];try{e[Ai]=void 0;var n=!0}catch{}var i=Pd.call(e);return n&&(t?e[Ai]=r:delete e[Ai]),i}function w1(e){return Pd.call(e)}function O1(e){if(!S1(e))return!1;var t=b1(e);return t==l1||t==f1||t==c1||t==h1}function S1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var A1=O1,xd={exports:{}};(function(e,t){var r=200,n="Expected a function",i="__lodash_hash_undefined__",a=1,o=2,s=1/0,u=9007199254740991,f="[object Arguments]",p="[object Array]",d="[object Boolean]",m="[object Date]",S="[object Error]",P="[object Function]",E="[object GeneratorFunction]",b="[object Map]",I="[object Number]",$="[object Object]",R="[object Promise]",L="[object RegExp]",k="[object Set]",ae="[object String]",J="[object Symbol]",j="[object WeakMap]",ce="[object ArrayBuffer]",q="[object DataView]",ge="[object Float32Array]",O="[object Float64Array]",he="[object Int8Array]",le="[object Int16Array]",de="[object Int32Array]",Me="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Oe="[object Uint16Array]",De="[object Uint32Array]",pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,U=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,V=/\\(\\)?/g,be=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,H={};H[ge]=H[O]=H[he]=H[le]=H[de]=H[Me]=H[Ne]=H[Oe]=H[De]=!0,H[f]=H[p]=H[ce]=H[d]=H[q]=H[m]=H[S]=H[P]=H[b]=H[I]=H[$]=H[L]=H[k]=H[ae]=H[j]=!1;var ee=typeof me=="object"&&me&&me.Object===Object&&me,ue=typeof self=="object"&&self&&self.Object===Object&&self,oe=ee||ue||Function("return this")(),ve=t&&!t.nodeType&&t,Pe=ve&&!0&&e&&!e.nodeType&&e,te=Pe&&Pe.exports===ve,Le=te&&ee.process,Ie=function(){try{return Le&&Le.binding("util")}catch{}}(),Ee=Ie&&Ie.isTypedArray;function He(y,x){for(var K=-1,re=y?y.length:0;++K<re;)if(x(y[K],K,y))return!0;return!1}function qe(y){return function(x){return x==null?void 0:x[y]}}function Ke(y,x){for(var K=-1,re=Array(y);++K<y;)re[K]=x(K);return re}function nt(y){return function(x){return y(x)}}function ke(y,x){return y==null?void 0:y[x]}function Pt(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function Je(y){var x=-1,K=Array(y.size);return y.forEach(function(re,g){K[++x]=[g,re]}),K}function Nt(y,x){return function(K){return y(x(K))}}function Dt(y){var x=-1,K=Array(y.size);return y.forEach(function(re){K[++x]=re}),K}var ht=Array.prototype,Z=Function.prototype,Ae=Object.prototype,Fe=oe["__core-js_shared__"],pt=function(){var y=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),pr=Z.toString,zt=Ae.hasOwnProperty,gt=Ae.toString,Tt=RegExp("^"+pr.call(zt).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sr=oe.Symbol,Gt=oe.Uint8Array,ir=Ae.propertyIsEnumerable,yt=ht.splice,Vt=Nt(Object.keys,Object),jt=ot(oe,"DataView"),bt=ot(oe,"Map"),Yt=ot(oe,"Promise"),Qt=ot(oe,"Set"),gr=ot(oe,"WeakMap"),ar=ot(Object,"create"),or=Zt(jt),Jt=Zt(bt),Xr=Zt(Yt),Mt=Zt(Qt),Ar=Zt(gr),Xt=Sr?Sr.prototype:void 0,yr=Xt?Xt.valueOf:void 0,Pr=Xt?Xt.toString:void 0;function Ft(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function et(){this.__data__=ar?ar(null):{}}function Nn(y){return this.has(y)&&delete this.__data__[y]}function Zr(y){var x=this.__data__;if(ar){var K=x[y];return K===i?void 0:K}return zt.call(x,y)?x[y]:void 0}function un(y){var x=this.__data__;return ar?x[y]!==void 0:zt.call(x,y)}function vn(y,x){var K=this.__data__;return K[y]=ar&&x===void 0?i:x,this}Ft.prototype.clear=et,Ft.prototype.delete=Nn,Ft.prototype.get=Zr,Ft.prototype.has=un,Ft.prototype.set=vn;function mt(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function Ge(){this.__data__=[]}function bn(y){var x=this.__data__,K=en(x,y);if(K<0)return!1;var re=x.length-1;return K==re?x.pop():yt.call(x,K,1),!0}function Ir(y){var x=this.__data__,K=en(x,y);return K<0?void 0:x[K][1]}function Dn(y){return en(this.__data__,y)>-1}function jn(y,x){var K=this.__data__,re=en(K,y);return re<0?K.push([y,x]):K[re][1]=x,this}mt.prototype.clear=Ge,mt.prototype.delete=bn,mt.prototype.get=Ir,mt.prototype.has=Dn,mt.prototype.set=jn;function _t(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function it(){this.__data__={hash:new Ft,map:new(bt||mt),string:new Ft}}function Ln(y){return Gr(this,y).delete(y)}function sr(y){return Gr(this,y).get(y)}function zn(y){return Gr(this,y).has(y)}function Hn(y,x){return Gr(this,y).set(y,x),this}_t.prototype.clear=it,_t.prototype.delete=Ln,_t.prototype.get=sr,_t.prototype.has=zn,_t.prototype.set=Hn;function Ht(y){var x=-1,K=y?y.length:0;for(this.__data__=new _t;++x<K;)this.add(y[x])}function xr(y){return this.__data__.set(y,i),this}function _n(y){return this.__data__.has(y)}Ht.prototype.add=Ht.prototype.push=xr,Ht.prototype.has=_n;function at(y){this.__data__=new mt(y)}function It(){this.__data__=new mt}function cn(y){return this.__data__.delete(y)}function qr(y){return this.__data__.get(y)}function Un(y){return this.__data__.has(y)}function Bn(y,x){var K=this.__data__;if(K instanceof mt){var re=K.__data__;if(!bt||re.length<r-1)return re.push([y,x]),this;K=this.__data__=new _t(re)}return K.set(y,x),this}at.prototype.clear=It,at.prototype.delete=cn,at.prototype.get=qr,at.prototype.has=Un,at.prototype.set=Bn;function Ut(y,x){var K=_(y)||c(y)?Ke(y.length,String):[],re=K.length,g=!!re;for(var A in y)(x||zt.call(y,A))&&!(g&&(A=="length"||mr(A,re)))&&K.push(A);return K}function en(y,x){for(var K=y.length;K--;)if(hn(y[K][0],x))return K;return-1}var Er=cr();function kt(y,x){return y&&Er(y,x,Qe)}function Lr(y,x){x=Wt(x,y)?[x]:Sn(x);for(var K=0,re=x.length;y!=null&&K<re;)y=y[_r(x[K++])];return K&&K==re?y:void 0}function wn(y){return gt.call(y)}function ln(y,x){return y!=null&&x in Object(y)}function zr(y,x,K,re,g){return y===x?!0:y==null||x==null||!Ce(y)&&!xe(x)?y!==y&&x!==x:On(y,x,zr,K,re,g)}function On(y,x,K,re,g,A){var l=_(y),v=_(x),T=p,D=p;l||(T=lr(y),T=T==f?$:T),v||(D=lr(x),D=D==f?$:D);var X=T==$&&!Pt(y),h=D==$&&!Pt(x),w=T==D;if(w&&!X)return A||(A=new at),l||Be(y)?An(y,x,K,re,g,A):Pn(y,x,T,K,re,g,A);if(!(g&o)){var M=X&&zt.call(y,"__wrapped__"),B=h&&zt.call(x,"__wrapped__");if(M||B){var ne=M?y.value():y,Y=B?x.value():x;return A||(A=new at),K(ne,Y,re,g,A)}}return w?(A||(A=new at),Kn(y,x,K,re,g,A)):!1}function fn(y,x,K,re){var g=K.length,A=g,l=!re;if(y==null)return!A;for(y=Object(y);g--;){var v=K[g];if(l&&v[2]?v[1]!==y[v[0]]:!(v[0]in y))return!1}for(;++g<A;){v=K[g];var T=v[0],D=y[T],X=v[1];if(l&&v[2]){if(D===void 0&&!(T in y))return!1}else{var h=new at;if(re)var w=re(D,X,T,y,x,h);if(!(w===void 0?zr(X,D,re,a|o,h):w))return!1}}return!0}function tn(y){if(!Ce(y)||vr(y))return!1;var x=Se(y)||Pt(y)?Tt:be;return x.test(Zt(y))}function Hr(y){return xe(y)&&_e(y.length)&&!!H[gt.call(y)]}function kn(y){return typeof y=="function"?y:y==null?Kt:typeof y=="object"?_(y)?ur(y[0],y[1]):Cr(y):er(y)}function Wn(y){if(!br(y))return Vt(y);var x=[];for(var K in Object(y))zt.call(y,K)&&K!="constructor"&&x.push(K);return x}function Cr(y){var x=dn(y);return x.length==1&&x[0][2]?Br(x[0][0],x[0][1]):function(K){return K===y||fn(K,y,x)}}function ur(y,x){return Wt(y)&&Et(x)?Br(_r(y),x):function(K){var re=ft(K,y);return re===void 0&&re===x?Ye(K,y):zr(x,re,void 0,a|o)}}function Rr(y){return function(x){return Lr(x,y)}}function Tr(y){if(typeof y=="string")return y;if(Xe(y))return Pr?Pr.call(y):"";var x=y+"";return x=="0"&&1/y==-s?"-0":x}function Sn(y){return _(y)?y:fr(y)}function cr(y){return function(x,K,re){for(var g=-1,A=Object(x),l=re(x),v=l.length;v--;){var T=l[y?v:++g];if(K(A[T],T,A)===!1)break}return x}}function An(y,x,K,re,g,A){var l=g&o,v=y.length,T=x.length;if(v!=T&&!(l&&T>v))return!1;var D=A.get(y);if(D&&A.get(x))return D==x;var X=-1,h=!0,w=g&a?new Ht:void 0;for(A.set(y,x),A.set(x,y);++X<v;){var M=y[X],B=x[X];if(re)var ne=l?re(B,M,X,x,y,A):re(M,B,X,y,x,A);if(ne!==void 0){if(ne)continue;h=!1;break}if(w){if(!He(x,function(Y,ye){if(!w.has(ye)&&(M===Y||K(M,Y,re,g,A)))return w.add(ye)})){h=!1;break}}else if(!(M===B||K(M,B,re,g,A))){h=!1;break}}return A.delete(y),A.delete(x),h}function Pn(y,x,K,re,g,A,l){switch(K){case q:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case ce:return!(y.byteLength!=x.byteLength||!re(new Gt(y),new Gt(x)));case d:case m:case I:return hn(+y,+x);case S:return y.name==x.name&&y.message==x.message;case L:case ae:return y==x+"";case b:var v=Je;case k:var T=A&o;if(v||(v=Dt),y.size!=x.size&&!T)return!1;var D=l.get(y);if(D)return D==x;A|=a,l.set(y,x);var X=An(v(y),v(x),re,g,A,l);return l.delete(y),X;case J:if(yr)return yr.call(y)==yr.call(x)}return!1}function Kn(y,x,K,re,g,A){var l=g&o,v=Qe(y),T=v.length,D=Qe(x),X=D.length;if(T!=X&&!l)return!1;for(var h=T;h--;){var w=v[h];if(!(l?w in x:zt.call(x,w)))return!1}var M=A.get(y);if(M&&A.get(x))return M==x;var B=!0;A.set(y,x),A.set(x,y);for(var ne=l;++h<T;){w=v[h];var Y=y[w],ye=x[w];if(re)var we=l?re(ye,Y,w,x,y,A):re(Y,ye,w,y,x,A);if(!(we===void 0?Y===ye||K(Y,ye,re,g,A):we)){B=!1;break}ne||(ne=w=="constructor")}if(B&&!ne){var $e=y.constructor,je=x.constructor;$e!=je&&"constructor"in y&&"constructor"in x&&!(typeof $e=="function"&&$e instanceof $e&&typeof je=="function"&&je instanceof je)&&(B=!1)}return A.delete(y),A.delete(x),B}function Gr(y,x){var K=y.__data__;return lt(x)?K[typeof x=="string"?"string":"hash"]:K.map}function dn(y){for(var x=Qe(y),K=x.length;K--;){var re=x[K],g=y[re];x[K]=[re,g,Et(g)]}return x}function ot(y,x){var K=ke(y,x);return tn(K)?K:void 0}var lr=wn;(jt&&lr(new jt(new ArrayBuffer(1)))!=q||bt&&lr(new bt)!=b||Yt&&lr(Yt.resolve())!=R||Qt&&lr(new Qt)!=k||gr&&lr(new gr)!=j)&&(lr=function(y){var x=gt.call(y),K=x==$?y.constructor:void 0,re=K?Zt(K):void 0;if(re)switch(re){case or:return q;case Jt:return b;case Xr:return R;case Mt:return k;case Ar:return j}return x});function Ur(y,x,K){x=Wt(x,y)?[x]:Sn(x);for(var re,g=-1,l=x.length;++g<l;){var A=_r(x[g]);if(!(re=y!=null&&K(y,A)))break;y=y[A]}if(re)return re;var l=y?y.length:0;return!!l&&_e(l)&&mr(A,l)&&(_(y)||c(y))}function mr(y,x){return x=x==null?u:x,!!x&&(typeof y=="number"||fe.test(y))&&y>-1&&y%1==0&&y<x}function Wt(y,x){if(_(y))return!1;var K=typeof y;return K=="number"||K=="symbol"||K=="boolean"||y==null||Xe(y)?!0:F.test(y)||!pe.test(y)||x!=null&&y in Object(x)}function lt(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function vr(y){return!!pt&&pt in y}function br(y){var x=y&&y.constructor,K=typeof x=="function"&&x.prototype||Ae;return y===K}function Et(y){return y===y&&!Ce(y)}function Br(y,x){return function(K){return K==null?!1:K[y]===x&&(x!==void 0||y in Object(K))}}var fr=Vr(function(y){y=Ve(y);var x=[];return U.test(y)&&x.push(""),y.replace(N,function(K,re,g,A){x.push(g?A.replace(V,"$1"):re||K)}),x});function _r(y){if(typeof y=="string"||Xe(y))return y;var x=y+"";return x=="0"&&1/y==-s?"-0":x}function Zt(y){if(y!=null){try{return pr.call(y)}catch{}try{return y+""}catch{}}return""}function Vr(y,x){if(typeof y!="function"||x&&typeof x!="function")throw new TypeError(n);var K=function(){var re=arguments,g=x?x.apply(this,re):re[0],A=K.cache;if(A.has(g))return A.get(g);var l=y.apply(this,re);return K.cache=A.set(g,l),l};return K.cache=new(Vr.Cache||_t),K}Vr.Cache=_t;function hn(y,x){return y===x||y!==y&&x!==x}function c(y){return W(y)&&zt.call(y,"callee")&&(!ir.call(y,"callee")||gt.call(y)==f)}var _=Array.isArray;function C(y){return y!=null&&_e(y.length)&&!Se(y)}function W(y){return xe(y)&&C(y)}function Se(y){var x=Ce(y)?gt.call(y):"";return x==P||x==E}function _e(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=u}function Ce(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function xe(y){return!!y&&typeof y=="object"}function Xe(y){return typeof y=="symbol"||xe(y)&>.call(y)==J}var Be=Ee?nt(Ee):Hr;function Ve(y){return y==null?"":Tr(y)}function ft(y,x,K){var re=y==null?void 0:Lr(y,x);return re===void 0?K:re}function Ye(y,x){return y!=null&&Ur(y,x,ln)}function Qe(y){return C(y)?Ut(y):Wn(y)}function dt(y,x){var K={};return x=kn(x),kt(y,function(re,g,A){K[g]=x(re,g,A)}),K}function Kt(y){return y}function er(y){return Wt(y)?qe(_r(y)):Rr(y)}e.exports=dt})(xd,xd.exports);var P1=1/0,I1="[object Function]",x1="[object GeneratorFunction]",E1=/[\\^$.*+?()[\]{}|]/g,C1=/^\[object .+?Constructor\]$/,R1=typeof me=="object"&&me&&me.Object===Object&&me,T1=typeof self=="object"&&self&&self.Object===Object&&self,xu=R1||T1||Function("return this")();function M1(e,t){return e==null?void 0:e[t]}function F1(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function $1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var N1=Function.prototype,Ed=Object.prototype,Eu=xu["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Eu&&Eu.keys&&Eu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rd=N1.toString,D1=Ed.hasOwnProperty,j1=Ed.toString,L1=RegExp("^"+Rd.call(D1).replace(E1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Ru(xu,"Map");var Cu=Ru(xu,"Set");Ru(Object,"create");function z1(e){if(!Td(e)||H1(e))return!1;var t=B1(e)||F1(e)?L1:C1;return t.test(U1(e))}Cu&&1/$1(new Cu([,-0]))[1]==P1;function Ru(e,t){var r=M1(e,t);return z1(r)?r:void 0}function H1(e){return!!Cd&&Cd in e}function U1(e){if(e!=null){try{return Rd.call(e)}catch{}try{return e+""}catch{}}return""}function B1(e){var t=Td(e)?j1.call(e):"";return t==I1||t==x1}function Td(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function k1(){}var W1=9007199254740991,K1="[object Arguments]",q1="[object Function]",G1="[object GeneratorFunction]",V1=typeof me=="object"&&me&&me.Object===Object&&me,Y1=typeof self=="object"&&self&&self.Object===Object&&self,Q1=V1||Y1||Function("return this")();function J1(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Tu=Object.prototype,X1=Tu.hasOwnProperty,Md=Tu.toString,Fd=Q1.Symbol,Z1=Tu.propertyIsEnumerable,$d=Fd?Fd.isConcatSpreadable:void 0;function Nd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=e0),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Nd(s,t-1,r,n,i):J1(i,s):n||(i[i.length]=s)}return i}function e0(e){return n0(e)||r0(e)||!!($d&&e&&e[$d])}function t0(e){var t=e?e.length:0;return t?Nd(e,1):[]}function r0(e){return a0(e)&&X1.call(e,"callee")&&(!Z1.call(e,"callee")||Md.call(e)==K1)}var n0=Array.isArray;function i0(e){return e!=null&&s0(e.length)&&!o0(e)}function a0(e){return c0(e)&&i0(e)}function o0(e){var t=u0(e)?Md.call(e):"";return t==q1||t==G1}function s0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W1}function u0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function c0(e){return!!e&&typeof e=="object"}var Dd=t0;typeof me!="undefined"&&typeof me.self=="undefined"&&(me.self={},me.__pretenderNodePolyfill=!0);var l0=Object.create;function Mu(){var e=l0(null);return e.__=void 0,delete e.__,e}var jd=function(t,r,n){this.path=t,this.matcher=r,this.delegate=n};jd.prototype.to=function(t,r){var n=this.delegate;if(n&&n.willAddRoute&&(t=n.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),r){if(r.length===0)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,r,this.delegate)}};var Po=function(t){this.routes=Mu(),this.children=Mu(),this.target=t};Po.prototype.add=function(t,r){this.routes[t]=r},Po.prototype.addChild=function(t,r,n,i){var a=new Po(r);this.children[t]=a;var o=Fu(t,a,i);i&&i.contextEntered&&i.contextEntered(r,o),n(o)};function Fu(e,t,r){function n(i,a){var o=e+i;if(a)a(Fu(o,t,r));else return new jd(o,t,r)}return n}function f0(e,t,r){for(var n=0,i=0;i<e.length;i++)n+=e[i].path.length;t=t.substr(n);var a={path:t,handler:r};e.push(a)}function Ld(e,t,r,n){for(var i=t.routes,a=Object.keys(i),o=0;o<a.length;o++){var s=a[o],u=e.slice();f0(u,s,i[s]);var f=t.children[s];f?Ld(u,f,r,n):r.call(n,u)}}var d0=function(e,t){var r=new Po;e(Fu("",r,this.delegate)),Ld([],r,function(n){t?t(this,n):this.add(n)},this)};function zd(e){return e.split("/").map($u).join("/")}var h0=/%|\//g;function $u(e){return e.length<3||e.indexOf("%")===-1?e:decodeURIComponent(e).replace(h0,encodeURIComponent)}var p0=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;function Hd(e){return encodeURIComponent(e).replace(p0,decodeURIComponent)}var g0=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,Io=Array.isArray,y0=Object.prototype.hasOwnProperty;function Ud(e,t){if(typeof e!="object"||e===null)throw new Error("You must pass an object as the second argument to `generate`.");if(!y0.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.");var r=e[t],n=typeof r=="string"?r:""+r;if(n.length===0)throw new Error("You must provide a param `"+t+"`.");return n}var da=[];da[0]=function(e,t){for(var r=t,n=e.value,i=0;i<n.length;i++){var a=n.charCodeAt(i);r=r.put(a,!1,!1)}return r},da[1]=function(e,t){return t.put(47,!0,!0)},da[2]=function(e,t){return t.put(-1,!1,!0)},da[4]=function(e,t){return t};var ha=[];ha[0]=function(e){return e.value.replace(g0,"\\$1")},ha[1]=function(){return"([^/]+)"},ha[2]=function(){return"(.+)"},ha[4]=function(){return""};var pa=[];pa[0]=function(e){return e.value},pa[1]=function(e,t){var r=Ud(t,e.value);return Bt.ENCODE_AND_DECODE_PATH_SEGMENTS?Hd(r):r},pa[2]=function(e,t){return Ud(t,e.value)},pa[4]=function(){return""};var Bd=Object.freeze({}),xo=Object.freeze([]);function m0(e,t,r){t.length>0&&t.charCodeAt(0)===47&&(t=t.substr(1));for(var n=t.split("/"),i=void 0,a=void 0,o=0;o<n.length;o++){var s=n[o],u=0,f=0;s===""?f=4:s.charCodeAt(0)===58?f=1:s.charCodeAt(0)===42?f=2:f=0,u=2<<f,u&12&&(s=s.slice(1),i=i||[],i.push(s),a=a||[],a.push((u&4)!==0)),u&14&&r[f]++,e.push({type:f,value:$u(s)})}return{names:i||xo,shouldDecodes:a||xo}}function kd(e,t,r){return e.char===t&&e.negate===r}var ki=function(t,r,n,i,a){this.states=t,this.id=r,this.char=n,this.negate=i,this.nextStates=a?r:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0};ki.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},ki.prototype.get=function(t,r){var n=this,i=this.nextStates;if(i!==null)if(Io(i))for(var a=0;a<i.length;a++){var o=n.states[i[a]];if(kd(o,t,r))return o}else{var s=this.states[i];if(kd(s,t,r))return s}},ki.prototype.put=function(t,r,n){var i;if(i=this.get(t,r))return i;var a=this.states;return i=new ki(a,a.length,t,r,n),a[a.length]=i,this.nextStates==null?this.nextStates=i.id:Io(this.nextStates)?this.nextStates.push(i.id):this.nextStates=[this.nextStates,i.id],i},ki.prototype.match=function(t){var r=this,n=this.nextStates;if(!n)return[];var i=[];if(Io(n))for(var a=0;a<n.length;a++){var o=r.states[n[a]];Wd(o,t)&&i.push(o)}else{var s=this.states[n];Wd(s,t)&&i.push(s)}return i};function Wd(e,t){return e.negate?e.char!==t&&e.char!==-1:e.char===t||e.char===-1}function v0(e){return e.sort(function(t,r){var n=t.types||[0,0,0],i=n[0],a=n[1],o=n[2],s=r.types||[0,0,0],u=s[0],f=s[1],p=s[2];if(o!==p)return o-p;if(o){if(i!==u)return u-i;if(a!==f)return f-a}return a!==f?a-f:i!==u?u-i:0})}function b0(e,t){for(var r=[],n=0,i=e.length;n<i;n++){var a=e[n];r=r.concat(a.match(t))}return r}var Eo=function(t){this.length=0,this.queryParams=t||{}};Eo.prototype.splice=Array.prototype.splice,Eo.prototype.slice=Array.prototype.slice,Eo.prototype.push=Array.prototype.push;function _0(e,t,r){var n=e.handlers,i=e.regex();if(!i||!n)throw new Error("state not initialized");var a=t.match(i),o=1,s=new Eo(r);s.length=n.length;for(var u=0;u<n.length;u++){var f=n[u],p=f.names,d=f.shouldDecodes,m=Bd,S=!1;if(p!==xo&&d!==xo)for(var P=0;P<p.length;P++){S=!0;var E=p[P],b=a&&a[o++];m===Bd&&(m={}),Bt.ENCODE_AND_DECODE_PATH_SEGMENTS&&d[P]?m[E]=b&&decodeURIComponent(b):m[E]=b}s[u]={handler:f.handler,params:m,isDynamic:S}}return s}function Kd(e){e=e.replace(/\+/gm,"%20");var t;try{t=decodeURIComponent(e)}catch{t=""}return t}var Bt=function(){this.names=Mu();var t=[],r=new ki(t,0,-1,!0,!1);t[0]=r,this.states=t,this.rootState=r};Bt.prototype.add=function(t,r){for(var n=this.rootState,i="^",a=[0,0,0],o=new Array(t.length),s=[],u=!0,f=0,p=0;p<t.length;p++){for(var d=t[p],m=m0(s,d.path,a),S=m.names,P=m.shouldDecodes;f<s.length;f++){var E=s[f];E.type!==4&&(u=!1,n=n.put(47,!1,!1),i+="/",n=da[E.type](E,n),i+=ha[E.type](E))}o[p]={handler:d.handler,names:S,shouldDecodes:P}}u&&(n=n.put(47,!1,!1),i+="/"),n.handlers=o,n.pattern=i+"$",n.types=a;var b;typeof r=="object"&&r!==null&&r.as&&(b=r.as),b&&(this.names[b]={segments:s,handlers:o})},Bt.prototype.handlersFor=function(t){var r=this.names[t];if(!r)throw new Error("There is no route named "+t);for(var n=new Array(r.handlers.length),i=0;i<r.handlers.length;i++){var a=r.handlers[i];n[i]=a}return n},Bt.prototype.hasRoute=function(t){return!!this.names[t]},Bt.prototype.generate=function(t,r){var n=this.names[t],i="";if(!n)throw new Error("There is no route named "+t);for(var a=n.segments,o=0;o<a.length;o++){var s=a[o];s.type!==4&&(i+="/",i+=pa[s.type](s,r))}return i.charAt(0)!=="/"&&(i="/"+i),r&&r.queryParams&&(i+=this.generateQueryString(r.queryParams)),i},Bt.prototype.generateQueryString=function(t){var r=[],n=Object.keys(t);n.sort();for(var i=0;i<n.length;i++){var a=n[i],o=t[a];if(o!=null){var s=encodeURIComponent(a);if(Io(o))for(var u=0;u<o.length;u++){var f=a+"[]="+encodeURIComponent(o[u]);r.push(f)}else s+="="+encodeURIComponent(o),r.push(s)}}return r.length===0?"":"?"+r.join("&")},Bt.prototype.parseQueryString=function(t){for(var r=t.split("&"),n={},i=0;i<r.length;i++){var a=r[i].split("="),o=Kd(a[0]),s=o.length,u=!1,f=void 0;a.length===1?f="true":(s>2&&o.slice(s-2)==="[]"&&(u=!0,o=o.slice(0,s-2),n[o]||(n[o]=[])),f=a[1]?Kd(a[1]):""),u?n[o].push(f):n[o]=f}return n},Bt.prototype.recognize=function(t){var r,n=[this.rootState],i={},a=!1,o=t.indexOf("#");o!==-1&&(t=t.substr(0,o));var s=t.indexOf("?");if(s!==-1){var u=t.substr(s+1,t.length);t=t.substr(0,s),i=this.parseQueryString(u)}t.charAt(0)!=="/"&&(t="/"+t);var f=t;Bt.ENCODE_AND_DECODE_PATH_SEGMENTS?t=zd(t):(t=decodeURI(t),f=decodeURI(f));var p=t.length;p>1&&t.charAt(p-1)==="/"&&(t=t.substr(0,p-1),f=f.substr(0,f.length-1),a=!0);for(var d=0;d<t.length&&(n=b0(n,t.charCodeAt(d)),!!n.length);d++);for(var m=[],S=0;S<n.length;S++)n[S].handlers&&m.push(n[S]);n=v0(m);var P=m[0];return P&&P.handlers&&(a&&P.pattern&&P.pattern.slice(-5)==="(.+)$"&&(f=f+"/"),r=_0(P,f,i)),r},Bt.VERSION="0.3.4",Bt.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,Bt.Normalizer={normalizeSegment:$u,normalizePath:zd,encodePathSegment:Hd},Bt.prototype.map=d0;/**
|
|
1
|
+
var L3=Object.defineProperty,z3=Object.defineProperties;var H3=Object.getOwnPropertyDescriptors;var Vv=Object.getOwnPropertySymbols;var U3=Object.prototype.hasOwnProperty,B3=Object.prototype.propertyIsEnumerable;var Yv=(rr,z,Fr)=>z in rr?L3(rr,z,{enumerable:!0,configurable:!0,writable:!0,value:Fr}):rr[z]=Fr,$t=(rr,z)=>{for(var Fr in z||(z={}))U3.call(z,Fr)&&Yv(rr,Fr,z[Fr]);if(Vv)for(var Fr of Vv(z))B3.call(z,Fr)&&Yv(rr,Fr,z[Fr]);return rr},dr=(rr,z)=>z3(rr,H3(z));(function(rr,z){typeof exports=="object"&&typeof module!="undefined"?z(exports,require("react"),require("react-dom"),require("core-js/modules/web.dom-collections.for-each.js"),require("core-js/modules/es.object.keys.js"),require("core-js/modules/es.weak-map.js"),require("core-js/modules/es.object.to-string.js"),require("core-js/modules/es.string.iterator.js"),require("core-js/modules/es.array.iterator.js"),require("core-js/modules/web.dom-collections.iterator.js"),require("core-js/modules/es.object.get-own-property-descriptor.js"),require("core-js/modules/es.symbol.js"),require("core-js/modules/es.symbol.description.js"),require("core-js/modules/es.symbol.iterator.js"),require("core-js/modules/es.object.assign.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","core-js/modules/web.dom-collections.for-each.js","core-js/modules/es.object.keys.js","core-js/modules/es.weak-map.js","core-js/modules/es.object.to-string.js","core-js/modules/es.string.iterator.js","core-js/modules/es.array.iterator.js","core-js/modules/web.dom-collections.iterator.js","core-js/modules/es.object.get-own-property-descriptor.js","core-js/modules/es.symbol.js","core-js/modules/es.symbol.description.js","core-js/modules/es.symbol.iterator.js","core-js/modules/es.object.assign.js"],z):(rr=typeof globalThis!="undefined"?globalThis:rr||self,z(rr.baJsHeader={},rr.React,rr.ReactDOM))})(this,function(rr,z,Fr){"use strict";function Qv(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function Jv(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var st=Qv(z),ui=Jv(z),k3="",me=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zv="[object Object]";function e1(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function t1(e,t){return function(r){return e(t(r))}}var r1=Function.prototype,Od=Object.prototype,Sd=r1.toString,n1=Od.hasOwnProperty,i1=Sd.call(Object),a1=Od.toString,o1=t1(Object.getPrototypeOf,Object);function s1(e){return!!e&&typeof e=="object"}function u1(e){if(!s1(e)||a1.call(e)!=Zv||e1(e))return!1;var t=o1(e);if(t===null)return!0;var r=n1.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Sd.call(r)==i1}var Iu=u1,c1="[object AsyncFunction]",l1="[object Function]",f1="[object GeneratorFunction]",d1="[object Null]",h1="[object Proxy]",p1="[object Undefined]",g1=typeof me=="object"&&me&&me.Object===Object&&me,y1=typeof self=="object"&&self&&self.Object===Object&&self,m1=g1||y1||Function("return this")(),Ad=Object.prototype,v1=Ad.hasOwnProperty,Pd=Ad.toString,Id=m1.Symbol,Ai=Id?Id.toStringTag:void 0;function b1(e){return e==null?e===void 0?p1:d1:Ai&&Ai in Object(e)?_1(e):w1(e)}function _1(e){var t=v1.call(e,Ai),r=e[Ai];try{e[Ai]=void 0;var n=!0}catch{}var i=Pd.call(e);return n&&(t?e[Ai]=r:delete e[Ai]),i}function w1(e){return Pd.call(e)}function O1(e){if(!S1(e))return!1;var t=b1(e);return t==l1||t==f1||t==c1||t==h1}function S1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var A1=O1,xd={exports:{}};(function(e,t){var r=200,n="Expected a function",i="__lodash_hash_undefined__",a=1,o=2,s=1/0,u=9007199254740991,f="[object Arguments]",p="[object Array]",d="[object Boolean]",m="[object Date]",S="[object Error]",P="[object Function]",E="[object GeneratorFunction]",b="[object Map]",I="[object Number]",$="[object Object]",R="[object Promise]",L="[object RegExp]",k="[object Set]",ae="[object String]",J="[object Symbol]",j="[object WeakMap]",ce="[object ArrayBuffer]",q="[object DataView]",ge="[object Float32Array]",O="[object Float64Array]",he="[object Int8Array]",le="[object Int16Array]",de="[object Int32Array]",Me="[object Uint8Array]",Ne="[object Uint8ClampedArray]",Oe="[object Uint16Array]",De="[object Uint32Array]",pe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,U=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Q=/[\\^$.*+?()[\]{}|]/g,V=/\\(\\)?/g,be=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,H={};H[ge]=H[O]=H[he]=H[le]=H[de]=H[Me]=H[Ne]=H[Oe]=H[De]=!0,H[f]=H[p]=H[ce]=H[d]=H[q]=H[m]=H[S]=H[P]=H[b]=H[I]=H[$]=H[L]=H[k]=H[ae]=H[j]=!1;var ee=typeof me=="object"&&me&&me.Object===Object&&me,ue=typeof self=="object"&&self&&self.Object===Object&&self,oe=ee||ue||Function("return this")(),ve=t&&!t.nodeType&&t,Pe=ve&&!0&&e&&!e.nodeType&&e,te=Pe&&Pe.exports===ve,Le=te&&ee.process,Ie=function(){try{return Le&&Le.binding("util")}catch{}}(),Ee=Ie&&Ie.isTypedArray;function He(y,x){for(var K=-1,re=y?y.length:0;++K<re;)if(x(y[K],K,y))return!0;return!1}function qe(y){return function(x){return x==null?void 0:x[y]}}function Ke(y,x){for(var K=-1,re=Array(y);++K<y;)re[K]=x(K);return re}function nt(y){return function(x){return y(x)}}function ke(y,x){return y==null?void 0:y[x]}function Pt(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function Je(y){var x=-1,K=Array(y.size);return y.forEach(function(re,g){K[++x]=[g,re]}),K}function Nt(y,x){return function(K){return y(x(K))}}function Dt(y){var x=-1,K=Array(y.size);return y.forEach(function(re){K[++x]=re}),K}var ht=Array.prototype,Z=Function.prototype,Ae=Object.prototype,Fe=oe["__core-js_shared__"],pt=function(){var y=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),pr=Z.toString,zt=Ae.hasOwnProperty,gt=Ae.toString,Tt=RegExp("^"+pr.call(zt).replace(Q,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sr=oe.Symbol,Gt=oe.Uint8Array,ir=Ae.propertyIsEnumerable,yt=ht.splice,Vt=Nt(Object.keys,Object),jt=ot(oe,"DataView"),bt=ot(oe,"Map"),Yt=ot(oe,"Promise"),Qt=ot(oe,"Set"),gr=ot(oe,"WeakMap"),ar=ot(Object,"create"),or=Zt(jt),Jt=Zt(bt),Xr=Zt(Yt),Mt=Zt(Qt),Ar=Zt(gr),Xt=Sr?Sr.prototype:void 0,yr=Xt?Xt.valueOf:void 0,Pr=Xt?Xt.toString:void 0;function Ft(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function et(){this.__data__=ar?ar(null):{}}function Nn(y){return this.has(y)&&delete this.__data__[y]}function Zr(y){var x=this.__data__;if(ar){var K=x[y];return K===i?void 0:K}return zt.call(x,y)?x[y]:void 0}function un(y){var x=this.__data__;return ar?x[y]!==void 0:zt.call(x,y)}function vn(y,x){var K=this.__data__;return K[y]=ar&&x===void 0?i:x,this}Ft.prototype.clear=et,Ft.prototype.delete=Nn,Ft.prototype.get=Zr,Ft.prototype.has=un,Ft.prototype.set=vn;function mt(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function Ge(){this.__data__=[]}function bn(y){var x=this.__data__,K=en(x,y);if(K<0)return!1;var re=x.length-1;return K==re?x.pop():yt.call(x,K,1),!0}function Ir(y){var x=this.__data__,K=en(x,y);return K<0?void 0:x[K][1]}function Dn(y){return en(this.__data__,y)>-1}function jn(y,x){var K=this.__data__,re=en(K,y);return re<0?K.push([y,x]):K[re][1]=x,this}mt.prototype.clear=Ge,mt.prototype.delete=bn,mt.prototype.get=Ir,mt.prototype.has=Dn,mt.prototype.set=jn;function _t(y){var x=-1,K=y?y.length:0;for(this.clear();++x<K;){var re=y[x];this.set(re[0],re[1])}}function it(){this.__data__={hash:new Ft,map:new(bt||mt),string:new Ft}}function Ln(y){return Gr(this,y).delete(y)}function sr(y){return Gr(this,y).get(y)}function zn(y){return Gr(this,y).has(y)}function Hn(y,x){return Gr(this,y).set(y,x),this}_t.prototype.clear=it,_t.prototype.delete=Ln,_t.prototype.get=sr,_t.prototype.has=zn,_t.prototype.set=Hn;function Ht(y){var x=-1,K=y?y.length:0;for(this.__data__=new _t;++x<K;)this.add(y[x])}function xr(y){return this.__data__.set(y,i),this}function _n(y){return this.__data__.has(y)}Ht.prototype.add=Ht.prototype.push=xr,Ht.prototype.has=_n;function at(y){this.__data__=new mt(y)}function It(){this.__data__=new mt}function cn(y){return this.__data__.delete(y)}function qr(y){return this.__data__.get(y)}function Un(y){return this.__data__.has(y)}function Bn(y,x){var K=this.__data__;if(K instanceof mt){var re=K.__data__;if(!bt||re.length<r-1)return re.push([y,x]),this;K=this.__data__=new _t(re)}return K.set(y,x),this}at.prototype.clear=It,at.prototype.delete=cn,at.prototype.get=qr,at.prototype.has=Un,at.prototype.set=Bn;function Ut(y,x){var K=_(y)||c(y)?Ke(y.length,String):[],re=K.length,g=!!re;for(var A in y)(x||zt.call(y,A))&&!(g&&(A=="length"||mr(A,re)))&&K.push(A);return K}function en(y,x){for(var K=y.length;K--;)if(hn(y[K][0],x))return K;return-1}var Er=cr();function kt(y,x){return y&&Er(y,x,Qe)}function Lr(y,x){x=Wt(x,y)?[x]:Sn(x);for(var K=0,re=x.length;y!=null&&K<re;)y=y[_r(x[K++])];return K&&K==re?y:void 0}function wn(y){return gt.call(y)}function ln(y,x){return y!=null&&x in Object(y)}function zr(y,x,K,re,g){return y===x?!0:y==null||x==null||!Ce(y)&&!xe(x)?y!==y&&x!==x:On(y,x,zr,K,re,g)}function On(y,x,K,re,g,A){var l=_(y),v=_(x),T=p,D=p;l||(T=lr(y),T=T==f?$:T),v||(D=lr(x),D=D==f?$:D);var X=T==$&&!Pt(y),h=D==$&&!Pt(x),w=T==D;if(w&&!X)return A||(A=new at),l||Be(y)?An(y,x,K,re,g,A):Pn(y,x,T,K,re,g,A);if(!(g&o)){var M=X&&zt.call(y,"__wrapped__"),B=h&&zt.call(x,"__wrapped__");if(M||B){var ne=M?y.value():y,Y=B?x.value():x;return A||(A=new at),K(ne,Y,re,g,A)}}return w?(A||(A=new at),Kn(y,x,K,re,g,A)):!1}function fn(y,x,K,re){var g=K.length,A=g,l=!re;if(y==null)return!A;for(y=Object(y);g--;){var v=K[g];if(l&&v[2]?v[1]!==y[v[0]]:!(v[0]in y))return!1}for(;++g<A;){v=K[g];var T=v[0],D=y[T],X=v[1];if(l&&v[2]){if(D===void 0&&!(T in y))return!1}else{var h=new at;if(re)var w=re(D,X,T,y,x,h);if(!(w===void 0?zr(X,D,re,a|o,h):w))return!1}}return!0}function tn(y){if(!Ce(y)||vr(y))return!1;var x=Se(y)||Pt(y)?Tt:be;return x.test(Zt(y))}function Hr(y){return xe(y)&&_e(y.length)&&!!H[gt.call(y)]}function kn(y){return typeof y=="function"?y:y==null?Kt:typeof y=="object"?_(y)?ur(y[0],y[1]):Cr(y):er(y)}function Wn(y){if(!br(y))return Vt(y);var x=[];for(var K in Object(y))zt.call(y,K)&&K!="constructor"&&x.push(K);return x}function Cr(y){var x=dn(y);return x.length==1&&x[0][2]?Br(x[0][0],x[0][1]):function(K){return K===y||fn(K,y,x)}}function ur(y,x){return Wt(y)&&Et(x)?Br(_r(y),x):function(K){var re=ft(K,y);return re===void 0&&re===x?Ye(K,y):zr(x,re,void 0,a|o)}}function Rr(y){return function(x){return Lr(x,y)}}function Tr(y){if(typeof y=="string")return y;if(Xe(y))return Pr?Pr.call(y):"";var x=y+"";return x=="0"&&1/y==-s?"-0":x}function Sn(y){return _(y)?y:fr(y)}function cr(y){return function(x,K,re){for(var g=-1,A=Object(x),l=re(x),v=l.length;v--;){var T=l[y?v:++g];if(K(A[T],T,A)===!1)break}return x}}function An(y,x,K,re,g,A){var l=g&o,v=y.length,T=x.length;if(v!=T&&!(l&&T>v))return!1;var D=A.get(y);if(D&&A.get(x))return D==x;var X=-1,h=!0,w=g&a?new Ht:void 0;for(A.set(y,x),A.set(x,y);++X<v;){var M=y[X],B=x[X];if(re)var ne=l?re(B,M,X,x,y,A):re(M,B,X,y,x,A);if(ne!==void 0){if(ne)continue;h=!1;break}if(w){if(!He(x,function(Y,ye){if(!w.has(ye)&&(M===Y||K(M,Y,re,g,A)))return w.add(ye)})){h=!1;break}}else if(!(M===B||K(M,B,re,g,A))){h=!1;break}}return A.delete(y),A.delete(x),h}function Pn(y,x,K,re,g,A,l){switch(K){case q:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case ce:return!(y.byteLength!=x.byteLength||!re(new Gt(y),new Gt(x)));case d:case m:case I:return hn(+y,+x);case S:return y.name==x.name&&y.message==x.message;case L:case ae:return y==x+"";case b:var v=Je;case k:var T=A&o;if(v||(v=Dt),y.size!=x.size&&!T)return!1;var D=l.get(y);if(D)return D==x;A|=a,l.set(y,x);var X=An(v(y),v(x),re,g,A,l);return l.delete(y),X;case J:if(yr)return yr.call(y)==yr.call(x)}return!1}function Kn(y,x,K,re,g,A){var l=g&o,v=Qe(y),T=v.length,D=Qe(x),X=D.length;if(T!=X&&!l)return!1;for(var h=T;h--;){var w=v[h];if(!(l?w in x:zt.call(x,w)))return!1}var M=A.get(y);if(M&&A.get(x))return M==x;var B=!0;A.set(y,x),A.set(x,y);for(var ne=l;++h<T;){w=v[h];var Y=y[w],ye=x[w];if(re)var we=l?re(ye,Y,w,x,y,A):re(Y,ye,w,y,x,A);if(!(we===void 0?Y===ye||K(Y,ye,re,g,A):we)){B=!1;break}ne||(ne=w=="constructor")}if(B&&!ne){var $e=y.constructor,je=x.constructor;$e!=je&&"constructor"in y&&"constructor"in x&&!(typeof $e=="function"&&$e instanceof $e&&typeof je=="function"&&je instanceof je)&&(B=!1)}return A.delete(y),A.delete(x),B}function Gr(y,x){var K=y.__data__;return lt(x)?K[typeof x=="string"?"string":"hash"]:K.map}function dn(y){for(var x=Qe(y),K=x.length;K--;){var re=x[K],g=y[re];x[K]=[re,g,Et(g)]}return x}function ot(y,x){var K=ke(y,x);return tn(K)?K:void 0}var lr=wn;(jt&&lr(new jt(new ArrayBuffer(1)))!=q||bt&&lr(new bt)!=b||Yt&&lr(Yt.resolve())!=R||Qt&&lr(new Qt)!=k||gr&&lr(new gr)!=j)&&(lr=function(y){var x=gt.call(y),K=x==$?y.constructor:void 0,re=K?Zt(K):void 0;if(re)switch(re){case or:return q;case Jt:return b;case Xr:return R;case Mt:return k;case Ar:return j}return x});function Ur(y,x,K){x=Wt(x,y)?[x]:Sn(x);for(var re,g=-1,l=x.length;++g<l;){var A=_r(x[g]);if(!(re=y!=null&&K(y,A)))break;y=y[A]}if(re)return re;var l=y?y.length:0;return!!l&&_e(l)&&mr(A,l)&&(_(y)||c(y))}function mr(y,x){return x=x==null?u:x,!!x&&(typeof y=="number"||fe.test(y))&&y>-1&&y%1==0&&y<x}function Wt(y,x){if(_(y))return!1;var K=typeof y;return K=="number"||K=="symbol"||K=="boolean"||y==null||Xe(y)?!0:F.test(y)||!pe.test(y)||x!=null&&y in Object(x)}function lt(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function vr(y){return!!pt&&pt in y}function br(y){var x=y&&y.constructor,K=typeof x=="function"&&x.prototype||Ae;return y===K}function Et(y){return y===y&&!Ce(y)}function Br(y,x){return function(K){return K==null?!1:K[y]===x&&(x!==void 0||y in Object(K))}}var fr=Vr(function(y){y=Ve(y);var x=[];return U.test(y)&&x.push(""),y.replace(N,function(K,re,g,A){x.push(g?A.replace(V,"$1"):re||K)}),x});function _r(y){if(typeof y=="string"||Xe(y))return y;var x=y+"";return x=="0"&&1/y==-s?"-0":x}function Zt(y){if(y!=null){try{return pr.call(y)}catch{}try{return y+""}catch{}}return""}function Vr(y,x){if(typeof y!="function"||x&&typeof x!="function")throw new TypeError(n);var K=function(){var re=arguments,g=x?x.apply(this,re):re[0],A=K.cache;if(A.has(g))return A.get(g);var l=y.apply(this,re);return K.cache=A.set(g,l),l};return K.cache=new(Vr.Cache||_t),K}Vr.Cache=_t;function hn(y,x){return y===x||y!==y&&x!==x}function c(y){return W(y)&&zt.call(y,"callee")&&(!ir.call(y,"callee")||gt.call(y)==f)}var _=Array.isArray;function C(y){return y!=null&&_e(y.length)&&!Se(y)}function W(y){return xe(y)&&C(y)}function Se(y){var x=Ce(y)?gt.call(y):"";return x==P||x==E}function _e(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=u}function Ce(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function xe(y){return!!y&&typeof y=="object"}function Xe(y){return typeof y=="symbol"||xe(y)&>.call(y)==J}var Be=Ee?nt(Ee):Hr;function Ve(y){return y==null?"":Tr(y)}function ft(y,x,K){var re=y==null?void 0:Lr(y,x);return re===void 0?K:re}function Ye(y,x){return y!=null&&Ur(y,x,ln)}function Qe(y){return C(y)?Ut(y):Wn(y)}function dt(y,x){var K={};return x=kn(x),kt(y,function(re,g,A){K[g]=x(re,g,A)}),K}function Kt(y){return y}function er(y){return Wt(y)?qe(_r(y)):Rr(y)}e.exports=dt})(xd,xd.exports);var P1=1/0,I1="[object Function]",x1="[object GeneratorFunction]",E1=/[\\^$.*+?()[\]{}|]/g,C1=/^\[object .+?Constructor\]$/,R1=typeof me=="object"&&me&&me.Object===Object&&me,T1=typeof self=="object"&&self&&self.Object===Object&&self,xu=R1||T1||Function("return this")();function M1(e,t){return e==null?void 0:e[t]}function F1(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function $1(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var N1=Function.prototype,Ed=Object.prototype,Eu=xu["__core-js_shared__"],Cd=function(){var e=/[^.]+$/.exec(Eu&&Eu.keys&&Eu.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Rd=N1.toString,D1=Ed.hasOwnProperty,j1=Ed.toString,L1=RegExp("^"+Rd.call(D1).replace(E1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");Ru(xu,"Map");var Cu=Ru(xu,"Set");Ru(Object,"create");function z1(e){if(!Td(e)||H1(e))return!1;var t=B1(e)||F1(e)?L1:C1;return t.test(U1(e))}Cu&&1/$1(new Cu([,-0]))[1]==P1;function Ru(e,t){var r=M1(e,t);return z1(r)?r:void 0}function H1(e){return!!Cd&&Cd in e}function U1(e){if(e!=null){try{return Rd.call(e)}catch{}try{return e+""}catch{}}return""}function B1(e){var t=Td(e)?j1.call(e):"";return t==I1||t==x1}function Td(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function k1(){}var W1=9007199254740991,K1="[object Arguments]",q1="[object Function]",G1="[object GeneratorFunction]",V1=typeof me=="object"&&me&&me.Object===Object&&me,Y1=typeof self=="object"&&self&&self.Object===Object&&self,Q1=V1||Y1||Function("return this")();function J1(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Tu=Object.prototype,X1=Tu.hasOwnProperty,Md=Tu.toString,Fd=Q1.Symbol,Z1=Tu.propertyIsEnumerable,$d=Fd?Fd.isConcatSpreadable:void 0;function Nd(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=e0),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Nd(s,t-1,r,n,i):J1(i,s):n||(i[i.length]=s)}return i}function e0(e){return n0(e)||r0(e)||!!($d&&e&&e[$d])}function t0(e){var t=e?e.length:0;return t?Nd(e,1):[]}function r0(e){return a0(e)&&X1.call(e,"callee")&&(!Z1.call(e,"callee")||Md.call(e)==K1)}var n0=Array.isArray;function i0(e){return e!=null&&s0(e.length)&&!o0(e)}function a0(e){return c0(e)&&i0(e)}function o0(e){var t=u0(e)?Md.call(e):"";return t==q1||t==G1}function s0(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=W1}function u0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function c0(e){return!!e&&typeof e=="object"}var Dd=t0;typeof me!="undefined"&&typeof me.self=="undefined"&&(me.self={},me.__pretenderNodePolyfill=!0);var l0=Object.create;function Mu(){var e=l0(null);return e.__=void 0,delete e.__,e}var jd=function(t,r,n){this.path=t,this.matcher=r,this.delegate=n};jd.prototype.to=function(t,r){var n=this.delegate;if(n&&n.willAddRoute&&(t=n.willAddRoute(this.matcher.target,t)),this.matcher.add(this.path,t),r){if(r.length===0)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,t,r,this.delegate)}};var Po=function(t){this.routes=Mu(),this.children=Mu(),this.target=t};Po.prototype.add=function(t,r){this.routes[t]=r},Po.prototype.addChild=function(t,r,n,i){var a=new Po(r);this.children[t]=a;var o=Fu(t,a,i);i&&i.contextEntered&&i.contextEntered(r,o),n(o)};function Fu(e,t,r){function n(i,a){var o=e+i;if(a)a(Fu(o,t,r));else return new jd(o,t,r)}return n}function f0(e,t,r){for(var n=0,i=0;i<e.length;i++)n+=e[i].path.length;t=t.substr(n);var a={path:t,handler:r};e.push(a)}function Ld(e,t,r,n){for(var i=t.routes,a=Object.keys(i),o=0;o<a.length;o++){var s=a[o],u=e.slice();f0(u,s,i[s]);var f=t.children[s];f?Ld(u,f,r,n):r.call(n,u)}}var d0=function(e,t){var r=new Po;e(Fu("",r,this.delegate)),Ld([],r,function(n){t?t(this,n):this.add(n)},this)};function zd(e){return e.split("/").map($u).join("/")}var h0=/%|\//g;function $u(e){return e.length<3||e.indexOf("%")===-1?e:decodeURIComponent(e).replace(h0,encodeURIComponent)}var p0=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;function Hd(e){return encodeURIComponent(e).replace(p0,decodeURIComponent)}var g0=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,Io=Array.isArray,y0=Object.prototype.hasOwnProperty;function Ud(e,t){if(typeof e!="object"||e===null)throw new Error("You must pass an object as the second argument to `generate`.");if(!y0.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.");var r=e[t],n=typeof r=="string"?r:""+r;if(n.length===0)throw new Error("You must provide a param `"+t+"`.");return n}var da=[];da[0]=function(e,t){for(var r=t,n=e.value,i=0;i<n.length;i++){var a=n.charCodeAt(i);r=r.put(a,!1,!1)}return r},da[1]=function(e,t){return t.put(47,!0,!0)},da[2]=function(e,t){return t.put(-1,!1,!0)},da[4]=function(e,t){return t};var ha=[];ha[0]=function(e){return e.value.replace(g0,"\\$1")},ha[1]=function(){return"([^/]+)"},ha[2]=function(){return"(.+)"},ha[4]=function(){return""};var pa=[];pa[0]=function(e){return e.value},pa[1]=function(e,t){var r=Ud(t,e.value);return Bt.ENCODE_AND_DECODE_PATH_SEGMENTS?Hd(r):r},pa[2]=function(e,t){return Ud(t,e.value)},pa[4]=function(){return""};var Bd=Object.freeze({}),xo=Object.freeze([]);function m0(e,t,r){t.length>0&&t.charCodeAt(0)===47&&(t=t.substr(1));for(var n=t.split("/"),i=void 0,a=void 0,o=0;o<n.length;o++){var s=n[o],u=0,f=0;s===""?f=4:s.charCodeAt(0)===58?f=1:s.charCodeAt(0)===42?f=2:f=0,u=2<<f,u&12&&(s=s.slice(1),i=i||[],i.push(s),a=a||[],a.push((u&4)!==0)),u&14&&r[f]++,e.push({type:f,value:$u(s)})}return{names:i||xo,shouldDecodes:a||xo}}function kd(e,t,r){return e.char===t&&e.negate===r}var ki=function(t,r,n,i,a){this.states=t,this.id=r,this.char=n,this.negate=i,this.nextStates=a?r:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0};ki.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},ki.prototype.get=function(t,r){var n=this,i=this.nextStates;if(i!==null)if(Io(i))for(var a=0;a<i.length;a++){var o=n.states[i[a]];if(kd(o,t,r))return o}else{var s=this.states[i];if(kd(s,t,r))return s}},ki.prototype.put=function(t,r,n){var i;if(i=this.get(t,r))return i;var a=this.states;return i=new ki(a,a.length,t,r,n),a[a.length]=i,this.nextStates==null?this.nextStates=i.id:Io(this.nextStates)?this.nextStates.push(i.id):this.nextStates=[this.nextStates,i.id],i},ki.prototype.match=function(t){var r=this,n=this.nextStates;if(!n)return[];var i=[];if(Io(n))for(var a=0;a<n.length;a++){var o=r.states[n[a]];Wd(o,t)&&i.push(o)}else{var s=this.states[n];Wd(s,t)&&i.push(s)}return i};function Wd(e,t){return e.negate?e.char!==t&&e.char!==-1:e.char===t||e.char===-1}function v0(e){return e.sort(function(t,r){var n=t.types||[0,0,0],i=n[0],a=n[1],o=n[2],s=r.types||[0,0,0],u=s[0],f=s[1],p=s[2];if(o!==p)return o-p;if(o){if(i!==u)return u-i;if(a!==f)return f-a}return a!==f?a-f:i!==u?u-i:0})}function b0(e,t){for(var r=[],n=0,i=e.length;n<i;n++){var a=e[n];r=r.concat(a.match(t))}return r}var Eo=function(t){this.length=0,this.queryParams=t||{}};Eo.prototype.splice=Array.prototype.splice,Eo.prototype.slice=Array.prototype.slice,Eo.prototype.push=Array.prototype.push;function _0(e,t,r){var n=e.handlers,i=e.regex();if(!i||!n)throw new Error("state not initialized");var a=t.match(i),o=1,s=new Eo(r);s.length=n.length;for(var u=0;u<n.length;u++){var f=n[u],p=f.names,d=f.shouldDecodes,m=Bd,S=!1;if(p!==xo&&d!==xo)for(var P=0;P<p.length;P++){S=!0;var E=p[P],b=a&&a[o++];m===Bd&&(m={}),Bt.ENCODE_AND_DECODE_PATH_SEGMENTS&&d[P]?m[E]=b&&decodeURIComponent(b):m[E]=b}s[u]={handler:f.handler,params:m,isDynamic:S}}return s}function Kd(e){e=e.replace(/\+/gm,"%20");var t;try{t=decodeURIComponent(e)}catch{t=""}return t}var Bt=function(){this.names=Mu();var t=[],r=new ki(t,0,-1,!0,!1);t[0]=r,this.states=t,this.rootState=r};Bt.prototype.add=function(t,r){for(var n=this.rootState,i="^",a=[0,0,0],o=new Array(t.length),s=[],u=!0,f=0,p=0;p<t.length;p++){for(var d=t[p],m=m0(s,d.path,a),S=m.names,P=m.shouldDecodes;f<s.length;f++){var E=s[f];E.type!==4&&(u=!1,n=n.put(47,!1,!1),i+="/",n=da[E.type](E,n),i+=ha[E.type](E))}o[p]={handler:d.handler,names:S,shouldDecodes:P}}u&&(n=n.put(47,!1,!1),i+="/"),n.handlers=o,n.pattern=i+"$",n.types=a;var b;typeof r=="object"&&r!==null&&r.as&&(b=r.as),b&&(this.names[b]={segments:s,handlers:o})},Bt.prototype.handlersFor=function(t){var r=this.names[t];if(!r)throw new Error("There is no route named "+t);for(var n=new Array(r.handlers.length),i=0;i<r.handlers.length;i++){var a=r.handlers[i];n[i]=a}return n},Bt.prototype.hasRoute=function(t){return!!this.names[t]},Bt.prototype.generate=function(t,r){var n=this.names[t],i="";if(!n)throw new Error("There is no route named "+t);for(var a=n.segments,o=0;o<a.length;o++){var s=a[o];s.type!==4&&(i+="/",i+=pa[s.type](s,r))}return i.charAt(0)!=="/"&&(i="/"+i),r&&r.queryParams&&(i+=this.generateQueryString(r.queryParams)),i},Bt.prototype.generateQueryString=function(t){var r=[],n=Object.keys(t);n.sort();for(var i=0;i<n.length;i++){var a=n[i],o=t[a];if(o!=null){var s=encodeURIComponent(a);if(Io(o))for(var u=0;u<o.length;u++){var f=a+"[]="+encodeURIComponent(o[u]);r.push(f)}else s+="="+encodeURIComponent(o),r.push(s)}}return r.length===0?"":"?"+r.join("&")},Bt.prototype.parseQueryString=function(t){for(var r=t.split("&"),n={},i=0;i<r.length;i++){var a=r[i].split("="),o=Kd(a[0]),s=o.length,u=!1,f=void 0;a.length===1?f="true":(s>2&&o.slice(s-2)==="[]"&&(u=!0,o=o.slice(0,s-2),n[o]||(n[o]=[])),f=a[1]?Kd(a[1]):""),u?n[o].push(f):n[o]=f}return n},Bt.prototype.recognize=function(t){var r,n=[this.rootState],i={},a=!1,o=t.indexOf("#");o!==-1&&(t=t.substr(0,o));var s=t.indexOf("?");if(s!==-1){var u=t.substr(s+1,t.length);t=t.substr(0,s),i=this.parseQueryString(u)}t.charAt(0)!=="/"&&(t="/"+t);var f=t;Bt.ENCODE_AND_DECODE_PATH_SEGMENTS?t=zd(t):(t=decodeURI(t),f=decodeURI(f));var p=t.length;p>1&&t.charAt(p-1)==="/"&&(t=t.substr(0,p-1),f=f.substr(0,f.length-1),a=!0);for(var d=0;d<t.length&&(n=b0(n,t.charCodeAt(d)),!!n.length);d++);for(var m=[],S=0;S<n.length;S++)n[S].handlers&&m.push(n[S]);n=v0(m);var P=m[0];return P&&P.handlers&&(a&&P.pattern&&P.pattern.slice(-5)==="(.+)$"&&(f=f+"/"),r=_0(P,f,i)),r},Bt.VERSION="0.3.4",Bt.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,Bt.Normalizer={normalizeSegment:$u,normalizePath:zd,encodePathSegment:Hd},Bt.prototype.map=d0;/**
|
|
2
2
|
* Minimal Event interface implementation
|
|
3
3
|
*
|
|
4
4
|
* Original implementation by Sven Fuchs: https://gist.github.com/995028
|
|
@@ -124,11 +124,11 @@ const store = createStore(
|
|
|
124
124
|
`+this.lexer.showPosition()+`
|
|
125
125
|
Expecting `+fe.join(", ")+", got '"+this.terminals_[Oe]+"'":H="Parse error on line "+(q+1)+": Unexpected "+(Oe==1?"end of input":"'"+(this.terminals_[Oe]||Oe)+"'"),this.parseError(H,{text:this.lexer.match,token:this.terminals_[Oe]||Oe,line:this.lexer.yylineno,loc:de,expected:fe})}if(O==3){if(Oe==le)throw new Error(H||"Parsing halted.");ge=this.lexer.yyleng,ce=this.lexer.yytext,q=this.lexer.yylineno,de=this.lexer.yylloc,Oe=Ne()}for(;!(he.toString()in j[pe]);){if(pe==0)throw new Error(H||"Parsing halted.");Me(1),pe=k[k.length-1]}De=Oe,Oe=he,pe=k[k.length-1],F=j[pe]&&j[pe][he],O=3}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+pe+", token: "+Oe);switch(F[0]){case 1:k.push(Oe),ae.push(this.lexer.yytext),J.push(this.lexer.yylloc),k.push(F[1]),Oe=null,De?(Oe=De,De=null):(ge=this.lexer.yyleng,ce=this.lexer.yytext,q=this.lexer.yylineno,de=this.lexer.yylloc,O>0&&O--);break;case 2:if(V=this.productions_[F[1]][1],N.$=ae[ae.length-V],N._$={first_line:J[J.length-(V||1)].first_line,last_line:J[J.length-1].last_line,first_column:J[J.length-(V||1)].first_column,last_column:J[J.length-1].last_column},U=this.performAction.call(N,ce,ge,q,this.yy,F[1],ae,J),typeof U!="undefined")return U;V&&(k=k.slice(0,-1*V*2),ae=ae.slice(0,-1*V),J=J.slice(0,-1*V)),k.push(this.productions_[F[1]][0]),ae.push(N.$),J.push(N._$),be=j[k[k.length-2]][k[k.length-1]],k.push(be);break;case 3:return!0}}return!0}},I=function(){var $={EOF:1,parseError:function(L,k){if(this.yy.parseError)this.yy.parseError(L,k);else throw new Error(L)},setInput:function(R){return this._input=R,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var R=this._input[0];this.yytext+=R,this.yyleng++,this.match+=R,this.matched+=R;var L=R.match(/\n/);return L&&this.yylineno++,this._input=this._input.slice(1),R},unput:function(R){return this._input=R+this._input,this},more:function(){return this._more=!0,this},pastInput:function(){var R=this.matched.substr(0,this.matched.length-this.match.length);return(R.length>20?"...":"")+R.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var R=this.match;return R.length<20&&(R+=this._input.substr(0,20-R.length)),(R.substr(0,20)+(R.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var R=this.pastInput(),L=new Array(R.length+1).join("-");return R+this.upcomingInput()+`
|
|
126
126
|
`+L+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var R,L,k;this._more||(this.yytext="",this.match="");for(var ae=this._currentRules(),J=0;J<ae.length;J++)if(L=this._input.match(this.rules[ae[J]]),L)return k=L[0].match(/\n.*/g),k&&(this.yylineno+=k.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:k?k[k.length-1].length-1:this.yylloc.last_column+L[0].length},this.yytext+=L[0],this.match+=L[0],this.matches=L,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(L[0].length),this.matched+=L[0],R=this.performAction.call(this,this.yy,this,ae[J],this.conditionStack[this.conditionStack.length-1]),R||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
127
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var L=this.next();return typeof L!="undefined"?L:this.lex()},begin:function(L){this.conditionStack.push(L)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(L){this.begin(L)}};return $.performAction=function(L,k,ae,J){switch(ae){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},$.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],$.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},$}();return b.lexer=I,b}(),e.exports&&(t=e.exports=d),t.Jed=d})()})(od,od.exports);var CC=od.exports;const RC=e=>fetch(e).then(t=>t.json());function fo(){const e=rt(
|
|
127
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var L=this.next();return typeof L!="undefined"?L:this.lex()},begin:function(L){this.conditionStack.push(L)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(L){this.begin(L)}};return $.performAction=function(L,k,ae,J){switch(ae){case 0:break;case 1:return 20;case 2:return 19;case 3:return 8;case 4:return 9;case 5:return 6;case 6:return 7;case 7:return 11;case 8:return 13;case 9:return 10;case 10:return 12;case 11:return 14;case 12:return 15;case 13:return 16;case 14:return 17;case 15:return 18;case 16:return 5;case 17:return"INVALID"}},$.rules=[/^\s+/,/^[0-9]+(\.[0-9]+)?\b/,/^n\b/,/^\|\|/,/^&&/,/^\?/,/^:/,/^<=/,/^>=/,/^</,/^>/,/^!=/,/^==/,/^%/,/^\(/,/^\)/,/^$/,/^./],$.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}},$}();return b.lexer=I,b}(),e.exports&&(t=e.exports=d),t.Jed=d})()})(od,od.exports);var CC=od.exports;const RC=e=>fetch(e).then(t=>t.json());function TC(e,t){return e.replace(/\{(\d+)\}/g,function(){return t[arguments[1]]})}function fo(){const e=rt(i=>i.userLanguage),{VITE_I8N_ENDPOINT:t}={VITE_TITLE_BAR_ENDPOINT:"/api/titlebar",VITE_I8N_ENDPOINT:"https://www.bookassist.com/rest/api/v1/i18n/jed/bookassist.i18n.HotelAdminRB/{0}",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0},{data:r,error:n}=EC(TC(t,[e]),RC);return{i18n:new CC({locale_data:r||{messages:{"":{}}}}),error:n}}function MC(){const{i18n:e}=fo(),{isOpen:t,isMobileOrTablet:r}=rt(o=>o.headerInfo),[n,{height:i}]=ps();return fa(!r||t,{from:{height:0},enter:{height:i},leave:{height:0},update:{height:i},config:dr($t({},Di.stiff),{clamp:!0})})((o,s)=>s&&G(Li.div,{className:"col-12 pt-lg-2 order-lg-1",id:"hd-extranet",style:r?dr($t({},o),{display:"block"}):{},children:We("a",{ref:n,className:"d-block ",href:"#",target:"_blank",children:[G(Dr.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"}),e.translate("Back to the Extranet").fetch()]})}))}var At={};/** @license React v17.0.2
|
|
128
128
|
* react-is.production.min.js
|
|
129
129
|
*
|
|
130
130
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
131
131
|
*
|
|
132
132
|
* This source code is licensed under the MIT license found in the
|
|
133
133
|
* LICENSE file in the root directory of this source tree.
|
|
134
|
-
*/var vu=60103,bu=60106,ho=60107,po=60108,go=60114,yo=60109,mo=60110,vo=60112,bo=60113,sd=60120,_o=60115,wo=60116,mv=60121,vv=60122,bv=60117,_v=60129,wv=60131;if(typeof Symbol=="function"&&Symbol.for){var Or=Symbol.for;vu=Or("react.element"),bu=Or("react.portal"),ho=Or("react.fragment"),po=Or("react.strict_mode"),go=Or("react.profiler"),yo=Or("react.provider"),mo=Or("react.context"),vo=Or("react.forward_ref"),bo=Or("react.suspense"),sd=Or("react.suspense_list"),_o=Or("react.memo"),wo=Or("react.lazy"),mv=Or("react.block"),vv=Or("react.server.block"),bv=Or("react.fundamental"),_v=Or("react.debug_trace_mode"),wv=Or("react.legacy_hidden")}function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vu:switch(e=e.type,e){case ho:case go:case po:case bo:case sd:return e;default:switch(e=e&&e.$$typeof,e){case mo:case vo:case wo:case _o:case yo:return e;default:return t}}case bu:return t}}}var MC=yo,FC=vu,$C=vo,NC=ho,DC=wo,jC=_o,LC=bu,zC=go,HC=po,UC=bo;At.ContextConsumer=mo,At.ContextProvider=MC,At.Element=FC,At.ForwardRef=$C,At.Fragment=NC,At.Lazy=DC,At.Memo=jC,At.Portal=LC,At.Profiler=zC,At.StrictMode=HC,At.Suspense=UC,At.isAsyncMode=function(){return!1},At.isConcurrentMode=function(){return!1},At.isContextConsumer=function(e){return $n(e)===mo},At.isContextProvider=function(e){return $n(e)===yo},At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vu},At.isForwardRef=function(e){return $n(e)===vo},At.isFragment=function(e){return $n(e)===ho},At.isLazy=function(e){return $n(e)===wo},At.isMemo=function(e){return $n(e)===_o},At.isPortal=function(e){return $n(e)===bu},At.isProfiler=function(e){return $n(e)===go},At.isStrictMode=function(e){return $n(e)===po},At.isSuspense=function(e){return $n(e)===bo},At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===go||e===_v||e===po||e===bo||e===sd||e===wv||typeof e=="object"&&e!==null&&(e.$$typeof===wo||e.$$typeof===_o||e.$$typeof===yo||e.$$typeof===mo||e.$$typeof===vo||e.$$typeof===bv||e.$$typeof===mv||e[0]===vv)},At.typeOf=$n;function Ov(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Sv(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ud(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Sv(r.overflowY,t)||Sv(r.overflowX,t)||function(n){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)}(e)}return!1}function _u(e,t,r,n,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=r||o>=t&&s>=r?a-e-n:o>t&&s<r||a<e&&s>r?o-t+i:0}function BC(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(ue){return ue!==o};if(!Ov(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],d=e;Ov(d)&&u(d);){if((d=d.parentElement)===f){p.push(d);break}d!=null&&d===document.body&&ud(d)&&!ud(document.documentElement)||d!=null&&ud(d,s)&&p.push(d)}for(var m=r.visualViewport?r.visualViewport.width:innerWidth,S=r.visualViewport?r.visualViewport.height:innerHeight,P=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),I=b.height,$=b.width,R=b.top,L=b.right,k=b.bottom,ae=b.left,J=i==="start"||i==="nearest"?R:i==="end"?k:R+I/2,j=a==="center"?ae+$/2:a==="end"?L:ae,ce=[],q=0;q<p.length;q++){var ge=p[q],O=ge.getBoundingClientRect(),he=O.height,le=O.width,de=O.top,Me=O.right,Ne=O.bottom,Oe=O.left;if(n==="if-needed"&&R>=0&&ae>=0&&k<=S&&L<=m&&R>=de&&k<=Ne&&ae>=Oe&&L<=Me)return ce;var De=getComputedStyle(ge),pe=parseInt(De.borderLeftWidth,10),F=parseInt(De.borderTopWidth,10),U=parseInt(De.borderRightWidth,10),N=parseInt(De.borderBottomWidth,10),Q=0,V=0,be="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-pe-U:0,fe="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-F-N:0;if(f===ge)Q=i==="start"?J:i==="end"?J-S:i==="nearest"?_u(E,E+S,S,F,N,E+J,E+J+I,I):J-S/2,V=a==="start"?j:a==="center"?j-m/2:a==="end"?j-m:_u(P,P+m,m,pe,U,P+j,P+j+$,$),Q=Math.max(0,Q+E),V=Math.max(0,V+P);else{Q=i==="start"?J-de-F:i==="end"?J-Ne+N+fe:i==="nearest"?_u(de,Ne,he,F,N+fe,J,J+I,I):J-(de+he/2)+fe/2,V=a==="start"?j-Oe-pe:a==="center"?j-(Oe+le/2)+be/2:a==="end"?j-Me+U+be:_u(Oe,Me,le,pe,U+be,j,j+$,$);var H=ge.scrollLeft,ee=ge.scrollTop;J+=ee-(Q=Math.max(0,Math.min(ee+Q,ge.scrollHeight-he+fe))),j+=H-(V=Math.max(0,Math.min(H+V,ge.scrollWidth-le+be)))}ce.push({el:ge,top:Q,left:V})}return ce}var kC=0;function Av(){}function WC(e,t){if(!!e){var r=BC(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scrollTop=a,i.scrollLeft=o})}}function Pv(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Iv(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function Ui(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return s&&s.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function Oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function KC(){return String(kC++)}function qC(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function cd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=xv(t,n)?t[n]:e[n],r},{})}function xv(e,t){return e[t]!==void 0}function GC(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function ld(e,t,r,n,i){if(i===void 0&&(i=!0),r===0)return-1;var a=r-1;(typeof t!="number"||t<0||t>=r)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=So(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function So(e,t,r,n,i){var a=n(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<r;o++)if(!n(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!n(s).hasAttribute("disabled"))return s;return i?e>0?So(1,0,r,n,!1):So(-1,r-1,r,n,!1):-1}function Ev(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(Pv(i,e,r)||n&&Pv(i,r.document.activeElement,r))})}var VC=Iv(function(e){Cv(e).textContent=""},500);function YC(e,t){var r=Cv(t);!e||(r.textContent=e,VC(t))}function Cv(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var QC=["isInitialMount","highlightedIndex","items","environment"],Rv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function JC(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){XC(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(Ct({type:i},a))}function XC(e,t,r,n){var i=t.props,a=t.type,o="on"+fd(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](Ct({type:a},n))}function ZC(e,t){return t.changes}function e3(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var t3=Iv(function(e,t){YC(e(),t)},200),r3=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?z.useLayoutEffect:z.useEffect;function n3(e){var t=e.id,r=t===void 0?"downshift-"+KC():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=z.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(f){return r+"-item-"+f},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return u.current}function i3(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function a3(e){return e?String(e):""}function fd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Tv(e){var t=z.useRef(e);return t.current=e,t}function o3(e,t,r){var n=z.useRef(),i=z.useRef(),a=z.useCallback(function(m,S){i.current=S,m=cd(m,S.props);var P=e(m,S),E=S.props.stateReducer(m,Ct({},S,{changes:P}));return E},[e]),o=z.useReducer(a,t),s=o[0],u=o[1],f=Tv(r),p=z.useCallback(function(m){return u(Ct({props:f.current},m))},[f]),d=i.current;return z.useEffect(function(){d&&n.current&&n.current!==s&&JC(d,cd(n.current,d.props),s),n.current=s},[s,r,d]),[s,p]}var Ao={itemToString:a3,stateReducer:ZC,getA11ySelectionMessage:e3,scrollIntoView:WC,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function ri(e,t,r){r===void 0&&(r=Rv);var n="default"+fd(t);return n in e?e[n]:r[t]}function wu(e,t,r){if(r===void 0&&(r=Rv),t in e)return e[t];var n="initial"+fd(t);return n in e?e[n]:ri(e,t,r)}function s3(e){var t=wu(e,"selectedItem"),r=wu(e,"isOpen"),n=wu(e,"highlightedIndex"),i=wu(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function Ou(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return i.length===0?-1:a!==void 0&&u===a?a:o!==void 0?o:s?r===0?i.indexOf(s):ld(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function u3(e,t,r,n){var i=z.useRef({isMouseDown:!1,isTouchMove:!1});return z.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(d){i.current.isMouseDown=!1,e&&!Ev(d.target,t.map(function(m){return m.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},f=function(d){e&&!i.current.isTouchMove&&!Ev(d.target,t.map(function(m){return m.current}),r,!1)&&n()};return r.addEventListener("mousedown",a),r.addEventListener("mouseup",o),r.addEventListener("touchstart",s),r.addEventListener("touchmove",u),r.addEventListener("touchend",f),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",u),r.removeEventListener("touchend",f)}},[e,r]),i}var c3=function(){return Av};function Mv(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Xi(r,QC);z.useEffect(function(){n||t3(function(){return e(Ct({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function l3(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=z.useRef(!0);return r3(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var f3=Av;function d3(e,t,r){var n=t.type,i=t.props,a;switch(n){case r.ItemMouseMove:a={highlightedIndex:t.index};break;case r.MenuMouseLeave:a={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ou(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ou(i,e,0)};break;case r.FunctionCloseMenu:a={isOpen:!1};break;case r.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case r.FunctionSetInputValue:a={inputValue:t.inputValue};break;case r.FunctionReset:a={highlightedIndex:ri(i,"highlightedIndex"),isOpen:ri(i,"isOpen"),selectedItem:ri(i,"selectedItem"),inputValue:ri(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},e,a)}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.func,se.string,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function h3(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}hs(hs({},Ao),{getA11yStatusMessage:h3});var dd=0,hd=1,pd=2,gd=3,yd=4,md=5,vd=6,Su=7,Fv=8,$v=9,bd=10,Nv=11,Dv=12,jv=13,Lv=14,zv=15,_d=16,Hv=17,Uv=18,wd=19,Bv=Object.freeze({__proto__:null,InputKeyDownArrowDown:dd,InputKeyDownArrowUp:hd,InputKeyDownEscape:pd,InputKeyDownHome:gd,InputKeyDownEnd:yd,InputKeyDownEnter:md,InputChange:vd,InputBlur:Su,MenuMouseLeave:Fv,ItemMouseMove:$v,ItemClick:bd,ToggleButtonClick:Nv,FunctionToggleMenu:Dv,FunctionOpenMenu:jv,FunctionCloseMenu:Lv,FunctionSetHighlightedIndex:zv,FunctionSelectItem:_d,FunctionSetInputValue:Hv,FunctionReset:Uv,ControlledPropUpdatedSelectedItem:wd});function p3(e){var t=s3(e),r=t.selectedItem,n=t.inputValue;return n===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(r)),Ct({},t,{inputValue:n})}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.string,se.string,se.string,se.func,se.string,se.string,se.func,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function g3(e,t,r){var n=z.useRef(),i=o3(e,t,r),a=i[0],o=i[1];return z.useEffect(function(){xv(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:wd,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[cd(a,r),o]}var y3=Ct({},Ao,{getA11yStatusMessage:qC,circularNavigation:!0});function m3(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case bd:a={isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case dd:e.isOpen?a={highlightedIndex:ld(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case hd:e.isOpen?a={highlightedIndex:ld(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case md:a=Ct({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case pd:a=Ct({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case gd:a={highlightedIndex:So(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case yd:a={highlightedIndex:So(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case Su:a=Ct({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case vd:a={isOpen:!0,highlightedIndex:ri(n,"highlightedIndex"),inputValue:t.inputValue};break;case _d:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case wd:a={inputValue:t.inputValue};break;default:return d3(e,t,Bv)}return Ct({},e,a)}var v3=["onMouseLeave","refKey","ref"],b3=["item","index","refKey","ref","onMouseMove","onClick","onPress"],_3=["onClick","onPress","refKey","ref"],w3=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],O3=["refKey","ref"];kv.stateChangeTypes=Bv;function kv(e){e===void 0&&(e={});var t=Ct({},y3,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,f=t.itemToString,p=p3(t),d=g3(m3,p,t),m=d[0],S=d[1],P=m.isOpen,E=m.highlightedIndex,b=m.selectedItem,I=m.inputValue,$=z.useRef(null),R=z.useRef({}),L=z.useRef(null),k=z.useRef(null),ae=z.useRef(null),J=z.useRef(!0),j=n3(t),ce=z.useRef(),q=Tv({state:m,props:t}),ge=z.useCallback(function(ee){return R.current[j.getItemId(ee)]},[j]);Mv(s,[P,E,I,i],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},m)),Mv(u,[b],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},m));var O=l3({menuElement:$.current,highlightedIndex:E,isOpen:P,itemRefs:R,scrollIntoView:a,getItemNodeFromIndex:ge});f3({isInitialMount:J.current,props:t,state:m}),z.useEffect(function(){var ee=r||n||P;ee&&L.current&&L.current.focus()},[]),z.useEffect(function(){J.current||(ce.current=i.length)});var he=u3(P,[ae,$,k],o,function(){S({type:Su,selectItem:!1})}),le=c3();z.useEffect(function(){J.current=!1},[]),z.useEffect(function(){P||(R.current={})},[P]);var de=z.useMemo(function(){return{ArrowDown:function(ue){ue.preventDefault(),S({type:dd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},ArrowUp:function(ue){ue.preventDefault(),S({type:hd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},Home:function(ue){!q.current.state.isOpen||(ue.preventDefault(),S({type:gd,getItemNodeFromIndex:ge}))},End:function(ue){!q.current.state.isOpen||(ue.preventDefault(),S({type:yd,getItemNodeFromIndex:ge}))},Escape:function(){var ue=q.current.state;(ue.isOpen||ue.inputValue||ue.selectedItem||ue.highlightedIndex>-1)&&S({type:pd})},Enter:function(ue){var oe=q.current.state;!oe.isOpen||oe.highlightedIndex<0||ue.which===229||(ue.preventDefault(),S({type:md,getItemNodeFromIndex:ge}))}}},[S,q,ge]),Me=z.useCallback(function(ee){return Ct({id:j.labelId,htmlFor:j.inputId},ee)},[j]),Ne=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onMouseLeave,te=ve.refKey,Le=te===void 0?"ref":te,Ie=ve.ref,Ee=Xi(ve,v3),He=ue===void 0?{}:ue;return He.suppressRefError,Ct((oe={},oe[Le]=Oo(Ie,function(qe){$.current=qe}),oe.id=j.menuId,oe.role="listbox",oe["aria-labelledby"]=j.labelId,oe.onMouseLeave=Ui(Pe,function(){S({type:Fv})}),oe),Ee)},[S,le,j]),Oe=z.useCallback(function(ee){var ue,oe,ve=ee===void 0?{}:ee,Pe=ve.item,te=ve.index,Le=ve.refKey,Ie=Le===void 0?"ref":Le,Ee=ve.ref,He=ve.onMouseMove,qe=ve.onClick;ve.onPress;var Ke=Xi(ve,b3),nt=q.current,ke=nt.props,Pt=nt.state,Je=i3(te,Pe,ke.items);if(Je<0)throw new Error("Pass either item or item index in getItemProps!");var Nt="onClick",Dt=qe,ht=function(){te!==Pt.highlightedIndex&&(O.current=!1,S({type:$v,index:te}))},Z=function(){S({type:bd,index:te}),L.current&&L.current.focus()};return Ct((ue={},ue[Ie]=Oo(Ee,function(Ae){Ae&&(R.current[j.getItemId(Je)]=Ae)}),ue.role="option",ue["aria-selected"]=""+(Je===Pt.highlightedIndex),ue.id=j.getItemId(Je),ue),!Ke.disabled&&(oe={onMouseMove:Ui(He,ht)},oe[Nt]=Ui(Dt,Z),oe),Ke)},[S,q,O,j]),De=z.useCallback(function(ee){var ue,oe=ee===void 0?{}:ee,ve=oe.onClick;oe.onPress;var Pe=oe.refKey,te=Pe===void 0?"ref":Pe,Le=oe.ref,Ie=Xi(oe,_3),Ee=function(){S({type:Nv}),!q.current.state.isOpen&&L.current&&L.current.focus()};return Ct((ue={},ue[te]=Oo(Le,function(He){k.current=He}),ue.id=j.toggleButtonId,ue.tabIndex=-1,ue),!Ie.disabled&&Ct({},{onClick:Ui(ve,Ee)}),Ie)},[S,q,j]),pe=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onKeyDown,te=ve.onChange,Le=ve.onInput,Ie=ve.onBlur;ve.onChangeText;var Ee=ve.refKey,He=Ee===void 0?"ref":Ee,qe=ve.ref,Ke=Xi(ve,w3),nt=ue===void 0?{}:ue;nt.suppressRefError;var ke=q.current.state,Pt=function(Fe){var pt=GC(Fe);pt&&de[pt]&&de[pt](Fe)},Je=function(Fe){S({type:vd,inputValue:Fe.target.value})},Nt=function(){ke.isOpen&&!he.current.isMouseDown&&S({type:Su,selectItem:!0})},Dt="onChange",ht={};if(!Ke.disabled){var Z;ht=(Z={},Z[Dt]=Ui(te,Le,Je),Z.onKeyDown=Ui(Pe,Pt),Z.onBlur=Ui(Ie,Nt),Z)}return Ct((oe={},oe[He]=Oo(qe,function(Ae){L.current=Ae}),oe.id=j.inputId,oe["aria-autocomplete"]="list",oe["aria-controls"]=j.menuId,oe),ke.isOpen&&ke.highlightedIndex>-1&&{"aria-activedescendant":j.getItemId(ke.highlightedIndex)},{"aria-labelledby":j.labelId,autoComplete:"off",value:ke.inputValue},ht,Ke)},[S,de,q,he,le,j]),F=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.refKey,te=Pe===void 0?"ref":Pe,Le=ve.ref,Ie=Xi(ve,O3),Ee=ue===void 0?{}:ue;return Ee.suppressRefError,Ct((oe={},oe[te]=Oo(Le,function(He){ae.current=He}),oe.role="combobox",oe["aria-haspopup"]="listbox",oe["aria-owns"]=j.menuId,oe["aria-expanded"]=q.current.state.isOpen,oe),Ie)},[q,le,j]),U=z.useCallback(function(){S({type:Dv})},[S]),N=z.useCallback(function(){S({type:Lv})},[S]),Q=z.useCallback(function(){S({type:jv})},[S]),V=z.useCallback(function(ee){S({type:zv,highlightedIndex:ee})},[S]),be=z.useCallback(function(ee){S({type:_d,selectedItem:ee})},[S]),fe=z.useCallback(function(ee){S({type:Hv,inputValue:ee})},[S]),H=z.useCallback(function(){S({type:Uv})},[S]);return{getItemProps:Oe,getLabelProps:Me,getMenuProps:Ne,getInputProps:pe,getComboboxProps:F,getToggleButtonProps:De,toggleMenu:U,openMenu:Q,closeMenu:N,setHighlightedIndex:V,setInputValue:fe,selectItem:be,reset:H,highlightedIndex:E,isOpen:P,selectedItem:b,inputValue:I}}function S3(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}se.array,se.array,se.array,se.func,se.func,se.func,se.number,se.number,se.number,se.func,se.func,se.string,se.string,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})}),Ao.itemToString,Ao.stateReducer,Ao.environment;function A3(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,[o,s]=z.useState([]),{subMenus:u,isMobileOrTablet:f}=rt(R=>R.headerInfo),p=ii(),d=u.find(R=>R===a),m=R=>R?R[0]:"",{isOpen:S,getMenuProps:P,getInputProps:E,getComboboxProps:b,highlightedIndex:I,getItemProps:$}=kv({items:o,itemToString:m,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0],onSelectedItemChange:({selectedItem:R})=>{const L=R[0],[k,ae]=R[1].split("_").map(j=>+j),J={hotelId:k,guideId:ae,name:L};Fr.unstable_batchedUpdates(()=>{p(ry(R)),p(Qg(J)),p(ll(a))}),typeof i=="function"&&i(J)},onInputValueChange:({inputValue:R})=>{s(t.filter(L=>m(L).toLowerCase().startsWith(R.toLowerCase())))}});return G("ul",{className:Qn("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":d}),style:f?{top:50}:{},children:G("li",{children:We("div",{id:"hd-property-search",children:[G("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),We("div",dr($t({id:"hd-property-input-container"},b()),{children:[G("input",$t({type:"text",className:"form-control",id:"hd-property-input",placeholder:"hotel name"},E())),G("ul",dr($t({style:{listStyle:"none",marginBottom:0}},P()),{children:S&&o.map((R,L)=>G("li",dr($t({style:I===L?{backgroundColor:"#bde4ff"}:{}},$({hotel:R,index:L})),{children:R[0]}),R[1]))})),G(Dr.Search,{className:"hd-icon hd-icon-search"}),G(Dr.Close,{className:"hd-icon hd-icon-close",onClick:()=>{console.log("clicked")}})]}))]})})})}function P3(e){const{handleHotelChange:t}=e,[r,n]=z.useState("Select property"),i=rt(b=>b.hotelInfo),a=rt(b=>b.userInfo),{isOpen:o,isMobileOrTablet:s}=rt(b=>b.headerInfo),{propertySelector:u}=rt(b=>b.titleBar),{items:f,defaultHotel:p,selectedHotel:d}=rt(b=>b.hotels),[m,{height:S}]=ps(),P=fa(!s||o,{from:{height:0},enter:{height:S},leave:{height:0},update:{height:S},config:dr($t({},Di.stiff),{clamp:!0})}),E=ii();return z.useEffect(()=>{(async()=>{if(u){let{type:b,hotels:I}=u;b==="fetch"&&(I=await(await fetch(I)).json());const $=I.find(R=>{const[L,k]=R[1].split("_").map(ae=>+ae);return i.hotelId===L&&i.guideId===k||a.hotelId===L&&a.guideId===k});Fr.unstable_batchedUpdates(()=>{E(EI(I)),E(CI($)),E(ry($))})}})()},[u]),P((b,I)=>I&&G(Li.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:s?dr($t({},b),{display:"block"}):{},children:G("ul",{ref:m,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:G("li",{className:"col-lg-auto align-items-center",onClick:()=>{E(ra(r))},children:We("div",{className:"row py-lg-0 align-items-center",children:[We("div",{className:"col col-lg-auto py-2 py-lg-0",id:"hd-group-property-name",children:[G("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:"hd-group-name",children:"TESTING Hotels"}),We("div",{className:"row me-0 d-lg-none align-items-center",children:[We("div",{className:"col",children:[G("small",{className:"pt-2",children:r}),G("span",{className:"d-block",id:"hd-property-name",children:i.name||p&&p[0]})]}),G("div",{className:"col-auto p-2 d-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),f.length>0&&G(A3,{hotels:f,defaultHotel:p,selectedHotel:d,handleHotelChange:t,subMenuItem:r})]})})})}))}function I3(){const{i18n:e}=fo(),{help:t}=rt(i=>i.titleBar);if(!t)return null;const{label:r,href:n}=t;return G("li",{className:"col-lg-auto p-0",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"ps-lg-3 pe-3 py-2 d-block",title:"Help",href:n,target:"_blank",rel:"noreferrer",children:e.translate(r).fetch()})})})})}function x3(){const{i18n:e}=fo(),{subMenus:t,isMobileOrTablet:r}=rt(f=>f.headerInfo),{user:n}=rt(f=>f.titleBar),{username:i}=rt(f=>f.userInfo),a=ii();if(!n)return null;const{label:o,children:s}=n,u=t.find(f=>f===o);return We("li",{className:"col-lg-auto p-0",onClick:()=>{a(ra(o))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:o}),We("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[G("span",{className:"d-none d-lg-inline",children:G(Dr.User,{className:"hd-icon hd-icon-user"})}),G("span",{className:"ps-lg-2",children:i}),G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":u}),style:r?{top:50}:{},children:s.map(({href:f,label:p})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:f,target:"_blank",rel:"noreferrer",children:e.translate(p).fetch()})})})}))})]})}function E3(e){const{handleLanguageChange:t}=e,[r,n]=z.useState(),[i,a]=z.useState([]),o=rt(S=>S.userLanguage),{languageSelector:s}=rt(S=>S.titleBar),{subMenus:u,isMobileOrTablet:f}=rt(S=>S.headerInfo),p=ii();if(z.useEffect(()=>{if(s){const{children:S}=s;if(Array.isArray(S)){const P=S.map(({code:E,label:b})=>{const I=new Intl.DisplayNames([E],{type:"language"});return{code:E,name:b||I.of(E)}});P.length>0&&a(P)}}},[s]),z.useEffect(()=>{var S;if(o){const P=(S=i.find(({code:E})=>E===o))==null?void 0:S.name;P&&n(P)}},[o,i]),!s)return null;const{label:d}=s,m=u.find(S=>S===d);return We("li",{className:"col-lg-auto p-0",onClick:()=>{p(ra(d))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:d}),We("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":m}),style:f?{top:50}:{},children:i.map(({code:S,name:P})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:E=>{E.preventDefault(),E.stopPropagation(),p(ey(S)),typeof t=="function"&&t(S),p(ll(d))},children:P},S)})})}))})]})}function C3(){const[e,t]=z.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),{items:a}=rt(u=>u.menuItems),o=fa(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Di.stiff}),s=ii();return z.useEffect(()=>{var f;const u=((f=a.find(p=>p.id===n[n.length-1]))==null?void 0:f.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,f)=>f&&We(Li.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[G("span",{id:"hd-submenu-back",onClick:()=>{s(ll(n[n.length-1]))},children:G(Dr.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),G("span",{className:"ms-3",id:"hd-submenu-title",children:e})]}))}function R3(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),[a,{height:o}]=ps(),s=fa(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return G("div",{className:"container-xxl",children:We("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[G(C3,{}),G(Xx,{}),G(ZE,{}),G(tC,{}),G(TC,{}),G(P3,{handleHotelChange:t}),s((u,f)=>f&&G(Li.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?dr($t({},u),{display:"block"}):{},children:G("nav",{ref:a,id:"hd-top-nav",children:We("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[G(I3,{}),G(E3,{handleLanguageChange:r}),G(x3,{})]})})}))]})})}let T3=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function M3(e){var L;const{item:t,level:r,hasChildren:n,children:i}=e,{href:a,label:o,id:s,group:u,premium:f={}}=t,{value:p=!1,locked:d=!1}=f,{i18n:m}=fo(),{isOpen:S,subMenus:P,isMobileOrTablet:E}=rt(k=>k.headerInfo),{items:b}=rt(k=>k.menuItems),I=S&&P.find(k=>k===s),$=!!u&&((L=b.find(k=>k.group===u))==null?void 0:L.id)===s,R=ii();if(p&&d)return We("li",{className:"hd-nav-has-children",onClick:()=>{R(ra(s))},children:[G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:We("span",{className:"px-lg-3 py-2 d-block",children:[m.translate("label").fetch(),G("span",{className:"float-end",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})})]})})}),G("ul",{className:Qn("py-3","list-unstyled",{"hd-nav-second-level":r===1,"hd-nav-third-level":r===2,"hd-submenu-opened":I}),children:G("li",{className:"hd-premium",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:We("div",{className:"col p-lg-3",children:[G("span",{className:"d-lg-none mb-3",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})}),We("p",{children:["This premium functionality has not been activated.",G("br",{}),"Please contact us to activate this feature."]}),G("a",{className:"btn btn-sm btn-outline-primary",href:"#",target:"_blank",children:"Learn more"})]})})})})]});if(r===1)return We("li",{className:"col-lg-auto p-0",onClick:()=>{n&&R(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:G("span",{className:"ps-lg-3 pe-3 py-2",children:m.translate(o).fetch()})}),n&&G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),n&&G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":I}),style:E?{top:50}:{},children:i})]});if(r===2)return We(es,{children:[$&&G("div",{className:"row m-0 pt-3 hd-nav-section",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("div",{className:"px-lg-3 d-block text-uppercase",children:m.translate(u).fetch()})})}),We("li",{onClick:()=>{n&&R(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:a?G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{R(cl(s))},children:m.translate(o).fetch()}):G("span",{className:"px-lg-3 py-2 d-block",children:m.translate(o).fetch()})}),n&&G("div",{className:"col-auto px-0",children:G("span",{className:"p-2 d-lg-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})})]}),n&&G("ul",{className:Qn("ps-3","ps-lg-0","list-unstyled","hd-nav-third-level",{"hd-submenu-opened":I}),children:i})]})]});if(r===3)return G("li",{children:G("div",{className:"row m-0 py-1 py-lg-0 align-items-center",children:G("div",{className:"col p-lg-0",children:G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{R(cl(s))},children:m.translate(o).fetch()})})})})}const Wv=T3();function Kv(e){const{menuItems:t,parentId:r=Wv,level:n=1}=e,i=t.filter(a=>(a.parentId||Wv)===r);return i.length?i.map(a=>{const o=!!t.find(p=>p.parentId===a.id),{premium:s={}}=a,{value:u=!1,locked:f=!1}=s;return G(M3,{item:a,level:n,hasChildren:o,premium:u,locked:f,children:G(Kv,{menuItems:t,parentId:a.id,level:n+1})},a.id)}):null}function F3(){const{items:e}=rt(f=>f.menuItems),{isOpen:t,isMobileOrTablet:r,subMenus:n}=rt(f=>f.headerInfo),i=ii(),[a,{height:o}]=ps(),s=z.useRef(null),u=fa(!r||t,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return z.useEffect(()=>{if(e.length>0){const f=new URL(window.location.href),{hash:p}=f,d=e.find(m=>m.href===p);d&&i(cl(d.id))}},[e]),z.useEffect(()=>{s&&n.length>0&&(s.current.scrollTop=0)},[n.length]),u((f,p)=>p&&G(Li.div,{className:"container-xxl",id:"hd-nav-container",style:r?dr($t({},f),{display:"block"}):{},children:G("nav",{className:"hd-nav",ref:a,children:G("ul",{ref:s,className:"row list-unstyled mb-0 hd-nav-first-level",children:G(Kv,{menuItems:e})})})}))}function $3(){const[e,t]=z.useState([]),{items:r,selectedItem:n}=rt(a=>a.menuItems),{i18n:i}=fo();return z.useEffect(()=>{if(n){const a=[];let o=r.find(s=>s.id===n);do a.push(o),o=r.find(s=>s.id===o.parentId);while(o);t(a.reverse())}},[n]),e.length===0?null:G("div",{className:"container-xxl mt-3 mt-lg-5",children:G("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:We("ol",{className:"breadcrumb mb-0",children:[G("li",{className:"breadcrumb-item active",children:i.translate(e[0].label).fetch()}),e.length>=2&&G("li",{className:"breadcrumb-item active",children:i.translate(e[1].label).fetch()}),e.length===3&&G("li",{className:"breadcrumb-item active",children:i.translate(e[2].label).fetch()})]})})})}function N3(e){const{hotelInfo:t,userInfo:r,userLanguage:n}=e,{isOpen:i,subMenus:a,isMobileOrTablet:o}=rt(p=>p.headerInfo),s=z.useRef(null),{width:u}=$P(),f=ii();return z.useEffect(()=>{n&&f(ey(n))},[]),z.useEffect(()=>{u&&f(SI(u))},[u]),z.useEffect(()=>{fetch("/hotel_admin/json/title_bar.jsp").then(p=>p.json()).then(p=>{f(gI(p))})},[]),z.useEffect(()=>{fetch("/api/menu").then(p=>p.json()).then(p=>{f(hI(p))})},[]),z.useEffect(()=>{fetch("/api/notifications").then(p=>p.json()).then(p=>{f(mI(p))})},[]),z.useEffect(()=>{t&&f(Qg(t))},[]),z.useEffect(()=>{r&&f(_I(r))},[]),z.useEffect(()=>{s&&a.length>0&&(s.current.scrollTop=0)},[a.length]),We(es,{children:[We("div",{ref:s,id:"hd-container",className:Qn("container-fluid","px-0 fixed-top",{"hd-menu-opened":i,"hd-overflow-hidden":a.length>0}),style:$t({},o&&!i&&{overflow:"hidden"}),children:[G(R3,$t({},e)),G(F3,{})]}),G($3,{})]})}const qv=FI(N3);function D3(e,t){Fr.render(G(qv,$t({},t)),e)}DA(),rr.Header=qv,rr.renderHeader=D3,Object.defineProperties(rr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
134
|
+
*/var vu=60103,bu=60106,ho=60107,po=60108,go=60114,yo=60109,mo=60110,vo=60112,bo=60113,sd=60120,_o=60115,wo=60116,mv=60121,vv=60122,bv=60117,_v=60129,wv=60131;if(typeof Symbol=="function"&&Symbol.for){var Or=Symbol.for;vu=Or("react.element"),bu=Or("react.portal"),ho=Or("react.fragment"),po=Or("react.strict_mode"),go=Or("react.profiler"),yo=Or("react.provider"),mo=Or("react.context"),vo=Or("react.forward_ref"),bo=Or("react.suspense"),sd=Or("react.suspense_list"),_o=Or("react.memo"),wo=Or("react.lazy"),mv=Or("react.block"),vv=Or("react.server.block"),bv=Or("react.fundamental"),_v=Or("react.debug_trace_mode"),wv=Or("react.legacy_hidden")}function $n(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case vu:switch(e=e.type,e){case ho:case go:case po:case bo:case sd:return e;default:switch(e=e&&e.$$typeof,e){case mo:case vo:case wo:case _o:case yo:return e;default:return t}}case bu:return t}}}var FC=yo,$C=vu,NC=vo,DC=ho,jC=wo,LC=_o,zC=bu,HC=go,UC=po,BC=bo;At.ContextConsumer=mo,At.ContextProvider=FC,At.Element=$C,At.ForwardRef=NC,At.Fragment=DC,At.Lazy=jC,At.Memo=LC,At.Portal=zC,At.Profiler=HC,At.StrictMode=UC,At.Suspense=BC,At.isAsyncMode=function(){return!1},At.isConcurrentMode=function(){return!1},At.isContextConsumer=function(e){return $n(e)===mo},At.isContextProvider=function(e){return $n(e)===yo},At.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===vu},At.isForwardRef=function(e){return $n(e)===vo},At.isFragment=function(e){return $n(e)===ho},At.isLazy=function(e){return $n(e)===wo},At.isMemo=function(e){return $n(e)===_o},At.isPortal=function(e){return $n(e)===bu},At.isProfiler=function(e){return $n(e)===go},At.isStrictMode=function(e){return $n(e)===po},At.isSuspense=function(e){return $n(e)===bo},At.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ho||e===go||e===_v||e===po||e===bo||e===sd||e===wv||typeof e=="object"&&e!==null&&(e.$$typeof===wo||e.$$typeof===_o||e.$$typeof===yo||e.$$typeof===mo||e.$$typeof===vo||e.$$typeof===bv||e.$$typeof===mv||e[0]===vv)},At.typeOf=$n;function Ov(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Sv(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ud(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return Sv(r.overflowY,t)||Sv(r.overflowX,t)||function(n){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)}(e)}return!1}function _u(e,t,r,n,i,a,o,s){return a<e&&o>t||a>e&&o<t?0:a<=e&&s<=r||o>=t&&s>=r?a-e-n:o>t&&s<r||a<e&&s>r?o-t+i:0}function kC(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,u=typeof o=="function"?o:function(ue){return ue!==o};if(!Ov(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],d=e;Ov(d)&&u(d);){if((d=d.parentElement)===f){p.push(d);break}d!=null&&d===document.body&&ud(d)&&!ud(document.documentElement)||d!=null&&ud(d,s)&&p.push(d)}for(var m=r.visualViewport?r.visualViewport.width:innerWidth,S=r.visualViewport?r.visualViewport.height:innerHeight,P=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),I=b.height,$=b.width,R=b.top,L=b.right,k=b.bottom,ae=b.left,J=i==="start"||i==="nearest"?R:i==="end"?k:R+I/2,j=a==="center"?ae+$/2:a==="end"?L:ae,ce=[],q=0;q<p.length;q++){var ge=p[q],O=ge.getBoundingClientRect(),he=O.height,le=O.width,de=O.top,Me=O.right,Ne=O.bottom,Oe=O.left;if(n==="if-needed"&&R>=0&&ae>=0&&k<=S&&L<=m&&R>=de&&k<=Ne&&ae>=Oe&&L<=Me)return ce;var De=getComputedStyle(ge),pe=parseInt(De.borderLeftWidth,10),F=parseInt(De.borderTopWidth,10),U=parseInt(De.borderRightWidth,10),N=parseInt(De.borderBottomWidth,10),Q=0,V=0,be="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-pe-U:0,fe="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-F-N:0;if(f===ge)Q=i==="start"?J:i==="end"?J-S:i==="nearest"?_u(E,E+S,S,F,N,E+J,E+J+I,I):J-S/2,V=a==="start"?j:a==="center"?j-m/2:a==="end"?j-m:_u(P,P+m,m,pe,U,P+j,P+j+$,$),Q=Math.max(0,Q+E),V=Math.max(0,V+P);else{Q=i==="start"?J-de-F:i==="end"?J-Ne+N+fe:i==="nearest"?_u(de,Ne,he,F,N+fe,J,J+I,I):J-(de+he/2)+fe/2,V=a==="start"?j-Oe-pe:a==="center"?j-(Oe+le/2)+be/2:a==="end"?j-Me+U+be:_u(Oe,Me,le,pe,U+be,j,j+$,$);var H=ge.scrollLeft,ee=ge.scrollTop;J+=ee-(Q=Math.max(0,Math.min(ee+Q,ge.scrollHeight-he+fe))),j+=H-(V=Math.max(0,Math.min(H+V,ge.scrollWidth-le+be)))}ce.push({el:ge,top:Q,left:V})}return ce}var WC=0;function Av(){}function KC(e,t){if(!!e){var r=kC(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});r.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scrollTop=a,i.scrollLeft=o})}}function Pv(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Iv(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];n(),r=setTimeout(function(){r=null,e.apply(void 0,o)},t)}return i.cancel=n,i}function Ui(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(s){return s&&s.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function Oo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function qC(){return String(WC++)}function GC(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function cd(e,t){return Object.keys(e).reduce(function(r,n){return r[n]=xv(t,n)?t[n]:e[n],r},{})}function xv(e,t){return e[t]!==void 0}function VC(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function ld(e,t,r,n,i){if(i===void 0&&(i=!0),r===0)return-1;var a=r-1;(typeof t!="number"||t<0||t>=r)&&(t=e>0?-1:a+1);var o=t+e;o<0?o=i?a:0:o>a&&(o=i?0:a);var s=So(e,o,r,n,i);return s===-1?t>=r?-1:t:s}function So(e,t,r,n,i){var a=n(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<r;o++)if(!n(o).hasAttribute("disabled"))return o}else for(var s=t-1;s>=0;s--)if(!n(s).hasAttribute("disabled"))return s;return i?e>0?So(1,0,r,n,!1):So(-1,r-1,r,n,!1):-1}function Ev(e,t,r,n){return n===void 0&&(n=!0),t.some(function(i){return i&&(Pv(i,e,r)||n&&Pv(i,r.document.activeElement,r))})}var YC=Iv(function(e){Cv(e).textContent=""},500);function QC(e,t){var r=Cv(t);!e||(r.textContent=e,YC(t))}function Cv(e){e===void 0&&(e=document);var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var JC=["isInitialMount","highlightedIndex","items","environment"],Rv={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function XC(e,t,r){var n=e.props,i=e.type,a={};Object.keys(t).forEach(function(o){ZC(o,e,t,r),r[o]!==t[o]&&(a[o]=r[o])}),n.onStateChange&&Object.keys(a).length&&n.onStateChange(Ct({type:i},a))}function ZC(e,t,r,n){var i=t.props,a=t.type,o="on"+fd(e)+"Change";i[o]&&n[e]!==void 0&&n[e]!==r[e]&&i[o](Ct({type:a},n))}function e3(e,t){return t.changes}function t3(e){var t=e.selectedItem,r=e.itemToString;return t?r(t)+" has been selected.":""}var r3=Iv(function(e,t){QC(e(),t)},200),n3=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?z.useLayoutEffect:z.useEffect;function i3(e){var t=e.id,r=t===void 0?"downshift-"+qC():t,n=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId,u=z.useRef({labelId:n||r+"-label",menuId:i||r+"-menu",getItemId:a||function(f){return r+"-item-"+f},toggleButtonId:o||r+"-toggle-button",inputId:s||r+"-input"});return u.current}function a3(e,t,r){return e!==void 0?e:r.length===0?-1:r.indexOf(t)}function o3(e){return e?String(e):""}function fd(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Tv(e){var t=z.useRef(e);return t.current=e,t}function s3(e,t,r){var n=z.useRef(),i=z.useRef(),a=z.useCallback(function(m,S){i.current=S,m=cd(m,S.props);var P=e(m,S),E=S.props.stateReducer(m,Ct({},S,{changes:P}));return E},[e]),o=z.useReducer(a,t),s=o[0],u=o[1],f=Tv(r),p=z.useCallback(function(m){return u(Ct({props:f.current},m))},[f]),d=i.current;return z.useEffect(function(){d&&n.current&&n.current!==s&&XC(d,cd(n.current,d.props),s),n.current=s},[s,r,d]),[s,p]}var Ao={itemToString:o3,stateReducer:e3,getA11ySelectionMessage:t3,scrollIntoView:KC,circularNavigation:!1,environment:typeof window=="undefined"?{}:window};function ri(e,t,r){r===void 0&&(r=Rv);var n="default"+fd(t);return n in e?e[n]:r[t]}function wu(e,t,r){if(r===void 0&&(r=Rv),t in e)return e[t];var n="initial"+fd(t);return n in e?e[n]:ri(e,t,r)}function u3(e){var t=wu(e,"selectedItem"),r=wu(e,"isOpen"),n=wu(e,"highlightedIndex"),i=wu(e,"inputValue");return{highlightedIndex:n<0&&t&&r?e.items.indexOf(t):n,isOpen:r,selectedItem:t,inputValue:i}}function Ou(e,t,r,n){var i=e.items,a=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,s=t.selectedItem,u=t.highlightedIndex;return i.length===0?-1:a!==void 0&&u===a?a:o!==void 0?o:s?r===0?i.indexOf(s):ld(r,i.indexOf(s),i.length,n,!1):r===0?-1:r<0?i.length-1:0}function c3(e,t,r,n){var i=z.useRef({isMouseDown:!1,isTouchMove:!1});return z.useEffect(function(){var a=function(){i.current.isMouseDown=!0},o=function(d){i.current.isMouseDown=!1,e&&!Ev(d.target,t.map(function(m){return m.current}),r)&&n()},s=function(){i.current.isTouchMove=!1},u=function(){i.current.isTouchMove=!0},f=function(d){e&&!i.current.isTouchMove&&!Ev(d.target,t.map(function(m){return m.current}),r,!1)&&n()};return r.addEventListener("mousedown",a),r.addEventListener("mouseup",o),r.addEventListener("touchstart",s),r.addEventListener("touchmove",u),r.addEventListener("touchend",f),function(){r.removeEventListener("mousedown",a),r.removeEventListener("mouseup",o),r.removeEventListener("touchstart",s),r.removeEventListener("touchmove",u),r.removeEventListener("touchend",f)}},[e,r]),i}var l3=function(){return Av};function Mv(e,t,r){var n=r.isInitialMount,i=r.highlightedIndex,a=r.items,o=r.environment,s=Xi(r,JC);z.useEffect(function(){n||r3(function(){return e(Ct({highlightedIndex:i,highlightedItem:a[i],resultCount:a.length},s))},o.document)},t)}function f3(e){var t=e.highlightedIndex,r=e.isOpen,n=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=z.useRef(!0);return n3(function(){t<0||!r||!Object.keys(n.current).length||(s.current===!1?s.current=!0:o(i(t),a))},[t]),s}var d3=Av;function h3(e,t,r){var n=t.type,i=t.props,a;switch(n){case r.ItemMouseMove:a={highlightedIndex:t.index};break;case r.MenuMouseLeave:a={highlightedIndex:-1};break;case r.ToggleButtonClick:case r.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Ou(i,e,0)};break;case r.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:Ou(i,e,0)};break;case r.FunctionCloseMenu:a={isOpen:!1};break;case r.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case r.FunctionSetInputValue:a={inputValue:t.inputValue};break;case r.FunctionReset:a={highlightedIndex:ri(i,"highlightedIndex"),isOpen:ri(i,"isOpen"),selectedItem:ri(i,"selectedItem"),inputValue:ri(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Ct({},e,a)}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.func,se.string,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function p3(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.":"":"No results are available.":""}hs(hs({},Ao),{getA11yStatusMessage:p3});var dd=0,hd=1,pd=2,gd=3,yd=4,md=5,vd=6,Su=7,Fv=8,$v=9,bd=10,Nv=11,Dv=12,jv=13,Lv=14,zv=15,_d=16,Hv=17,Uv=18,wd=19,Bv=Object.freeze({__proto__:null,InputKeyDownArrowDown:dd,InputKeyDownArrowUp:hd,InputKeyDownEscape:pd,InputKeyDownHome:gd,InputKeyDownEnd:yd,InputKeyDownEnter:md,InputChange:vd,InputBlur:Su,MenuMouseLeave:Fv,ItemMouseMove:$v,ItemClick:bd,ToggleButtonClick:Nv,FunctionToggleMenu:Dv,FunctionOpenMenu:jv,FunctionCloseMenu:Lv,FunctionSetHighlightedIndex:zv,FunctionSelectItem:_d,FunctionSetInputValue:Hv,FunctionReset:Uv,ControlledPropUpdatedSelectedItem:wd});function g3(e){var t=u3(e),r=t.selectedItem,n=t.inputValue;return n===""&&r&&e.defaultInputValue===void 0&&e.initialInputValue===void 0&&e.inputValue===void 0&&(n=e.itemToString(r)),Ct({},t,{inputValue:n})}se.array.isRequired,se.func,se.func,se.func,se.bool,se.number,se.number,se.number,se.bool,se.bool,se.bool,se.any,se.any,se.any,se.string,se.string,se.string,se.string,se.string,se.string,se.func,se.string,se.string,se.func,se.func,se.func,se.func,se.func,se.func,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})});function y3(e,t,r){var n=z.useRef(),i=s3(e,t,r),a=i[0],o=i[1];return z.useEffect(function(){xv(r,"selectedItem")&&(n.current!==r.selectedItem&&o({type:wd,inputValue:r.itemToString(r.selectedItem)}),n.current=a.selectedItem===n.current?r.selectedItem:a.selectedItem)}),[cd(a,r),o]}var m3=Ct({},Ao,{getA11yStatusMessage:GC,circularNavigation:!0});function v3(e,t){var r=t.type,n=t.props,i=t.shiftKey,a;switch(r){case bd:a={isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),selectedItem:n.items[t.index],inputValue:n.itemToString(n.items[t.index])};break;case dd:e.isOpen?a={highlightedIndex:ld(i?5:1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case hd:e.isOpen?a={highlightedIndex:ld(i?-5:-1,e.highlightedIndex,n.items.length,t.getItemNodeFromIndex,n.circularNavigation)}:a={highlightedIndex:Ou(n,e,-1,t.getItemNodeFromIndex),isOpen:n.items.length>=0};break;case md:a=Ct({},e.isOpen&&e.highlightedIndex>=0&&{selectedItem:n.items[e.highlightedIndex],isOpen:ri(n,"isOpen"),highlightedIndex:ri(n,"highlightedIndex"),inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case pd:a=Ct({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case gd:a={highlightedIndex:So(1,0,n.items.length,t.getItemNodeFromIndex,!1)};break;case yd:a={highlightedIndex:So(-1,n.items.length-1,n.items.length,t.getItemNodeFromIndex,!1)};break;case Su:a=Ct({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&t.selectItem&&{selectedItem:n.items[e.highlightedIndex],inputValue:n.itemToString(n.items[e.highlightedIndex])});break;case vd:a={isOpen:!0,highlightedIndex:ri(n,"highlightedIndex"),inputValue:t.inputValue};break;case _d:a={selectedItem:t.selectedItem,inputValue:n.itemToString(t.selectedItem)};break;case wd:a={inputValue:t.inputValue};break;default:return h3(e,t,Bv)}return Ct({},e,a)}var b3=["onMouseLeave","refKey","ref"],_3=["item","index","refKey","ref","onMouseMove","onClick","onPress"],w3=["onClick","onPress","refKey","ref"],O3=["onKeyDown","onChange","onInput","onBlur","onChangeText","refKey","ref"],S3=["refKey","ref"];kv.stateChangeTypes=Bv;function kv(e){e===void 0&&(e={});var t=Ct({},m3,e),r=t.initialIsOpen,n=t.defaultIsOpen,i=t.items,a=t.scrollIntoView,o=t.environment,s=t.getA11yStatusMessage,u=t.getA11ySelectionMessage,f=t.itemToString,p=g3(t),d=y3(v3,p,t),m=d[0],S=d[1],P=m.isOpen,E=m.highlightedIndex,b=m.selectedItem,I=m.inputValue,$=z.useRef(null),R=z.useRef({}),L=z.useRef(null),k=z.useRef(null),ae=z.useRef(null),J=z.useRef(!0),j=i3(t),ce=z.useRef(),q=Tv({state:m,props:t}),ge=z.useCallback(function(ee){return R.current[j.getItemId(ee)]},[j]);Mv(s,[P,E,I,i],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},m)),Mv(u,[b],Ct({isInitialMount:J.current,previousResultCount:ce.current,items:i,environment:o,itemToString:f},m));var O=f3({menuElement:$.current,highlightedIndex:E,isOpen:P,itemRefs:R,scrollIntoView:a,getItemNodeFromIndex:ge});d3({isInitialMount:J.current,props:t,state:m}),z.useEffect(function(){var ee=r||n||P;ee&&L.current&&L.current.focus()},[]),z.useEffect(function(){J.current||(ce.current=i.length)});var he=c3(P,[ae,$,k],o,function(){S({type:Su,selectItem:!1})}),le=l3();z.useEffect(function(){J.current=!1},[]),z.useEffect(function(){P||(R.current={})},[P]);var de=z.useMemo(function(){return{ArrowDown:function(ue){ue.preventDefault(),S({type:dd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},ArrowUp:function(ue){ue.preventDefault(),S({type:hd,shiftKey:ue.shiftKey,getItemNodeFromIndex:ge})},Home:function(ue){!q.current.state.isOpen||(ue.preventDefault(),S({type:gd,getItemNodeFromIndex:ge}))},End:function(ue){!q.current.state.isOpen||(ue.preventDefault(),S({type:yd,getItemNodeFromIndex:ge}))},Escape:function(){var ue=q.current.state;(ue.isOpen||ue.inputValue||ue.selectedItem||ue.highlightedIndex>-1)&&S({type:pd})},Enter:function(ue){var oe=q.current.state;!oe.isOpen||oe.highlightedIndex<0||ue.which===229||(ue.preventDefault(),S({type:md,getItemNodeFromIndex:ge}))}}},[S,q,ge]),Me=z.useCallback(function(ee){return Ct({id:j.labelId,htmlFor:j.inputId},ee)},[j]),Ne=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onMouseLeave,te=ve.refKey,Le=te===void 0?"ref":te,Ie=ve.ref,Ee=Xi(ve,b3),He=ue===void 0?{}:ue;return He.suppressRefError,Ct((oe={},oe[Le]=Oo(Ie,function(qe){$.current=qe}),oe.id=j.menuId,oe.role="listbox",oe["aria-labelledby"]=j.labelId,oe.onMouseLeave=Ui(Pe,function(){S({type:Fv})}),oe),Ee)},[S,le,j]),Oe=z.useCallback(function(ee){var ue,oe,ve=ee===void 0?{}:ee,Pe=ve.item,te=ve.index,Le=ve.refKey,Ie=Le===void 0?"ref":Le,Ee=ve.ref,He=ve.onMouseMove,qe=ve.onClick;ve.onPress;var Ke=Xi(ve,_3),nt=q.current,ke=nt.props,Pt=nt.state,Je=a3(te,Pe,ke.items);if(Je<0)throw new Error("Pass either item or item index in getItemProps!");var Nt="onClick",Dt=qe,ht=function(){te!==Pt.highlightedIndex&&(O.current=!1,S({type:$v,index:te}))},Z=function(){S({type:bd,index:te}),L.current&&L.current.focus()};return Ct((ue={},ue[Ie]=Oo(Ee,function(Ae){Ae&&(R.current[j.getItemId(Je)]=Ae)}),ue.role="option",ue["aria-selected"]=""+(Je===Pt.highlightedIndex),ue.id=j.getItemId(Je),ue),!Ke.disabled&&(oe={onMouseMove:Ui(He,ht)},oe[Nt]=Ui(Dt,Z),oe),Ke)},[S,q,O,j]),De=z.useCallback(function(ee){var ue,oe=ee===void 0?{}:ee,ve=oe.onClick;oe.onPress;var Pe=oe.refKey,te=Pe===void 0?"ref":Pe,Le=oe.ref,Ie=Xi(oe,w3),Ee=function(){S({type:Nv}),!q.current.state.isOpen&&L.current&&L.current.focus()};return Ct((ue={},ue[te]=Oo(Le,function(He){k.current=He}),ue.id=j.toggleButtonId,ue.tabIndex=-1,ue),!Ie.disabled&&Ct({},{onClick:Ui(ve,Ee)}),Ie)},[S,q,j]),pe=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.onKeyDown,te=ve.onChange,Le=ve.onInput,Ie=ve.onBlur;ve.onChangeText;var Ee=ve.refKey,He=Ee===void 0?"ref":Ee,qe=ve.ref,Ke=Xi(ve,O3),nt=ue===void 0?{}:ue;nt.suppressRefError;var ke=q.current.state,Pt=function(Fe){var pt=VC(Fe);pt&&de[pt]&&de[pt](Fe)},Je=function(Fe){S({type:vd,inputValue:Fe.target.value})},Nt=function(){ke.isOpen&&!he.current.isMouseDown&&S({type:Su,selectItem:!0})},Dt="onChange",ht={};if(!Ke.disabled){var Z;ht=(Z={},Z[Dt]=Ui(te,Le,Je),Z.onKeyDown=Ui(Pe,Pt),Z.onBlur=Ui(Ie,Nt),Z)}return Ct((oe={},oe[He]=Oo(qe,function(Ae){L.current=Ae}),oe.id=j.inputId,oe["aria-autocomplete"]="list",oe["aria-controls"]=j.menuId,oe),ke.isOpen&&ke.highlightedIndex>-1&&{"aria-activedescendant":j.getItemId(ke.highlightedIndex)},{"aria-labelledby":j.labelId,autoComplete:"off",value:ke.inputValue},ht,Ke)},[S,de,q,he,le,j]),F=z.useCallback(function(ee,ue){var oe,ve=ee===void 0?{}:ee,Pe=ve.refKey,te=Pe===void 0?"ref":Pe,Le=ve.ref,Ie=Xi(ve,S3),Ee=ue===void 0?{}:ue;return Ee.suppressRefError,Ct((oe={},oe[te]=Oo(Le,function(He){ae.current=He}),oe.role="combobox",oe["aria-haspopup"]="listbox",oe["aria-owns"]=j.menuId,oe["aria-expanded"]=q.current.state.isOpen,oe),Ie)},[q,le,j]),U=z.useCallback(function(){S({type:Dv})},[S]),N=z.useCallback(function(){S({type:Lv})},[S]),Q=z.useCallback(function(){S({type:jv})},[S]),V=z.useCallback(function(ee){S({type:zv,highlightedIndex:ee})},[S]),be=z.useCallback(function(ee){S({type:_d,selectedItem:ee})},[S]),fe=z.useCallback(function(ee){S({type:Hv,inputValue:ee})},[S]),H=z.useCallback(function(){S({type:Uv})},[S]);return{getItemProps:Oe,getLabelProps:Me,getMenuProps:Ne,getInputProps:pe,getComboboxProps:F,getToggleButtonProps:De,toggleMenu:U,openMenu:Q,closeMenu:N,setHighlightedIndex:V,setInputValue:fe,selectItem:be,reset:H,highlightedIndex:E,isOpen:P,selectedItem:b,inputValue:I}}function A3(e){var t=e.removedSelectedItem,r=e.itemToString;return r(t)+" has been removed."}se.array,se.array,se.array,se.func,se.func,se.func,se.number,se.number,se.number,se.func,se.func,se.string,se.string,se.shape({addEventListener:se.func,removeEventListener:se.func,document:se.shape({getElementById:se.func,activeElement:se.any,body:se.any})}),Ao.itemToString,Ao.stateReducer,Ao.environment;function P3(e){const{hotels:t,defaultHotel:r,selectedHotel:n,handleHotelChange:i,subMenuItem:a}=e,[o,s]=z.useState([]),{subMenus:u,isMobileOrTablet:f}=rt(R=>R.headerInfo),p=ii(),d=u.find(R=>R===a),m=R=>R?R[0]:"",{isOpen:S,getMenuProps:P,getInputProps:E,getComboboxProps:b,highlightedIndex:I,getItemProps:$}=kv({items:o,itemToString:m,initialSelectedItem:r,selectedItem:n,initialInputValue:r&&r[0],onSelectedItemChange:({selectedItem:R})=>{const L=R[0],[k,ae]=R[1].split("_").map(j=>+j),J={hotelId:k,guideId:ae,name:L};Fr.unstable_batchedUpdates(()=>{p(ry(R)),p(Qg(J)),p(ll(a))}),typeof i=="function"&&i(J)},onInputValueChange:({inputValue:R})=>{s(t.filter(L=>m(L).toLowerCase().startsWith(R.toLowerCase())))}});return G("ul",{className:Qn("col-12","col-lg","py-3","px-lg-0","py-lg-0","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":d}),style:f?{top:50}:{},children:G("li",{children:We("div",{id:"hd-property-search",children:[G("label",{htmlFor:"hd-property-input",className:"form-label d-lg-none visually-hidden",children:"Select property"}),We("div",dr($t({id:"hd-property-input-container"},b()),{children:[G("input",$t({type:"text",className:"form-control",id:"hd-property-input",placeholder:"hotel name"},E())),G("ul",dr($t({style:{listStyle:"none",marginBottom:0}},P()),{children:S&&o.map((R,L)=>G("li",dr($t({style:I===L?{backgroundColor:"#bde4ff"}:{}},$({hotel:R,index:L})),{children:R[0]}),R[1]))})),G(Dr.Search,{className:"hd-icon hd-icon-search"}),G(Dr.Close,{className:"hd-icon hd-icon-close",onClick:()=>{console.log("clicked")}})]}))]})})})}function I3(e){const{handleHotelChange:t}=e,[r,n]=z.useState("Select property"),i=rt(b=>b.hotelInfo),a=rt(b=>b.userInfo),{isOpen:o,isMobileOrTablet:s}=rt(b=>b.headerInfo),{propertySelector:u}=rt(b=>b.titleBar),{items:f,defaultHotel:p,selectedHotel:d}=rt(b=>b.hotels),[m,{height:S}]=ps(),P=fa(!s||o,{from:{height:0},enter:{height:S},leave:{height:0},update:{height:S},config:dr($t({},Di.stiff),{clamp:!0})}),E=ii();return z.useEffect(()=>{(async()=>{if(u){let{type:b,hotels:I}=u;b==="fetch"&&(I=await(await fetch(I)).json());const $=I.find(R=>{const[L,k]=R[1].split("_").map(ae=>+ae);return i.hotelId===L&&i.guideId===k||a.hotelId===L&&a.guideId===k});Fr.unstable_batchedUpdates(()=>{E(EI(I)),E(CI($)),E(ry($))})}})()},[u]),P((b,I)=>I&&G(Li.div,{className:"col-12 col-lg me-lg-auto px-0 order-lg-3",id:"hd-property",style:s?dr($t({},b),{display:"block"}):{},children:G("ul",{ref:m,className:"row list-unstyled mx-0 mb-0 hd-nav-first-level",children:G("li",{className:"col-lg-auto align-items-center",onClick:()=>{E(ra(r))},children:We("div",{className:"row py-lg-0 align-items-center",children:[We("div",{className:"col col-lg-auto py-2 py-lg-0",id:"hd-group-property-name",children:[G("span",{className:"ps-lg-3 py-3 py-lg-0 d-block",id:"hd-group-name",children:"TESTING Hotels"}),We("div",{className:"row me-0 d-lg-none align-items-center",children:[We("div",{className:"col",children:[G("small",{className:"pt-2",children:r}),G("span",{className:"d-block",id:"hd-property-name",children:i.name||p&&p[0]})]}),G("div",{className:"col-auto p-2 d-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]})]}),f.length>0&&G(P3,{hotels:f,defaultHotel:p,selectedHotel:d,handleHotelChange:t,subMenuItem:r})]})})})}))}function x3(){const{i18n:e}=fo(),{help:t}=rt(i=>i.titleBar);if(!t)return null;const{label:r,href:n}=t;return G("li",{className:"col-lg-auto p-0",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"ps-lg-3 pe-3 py-2 d-block",title:"Help",href:n,target:"_blank",rel:"noreferrer",children:e.translate(r).fetch()})})})})}function E3(){const{i18n:e}=fo(),{subMenus:t,isMobileOrTablet:r}=rt(f=>f.headerInfo),{user:n}=rt(f=>f.titleBar),{username:i}=rt(f=>f.userInfo),a=ii();if(!n)return null;const{label:o,children:s}=n,u=t.find(f=>f===o);return We("li",{className:"col-lg-auto p-0",onClick:()=>{a(ra(o))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:o}),We("span",{className:"ps-lg-3 pe-3 py-2 d-block",children:[G("span",{className:"d-none d-lg-inline",children:G(Dr.User,{className:"hd-icon hd-icon-user"})}),G("span",{className:"ps-lg-2",children:i}),G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":u}),style:r?{top:50}:{},children:s.map(({href:f,label:p})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:f,target:"_blank",rel:"noreferrer",children:e.translate(p).fetch()})})})}))})]})}function C3(e){const{handleLanguageChange:t}=e,[r,n]=z.useState(),[i,a]=z.useState([]),o=rt(S=>S.userLanguage),{languageSelector:s}=rt(S=>S.titleBar),{subMenus:u,isMobileOrTablet:f}=rt(S=>S.headerInfo),p=ii();if(z.useEffect(()=>{if(s){const{children:S}=s;if(Array.isArray(S)){const P=S.map(({code:E,label:b})=>{const I=new Intl.DisplayNames([E],{type:"language"});return{code:E,name:b||I.of(E)}});P.length>0&&a(P)}}},[s]),z.useEffect(()=>{var S;if(o){const P=(S=i.find(({code:E})=>E===o))==null?void 0:S.name;P&&n(P)}},[o,i]),!s)return null;const{label:d}=s,m=u.find(S=>S===d);return We("li",{className:"col-lg-auto p-0",onClick:()=>{p(ra(d))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[We("div",{className:"col py-2 py-lg-0 px-0",children:[G("small",{className:"pt-2 d-lg-none",children:d}),We("span",{className:"ps-lg-3 pe-3 pt-lg-2 pb-2 d-block",children:[r,G("span",{className:"d-none d-lg-inline ms-2",children:G(Dr.ArrowAngleDown,{className:"hd-icon hd-icon-arrow-angle-down"})})]})]}),G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":m}),style:f?{top:50}:{},children:i.map(({code:S,name:P})=>G("li",{children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("a",{className:"px-lg-4 py-2 d-block",href:"#",onClick:E=>{E.preventDefault(),E.stopPropagation(),p(ey(S)),typeof t=="function"&&t(S),p(ll(d))},children:P},S)})})}))})]})}function R3(){const[e,t]=z.useState(),{isOpen:r,subMenus:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),{items:a}=rt(u=>u.menuItems),o=fa(n.length>0,{from:{opacity:0},enter:{opacity:1},leave:{opacity:0},config:Di.stiff}),s=ii();return z.useEffect(()=>{var f;const u=((f=a.find(p=>p.id===n[n.length-1]))==null?void 0:f.label)||n[n.length-1];u&&t(u)},[a,n]),!i||!r?null:o((u,f)=>f&&We(Li.div,{className:"col py-2 py-lg-0",id:"hd-submenu-title-container",style:u,children:[G("span",{id:"hd-submenu-back",onClick:()=>{s(ll(n[n.length-1]))},children:G(Dr.ArrowLeft,{className:"hd-icon hd-icon-arrow-left"})}),G("span",{className:"ms-3",id:"hd-submenu-title",children:e})]}))}function T3(e){const{handleHotelChange:t,handleLanguageChange:r}=e,{isOpen:n,isMobileOrTablet:i}=rt(u=>u.headerInfo),[a,{height:o}]=ps(),s=fa(!i||n,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return G("div",{className:"container-xxl",children:We("div",{className:"row align-items-center pb-lg-2",id:"hd-header-container",children:[G(R3,{}),G(Xx,{}),G(ZE,{}),G(tC,{}),G(MC,{}),G(I3,{handleHotelChange:t}),s((u,f)=>f&&G(Li.div,{className:"col-12 col-lg-auto ps-lg-0 align-middle order-lg-5",id:"hd-nav-container-top",style:i?dr($t({},u),{display:"block"}):{},children:G("nav",{ref:a,id:"hd-top-nav",children:We("ul",{className:"row list-unstyled mb-0 hd-nav-first-level",children:[G(x3,{}),G(C3,{handleLanguageChange:r}),G(E3,{})]})})}))]})})}let M3=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,r)=>(r&=63,r<36?t+=r.toString(36):r<62?t+=(r-26).toString(36).toUpperCase():r>62?t+="-":t+="_",t),"");function F3(e){var L;const{item:t,level:r,hasChildren:n,children:i}=e,{href:a,label:o,id:s,group:u,premium:f={}}=t,{value:p=!1,locked:d=!1}=f,{i18n:m}=fo(),{isOpen:S,subMenus:P,isMobileOrTablet:E}=rt(k=>k.headerInfo),{items:b}=rt(k=>k.menuItems),I=S&&P.find(k=>k===s),$=!!u&&((L=b.find(k=>k.group===u))==null?void 0:L.id)===s,R=ii();if(p&&d)return We("li",{className:"hd-nav-has-children",onClick:()=>{R(ra(s))},children:[G("div",{className:"row m-0 py-lg-0 align-items-center",children:G("div",{className:"col py-2 py-lg-0 px-0",children:We("span",{className:"px-lg-3 py-2 d-block",children:[m.translate("label").fetch(),G("span",{className:"float-end",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})})]})})}),G("ul",{className:Qn("py-3","list-unstyled",{"hd-nav-second-level":r===1,"hd-nav-third-level":r===2,"hd-submenu-opened":I}),children:G("li",{className:"hd-premium",children:G("div",{className:"row m-0 py-lg-0 align-items-center",children:We("div",{className:"col p-lg-3",children:[G("span",{className:"d-lg-none mb-3",children:G(Dr.Lock,{className:"hd-icon hd-icon-lock"})}),We("p",{children:["This premium functionality has not been activated.",G("br",{}),"Please contact us to activate this feature."]}),G("a",{className:"btn btn-sm btn-outline-primary",href:"#",target:"_blank",children:"Learn more"})]})})})})]});if(r===1)return We("li",{className:"col-lg-auto p-0",onClick:()=>{n&&R(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:G("span",{className:"ps-lg-3 pe-3 py-2",children:m.translate(o).fetch()})}),n&&G("div",{className:"col-auto p-2 d-block d-lg-none",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})]}),n&&G("ul",{className:Qn("py-3","list-unstyled","hd-nav-second-level",{"hd-submenu-opened":I}),style:E?{top:50}:{},children:i})]});if(r===2)return We(es,{children:[$&&G("div",{className:"row m-0 pt-3 hd-nav-section",children:G("div",{className:"col py-2 py-lg-0 px-0",children:G("div",{className:"px-lg-3 d-block text-uppercase",children:m.translate(u).fetch()})})}),We("li",{onClick:()=>{n&&R(ra(s))},children:[We("div",{className:"row m-0 py-lg-0 align-items-center",children:[G("div",{className:"col py-2 py-lg-0 px-0",children:a?G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{R(cl(s))},children:m.translate(o).fetch()}):G("span",{className:"px-lg-3 py-2 d-block",children:m.translate(o).fetch()})}),n&&G("div",{className:"col-auto px-0",children:G("span",{className:"p-2 d-lg-block",children:G(Dr.ArrowAngleRight,{className:"hd-icon hd-icon-arrow-angle-right"})})})]}),n&&G("ul",{className:Qn("ps-3","ps-lg-0","list-unstyled","hd-nav-third-level",{"hd-submenu-opened":I}),children:i})]})]});if(r===3)return G("li",{children:G("div",{className:"row m-0 py-1 py-lg-0 align-items-center",children:G("div",{className:"col p-lg-0",children:G("a",{className:"px-lg-3 py-2 d-block",href:a,onClick:()=>{R(cl(s))},children:m.translate(o).fetch()})})})})}const Wv=M3();function Kv(e){const{menuItems:t,parentId:r=Wv,level:n=1}=e,i=t.filter(a=>(a.parentId||Wv)===r);return i.length?i.map(a=>{const o=!!t.find(p=>p.parentId===a.id),{premium:s={}}=a,{value:u=!1,locked:f=!1}=s;return G(F3,{item:a,level:n,hasChildren:o,premium:u,locked:f,children:G(Kv,{menuItems:t,parentId:a.id,level:n+1})},a.id)}):null}function $3(){const{items:e}=rt(f=>f.menuItems),{isOpen:t,isMobileOrTablet:r,subMenus:n}=rt(f=>f.headerInfo),i=ii(),[a,{height:o}]=ps(),s=z.useRef(null),u=fa(!r||t,{from:{height:0},enter:{height:o},leave:{height:0},update:{height:o},config:dr($t({},Di.stiff),{clamp:!0})});return z.useEffect(()=>{if(e.length>0){const f=new URL(window.location.href),{hash:p}=f,d=e.find(m=>m.href===p);d&&i(cl(d.id))}},[e]),z.useEffect(()=>{s&&n.length>0&&(s.current.scrollTop=0)},[n.length]),u((f,p)=>p&&G(Li.div,{className:"container-xxl",id:"hd-nav-container",style:r?dr($t({},f),{display:"block"}):{},children:G("nav",{className:"hd-nav",ref:a,children:G("ul",{ref:s,className:"row list-unstyled mb-0 hd-nav-first-level",children:G(Kv,{menuItems:e})})})}))}function N3(){const[e,t]=z.useState([]),{items:r,selectedItem:n}=rt(a=>a.menuItems),{i18n:i}=fo();return z.useEffect(()=>{if(n){const a=[];let o=r.find(s=>s.id===n);do a.push(o),o=r.find(s=>s.id===o.parentId);while(o);t(a.reverse())}},[n]),e.length===0?null:G("div",{className:"container-xxl mt-3 mt-lg-5",children:G("nav",{"aria-label":"breadcrumb",id:"hd-breadcrumb",children:We("ol",{className:"breadcrumb mb-0",children:[G("li",{className:"breadcrumb-item active",children:i.translate(e[0].label).fetch()}),e.length>=2&&G("li",{className:"breadcrumb-item active",children:i.translate(e[1].label).fetch()}),e.length===3&&G("li",{className:"breadcrumb-item active",children:i.translate(e[2].label).fetch()})]})})})}function D3(e){const{hotelInfo:t,userInfo:r,userLanguage:n}=e,{isOpen:i,subMenus:a,isMobileOrTablet:o}=rt(p=>p.headerInfo),s=z.useRef(null),{width:u}=$P(),f=ii();return z.useEffect(()=>{n&&f(ey(n))},[]),z.useEffect(()=>{u&&f(SI(u))},[u]),z.useEffect(()=>{fetch("/api/titlebar").then(p=>p.json()).then(p=>{f(gI(p))})},[]),z.useEffect(()=>{fetch("/api/menu").then(p=>p.json()).then(p=>{f(hI(p))})},[]),z.useEffect(()=>{fetch("/api/notifications").then(p=>p.json()).then(p=>{f(mI(p))})},[]),z.useEffect(()=>{t&&f(Qg(t))},[]),z.useEffect(()=>{r&&f(_I(r))},[]),z.useEffect(()=>{s&&a.length>0&&(s.current.scrollTop=0)},[a.length]),We(es,{children:[We("div",{ref:s,id:"hd-container",className:Qn("container-fluid","px-0 fixed-top",{"hd-menu-opened":i,"hd-overflow-hidden":a.length>0}),style:$t({},o&&!i&&{overflow:"hidden"}),children:[G(T3,$t({},e)),G($3,{})]}),G(N3,{})]})}const qv=FI(D3);function j3(e,t){Fr.render(G(qv,$t({},t)),e)}DA(),rr.Header=qv,rr.renderHeader=j3,Object.defineProperties(rr,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|