/*! For license information please see loader_js.js.LICENSE.txt */ (()=>{"use strict";var t={418:t=>{var e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var a,c,u=o(t),s=1;s{var n=r(418);if("function"==typeof Symbol&&Symbol.for){var o=Symbol.for;o("react.element"),o("react.portal"),o("react.fragment"),o("react.strict_mode"),o("react.profiler"),o("react.provider"),o("react.context"),o("react.forward_ref"),o("react.suspense"),o("react.memo"),o("react.lazy")}"function"==typeof Symbol&&Symbol.iterator;function i(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r{r(408)}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),(()=>{const t="https://www.tiqets.com",e=(JSON.parse('{"EUR": "€","USD": "$", "GBP": "£", "AUD": "A$", "CAD": "CA$", "CHF": "Fr","DKK": "kr", "NOK": "kr", "PLN": "zł", "SEK": "kr", "AED": "د.إ", "HUF": "Ft", "SGD": "S$", "HKD": "HK$", "JPY": "¥", "COP": "$", "NZD": "$", "MYR": "RM"}'),JSON.parse('{"en": "English", "ca": "Català", "de": "Deutsch", "el": "Ελληνικά", "es": "Español", "fr": "Français", "ko": "한국어", "it": "Italiano", "nl": "Nederlands", "ja": "日本語", "pt": "Português", "pl": "Polski", "ru": "Русский", "zh": "中文"}'));r(294);let n=(t=21)=>{let e="",r=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let n=63&r[t];e+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return e};var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof o&&o)||function(){return this}()||Function("return this")(),c={},u=function(t){try{return!!t()}catch(t){return!0}},s=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l=!u((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),f=l,d=Function.prototype.call,p=f?d.bind(d):function(){return d.apply(d,arguments)},g={},h={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,b=y&&!h.call({1:2},1);g.f=b?function(t){var e=y(this,t);return!!e&&e.enumerable}:h;var v,m,w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},S=l,O=Function.prototype,_=O.bind,j=O.call,x=S&&_.bind(j,j),E=S?function(t){return t&&x(t)}:function(t){return t&&function(){return j.apply(t,arguments)}},P=E,A=P({}.toString),k=P("".slice),F=function(t){return k(A(t),8,-1)},N=E,C=u,T=F,I=a.Object,q=N("".split),R=C((function(){return!I("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?q(t,""):I(t)}:I,D=a.TypeError,U=function(t){if(null==t)throw D("Can't call method on "+t);return t},z=R,M=U,L=function(t){return z(M(t))},W=function(t){return"function"==typeof t},V=W,G=function(t){return"object"==typeof t?null!==t:V(t)},$=a,K=W,H=function(t){return K(t)?t:void 0},J=function(t,e){return arguments.length<2?H($[t]):$[t]&&$[t][e]},B=E({}.isPrototypeOf),Y=a,Z=J("navigator","userAgent")||"",Q=Y.process,X=Y.Deno,tt=Q&&Q.versions||X&&X.version,et=tt&&tt.v8;et&&(m=(v=et.split("."))[0]>0&&v[0]<4?1:+(v[0]+v[1])),!m&&Z&&(!(v=Z.match(/Edge\/(\d+)/))||v[1]>=74)&&(v=Z.match(/Chrome\/(\d+)/))&&(m=+v[1]);var rt=m,nt=u,ot=!!Object.getOwnPropertySymbols&&!nt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&rt&&rt<41})),it=ot&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,at=J,ct=W,ut=B,st=it,lt=a.Object,ft=st?function(t){return"symbol"==typeof t}:function(t){var e=at("Symbol");return ct(e)&&ut(e.prototype,lt(t))},dt=a.String,pt=W,gt=a.TypeError,ht=function(t){if(pt(t))return t;throw gt(function(t){try{return dt(t)}catch(t){return"Object"}}(t)+" is not a function")},yt=p,bt=W,vt=G,mt=a.TypeError,wt={exports:{}},St=a,Ot=Object.defineProperty,_t=function(t,e){try{Ot(St,t,{value:e,configurable:!0,writable:!0})}catch(r){St[t]=e}return e},jt=_t,xt="__core-js_shared__",Et=a[xt]||jt(xt,{}),Pt=Et;(wt.exports=function(t,e){return Pt[t]||(Pt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var At=U,kt=a.Object,Ft=E({}.hasOwnProperty),Nt=Object.hasOwn||function(t,e){return Ft(kt(At(t)),e)},Ct=E,Tt=0,It=Math.random(),qt=Ct(1..toString),Rt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+qt(++Tt+It,36)},Dt=a,Ut=wt.exports,zt=Nt,Mt=Rt,Lt=ot,Wt=it,Vt=Ut("wks"),Gt=Dt.Symbol,$t=Gt&&Gt.for,Kt=Wt?Gt:Gt&&Gt.withoutSetter||Mt,Ht=function(t){if(!zt(Vt,t)||!Lt&&"string"!=typeof Vt[t]){var e="Symbol."+t;Lt&&zt(Gt,t)?Vt[t]=Gt[t]:Vt[t]=Wt&&$t?$t(e):Kt(e)}return Vt[t]},Jt=p,Bt=G,Yt=ft,Zt=Ht,Qt=a.TypeError,Xt=Zt("toPrimitive"),te=function(t,e){if(!Bt(t)||Yt(t))return t;var r,n,o=null==(n=t[Xt])?void 0:ht(n);if(o){if(void 0===e&&(e="default"),r=Jt(o,t,e),!Bt(r)||Yt(r))return r;throw Qt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&bt(r=t.toString)&&!vt(n=yt(r,t)))return n;if(bt(r=t.valueOf)&&!vt(n=yt(r,t)))return n;if("string"!==e&&bt(r=t.toString)&&!vt(n=yt(r,t)))return n;throw mt("Can't convert object to primitive value")}(t,e)},ee=ft,re=function(t){var e=te(t,"string");return ee(e)?e:e+""},ne=G,oe=a.document,ie=ne(oe)&&ne(oe.createElement),ae=!s&&!u((function(){return 7!=Object.defineProperty((t="div",ie?oe.createElement(t):{}),"a",{get:function(){return 7}}).a;var t})),ce=s,ue=p,se=g,le=w,fe=L,de=re,pe=Nt,ge=ae,he=Object.getOwnPropertyDescriptor;c.f=ce?he:function(t,e){if(t=fe(t),e=de(e),ge)try{return he(t,e)}catch(t){}if(pe(t,e))return le(!ue(se.f,t,e),t[e])};var ye={},be=s&&u((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),ve=a,me=G,we=ve.String,Se=ve.TypeError,Oe=function(t){if(me(t))return t;throw Se(we(t)+" is not an object")},_e=s,je=ae,xe=be,Ee=Oe,Pe=re,Ae=a.TypeError,ke=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor;ye.f=_e?xe?function(t,e,r){if(Ee(t),e=Pe(e),Ee(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Fe(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return ke(t,e,r)}:ke:function(t,e,r){if(Ee(t),e=Pe(e),Ee(r),je)try{return ke(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ae("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Ne=ye,Ce=w,Te=s?function(t,e,r){return Ne.f(t,e,Ce(1,r))}:function(t,e,r){return t[e]=r,t},Ie={exports:{}},qe=W,Re=Et,De=E(Function.toString);qe(Re.inspectSource)||(Re.inspectSource=function(t){return De(t)});var Ue,ze,Me,Le,We=Re.inspectSource,Ve=W,Ge=We,$e=a.WeakMap,Ke=Ve($e)&&/native code/.test(Ge($e)),He=wt.exports,Je=Rt,Be=He("keys"),Ye={},Ze=Ke,Qe=a,Xe=E,tr=G,er=Te,rr=Nt,nr=Et,or=Ye,ir="Object already initialized",ar=Qe.TypeError,cr=Qe.WeakMap;if(Ze||nr.state){var ur=nr.state||(nr.state=new cr),sr=Xe(ur.get),lr=Xe(ur.has),fr=Xe(ur.set);Ue=function(t,e){if(lr(ur,t))throw new ar(ir);return e.facade=t,fr(ur,t,e),e},ze=function(t){return sr(ur,t)||{}},Me=function(t){return lr(ur,t)}}else{var dr=Be[Le="state"]||(Be[Le]=Je(Le));or[dr]=!0,Ue=function(t,e){if(rr(t,dr))throw new ar(ir);return e.facade=t,er(t,dr,e),e},ze=function(t){return rr(t,dr)?t[dr]:{}},Me=function(t){return rr(t,dr)}}var pr={set:Ue,get:ze,has:Me,enforce:function(t){return Me(t)?ze(t):Ue(t,{})},getterFor:function(t){return function(e){var r;if(!tr(e)||(r=ze(e)).type!==t)throw ar("Incompatible receiver, "+t+" required");return r}}},gr=s,hr=Nt,yr=Function.prototype,br=gr&&Object.getOwnPropertyDescriptor,vr=hr(yr,"name"),mr=vr&&(!gr||gr&&br(yr,"name").configurable),wr=a,Sr=W,Or=Nt,_r=Te,jr=_t,xr=We,Er=mr,Pr=pr.get,Ar=pr.enforce,kr=String(String).split("String");(Ie.exports=function(t,e,r,n){var o,i=!!n&&!!n.unsafe,a=!!n&&!!n.enumerable,c=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;Sr(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Or(r,"name")||Er&&r.name!==u)&&_r(r,"name",u),(o=Ar(r)).source||(o.source=kr.join("string"==typeof u?u:""))),t!==wr?(i?!c&&t[e]&&(a=!0):delete t[e],a?t[e]=r:_r(t,e,r)):a?t[e]=r:jr(e,r)})(Function.prototype,"toString",(function(){return Sr(this)&&Pr(this).source||xr(this)}));var Fr={},Nr=Math.ceil,Cr=Math.floor,Tr=function(t){var e=+t;return e!=e||0===e?0:(e>0?Cr:Nr)(e)},Ir=Tr,qr=Math.max,Rr=Math.min,Dr=Tr,Ur=Math.min,zr=L,Mr=function(t){return(e=t.length)>0?Ur(Dr(e),9007199254740991):0;var e},Lr=function(t){return function(e,r,n){var o,i=zr(e),a=Mr(i),c=function(t,e){var r=Ir(t);return r<0?qr(r+e,0):Rr(r,e)}(n,a);if(t&&r!=r){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===r)return t||c||0;return!t&&-1}},Wr={includes:Lr(!0),indexOf:Lr(!1)},Vr=Nt,Gr=L,$r=Wr.indexOf,Kr=Ye,Hr=E([].push),Jr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Fr.f=Object.getOwnPropertyNames||function(t){return function(t,e){var r,n=Gr(t),o=0,i=[];for(r in n)!Vr(Kr,r)&&Vr(n,r)&&Hr(i,r);for(;e.length>o;)Vr(n,r=e[o++])&&(~$r(i,r)||Hr(i,r));return i}(t,Jr)};var Br={};Br.f=Object.getOwnPropertySymbols;var Yr=J,Zr=Fr,Qr=Br,Xr=Oe,tn=E([].concat),en=Yr("Reflect","ownKeys")||function(t){var e=Zr.f(Xr(t)),r=Qr.f;return r?tn(e,r(t)):e},rn=Nt,nn=en,on=c,an=ye,cn=u,un=W,sn=/#|\.prototype\./,ln=function(t,e){var r=dn[fn(t)];return r==gn||r!=pn&&(un(e)?cn(e):!!e)},fn=ln.normalize=function(t){return String(t).replace(sn,".").toLowerCase()},dn=ln.data={},pn=ln.NATIVE="N",gn=ln.POLYFILL="P",hn=ln,yn=a,bn=c.f,vn=Te,mn=Ie.exports,wn=_t,Sn=function(t,e,r){for(var n=nn(e),o=an.f,i=on.f,a=0;a>>0||(Qn(Zn,r)?16:10))}:Jn;!function(t,e){var r,n,o,i,a,c=t.target,u=t.global,s=t.stat;if(r=u?yn:s?yn[c]||wn(c,{}):(yn[c]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(a=bn(r,n))&&a.value:r[n],!On(u?n:c+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Sn(i,o)}(t.sham||o&&o.sham)&&vn(i,"sham",!0),mn(r,n,i,t)}}({global:!0,forced:parseInt!=Xn},{parseInt:Xn});const to=t=>Object.keys(t).map((e=>"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e])))).join("&"),eo=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"".concat(t,"_").concat(n())},ro=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if("undefined"!=typeof window&&window["".concat(t.toUpperCase(),"_VF")])return window["".concat(t.toUpperCase(),"_VF")];const e=eo(t);return"undefined"!=typeof window&&(window["".concat(t.toUpperCase(),"_VF")]=e),e},no=t=>window.console&&console.warn(t),oo=(t,e)=>no("[required parameters][index:".concat(e,"] ").concat(t));function io(t,e,r){window.addEventListener("message",(n=>{try{const o=JSON.parse(n.data);if(parseInt(o.widgetIndex,10)!==parseInt(t,10))return;r||no("no callback function defined"),o.event===e&&r(o.payload)}catch(t){if(!(t instanceof SyntaxError))throw t}}))}function ao(t,e){let{width:r,height:n}=t;Number.isNaN(r)||(e.style.width="".concat(r,"px")),Number.isNaN(n)||(e.style.height="".concat(n,"px"))}function co(t){return Object.keys(e).includes(t)}window.console&&window.console.info("Tiqets widget loader base url: ".concat(t));const uo=t=>(null==t?void 0:t.language)||function(t){let e=null;if(t.language&&co(t.language))return t.language;const r=(Array.isArray(navigator.languages)&&navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map((t=>t.split("-")[0])).filter(((t,e,r)=>r.indexOf(t)===e));if(t.blacklisted_languages){const n=t.blacklisted_languages.split(",").map((t=>t.trim()));for(const t in r)if(!n.includes(r[t])&&co(r[t])){e=r[t];break}}else for(const t in r)if(co(r[t])){e=r[t];break}return e}(t)||Object.keys(e)[0],so=(t,e)=>Object.keys(t).filter((t=>e.indexOf(t)>-1)).reduce(((e,r)=>{const n=e;return"true"===t[r]||"false"===t[r]?n[r]="true"===t[r]:n[r]="language"===r||"blacklisted_languages"===r?t[r].toLowerCase():t[r],n}),{}),lo=function(t,e,r,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;const a=document.createElement("iframe");return a.setAttribute("scrolling","no"),a.setAttribute("frameborder","0"),a.setAttribute("src",t),a.setAttribute("width",e),r&&a.setAttribute("height",r),o&&a.setAttribute("style",o),i&&a.setAttribute("id",i),n.appendChild(a),a},fo=t=>["language","currency","partner","tq_campaign","widget_index","build_nr","env",...t],po=(e,r,n)=>{if(e.getAttribute("data-initialized"))return;var o;e.setAttribute("data-initialized",!0),e.setAttribute("data-widget-index",r);const i=((t,e)=>({widget_index:e.toString(),...t}))((o=e.dataset,Object.keys(o).reduce(((t,e)=>{return{...t,[(r=e,r.split(/(?=[A-Z])/).join("_").toLowerCase())]:o[e]};var r}),{})),r),a=e.getAttribute("data-tiqets-widget");switch(a){case"discovery":((e,r,n,o)=>{const i=fo(["geo_lat","geo_lng","geo_max_distance","city_id","content_type","content_ids","destination_type","destination_id","product_ids","cards_layout","width","height","item_count","widget_version","coupon","hide_destination_link","search"]),a={cards_layout:"horizontal",...so(n,i)};if(!(a.city_id||a.destination_type&&a.destination_id||a.product_ids||a.content_ids||a.geo_lat&&a.geo_lng||a.search))return void oo("Expected either 'city_id', 'product_ids', both 'geo_lat' and 'geo_lng' or a combination of 'destiantion_type' and 'destination_id' or 'search'.",r);if(!a.partner)return void oo("expected 'partner'",r);let c=null,u=null;if("auto"===a.width&&"auto"===a.height)if(e.offsetWidth&&e.offsetHeight)c=e.offsetWidth,u=e.offsetHeight;else{const t=(t=>{const e=parseFloat(t.width),r=parseFloat(t.height),n=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),o=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),i=parseFloat(t.borderLeftWidth)+parseFloat(t.borderRightWidth),a=parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth);return{width:Math.round(e+n+i),height:Math.round(r+o+a)}})(e.parentNode.currentStyle||window.getComputedStyle(e.parentNode));c=parseInt(t.width,10),u=parseInt(t.height,10)}else if(a.product_ids||a.content_ids)c="100%";else if(a.item_count)c="100%";else{if(Number.isNaN(parseInt(a.width,10))&&Number.isNaN(parseInt(a.height,10)))return void oo("invalid width and height parameters",r);c=a.width,u=a.height}const s={...a,width:c,height:u,language:uo(a),tiqets_vf:ro("DiscoveryWidget"),alt_vi:o.altVi>0?o.altVi:void 0,alt_gyg:o.altGyg>0?o.altGyg:void 0,origin:window.location.href},l="".concat(t,"/widgets/discovery?").concat(to(s)),f=lo(l,c,u,e);io(r,"postWidgetSize",(t=>{ao(t,f)}))})(e,r,i,n);break;case"availability":((e,r,n,o)=>{const i=fo(["product_id","venue_id","layout","coupon"]),a=so(n,i);if(!a.product_id&&!a.venue_id)return void oo("product id or venue id missing",r);if(!a.partner)return void oo("partner missing",r);const c={...a,language:uo(a),tiqets_vf:ro("AvailabilityWidget"),alt_vi:o.altVi>0?o.altVi:void 0,alt_gyg:o.altGyg>0?o.altGyg:void 0,origin:window.location.href},u="".concat(t,"/widgets/availability?").concat(to(c)),s=lo(u,"100%","500",e);s.style.borderRadius="8px",s.style.boxShadow="0 4px 16px rgba(0,0,0,.1)",io(r,"postWidgetSize",(t=>{ao(t,s)}))})(e,r,i,n);break;default:no("unknown widget type: ".concat(a))}};(()=>{const t=document.querySelectorAll("div[data-tiqets-widget]"),e=document.querySelectorAll("[data-vi-partner-id]").length,r=document.querySelectorAll("[data-gyg-widget]").length;t.length||no("widget placeholder node missing"),Array.from(t).forEach(((t,n)=>{po(t,n,{altVi:e,altGyg:r})})),window.__TIQETS_LOADER_REINIT=()=>{Array.from(t).forEach(((t,e)=>{po(t,e,!0)}))}})()})()})(); //# sourceMappingURL=loader_js.js.map