vendor: 2,846 bytes, line 1
1(()=>{"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,n(o.key),o)}}function n(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!=e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
1function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var d={required:function(e){return!!e&&!!e.toString().trim().length},email:function(e){return/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)i/.test(e)}};const v=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=u(this,t)).form=e instanceof HTMLElement?e:document.querySelector(e),!n.form)throw new Error("ValidateForm: param form(element or selector) is required");return n.touch=!1,n.form.addEventListener("input",n.revalidation.bind(n),{passive:!0}),n.form.addEventListener("change",n.revalidation.bind(n),{passive:!0}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,r=[{key:"validate",value:function(){var e=this;this.touch=!0;var t=Object.keys(this.rules).reduce((function(t,n){return t[n]=e.rules[n](e.form[n].value),t}),{});return this.showErrors(t),!Object.values(t).filter((function(e){return!e})).length}},{key:"showErrors",value:function(e){var t=this;Object.keys(e).forEach((function(n){var r=t.form[n]instanceof NodeList?o(t.form[n]):[t.form[n]];e[n]?r.forEach((function(e){return e.classList.remove("invalid")})):r.forEach((function(e){return e.classList.add("invalid")}))}))}},{key:"revalidation",value:function(e){if(this.touch){var t=e.target;if(this.rules[t.name]){var n=this.rules[t.name](t.value);this.showErrors(function(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t.name,n))}}}}],r&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(function(){return e=function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.emiter={all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map((function(e){e(n)})),(r=t.get("*"))&&r.slice().map((function(t){t(e,n)}))}}},(n=[{key:"emit",value:function(e,t){this.emiter.emit(e,t)}},{key:"on",value:function(e,t){this.emiter.on(e,t)}},{key:"off",value:function(e,t){this.emiter.off(e,t)}}])&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,n,r}());var y=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).type,t=void 0===e?"":e,n="&label=".concat(encodeURIComponent(window.location.host));return window.shared.options.page&&(n+="-".concat(window.shared.options.page)),t&&(n+="-".concat(t)),n+="-w".concat(window.shared.options.log.wsl),window.shared.options.pid&&(n+="-pid".concat(window.shared.options.pid)),window.shared.options.gdid&&(n+="-pbid".concat(window.shared.options.gdid)),n};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function h(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,w(r.key),r)}}function w(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}var g,S,O,E,j,P=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},k=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},x="[Analytics:Manager] Initialization failed",T="[Analytics:Manager] Adapter already registered:",I="[Analytics:Manager] Adapter not found:",A=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g.add(this),E.set(this,new Map)},n=[{key:"getInstance",value:function(){return P(S,S,"f",O)||k(S,S,new S,"f",O),P(S,S,"f",O)}}],(t=[{key:"setAdapter",value:function(e){P(this,E,"f").has(e.name)?console.error(T,e.name):P(this,E,"f").set(e.name,{instance:e,isReady:!1,isInitializing:!1,queue:[]})}},{key:"removeAdapter",value:function(e){var t=P(this,E,"f").get(e);t?(t.instance.destroy(),P(this,E,"f").delete(e)):console.error(I,e)}},{key:"init",value:function(){var e=this;P(this,E,"f").forEach((function(t){t.isReady||t.isInitializing||(t.isInitializing=!0,t.instance.init().then((function(n){n&&(t.isReady=!0,P(e,g,"m",j).call(e,t))})).catch((function(e){console.error(x,e),t.queue=[]})).finally((function(){t.isInitializing=!1})))}))}},{key:"sendEvent",value:function(e,t){return!!P(this,E,"f").size&&(P(this,E,"f").forEach((function(n){n.isReady?n.instance.sendEvent(e,t):n.queue.push({action:e,data:t})})),!0)}},{key:"addGlobalProperties",value:function(e){return!!P(this,E,"f").size&&(P(this,E,"f").forEach((function(t){return t.instance.addGlobalProperties(e)})),!0)}},{key:"checkUserChanged",value:function(){return h(P(this,E,"f").values()).map((function(e){return e.instance.checkUserChanged()})).some(Boolean)}},{key:"destroy",value:function(){P(this,E,"f").forEach((function(e){return e.instance.destroy()})),P(this,E,"f").clear()}}])&&b(e.prototype,t),n&&b(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();
1S=A,E=new WeakMap,g=new WeakSet,j=function(e){for(;e.queue.length>0;){var t=e.queue.shift();e.instance.sendEvent(t.action,t.data)}},O={value:null};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,C(r.key),r)}}function C(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_(t)?t:t+""}var M,q,U,z,L,R,N,F,B,G,W,$,J,H,V=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},K=function(e,t,n,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,n):o?o.value=n:t.set(e,n),n},Q={linear:!1,log:!1,done:!1},X={name:"",done:!1,once:!1,type:"default"},Y="[EventSender] Initialization failed: 'category' property is required.",Z="[EventSender] Initialization failed: 'events' array is required when 'linear' mode is enabled.",ee="[EventSender] Cannot send event: event not found in configuration.",te="[EventSender] Cannot send event: this 'once' event has already been sent.",ne="[EventSender] Cannot send event: previous events in sequence have not been sent yet.",re="[EventSender] Event sent successfully.",oe="[EventSender] checkEventDone failed: event name not found.",ie="[EventSender] checkEventsDone failed: type must be 'all' or 'any'.",ae="[EventSender] Initialization failed:",ce="[EventSender] Failed to send analytics event:",ue=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),M.add(this),q.set(this,null),U.set(this,{}),V(this,M,"m",z).call(this,t)},t=[{key:"send",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};V(this,M,"m",$).call(this,e,t)}},{key:"startTimer",value:function(e){V(this,U,"f")[e]={from:Date.now()}}},{key:"checkDone",value:function(){var e,t;return null!==(t=null===(e=V(this,q,"f"))||void 0===e?void 0:e.done)&&void 0!==t&&t}},{key:"setDone",value:function(){V(this,q,"f")&&(V(this,q,"f").done=!0,V(this,M,"m",L).call(this,V(this,q,"f")))}},{key:"checkEventDone",value:function(e){var t=V(this,M,"m",B).call(this,e);if(!t)throw new Error("".concat(oe," Event name - ").concat(e));return t.done}},{key:"checkEventsDone",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"any";if(!(null===(e=V(this,q,"f"))||void 0===e?void 0:e.events))return!1;if("all"===t)return V(this,q,"f").events.every((function(e){return e.done}));if("any"===t)return V(this,q,"f").events.some((function(e){return e.done}));throw new Error("".concat(ie," Event type - ").concat(t))}}],n=[{key:"addGlobalProperty",value:function(e,t){return A.getInstance().addGlobalProperties((n={},o=t,(r=C(r=e))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}},{key:"addGlobalProperties",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A.getInstance().addGlobalProperties(e)}}],t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();function le(e){return le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}q=new WeakMap,U=new WeakMap,M=new WeakSet,z=function(e){var t,n,r;try{A.getInstance().checkUserChanged()&&function(e){if("undefined"!=typeof window)try{localStorage.removeItem(e)}catch(t){console.warn("[localStorage] Failed to remove value for key:",e)}}("".concat(e.category,"-event"));var o=function(e){if("undefined"==typeof window)return null;try{var t=localStorage.getItem(e);return t?JSON.parse(t):null}catch(e){return null}}("".concat(e.category,"-event"));if(o&&V(this,M,"m",R).call(this,o))K(this,q,o,"f");else{var i=V(this,M,"m",F).call(this,e.events),a=Object.assign(Object.assign({},Q),{category:e.category,linear:null!==(t=e.linear)&&void 0!==t?t:Q.linear,log:null!==(n=e.log)&&void 0!==n?n:Q.log,done:null!==(r=e.done)&&void 0!==r?r:Q.done,events:i});if(!V(this,M,"m",R).call(this,a))return;K(this,q,a,"f"),V(this,M,"m",L).call(this,V(this,q,"f"))}}catch(e){console.error(ae,e)}},L=function(e){!function(e,t){if("undefined"!=typeof window)try{localStorage.setItem(e,JSON.stringify(t))}catch(t){console.warn("[localStorage] Failed to save value for key:",e)}}("".concat(e.category,"-event"),e)},R=function(e){var t;try{if(!(null==e?void 0:e.category))throw new Error(Y);if((null==e?void 0:e.linear)&&!(null===(t=null==e?void 0:e.events)||void 0===t?void 0:t.length))throw new Error(Z)}catch(e){return e instanceof Error&&V(this,M,"m",W).call(this,e.message),!1}return!0},N=function(e){var t=V(this,M,"m",B).call(this,e);t&&(t.done=!0)},F=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map((function(e){var t="string"==typeof e?{name:e}:e;return Object.assign(Object.assign({}
1,X),t)}))},B=function(e){var t;return null===(t=V(this,q,"f"))||void 0===t?void 0:t.events.find((function(t){return t.name===e}))},G=function(e){if(!V(this,q,"f"))return!1;var t=V(this,q,"f").events,n=t.indexOf(e);return t.slice(0,n).every((function(e){return e.done}))},W=function(e){var t;(null===(t=V(this,q,"f"))||void 0===t?void 0:t.log)&&console.warn(e)},$=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(V(this,M,"m",R).call(this,V(this,q,"f"))){var r=V(this,M,"m",B).call(this,e);if(r)if(r.once&&r.done){var o="".concat(te," Event name - '").concat(r.name,"'");V(this,M,"m",W).call(this,o)}else if(!(null===(t=V(this,q,"f"))||void 0===t?void 0:t.linear)||V(this,M,"m",G).call(this,r)){var i="time"===r.type?V(this,M,"m",J).call(this,e,n):n;V(this,M,"m",H).call(this,r.name,i),V(this,M,"m",W).call(this,"".concat(re," Event - '").concat(r.name,"'")),V(this,M,"m",N).call(this,r.name),V(this,M,"m",L).call(this,V(this,q,"f"))}else{var a="".concat(ne," Event name - '").concat(r.name,"'");V(this,M,"m",W).call(this,a)}else V(this,M,"m",W).call(this,"".concat(ee," Event name - '").concat(e,"'"))}},J=function(e,t){var n=V(this,U,"f")[e];if(!(null==n?void 0:n.from))return t;var r=Math.floor((Date.now()-n.from)/1e3);return delete V(this,U,"f")[e],Object.assign(Object.assign({},t),{interaction_time_in_sec:r})},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({},t);n.event_id||(n.event_id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))),A.getInstance().sendEvent(e,n)||console.error(ce,e)};var fe=["additionalParams"];function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],u=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return de(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?de(e,t):void 0}}(e,t)||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 de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ve(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ye(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ve(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he;try{var me,be,we,ge;he={logID:null===(me=shared.options)||void 0===me||null===(me=me.log)||void 0===me?void 0:me.id,postID:null===(be=shared.options)||void 0===be?void 0:be.pid,wsTrack:null===(we=shared.options)||void 0===we||null===(we=we.log)||void 0===we?void 0:we.wsl,selfAid:null===(ge=shared.options)||void 0===ge?void 0:ge.maid}}catch(e){throw new Error("Fail to create DEFAULT_LABEL_OPTIONS: ",e)}const Se=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.additionalParams,n=void 0===t?{}:t,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,fe),o=ye(ye(ye({},he),r),{},{additionalParams:JSON.stringify(n)});return Object.entries(o).reduce((function(e,t){var n=se(t,2),r=n[0],o=n[1];return e.replace("[".concat(r,"]"),o)}),"[type]||[logID]||[postID]||[wsTrack]||[selfAid]||[partnerUrl]||[additionalParams]")};var Oe=new ue({category:"clickunder",events:["open"]});const Ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type,n=void 0===t?null:t,r=e.partnerUrl,o=void 0===r?null:r,i=e.additionalParams,a=Se({type:n,partnerUrl:o,additionalParams:void 0===i?{}:i});Oe.send("open",{category:"clickunder",customLabelString:a})};function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ke(r.key),r)}}function ke(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==je(t)?t:t+""}function xe(e,t,n){return t=Ie(t),function(e,t){if(t&&("object"==je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Te()?Reflect.construct(t,n||[],Ie(e).constructor):t.apply(e,n))}function Te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Te=function(){return!!e})()}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(e)}function Ae(e,t){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ae(e,t)}var _e=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=xe(this,t,[e])).rules={ss:d.required},n.form.addEventListener("submit",n.submit.bind(n)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ae(e,t)}(t,e),n=t,r=[{key:"submit",value:function(e){if(e.preventDefault(),this.validate()){var t="searchform",n=new FormData(this.form),r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new URLSearchParams(e);e.aid||n.set("aid",shared.options.aid);var r=y(t);return"".concat("https://www.booking.com/searchresults.html","?").concat(n.toString()).concat(r)}(Object.fromEntries(n.entries()),{type:t});Ee({type:t,partnerUrl:r}
1),window.open(r),this.emit("after_submit"),this.touch=!1,this.form.reset()}}}],r&&Pe(n.prototype,r),o&&Pe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,o}(v);document.querySelector("#search-form")&&new _e("#search-form")})(); 2//# sourceMappingURL=hub-page_2.js.map
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.