PageSourceSearch

https://www.plataforma10.com.br/_next/static/chunks/2mtkbf6vbtk-g.js

js plataforma10.com.br collected 2026-10-08 20:28:06 UTC 77,239 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,801419,(e,r,t)=>{r.exports=e.r(841920)(e.r(139088),"DataView")},687362,(e,r,t)=>{r.exports=e.r(841920)(e.r(139088),"Map")},717074,(e,r,t)=>{r.exports=e.r(841920)(e.r(139088),"Promise")},106966,(e,r,t)=>{r.exports=e.r(841920)(e.r(139088),"Set")},263750,(e,r,t)=>{r.exports=e.r(139088).Uint8Array},75331,(e,r,t)=>{r.exports=function(e){var r=-1,t=Array(e.size);return e.forEach(function(e,n){t[++r]=[n,e]}),t}},573895,(e,r,t)=>{r.exports=e.r(841920)(e.r(139088),"WeakMap")},458877,(e,r,t)=>{var n=e.r(855803),o=e.r(473250),a=e.r(45350),i=e.r(356956),c=e.r(66397),u=e.r(3023),s=Object.prototype.hasOwnProperty;r.exports=function(e,r){var t=a(e),l=!t&&o(e),p=!t&&!l&&i(e),m=!t&&!l&&!p&&u(e),_=t||l||p||m,v=_?n(e.length,String):[],d=v.length;for(var f in e)(r||s.call(e,f))&&!(_&&("length"==f||p&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||c(f,d)))&&v.push(f);return v}},169102,(e,r,t)=>{r.exports=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e}},851477,(e,r,t)=>{r.exports=function(e,r){for(var t=-1,n=null==e?0:e.length;++t<n;)if(r(e[t],t,e))return!0;return!1}},134314,(e,r,t)=>{var n=e.r(25172);r.exports=function(e,r){for(var t=e.length;t--;)if(n(e[t][0],r))return t;return -1}},419206,(e,r,t)=>{var n=e.r(134314),o=Array.prototype.splice;r.exports=function(e){var r=this.__data__,t=n(r,e);return!(t<0)&&(t==r.length-1?r.pop():o.call(r,t,1),--this.size,!0)}},467763,(e,r,t)=>{var n=e.r(134314);r.exports=function(e){var r=this.__data__,t=n(r,e);return t<0?void 0:r[t][1]}},523407,(e,r,t)=>{var n=e.r(134314);r.exports=function(e){return n(this.__data__,e)>-1}},553833,(e,r,t)=>{var n=e.r(134314);r.exports=function(e,r){var t=this.__data__,o=n(t,e);return o<0?(++this.size,t.push([e,r])):t[o][1]=r,this}},729039,(e,r,t)=>{var n=e.r(665742),o=e.r(419206),a=e.r(467763),i=e.r(523407),c=e.r(553833);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=c,r.exports=u},333141,(e,r,t)=>{var n=e.r(186287),o=e.r(2054);r.exports=function(e,r){r=n(r,e);for(var t=0,a=r.length;null!=e&&t<a;)e=e[o(r[t++])];return t&&t==a?e:void 0}},823403,(e,r,t)=>{var n=e.r(169102),o=e.r(45350);r.exports=function(e,r,t){var a=r(e);return o(e)?a:n(a,t(e))}},536100,(e,r,t)=>{r.exports=function(e,r){for(var t=-1,n=null==e?0:e.length,o=0,a=[];++t<n;){var i=e[t];r(i,t,e)&&(a[o++]=i)}return a}},45159,(e,r,t)=>{r.exports=function(){return[]}},717332,(e,r,t)=>{var n=e.r(536100),o=e.r(45159),a=Object.prototype.propertyIsEnumerable,i=Object.getOwnPropertySymbols;r.exports=i?function(e){return null==e?[]:n(i(e=Object(e)),function(r){return a.call(e,r)})}:o},240688,(e,r,t)=>{r.exports=function(e,r){return null!=e&&r in Object(e)}},13221,(e,r,t)=>{var n=e.r(377684),o=e.r(877289);r.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},473250,(e,r,t)=>{var n=e.r(13221),o=e.r(877289),a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable;r.exports=n(function(){return arguments}())?n:function(e){return o(e)&&i.call(e,"callee")&&!c.call(e,"callee")}},178353,(e,r,t)=>{var n=e.r(901551),o=e.r(206856),a=e.r(678012),i=e.r(330698),c=e.r(367426),u=e.r(45350),s=e.r(356956),l=e.r(3023),p="[object Arguments]",m="[object Array]",_="[object Object]",v=Object.prototype.hasOwnProperty;r.exports=function(e,r,t,d,f,E){var h=u(e),y=u(r),I=h?m:c(e),g=y?m:c(r);I=I==p?_:I,g=g==p?_:g;var S=I==_,T=g==_,N=I==g;if(N&&s(e)){if(!s(r))return!1;h=!0,S=!1}if(N&&!S)return E||(E=new n),h||l(e)?o(e,r,t,d,f,E):a(e,r,I,t,d,f,E);if(!(1&t)){var C=S&&v.call(e,"__wrapped__"),b=T&&v.call(r,"__wrapped__");
1if(C||b){var D=C?e.value():e,R=b?r.value():r;return E||(E=new n),f(D,R,t,d,E)}}return!!N&&(E||(E=new n),i(e,r,t,d,f,E))}},421885,(e,r,t)=>{var n=e.r(178353),o=e.r(877289);r.exports=function e(r,t,a,i,c){return r===t||(null!=r&&null!=t&&(o(r)||o(t))?n(r,t,a,i,e,c):r!=r&&t!=t)}},748299,(e,r,t)=>{var n=e.r(901551),o=e.r(421885);r.exports=function(e,r,t,a){var i=t.length,c=i,u=!a;if(null==e)return!c;for(e=Object(e);i--;){var s=t[i];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<c;){var l=(s=t[i])[0],p=e[l],m=s[1];if(u&&s[2]){if(void 0===p&&!(l in e))return!1}else{var _=new n;if(a)var v=a(p,m,l,e,r,_);if(!(void 0===v?o(m,p,3,a,_):v))return!1}}return!0}},54368,(e,r,t)=>{var n=e.r(771223),o=e.r(269553),a=e.r(12447),i=e.r(776366),c=/^\[object .+?Constructor\]$/,u=Object.prototype,s=Function.prototype.toString,l=u.hasOwnProperty,p=RegExp("^"+s.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");r.exports=function(e){return!(!a(e)||o(e))&&(n(e)?p:c).test(i(e))}},263958,(e,r,t)=>{r.exports=function(e,r){return null==e?void 0:e[r]}},841920,(e,r,t)=>{var n=e.r(54368),o=e.r(263958);r.exports=function(e,r){var t=o(e,r);return n(t)?t:void 0}},476602,(e,r,t)=>{var n=e.r(377684),o=e.r(98376),a=e.r(877289),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,r.exports=function(e){return a(e)&&o(e.length)&&!!i[n(e)]}},601079,(e,r,t)=>{r.exports=function(e){return function(r){return null==r?void 0:r[e]}}},430970,(e,r,t)=>{var n=e.r(333141);r.exports=function(e){return function(r){return n(r,e)}}},433906,(e,r,t)=>{var n=e.r(601079),o=e.r(430970),a=e.r(9903),i=e.r(2054);r.exports=function(e){return a(e)?n(i(e)):o(e)}},666305,(e,r,t)=>{var n=e.r(623426),o=e.r(772298),a=e.r(653336),i=e.r(45350),c=e.r(433906);r.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?i(e)?o(e[0],e[1]):n(e):c(e)}},100432,(e,r,t)=>{r.exports=function(e,r){for(var t,n=-1,o=e.length;++n<o;){var a=r(e[n]);void 0!==a&&(t=void 0===t?a:t+a)}return t}},656003,(e,r,t)=>{var n=e.r(666305),o=e.r(100432);r.exports=function(e,r){return e&&e.length?o(e,n(r,2)):0}},855803,(e,r,t)=>{r.exports=function(e,r){for(var t=-1,n=Array(e);++t<e;)n[t]=r(t);return n}},233999,(e,r,t)=>{r.exports=function(e){return function(r){return e(r)}}},315262,(e,r,t)=>{r.exports=function(e,r){return e.has(r)}},186287,(e,r,t)=>{var n=e.r(45350),o=e.r(9903),a=e.r(902677),i=e.r(702922);r.exports=function(e,r){return n(e)?e:o(e,r)?[e]:a(i(e))}},853789,(e,r,t)=>{r.exports=e.r(139088)["__core-js_shared__"]},269553,(e,r,t)=>{var n,o=e.r(853789),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";r.exports=function(e){return!!a&&a in e}},206856,(e,r,t)=>{var n=e.r(27493),o=e.r(851477),a=e.r(315262);r.exports=function(e,r,t,i,c,u){var s=1&t,l=e.length,p=r.length;if(l!=p&&!(s&&p>l))return!1;var m=u.get(e),_=u.get(r);if(m&&_)return m==r&&_==e;var v=-1,d=!0,f=2&t?new n:void 0;for(u.set(e,r),u.set(r,e);++v<l;){var E=e[v],h=r[v];if(i)var y=s?i(h,E,v,r,e,u):i(E,h,v,e,r,u);if(void 0!==y){if(y)continue;d=!1;break}if(f){if(!o(r,function(e,r){if(!a(f,r)&&(E===e||c(E,e,t,i,u)))return f.push(r)})){d=!1;break}}else if(!(E===h||c(E,h,t,i,u))){d=!1;break}}return u.delete(e),u.delete(r),d}},678012,(e,r,t)=>{var n=e.r(630353),o=e.r(263750),a=e.r(25172),i=e.r(206856),c=e.r(75331),u=e.r(899850),s=n?n.prototype:void 0,l=s?s.valueOf:void 0;r.exports=function(e,r,t,n,s,p,m){switch(t){case"[object DataView]":if(e.byteLength!=r.byteLength||e.byteOffset!=r.byteOffset)break;e=e.buffer,r=r.buffer;case"[object ArrayBuffer]":if(e.byteLength!=r.byteLength||!p(new o(e),new o(r)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+r);case"[object Error]":return e.name==r.name&&e.message==r.message;case"[object RegExp]":case"[object String]":return e==r+"";case"[object Map]":var _=c;case"[object Set]":var v=1&n;if(_||(_=u),e.size!=r.size&&!v)break;var d=m.get(e);if(d)return d==r;n|=2,m.set(e,r);var f=i(_(e),_(r),n,s,p,m);return m.delete(e),f;case"[object Symbol]":if(l)return l.call(e)==l.call(r)}return!1}},413370,(e,r,t)=>{var n=e.r(823403),o=e.r(717332),a=e.r(33679);r.exports=function(e){return n(e,a,o)}},330698,(e,r,t)=>{var n=e.r(413370),o=Object.prototype.hasOwnProperty;
1r.exports=function(e,r,t,a,i,c){var u=1&t,s=n(e),l=s.length;if(l!=n(r).length&&!u)return!1;for(var p=l;p--;){var m=s[p];if(!(u?m in r:o.call(r,m)))return!1}var _=c.get(e),v=c.get(r);if(_&&v)return _==r&&v==e;var d=!0;c.set(e,r),c.set(r,e);for(var f=u;++p<l;){var E=e[m=s[p]],h=r[m];if(a)var y=u?a(h,E,m,r,e,c):a(E,h,m,e,r,c);if(!(void 0===y?E===h||i(E,h,t,a,c):y)){d=!1;break}f||(f="constructor"==m)}if(d&&!f){var I=e.constructor,g=r.constructor;I!=g&&"constructor"in e&&"constructor"in r&&!("function"==typeof I&&I instanceof I&&"function"==typeof g&&g instanceof g)&&(d=!1)}return c.delete(e),c.delete(r),d}},741903,(e,r,t)=>{var n=e.r(715782),o=e.r(33679);r.exports=function(e){for(var r=o(e),t=r.length;t--;){var a=r[t],i=e[a];r[t]=[a,i,n(i)]}return r}},165570,(e,r,t)=>{r.exports=function(e,r){return function(t){return null!=t&&t[e]===r&&(void 0!==r||e in Object(t))}}},623426,(e,r,t)=>{var n=e.r(748299),o=e.r(741903),a=e.r(165570);r.exports=function(e){var r=o(e);return 1==r.length&&r[0][2]?a(r[0][0],r[0][1]):function(t){return t===e||n(t,e,r)}}},367426,(e,r,t)=>{var n=e.r(801419),o=e.r(687362),a=e.r(717074),i=e.r(106966),c=e.r(573895),u=e.r(377684),s=e.r(776366),l="[object Map]",p="[object Promise]",m="[object Set]",_="[object WeakMap]",v="[object DataView]",d=s(n),f=s(o),E=s(a),h=s(i),y=s(c),I=u;(n&&I(new n(new ArrayBuffer(1)))!=v||o&&I(new o)!=l||a&&I(a.resolve())!=p||i&&I(new i)!=m||c&&I(new c)!=_)&&(I=function(e){var r=u(e),t="[object Object]"==r?e.constructor:void 0,n=t?s(t):"";if(n)switch(n){case d:return v;case f:return l;case E:return p;case h:return m;case y:return _}return r}),r.exports=I},215359,(e,r,t)=>{var n=e.r(186287),o=e.r(473250),a=e.r(45350),i=e.r(66397),c=e.r(98376),u=e.r(2054);r.exports=function(e,r,t){r=n(r,e);for(var s=-1,l=r.length,p=!1;++s<l;){var m=u(r[s]);if(!(p=null!=e&&t(e,m)))break;e=e[m]}return p||++s!=l?p:!!(l=null==e?0:e.length)&&c(l)&&i(m,l)&&(a(e)||o(e))}},76590,(e,r,t)=>{var n=e.r(240688),o=e.r(215359);r.exports=function(e,r){return null!=e&&o(e,r,n)}},772298,(e,r,t)=>{var n=e.r(421885),o=e.r(482820),a=e.r(76590),i=e.r(9903),c=e.r(715782),u=e.r(165570),s=e.r(2054);r.exports=function(e,r){return i(e)&&c(r)?u(s(e),r):function(t){var i=o(t,e);return void 0===i&&i===r?a(t,e):n(r,i,3)}}},66397,(e,r,t)=>{var n=/^(?:0|[1-9]\d*)$/;r.exports=function(e,r){var t=typeof e;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==t||"symbol"!=t&&n.test(e))&&e>-1&&e%1==0&&e<r}},9903,(e,r,t)=>{var n=e.r(45350),o=e.r(361884),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;r.exports=function(e,r){if(n(e))return!1;var t=typeof e;return!!("number"==t||"symbol"==t||"boolean"==t||null==e||o(e))||i.test(e)||!a.test(e)||null!=r&&e in Object(r)}},763996,(e,r,t)=>{var n=Object.prototype;r.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||n)}},825717,(e,r,t)=>{r.exports=function(e,r){return function(t){return e(r(t))}}},942369,(e,r,t)=>{r.exports=e.r(825717)(Object.keys,Object)},848477,(e,r,t)=>{var n=e.r(763996),o=e.r(942369),a=Object.prototype.hasOwnProperty;r.exports=function(e){if(!n(e))return o(e);var r=[];for(var t in Object(e))a.call(e,t)&&"constructor"!=t&&r.push(t);return r}},715782,(e,r,t)=>{var n=e.r(12447);r.exports=function(e){return e==e&&!n(e)}},665742,(e,r,t)=>{r.exports=function(){this.__data__=[],this.size=0}},848994,(e,r,t)=>{var n=e.r(734421),o=e.r(729039),a=e.r(687362);r.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),str
1ing:new n}}},224053,(e,r,t)=>{r.exports=function(e){var r=typeof e;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==e:null===e}},487994,(e,r,t)=>{var n=e.r(224053);r.exports=function(e,r){var t=e.__data__;return n(r)?t["string"==typeof r?"string":"hash"]:t.map}},996768,(e,r,t)=>{var n=e.r(487994);r.exports=function(e){var r=n(this,e).delete(e);return this.size-=!!r,r}},929932,(e,r,t)=>{var n=e.r(487994);r.exports=function(e){return n(this,e).get(e)}},892647,(e,r,t)=>{var n=e.r(487994);r.exports=function(e){return n(this,e).has(e)}},446644,(e,r,t)=>{var n=e.r(487994);r.exports=function(e,r){var t=n(this,e),o=t.size;return t.set(e,r),this.size+=+(t.size!=o),this}},587547,(e,r,t)=>{var n=e.r(848994),o=e.r(996768),a=e.r(929932),i=e.r(892647),c=e.r(446644);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=c,r.exports=u},932760,(e,r,t)=>{r.exports=e.r(841920)(Object,"create")},150514,(e,r,t)=>{var n=e.r(932760);r.exports=function(){this.__data__=n?n(null):{},this.size=0}},197617,(e,r,t)=>{r.exports=function(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=!!r,r}},757412,(e,r,t)=>{var n=e.r(932760),o=Object.prototype.hasOwnProperty;r.exports=function(e){var r=this.__data__;if(n){var t=r[e];return"__lodash_hash_undefined__"===t?void 0:t}return o.call(r,e)?r[e]:void 0}},623592,(e,r,t)=>{var n=e.r(932760),o=Object.prototype.hasOwnProperty;r.exports=function(e){var r=this.__data__;return n?void 0!==r[e]:o.call(r,e)}},239004,(e,r,t)=>{var n=e.r(932760);r.exports=function(e,r){var t=this.__data__;return this.size+=+!this.has(e),t[e]=n&&void 0===r?"__lodash_hash_undefined__":r,this}},734421,(e,r,t)=>{var n=e.r(150514),o=e.r(197617),a=e.r(757412),i=e.r(623592),c=e.r(239004);function u(e){var r=-1,t=null==e?0:e.length;for(this.clear();++r<t;){var n=e[r];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=a,u.prototype.has=i,u.prototype.set=c,r.exports=u},180156,(e,r,t)=>{var n=e.r(100236),o=t&&!t.nodeType&&t,a=o&&r&&!r.nodeType&&r,i=a&&a.exports===o&&n.process;r.exports=function(){try{var e=a&&a.require&&a.require("util").types;if(e)return e;return i&&i.binding&&i.binding("util")}catch(e){}}()},3023,(e,r,t)=>{var n=e.r(476602),o=e.r(233999),a=e.r(180156),i=a&&a.isTypedArray;r.exports=i?o(i):n},221274,(e,r,t)=>{r.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},439805,(e,r,t)=>{r.exports=function(e){return this.__data__.has(e)}},27493,(e,r,t)=>{var n=e.r(587547),o=e.r(221274),a=e.r(439805);function i(e){var r=-1,t=null==e?0:e.length;for(this.__data__=new n;++r<t;)this.add(e[r])}i.prototype.add=i.prototype.push=o,i.prototype.has=a,r.exports=i},899850,(e,r,t)=>{r.exports=function(e){var r=-1,t=Array(e.size);return e.forEach(function(e){t[++r]=e}),t}},405400,(e,r,t)=>{var n=e.r(729039);r.exports=function(){this.__data__=new n,this.size=0}},986238,(e,r,t)=>{r.exports=function(e){var r=this.__data__,t=r.delete(e);return this.size=r.size,t}},957831,(e,r,t)=>{r.exports=function(e){return this.__data__.get(e)}},977802,(e,r,t)=>{r.exports=function(e){return this.__data__.has(e)}},320517,(e,r,t)=>{var n=e.r(729039),o=e.r(687362),a=e.r(587547);r.exports=function(e,r){var t=this.__data__;if(t instanceof n){var i=t.__data__;if(!o||i.length<199)return i.push([e,r]),this.size=++t.size,this;t=this.__data__=new a(i)}return t.set(e,r),this.size=t.size,this}},901551,(e,r,t)=>{var n=e.r(729039),o=e.r(405400),a=e.r(986238),i=e.r(957831),c=e.r(977802),u=e.r(320517);function s(e){var r=this.__data__=new n(e);this.size=r.size}s.prototype.clear=o,s.prototype.delete=a,s.prototype.get=i,s.prototype.has=c,s.prototype.set=u,r.exports=s},2054,(e,r,t)=>{var n=e.r(361884),o=1/0;r.exports=function(e){if("string"==typeof e||n(e))return e;var r=e+"";return"0"==r&&1/e==-o?"-0":r}},776366,(e,r,t)=>{var n=Function.prototype.toString;r.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},25172,(e,r,t)=>{r.exports=function(e,r){return e===r||e!=e&&r!=r}},482820,(e,r,t)=>{var n=e.r(333141);
1r.exports=function(e,r,t){var o=null==e?void 0:n(e,r);return void 0===o?t:o}},653336,(e,r,t)=>{r.exports=function(e){return e}},351095,(e,r,t)=>{var n=e.r(771223),o=e.r(98376);r.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},946217,(e,r,t)=>{var n=e.r(848477),o=e.r(367426),a=e.r(473250),i=e.r(45350),c=e.r(351095),u=e.r(356956),s=e.r(763996),l=e.r(3023),p=Object.prototype.hasOwnProperty;r.exports=function(e){if(null==e)return!0;if(c(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||a(e)))return!e.length;var r=o(e);if("[object Map]"==r||"[object Set]"==r)return!e.size;if(s(e))return!n(e).length;for(var t in e)if(p.call(e,t))return!1;return!0}},771223,(e,r,t)=>{var n=e.r(377684),o=e.r(12447);r.exports=function(e){if(!o(e))return!1;var r=n(e);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},98376,(e,r,t)=>{r.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},12447,(e,r,t)=>{r.exports=function(e){var r=typeof e;return null!=e&&("object"==r||"function"==r)}},33679,(e,r,t)=>{var n=e.r(458877),o=e.r(848477),a=e.r(351095);r.exports=function(e){return a(e)?n(e):o(e)}},657588,(e,r,t)=>{var n=e.r(587547);function o(e,r){if("function"!=typeof e||null!=r&&"function"!=typeof r)throw TypeError("Expected a function");var t=function(){var n=arguments,o=r?r.apply(this,n):n[0],a=t.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return t.cache=a.set(o,i)||a,i};return t.cache=new(o.Cache||n),t}o.Cache=n,r.exports=o},688832,(e,r,t)=>{var n=e.r(657588);r.exports=function(e){var r=n(e,function(e){return 500===t.size&&t.clear(),e}),t=r.cache;return r}},902677,(e,r,t)=>{var n=e.r(688832),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g;r.exports=n(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(o,function(e,t,n,o){r.push(n?o.replace(a,"$1"):t||e)}),r})},24013,(e,r,t)=>{r.exports=function(){return!1}},356956,(e,r,t)=>{var n=e.r(139088),o=e.r(24013),a=t&&!t.nodeType&&t,i=a&&r&&!r.nodeType&&r,c=i&&i.exports===a?n.Buffer:void 0;r.exports=(c?c.isBuffer:void 0)||o},58701,4770,90334,462924,e=>{"use strict";var r=e.i(822315),t=e.i(629873),n=e.i(946217),o=e.i(656003),a=e.i(713317),i=e.i(487121),c=e.i(854838),u=e.i(693475);let s="p10:checkout:card-bin",l=/^\d{6}$/;function p(){let e=function(){try{let e=window.sessionStorage.getItem(s);if(!e)return null;let r=JSON.parse(e);if(!l.test(r?.binPrefix??""))return null;return r}catch{return null}}();return e?{bin_prefix:e.binPrefix,...e.detectedBrand&&{detected_brand:e.detectedBrand}}:{}}e.s(["clearCardBinTelemetry",0,function(){try{window.sessionStorage.removeItem(s)}catch{}},"readCardBinEventProps",0,p,"storeCardBinTelemetry",0,function(e){try{let r=e.binPrefix??"";if(!l.test(r))return;let t={binPrefix:r,...e.detectedBrand&&{detectedBrand:e.detectedBrand}};window.sessionStorage.setItem(s,JSON.stringify(t))}catch{}}],4770);var m=e.i(743605),_=e.i(36389),v=e.i(469677);let d={ABW:"AW",AFG:"AF",AGO:"AO",AIA:"AI",ALB:"AL",AND:"AD",ARE:"AE",ARG:"AR",ARM:"AM",ASM:"AS",ATG:"AG",AUS:"AU",AUT:"AT",AZE:"AZ",BDI:"BI",BEL:"BE",BEN:"BJ",BFA:"BF",BGD:"BD",BGR:"BG",BHR:"BH",BHS:"BS",BIH:"BA",BLR:"BY",BLZ:"BZ",BMU:"BM",BOL:"BO",BRA:"BR",BRB:"BB",BRN:"BN",BTN:"BT",BVT:"BV",BWA:"BW",CAF:"CF",CAN:"CA",CCK:"CC",CHE:"CH",CHL:"CL",CHN:"CN",CIV:"CI",CMR:"CM",COD:"CD",COG:"CG",COK:"CK",COL:"CO",COM:"KM",CPV:"CV",CRI:"CR",CUB:"CU",CUW:"CW",CXR:"CX",CYM:"KY",CYP:"CY",CZE:"CZ",DEU:"DE",DJI:"DJ",DMA:"DM",DNK:"DK",DOM:"DO",DZA:"DZ",ECU:"EC",EGY:"EG",ERI:"ER",ESP:"ES",EST:"EE",ETH:"ET",FIN:"FI",FJI:"FJ",FLK:"FK",FRA:"FR",FRO:"FO",FSM:"FM",GAB:"GA",GBR:"GB",GEO:"GE",GHA:"GH",GIB:"GI",GIN:"GN",GMB:"GM",GNB:"GW",GNQ:"GQ",GRC:"GR",GRD:"GD",GRL:"GL",GTM:"GT",GUF:"GF",GUY:"GY",HKG:"HK",HND:"HN",HRV:"HR",HTI:"HT",HUN:"HU",IDN:"ID",IMN:"IM",IND:"IN",IRL:"IE",IRN:"IR",IRQ:"IQ",ISL:"IS",ISR:"IL",ITA:"IT",JAM:"JM",JEY:"JE",JOR:"JO",JPN:"JP",KAZ:"KZ",KEN:"KE",KGZ:"KG",KHM:"KH",KIR:"KI",KNA:"KN",KOR:"KR",KWT:"KW",LAO:"LA",LBN:"LB",LBR:"LR",LBY:"LY",LCA:"LC",LIE:"LI",LKA:"LK",LSO:"LS",LTU:"LT",LUX:"LU",LVA:"LV",MAC:"MO",MAR:"MA",MCO:"MC",MDA:"MD",MDG:"MG",MDV:"MV",MEX:"MX",MHL:"MH",MKD:"MK",MLI:"ML",MLT:"MT",MMR:"MM",MNE:"ME",MNG:"MN",MNP:"MP",MOZ:"MZ",MRT:"MR",MSR:"MS",MUS:"MU",MWI:"MW",MYS:"MY",NAM:"NA",NCL:"NC",NER:"NE",NFK:"NF",NGA:"NG",NIC:"NI",NLD:"NL",NOR:"NO",NPL:"NP",NRU:"NR",NZL:"NZ",OMN:"OM",PAK:"PK",PAN:"PA",PE
1R:"PE",PHL:"PH",PLW:"PW",PNG:"PG",POL:"PL",PRI:"PR",PRK:"KP",PRT:"PT",PRY:"PY",PSE:"PS",PYF:"PF",QAT:"QA",ROU:"RO",RUS:"RU",RWA:"RW",SAU:"SA",SDN:"SD",SEN:"SN",SGP:"SG",SLB:"SB",SLE:"SL",SLV:"SV",SMR:"SM",SOM:"SO",SPM:"PM",SRB:"RS",SSD:"SS",STP:"ST",SUR:"SR",SVK:"SK",SVN:"SI",SWE:"SE",SWZ:"SZ",SXM:"SX",SYC:"SC",SYR:"SY",TCA:"TC",TCD:"TD",TGO:"TG",THA:"TH",TJK:"TJ",TKM:"TM",TLS:"TL",TON:"TO",TTO:"TT",TUN:"TN",TUR:"TR",TUV:"TV",TWN:"TW",TZA:"TZ",UGA:"UG",UKR:"UA",URY:"UY",USA:"US",UZB:"UZ",VAT:"VA",VCT:"VC",VEN:"VE",VGB:"VG",VIR:"VI",VNM:"VN",VUT:"VU",YEM:"YE",ZAF:"ZA",ZMB:"ZM",ZWE:"ZW"},f=/^[A-Z]{2}$/,E=/^([A-Z]{2}|OTRO)$/,h=/^(\d{2})-(\d{2})-(\d{4})$/,y="p10:checkout:buyer-profile",I="p10:checkout:passenger-profile";function g(e){let r=e?.trim().toUpperCase();if(r)return f.test(r)?r:r.startsWith("GB-")?"GB":d[r]??"OTRO"}let S=e=>e?.value===void 0||e?.value===null||""===e.value?void 0:String(e.value),T=e=>{if(e?.isoCode)return e.isoCode;let r=S(e);return r?m.countryList.find(e=>e.value===r)?.isoCode:void 0},N=e=>{let r=S(e),t=r?m.countryList.find(e=>e.value===r):void 0;return t?.label||void 0},C=new Set([_.documentIdType.PASSPORT,_.documentIdType.CE,_.documentIdType.CN,...v.documentTypeListFromColombia.map(e=>e.label)]),b=e=>String(e??"").replace(/\W/g,"").toUpperCase(),D=new Set(m.countryList.map(e=>e.label)),R=(e,r)=>"string"==typeof e&&""!==e&&(!r||r.test(e))?e:void 0,A=e=>"string"==typeof e&&D.has(e)?e:void 0;function P(e){return e&&"object"==typeof e?Object.fromEntries(Object.entries({buyer_nationality:R(e.buyer_nationality,E),buyer_nationality_label:A(e.buyer_nationality_label),buyer_document_type:R(e.buyer_document_type),buyer_phone_country:R(e.buyer_phone_country,E),buyer_is_passenger:"boolean"==typeof e.buyer_is_passenger?e.buyer_is_passenger:void 0}).filter(([,e])=>void 0!==e)):{}}let x=(e,r,t)=>{try{if(!r)return;window.sessionStorage.setItem(e,JSON.stringify({prePurchaseId:r,props:t}))}catch{return}},O=(e,r)=>{try{let t=r.filter(Boolean);if(0===t.length)return;let n=window.sessionStorage.getItem(e);if(!n)return;let o=JSON.parse(n);return t.includes(o?.prePurchaseId)?o.props:void 0}catch{return}};function U(e){return Array.isArray(e)?e.filter(e=>e&&"object"==typeof e).map(e=>Object.fromEntries(Object.entries({nationality:R(e.nationality,E),nationality_label:A(e.nationality_label),document_type:R(e.document_type),age:"number"==typeof e.age&&Number.isInteger(e.age)&&e.age>=0?e.age:void 0}).filter(([,e])=>void 0!==e))):[]}function M(...e){let r=U(O(I,e));return{...r.length>0&&{passenger_details:r},...function(...e){return P(O(y,e))}(...e)}}e.s(["buildBuyerProfileEventProps",0,function({nationality:e,documentType:r,phoneCountryIsoCode:t,isPassenger:n}){return P({buyer_nationality:g(T(e)),buyer_nationality_label:N(e),buyer_document_type:r?.label||void 0,buyer_phone_country:g(t),buyer_is_passenger:n})},"buildPassengerDetails",0,function(e,{now:r}){return e.map(e=>{let t=g(T(e.nationality)),n=N(e.nationality),o=e.documentType?.label||void 0,a=function(e,r){let t=h.exec(e??"");if(!t)return;let n=Number(t[1]),o=Number(t[2])-1,a=Number(t[3]),i=new Date(a,o,n);if(i.getFullYear()!==a||i.getMonth()!==o||i.getDate()!==n)return;let c=r.getMonth()>o||r.getMonth()===o&&r.getDate()>=n,u=r.getFullYear()-a-!c;return u>=0?u:void 0}(e.birthdate,r);return{...t&&{nationality:t},...n&&{nationality_label:n},...o&&{document_type:o},...void 0!==a&&{age:a}}})},"getBuyerDocumentNumber",0,function(e){let r=e.documentIdType?.label;if(r){if(r===_.documentIdType.ID||r===_.documentIdType.CIC)return e.documentNumber||void 0;if(r===_.documentIdType.RG)return e.brazilianRGNumber||void 0;if(r===_.documentIdType.CPF)return e.cpfNumber||void 0;if(r===_.documentIdType.FOREIGN_ID)return e.foreignId||void 0;if(C.has(r))return e.passport||void 0}},"isBuyerAPassenger",0,function(e,r){let t=b(e.documentNumber);if(e.documentTypeValue&&t)return r.some(r=>String(r.documentTypeId??"")===e.documentTypeValue&&b(r.documentNumber)===t)},"optionValue",0,S,"readTravelerProfileEventProps",0,M,"storeBuyerProfileTelemetry",0,function(e,r){x(y,e,P(r))},"storePassengerProfileTelemetry",0,function(e,r){let t=U(r);0!==t.length&&x(I,e,t)}],90334);var k=e.i(565635),L=e.i(586838),B=e.i(882212),G=e.i(567354),$=e.i(367770),F=e.i(475153);let V=({prePurchase:e,revenueLocal:r,revenueUSD:t,totalLocal:n,totalUSD:o})=>{let a=(0,F.getPassBenefit)(e);if(!a)return{revenue_localcurrency:r,$revenue:t};let i=(0,F.getBaseServiceCharge)(e),c={revenue_localcurrency:r,$revenue:t,...i>0?{service_charge_unpaid:i}:{}};if(!(0,F.isPassSelectedInThisCheckout)(e))return c;let u=a.chargedAmount??(0,F.getSubscriptionFee)(e);if("number"!=typeof u||!(u>0))return c;let s="number"==typeof n&&n>0&&"number"==typeof o&&o>0?o/n:null;return{...c,revenue_localcurrency:r+u,$revenue:null===s?t:t+u*s,pasep10_price:u}};e.s(["getPaseP10RevenueProps",0,V],462924);let j={"app-only":"app_only","code-not-found":"code_not_found","needs-payment-method":"needs_payment_method","payment-method-mismatch":"payment_method_mismatch","service-charge-benefit-conflict":"service_charge_benef
1it_conflict"},z=({businessUnit:e,prePurchaseDetails:r,site:t})=>{let n,{checkout:a,servicesResultInformation:c,currency:u}=r,{coupons:s}=a,l=s[0]?.couponResult,p=l?.promotion,m=(0,o.default)(c,e=>e.serviceInformation.precio.valor),_=(0,o.default)(c,e=>e.serviceInformation.cotizacionServiceCharge[u]),v=l?.amount?l.amount/100*m:0,d=l?.amount&&p?.perceptionTypeId===1?l.amount/100*_:0;return{site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,pre_purchase_state:r.currentState.status,passengers:r?.passengerData?.length,total_service_charge_localcurrency:_,total_service_charge_usd:(0,o.default)(c,e=>e.serviceInformation.cotizacionServiceCharge.USD),total_price_localcurrency:m+_-v-d,total_price_usd:(0,o.default)(c,e=>e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD)-v-d,trip_type:r?.servicesResultInformation?.length>1?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY,Services:[...(n=[],r.servicesResultInformation.map((e,t)=>{let o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),a=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),i={trip_direction:r.servicesResultInformation.length>1&&1===t?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:o,to_station:a,route:`${o} to ${a}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),category:(0,B.formatGenericText)(e.serviceInformation.clase)};n.push(i)}),n)]}},w=({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:n})=>{try{let{checkout:r}=t,{paymentMethods:o,paymentsCalculationInfo:a}=r,c=o.find(e=>e.selected),{description:u=""}=c||{},s=c?.installment??[],l=c?.description??u??"",p=s.find(e=>e.selected);return{name:i.EventNameEnum.SELECT_PAYMENT_METHOD,properties:{...z({businessUnit:e,prePurchaseDetails:t,site:n}),...(0,B.buildStableCheckoutIdentifiers)(c,t.servicesResultInformation),issuer:l,brand:(0,B.detectPaymentBrand)(l),installments:p?.number,has_interest:a.financialInterest>0,payment_category:(0,B.getPaymentCategory)(l)}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.SELECT_PAYMENT_METHOD}`,e),(0,c.trackingExpectedBehaviour)({componentName:"selectPaymentMethod",labelDetails:`Error creating event - ${i.EventNameEnum.SELECT_PAYMENT_METHOD}`,severity:"error"}),null}},Y=(e,{businessUnit:r,site:t,loyaltyVariant:n})=>{try{return{name:e,properties:{site:t,url:location.href,business_unit:r,funnel_step:i.FunnelStepEnum.CHECKOUT,...(0,G.getLoyaltyAmplitudeProps)(n)}}}catch(r){return console.error(`Error creating event - ${e}`,r),(0,c.trackingExpectedBehaviour)({componentName:"buildLoyaltyBenefitToggleEvent",labelDetails:`Error creating event - ${e}`,severity:"error"}),null}},H=(e,r,{businessUnit:t,site:n,destinationName:o,transferOriginName:a,transferDestinationName:i,position:u})=>{try{return{name:e,properties:{site:n,url:location.href,business_unit:t,funnel_step:"checkout_success",destination_name:o,transfer_origin_name:a,transfer_destination_name:i,position:u}}}catch(t){return(0,c.trackingExpectedBehaviour)({componentName:r,labelDetails:`Error creating event - ${e}`,severity:"error"}),null}};e.s(["addingPremium",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:a,isSelected:u})=>{try{let c,s=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.precio.valor),l=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge[t.currency]),p=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacion.USD),m=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD);return{name:i.EventNameEnum.ADDING_PREMIUM,properties:{site:a,url:location.href,id_prepurchase:t.prePurchaseId,pre_purchase_state:t.currentState.status,business_unit:e,passengers:r?.passengers,total_service_charge_localcurrency:l,total_service_charge_usd:(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD),total_price_localcurrency:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?s-s*t.checkout.coupons[0].couponResult.amount/100:s)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?l-l*t.checkout.coupons[0].couponResult.amount/100:l),total_price_usd:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?p*t.checkout.coupons[0].couponResult.amount/100:p)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?m-m*t.checkout.coupons[0].couponResult.amount/100:m),...r&&{trip_type:r.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},is_selected:u,Services:[...(c=[],t.servicesResultInformation.map((e,r)=>{let n=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),a={trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:n,to_station:o,route:`${n} to ${o}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),c
1ategory:(0,B.formatGenericText)(e.serviceInformation.clase)};c.push(a)}),c)]}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.ADDING_PREMIUM}`,e),(0,c.trackingExpectedBehaviour)({componentName:"addingPremium",labelDetails:`Error creating event - ${i.EventNameEnum.ADDING_PREMIUM}`,severity:"error"}),null}},"applyDiscountCode",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:a})=>{try{let c,s=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.precio.valor),l=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge[t.currency]),p=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacion.USD),m=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD),_=(0,u.resolveCouponRejectionReason)(t.checkout.coupons?.[0],!!t.checkout.paymentMethods?.some(e=>e.selected));return{name:i.EventNameEnum.APPLY_DISCOUNT_CODE,properties:{site:a,url:location.href,business_unit:e,id_prepurchase:t.prePurchaseId,pre_purchase_state:t.currentState.status,was_successful:!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon,discount_code:!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].couponResult.code,coupon_campaign:!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].couponResult.promotion.name,discount_amount:(0,n.default)(t.checkout.coupons)?null:s*t.checkout.coupons[0].couponResult.amount/100,discount_percentage:(0,n.default)(t.checkout.coupons)?null:t.checkout.coupons[0].couponResult.amount,discount_type:(0,n.default)(t.checkout.coupons)?null:(e=>{switch(e){case 1:default:return"Net Amount";case 2:return"Service Charge"}})(t.checkout.coupons[0].couponResult.promotion.perceptionTypeId),discount_code_rejection_reason:_?j[_]:null,passengers:r?.passengers,total_service_charge_localcurrency:l,total_service_charge_usd:(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD),total_price_localcurrency:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?s-s*t.checkout.coupons[0].couponResult.amount/100:s)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?l-l*t.checkout.coupons[0].couponResult.amount/100:l),total_price_usd:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?p*t.checkout.coupons[0].couponResult.amount/100:p)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?m-m*t.checkout.coupons[0].couponResult.amount/100:m),...r&&{trip_type:r.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},Services:[...(c=[],t.servicesResultInformation.map((e,r)=>{let n=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),a={trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:n,to_station:o,route:`${n} to ${o}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),c
1ategory:(0,B.formatGenericText)(e.serviceInformation.clase)};c.push(a)}),c)]}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.APPLY_DISCOUNT_CODE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"applyDiscountCode",labelDetails:`Error creating event - ${i.EventNameEnum.APPLY_DISCOUNT_CODE}`,severity:"error"}),null}},"autoCouponApplied",0,({businessUnit:e,site:r,couponCode:t,source:n})=>({name:"auto_coupon_applied",properties:{site:r,url:"u">typeof location?location.href:"",business_unit:e,coupon_code:t,source:n}}),"checkoutPasswordGuardTriggered",0,({site:e,url:r,idPrepurchase:t,reason:n,hasOtpIdentity:o,isBrazilWhiteLabel:a})=>{try{return{name:i.EventNameEnum.CHECKOUT_PASSWORD_GUARD_TRIGGERED,properties:{site:e,url:r,business_unit:i.BusinessUnitTypeEnum.BUSES,id_prepurchase:t,reason:n,has_otp_identity:o,is_brazil_white_label:a}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CHECKOUT_PASSWORD_GUARD_TRIGGERED}`,e),(0,c.trackingExpectedBehaviour)({componentName:"checkoutPasswordGuardTriggered",labelDetails:`Error creating event - ${i.EventNameEnum.CHECKOUT_PASSWORD_GUARD_TRIGGERED}`,severity:"error"}),null}},"checkoutSuccessTransferCardClick",0,e=>H(i.EventNameEnum.CHECKOUT_SUCCESS_TRANSFER_CARD_CLICK,"checkoutSuccessTransferCardClick",e),"checkoutSuccessTransferCardViewed",0,e=>H(i.EventNameEnum.CHECKOUT_SUCCESS_TRANSFER_CARD_VIEWED,"checkoutSuccessTransferCardViewed",e),"civitatisCardClick",0,({businessUnit:e,site:r,partnerName:t,funnelStep:n,destinationName:o,originName:a})=>{try{return{name:i.EventNameEnum.CIVITATIS_CARD_CLICK,properties:{site:r,url:location.href,business_unit:e,partner_name:t,funnel_step:n,destination_name:o,...a?{origin_name:a,route:`${a} → ${o}`}:{}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CIVITATIS_CARD_CLICK}`,e),(0,c.trackingExpectedBehaviour)({componentName:"civitatisCardClick",labelDetails:`Error creating event - ${i.EventNameEnum.CIVITATIS_CARD_CLICK}`,severity:"error"}),null}},"civitatisDestinationRedirect",0,({businessUnit:e,site:r,funnelStep:t,destinationName:n,civitatisUrl:o})=>{try{return{name:i.EventNameEnum.CIVITATIS_DESTINATION_REDIRECT,properties:{site:r,url:location.href,business_unit:e,funnel_step:t,destination_name:n,civitatis_url:o}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CIVITATIS_DESTINATION_REDIRECT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"civitatisDestinationRedirect",labelDetails:`Error creating event - ${i.EventNameEnum.CIVITATIS_DESTINATION_REDIRECT}`,severity:"error"}),null}},"closeModalPayment",0,({businessUnit:e,prePurchaseDetails:r,site:n})=>{try{let o=r.checkout.paymentMethods.find(e=>e.selected),{description:a=""}=o||{},c=o?.description??a??"";return{name:i.EventNameEnum.CLOSE_MODAL_PAYMENT,properties:{site:n,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,pre_purchase_state:r.currentState.status,modal:(e=>{switch(!(0,t.default)(e)){case e.includes("Modo"):return"Debit";case e.includes("Mercadopago"):return"Mercadopago";default:return"Propio"}})(c),purchase_id:r?.sale.saleId,modal_url:r?.paymentForm?.redirectUrl||""}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CLOSE_MODAL_PAYMENT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"closeModalPayment",labelDetails:`Error creating event - ${i.EventNameEnum.CLOSE_MODAL_PAYMENT}`,severity:"error"}),null}},"confirmedCode2Fa",0,({businessUnit:e,prePurchaseDetails:r,isTrustedDevice:t,site:n})=>{try{return{name:i.EventNameEnum.CONFIRMED_CODE_2_FA,properties:{site:n,url:location.href,id_prepurchase:r.id,pre_purchase_state:r.state,confident_device:t,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CONFIRMED_CODE_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"resend code 2fa",labelDetails:`Error creating event - ${i.EventNameEnum.CONFIRMED_CODE_2_FA}`,severity:"error"}),null}},"confirmedCode2FaWithStep",0,({site:e,url:r,email:t,step:n})=>{try{return{name:i.EventNameEnum.CONFIRMED_CODE_2_FA,properties:{site:e,url:r,email:t,step:n}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CONFIRMED_CODE_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"resend code 2fa",labelDetails:`Error creating event - ${i.EventNameEnum.CONFIRMED_CODE_2_FA}`,severity:"error"}),null}},"continueToPayment",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:n})=>{try{let c,{checkout:u,servicesResultInformation:s,currency:l,currentState:m}=t,{coupons:_,paymentMethods:v,paymentsCalculationInfo:d}=u,f=_[0]?.couponResult,E=f?.promotion,h=v.find(e=>e.selected),{description:y=""}=h||{},I=h?.installment??[],g=h?.description??y??"",S=I.find(e=>e.selected),T=(0,o.default)(s,e=>e.serviceInformation.precio.valor),N=(0,o.default)(s,e=>e.serviceInformation.cotizacionServiceCharge[l]),C=f?.amount?f.amount/100*T:0,b=f?.amount&&E?.perceptionTypeId===1?f.amount/100*N:0;return{name:i.EventNameEnum.CONTINUE_TO_PAYMENT,properties:{site:n,url:location.href,business_unit:e,id_prepurchase:t.prePurchaseId,pre_purchase_state:m.status,...p(),...M(t.prePurchaseId,t.previousPrePurchaseId),...(0,B.buildStableCheckoutIdentifiers)(h,t.servicesResultInformation),issuer:(0,a.default)(g.replace(/Visa|Mastercard/g,"")),brand:(0,B.detectPaymentBrand)(g),installments:S?.number,has_interest:d.financialInterest>0,has_premium_support:d.ancillaries.some(e=>1===e.ancillaryType&&e.selected),has_discount_code:_.some(e=>e.appliedCoupon),discount_code:f?.code,discount_amount:f?C:null,discount_percentage:f?.amount,discount_type:E?(c=E.perceptionTypeId,2===c?"Service Charge":"Net Amount"):null,passengers:r?.passengers,total_service_charge_localcurrency:N,total_service_charge_usd:(0,o.default)(s,e=>e.serviceInformation.cotizacionServiceCharge.USD),total_price_localcurrency:T+N-C-b,total_price_usd:(0,o.default)(s,e=>e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD)-C-b,payment_category:(0,B.getPaymentCategory)(g),trip_type:r?.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY,Services:s.map((e,r)=>{let{origen:n,destino:o,precio:a,cotizacion:i,importeServiceCharge:c,cotizacionServiceCharge:u}=e.serviceInformation,s=(0,B.generateRouteText)({city:(0,B.formatGenericText)(n.nombre),state:(0,B.formatGenericText)(n.localidad.provincia.nombre)}),l=(0,B.generateRouteText)({city:(0,B.formatGenericText)(o.nombre),state:(0,B.formatGenericText)(o.localidad.provincia.nombre)});return{trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:a.valor,price_usd:i.USD,service_charge_localcurrency:c,service_charge_usd:u.USD,from_station:s,to_station:l,route:`${s} to ${l}`,from_station_id:Number(n.id)||null,to_station_id:Number(o.id)||null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),c
1ategory:(0,B.formatGenericText)(e.serviceInformation.clase),comision_localcurrency:null,comision_usd:null,total_price_localcurrency:a.valor+c,total_price_usd:i.USD+u.USD}})}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.CONTINUE_TO_PAYMENT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"continueToPayment",labelDetails:`Error creating event - ${i.EventNameEnum.CONTINUE_TO_PAYMENT}`,severity:"error"}),null}},"createGenericEvent",0,({eventName:e})=>{try{return{name:e}}catch(r){return console.error(`Error creating event - ${e}`,r),(0,c.trackingExpectedBehaviour)({componentName:"createGenericEvent",labelDetails:`Error creating event - ${e}`,severity:"error"}),null}},"downloadTickets",0,({businessUnit:e,site:r})=>{try{return{name:i.EventNameEnum.DOWNLOAD_TICKETS,properties:{site:r,url:location.href,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.DOWNLOAD_TICKETS}`,e),(0,c.trackingExpectedBehaviour)({componentName:"downloadTickets",labelDetails:`Error creating event - ${i.EventNameEnum.DOWNLOAD_TICKETS}`,severity:"error"}),null}},"generalConditions",0,({businessUnit:e,site:r})=>{try{return{name:i.EventNameEnum.GENERAL_CONDITIONS,properties:{site:r,url:location.href,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.GENERAL_CONDITIONS}`,e),(0,c.trackingExpectedBehaviour)({componentName:"generalConditions",labelDetails:`Error creating event - ${i.EventNameEnum.GENERAL_CONDITIONS}`,severity:"error"}),null}},"getRoundTripBenefit",0,({site:e,url:r,route:t})=>{try{return{name:i.EventNameEnum.GET_ROUND_TRIP_BENEFIT,properties:{site:e,url:r,...t&&{route:t}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.GET_ROUND_TRIP_BENEFIT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"getRoundTripBenefit",labelDetails:`Error creating event - ${i.EventNameEnum.GET_ROUND_TRIP_BENEFIT}`,severity:"error"}),null}},"loyaltyBenefitDeselected",0,e=>Y(i.EventNameEnum.LOYALTY_BENEFIT_DESELECTED,e),"loyaltyBenefitSelected",0,e=>Y(i.EventNameEnum.LOYALTY_BENEFIT_SELECTED,e),"pageViewBookStatus",0,({businessUnit:e,data:r,site:t})=>{try{return{name:i.EventNameEnum.VIEW_BOOK_STATUS,properties:{site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,status:r.status,rejection_type:r.rejectionType??""}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_BOOK_STATUS}`,e),(0,c.trackingExpectedBehaviour)({componentName:"pageViewBookStatus",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_BOOK_STATUS}`,severity:"error"}),null}},"pageViewCheckout",0,({businessUnit:e,prePurchaseDetails:r,site:t,loyaltyVariant:n=null,loyaltyBenefitActive:o=null})=>{try{return{name:i.EventNameEnum.VIEW_CHECKOUT_PAGE,properties:{site:t,url:location.href,business_unit:e,id_prepurchase:r.id,pre_purchase_state:r.state,...(0,G.getLoyaltyAmplitudeProps)(n),...(0,G.getLoyaltyBenefitActiveAmplitudeProp)(o),...r.paseP10Source?{pasep10_source:r.paseP10Source}:{}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_CHECKOUT_PAGE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"pageViewCheckout",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_CHECKOUT_PAGE}`,severity:"error"}),null}},"pageViewProcessingPayment",0,({businessUnit:e,data:r,site:t})=>{try{return{name:i.EventNameEnum.VIEW_PROCESSING_PAYMENT,properties:{site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_PROCESSING_PAYMENT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"pageViewProcessingPayment",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_PROCESSING_PAYMENT}`,severity:"error"}),null}},"pixCodeCopy",0,({businessUnit:e,prePurchaseDetails:r,site:t,ok:n,method:o})=>{let a=n?i.EventNameEnum.PIX_CODE_COPIED:i.EventNameEnum.PIX_CODE_COPY_FAILED;try{return{name:a,properties:{...z({businessUnit:e,prePurchaseDetails:r,site:t}),...(0,B.buildNodeIdentifiers)(r.servicesResultInformation),copy_method:o,is_secure_context:!!window.isSecureContext,user_agent:"u">typeof navigator?navigator.userAgent:""}}}catch(e){return console.error(`Error creating event - ${a}`,e),(0,c.trackingExpectedBehaviour)({componentName:"pixCodeCopy",labelDetails:`Error creating event - ${a}`,severity:"error"}),null}},"premiumSupportModalDismissed",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:a})=>{try{let c,u=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.precio.valor),s=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge[t.currency]),l=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacion.USD),p=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD);return{name:i.EventNameEnum.PREMIUM_SUPPORT_MODAL_DISMISSED,properties:{site:a,url:location.href,id_prepurchase:t.prePurchaseId,pre_purchase_state:t.currentState.status,business_unit:e,passengers:r?.passengers,total_service_charge_localcurrency:s,total_service_charge_usd:p,total_price_localcurrency:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?u-u*t.checkout.coupons[0].couponResult.amount/100:u)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?s-s*t.checkout.coupons[0].couponResult.amount/100:s),total_price_usd:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?l-l*t.checkout.coupons[0].couponResult.amount/100:l)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?p-p*t.checkout.coupons[0].couponResult.amount/100:p),...r&&{trip_type:r.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},is_selected:!1,Services:[...(c=[],t.servicesResultInformation.forEach((e,r)=>{let n=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),a={trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:n,to_station:o,route:`${n} to ${o}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),c
1ategory:(0,B.formatGenericText)(e.serviceInformation.clase)};c.push(a)}),c)]}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PREMIUM_SUPPORT_MODAL_DISMISSED}`,e),(0,c.trackingExpectedBehaviour)({componentName:"premiumSupportModalDismissed",labelDetails:`Error creating event - ${i.EventNameEnum.PREMIUM_SUPPORT_MODAL_DISMISSED}`,severity:"error"}),null}},"premiumSupportModalRetained",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:a})=>{try{let c,u=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.precio.valor),s=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge[t.currency]),l=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacion.USD),p=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD);return{name:i.EventNameEnum.PREMIUM_SUPPORT_MODAL_RETAINED,properties:{site:a,url:location.href,id_prepurchase:t.prePurchaseId,pre_purchase_state:t.currentState.status,business_unit:e,passengers:r?.passengers,total_service_charge_localcurrency:s,total_service_charge_usd:p,total_price_localcurrency:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?u-u*t.checkout.coupons[0].couponResult.amount/100:u)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?s-s*t.checkout.coupons[0].couponResult.amount/100:s),total_price_usd:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?l-l*t.checkout.coupons[0].couponResult.amount/100:l)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?p-p*t.checkout.coupons[0].couponResult.amount/100:p),...r&&{trip_type:r.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},is_selected:!0,Services:[...(c=[],t.servicesResultInformation.forEach((e,r)=>{let n=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),a={trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:n,to_station:o,route:`${n} to ${o}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),category:(0,B.formatGenericText)(e.serviceInformation.clase)};c.push(a)}),c)]}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PREMIUM_SUPPORT_MODAL_RETAINED}`,e),(0,c.trackingExpectedBehaviour)({componentName:"premiumSupportModalRetained",labelDetails:`Error creating event - ${i.EventNameEnum.PREMIUM_SUPPORT_MODAL_RETAINED}`,severity:"error"}),null}},"purchaseNotConfirmedSimple",0,({businessUnit:e,data:r,site:t})=>{try{return{name:i.EventNameEnum.PURCHASE_NOT_CONFIRMED_SIMPLE,properties:{site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PURCHASE_NOT_CONFIRMED_SIMPLE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"purchaseNotConfirmedSimple",labelDetails:`Error creating event - ${i.EventNameEnum.PURCHASE_NOT_CONFIRMED_SIMPLE}`,severity:"error"}),null}},"purchaseRejected",0,({businessUnit:e,prePurchaseDetails:r,destinationPage:t,site:n})=>{try{let c,{checkout:u,servicesResultInformation:s,currency:l,currentState:m,sale:_}=r,{coupons:v,paymentMethods:d,paymentsCalculationInfo:f,paymentInfo:E}=u,h=v?.[0]?.couponResult,y=h?.promotion,I=d?.find(e=>e.selected),g=I?.description??"",S=(I?.installment??[]).find(e=>e.selected),T=(0,o.default)(s,e=>e.serviceInformation.precio.valor),N=(0,o.default)(s,e=>e.serviceInformation.cotizacionServiceCharge[l]),C=h?.amount?h.amount/100*T:0;h?.amount&&y?.perceptionTypeId===1&&h.amount;let b=r.currency,D=r?.sale?.quoteP10TotalCommission;return{name:i.EventNameEnum.PURCHASE_REJECTED,properties:{site:n,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,pre_purchase_state:m.status,reason_of_reject:E?.reason,...p(),...M(r.prePurchaseId,r.previousPrePurchaseId),...(0,B.buildStableCheckoutIdentifiers)(I,r.servicesResultInformation),issuer:(0,a.default)(g.replace(/Visa|Mastercard/g,"")),brand:(0,B.detectPaymentBrand)(g),installments:S?.number,has_interest:f?.financialInterest>0,has_premium_support:!!f?.ancillaries?.some(e=>1===e.ancillaryType&&e.selected),has_discount_code:!!v?.some(e=>e.appliedCoupon),discount_code:h?.code,discount_amount:h?C:null,discount_percentage:h?.amount,discount_type:y?(c=y.perceptionTypeId,2===c?"Service Charge":"Net Amount"):null,passengers:r.passengerData?.length,total_service_charge_localcurrency:N,total_service_charge_usd:(0,o.default)(s,e=>e.serviceInformation.cotizacionServiceCharge.USD),total_price_localcurrency:r.checkout.paymentsCalculationInfo?.total,total_price_usd:r.checkout.paymentsCalculationInfo?.quotes?.quoteTotal.USD,payment_category:(0,B.getPaymentCategory)(g),...r.suppliers&&{trip_type:r.suppliers.length>1?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},Services:s?.map((e,t)=>{let{origen:n,destino:o,precio:a,cotizacion:i,importeServiceCharge:c,cotizacionServiceCharge:u}=e.serviceInformation,s=(0,B.generateRouteText)({city:(0,B.formatGenericText)(n.nombre),state:(0,B.formatGenericText)(n.localidad.provincia.nombre)}),l=(0,B.generateRouteText)({city:(0,B.formatGenericText)(o.nombre),state:(0,B.formatGenericText)(o.localidad.provincia.nombre)}),p=r.servicesResultInformation.length>1&&1===t,m=r.servicesResultInformation?.[+!!p]?.serviceInformation?.precio?.valor,_=(0,B.resolveServiceCommission)({sale:r.sale,legPrice
1:m});return{trip_direction:p?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:a.valor,price_usd:i.USD,service_charge_localcurrency:c,service_charge_usd:u.USD,from_station:s,to_station:l,route:`${s} to ${l}`,from_station_id:Number(n.id)||null,to_station_id:Number(o.id)||null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),category:(0,B.formatGenericText)(e.serviceInformation.clase),comision_localcurrency:_?.[r.currency]||null,comision_usd:_?.USD||null,id_nodo:e.serviceInformation?.idNodo??null,total_price_localcurrency:a.valor+c,total_price_usd:i.USD+u.USD}})??[],purchase_id:_?.saleId,currency:r.currency?.toString(),tickets:r.selectedSeats?.length??null,total_comision_localcurrency:D?.[b]||null,total_comision_usd:D?.USD||null,destinationPage:t}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PURCHASE_REJECTED}`,e),(0,c.trackingExpectedBehaviour)({componentName:"purchaseRejected",labelDetails:`Error creating event - ${i.EventNameEnum.PURCHASE_REJECTED}`,severity:"error",error:e,context:(0,B.buildPurchaseEventFailureContext)(r)}),null}},"purchaseSuccessful",0,({businessUnit:e,prePurchaseDetails:r,site:t,loyaltyVariant:n=null})=>{try{let o,{checkout:c,servicesResultInformation:u,currentState:s,sale:l}=r;(0,k.recordChosenDeparture)(l?.saleId,u?.[0]?.serviceInformation?.fechaHoraSalida);let{coupons:m,paymentMethods:_,paymentsCalculationInfo:v}=c,d=m?.[0]?.couponResult,f=d?.promotion,E=_?.find(e=>e.selected),h=E?.description??"",y=(E?.installment??[]).find(e=>e.selected),I=v?.quotes,g=v?.serviceCharge??0,S=I?.quoteServiceCharge?.USD??0,T=v?.discounts??0,N=I?.quoteTotal?.USD,C=r.currency,b=r?.sale?.quoteP10TotalCommission,D=b?.USD??0,R=b?.[C]??0,A=(0,L.getLeadTimeHoursFromStringDateFromBFF)(r.servicesResultInformation[0]?.serviceInformation?.fechaHoraSalida),P=(0,L.getLeadTimeDaysFromStringDateFromBFF)(r.servicesResultInformation[0]?.serviceInformation?.fechaHoraSalida),x=(0,L.checkAnyServiceFromNearby)(),O={name:i.EventNameEnum.PURCHASE_SUCCESSFUL,properties:{...(0,$.getPaseP10PurchaseProps)(r),...p(),...M(r.prePurchaseId,r.previousPrePurchaseId),site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,pre_purchase_state:s.status,...(0,B.buildStableCheckoutIdentifiers)(E,r.servicesResultInformation),issuer:(0,a.default)(h.replace(/Visa|Mastercard/g,"")),brand:(0,B.detectPaymentBrand)(h),installments:y?.number,has_interest:v?.financialInterest>0,has_premium_support:!!v?.ancillaries?.some(e=>1===e.ancillaryType&&e.selected),has_discount_code:!!m?.some(e=>e.appliedCoupon),discount_code:d?.code,discount_amount:d?T:null,discount_percentage:d?.amount,discount_type:f?(o=f.perceptionTypeId,1===o?"Service Charge":"Net Amount"):null,passengers:r.passengerData?.length,total_service_charge_localcurrency:g,total_service_charge_usd:S,total_price_localcurrency:v?.total,total_price_usd:N,...V({prePurchase:r,revenueLocal:g+R,revenueUSD:S+D,totalLocal:v?.total,totalUSD:N}),payment_category:(0,B.getPaymentCategory)(h),...r.suppliers&&{trip_type:r.suppliers?.length>1?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},Services:u?.map((e,t)=>{let{origen:n,destino:o,precio:a,cotizacion:i,importeServiceCharge:c,cotizacionServiceCharge:u}=e.serviceInformation,s=(0,B.generateRouteText)({city:(0,B.formatGenericText)(n.nombre),state:(0,B.formatGenericText)(n.localidad.provincia.nombre)}),l=(0,B.generateRouteText)({city:(0,B.formatGenericText)(o.nombre),state:(0,B.formatGenericText)(o.localidad.provincia.nombre)}),p=r.servicesResultInformation.length>1&&1===t,m=r.servicesResultInformation?.[+!!p]?.serviceInformation?.precio?.valor,_=(0,B.resolveServiceCommission)({sale:r.sale,legPrice:m});return{trip_direction:p?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:a.valor,price_usd:i.USD,service_charge_localcurrency:c,service_charge_usd:u.USD,from_station:s,to_station:l,route:`${s} to ${l}`,from_station_id:Number(n.id)||null,to_station_id:Number(o.id)||null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),c
1ategory:(0,B.formatGenericText)(e.serviceInformation.clase),comision_localcurrency:_?.[r.currency]||null,comision_usd:_?.USD||null,id_nodo:e.serviceInformation?.idNodo??null,total_price_localcurrency:a.valor+c,total_price_usd:i.USD+u.USD}})??[],purchase_id:l?.saleId,currency:C,tickets:r.selectedSeats?.length??null,total_comision_localcurrency:R||null,total_comision_usd:D||null,lead_time_search:P,lead_time_hours:A,from_nearby_stops:x,...localStorage.getItem("return_trip_source")?{return_trip_source:localStorage.getItem("return_trip_source")}:{},...(0,G.getLoyaltyAmplitudeProps)(n),use_loyalty_benefit:(0,G.getUseLoyaltyBenefitProp)(n,r),...sessionStorage.getItem("return_trip_source")?{return_trip_source:sessionStorage.getItem("return_trip_source")}:{}}};return localStorage.removeItem("return_trip_source"),(0,L.clearNearbyServiceInfo)(),O}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PURCHASE_SUCCESSFUL}`,e),(0,c.trackingExpectedBehaviour)({componentName:"purchaseSuccessfulCheckout",labelDetails:`Error creating event - ${i.EventNameEnum.PURCHASE_SUCCESSFUL}`,severity:"error",error:e,context:(0,B.buildPurchaseEventFailureContext)(r)}),null}},"purchaseSuccessfulSimple",0,({businessUnit:e,data:r,site:t})=>{try{return{name:i.EventNameEnum.PURCHASE_SUCCESSFUL_SIMPLE,properties:{site:t,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.PURCHASE_SUCCESSFUL_SIMPLE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"purchaseSuccessfulSimple",labelDetails:`Error creating event - ${i.EventNameEnum.PURCHASE_SUCCESSFUL_SIMPLE}`,severity:"error"}),null}},"resendCode2Fa",0,({businessUnit:e,prePurchaseDetails:r,site:t})=>{try{return{name:i.EventNameEnum.RESEND_2_FA,properties:{site:t,url:location.href,id_prepurchase:r.id,pre_purchase_state:r.state,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.RESEND_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"resend code 2fa",labelDetails:`Error creating event - ${i.EventNameEnum.RESEND_2_FA}`,severity:"error"}),null}},"resendCode2FaWithStep",0,({site:e,url:r,email:t,step:n})=>{try{return{name:i.EventNameEnum.RESEND_2_FA,properties:{site:e,url:r,email:t,step:n}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.RESEND_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"resend code 2fa",labelDetails:`Error creating event - ${i.EventNameEnum.RESEND_2_FA}`,severity:"error"}),null}},"retryBuy",0,({businessUnit:e,searchDetails:t,prePurchaseDetails:n,site:o})=>{try{let{servicesResultInformation:a,currentState:c}=n;return{name:i.EventNameEnum.RETRY_BUY,properties:{site:o,url:location.href,business_unit:e,id_prepurchase:n.prePurchaseId,pre_purchase_state:c.status,...t&&{trip_type:t.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},Services:a.map((e,t)=>{let{origen:o,destino:a,precio:i,cotizacion:c,importeServiceCharge:u,cotizacionServiceCharge:s}=e.serviceInformation,l=(0,B.generateRouteText)({city:(0,B.formatGenericText)(o.nombre),state:(0,B.formatGenericText)(o.localidad.provincia.nombre)}),p=(0,B.generateRouteText)({city:(0,B.formatGenericText)(a.nombre),state:(0,B.formatGenericText)(a.localidad.provincia.nombre)});return{trip_direction:n.servicesResultInformation.length>1&&1===t?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:i.valor,price_usd:c.USD,service_charge_localcurrency:u,service_charge_usd:s.USD,from_station:l,to_station:p,route:`${l} to ${p}`,from_station_id:Number(o.id)||null,to_station_id:Number(a.id)||null,departure_date:(0,r.default)(e.serviceInformation.fechaHoraSalida).format(B.DATE_TIME_FORMAT),arrival_date:(0,r.default)(e.serviceInformation.fechaHoraLlegada).format(B.DATE_TIME_FORMAT),duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),category:(0,B.formatGenericText)(e.serviceInformation.clase),comision_localcurrency:null,comision_usd:null,total_price_localcurrency:i.valor+u,total_price_usd:c.USD+s.USD}})}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.RETRY_BUY}`,e),(0,c.trackingExpectedBehaviour)({componentName:"retryBuy",labelDetails:`Error creating event - ${i.EventNameEnum.RETRY_BUY}`,severity:"error"}),null}},"returningFromIframeProcessingPayment",0,({businessUnit:e,site:r})=>{try{return{name:i.EventNameEnum.RETURNING_FROM_IFRAME_PROCESSING_PAYMENT,properties:{site:r,url:location.href,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.RETURNING_FROM_IFRAME_PROCESSING_PAYMENT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"returningFromIframeProcessingPayment",labelDetails:`Error creating event - ${i.EventNameEnum.RETURNING_FROM_IFRAME_PROCESSING_PAYMENT}`,severity:"error"}),null}},"selectInstallments",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:n})=>{let o=w({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:n});return o?{...o,name:i.EventNameEnum.SELECT_INSTALLMENTS}:null},"selectLinkedDevice",0,({site:e,url:r})=>{try{return{name:i.EventNameEnum.SELECT_LINKED_DEVICE,properties:{site:e,url:r,business_unit:i.BusinessUnitTypeEnum.BUSES}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.SELECT_LINKED_DEVICE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"selectLinkedDevice",labelDetails:`Error creating event - ${i.EventNameEnum.SELECT_LINKED_DEVICE}`,severity:"error"}),null}},"selectPaymentMethod",0,w,"selectPaymentOption",0,({businessUnit:e,prePurchaseDetails:r,site:t,optionKey:n})=>{try{return{name:i.EventNameEnum.SELECT_PAYMENT_OPTION,properties:{...z({businessUnit:e,prePurchaseDetails:r,site:t}),...(0,B.buildNodeIdentifiers)(r.servicesResultInformation),payment_category:(0,B.getPaymentCategoryFromOptionKey)(n),payment_option_key:n}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.SELECT_PAYMENT_OPTION}`,e),(0,c.trackingExpectedBehaviour)({componentName:"selectPaymentOption",labelDetails:`Error creating event - ${i.EventNameEnum.SELECT_PAYMENT_OPTION}`,severity:"error"}),null}},"send2Fa",0,({businessUnit:e,prePurchaseDetails:r,site:t})=>{try{return{name:i.EventNameEnum.SEND_2_FA,properties:{site:t,url:location.href,id_prepurchase:r.id,pre_purchase_state:r.state,business_unit:e}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.SEND_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"send2Fa",labelDetails:`Error creating event - ${i.EventNameEnum.SEND_2_FA}`,severity:"error"}),null}},"send2FaWithStep",0,({site:e,url:r,email:t,step:n})=>{try{return{name:i.EventNameEnum.SEND_2_FA,properties:{site:e,url:r,email:t,step:n}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.SEND_2_FA}`,e),(0,c.trackingExpectedBehaviour)({componentName:"send2FaWithStep",labelDetails:`Error creating event - ${i.EventNameEnum.SEND_2_FA}`,severity:"error"}),null}},"stay22CarRentalCardClick",0,({businessUnit:e,site:r,partnerName:t,funnelStep:n,destinationName:o,originName:a})=>{try{return{name:i.EventNameEnum.STAY22_CAR_RENTAL_CARD_CLICK,properties:{site:r,url:location.href,business_unit:e,partner_name:t,funnel_step:n,destination_name:o,...a?{origin_name:a,route:`${a} → ${o}`}:{}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.STAY22_CAR_RENTAL_CARD_CLICK}`,e),(0,c.trackingExpectedBehaviour)({componentName:"stay22CarRentalCardClick",labelDetails:`Error creating event - ${i.EventNameEnum.STAY22_CAR_RENTAL_CARD_CLICK}`,severity:"error"}),null}},"stay22CarRentalCardViewed",0,({businessUnit:e,site:r,partnerName:t,funnelStep:n,destinationName:o,originName:a})=>{try{return{name:i.EventNameEnum.STAY22_CAR_RENTAL_CARD_VIEWED,properties:{site:r,url:location.href,business_unit:e,partner_name:t,funnel_step:n,destination_name:o,...a?{origin_name:a,route:`${a} → ${o}`}:{}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.STAY22_CAR_RENTAL_CARD_VIEWED}`,e),(0,c.trackingExpectedBehaviour)({componentName:"stay22CarRentalCardViewed",labelDetails:`Error creating event - ${i.EventNameEnum.STAY22_CAR_RENTAL_CARD_VIEWED}`,severity:"error"}),null}},"stay22CardClick",0,({businessUnit:e,site:r,partnerName:t,funnelStep:n,destinationName:o,originName:a})=>{try{return{name:i.EventNameEnum.STAY22_CARD_CLICK,properties:{site:r,url:location.href,business_unit:e,partner_name:t,funnel_step:n,destination_name:o,...a?{origin_name:a,route:`${a} → ${o}`}:{}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.STAY22_CARD_CLICK}`,e),(0,c.trackingExpectedBehaviour)({componentName:"stay22CardClick",labelDetails:`Error creating event - ${i.EventNameEnum.STAY22_CARD_CLICK}`,severity:"error"}),null}},"unselectLinkedDevice",0,({site:e,url:r})=>{try{return{name:i.EventNameEnum.UNSELECT_LINKED_DEVICE,properties:{site:e,url:r,business_unit:i.BusinessUnitTypeEnum.BUSES}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.UNSELECT_LINKED_DEVICE}`,e),(0,c.trackingExpectedBehaviour)({componentName:"unselectLinkedDevice",labelDetails:`Error creating event - ${i.EventNameEnum.UNSELECT_LINKED_DEVICE}`,severity:"error"}),null}},"viewBenefitModal",0,({site:e,url:r,route:t})=>{try{return{name:i.EventNameEnum.VIEW_BENEFIT_MODAL,properties:{site:e,url:r,...t&&{route:t}}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_BENEFIT_MODAL}`,e),(0,c.trackingExpectedBehaviour)({componentName:"viewBenefitModal",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_BENEFIT_MODAL}`,severity:"error"}),null}}
1,"viewModalPayment",0,({businessUnit:e,prePurchaseDetails:r,site:n})=>{try{let o=r.checkout.paymentMethods.find(e=>e.selected),{description:a=""}=o||{},c=o?.description??a??"";return{name:i.EventNameEnum.VIEW_MODAL_PAYMENT,properties:{site:n,url:location.href,business_unit:e,id_prepurchase:r.prePurchaseId,pre_purchase_state:r.currentState.status,modal:(e=>{switch(!(0,t.default)(e)){case e.includes("Modo"):return"Debit";case e.includes("Mercadopago"):return"Mercadopago";default:return"Propio"}})(c),purchase_id:r?.sale?.saleId,modal_url:r?.paymentForm?.redirectUrl||""}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_MODAL_PAYMENT}`,e),(0,c.trackingExpectedBehaviour)({componentName:"viewModalPayment",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_MODAL_PAYMENT}`,severity:"error"}),null}},"viewRetentionModal",0,({businessUnit:e,searchDetails:r,prePurchaseDetails:t,site:a})=>{try{let c,u=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.precio.valor),s=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge[t.currency]),l=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacion.USD),p=(0,o.default)(t.servicesResultInformation,e=>e.serviceInformation.cotizacionServiceCharge.USD);return{name:i.EventNameEnum.VIEW_RETENTION_MODAL,properties:{site:a,url:location.href,id_prepurchase:t.prePurchaseId,pre_purchase_state:t.currentState.status,business_unit:e,passengers:r?.passengers,total_service_charge_localcurrency:s,total_service_charge_usd:p,total_price_localcurrency:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?u-u*t.checkout.coupons[0].couponResult.amount/100:u)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?s-s*t.checkout.coupons[0].couponResult.amount/100:s),total_price_usd:(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon?l-l*t.checkout.coupons[0].couponResult.amount/100:l)+(!(0,n.default)(t.checkout.coupons)&&t.checkout.coupons[0].appliedCoupon&&1===t.checkout.coupons[0].couponResult.promotion.perceptionTypeId?p-p*t.checkout.coupons[0].couponResult.amount/100:p),...r&&{trip_type:r.returnDate?i.tripType.ROUND_TRIP:i.tripType.ONE_WAY},Services:[...(c=[],t.servicesResultInformation.forEach((e,r)=>{let n=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.origen.nombre),state:(0,B.formatGenericText)(e.serviceInformation.origen.localidad.provincia.nombre)}),o=(0,B.generateRouteText)({city:(0,B.formatGenericText)(e.serviceInformation.destino.nombre),state:(0,B.formatGenericText)(e.serviceInformation.destino.localidad.provincia.nombre)}),a={trip_direction:t.servicesResultInformation.length>1&&1===r?"return":"departure",available_seats:e.serviceInformation.butacas,price_localcurrency:e.serviceInformation.precio.valor,price_usd:e.serviceInformation.cotizacion.USD,service_charge_localcurrency:e.serviceInformation.importeServiceCharge,from_station:n,to_station:o,route:`${n} to ${o}`,from_station_id:Number(e.serviceInformation.origen.id)||null,to_station_id:Number(e.serviceInformation.destino.id)||null,service_charge_usd:e.serviceInformation.cotizacionServiceCharge.USD,comision_localcurrency:null,comision_usd:null,departure_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraSalida),arrival_date:(0,B.formatStringDateToAmplitudeStringDate)(e.serviceInformation.fechaHoraLlegada),total_price_localcurrency:e.serviceInformation.precio.valor+e.serviceInformation.importeServiceCharge,total_price_usd:e.serviceInformation.cotizacion.USD+e.serviceInformation.cotizacionServiceCharge.USD,duration_trip:e.serviceInformation.duracion,company:(0,B.formatGenericText)(e.serviceInformation.nombreProveedorVisualizacion),category:(0,B.formatGenericText)(e.serviceInformation.clase)};c.push(a)}),c)]}}}catch(e){return console.error(`Error creating event - ${i.EventNameEnum.VIEW_RETENTION_MODAL}`,e),(0,c.trackingExpectedBehaviour)({componentName:"viewRetentionModal",labelDetails:`Error creating event - ${i.EventNameEnum.VIEW_RETENTION_MODAL}`,severity:"error"}),null}}],58701)}]);

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.