1(self.webpackChunkairmauritius_portal=self.webpackChunkairmauritius_portal||[]).push([[410],{28257:function(t,e,n){"use strict";n.d(e,{A:function(){return ut}});n(52675),n(89463),n(2259),n(45700),n(2008),n(23792),n(89572),n(2892),n(83851),n(81278),n(79432),n(26099),n(3362),n(47764),n(23500),n(62953),n(27495),n(31415),n(71761);var r=n(88835),o=n(91218),i=n.n(o),u=n(2543),c=n.n(u),a=(n(74423),n(34782),n(21699),n(25440),n(5746),n(12041),n(55373)),l=n.n(a);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function p(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}r.format=function(t){var e=t.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var n=t.protocol||"",r=t.pathname||"",o=t.hash||"",i=!1,u="";t.host?i=e+t.host:t.hostname&&(i=e+(t.hostname.includes(":")?"[".concat(t.hostname,"]"):t.hostname),t.port&&(i+=":".concat(t.port))),t.query&&c().isObject(t.query)&&Object.keys(t.query).length>0&&(u=l().stringify(t.query,{arrayFormat:"brackets",encode:!0,encodeValuesOnly:!0}));var a=t.search||u&&"?".concat(u)||"";return n&&":"!==n.slice(-1)&&(n+=":"),t.slashes||(!n||slashedProtocol[n])&&!1!==i?(i="//".concat(i||""),r&&"/"!==r.charAt(0)&&(r="/".concat(r))):i||(i=""),o&&"#"!==o.charAt(0)&&(o="#".concat(o)),a&&"?"!==a.charAt(0)&&(a="?".concat(a)),n+i+(r=r.replaceAll(/[?#]/g,function(t){return encodeURIComponent(t)}))+(a=a.replace("#","%23"))+o};var b="GET",h="POST",d="PATCH",v="DELETE",m=new Set([b,h,"PUT",d,v]),g=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=(0,u.merge)({credentials:"same-origin",mode:"same-origin",referrerPolicy:"same-origin",cache:"force-cache",redirect:"follow",headers:{"Content-Type":"application/json"}},e)}return e=t,n=[{key:"setHeader",value:function(t,e){return this.options.headers[t]=e,this}},{key:"removeHeader",value:function(t){delete this.options.headers[t]}},{key:"setBearerAuthenticationToken",value:function(t){t&&this.setHeader("Authorization","Bearer ".concat(t))}},{key:"get",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({path:t,params:e,method:b,headers:n,options:r})}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.request({path:t,params:e,method:h,headers:n,postQuery:r,options:o})}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({path:t,params:e,method:"PUT",headers:n,options:r})}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({path:t,params:e,method:d,headers:n,options:r})}},{key:"del",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.request({path:t,params:e,method:v,headers:n,options:r})}},{key:"request",value:function(e){var n=e.method,o=e.path,c=e.params,a=void 0===c?{}:c,l=e.headers,s=void 0===l?{}:l,f=e.postQuery,p=e.options,y=new(i())(o),h=y.reverse(a),d=function(t){var e=t.toUpperCase();
1if(!m.has(e))throw new Error('Invalid method name "'.concat(e,'"'));return e}(n),v=(0,u.keys)(y.match(h)),g=v.length>0?(0,u.omit)(a,v):a,O=(0,u.merge)({},this.options,p,{method:d,headers:s}),j=O.headers["Content-Type"]||"";if(d===b){var S=r.parse(h);S.query=(0,u.merge)({},S.query,g),h=r.format(S),O.body=void 0}else if(/application\/json/.test(j)){var A=r.parse(h);A.query=(0,u.merge)({},A.query,f),h=r.format(A),O.body=JSON.stringify(g)}return fetch(h,O).then(t.checkStatus).then(t.responseParser)}}],n&&f(e.prototype,n),o&&f(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,o}();function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,w(r.key),r)}}function A(t,e,n){return(e=w(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function w(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==O(e)?e:e+""}p(g,"checkStatus",function(t){if(t.status>=200&&t.status<500)return t;var e=new Error(t.statusText);throw e.response=t,e}),p(g,"responseParser",function(t){if(201===t.status)return t;var e=function(t){return t.text()};return(t.headers.get("Content-Type").match(/application\/(ld\+)?json/)||{}).input&&(e=function(t){return t.json()}),e(t)});var P={},T=function(){return t=function t(e){var n=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,"handleError",function(t){var e=t.response;if("function"!=typeof n.errorHandlers[null==e?void 0:e.status])throw t;n.errorHandlers[e.status](e)}),A(this,"addModule",function(t,e){if(n[t])throw new Error("Invalid module name or module already exists");return P[t]=e,n[t]=new e(n),n}),A(this,"setErrorHandlers",function(t){var e=Object.keys(t).reduce(function(e,r){var o=e;return r in n.errorHandlers?(o[r]=t[r],o):e},{});n.errorHandlers=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?j(Object(n),!0).forEach(function(e){A(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({},e)}),A(this,"apiCall",function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return new Promise(function(e,o){t.apply(void 0,r).then(e).catch(function(t){try{n.handleError(t),o(t)}catch(t){o(t)}})})}),this.errorHandlers={401:null,404:null,500:null},this.adapter=new g({credentials:"same-origin",mode:"no-cors"}),this.corsAdapter=new g({credentials:"same-origin",mode:"cors"}),e.modules)for(var r=0,o=Object.keys(e.modules);r<o.length;r++){var i=o[r];this.addModule(i,e.modules[i])}},(e=[{key:"token",set:function(t){this.accessToken=t,this.adapter.setBearerAuthenticationToken(this.accessToken)}}])&&S(t.prototype,e),n&&S(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),E=(n(28706),n(40875),n(10287),n(60825),n(3976));function C(t){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},C(t)}function R(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function I(t,e,n){return(e=L(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,L(r.key),r)}}function L(t){var e=function(t,e){if("object"!=C(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==C(e)?e:e+""}var N=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.api=e,this.baseUrl=""},e=[{key:"adapter",get:function(){return this.api.adapter}},{key:"corsAdapter",get:function(){return this.api.corsAdapter}},{key:"getFullPath",value:function(t){return r.resolve(this.baseUrl,t)}},{key:"runGetByIdRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return this.api.apiCall(function(e,o){return n.adapter.get(n.getFullPath(t),function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?R(Object(n),!0).forEach(function(e){I(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({id:e},o),r,i)},e,o)}},{key:"runListApiRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.api.apiCall(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n.adapter.get(n.getFullPath(t),e,r,o)},e)}},{key:"runCreateApiRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};return"cors"===(arguments.length>3&&void 0!==arguments[3]?arguments[3]:"")?this.api.apiCall(function(e){return n.corsAdapter.post(n.getFullPath(t),e,r,o,i)},e):this.api.apiCall(function(e){return n.adapter.post(n.getFullPath(t),e,r,o,i)},e)}},{key:"runPutApiRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.api.apiCall(function(e){return n.adapter.put(n.getFullPath(t),e,r,o)},e)}},{key:"runPatchApiRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.api.apiCall(function(e){return n.adapter.patch(n.getFullPath(t),e,r,o)},e)}},{key:"runDeleteApiRequest",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.api.apiCall(function(e){return n.adapter.del(n.getFullPath(t),{id:e},r,o)},e)}}],e&&_(t.prototype,e),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function k(t){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function q(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function D(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q(Object(n),!0).forEach(function(e){G(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function H(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,x(r.key),r)}}function F(t,e,n){return e=B(e),function(t,e){if(e&&("object"==k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,U()?Reflect.construct(e,n||[],B(t).constructor):e.apply(t,n))}function U(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(U=function(){return!!t})()}
1function B(t){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},B(t)}function M(t,e){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},M(t,e)}function G(t,e,n){return(e=x(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function x(t){var e=function(t,e){if("object"!=k(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==k(e)?e:e+""}var K={BLOG_POSTS:"blog_ajax/loadblogentries/:category",PRESSROOM_ENTRIES:"press_ajax/loadpressentries/",CONFIG:"/config.json",FLIGHTS:"/mobile/schedule/flights.json",SCHEDULE_FLIGHTS:"/schedule/flights.json",STATUS:"/status/flights.json",BOOK_FLIGHT:"/amadeusibe/redirect.json",SALECYCLE_REDIRECT:"/amadeusibe/salecycle_redirect.json",TRAVEL_INSPIRATION_ACTIVITIES:"/".concat(_BASE_PATH,"/travel/activities"),TRAVEL_INSPIRATION_DESTINATIONS:"/".concat(_BASE_PATH,"/travel/destinations"),MAGAZINE_ENTRIES:"magazine/loadMore",DESTINATIONS:"/".concat(_BASE_PATH,"/farefinder.json"),CLOSEST_AIRPORT:"/location/closestairport.json",AUTHENTICATE:"/sf/extid/authenticate",LOGOUT:"/logout",CHECK_IN_LISTS:"/mobile/checkinairports.json",CHECK_IN:"/amadeusibe/checkin.json",MMB:"/amadeusibe/mmb.json",CONTACT_FORM:"/contactus.json?language=".concat(_LANG),UPGRADE:"/plusgrade/response.json",NEWSLETTER:"/member/newsletter.json",COUNTRIES_NEWSLETTER:"/member/countries.json?language=".concat(_LANG),SEND_EMAIL:"/forms/sendemail.json",PRICES_ONEWAY:"/prices/oneway.json",PRICES_ROUNDTRIP:"/prices/roundtrip.json",MK_CONNECT:"/mkconnect/deeplink.json"},W={"Content-Type":"application/json","Cache-Control":"no-cache"},V=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return G(t=F(this,e,[].concat(r)),"listBlogEntries",function(e){return t.runListApiRequest(K.BLOG_POSTS,e,{contentType:"text/html"})}),G(t,"listPressroomEntries",function(e){return t.runListApiRequest(K.PRESSROOM_ENTRIES,e,{contentType:"text/html"})}),G(t,"listFlights",function(e){return t.runListApiRequest(K.FLIGHTS,e)}),G(t,"runFlightSchedule",function(e){return t.runListApiRequest(K.SCHEDULE_FLIGHTS,e)}),G(t,"listStatus",function(e){return t.runListApiRequest(K.STATUS,e)}),G(t,"listTravelActivities",function(e){return t.runListApiRequest(K.TRAVEL_INSPIRATION_ACTIVITIES,e,{contentType:"text/html"})}),G(t,"listTravelDestinations",function(e){return t.runListApiRequest(K.TRAVEL_INSPIRATION_DESTINATIONS,e,{contentType:"text/html"})}),G(t,"listMagazineEntries",function(e){return t.runListApiRequest(K.MAGAZINE_ENTRIES,e,{contentType:"text/html"})}),G(t,"postSalesforceAuthentication",function(e){return t.runCreateApiRequest(K.AUTHENTICATE,e)}),G(t,"runLogout",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K.LOGOUT,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:W;return t.runCreateApiRequest(e,n,r)}),G(t,"listDestinations",function(e){return t.runListApiRequest(K.DESTINATIONS,e)}),G(t,"getClosestAirport",function(e,n){return t.runListApiRequest(K.CLOSEST_AIRPORT,e,n)}),G(t,"checkInLists",function(e){return t.runListApiRequest(K.CHECK_IN_LISTS,e)}),G(t,"getDepartures",function(e,n,r){return t.runListApiRequest(function(t){return"/departure.json?language=".concat(_LANG,"&flightStatus=").concat(t)}(e),n,r)}),G(t,"getArrivals",function(e,n,r,o){return t.runListApiRequest(function(t,e){return"/arrival.json?language=".concat(_LANG,"&iata=").concat(t,"&flightStatus=").concat(e)}(e,n),r,o)}),G(t,"runBookAFlight",function(e){return t.runCreateApiRequest(K.BOOK_FLIGHT,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"runBookAFlightViaMKConnect",function(e){return t.runCreateApiRequest(K.MK_CONNECT,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"runSaleCycleRedirect",function(e){return t.runCreateApiRequest(K.SALECYCLE_REDIRECT,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"runRedirectBooking",function(e){return t.runCreateApiRequest(e)}),G(t,"runCheckIn",function(e){return t.runListApiRequest(K.CHECK_IN,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"runMMB",function(e){return t.runCreateApiRequest(K.MMB,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"getOfficesList",function(){return t.runListApiRequest(K.CONTACT_FORM)}),G(t,"runUpgradeRequest",function(e){return t.runListApiRequest((0,E.O2)(K.UPGRADE,e),{},{"Content-Type":"application/json"},"cors")}),G(t,"getCountriesForNewsletter",function(){return t.runListApiRequest(K.COUNTRIES_NEWSLETTER,{},{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"runSubmitToNewsletter",function(e){return t.runListApiRequest(K.NEWSLETTER,e,{"Content-Type":"application/json","Cache-Control":"no-cache"})}),G(t,"postFormEmail",function(e){return t.runCreateApiRequest(K.SEND_EMAIL,e)}),G(t,"getPricesOneway",function(e){return t.runListApiRequest((0,E.O2)(K.PRICES_ONEWAY,D({},e)))}),G(t,"getPricesRoundTrip",function(e){return t.runListApiRequest((0,E.O2)(K.PRICES_ROUNDTRIP,D({},e)))}),G(t,"getSpecialOfferInfo",function(e){return t.runListApiRequest(function(t){return"/special-offer/".concat(t,"/info.json")}(e))}),G(t,"getSpecialOfferPricesOnewayTrip",function(e,n){return t.runListApiRequest((0,E.O2)(function(t){return"/special-offer/".concat(t,"/prices/oneway.json")}(e),D({},n)))}),G(t,"getSpecialOfferPricesRoundTrip",function(e,n){return t.runListApiRequest((0,E.O2)(function(t){return"/special-offer/".concat(t,"/prices/roundtrip.json")}(e),D({},n)))}),t}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&M(t,e)}(e,t),n=e,r&&H(n.prototype,r),o&&H(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(N);function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}function $(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tt(r.key),r)}}function Y(t,e,n){return e=Q(e),function(t,e){if(e&&("object"==z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,Z()?Reflect.construct(e,n||[],Q(t).constructor):e.apply(t,n))}function Z(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Z=function(){return!!t})()}
1function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function J(t,e){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},J(t,e)}function X(t,e,n){return(e=tt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tt(t){var e=function(t,e){if("object"!=z(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==z(e)?e:e+""}var et,nt="account.json",rt="requirements.json",ot="recent_searches",it="upcoming_booking";var ut=(et||(et=new T({modules:{local:V,profile:function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),X(n=Y(this,e,[t]),"registerNewAccount",function(t){return n.runCreateApiRequest(nt,t)}),X(n,"getDropDownDataForRegisterAccount",function(t){return n.runListApiRequest(rt,t)}),X(n,"getRecentSearchesForUser",function(t){return n.runListApiRequest(ot,t,{contentType:"text/html"})}),X(n,"postFlightSearchHistoryItem",function(t){return n.runCreateApiRequest(ot,t)}),X(n,"getUpcomingBooking",function(t){return n.runListApiRequest(it,t)}),n.baseUrl="profile/",n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&J(t,e)}(e,t),n=e,r&&$(n.prototype,r),o&&$(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(N)}})),et)},32012:function(t,e,n){"use strict";n.d(e,{$9:function(){return A},$s:function(){return h},Iw:function(){return g},LH:function(){return S},Xb:function(){return d},Zj:function(){return O},_b:function(){return j},_d:function(){return b},ly:function(){return m},wb:function(){return v}});n(52675),n(89463),n(2259),n(45700),n(28706),n(33771),n(2008),n(23418),n(74423),n(23792),n(62062),n(34782),n(89572),n(62010),n(2892),n(83851),n(81278),n(79432),n(26099),n(3362),n(27495),n(38781),n(21699),n(47764),n(23500),n(62953);var r=n(72346),o=n(29468),i=n(32708),u=n(3694),c=n(92998),a=n(86828);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==l(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=function(){},h=function(t){return t},d=function(t){return new Promise(function(e){return e(t)})},v=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=document.querySelector("#loading-spinner");e&&(e.style.display=t?"block":"none")},m=function(t,e){var n,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(_LOCALE){var a,l=_LOCALE.split("_");n="zh"===l[0]?u.A:null!==(a=o[l[0]])&&void 0!==a?a:i.A}else n=i.A;return(0,r.A)(t,e,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach(function(e){y(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({locale:n},c))},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3;return(0,a.A)(t)?Array.from({length:2*e+1}).fill(t).map(function(t,n){return(0,c.A)(t,n-e)}):[]},O=function(t){return"hidden"!==t.getAttribute("type")&&"none"!==t.style.display},j=function(){return{width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}},S=function(t,e){if(!(0,a.A)(t))return"";var n=s((0,r.A)(t,e).split(" "),3),o=n[0],i=n[1],u=n[2],c=Translator.trans(i),l=_LOCALE,f=u?"".concat(u,"å¹´"):"",p="".concat(o,"æ¥");return l.includes("zh")?"".concat(f).concat(c).concat(p):"".concat(o," ").concat(c," ").concat(u||"")},A=function(t){var e=s(t.split(" "),3),n=e[0],r=e[1],o=e[2],i=Translator.trans(o),u=Translator.trans(n),c=_LANG;return c.includes("zh")?"".concat(u," ").concat(i).concat(r,"æ¥"):c.includes("fr")?"".concat(u," ").concat(r," ").concat(i).toLowerCase():"".concat(u," ").concat(r," ").concat(i)}},3976:function(t,e,n){"use strict";n.d(e,{O2:function(){return y},S6:function(){return b},aR:function(){return p},nC:function(){return h},uP:function(){return f},xF:function(){return d}});n(52675),n(89463),n(2259),n(45700),n(28706),n(2008),n(50113),n(23418),n(23792),n(34782),n(89572),n(62010),n(2892),n(83851),n(81278),n(79432),n(26099),n(27495),n(38781),n(47764),n(23500),n(62953);var r=n(32012);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,u,c=[],a=!0,l=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);a=!0);}catch(t){l=!0,o=t}finally{try{if(!a&&null!=n.return&&(u=n.return(),Object(u)!==u))return}finally{if(l)throw o}}return c}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach(function(e){s(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=function(t,e){return e.reduce(function(e,n){var o=n.normalize||r.$s;return l(l({},e),{},s({},n.name,o(t[n.name],t)))},{})},p=function(t){var e,n={},r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}(t.entries());try{for(r.s();!(e=r.n()).done;)for(var o=i(e.value,2),c=o[0],a=o[1],l=Object.keys(a),s=0,f=l;s<f.length;s++){var p=f[s];if("flightIndex"!==p)n["".concat(p.slice(0,-1)).concat(c+1)]=a[p]}}catch(t){r.e(t)}finally{r.f()}return n},y=function(t){var e=l({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=Object.keys(e).reduce(function(t,n){var r=null!==e[n]&&void 0!==e[n]?"".concat(n,"=").concat(e[n]):"";return""===t?r:""===r?t:"".concat(t,"&").concat(r)},"");return n?"".concat(t,"?").concat(n):t},b=function(t,e){var n=document.createElement("form");n.method="POST",n.type="submit",n.action=e,n.classList.add("hidden");for(var r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],u=document.createElement("input");u.type="text",u.name=i,u.value=t[i],n.append(u)}var c=document.createElement("button");return c.type="submit",c.textContent="Submit",n.append(c),n},h=function(t,e){var n;return!(!t||!e)&&(null===(n=e.find(function(e){return e.iata===t}))||void 0===n?void 0:n.shortHaul)},d=function(t,e){var n;return!(!t||!e)&&(null===(n=e.find(function(e){return e.iata===t}))||void 0===n?void 0:n.midHaul)}},42634:function(){}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.