webpackJsonp([0],{"+Q60":function(e,t,a){(function(e){var t=function(){var t=e(".county--type").val(),i=a();if(i){_loadSpinner(),e(".js-globalOverlay").show(),window.location.href=documentationUrl+t}return i},a=function(){e(".js-searchError").empty();var t=e(".county--type").val(),a=!0;return(null==t||""==t)&&(e(".js-searchError").text("El campo Pa\xEDs no puede estar vac\xEDo").fadeIn(),a=!1),a};e(document).ready(function(){0<e(".js-searchFormDocumentation").length&&e(".js-searchButton").off("click").on("click",function(){t()})})}).call(t,a("86YC"))},0:function(){},"22w9":function(e,t,a){(function(e){var t=function(){e(".js-searchError").empty(),e("#js-zoneError").empty(),e("#js-guestsError").empty();var t=e("#js-zone").val(),a=e("#js-guests").val(),i=!0;return""==t?(e("#js-zoneError").text("Por favor seleccione la zona").fadeIn(),i=!1):(1>a||9<a)&&(e("#js-guestsError").text("Cantidad de hu\xE9spedes invalida").fadeIn(),i=!1),i},a=function(){var a=e("#js-zone").val(),i=e("#js-guests").val(),s=t(),o=e("#date1").val();if(""==o||void 0==o){var r=new Date;r.setDate(r.getDate()+1);var n=10<=r.getMonth()+1?r.getMonth()+1:"0"+(r.getMonth()+1),p=10<=r.getDate()?r.getDate():"0"+r.getDate(),o=r.getFullYear()+"-"+n+"-"+p}if(s){var l=a+"/"+o+"/"+i;_loadSpinner(),e(".js-globalOverlay").show(),window.location.href=ticketUrl+l}return s};e(document).ready(function(){0<e(".js-searchFormTicket").length&&e(".js-searchButton").off("click").on("click",function(){a()})})}).call(t,a("86YC"))},"3Eqt":function(e,t,a){"use strict";(function(e){a.d(t,"a",function(){return i}),a.d(t,"b",function(){return o});var s=a("Vm3q"),i=function(t,a,i,o,r){if(s.a.instances[o]===s.a.instances[o+"max"])return!1;++s.a.instances[o];var n=o+"min"in s.a.instances;!1==n&&(s.a.instances[o+"min"]=0),s.a.instances[o]===s.a.instances[o+"max"]&&e(t).addClass("is-disabled"),s.a.instances[o]>s.a.instances[o+"min"]&&e(t).next(".js-deleteInstance").removeClass("is-disabled"),e(a).clone().insertBefore(i);var p=new RegExp(r,"g");e(i).prev(a).html(function(e,t){return t.replace(p,s.a.instances[o])}).each(function(){var t=e(this).attr("id");e(this).attr("id",t.replace(p,s.a.instances[o]))})},o=function(t,a,i,o){var r=i+"min"in s.a.instances;if(!1==r&&(s.a.instances[i+"min"]=0),s.a.instances[i]===s.a.instances[i+"min"])return!1;var n=new RegExp(o,"g");a=a.replace(n,s.a.instances[i]),e(a).remove(),s.a.instances[i]>s.a.instances[i+"min"]&&--s.a.instances[i],s.a.instances[i]===s.a.instances[i+"min"]&&e(t).addClass("is-disabled"),s.a.instances[i]<=s.a.instances[i+"max"]&&e(t).prevAll(".js-createInstance").removeClass("is-disabled")}}).call(t,a("86YC"))},"4+Tc":function(e,t,a){var i=a("MYit").twig,s=i({id:"cb208c64df1f5a3109ec3fb7ec90f18451cb15fae2614648bfa7c0a2d12b6711c38ef776006cd0d3bbfc8a738734249cfccda265c28c61b4dea43a473e11bd65",data:[{type:"raw",value:"<div class=\"text-center\" style=\"padding:72px 18px;background-color:rgba(0,0,0,.017);\">\n    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"message",match:["message"]},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"message",match:["message"]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"        "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"message",match:["message"]}]},{type:"raw",value:"<br>\n    "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"        Ocurri\xF3 un error inesperado, por favor int\xE9ntalo nuevamente.\n    "}]}},{type:"raw",value:"    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"errorCode",match:["errorCode"]},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"errorCode",match:["errorCode"]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"        <small class=\"type-grey\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"errorCode",match:["errorCode"]}]},{type:"raw",value:"</small>\n    "}]}},{type:"raw",value:"    \n</div>"}],allowInlineIncludes:!0,rethrow:!0});e.exports=function(e){return s.render(e)}},"5M89":function(e,t,a){"use strict";(function(e,i){a.d(t,"a",function(){return r}),a.d(t,"c",function(){return n}),a.d(t,"b",function(){return p});var s=a("4+Tc"),o=a.n(s),r=function(t,a){t=t||200,a=a||AVflight.ffType(),AVflight.loaded=!1;var s=window.location.href;e.ajax({url:ajaxUrlFlightAvail,async:!0,cache:!1,data:{maxResults:t,ffType:a,url_product:s},success:function(e){if(i.obj.isEmpty(e))n(a);else if(e.error)c(AVflight.results,e);else{var t=h(e);t?l(e,t):l(e,a)}},error:function(){n(a)},complete:function(){e(".js-flightLoader").hide()}}),e.publish("/flight-avail/request",[a])},n=function t(a,i){return a=a||AVflight.ffType(),i=i||e("input[name='flightTransactionID']").val()||null,null===i?(0<AVflight.availRetries?(AVflight.availRetries--,r()):c(AVflight.results,AVflight.data),!1):void(AVflight.loaded=!1,e.ajax({url:availabilityGetFlightResultsPlain+"/"+i,async:!0,cache:!1,data:{ffType:a},success:function(e){e.retry?setTimeout(function(){t(a)},2500):e.error?0<AVflight.availRetries?(AVflight.availRetries--,r()):c(AVflight.results,AVflight.data):l(e,a)},error:function(){setTimeout(function(){t(a)},2500)},complete:function(){e(".js-flightLoader").hide()}}),e.publish("/flight-avail/request",[a]))},p=function t(a,i){"undefined"!=typeof availabilityGetCalendar&&("loaded"===a.data("state")?a.data("state","reloading"):("error"===a.data("state")&&a.empty(),a.data("state","loading")),e.ajax({type:"POST",url:availabilityGetCalendar,async:!0,cache:!1,data:{ajaxUrlAvail:ajaxUrlFlightAvail},success:function(e){-1<e.indexOf("error")?(a.data("state","error"),c(a.get(0))):(a.data("state","loaded").html(e),d(a),u(a),m(a))},error:function(){setTimeout(function(){t(a,i)},2500)},complete:function(){i?e(".js-flightLoader").hide():_removeSpinner("js-targetCalendar")}}))},l=function(t,a){a=a||AVflight.ffType();var i=e(".js-ffOptions");if(t.attributes){var s="undefined"===t.attributes.AvailabilityType.has_ff?null:t.attributes.AvailabilityType.has_ff;if(i.length&&s){var o=i.find(".js-ffOption.active");if(o.length&&o.data("fftype")!==a)return;i.find(".js-ffOption").removeClass("active").filter("[data-fftype^=\""+a+"\"]").addClass("active"),i.data("state","loaded").show()}AVflight.data=t,AVflight.loaded=!0,AVflight.hasFF=s,AVflight.enableAlerts=t.enableAlerts,AVflight.front=t.front,e.publish("/render/complete",["flight",a])}else{}},c=function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e(t).css({display:"none"}).empty().html(o()(a)).css({display:""})},d=function(t){var a=t,i=a.find(".js-optionPrice"),s={price:Infinity,e:{}},o;i.each(function(){o=+e(this).data("price"),o<s.price&&(s={price:o,e:e(this)})}),g(s.e,s.e.closest(".js-calendarOption")),setTimeout(function(){y(a,i,s)},180)},y=function(t,a,s){var o=parseFloat(t.find(".selected-date .js-optionPrice").data("price")),r=[],n="",p=1,l,c;a.each(function(){return l=+e(this).data("price"),c=e(this).closest(".js-calendarOption"),!!(l>o)||void(l===s.price?g(e(this),c):c.hasClass("selected-date")||r.push({price:l,parent:c,e:e(this)}))}),r.sort(function(e,t){return e.price-t.price});for(var d=0;d<r.length&&!("undefined"!=typeof r[d-1]&&(r[d].parent.addClass("color-black bg-white"),r[d].price!==r[d-1].price&&(p++,4==p)));d++)2==p?(n="--2",r[d].parent.addClass("color-00A870 bg-EEFFF9")):3==p?(n="--3",r[d].parent.addClass("color-00A870 bg-EEFFF9")):void 0,r[d].parent.addClass("color-00A870 bg-EEFFF9")},g=function(t,e){t.children(".tooltips-content").remove(),t.addClass("tooltips").append(AVflight.tooltipBestPrice),e.addClass("color-00A870 bg-EEFFF9")},u=function(t){var a={clear:!1,reinit:!1};t.on("mouseenter","td:not(.disabled)",function(){var i=e(this).attr("class").match(/(?:\b|^)col[0-9](?:\b|$)/),s=e(this).attr("id"),o=e(this).nextAll();t.find(".is-active").removeClass("is-active"),t.find("."+i).each(function(){return e(this).attr("id")!==s&&void(o=o.add(e(this)))}),o.each(function(){e(this).addClass("is-active")}),a={clear:!0,reinit:!1}}),t.on("mouseleave","td:not(.disabled)",function(){a.reinit=!0,a.clear&&(t.find(".is-active").removeClass("is-active"),a.clear=!1),setTimeout(function(){a.reinit&&t.find(".selected-day--departure.row-head, .selected-day--return.column-head").addClass("is-active")},50)})},m=function(t){var a=t.find(".calendar-next, .calendar-prev"),i=!1;a.on("click",function(){if(!e(this).hasClass("disabled")&&!i){var s=this;i=!0,a.removeClass("disabled btn--static"),e(this).hasClass("calendar-next")?(t.find(".active-first").css("font-size","0").stop().animate({width:"toggle"},200,function(){e(this).css("font-size","").removeClass("active-first").addClass("inactive")}),t.find(".active-second").removeClass("active-second").addClass("active-first").next().css("font-size","0").stop().animate({width:"toggle"},400,function(){e(this).css("font-size","").removeClass(".inactive").addClass("active-second"),e(this).next().length||e(s).addClass("disabled btn--static"),i=!1})):(t.find(".active-second").css("font-size","0").stop().animate({width:"toggle"},200,function(){e(this).css("font-size","").removeClass("active-second").addClass("inactive")}),t.find(".active-first").removeClass("active-first").addClass("active-second").prev().css("font-size","0").stop().animate({width:"toggle"},400,function(){e(this).css("font-size","").removeClass(".inactive").addClass("active-first"),e(this).prev().not(".column-head").length||e(s).addClass("disabled btn--static"),i=!1}))}})},h=function(t){return!!(0<e(".page__body .search_promo").length)&&void(e(".js-toogleCalendar").hide(),t.urlDescription.providerInfo&&!t.urlDescription.multi?e(".js-toogleCalendar").show():e(".js-toogleCalendar").remove(),("aviatur_flight_round"===t.AvailabilityArray.route||"aviatur_flight_oneway"===t.AvailabilityArray.route)&&"1"===t.enableAlerts?(e("#alertCheckbox").show(),e("body").append(t.modal)):(e("#recomendacion-best-dates").remove(),e("#alertCheckbox").remove()),""===t.urlDescription.short&&""===t.urlDescription.long?e(".toogleInfoDisplay").remove():(e(".toogleInfoDisplay1").html(t.urlDescription.short),e(".toogleInfoDisplay2").html(t.urlDescription.long)),e(".js-ffOption").each(function(){if(!e(this).hasClass("active")&&"price"===e(this).data("fftype"))return"price"}))}}).call(t,a("86YC"),a("T6cr"))},"779H":function(e,t,a){"use strict";(function(e,i){a.d(t,"e",function(){return o}),a.d(t,"f",function(){return r}),a.d(t,"b",function(){return n}),a.d(t,"d",function(){return p}),a.d(t,"a",function(){return l}),a.d(t,"c",function(){return c}),a.d(t,"g",function(){return d});var s=a("Vm3q"),o=function(t){e(".js-searchError").empty().hide();for(var a=!0,i=!!e("#applyBudget").is(":checked"),s=1,o;s<=t;s++)if(o=e("#origin"+s+"Validate").val().split("").reverse().join(""),""==e("#origin"+s+"Validate").val()||""==e("#origin"+s).val()||"NN"==e("#origin"+s).val()?(e("#js-origin"+s+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Debe ingresar un origen").fadeIn(),a=!1):")"+e("#origin"+s).val().split("").reverse().join("")+"("!=o.substr(0,o.indexOf("(")+1)&&(e("#js-origin"+s+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Ingrese un origen desde la lista").fadeIn(),a=!1),!i){var r=e("#destination"+s+"Validate").val().split("").reverse().join("");""==e("#destination"+s+"Validate").val()||""==e("#destination"+s).val()||"NN"==e("#destination"+s).val()?(e("#js-destination"+s+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Debe ingresar un destino").fadeIn(),a=!1):")"+e("#destination"+s).val().split("").reverse().join("")+"("==r.substr(0,r.indexOf("(")+1)?e("#origin"+s).val()===e("#destination"+s).val()&&(e("#js-destination"+s+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Origen y destino no pueden ser iguales").fadeIn(),a=!1):(e("#js-destination"+s+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Ingrese un destino desde la lista").fadeIn(),a=!1)}for(var n=1;n<=t;n++)0<e("#date"+n).length&&""==e("#date"+n).val()&&(e("#js-date"+n+"Error").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> La fecha no puede estar vac\xEDa").fadeIn(),a=!1);if(i||((0==e("#js-adults").length||null===e("#js-adults").val()||null===parseInt(e("#js-adults").val()))&&(e("#js-adultsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Valor inv\xE1lido en campo adultos").fadeIn(),a=!1),(0==e("#js-children").length||null===e("#js-children").val()||null===parseInt(e("#js-children").val()))&&(e("#js-childrenError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Valor inv\xE1lido en campo ni\xF1os").fadeIn(),a=!1),(0==e("#js-infants").length||null===e("#js-infants").val()||null===parseInt(e("#js-infants").val()))&&(e("#js-infantsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Valor inv\xE1lido en campo infantes").fadeIn(),a=!1),(0===parseInt(e("#js-adults").val())||9<parseInt(e("#js-adults").val()))&&(e("#js-adultsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> Pueden viajar entre 1 y 9 adultos").fadeIn(),a=!1),3<parseInt(e("#js-children").val())&&(e("#js-childrenError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> No pueden viajar mas de 3 ni\xF1os").fadeIn(),a=!1),2<parseInt(e("#js-infants").val())&&(e("#js-infantsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> No pueden viajar mas de 2 infantes").fadeIn(),a=!1),9<parseInt(e("#js-adults").val())+parseInt(e("#js-children").val())+parseInt(e("#js-infants").val())&&(e("#js-adultsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> No pueden viajar mas de 9 pasajeros en total").fadeIn(),a=!1),parseInt(e("#js-infants").val())>parseInt(e("#js-adults").val())&&(e("#js-infantsError").html("<i class='material-symbols-outlined' style='color: mediumvioletred;'>info</i> No pueden viajar mas infantes que adultos").fadeIn(),a=!1)),"undefined"!=typeof applyCencosudFront&&e("#applyCencosudPromo").prop("checked",!0),0<e("#applyCencosudPromo").length&&e("#applyCencosudPromo").is(":checked")){var p=!0;"undefined"!=typeof applyCencosudFront&&(p=!1);var l=parseInt(e("#js-adults").val())+parseInt(e("#js-children").val())+parseInt(e("#js-infants").val());5<l&&(!0==p&&e("#applyCencosudPromo").prop("checked",!1),e("#js-modalSearchNotification").modal({backdrop:"static",keyboard:!1}),a=!1)}if(e("#isActiveTourCode").is(":checked")){if(3>e("#tourCode").val().length||15<e("#tourCode").val().length)e("#js-tourCodeError").text("Debe tener entre 3 y 15 caracteres").fadeIn(),a=!1;else{var c=/^[A-Za-z0-9]+$/;null==e("#tourCode").val().match(c)&&(e("#js-tourCodeError").text("Debe ser un valor alfanum\xE9rico").fadeIn(),a=!1)}0==e("#airlineTourCode").val()&&(e("#js-airlineTourCodeError").text("Debe seleccionar una aerol\xEDnea de la lista").fadeIn(),a=!1)}return a},r=function(){e(".js-searchError").empty().hide();var t=!0;(""==e("#destinationValidate").val()||""==e("#destination").val()||"NN"==e("#destination").val())&&(e("#js-destinationError").text("La ciudad de destino no puede estar vac\xEDa").fadeIn(),t=!1);var a=e("#destinationValidate").val().split("").reverse().join("");")"+e("#destination").val().split("").reverse().join("")+"("!=a.substr(0,a.indexOf("(")+1)&&(e("#js-destinationError").text("Debe seleccionar una ciudad de la lista").fadeIn(),t=!1),""==e("#date1").val()&&(e("#js-dateError").text("La fecha no puede estar vac\xEDa").fadeIn(),t=!1),""==e("#date-return1").val()&&(e("#js-dateError").text("La fecha no puede estar vac\xEDa").fadeIn(),t=!1);for(var i=1;i<=s.a.instances.rooms;i++)9<parseInt(e("#room"+i+"Adults").val())+s.a.instances["room"+i+"kids"]&&(e("#js-Travellers"+i+"Error").text("Pueden viajar entre 1 y 9 pasajeros en total").fadeIn(),t=!1);return t},n=function(){e(".js-searchError").empty().hide();var t=!0;return""==e("#origin1Validate").val()&&(e("#js-origin1Error").text("La ciudad no puede estar vac\xEDa").fadeIn(),t=!1),""==e("#destination1Validate").val()&&!1==s.a.sameCity&&(e("#js-destination1Error").text("La ciudad no puede estar vac\xEDa").fadeIn(),t=!1),e("#time1").val()&&e("#time-return1").val()||(e("#js-destination1Error").text("La hora de recogida/entrega no puede estar vac\xEDa").fadeIn(),t=!1),t},p=function(){e(".js-searchError").empty().hide();var t=!0;(""==e("#origin1Validate").val()||""==e("#origin1").val()||"NN"==e("#origin1").val())&&(e("#js-origin1Error").text("La ciudad de origen no puede estar vac\xEDa").fadeIn(),t=!1);var a=e("#origin1Validate").val().split("").reverse().join("");")"+e("#origin1").val().split("").reverse().join("")+"("!=a.substr(0,a.indexOf("(")+1)&&(e("#js-origin1Error").text("Debe seleccionar una ciudad de la lista").fadeIn(),t=!1),(""==e("#destination1Validate").val()||""==e("#destination1").val()||"NN"==e("#destination1").val())&&(e("#js-destination1Error").text("La ciudad de destino no puede estar vac\xEDa").fadeIn(),t=!1);var a=e("#destination1Validate").val().split("").reverse().join("");")"+e("#destination1").val().split("").reverse().join("")+"("!=a.substr(0,a.indexOf("(")+1)&&(e("#js-destination1Error").text("Debe seleccionar una ciudad de la lista").fadeIn(),t=!1),e("#origin1").val()===e("#destination1").val()&&(e("#js-destination1Error").text("Origen y destino no pueden ser iguales").fadeIn(),t=!1),""==e("#date1").val()&&e("#js-date1Error").text("La fecha no puede estar vac\xEDa").fadeIn();for(var i=0,o=0,r=0,n=1;n<=s.a.instances.rooms;n++)(0===parseInt(e("#room"+n+"Adults").val())||9<parseInt(e("#room"+n+"Adults").val()))&&(e("#js-Travellers"+n+"Error").text("Pueden viajar entre 1 y 9 adultos").fadeIn(),t=!1),3<parseInt(e("#js-children"+n).val())&&(e("#js-childrenError"+n).text("No pueden viajar mas de 3 ni\xF1os").fadeIn(),t=!1),2<parseInt(e("#js-infants").val())&&(e("#js-infantsError").text("No pueden viajar mas de 2 infantes").fadeIn(),t=!1),i+=+e("#room"+n+"Adults").val(),o+=+e("#js-children"+n).val(),r=i+o,9<r&&(e("#js-Travellers"+n+"Error").text("No pueden viajar mas de 9 pasajeros en total").fadeIn(),t=!1),parseInt(e("#js-infants").val())>parseInt(e("#js-adults").val())&&(e("#js-infantsError").text("No pueden viajar mas infantes que adultos").fadeIn(),t=!1);return t},l=function(){e(".js-searchError").empty().hide();var t=!0;return""==e("#origin1Validate").val()&&(e("#js-origin1Error").text("La ciudad no puede estar vac\xEDa").fadeIn(),t=!1),""==e("#destination1Validate").val()&&(e("#js-destination1Error").text("La ciudad no puede estar vac\xEDa").fadeIn(),t=!1),e("#origin1Validate").val()===e("#destination1Validate").val()&&(e("#js-destination1Error").text("Origen y destino no pueden ser iguales").fadeIn(),t=!1),(0==e("#js-passengers").length||null===e("#js-passengers").val()||null===parseInt(e("#js-passengers").val()))&&(e("#js-passengersError").text("Valor de pasajeros inv\xE0lido").fadeIn(),t=!1),(""==e("#date1").val()||""==e("#date-return1").val()&&e("#ida").hasClass("btn--inactive"))&&(e("#js-dateError").text("La fecha no puede estar vac\xEDa").fadeIn(),t=!1),t},c=function(){e(".js-searchError").empty().hide();var t=!0,a=e("#destination").val();return(""==a||null==a)&&(e("#js-destinationError").text("Por favor seleccione la regi\xF3n de b\xFAsqueda").fadeIn(),t=!1),e("#dateMonth").val()||(e("#js-dateMonthError").text("Seleccione un mes de salida").fadeIn(),t=!1),""==e("#date1").val()&&(e("#js-dateError").text("La fecha no puede estar vaci\xE1").fadeIn(),t=!1),""==e("#date-return1").val()&&(e("#js-dateError").text("La fecha no puede estar vaci\xE1").fadeIn(),t=!1),6<parseInt(e("#adults").val())+parseInt(e("#children").val())&&(e("#js-passengerError").fadeIn(),t=!1),0<e("#loyaltyMembershipID").val().length&&(3>e("#loyaltyMembershipID").val().length||15<e("#loyaltyMembershipID").val().length)&&(e("#js-loyaltyError").text("Debe tener entre 3 y 15 caracteres").fadeIn(),t=!1),t},d=function(){e(".js-searchError").empty().hide();var t=!0,a=e("#departure").val();(""==a||null==a)&&(e("#js-departureError").text("Por favor indique el lugar de origen").fadeIn(),t=!1);var s=e("#arrival").val();(""==s||null==s)&&(e("#js-arrivalError").text("Por favor indique el lugar de destino").fadeIn(),t=!1),""==e("#date1").val()&&(e("#js-dateError").text("La fecha no puede estar vac\xEDa").fadeIn(),t=!1),""==e("#date-return1").val()&&(e("#js-dateError").text("La fecha no puede estar vac\xEDa").fadeIn(),t=!1);for(var o=e("[name^=\"parameters[passengers]\"]").val(),r=1;r<=o;r++)""==e("[name^=\"parameters[birthday"+r+"]\"]").val()&&(e("#js-birthDateError").text("Ingrese todas las fechas de Nacimiento").fadeIn(),setTimeout(function(){e("#js-birthDateError").text("Ingrese todas las fechas de Nacimiento").fadeOut()},5e3),t=!1);return t};e(document).ready(function(){e(".js-searchForm").on("click",".js-searchErrorInput",function(){e(this).nextAll(".js-searchError").first().fadeOut()})})}).call(t,a("86YC"),a("86YC"))},"8n/K":function(e,t,a){"use strict";(function(e){a.d(t,"a",function(){return o});var i=function(){ga("send","event","search","submit","insurance");var t=s();if(t){var a="";0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(a+="?typeCoin="+e("[name^=\"typeCoin\"]").val()+"&"),e("[name^=\"parameters[destinationLabel]\"]").val(e("[name^=\"parameters[destination]\"] option:selected").text());var o="";o=e(".js-changeOption").val()+"/"+e("[name^=\"parameters[date1]\"]").val()+"/"+e("[name^=\"parameters[date-return1]\"]").val()+"/";for(var r=1;r<=e("[name^=\"parameters[passenger]\"]").val();r++)o+=e("[name^=\"passenger[birthday_"+r+"]\"]").val()+"+";var i=insuranceUrl+o.substring(0,o.length-1)+"/"+e("[name^=\"parameters[passenger]\"]").val();window.location.href=i+a,_loadSpinner(),e(".js-globalOverlay").show()}return t},s=function(){var t=e(".js-changeOption").val(),a=e("[name^=\"parameters[date1]\"]").val(),s=e("[name^=\"parameters[date1-insurance]\"]").val(),o=e("[name^=\"parameters[date-return1]\"]").val(),r=e("[name^=\"parameters[date-return1-insurance]\"]").val(),n=e("[name^=\"parameters[passenger]\"]").val(),p=!0;if(e(".js-searchError").empty().hide(),t?""==a||""==s?(e("#js-entryError").show().html("Por Favor Seleccione la fecha Inicial del Destino"),p=!1):""==o||""==r?(e("#js-endError").show().html("Por Favor Seleccione la fecha final del Destino"),p=!1):!n&&(e("#js-adultsError").show().html("Por Favor Seleccione la cantidad de Pasajeros"),p=!1):(e("#js-destinationError").show().html("Por Favor Seleccione el Destino"),p=!1),!0==p&&0<n)for(var l=1,i;l<=n;l++)i=e("[name^=\"passenger[birthday_"+l+"]\"]").val(),(""==i||void 0==i)&&(e("#js-adultsDateError"+l).show(),e("#js-adultsDateError"+l).html("Por Favor Seleccione la Fecha de Nacimiento del Pasajero"),p=!1);return p};e("body").on("change",".js-instanceOption",function(){o(this.value)});var o=function(t){e("#date-n1-").show(),e("#date-n1-").empty();for(var a=1,i;a<=t;a++)i="   <label for=\"passenger_birthday_"+a+"\" class=\"label-top\">Pasajero "+a+"</label>   <input type=\"text\" name=\"DateDisplay_passenger[birthday_"+a+"]\" id=\"DateDisplay_passenger_birthday_"+a+"\" value=\"\" placeholder=\"Fecha nacimiento pasajero "+a+"\" class=\"text-input input--white ui-widget-content2 ui-corner-all calendar\" data-datetarget=\"passenger_birthday_"+a+"\" readonly=\"readonly\">   <input type=\"hidden\" name=\"passenger[birthday_"+a+"]\" id=\"passenger_birthday_"+a+"\">   <label id=\"js-adultsDateError"+a+"\" class=\"label--error js-searchError\" style=\"display: none;\"></label>",e("#date-n1-").append(i),e("[name^=\"DateDisplay_passenger[birthday_"+a+"]\"]").datepicker({dateFormat:"dd M. y",showOn:"focus",minDate:"-90y",maxDate:"today",defaultDate:"-90ys",changeMonth:!0,changeYear:!0,yearRange:"-90y:today",onSelect:function(t,a){var i=-1;i=new Date(a.selectedYear,a.selectedMonth,a.selectedDay).getTime();var s=e.datepicker.formatDate("dd/mm/yy",new Date(i),{}),o=e.datepicker.formatDate("yy-mm-dd",new Date(i),{});e(this).val(s),e("#"+e(this).data("datetarget")).val(o)}})};e(document).ready(function(){var t=e(".js-instanceOption").val();o(t),0<e(".js-searchFormInsurance").length&&(e(".js-searchButton").off("click").on("click",function(){i()}),0<e("#js-option-anchor").length&&e("#js-appendto-option").appendTo("#js-option-anchor"))})}).call(t,a("86YC"))},ANK5:function(e,t,a){var i=a("MYit").twig,s=i({id:"bce2376b37507e95aaa88f9a9b91175a4122f634c64303ebdf36e01d6edf715a63f94f023c574bd9f430dec2c77b35d0c1d319c0685610dcb6e44d1236d1ec9e",data:[{type:"raw",value:"<div class=\"dispo-calendar__toogle-btn btn inline-block sp-stack pull-right hide-palm js-toogleCalendar\" data-toogle=\"0\">Ver Calendario +/- 3 d\xEDas</div>\n<div id=\"CalendarWidget\" class=\"dispo-calendar__widget hide-palm\" style=\"display:none;\">\n    <div class=\"dispo-calendar__container frame clearfix js-calendarFrame\" style=\"display:none;\">\n        <div id=\"js-targetCalendar\" class=\"dispo-calendar__table-wrapper\" data-state=\"init\"></div>\n    </div>\n</div>\n\n<!--<a class=\"js-ajax-alert btn inline-block sp-stack pull-right\" style=\"margin-right: 18px;\">Recibir alertas de precio</a>-->\n<div id=\"recomendacion-best-dates\" class=\"btn btn-recomendacion sp-stack\" data-toogle=\"0\">\n    <i class=\"icon icon_alert\" style=\"font-size: 26px;margin-right: 5px;margin-top: -10px;\"></i>\n    <a id=\"recomendacionLink\" style=\"color: white;\" onclick=\"ga('send', 'event', 'alertBestPrice', 'click');\"></a>\n</div>\n<div id=\"alertCheckbox\" class=\"toggle sp-stack pull-right\" style=\"display:none\">\n    <p style=\"float: left; margin: 0px; padding: 10px;\">Recibir alertas de precios</p>\n    <input type=\"checkbox\" id=\"toggle-alert\" name=\"toggle-alert\" class=\"toggle__checkbox\">\n    <label class=\"toggle__label\" for=\"toggle-alert\">\n        <span class=\"toggle__on\">SI</span>\n        <span class=\"toggle__off\">NO</span>\n        <span class=\"toggle__switch\"></span>\n    </label>\n</div>\n\n<div class=\"dispo-shared__ff-options pull-left js-ffOptions\" data-state=\"loading\" style=\"display:none;\">\n    <div class=\"nav-option js-ffOption\" data-fftype=\"price\">Por precio</div>\n    <div class=\"nav-option js-ffOption\" data-fftype=\"fare\">Por aerol\xEDnea</div>\n    "},{type:"raw",value:"\n</div>\n\n<div class=\"clearfix toogleInfoDisplay\">\n    <div class=\"js-showDescription justify toogleInfoDisplay1\" style=\"display:none\"></div>\n    <div class=\"js-showDescription toogleInfoDisplay2\"></div>\n    <span class=\"link-span js-toogleInfoDisplay js-resultFlDesc resultFlDesc-showMore\" data-target=\".js-showDescription\" style=\"display:none\">ver menos</span>\n</div>\n\n"},{type:"raw",value:"\n\n<div class=\"btn btn--full sp-stack js-toggleFilters js-toggleFilterAvail hidden-lap-and-up\" data-state=\"0\">Ver filtros</div>\n<div class=\"wrapper-susy js-availFilters js-toggleFilterAvail hidden-palm\" style=\"display:none\">\n    "},{type:"raw",value:"\n    <div class=\"col-3 sm-12 sp-stack relative\">\n        <div class=\"dispo-shared__filter-container--full\">\n            <div class=\"dispo-shared__filter-order js-orderResults\" data-order=\"price\" data-state=\"asc\" role=\"button\" tabindex=\"0\">Precio<i class=\"icon icon_order-asc sp-inline\" data-icon1=\"icon_order-asc\" data-icon2=\"icon_order-desc\"></i></div>\n            <span class=\"dispo-shared__filter-options js-filterOptions\" data-slidetoggle=\"js-priceFilters\" role=\"button\" tabindex=\"0\"><small><i class=\"icon icon_chevron_down\" data-icon1=\"icon_chevron_down\" data-icon2=\"icon_chevron_up\"></i></small></span>\n        </div>\n        <div class=\"dispo-shared__filter-options__picker picker js-priceFilters\" style=\"display:none;\">\n            <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n            <div class=\"js-filterUnit\" style=\"display: none;\">\n                <input type=\"text\" id=\"js-price\" class=\"dispo-flight__filter__input\" readonly=\"\">\n                <div id=\"js-slider-price\" class=\"dispo-flight__filter__slider ui-slider\"></div>\n            </div>\n        </div>\n    </div>\n    <div class=\"col-3 sm-12 sp-stack relative\">\n        <div class=\"dispo-shared__filter-container--full\">\n            <div class=\"dispo-shared__filter-order js-orderResults\" data-order=\"dephour\" data-state=\"asc\" role=\"button\" tabindex=\"0\">Hora de salida<i class=\"icon icon_order-asc sp-inline\" data-icon1=\"icon_order-asc\" data-icon2=\"icon_order-desc\"></i></div>\n            <span class=\"dispo-shared__filter-options js-filterOptions\" data-slidetoggle=\"js-deptimeFilters\" role=\"button\" tabindex=\"0\"><small><i class=\"icon icon_chevron_down\" data-icon1=\"icon_chevron_down\" data-icon2=\"icon_chevron_up\"></i></small></span>\n        </div>\n        <div class=\"dispo-shared__filter-options__picker picker js-deptimeFilters\" style=\"display:none;\">\n            <h3>Hora</h3>\n            "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"i",expression:[{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.variable",value:"AvailabilityArray",match:["AvailabilityArray"]},{type:"Twig.expression.type.key.period",key:"flights"},{type:"Twig.expression.type.operator.binary",value:"..",precidence:20,associativity:"leftToRight",operator:".."}],output:[{type:"raw",value:"                <p class=\"dispo-flight__filter__title\">Salida Vuelo "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]}]},{type:"raw",value:"</p>\n                <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n                <div class=\"js-filterUnit\" style=\"display: none;\">\n                    <input type=\"text\" id=\"js-hour-dephour-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__input\" readonly>\n                    <div id=\"js-slider-hour-dephour-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__slider ui-slider\"></div>\n                </div>\n                <p class=\"dispo-flight__filter__title\">Llegada Vuelo "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]}]},{type:"raw",value:"</p>\n                <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n                <div class=\"js-filterUnit\" style=\"display: none;\">\n                    <input type=\"text\" id=\"js-hour-arrhour-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__input\" readonly>\n                    <div id=\"js-slider-hour-arrhour-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__slider ui-slider\"></div>\n                </div>\n            "}]}},{type:"raw",value:"        </div>\n    </div>\n    <div class=\"col-3 sm-12 sp-stack relative\">\n        <div class=\"dispo-shared__filter-container--full\">\n            <div class=\"dispo-shared__filter-order js-orderResults\" data-order=\"duration\" data-state=\"asc\" role=\"button\" tabindex=\"0\">Duraci\xF3n<i class=\"icon icon_order-asc sp-inline\" data-icon1=\"icon_order-asc\" data-icon2=\"icon_order-desc\"></i></div>\n            <span class=\"dispo-shared__filter-options js-filterOptions\" data-slidetoggle=\"js-durationFilters\" role=\"button\" tabindex=\"0\"><small><i class=\"icon icon_chevron_down\" data-icon1=\"icon_chevron_down\" data-icon2=\"icon_chevron_up\"></i></small></span>\n        </div>\n        <div class=\"dispo-shared__filter-options__picker picker js-durationFilters\" style=\"display:none;\">\n            <h3>Tiempo de Vuelo</h3>\n            "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"i",expression:[{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.variable",value:"AvailabilityArray",match:["AvailabilityArray"]},{type:"Twig.expression.type.key.period",key:"flights"},{type:"Twig.expression.type.operator.binary",value:"..",precidence:20,associativity:"leftToRight",operator:".."}],output:[{type:"raw",value:"                <p class=\"dispo-flight__filter__title\">Vuelo "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]}]},{type:"raw",value:"</p>\n                <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n                <div class=\"js-filterUnit\" style=\"display: none;\">\n                    <input type=\"text\" id=\"js-flight-time-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__input\" readonly>\n                    <div id=\"js-slider-flight-time-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"i",match:["i"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"raw",value:"\" class=\"dispo-flight__filter__slider ui-slider\"></div>\n                </div>\n            "}]}},{type:"raw",value:"        </div>\n    </div>\n    <div class=\"col-3 sm-12 sp-stack relative\">\n        <div class=\"dispo-shared__filter-container\">\n            <div class=\"dispo-shared__filter-more js-slidePicker\" data-slidetoggle=\"js-miscFilters\" role=\"button\" tabindex=\"0\">Otros filtros<i class=\"icon icon_options sp-inline\"></i></div>\n        </div>\n        <div class=\"dispo-shared__filter-options__picker picker js-miscFilters\" style=\"display:none;\">\n            <div class=\"fare-filter-switch\">\n                <h3 class=\"condensed\">Tarifas</h3>\n                <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n                <div class=\"sp-stack js-filterUnit\" data-entity=\"fares\" style=\"display: none;\"></div>\n            </div>\n            <h3 class=\"condensed\">Aerol\xEDneas</h3>\n            <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n            <div class=\"sp-stack js-filterUnit\" data-entity=\"airlines\" style=\"display: none;\"></div>\n            <h3 class=\"condensed\">Escalas</h3>\n            <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n            <div class=\"sp-stack js-filterUnit\" data-entity=\"stops\" style=\"display: none;\"></div>\n            <h3 class=\"condensed\">Aeropuertos</h3>\n            <div class=\"js-ajaxLoader\"><div class=\"dispo-shared__filter-loader circularG\"></div></div>\n            <div class=\"sp-stack js-filterUnit\" data-entity=\"airports\" style=\"display: none;\"></div>\n        </div>\n    </div>\n</div>\n"}],allowInlineIncludes:!0,rethrow:!0});e.exports=function(e){return s.render(e)}},DIDY:function(e,t,a){var i=a("MYit").twig,s=i({id:"8e160c22c9ad18e848ca4bf59d9dfc22c13b6f3e96e5aa3570885f156e1ea4503677b63ed8a8012c5c58ddb8f79aa20847ddec7db32be1133cf297ec2983de58",data:[{type:"logic",token:{type:"Twig.logic.type.block",blockName:"resume_content",output:[{type:"raw",value:"    <div class=\"text-center js-resumeSearch\">\n        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.string",value:""}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.string",value:""}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"tripLabel",expression:[{type:"Twig.expression.type.string",value:""}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"firstEntitie",expression:[{type:"Twig.expression.type.bool",value:!0}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"entitie",expression:[{type:"Twig.expression.type.variable",value:"entities",match:["entities"]}],output:[{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"}],output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"firstEntitie",match:["firstEntitie"]}],output:[{type:"raw",value:"                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"firstEntitie",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:", "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                    "}]}},{type:"raw",value:"                "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:", "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                "}]}},{type:"raw",value:"                <div class=\"resume-search__separator hide-palm pull-left\"></div>\n            "}]}},{type:"raw",value:"            <div class=\"resume-search__block hide-palm pull-left\">\n                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"inner_separator",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"tripLabel, multiLabel",expression:[{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"\n                "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"block",expression:[{type:"Twig.expression.type.variable",value:"entitie",match:["entitie"]},{type:"Twig.expression.type.key.period",key:"blocks"}],output:[{type:"raw",value:"\n                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"separator"},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"separator"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                            <div class=\"resume-search__separator--inner pull-left\"></div>\n                        "}]}},{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"inner_separator",expression:[{type:"Twig.expression.type.bool",value:!0}]}},{type:"raw",value:"                    "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.string",value:"multi"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.string",value:"train"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.operator.binary",value:"or",precidence:14,associativity:"leftToRight",operator:"or"}]},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"label"},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"date"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"tripLabel",expression:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"date"}]}},{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"multiLabel",expression:[{type:"Twig.expression.type.bool",value:!0}]}},{type:"raw",value:"                        "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"multiLabel",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"                        "}]}},{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"}],output:[{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"inner_separator",match:["inner_separator"]},{type:"Twig.expression.type.operator.unary",value:"not",precidence:3,associativity:"rightToLeft",operator:"not"}],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"firstEntitie",match:["firstEntitie"]},{type:"Twig.expression.type.operator.unary",value:"not",precidence:3,associativity:"rightToLeft",operator:"not"}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                "}]}},{type:"raw",value:"                                <div class=\"resume-search__arrow-wrapper pull-left js-title\" data-type=\"dp\" data-count=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"travelNumber"}]},{type:"raw",value:"\">\n                                    "},{type:"raw",value:"\n                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.unary",value:"not",precidence:3,associativity:"rightToLeft",operator:"not"}],output:[{type:"raw",value:"\n                                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"date"},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"                                            <small class=\"resume-search__block__label\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"date"}]},{type:"raw",value:"</small>\n                                        "}]}},{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"traveltype"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"traveltype"},{type:"Twig.expression.type.string",value:"p"},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                            <i class=\"icon icon_dart-open_right\"></i>\n                                        "}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                </div>\n                            "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"inner_separator",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"                            "}]}},{type:"raw",value:"                        "}]}},{type:"raw",value:"                        "},{type:"raw",value:"\n                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"firstEntitie",match:["firstEntitie"]}],output:[{type:"raw",value:"                            "},{type:"raw",value:"\n                            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"roundtrip",match:["roundtrip"]},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"roundtrip",match:["roundtrip"]},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:2,match:["2",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.string",value:" &#8211; "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.string",value:" &#8211; "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"\n                                    "}]}},{type:"raw",value:"                                "}]}},{type:"raw",value:"                            "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"multi",match:["multi"]},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"multi",match:["multi"]},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.string",value:" &#8211; "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                "}]}},{type:"raw",value:"                            "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:2,match:["2",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.string",value:" &#8211; "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.string",value:" &#8211; "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:" - "},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index0"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"blockPalm",expression:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}],output:[{type:"raw",value:"                                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                    "}]}},{type:"raw",value:"                                "}]}},{type:"raw",value:"                            "}]}},{type:"raw",value:"                        "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.string",value:"passenger"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:"<i class=\"icon icon_passenger_man\"></i>"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"type"},{type:"Twig.expression.type.string",value:"room"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                                    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.string",value:"<i class=\"icon icon_bundle_hotel\"></i>"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                                "}]}},{type:"raw",value:"                            "}]}},{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"descriptionPalm",expression:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"                        "}]}},{type:"raw",value:"\n                        <div class=\"resume-search__block__content pull-left tooltips\">\n                            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"tooltip"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"tooltip"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                <span class=\"tooltips-content\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"tooltip"}]},{type:"raw",value:"</span>\n                            "}]}},{type:"raw",value:"                            <p class=\"resume-search__block__title no-margin-bottom js-title\" data-count=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"travelNumber"}]},{type:"raw",value:"\" data-type=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"traveltype"}]},{type:"raw",value:"\" data-route=\""},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"cookieLastSearch",match:["cookieLastSearch"]},{type:"Twig.expression.type.key.period",key:"routeType"},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"output",stack:[{type:"Twig.expression.type.variable",value:"cookieLastSearch",match:["cookieLastSearch"]},{type:"Twig.expression.type.key.period",key:"routeType"}]}]}},{type:"raw",value:"\"><b>"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"title"}]},{type:"raw",value:"</b></p>\n                                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"label"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"label"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                        "},{type:"raw",value:"\n                                <small class=\"resume-search__block__label\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"label"}]},{type:"raw",value:"</small>                                     \n                                "},{type:"raw",value:"\n                            "}]}},{type:"raw",value:"                            "},{type:"raw",value:"\n                            "},{type:"raw",value:"\n                        </div>\n                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]},{type:"Twig.expression.type.variable",value:"multiLabel",match:["multiLabel"]},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                            <div class=\"resume-search__arrow-wrapper pull-left js-title\" data-type=\"dp\" data-count=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"travelNumber"}]},{type:"raw",value:"\">\n\n                                <small class=\"resume-search__block__label\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"tripLabel",match:["tripLabel"]}]},{type:"raw",value:"</small>\n                                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"traveltype"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"traveltype"},{type:"Twig.expression.type.string",value:"p"},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                                    <i class=\"icon icon_dart-open_right pull-a-bit-upwards\"></i>\n                                "}]}},{type:"raw",value:"                            </div>\n                        "}]}},{type:"raw",value:"                    "}]}},{type:"raw",value:"                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"last"},{type:"Twig.expression.type.string",value:"true"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                        <p class=\"hidden-all js-count\" data-travelcount=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"block",match:["block"]},{type:"Twig.expression.type.key.period",key:"travelNumber"}]},{type:"raw",value:"\"></p>                                    \n                    "}]}},{type:"raw",value:"                "}]}},{type:"raw",value:"            </div>\n        "}]}},{type:"raw",value:"        <div class=\"resume-search__palm hide-lap-and-up\">                \n            <div class=\"resume-search__palm__row\"><b>"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"blockPalm",match:["blockPalm"]},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"]}]},{type:"raw",value:"</b></div>\n            <div class=\"resume-search__palm__row\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"descriptionPalm",match:["descriptionPalm"]},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"]}]},{type:"raw",value:"</div>\n        </div>\n        <div class=\"resume-search__block pull-right\">\n            <div class=\"resume-search__block__change-button link-span js-changeSearch\">\n                Cambiar<span class=\"hide-palm\"> la b\xFAsqueda</span>\n            </div>\n        </div>\n    </div>\n    \n"}]}},{type:"raw",value:"<style>\n    .search__light--box .btn-group > .btn--inactive{\n        color:#009bf8 !important;\n    }\n    .search__option{\n        color:#009bf8 !important;\n    }\n    .search__light--box{\n        background-color:rgba(0, 0, 0, 0) !important;\n    }\n</style>\n<script type=\"text/javascript\">\n    var ajaxUrlFlightAvail = '"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"url",match:["url"]},{type:"Twig.expression.type.filter",value:"raw",match:["| raw","raw"]}]},{type:"raw",value:"';\n    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"AvailabilityArray",match:["AvailabilityArray"]},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"        var AvailabilityArray\n        ="},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"AvailabilityArray",match:["AvailabilityArray"]},{type:"Twig.expression.type.filter",value:"json_encode",match:["|json_encode","json_encode"]},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"]}]},{type:"raw",value:" ;\n    "}]}},{type:"raw",value:"    var travelcount = jQuery('.js-count').data('travelcount');\n    var i = 1;\n    jQuery('#js-airline_empty').on('click', function () {\n        jQuery(\"#airline\").val(\"\");\n    });\n    jQuery('.js-changeSearch, .js-closeSearchEngine').on('click', function () {\n        if (jQuery('.js-datepicker-container-target').is(':visible') === true) {\n            jQuery('.js-datepicker-container-target').hide();\n        }\n    });\n    jQuery('.js-title, .js-changeSearch, .js-closeSearchEngine').on('click', function () {\n        if (jQuery('#js-createDatepicker' + count).is(':visible') === true) {\n            jQuery('#js-createDatepicker' + count).hide();\n        }\n        if (jQuery('.js-travelers').is(':visible') === true) {\n            jQuery('.js-travelers').hide();\n        }\n        var count = jQuery(this).data('count');\n        var travel = jQuery(this).data('type');\n        jQuery('.js-resumeSearch, .js-newSearchEngine').toggle(0);\n        if (jQuery('.js-title').data('route') === 'multi') {\n            jQuery(\"#multidest\").removeClass('btn--inactive');\n            jQuery(\"#multidest\").click();\n            jQuery(\"#ida\").addClass('btn--inactive');\n            jQuery(\"#ida\").data('oneway', 0);\n            // jQuery(\".flightReturn1\").show();\n            jQuery(\".flightReturn1\").fadeTo(100, 1)\n            jQuery(\"#ida\").addClass('btn--inactive');\n            jQuery(\"#vuelta\").addClass('btn--inactive');\n        } else {\n            if (jQuery('.js-title').data('route') === 'round') {\n                jQuery(\"#ida\").data('oneway', 0);\n            // jQuery(\".flightReturn1\").show();\n            jQuery(\".flightReturn1\").fadeTo(100, 1)\n                jQuery(\"#ida\").addClass('btn--inactive');\n                jQuery(\"#multidest\").addClass('btn--inactive');\n                jQuery(\"#vuelta\").removeClass('btn--inactive');\n            } else if (jQuery('.js-title').data('route') === 'oneway') {\n                jQuery(\"#ida\").data('oneway', 1);\n                // jQuery(\".flightReturn1\").hide();\n                jQuery(\".flightReturn1\").fadeTo(100, 0)\n                jQuery(\"#multidest\").addClass('btn--inactive');\n                jQuery(\"#vuelta\").addClass('btn--inactive');\n                jQuery(\"#ida\").removeClass('btn--inactive');\n            }\n        }\n        if (travel == \"o\") {\n            jQuery('input[name=\"parameters[origin' + count + 'Validate]\"]').select();\n            jQuery('input[name=\"parameters[departureValidate]\"]').select();\n        } else if (travel == \"d\") {\n            jQuery('input[name=\"parameters[destination' + count + 'Validate]\"]').select();\n            jQuery('input[name=\"parameters[destinationValidate]\"]').select();\n            jQuery('input[name=\"parameters[origin-n1-Validate]\"]').select();\n            jQuery('input[name=\"parameters[arrivalValidate]\"]').select();\n        } else if (travel == \"p\") {\n            jQuery('.js-travelers').toggle();\n        } else if (travel == \"dp\") {\n            if (jQuery('#js-createDatepicker-return1').is(':visible') == true) {\n                if (count == 2) {\n                    jQuery('#js-createDatepicker-return1').select().click();\n                } else {\n                    jQuery('#js-createDatepicker' + count).select().click();\n                }\n            } else {\n                jQuery('#js-createDatepicker' + count).select().click();\n            }\n        }      \n    });\n</script>"}],allowInlineIncludes:!0,rethrow:!0});e.exports=function(e){return s.render(e)}},DKKE:function(){},DRMX:function(e,t,a){"use strict";(function(e){var t=a("Vm3q"),i=a("3Eqt"),s=a("jWwD"),o=a("779H"),r=a("Q+xo"),n=function(){ga("send","event","search","submit","flighthotel");var a=Object(o.d)();if(!0===a){var s="?";0<e("#airline").length&&""!=e("#airline").val()&&(s+="airline="+e("#airline").val()+"&"),0<e("#travel-class").length&&""!=e("#travel-class").val()&&(s+="class="+e("#travel-class").val()+"&"),0<e("#stop-over").length&&""!=e("#stop-over").val()&&(s+="stop="+e("#stop-over").val()+"&"),0<e("#baggage").length&&e("#baggage").is(":checked")&&(s+="baggage=1&"),0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(s+="typeCoin="+e("[name^=\"typeCoin\"]").val()+"&"),s=s.substring(0,s.length-1);for(var r="vuelo-y-hotel/"+e("#origin1").val()+"-"+e("#destination1").val()+"/"+e("#date1").val()+e("#time1").val()+"+"+e("#date-return1").val()+e("#time-return1").val(),n=1;n<=t.a.instances.rooms;n++)if(r+="/"+e("#room"+n+"Adults").val()+"+",0<t.a.instances["room"+n+"kids"])for(var i=1,p=t.a.instances["room"+n+"kids"];i<=p;i++)r+=e("#js-room"+n+"child"+i+" > .form-group select").val(),r+=i===p?"":"-";else r+="n";window.location.href=multiUrl+r+s,_loadSpinner(),e(".js-globalOverlay").show()}return a};e(document).ready(function(){0<e(".js-searchFormFlightHotelCar").length&&(e(".js-flights .js-slideContent").stop(!0,!0).slideDown().show(),t.a.hotelDate=new Date(new Date().getTime()+2592000000),e(".js-createRoom").on("click",function(){Object(i.a)(this,"#js-room-n1-","#js-rooms-anchor","rooms","-n1-"),e("#js-room"+t.a.instances.rooms+" > .js-slideContent").slideDown()}),e(".js-deleteRoom").on("click",function(){t.a.instances.rooms>t.a.instances.roomsmin&&e("#js-room"+t.a.instances.rooms).slideUp();var a=t.a.instances.rooms;t.a.instances["room"+a+"kids"]=0,setTimeout(function(){Object(i.b)(e(".js-deleteRoom"),"#js-room-n1-","rooms","-n1-")},300)}),e("body").on("change",".js-instanceOption",function(){Object(r.a)(this)}),e("body").on("click",".js-prevOption",function(){var t=e(this).parent().parent().find(".js-changeOption");Object(r.a)(t)}),e("body").on("click",".js-nextOption",function(){var t=e(this).parent().parent().find(".js-changeOption");Object(r.a)(t)}),e(".js-searchButton").off("click").on("click",function(){n()}),e(".flightReturn1").fadeIn(200),e(".js-createRoom").trigger("click"),e("#origin1Validate").val("Bogot\xE1, Colombia (BOG)"),e("#origin1").val("BOG"),Object(s.e)("#origin1",indexUrl+"buscar/cities-autocomplete/hotels/",s.f),Object(s.e)("#destination1",indexUrl+"buscar/cities-autocomplete/hotels/",s.f),Object(s.e)("#airline",indexUrl+"buscar/buscar-aerolineas/",s.a,s.b))})}).call(t,a("86YC"))},FHml:function(e,t,a){(function(e){function a(e,t){for(var a=0,s=e.length-1,i;0<=s;s--)i=e[s],"."===i?e.splice(s,1):".."===i?(e.splice(s,1),a++):a&&(e.splice(s,1),a--);if(t)for(;a--;a)e.unshift("..");return e}function i(e){"string"!=typeof e&&(e+="");var t=0,a=-1,s=!0,o;for(o=e.length-1;0<=o;--o)if(47!==e.charCodeAt(o))-1==a&&(s=!1,a=o+1);else if(!s){t=o+1;break}return-1===a?"":e.slice(t,a)}function s(e,t){if(e.filter)return e.filter(t);for(var a=[],s=0;s<e.length;s++)t(e[s],s,e)&&a.push(e[s]);return a}t.resolve=function(){for(var t="",o=!1,r=arguments.length-1,i;-1<=r&&!o;r--){if(i=0<=r?arguments[r]:e.cwd(),"string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");else if(!i)continue;t=i+"/"+t,o="/"===i.charAt(0)}return t=a(s(t.split("/"),function(e){return!!e}),!o).join("/"),(o?"/":"")+t||"."},t.normalize=function(e){var i=t.isAbsolute(e),r="/"===o(e,-1);return e=a(s(e.split("/"),function(e){return!!e}),!i).join("/"),e||i||(e="."),e&&r&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(s(e,function(e){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,a){function s(e){for(var t=0;t<e.length&&""===e[t];t++);for(var a=e.length-1;0<=a&&""===e[a];a--);return t>a?[]:e.slice(t,a-t+1)}e=t.resolve(e).substr(1),a=t.resolve(a).substr(1);for(var o=s(e.split("/")),r=s(a.split("/")),n=Math.min(o.length,r.length),p=n,l=0;l<n;l++)if(o[l]!==r[l]){p=l;break}for(var i=[],l=p;l<o.length;l++)i.push("..");return i=i.concat(r.slice(p)),i.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),a=47===t,s=-1,o=!0,r=e.length-1;1<=r;--r)if(t=e.charCodeAt(r),47!==t)o=!1;else if(!o){s=r;break}return-1===s?a?"/":".":a&&1===s?"/":e.slice(0,s)},t.basename=function(e,t){var a=i(e);return t&&a.substr(-1*t.length)===t&&(a=a.substr(0,a.length-t.length)),a},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,a=0,s=-1,o=!0,r=0,n=e.length-1,i;0<=n;--n){if(i=e.charCodeAt(n),47===i){if(!o){a=n+1;break}continue}-1==s&&(o=!1,s=n+1),46===i?-1===t?t=n:1!=r&&(r=1):-1!==t&&(r=-1)}return-1===t||-1===s||0==r||1==r&&t===s-1&&t===a+1?"":e.slice(t,s)};var o=function(e,t,a){return e.substr(t,a)}}).call(t,a("rH1J"))},FRZn:function(e,t,a){var i=a("MYit").twig,s=i({id:"b92e8dacc92609e7ffac8656d500bbc45cf2fb05ba9a7aded709d4f9090f90aabc4d8b274390e1bea3c7c034978660b2ccaced296b800ecfbedadd4533cfcc65",data:[{type:"raw",value:"\n"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"app",match:["app"]},{type:"Twig.expression.type.key.period",key:"request"},{type:"Twig.expression.type.key.period",key:"attributes"}]},{type:"raw",value:"\n"},{type:"logic",token:{type:"Twig.logic.type.set",key:"isDetailView",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"\n"},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"showFareInfo",match:["showFareInfo"]},{type:"Twig.expression.type.test",filter:"defined",modifier:"not"}],output:[{type:"raw",value:"    "},{type:"logic",token:{type:"Twig.logic.type.set",key:"showFareInfo",expression:[{type:"Twig.expression.type.bool",value:!0}]}}]}},{type:"raw",value:"\n<script>\nvar partes = ajaxUrlFlightAvail.split('/');\nvar fechas = partes[3];\nvar iataDestiny = partes[2].split('-')[1];\nvar passengers = partes[4].split('-')[0];\nvar fechasSeparadas = fechas.split('+');\nvar fecha1 = fechasSeparadas[0];\nvar fecha2 = fechasSeparadas[1];\n    \nif(fecha2 === undefined || fecha2 === null ){\n    jQuery(\"#copyEndDetail\").hide();\n}\nvar allTextSuggest = `${fecha1.split('-').reverse().join('/')} - ${fecha2.split('-').reverse().join('/')} dando`;\njQuery(\".js-suggestClik\").attr(\"href\", `/hoteles/${iataDestiny}/${fecha1}+${fecha2}/${passengers}+n`);\njQuery(\".js-suggestText\").text(allTextSuggest);\n\n</script>\n\n<section class=\"h-full mt-7\">\n    "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"flight",expression:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]}],output:[{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"TypeFligth",expression:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"RefNumber"}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"            <input type=\"hidden\" name=\"CDD[date_"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]}]},{type:"raw",value:"]\" class=\"CDD_date_"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]}]},{type:"raw",value:"\" value=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureDateTime"},{type:"Twig.expression.type.filter",value:"trans",match:["|trans","trans"]},{type:"Twig.expression.type.filter",value:"slice",match:["|slice","slice"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.number",value:10,match:["10",null]},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:"\"/>\n            <input type=\"hidden\" name=\"CDD[flight_number_"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]}]},{type:"raw",value:"]\" class=\"CDD_flight_number_"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]}]},{type:"raw",value:"\" value=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"MarketingAirline"},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"Code"}]},{type:"raw",value:"-"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"FlightNumber"}]},{type:"raw",value:"\"/>\n            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"flightStep",expression:[{type:"Twig.expression.type.variable",value:"flightStep",match:["flightStep"]},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"+",precidence:6,associativity:"leftToRight",operator:"+"}]}},{type:"raw",value:"        "}]}},{type:"raw",value:"\n        "},{type:"raw",value:"\n\n        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"lastFlightSegmentAirline",expression:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"PriceType"},{type:"Twig.expression.type.filter",value:"split",match:["|split","split"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"-"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.number",value:0,match:["0",null]}]}]}},{type:"raw",value:"        "},{type:"raw",value:"\n        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"airlineFareTemp",expression:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"PriceType"}]}},{type:"raw",value:"\n        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"airlineFareTypes",match:["airlineFareTypes"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"lastFlightSegmentAirline",match:["lastFlightSegmentAirline"]}]},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"airlineFareTypes",match:["airlineFareTypes"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"lastFlightSegmentAirline",match:["lastFlightSegmentAirline"]}]},{type:"Twig.expression.type.null",value:null},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"includedBaggageSmall",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"airlineFareTypes",match:["airlineFareTypes"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"lastFlightSegmentAirline",match:["lastFlightSegmentAirline"]}]},{type:"Twig.expression.type.key.period",key:"fares"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"airlineFareTemp",match:["airlineFareTemp"]}]},{type:"Twig.expression.type.key.period",key:"conditions"},{type:"Twig.expression.type.key.period",key:"FFC_Luggage_Small"}]},{type:"Twig.expression.type.filter",value:"trans",match:["|trans","trans"]},{type:"Twig.expression.type.string",value:"Incluye"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"includedCarryOnHandBaggage",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"airlineFareTypes",match:["airlineFareTypes"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"lastFlightSegmentAirline",match:["lastFlightSegmentAirline"]}]},{type:"Twig.expression.type.key.period",key:"fares"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"airlineFareTemp",match:["airlineFareTemp"]}]},{type:"Twig.expression.type.key.period",key:"conditions"},{type:"Twig.expression.type.key.period",key:"FFC_Luggage_CarryOn"}]},{type:"Twig.expression.type.filter",value:"trans",match:["|trans","trans"]},{type:"Twig.expression.type.string",value:"Incluye"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"includedBaggage",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"airlineFareTypes",match:["airlineFareTypes"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"lastFlightSegmentAirline",match:["lastFlightSegmentAirline"]}]},{type:"Twig.expression.type.key.period",key:"fares"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"airlineFareTemp",match:["airlineFareTemp"]}]},{type:"Twig.expression.type.key.period",key:"conditions"},{type:"Twig.expression.type.key.period",key:"FFC_Luggage_Baggage"}]},{type:"Twig.expression.type.filter",value:"trans",match:["|trans","trans"]},{type:"Twig.expression.type.string",value:"Incluye"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"\n            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"titleSmallBag",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedBaggageSmall",match:["includedBaggageSmall"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.string",value:"Incluye equipaje personal"},{type:"Twig.expression.type.string",value:"No incluye equipaje personal"},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"titleCarryOnBag",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedCarryOnHandBaggage",match:["includedCarryOnHandBaggage"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.string",value:"Incluye {pieces}equipaje{s} de mano"},{type:"Twig.expression.type.string",value:"No incluye equipaje de mano"},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"titleBaggage",expression:[{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedBaggage",match:["includedBaggage"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.string",value:"Incluye {pieces}equipaje{s} de bodega"},{type:"Twig.expression.type.string",value:"No incluye equipaje de bodega"},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]}},{type:"raw",value:"\n            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggageSmall",expression:[{type:"Twig.expression.type.string",value:"included-bag"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggageCarryOn",expression:[{type:"Twig.expression.type.string",value:"included-bag"}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggage",expression:[{type:"Twig.expression.type.string",value:"included-bag"}]}},{type:"raw",value:"\n            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"includedBaggageSmall",match:["includedBaggageSmall"]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggageSmall",expression:[{type:"Twig.expression.type.string",value:"not-"},{type:"Twig.expression.type.variable",value:"baggageSmall",match:["baggageSmall"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"            "}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"includedCarryOnHandBaggage",match:["includedCarryOnHandBaggage"]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggageCarryOn",expression:[{type:"Twig.expression.type.string",value:"not-"},{type:"Twig.expression.type.variable",value:"baggageCarryOn",match:["baggageCarryOn"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"            "}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"includedBaggage",match:["includedBaggage"]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggage",expression:[{type:"Twig.expression.type.string",value:"not-"},{type:"Twig.expression.type.variable",value:"baggage",match:["baggage"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"}]}},{type:"raw",value:"            "}]}},{type:"raw",value:"\n            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"baggages",expression:[{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"baggage-small"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"title"},{type:"Twig.expression.type.variable",value:"titleSmallBag",match:["titleSmallBag"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"dimensions"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"description"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedBaggageSmall",match:["includedBaggageSmall"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.string",value:"(5kg / 45X35X25cm) El morral debe caber bajo la silla de en frente"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"icon"},{type:"Twig.expression.type.string",value:"<svg class=\""},{type:"Twig.expression.type.variable",value:"baggageSmall",match:["baggageSmall"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:"\" width=\"14\" height=\"20\" viewBox=\"0 0 14 19\" xmlns=\"http://www.w3.org/2000/svg\" >\n                                <path d=\"M2.308 19.292c-.505 0-.933-.175-1.283-.525A1.745 1.745 0 0 1 .5 17.484V9.792c0-1.353.366-2.557 1.098-3.613a6.486 6.486 0 0 1 2.825-2.322v-.565c0-.718.25-1.327.75-1.827S6.282.715 7 .715s1.327.25 1.827.75.75 1.109.75 1.827v.565a6.486 6.486 0 0 1 2.825 2.322c.732 1.056 1.098 2.26 1.098 3.613v7.692c0 .505-.175.933-.525 1.283-.35.35-.778.525-1.283.525H2.308Zm0-1.5h9.384a.294.294 0 0 0 .212-.097.294.294 0 0 0 .096-.211V9.792c0-1.384-.488-2.563-1.463-3.538C9.563 5.28 8.383 4.792 7 4.792s-2.563.487-3.538 1.462C2.487 7.23 2 8.408 2 9.792v7.692c0 .077.032.147.096.211a.294.294 0 0 0 .212.097ZM10 13.542a.726.726 0 0 0 .535-.216.726.726 0 0 0 .215-.534v-.943c0-.498-.177-.924-.53-1.277a1.741 1.741 0 0 0-1.278-.53H4a.726.726 0 0 0-.535.215.726.726 0 0 0-.215.535c0 .213.072.39.215.534a.726.726 0 0 0 .535.216h4.942a.3.3 0 0 1 .221.086.3.3 0 0 1 .087.221v.943c0 .213.072.39.215.534a.726.726 0 0 0 .535.216ZM5.923 3.41c.19-.04.37-.07.538-.09.17-.02.35-.03.539-.03.19 0 .37.01.538.03.17.02.35.05.539.09v-.12a1.04 1.04 0 0 0-.312-.765A1.04 1.04 0 0 0 7 2.215a1.04 1.04 0 0 0-.765.311 1.04 1.04 0 0 0-.312.766v.119Zm-3.615 14.38H2h10-9.692Z\"/>\n                            </svg>"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"included"},{type:"Twig.expression.type.variable",value:"includedBaggageSmall",match:["includedBaggageSmall"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"baggage-carry-on"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"title"},{type:"Twig.expression.type.variable",value:"titleCarryOnBag",match:["titleCarryOnBag"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"dimensions"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"dimensionCarryOn",match:["dimensionCarryOn"]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="}]},{type:"Twig.expression.type.variable",value:"dimensionCarryOn",match:["dimensionCarryOn"]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"description"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedCarryOnHandBaggage",match:["includedCarryOnHandBaggage"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.variable",value:"weightCarryOn",match:["weightCarryOn"]},{type:"Twig.expression.type.string",value:"(115 cm lineales)(Desde 10 kg / 35X55X25 cm) Debe caber en el compartimiento superior del avi\xF3n"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"icon"},{type:"Twig.expression.type.string",value:"<svg class=\""},{type:"Twig.expression.type.variable",value:"baggageCarryOn",match:["baggageCarryOn"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:"\" xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"20\" viewBox=\"0 0 14 19\">\n                                <path d=\"M2.308 18.293a1.74 1.74 0 0 1-1.277-.531A1.74 1.74 0 0 1 .5 16.485v-7.73c0-.486.17-.9.51-1.24.341-.34.754-.51 1.24-.51h2v-5.5c0-.337.118-.623.353-.859.236-.235.522-.353.859-.353h3.076c.337 0 .623.118.859.353.235.236.353.522.353.858v5.5h1.942c.497 0 .923.178 1.277.532.354.354.531.78.531 1.276v7.673c0 .497-.177.923-.531 1.277a1.74 1.74 0 0 1-1.277.53v.116a.852.852 0 0 1-.258.626.852.852 0 0 1-.626.259.852.852 0 0 1-.626-.259.853.853 0 0 1-.259-.626v-.115H4.077v.115a.852.852 0 0 1-.259.626.852.852 0 0 1-.626.259.852.852 0 0 1-.626-.259.852.852 0 0 1-.258-.626v-.115Zm0-1.5h9.384a.3.3 0 0 0 .221-.087.3.3 0 0 0 .087-.22V8.811a.3.3 0 0 0-.087-.221.3.3 0 0 0-.22-.087H2.307a.3.3 0 0 0-.221.087.3.3 0 0 0-.087.221v7.673a.3.3 0 0 0 .087.221.3.3 0 0 0 .22.087Zm1.46-1.385a.58.58 0 0 0 .597-.596v-4.327a.58.58 0 0 0-.595-.596.58.58 0 0 0-.597.596v4.327a.58.58 0 0 0 .596.596Zm3.232 0a.58.58 0 0 0 .596-.596v-4.327A.58.58 0 0 0 7 9.89a.58.58 0 0 0-.596.596v4.327a.58.58 0 0 0 .596.596Zm3.23 0a.58.58 0 0 0 .597-.596v-4.327a.58.58 0 0 0-.596-.596.58.58 0 0 0-.596.596v4.327a.58.58 0 0 0 .595.596ZM5.442 7.004h3.116V1.485H5.442v5.52Z\"/>\n                            </svg>"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"included"},{type:"Twig.expression.type.variable",value:"includedCarryOnHandBaggage",match:["includedCarryOnHandBaggage"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"baggage"},{type:"Twig.expression.type.object.start",value:"{",match:["{"]},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"title"},{type:"Twig.expression.type.variable",value:"titleBaggage",match:["titleBaggage"]},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"dimensions"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"dimensionBaggage",match:["dimensionBaggage"]},{type:"Twig.expression.type.bool",value:!1},{type:"Twig.expression.type.operator.binary",value:"!=",precidence:9,associativity:"leftToRight",operator:"!="}]},{type:"Twig.expression.type.variable",value:"dimensionBaggage",match:["dimensionBaggage"]},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"description"},{type:"Twig.expression.type.subexpression.end",value:")",match:[")"],expression:!0,params:[{type:"Twig.expression.type.variable",value:"includedBaggage",match:["includedBaggage"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}]},{type:"Twig.expression.type.variable",value:"weightBaggage",match:["weightBaggage"]},{type:"Twig.expression.type.string",value:"Equipaje (50X70X30cm) Podr\xE1 documentarlo en el aeropuerto en el Check-in"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:""},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"icon"},{type:"Twig.expression.type.string",value:"<svg class=\""},{type:"Twig.expression.type.variable",value:"baggage",match:["baggage"]},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.string",value:"\" xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"20\">\n                                <path d=\"M2.308 18.293a1.74 1.74 0 0 1-1.277-.531A1.74 1.74 0 0 1 .5 16.485V5.755c0-.486.17-.9.51-1.24.341-.34.754-.51 1.24-.51h2v-2.5c0-.337.118-.623.353-.859.236-.235.522-.353.859-.353h3.076c.337 0 .623.118.859.353.235.236.353.522.353.858v2.5h1.942c.497 0 .923.178 1.277.532.354.354.531.78.531 1.276v10.673c0 .497-.177.923-.531 1.277a1.74 1.74 0 0 1-1.277.53v.116a.852.852 0 0 1-.258.626.852.852 0 0 1-.626.259.852.852 0 0 1-.626-.259.853.853 0 0 1-.259-.626v-.115H4.077v.115a.852.852 0 0 1-.259.626.852.852 0 0 1-.626.259.852.852 0 0 1-.626-.259.852.852 0 0 1-.258-.626v-.115Zm0-1.5h9.384a.3.3 0 0 0 .221-.087.3.3 0 0 0 .087-.22V5.811a.3.3 0 0 0-.087-.221.3.3 0 0 0-.22-.087H2.307a.3.3 0 0 0-.221.087.3.3 0 0 0-.087.221v10.673a.3.3 0 0 0 .087.221.3.3 0 0 0 .22.087Zm1.46-1.385a.58.58 0 0 0 .597-.596V7.485a.58.58 0 0 0-.595-.596.58.58 0 0 0-.597.596v7.327a.58.58 0 0 0 .596.596Zm3.232 0a.58.58 0 0 0 .596-.596V7.485A.58.58 0 0 0 7 6.89a.58.58 0 0 0-.596.596v7.327a.58.58 0 0 0 .596.596Zm3.23 0a.58.58 0 0 0 .597-.596V7.485a.58.58 0 0 0-.596-.596.58.58 0 0 0-.596.596v7.327a.58.58 0 0 0 .595.596ZM5.442 4.004h3.116V1.485H5.442v2.52Z\"/>\n                            </svg>"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.comma"},{type:"Twig.expression.type.operator.binary",value:":",precidence:16,associativity:"rightToLeft",operator:":",key:"included"},{type:"Twig.expression.type.variable",value:"includedBaggage",match:["includedBaggage"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]},{type:"Twig.expression.type.object.end",value:"}",match:["}"]}]}},{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.setcapture",key:"baggagesInfoAll",output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.for",keyVar:null,valueVar:"baggage",expression:[{type:"Twig.expression.type.variable",value:"baggages",match:["baggages"]}],output:[{type:"raw",value:"                        "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"baggage",match:["baggage"]},{type:"Twig.expression.type.key.period",key:"icon"},{type:"Twig.expression.type.filter",value:"raw",match:["|raw","raw"]}]},{type:"raw",value:"\n                "}]}},{type:"raw",value:"            "}]}},{type:"raw",value:"        "}]}},{type:"raw",value:"\n        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"showFareInfo",match:["showFareInfo"]},{type:"Twig.expression.type.bool",value:!0},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.setcapture",key:"fareConditions",output:[{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Luggage"},{type:"Twig.expression.type.string",value:"0"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_no-luggage type-negative\"></i><small class=\"sp-hinset\">NO permite maleta en bodega</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Luggage"},{type:"Twig.expression.type.string",value:"1"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_no-luggage type-negative\"></i><small class=\"sp-hinset\">NO incluye maleta en bodega</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Luggage"},{type:"Twig.expression.type.string",value:"2"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_luggage type-positive\"></i><small class=\"sp-hinset\">Incluye maleta en bodega</small>\n                    </div>\n                "}]}},{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Refund"},{type:"Twig.expression.type.string",value:"0"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_banknote type-negative\"></i><small class=\"sp-hinset\">NO permite reembolso</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Refund"},{type:"Twig.expression.type.string",value:"1"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_banknote type-negative\"></i><small class=\"sp-hinset\">NO incluye reembolso</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Refund"},{type:"Twig.expression.type.string",value:"2"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_banknote type-positive\"></i><small class=\"sp-hinset\">Incluye reembolso</small>\n                    </div>\n                "}]}},{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Reschedule"},{type:"Twig.expression.type.string",value:"0"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_search_calendar type-negative\"></i><small class=\"sp-hinset\">NO permite cambio</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Reschedule"},{type:"Twig.expression.type.string",value:"1"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_search_calendar type-negative\"></i><small class=\"sp-hinset\">NO incluye cambio</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Reschedule"},{type:"Twig.expression.type.string",value:"2"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_search_calendar type-positive\"></i><small class=\"sp-hinset\">Incluye cambio</small>\n                    </div>\n                "}]}},{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"SeatSelection"},{type:"Twig.expression.type.string",value:"0"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_recliningchairs type-negative\"></i><small class=\"sp-hinset\">NO permite selecci\xF3n de asientos</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"SeatSelection"},{type:"Twig.expression.type.string",value:"1"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_recliningchairs type-negative\"></i><small class=\"sp-hinset\">NO incluye selecci\xF3n de asientos</small>\n                    </div>\n                "}]}},{type:"logic",token:{type:"Twig.logic.type.elseif",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"SeatSelection"},{type:"Twig.expression.type.string",value:"2"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_recliningchairs type-positive\"></i><small class=\"sp-hinset\">Incluye selecci\xF3n de asientos</small>\n                    </div>\n                "}]}},{type:"raw",value:"                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FareConditions"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CounterCheckin"},{type:"Twig.expression.type.test",filter:"defined"},{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"CounterCheckin"},{type:"Twig.expression.type.string",value:"1"},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.operator.binary",value:"and",precidence:13,associativity:"leftToRight",operator:"and"}],output:[{type:"raw",value:"                    <div>\n                        <i class=\"icon icon_passenger_man type-negative\"></i><small class=\"sp-hinset\">NO incluye Check in en counter</small>\n                    </div>\n                "}]}},{type:"raw",value:"            "}]}},{type:"raw",value:"        "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"fareConditions",expression:[{type:"Twig.expression.type.bool",value:!1}]}},{type:"raw",value:"        "}]}},{type:"raw",value:"        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"loop",match:["loop"]},{type:"Twig.expression.type.key.period",key:"index"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"            "},{type:"raw",value:"\n            <div class=\"bg-[#FAFAFA] shadow-[0px_9px_10px_-9px_rgba(0,0,0,0.10)] z-[100] relative flex justify-between py-2 px-3 items-center\">\n                <div class=\"flex gap-1 items-center\">\n                    <span class=\"material-symbols-rounded text-[#005CB9] text-lg\">\n                        flightsmode\n                    </span>\n                    <span class=\"font-bold text-[#005CB9] text-base\">Vuelo de "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"TypeFligth",match:["TypeFligth"]},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.string",value:"ida"},{type:"Twig.expression.type.string",value:"vuelta"},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]},{type:"raw",value:"</span>\n                </div>\n                <div class=\"flex flex-col items-end\">\n                    <span class=\"text-sm text-[#5A5A5A]\">Duraci\xF3n total: "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"totalDuration",match:["totalDuration"]}]},{type:"raw",value:"</span>\n                    "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"diff",match:["diff"]},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.set",key:"plural",expression:[{type:"Twig.expression.type.string",value:""}]}},{type:"raw",value:"                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"diff",match:["diff"]},{type:"Twig.expression.type.key.period",key:"days"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"}],output:[{type:"raw",value:"                            "},{type:"logic",token:{type:"Twig.logic.type.set",key:"plural",expression:[{type:"Twig.expression.type.string",value:"s"}]}},{type:"raw",value:"                        "}]}},{type:"raw",value:"                            <div class=\"flex items-center\">\n                                <i style=\"font-variation-settings:  'FILL' 0\" class=\"material-symbols-rounded text-[#E42F3A]\">fmd_bad</i>\n                                <span class=\"text-[#E42F3A] font-[Roboto] text-sm font-medium\">\n                                    Llega <strong>"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"diff",match:["diff"]}]},{type:"raw",value:"</strong> d\xEDa "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"plural",match:["plural"]}]},{type:"raw",value:" despu\xE9s ("},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"arrivalDate",match:["arrivalDate"]},{type:"Twig.expression.type.filter",value:"date",match:["|date","date"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"d/m/y"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:")\n                                </span>\n                            </div>\n                    "}]}},{type:"raw",value:"                </div>\n            </div>\n            <div class=\"bg-[#F4F4F4] py-3 px-3 grid-cols-12 grid font-[Roboto]\">\n                <div class=\"col-span-1 text-[#042A44] text-[13px] xs:text-[11px] font-medium l:col-span-2 m:col-span-2 s:col-span-2 xs:col-span-2\">\n                    "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureDateTime"},{type:"Twig.expression.type.filter",value:"date",match:["|date","date"],params:[{type:"Twig.expression.type.parameter.start",value:"(",match:["("]},{type:"Twig.expression.type.string",value:"d/m/y"},{type:"Twig.expression.type.parameter.end",value:")",match:[")"],expression:!1}]}]},{type:"raw",value:"\n                </div>\n                <div class=\"col-span-1 justify-center grid\">\n                    <span class=\"material-symbols-rounded text-[#042A44] leading-[1] h-fit\" style=\"font-variation-settings:  'FILL' 0\">\n                        today\n                    </span>\n                    <div class=\"h-32 mx-auto border-dashed border-l-[2px] border-l-[#D1D1D1] border-l\"></div>\n                </div>\n                <div class=\"col-span-10 grid-cols-12 grid items-center l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9\">\n                    <div class=\"col-span-4 h-full\">\n                        <div class=\"grid grid-rows-2 grid-cols-1 h-full gap-6\">\n                            <div>\n                                <h3 class=\"text-[#042A44] text-[22px] xs:text-base font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.number",value:0,match:["0",null]}]},{type:"Twig.expression.type.key.period",key:"DepartureAirport"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"LocationCode"}]},{type:"raw",value:"</h3>\n                                <span class=\"text-base xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.number",value:0,match:["0",null]}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureCityName"}]},{type:"raw",value:"</span>\n                            </div>\n                            <span class=\"font-[Ubuntu] text-sm xs:text-xs font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.number",value:0,match:["0",null]}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureAirportName"}]},{type:"raw",value:"</span>\n                        </div>\n                    </div>\n                    <div class=\"col-span-4 row-span-2 grid-rows-3 text-center text-sm xs:text-xs font-semibold text-[#5A5A5A]\">\n                        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:">",precidence:8,associativity:"leftToRight",operator:">"}],output:[{type:"raw",value:"                            <span>"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:2,match:["2",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="},{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.string",value:" Escala"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"},{type:"Twig.expression.type.string",value:" Escalas"},{type:"Twig.expression.type.operator.binary",value:"~",precidence:6,associativity:"leftToRight",operator:"~"},{type:"Twig.expression.type.operator.binary",value:"?",precidence:16,associativity:"rightToLeft",operator:"?"}]},{type:"raw",value:"</span>\n                        "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"                            <span>Directo</span>\n                        "}]}},{type:"raw",value:"                        <div class=\"flex items-center justify-center\">\n                            <hr class=\"w-[60%] bg-[#5A5A5A] h-px\" />\n                            <span class=\"material-symbols-rounded ml-[-1rem]\" style=\"font-variation-settings: 'wght' 400\">\n                                arrow_forward\n                            </span>\n                        </div>\n                    </div>\n                    <div class=\"col-span-4 h-full\">\n                        <div class=\"grid grid-rows-2 grid-cols-1 text-right h-full gap-6\">\n                            <div>\n                                <h3 class=\"text-[#042A44] text-[22px] xs:text-base font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"Twig.expression.type.key.period",key:"ArrivalAirport"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"LocationCode"}]},{type:"raw",value:"</h3>\n                                <span class=\"text-base xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalCityName"}]},{type:"raw",value:"</span>\n                            </div>\n                            <span class=\"font-[Ubuntu] text-sm xs:text-xs font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalAirportName"}]},{type:"raw",value:"</span>\n                        </div>\n                    </div>\n                </div>\n            </div>\n\n            <div class=\"grid items-center bg-[#F4F4F4]\" style=\"grid-template-columns: 12px 1fr 12px;\">\n                <div class=\"h-5 w-3 rounded-full bg-white items-left\" style=\"border-radius: 0 100px 100px 0;\"></div>\n                <div class=\"mx-auto border-dashed border-b-[2px] border-b-[#D1D1D1] border-b w-full\"></div>\n                <div class=\"h-5 w-3 rounded-full bg-white items-right\" style=\"border-radius: 100px 0px 0px 100px;\"></div>\n            </div>\n\n            "},{type:"raw",value:"\n\n        "}]}},{type:"logic",token:{type:"Twig.logic.type.else",match:["else"],output:[{type:"raw",value:"        \n            "},{type:"raw",value:"\n\n            <div class=\"py-3 pl-3 h-full relative perforated grid-cols-12 grid font-[Roboto]\">\n                <div class=\"h-full col-start-2 l:col-start-3 m:col-start-3 s:col-start-3 xs:col-start-3 items-center justify-center grid\">\n                    <span class=\"material-symbols-rounded text-[#8B8B8B]\">\n                        connecting_airports\n                    </span>\n                </div>\n                <div style=\"clip-path: polygon(3% 0%, 100% 0%, 100% 100%, 3% 100%, 0% 50%);\" class=\"font-medium text-[#042A44] text-sm xs:text-xs px-5 py-3 grid items-center col-span-10 l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9 bg-[#E3ECF5]\">\n                    <span>Escala en "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"DepartureCityName"}]},{type:"raw",value:", espera de "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"StopoverLength"}]},{type:"raw",value:".</span>\n                </div>\n            </div>\n            "},{type:"raw",value:"\n        "}]}},{type:"raw",value:"\n        "},{type:"raw",value:"\n        "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"TPA_Extensions"},{type:"Twig.expression.type.key.period",key:"TechnicalStops"},{type:"Twig.expression.type.key.period",key:"TechnicalStop"},{type:"Twig.expression.type.test",filter:"defined"}],output:[{type:"raw",value:"            <div class=\"py-3 pl-3 h-full relative perforated grid-cols-12 grid font-[Roboto] relative\">\n                <div class=\"h-full col-start-2 l:col-start-3 m:col-start-3 s:col-start-3 xs:col-start-3 items-center justify-center grid \">\n                    <svg\n                        xmlns=\"http://www.w3.org/2000/svg\"\n                        class=\"col-span-6\"\n                        width=\"25px\"\n                        height=\"25px\"\n                        fill=\"none\"\n                        {...props}\n                    >\n                        <mask\n                            width=\"25px\"\n                            height=\"25px\"\n                            x={0}\n                            y={0}\n                            maskUnits=\"userSpaceOnUse\"\n                            >\n                        <path fill=\"#D9D9D9\" d=\"M.363.801h24v24h-24z\" />\n                        </mask>\n                            <g mask=\"url(#a)\">\n                            <path\n                                fill=\"#8B8B8B\"\n                                d=\"M13.113 12.497V8.551a.726.726 0 0 0-.215-.535.726.726 0 0 0-.535-.215.725.725 0 0 0-.534.215.726.726 0 0 0-.216.535v4.177a.9.9 0 0 0 .271.648L15.31 16.8c.139.138.313.21.523.212a.708.708 0 0 0 .531-.212.718.718 0 0 0 .218-.527.718.718 0 0 0-.218-.527l-3.25-3.25Zm-.748 9.804a9.256 9.256 0 0 1-3.705-.748 9.595 9.595 0 0 1-3.017-2.03 9.595 9.595 0 0 1-2.031-3.016 9.246 9.246 0 0 1-.749-3.705c0-1.313.25-2.549.748-3.705a9.596 9.596 0 0 1 2.03-3.017A9.594 9.594 0 0 1 8.658 4.05a9.246 9.246 0 0 1 3.704-.748c1.314 0 2.55.25 3.706.748a9.597 9.597 0 0 1 3.017 2.03 9.595 9.595 0 0 1 2.031 3.016 9.245 9.245 0 0 1 .748 3.704c0 1.314-.25 2.55-.748 3.705a9.596 9.596 0 0 1-2.03 3.017 9.596 9.596 0 0 1-3.016 2.031 9.245 9.245 0 0 1-3.704.749Zm-.002-1.5c2.217 0 4.104-.78 5.663-2.338 1.558-1.558 2.337-3.446 2.337-5.662 0-2.217-.779-4.104-2.337-5.663-1.559-1.558-3.446-2.337-5.663-2.337-2.216 0-4.104.779-5.662 2.337-1.559 1.559-2.338 3.446-2.338 5.663 0 2.216.78 4.104 2.338 5.662 1.558 1.559 3.446 2.338 5.662 2.338Z\"\n                            />\n                        </g>\n                    </svg>\n                </div>\n                <div class=\"items-center grid col-start-3 col-span-10 l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9 w-full relative\">\n                        <div style=\"clip-path: polygon(3% 0%, 100% 0%, 100% 100%, 3% 100%, 0% 50%);\" class=\"absolute w-full font-medium text-[#042A44] text-sm xs:text-xs py-5 bg-[#E3ECF5]\"></div>\n                        <div class=\"absolute flex items-center w-full justify-evenly\">\n                            <span class=\"pl-10 mr-2 text-[#042A44] text-xs font-medium w-full\">Parada t\xE9cnica en "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"TPA_Extensions"},{type:"Twig.expression.type.key.period",key:"TechnicalStops"},{type:"Twig.expression.type.key.period",key:"TechnicalStop"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CityName"}]},{type:"raw",value:"</span>\n                            <div class=\"tooltips flex items-center w-full justify-end\">\n                                <span class=\"material-symbols-rounded icon-tool bagagge-icons mr-5\">\n                                    info\n                                </span>\n                                <div class=\"tooltips-content--left\" style=\"color: black;color: none;opacity: 1;width: 270px;box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);padding: 16px !important;background: white;border: 1px solid #C4C4C4;border-radius: 7px\">\n                                        <span class=\"text-sm\">El viaje incluye una  parada t\xE9cnica en Aeropuerto de <span class=\"font-medium\"> "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"TPA_Extensions"},{type:"Twig.expression.type.key.period",key:"TechnicalStops"},{type:"Twig.expression.type.key.period",key:"TechnicalStop"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"LocationName"}]},{type:"raw",value:", "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"TPA_Extensions"},{type:"Twig.expression.type.key.period",key:"TechnicalStops"},{type:"Twig.expression.type.key.period",key:"TechnicalStop"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CityName"}]},{type:"raw",value:" ("},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"TPA_Extensions"},{type:"Twig.expression.type.key.period",key:"TechnicalStops"},{type:"Twig.expression.type.key.period",key:"TechnicalStop"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CityCode"}]},{type:"raw",value:") </span>, este viaje podr\xEDa tener cambio de equipo, por favor conectate con uno de nuetros asesores para m\xE1s informaci\xF3n. </span>\n                                </div>\n                            </div>\n                        </div>\n                </div>\n            </div>\n        "}]}},{type:"raw",value:"\n        "},{type:"raw",value:"\n\n            <div class=\"bg-[#F4F4F4] py-3 px-3 grid-cols-12 grid font-[Roboto] gap-y-1 items-center\">\n                <div class=\"col-span-1 text-[#042A44] text-[13px] font-medium l:col-span-2 m:col-span-2 s:col-span-2 xs:col-span-2\">\n                    <img class=\"logo-ticket\" src=\"/assets/common_assets/img/airlines/logo_"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"MarketingAirline"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Code"}]},{type:"raw",value:".png\" title=\""},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"MarketingAirline"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Code"}]},{type:"raw",value:"\"/>\n                </div>\n                <div class=\"col-span-1 justify-center gap-1 grid\">\n                    <div class=\"h-12 mx-auto border-dashed border-l-[2px] border-l-[#D1D1D1] border-l\"></div>\n                    <span class=\"material-symbols-rounded text-[#042A44] leading-[1] h-fit rotate-180\" style=\"font-variation-settings:  'FILL' 0\">\n                        flight\n                    </span>\n                </div>\n                <div class=\"col-span-10 grid-cols-12 grid items-center l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9\">\n                    <div class=\"col-span-9 l:col-span-8 m:col-span-8 s:col-span-8 xs:col-span-8 grid grid-rows-3 text-[#2F2F2F] font-[Roboto] text-sm xs:text-[10px] font-semibold\">\n                        <div>Aerol\xEDnea:  <span class=\"font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"MarketingAirline"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CompanyShortName"}]},{type:"raw",value:"</span> </div>\n                        <div>Vuelo N: <span class=\"font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"MarketingAirline"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"Code"}]},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"FlightNumber"}]},{type:"raw",value:"</span> </div>\n                        <div> \n                            <span>Clase: <span class=\"font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"BookingClassAvails"},{type:"Twig.expression.type.key.period",key:"BookingClassAvail"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"ResBookDesigCode"}]},{type:"raw",value:"</span> </span>\n                            <span>Cabina: <span class=\"font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"BookingClassAvails"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"CabinType"}]},{type:"raw",value:"</span> </span>\n                        </div>\n                    </div>\n                    <div class=\"col-span-3 l:col-span-4 m:col-span-4 s:col-span-4 xs:col-span-4 justify-end grid\">\n                        <span class=\"flex flex-row space-x-2 m-2\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"baggagesInfoAll",match:["baggagesInfoAll"]}]},{type:"raw",value:"</span>\n                        <div class=\"text-[#2F2F2F] text-sm  xs:text-[10px] font-semibold\"> Tarifa: <span class=\"font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"PriceType"}]},{type:"raw",value:"</span> </div>\n                    </div>\n                </div>\n            </div>\n            <div class=\"bg-[#F4F4F4] pb-3 px-3 grid-cols-12 grid font-[Roboto] gap-y-1\">\n                <div class=\"grid grid-rows-3 col-span-1 text-[#042A44] text-[13px] font-medium items-center l:col-span-2 m:col-span-2 s:col-span-2 xs:col-span-2\">\n                    <div class=\"text-[#005CB9] text-sm xs:text-xs font-[Ubuntu] font-normal grid grid-rows-2\">Sale\n                        <span class=\"text-[#2F2F2F] text-base  xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureHour"}]},{type:"raw",value:"</span>\n                    </div>\n                    <span class=\"font-[Ubuntu] text-[#5A5A5A] text-sm  xs:text-xs font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"FlightLength"}]},{type:"raw",value:"</span>\n                    <div class=\"text-[#005CB9] text-sm  xs:text-xs font-[Ubuntu] font-normal grid grid-rows-2\">Llega\n                        <span class=\"text-[#2F2F2F] text-base  xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalHour"}]},{type:"raw",value:"</span>\n                    </div>\n                </div>\n                <div class=\"col-span-1 justify-center grid\">\n                    <div class=\"h-40 mx-auto border-dashed border-l-[2px] border-l-[#D1D1D1] border-l\"></div>\n                </div>\n                <div class=\"col-span-10 grid-cols-12 grid items-start l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9\">\n                    <div class=\"col-span-4 h-full\">\n                        <div class=\"grid grid-rows-2 grid-cols-1 h-full gap-6\">\n                            <div>\n                                <h3 class=\"text-[#042A44] text-[22px]  xs:text-lg font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"DepartureAirport"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"LocationCode"}]},{type:"raw",value:"</h3>\n                                <span class=\"text-base  xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureCityName"}]},{type:"raw",value:"</span>\n                            </div>\n                            <span class=\"font-[Ubuntu] text-sm xs:text-xs font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"DepartureAirportName"}]},{type:"raw",value:"</span>\n                        </div>\n                    </div>\n                    <div class=\"col-span-4 row-span-2 grid-rows-3 text-center   xs:text-xs font-semibold text-[#5A5A5A]\">\n                        <span class=\"material-symbols-rounded text-[#8B8B8B]\">\n                            flight_takeoff\n                        </span>\n                    </div>\n                    <div class=\"col-span-4 h-full\">\n                        <div class=\"grid grid-rows-2 grid-cols-1 text-right h-full gap-6\">\n                            <div>\n                                <h3 class=\"text-[#042A44] text-[22px]  xs:text-lg font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"ArrivalAirport"},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"LocationCode"}]},{type:"raw",value:"</h3>\n                                <span class=\"text-base  xs:text-sm font-medium\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalCityName"}]},{type:"raw",value:"</span>\n                            </div>\n                            <span class=\"font-[Ubuntu] text-sm xs:text-xs font-normal\">"},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flight",match:["flight"]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalAirportName"}]},{type:"raw",value:"</span>\n                        </div>\n                    </div>\n                </div>\n            </div>  \n    \n\n        "},{type:"raw",value:"\n\n        "},{type:"raw",value:"\n\n        "},{type:"raw",value:"\n\n        "},{type:"raw",value:"\n\n        "},{type:"raw",value:"\n    "}]}},{type:"raw",value:"\n    <div class=\"grid items-center bg-[#F4F4F4]\" style=\"grid-template-columns: 15px 1fr 15px;\">\n        <div class=\"h-4 w-4 rounded-full bg-white\" style=\"border-radius: 0 100% 0 0;\"></div>\n        <div></div>\n        <div class=\"h-4 w-4 rounded-full bg-white\" style=\"border-radius: 100% 0 0 0;\"></div>\n    </div>\n\n    <div class=\"text-[#042A44] font-[Roboto] text-sm xs:text-base font-semibold pb-3 px-3 grid-cols-12 grid font-[Roboto] gap-y-1 items-start\">\n        <div class=\"col-start-2 l:col-start-3 m:col-start-3 s:col-start-3 xs:col-start-3 justify-center grid\">\n            <div class=\"h-3 mx-auto border-solid border-l-[2px] border-l-[#D1D1D1] border-l\"></div>\n            <span class=\"material-symbols-rounded\">location_on</span>\n        </div>\n        <div class=\"col-span-10 l:col-span-9 m:col-span-9 s:col-span-9 xs:col-span-9 grid grid-rows-2 py-3\">\n            <span>Llegada a "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalCityName"}]},{type:"raw",value:"</span>\n             <div id=\"copyEndDetail\" class=\"text-[#5A5A5A] xs:text-sm font-medium \">\n                "},{type:"logic",token:{type:"Twig.logic.type.if",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.number",value:0,match:["0",null]}]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.string",value:"@attributes"}]},{type:"Twig.expression.type.key.period",key:"RefNumber"},{type:"Twig.expression.type.number",value:0,match:["0",null]},{type:"Twig.expression.type.operator.binary",value:"==",precidence:9,associativity:"leftToRight",operator:"=="}],output:[{type:"raw",value:"                    Consulta hoteles en "},{type:"output",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.brackets",stack:[{type:"Twig.expression.type.variable",value:"flights",match:["flights"]},{type:"Twig.expression.type.key.period",key:"length"},{type:"Twig.expression.type.number",value:1,match:["1",null]},{type:"Twig.expression.type.operator.binary",value:"-",precidence:6,associativity:"leftToRight",operator:"-"}]},{type:"Twig.expression.type.key.period",key:"attributes"},{type:"Twig.expression.type.key.period",key:"ArrivalCityName"}]},{type:"raw",value:" para las fechas\n                    <span class=\"js-suggestText\"></span>\n                    <a href=\"/buscar/hoteles/\" target=\"_blank\" class=\"text-[#005CB9] underline js-suggestClik\">Click aqu\xED</a>\n                "}]}},{type:"raw",value:"            </div>\n        </div>\n    \n    </div>\n</section>"}],allowInlineIncludes:!0,rethrow:!0});e.exports=function(e){return s.render(e)}},GR7K:function(e,t,a){"use strict";(function(e){a.d(t,"a",function(){return c});var s=a("Vm3q"),o=a("779H"),i=a("jWwD"),r="<div class=\"search-cruise__col-passenger js-birthday-label\">"+e(".js-birthday-label").html()+"</div>",n=e("#js-birthdate").html(),p=function(){ga("send","event","search","submit","train");var t=Object(o.g)();if(t){var a="";0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(a+="?typeCoin="+e("[name^=\"typeCoin\"]").val()+"&");var r="";r+="r"===s.a.instances.flighttype?e("#departure").val()+"-"+e("#arrival").val()+"/"+e("#date1").val()+e("#timeGo").val()+"+"+e("#date-return1").val()+e("#timeReturn").val()+"/":e("#departure").val()+"-"+e("#arrival").val()+"/"+e("#date1").val()+e("#timeGo").val()+"/";for(var n="",p=e("[name^=\"parameters[passengers]\"]").val(),l=1;l<=p;l++)n+=e("[name^=\"parameters[birthday"+l+"]\"]").val()+"+";n=n.slice(0,-1),window.location.href=trainUrl+r+n+a,_loadSpinner(),e(".js-globalOverlay").show()}return t},l=function(){e("#js-birthdate").remove()},c=function(t){var a="";l();for(var s=e("[name^=\"parameters[passengers]\"]").val(),o=1,i;o<=t;o++)i=n,i=i.replace(/Pasajero 1/g,"Pasajero "+o),i=i.replace(/birthday1/g,"birthday"+o),7==o&&(a+=r),a+="<div id=\"js-birthdate\" class=\"search-cruise__col-child tooltips\">"+i+"</div>";e(".js-birthdate_row").html(r+a);for(var p=1;p<=s;p++)e("[name^=\"parameters[birthday"+p+"]\"]").datepicker({dateFormat:"yy-mm-dd",showOn:"focus",minDate:"-112y",maxDate:"today",defaultDate:"-18y",changeMonth:!0,changeYear:!0,yearRange:"-112y:today"})};e(document).ready(function(){"undefined"!=typeof searchTrainUrl&&(e("[name^=\"parameters[birthday1]\"]").datepicker({dateFormat:"yy-mm-dd",showOn:"focus",minDate:"-112y",maxDate:"today",defaultDate:"-18y",changeMonth:!0,changeYear:!0,yearRange:"-112y:today"}),0<e(".js-searchFormTrain").length&&(e(".js-searchTrainButton").off("click").on("click",function(){p()}),e("#vuelta").trigger("click"),e("#js-trains > .js-slideContent").stop(!0,!0).slideDown().show()),Object(i.e)("#departure",searchTrainUrl,i.m,"Estaciones","undefined",!1),Object(i.e)("#arrival",searchTrainUrl,i.m,"Estaciones","undefined",!1),e("[name^=\"parameters[passengers]\"]").off("change"),e("[name^=\"parameters[passengers]\"]").on("change",function(){c(e("[name^=\"parameters[passengers]\"]").val())}))})}).call(t,a("86YC"))},HBXo:function(e,t,a){"use strict";(function(o,e,r,n){a.d(t,"b",function(){return m}),a.d(t,"a",function(){return h});var s=a("Vm3q"),p=a("MITR"),i=function(t,a,r){var n=window.location.pathname,g=-1,u=new Date,m=u,h=new Date(u.getTime()),v=null,f,b,x,w;if(0<o(".js-searchFormTicket").length&&(m=new Date,m.setDate(m.getDate()+1)),h.setMonth(h.getMonth()+11),"js-createDatepicker-return1"===o(t).attr("id")&&(m=s.a.multiDate[1]),"js-createDatepicker-return1"===o(t).attr("id")&&!1!==s.a.hotelDate&&(h=s.a.hotelDate),"js-createDatepicker-return1"===o(t).attr("id")&&0<o(".js-searchFormInsurance").length&&(h=s.a.multiDate[1].getDate()+365),0<o(".js-searchFormInsurance").length){var k=new Date(e.getFullDate(o("#date1").val()).getTime());k.setMonth(k.getMonth()+12),k.setDate(k.getDate()),k.setTime(k.getTime()+6e4*u.getTimezoneOffset()),k=new Date(k),h=k}if("js-createDatepicker-return1"===o(t).attr("id")&&0<o(".js-searchFormTrain").length&&(h=s.a.multiDate[1].getDate()+365),0<o(".js-searchFormTrain #date1").length){var k=new Date;k.setMonth(k.getMonth()+3),k.setDate(k.getDate()),k.setTime(k.getTime()+6e4*u.getTimezoneOffset()),k=new Date(k),h=k}if(1<s.a.instances.flights&&1!==r)if(s.a.multiDate[r-1])m=s.a.multiDate[r-1];else for(var T=r-1;1<=T;T--)if(s.a.multiDate[T]){m=s.a.multiDate[T];break}"#date-return1"===a?(f=l(),c(f),v=s.a.multiDate[1]):!1===s.a.multiDate[r]?v=m:v=s.a.multiDate[r],0===o("#panel-datepicker").length?-1===o(".responsive-js").css("content").indexOf("palm")?(b=2,x=!0):(b=1,x=!0):(b=13,x=!1,w=!0),1==n.indexOf("blog")&&"undefined"!=typeof mobile&&"false"==mobile&&(b=1),o(".js-slidePanel-body-datepicker").datepicker(o.extend({numberOfMonths:b,dateFormat:"dd-mm-yy",changeMonth:!1,changeYear:!1,showButtonPanel:x,minDate:m,maxDate:h,defaultDate:v,onSelect:function(e,n){if(0===o("#panel-datepicker").length?_datepickerContainerClose(!0):(o(".js-createDatepicker").removeClass("is-active"),o(".slidePanel").removeClass("active")),g=new Date(n.selectedYear,n.selectedMonth,n.selectedDay).getTime(),o(t).val(o.datepicker.formatDate("dd M. y",new Date(g),{})),o(a).val(o.datepicker.formatDate("yy-mm-dd",new Date(g),{})),f=l(),"#date-return1"===a?c(f):s.a.multiDate[r]=o(".js-slidePanel-body-datepicker").datepicker("getDate"),"js-createDatepicker1"===o(t).attr("id")&&!1!==s.a.hotelDate&&(s.a.hotelDate=new Date(new Date(o(".js-slidePanel-body-datepicker").datepicker("getDate")).getTime()+2592000000)),(s.a.multiDate[1]>f||0<o(".js-searchFormHotel, .js-searchFormFlightHotelCar, .js-searchFormCar").length&&s.a.multiDate[1].getTime()>=f.getTime()||s.a.hotelDate&&s.a.hotelDate<f)&&(f=new Date(g+691200000),o("#js-createDatepicker-return1").val(o.datepicker.formatDate("dd M. y",f,{})),o("#date-return1").val(o.datepicker.formatDate("yy-mm-dd",f,{}))),!1!==s.a.multiDate[r+1]&&s.a.multiDate[r].getTime()>s.a.multiDate[r+1].getTime()){var y=0,i=1;for(var u in s.a.multiDate){if(y>r&&s.a.multiDate[y]&&s.a.multiDate[y-1].getTime()>s.a.multiDate[y].getTime()){var d=new Date(g+1e3*(60*(60*(24*(8*i)))));o("#js-createDatepicker"+y).val(o.datepicker.formatDate("dd M. y",d,{})),o("#date"+y).val(o.datepicker.formatDate("yy-mm-dd",d,{})),s.a.multiDate[y]=d,i++}y++}}!/^#date-return/.test(a)&&o("[data-input^=\"#date-return\"]").is(":visible")&&("undefined"!=typeof p.a&&p.a.sendRequest("return"),setTimeout(function(){o("#js-createDatepicker-return1").trigger("click")},180))},onChangeMonthYear:function(){o(".ui-datepicker").one("click",function(){d(a),"#date-return1"===a&&y()})},beforeShowDay:function(e){if(!(1<s.a.instances.flights&&s.a.multiDate[r])){if(s.a.hotelDate&&"#date-return1"===a&&e.getTime()===s.a.multiDate[1].setHours(0,0,0,0))return[!1,"depDate"];if(e.getTime()===s.a.multiDate[1].setHours(0,0,0,0)){if("#date-return1"===a)return[!0,"depDate"];if(o(".js-createDatepicker[data-input=\""+a+"\"] .js-inputDatepicker").val())return[!0,"depSelect"]}else if("#date-return1"===a&&e.getTime()===l().getTime())return s.a.hotelDate&&s.a.hotelDate.getTime()<e.getTime()?[!1,""]:[!0,"returnDate"]}else if(e.getTime()===s.a.multiDate[r].setHours(0,0,0,0)&&"#date-return1"!==a)return[!0,"depSelect"];return[!0,""]}})),d(a)},l=function(){if(0<o("#date-return1").length)return e.getFullDate(o("#date-return1").val())},c=function(e){s.a.returnDate={day:e.getDate()+"",month:e.getMonth()+"",year:e.getFullYear()+""}},d=function(e){var t=o(".ui-datepicker").find("td");if("#date-return1"===e){for(var a=0,i;a<t.length;a++)o(t[a]).html(function(){return i=o(t[a]).html(),o(t[a]).hasClass("depDate")?"<span class=\"arrow-corner corner-top-right\"></span><span class=\"arrow-corner corner-bottom-right\"></span>"+i:o(t[a]).hasClass("ui-datepicker-unselectable")||o(t[a]).hasClass("ui-state-disabled")?i:o(t[a]).hasClass("returnDate")?"<span class=\"arrow-corner corner-top-left\"></span><span class=\"arrow-corner corner-bottom-left\"></span>"+i:i});var l=r(new Date(n("#date1").val())),c=window.location.pathname.split("/")[2],d=new Date(n("#date1").val());d.setDate(d.getDate()+1);for(var y="",s=1;3>=s;)t.filter("[data-month=\""+d.getMonth()+"\"][data-year=\""+d.getFullYear()+"\"]").each(function(){var e=n(this).text();if(2>=e.length){var t=r(new Date(n(this).data("year")+"-0"+parseInt(n(this).data("month")+1)+"-"+n(this).text())),a=t.diff(l,"days");(function(){return 0})&&("multi"===c||"hoteles"===c?(y=1<parseInt(a)?"s":"",n(this).addClass("tooltips-trigger").append("</span><span class=\"tooltips-content\">"+a+" Noche"+y+"</span>")):(y=1<parseInt(a+1)?"s":"",n(this).addClass("tooltips-trigger").append("</span><span class=\"tooltips-content\">"+parseInt(a+1)+" D\xEDa"+y+"</span>")))}}),d.setMonth(d.getMonth()+1),s++}"undefined"!=typeof p.a&&p.a.WSResp&&!p.a.WSResp.error&&p.a.showDates(e,t)},y=function(e,t){for(var a=e?t:o(".ui-datepicker td[data-handler=\"selectDay\"]"),r=0,i,n;r<a.length;r++)if(n=o(a[r]),n.attr("data-year")===s.a.returnDate.year&&n.attr("data-month")===s.a.returnDate.month&&n.children("a").text()===s.a.returnDate.day){n.addClass("returnDate");for(var p=0;p<r;p++)g(a[p]);i=!0;break}if(!o.isEmptyObject(s.a.returnDate)&&!i){var l=new Date(parseInt(o(a[0]).attr("data-year")),parseInt(o(a[0]).attr("data-month")),parseInt(o(a[0]).text())),c=new Date(parseInt(s.a.returnDate.year),parseInt(s.a.returnDate.month),parseInt(s.a.returnDate.day));if(l<c)for(var r=0;r<a.length;r++)g(a[r])}e||u(a)},g=function(t){var e=o(t);e.hasClass("period")||e.hasClass("depDate")||e.hasClass("returnDate")||((e.children("span.arrow-corner").hasClass("corner-top-left")||e.children("span.arrow-corner").hasClass("corner-bottom-left"))&&e.children("span").remove(".arrow-corner"),e.addClass("period"))},u=function(e){function t(){i.find("td.returnDate").removeClass("returnDate").find(".arrow-corner").each(function(){o(this).parent().hasClass("depDate")||o(this).remove()}),i.find("td.period").removeClass("period")}function a(t){o(t).prepend("<span class=\"arrow-corner corner-top-left\"></span><span class=\"arrow-corner corner-bottom-left\"></span>")}var i=o(".ui-datepicker"),s;o(e).on("mouseenter",function(){clearTimeout(s),t(),o(this).children("span").hasClass("arrow-corner")||a(this),o(this).addClass("returnDate");for(var r=0;r<e.length;r++)if(o(e[r]).hasClass("returnDate"))for(var i=0;i<r;i++)g(e[i])}),o(e).on("mouseleave",function(){s=setTimeout(function(){t(),y(!0,e),o("td.returnDate").each(function(){o(this).hasClass("depDate")||a("td.returnDate")})},101)}),o(e).on("touchend",function(t){t.preventDefault(),o(this).trigger("click")})},m=function(e){o(e).removeClass("btn--inactive").siblings().addClass("btn--inactive")},h=function(){o("#date1").val(o.datepicker.formatDate("yy-mm-dd",new Date(s.a.multiDate[1].getTime()))),o("#date-return1").val(o.datepicker.formatDate("yy-mm-dd",new Date(s.a.returnWayDate.getTime()))),o("#js-createDatepicker1").val(o.datepicker.formatDate("dd M. y",new Date(s.a.multiDate[1].getTime()))),o("#js-createDatepicker-return1").val(o.datepicker.formatDate("dd M. y",new Date(s.a.returnWayDate.getTime())))};o(document).ready(function(){var t=o("#panel-datepicker");o(".js-searchForm").on("click",".js-createDatepicker",function(){o(".js-createDatepicker").removeClass("is-active"),o(".js-slidePanel-body-datepicker").datepicker("destroy");var e=o(this).data("input"),t=o(this).data("instancenbr"),a=o(this).data("panel"),s=o(this).find(".text-input");0>=s.length&&(s=o(this).find(".js-text-input-flight"),0>=s.length&&(s=o(this).find(".js-text-input-multi"))),o(this).toggleClass("is-active"),o(a).length&&o(a).addClass("active"),i(s,e,t),"#date-return1"===e&&y()}),t.length&&(o(".js-datePicker-destroy").on("click",function(){var e=t.add(".js-createDatepicker");e.removeClass("active is-active")}),o(document).on("click",function(a){if(t.hasClass("active")){var e=t.add(".js-createDatepicker");e.is(a.target)||0!==e.has(a.target).length||e.removeClass("active is-active")}}))})}).call(t,a("86YC"),a("T6cr"),a("ZCrj"),a("86YC"))},IFYJ:function(e,t,a){(function(e){e(document).ready(function(){e(".js-open-whatsapp").on("click",function(){window.location.href="intent://send/3174395596#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action.SENDTO;end"})})}).call(t,a("86YC"))},MITR:function(e,t,a){"use strict";(function(e,s){var i=a("Vm3q"),o=function(){this.WSResp=null,this.WsP=null,this.WSRespO=null,this.state="init",this.shownDates=!1,this.params={dateScope:360}},r=[],n=0,p,l,c,d,y;e.obj.extend(o.prototype,{dataModel:{PriceXplorer_ExtremeSearch:{"@xmlns":"http://xml.amadeus.com/FAESXQ_12_2_1A",itineraryGrp:{itineraryInfo:{}},travelDates:{dateAndTimeDetails:[]},stayDuration:{},attributeInfo:{attributeFunction:"GRP",attributeDetails:[{attributeType:"DES"},{attributeType:"WEEK"},{attributeType:"DAY"}]},departureDays:{daySelection:{dayOfWeek:"1234567"},selectionInfo:{selectionDetails:{option:"O"}}},officeIdInfo:{officeId:{originIdentification:{inHouseIdentification1:"BOGVU28AT"}}}}},refreshParams:function(){if(!s("#origin1").val().length||!s("#destination1").val().length||!s("#date1").val().length||!i.a.instances.flighttype||!i.a.multiDate[1])return!1;if("undefined"!=typeof agencyFolder){window.location.pathname;if(++n,2>=n){var t=new Date,a=t.getMonth()+1,o=t.getDate()+1,r=t.getFullYear();10>a&&(a="0"+a),10>o&&(o="0"+o);var p=r+"-"+a+"-"+o;document.getElementById("date1Actual").value=p;var l={origin:s("#origin1").val(),destination:s("#destination1").val(),date:e.getFullDate(s("#date1Actual").val()),flightType:i.a.instances.flighttype,isSameDay:i.a.multiDate[1].setHours(0,0,0,0)===i.a.today}}else var l={origin:s("#origin1").val(),destination:s("#destination1").val(),date:e.getFullDate(s("#date1").val()),flightType:i.a.instances.flighttype,isSameDay:i.a.multiDate[1].setHours(0,0,0,0)===i.a.today}}else var l={origin:s("#origin1").val(),destination:s("#destination1").val(),date:e.getFullDate(s("#date1").val()),flightType:i.a.instances.flighttype,isSameDay:i.a.multiDate[1].setHours(0,0,0,0)===i.a.today};return s.extend(this.params,l),this.params},clearRS:function(){this.WSResp=null,this.WsP=null,this.WSRespO=null,this.state="init",this.shownDates=!1,r=[]},validRS:function(e){return("o"!==this.params.flightType||!(1<e[0].dateAndTimeInfo.dateAndTimeDetails.length))&&("r"!==this.params.flightType||e[0].dateAndTimeInfo.dateAndTimeDetails.length)},validDate:function(){return this.params.date.getTime()===e.getFullDate(s("#date1").val()).getTime()},hydrateObject:function(e){var t=this.refreshParams();if(!1===t)return!1;var a=JSON.parse(JSON.stringify(this.dataModel)),o;if("return"===e)o=this.params.date;else{var r=this.params.date.getTime()+1e3*(3600*(24*this.params.dateScope))-(i.a.today+31104000000);o=0<r?new Date(this.params.date.getTime()+1e3*(3600*(24*this.params.dateScope))-r):new Date(this.params.date.getTime()+1e3*(3600*(24*this.params.dateScope)))}return a.PriceXplorer_ExtremeSearch.itineraryGrp.itineraryInfo.origin=this.params.origin,a.PriceXplorer_ExtremeSearch.itineraryGrp.itineraryInfo.destination=this.params.destination,a.PriceXplorer_ExtremeSearch.travelDates.dateAndTimeDetails.push({qualifier:"S",date:s.datepicker.formatDate("ddmmy",this.params.date)},{qualifier:"E",date:s.datepicker.formatDate("ddmmy",o)}),"r"===this.params.flightType?a.PriceXplorer_ExtremeSearch.stayDuration={nbOfUnitsInfo:{quantityDetails:{numberOfUnit:"1",unitQualifier:"DAY"}},flexibilityInfo:{quantityDetails:{qualifier:"P",value:"29",unit:"DAY"}}}:delete a.PriceXplorer_ExtremeSearch.stayDuration,this.params.date===o&&a.PriceXplorer_ExtremeSearch.attributeInfo.attributeDetails.push({attributeType:"SD"}),c=s.datepicker.formatDate("yy-mm-dd",this.params.date),d=s.datepicker.formatDate("yy-mm-dd",o),a},sendRequest:function(e){var t=this,a=t.hydrateObject(e);return!1!==a&&(t.state="loading",t.shownDates=!1,y=t.params.origin+"-"+t.params.destination+"|"+t.params.flightType.toUpperCase(),s.ajax({type:"POST",url:window.xtremeSearchUrl,dataType:"json",async:!0,data:JSON.stringify(a),success:function(a){if("loading"===t.state||"pending"===t.state)if(!a.PriceXplorer_ExtremeSearchReply)t.WSResp={error:!0,errorMessage:"empty response"},t.state="error";else if(null!=a.PriceXplorer_ExtremeSearchReply.errorOrWarningGroup)t.WSResp={error:!0,errorMessage:a.PriceXplorer_ExtremeSearchReply.errorOrWarningGroup.errorWarningDescription.freeText},t.state="error";else{var s=a.PriceXplorer_ExtremeSearchReply.priceSolution;t.WSResp&&t.WSResp.error&&(delete t.WSResp.error,delete t.WSResp.errorMessage),p=t.params.flightType,l=t.params.destination,120<s.length?t.dateBestP(y,c,d,"D",l).then(function(a){if(!1!=a){if("o"===p)for(var o in s){var i=s[o];if(a[i.dateAndTimeInfo.dateAndTimeDetails.date]){var n=a[i.dateAndTimeInfo.dateAndTimeDetails.date],l=i.monetaryInfo.monetaryDetails[0].amount;parseInt(n)<parseInt(l)?(i.monetaryInfo.monetaryDetails[0].amount=n,r.push([i.dateAndTimeInfo.dateAndTimeDetails.date,n])):r.push([i.dateAndTimeInfo.dateAndTimeDetails.date,i.monetaryInfo.monetaryDetails[0].amount])}else r.push([i.dateAndTimeInfo.dateAndTimeDetails.date,i.monetaryInfo.monetaryDetails[0].amount])}else if("r"===p)for(var o in s){var i=s[o];if(a[i.dateAndTimeInfo.dateAndTimeDetails[0].date]){var n=a[i.dateAndTimeInfo.dateAndTimeDetails[0].date],l=i.monetaryInfo.monetaryDetails[0].amount;parseInt(n)<parseInt(l)?(i.monetaryInfo.monetaryDetails[0].amount=n,r.push([i.dateAndTimeInfo.dateAndTimeDetails[0].date,n])):r.push([i.dateAndTimeInfo.dateAndTimeDetails[0].date,i.monetaryInfo.monetaryDetails[0].amount])}else r.push([i.dateAndTimeInfo.dateAndTimeDetails[0].date,i.monetaryInfo.monetaryDetails[0].amount])}}else if(120<s.length)if("o"===p)for(var o in s){var i=s[o];r.push([i.dateAndTimeInfo.dateAndTimeDetails.date,i.monetaryInfo.monetaryDetails[0].amount])}else if("r"===p)for(var o in s){var i=s[o];r.push([i.dateAndTimeInfo.dateAndTimeDetails[0].date,i.monetaryInfo.monetaryDetails[0].amount])}"dep"===e?t.handleResponse("#date1",{dep:t.loadDates(s,"date")},{dep:t.loadDates(s,"price")},{dep:t.loadDates(s,"regularPrice")},!!t.WSResp&&!!t.WSResp.return||!!t.WsP&&!!t.WsP.return||!!t.WSRespO&&!!t.WSRespO.return):"return"===e?t.handleResponse("#date-return1",{return:t.loadDates(s,"date")},{return:t.loadDates(s,"price")},{return:t.loadDates(s,"regularPrice")},!!t.WSResp&&!!t.WSResp.dep||!!t.WsP&&!!t.WsP.dep||!!t.WSRespO&&!!t.WSRespO.dep):void 0}):t.dateBestP(y,c,d,"R",l).then(function(a){if(!1!=a&&"r"===p)for(var o in s){var i=s[o];if(a[i.dateAndTimeInfo.dateAndTimeDetails[1].date]){var r=a[i.dateAndTimeInfo.dateAndTimeDetails[1].date],n=i.monetaryInfo.monetaryDetails[0].amount;parseInt(r)<parseInt(n)&&(i.monetaryInfo.monetaryDetails[0].amount=r)}}"dep"===e?t.handleResponse("#date1",{dep:t.loadDates(s,"date")},{dep:t.loadDates(s,"price")},{dep:t.loadDates(s,"regularPrice")},!!t.WSResp&&!!t.WSResp.return||!!t.WsP&&!!t.WsP.return||!!t.WSRespO&&!!t.WSRespO.return):"return"===e?t.handleResponse("#date-return1",{return:t.loadDates(s,"date")},{return:t.loadDates(s,"price")},{return:t.loadDates(s,"regularPrice")},!!t.WSResp&&!!t.WSResp.dep||!!t.WsP&&!!t.WsP.dep||!!t.WSRespO&&!!t.WSRespO.dep):void 0})}},error:function(e,a,i){"loading"===t.state&&(t.WSResp={error:!0,errorMessage:i},t.state="error")}}),t)},handleResponse:function(e,t,a,i,o){this.WSResp=s.extend(this.WSResp,t),this.WsP=s.extend(this.WsP,a),this.WsRespO=s.extend(this.WsRespO,i),"o"===this.params.flightType?this.state="success":"r"===this.params.flightType&&(this.state=o?"success":"pending"),!this.shownDates&&s("[data-input=\""+e+"\"]").hasClass("is-active")&&this.showDates(e,s(".ui-datepicker").find("td"))},loadDates:function(e,t){var a=this,o=[],r=0,n=[],l=[],c=[],d;e.sort(function(e,t){return(d="o"===a.params.flightType?[e.dateAndTimeInfo.dateAndTimeDetails.date,t.dateAndTimeInfo.dateAndTimeDetails.date]:[e.dateAndTimeInfo.dateAndTimeDetails[0].date,t.dateAndTimeInfo.dateAndTimeDetails[0].date],d[0].slice(4)+d[0].slice(2,4)+d[0].slice(0,2)<d[1].slice(4)+d[1].slice(2,4)+d[1].slice(0,2))?-1:d[0].slice(4)+d[0].slice(2,4)+d[0].slice(0,2)>d[1].slice(4)+d[1].slice(2,4)+d[1].slice(0,2)?1:0});for(var y=0,i=Math.ceil(e.length/30)-1;y<i;y++)o.push(e.slice(r,r+30)),r+=30;o.push(e.slice(r));for(var y=0;y<o.length;y++)o[y].sort(function(e,t){return e.monetaryInfo.monetaryDetails[0].amount<t.monetaryInfo.monetaryDetails[0].amount?-1:e.monetaryInfo.monetaryDetails[0].amount>t.monetaryInfo.monetaryDetails[0].amount?1:0});if("date"==t){for(var y=0,s=0,p="";y<o.length;y++)for(var g=0,u=0;g<o[y].length&&10>=u;g++)p===o[y][g].monetaryInfo.monetaryDetails[0].amount?s++:p=o[y][g].monetaryInfo.monetaryDetails[0].amount,0==s%3&&("o"===a.params.flightType?n.push(o[y][g].dateAndTimeInfo.dateAndTimeDetails.date):"r"===a.params.flightType&&n.push(o[y][g].dateAndTimeInfo.dateAndTimeDetails[1].date),s=0,u++);return n}if("price"==t){for(var y=0,s=0,p="";y<o.length;y++)for(var g=0,u=0;g<o[y].length&&10>=u;g++)p===o[y][g].monetaryInfo.monetaryDetails[0].amount?s++:p=o[y][g].monetaryInfo.monetaryDetails[0].amount,0==s%3&&("o"===a.params.flightType?l.push(o[y][g].monetaryInfo.monetaryDetails[0].amount):"r"===a.params.flightType&&l.push(o[y][g].monetaryInfo.monetaryDetails[0].amount),s=0,u++);return l}if("regularPrice"==t){if("o"===a.params.flightType)for(var y in e){var m=e[y];c.push([m.dateAndTimeInfo.dateAndTimeDetails.date,m.monetaryInfo.monetaryDetails[0].amount])}else if("r"===a.params.flightType)for(var y in e){var m=e[y];c.push([m.dateAndTimeInfo.dateAndTimeDetails[1].date,m.monetaryInfo.monetaryDetails[0].amount])}return c}},showDates:function(t,a){function o(t){var a=Math.floor(+t/1e3);return a=e.formatNumber(a,"",0),a}if(("o"===this.params.flightType||"r"===this.params.flightType)&&("success"===this.state||"pending"===this.state)){var n="#date-return1"===t?this.WSResp.return:this.WSResp.dep,p="#date-return1"===t?this.WsP.return:this.WsP.dep,l="#date-return1"===t?this.WsRespO.return:r;if("undefined"!=typeof n&&0<n.length){for(var c={},d=0;d<n.length;d++)c={day:""+parseInt(n[d].slice(0,2))+"",month:""+(parseInt(n[d].slice(2,4))-1)+"",year:"20"+n[d].slice(4)+"",price:""+p[d]},a.filter("[data-month=\""+c.month+"\"][data-year=\""+c.year+"\"]").each(function(){if(s(this).children("a").text()===c.day){var e="";if("undefined"==typeof agencyFolder)"undefined"==typeof c.price||isNaN(c.price)||s(this).children("a").text()!==c.day||s(this).addClass("tooltips-trigger").append("<span class=\"point-bestPrice\"></span><span class=\"tooltips-content\">Mejores tarifas en esas fechas</span>");else if("undefined"!=typeof c.price&&!isNaN(c.price)){var t=o(c.price);e=5<t.length?"<a class=\"ui-price-default\">\xB1 $"+t+"M</a>":"<a class=\"ui-price-default\">\xB1 $"+t+"K</a>",s(this).addClass("tooltips-trigger").append("<span class=\"tooltips-content\">Mejores tarifas en esas fechas<br>Precio aproximado</span>"+e)}}});this.shownDates=!0}if("undefined"!=typeof l&&0<l.length&&"undefined"!=typeof agencyFolder){var i={};for(var d in l){var y=l[d],i={day:""+parseInt(y[0].slice(0,2))+"",month:""+(parseInt(y[0].slice(2,4))-1)+"",year:"20"+y[0].slice(4)+"",price:""+y[1]};s(".ui-datepicker-calendar").find("[data-month=\""+i.month+"\"][data-year=\""+i.year+"\"]").each(function(){if(s(this).children("a").text()===i.day&&1>s(this).find(".ui-price-default").length){var e=o(i.price),t="";t=5<e.length?"<a class=\"ui-price-regular\">\xB1 $"+e+"M</a>":"<a class=\"ui-price-regular\">\xB1 $"+e+"K</a>",s(this).append(t)}})}this.shownDates=!0}}},dateBestP:function(e,t,a,i,o){return s.ajax({type:"POST",url:"/bestPriceXtreme",data:{trip:e,dateInicial:t,dateFinal:a,flightType:i,destination:o},dataType:"json"}).then(function(e){var t=e;if("success"==t.response){var a=t.bestPrices;return a}return"fail"!=t.response&&"fail empty"!=t.response&&void 0}).catch(function(){return!1})}});var g=function(e){return"undefined"==typeof e?void 0:new o}(window.xtremeSearchUrl);t.a=g}).call(t,a("T6cr"),a("86YC"))},MYit:function(e,t,a){var o=Math.round,r=Math.floor;(function(t){(function(t,a){e.exports=a()})(t,function(){var e=Math.pow,t=Math.max,p=Math.abs,s=String.fromCharCode;return function(e){function t(i){if(a[i])return a[i].exports;var s=a[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,t),s.l=!0,s.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,i){t.o(e,a)||Object.defineProperty(e,a,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,a){if(1&a&&(e=t(e)),8&a)return e;if(4&a&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&a&&"string"!=typeof e)for(var s in e)t.d(i,s,function(t){return e[t]}.bind(null,s));return i},t.n=function(e){var a=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(a,"a",a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e){function t(a){"@babel/helpers - typeof";return e.exports="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t=function(e){return typeof e}:t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(a)}e.exports=t},function(e){function t(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}e.exports=t},function(e){"use strict";e.exports=function(){var e=/%%|%(?:(\d+)\$)?((?:[-+#0 ]|'[\s\S])*)(\d+)?(?:\.(\d*))?([\s\S])/g,t=arguments,a=0,i=t[a++],r=function(e,t,a,i){a||(a=" ");var s=e.length>=t?"":Array(1+t-e.length>>>0).join(a);return i?e+s:s+e},n=function(e,t,a,i,s){var o=i-e.length;return 0<o&&(a||"0"!==s?e=r(e,i,s,a):e=[e.slice(0,t.length),r("",o,"0",!0),e.slice(t.length)].join("")),e},c=function(e,t,a,i,s,o){var p=e>>>0;return e=r(p.toString(t),s||0,"0",!1),n(e,"",a,i,o)},d=function(e,t,a,i,s){return null!==i&&void 0!==i&&(e=e.slice(0,i)),n(e,"",t,a,s)},l=function(e,i,y,g,u,m){var h,v,f,b,x;if("%%"===e)return"%";var w=" ",k=!1,T="",C,j;for(C=0,j=y.length;C<j;C++)switch(y.charAt(C)){case" ":case"0":w=y.charAt(C);break;case"+":T="+";break;case"-":k=!0;break;case"'":C+1<j&&(w=y.charAt(C+1),C++);}if(g=g?+g:0,!isFinite(g))throw new Error("Width must be finite");if(u=u?+u:"d"===m?0:-1<"fFeE".indexOf(m)?6:void 0,i&&0==+i)throw new Error("Argument number must be greater than zero");if(i&&+i>=t.length)throw new Error("Too few arguments");return x=i?t[+i]:t[a++],"%"===m?"%":"s"===m?d(x+"",k,g,u,w):"c"===m?d(s(+x),k,g,u,w):"b"===m?c(x,2,k,g,u,w):"o"===m?c(x,8,k,g,u,w):"x"===m?c(x,16,k,g,u,w):"X"===m?c(x,16,k,g,u,w).toUpperCase():"u"===m?c(x,10,k,g,u,w):"i"===m||"d"===m?(h=+x||0,h=o(h-h%1),v=0>h?"-":T,x=v+r(p(h)+"",u,"0",!1),k&&"0"===w&&(w=" "),n(x,v,k,g,w)):"e"===m||"E"===m||"f"===m||"F"===m||"g"===m||"G"===m?(h=+x,v=0>h?"-":T,f=["toExponential","toFixed","toPrecision"]["efg".indexOf(m.toLowerCase())],b=["toString","toUpperCase"]["eEfFgG".indexOf(m)%2],x=v+p(h)[f](u),n(x,v,k,g,w)[b]()):""};try{return i.replace(e,l)}catch(e){return!1}}},function(e){e.exports=a("FHml")},function(e,t,a){"use strict";e.exports=a(6)()},function(e,t,a){"use strict";e.exports=function e(){var t={VERSION:"1.14.0"};return a(7)(t),a(8)(t),a(9)(t),a(15)(t),a(16)(t),a(17)(t),a(27)(t),a(28)(t),a(30)(t),a(31)(t),a(32)(t),a(33)(t),a(34)(t),a(35)(t),a(36)(t),t.exports.factory=e,t.exports}},function(e,a,i){"use strict";function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function o(e){for(var t=1,a;t<arguments.length;t++)a=null==arguments[t]?{}:arguments[t],t%2?s(Object(a),!0).forEach(function(t){(0,n["default"])(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))});return e}var r=i(0),n=r(i(2));e.exports=function(e){function a(t,a){if(t.template.options.rethrow)throw"string"==typeof a&&(a=new e.Error(a)),"TwigException"!==a.type||a.file||(a.file=t.template.id),a;else if(e.log.error("Error parsing twig template "+t.template.id+": "),a.stack?e.log.error(a.stack):e.log.error(a.toString()),e.debug)return a.toString()}function i(e,t){var a=Object.prototype.toString.call(t).slice(8,-1);return void 0!==t&&null!==t&&a===e}return e.trace=!1,e.debug=!1,e.cache=!0,e.noop=function(){},e.merge=function(e,t,a){return Object.keys(t).forEach(function(i){a&&!(i in e)||(e[i]=t[i])}),e},e.Error=function(e,t){this.message=e,this.name="TwigException",this.type="TwigException",this.file=t},e.Error.prototype.toString=function(){var e=this.name+": "+this.message;return e},e.log={trace:function(){if(e.trace&&console){for(var t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];console.log(Array.prototype.slice.call(a))}},debug:function(){if(e.debug&&console){for(var t=arguments.length,a=Array(t),i=0;i<t;i++)a[i]=arguments[i];console.log(Array.prototype.slice.call(a))}}},"undefined"==typeof console?e.log.error=function(){}:"undefined"==typeof console.error?"undefined"!=typeof console.log&&(e.log.error=function(){var e;(e=console).log.apply(e,arguments)}):e.log.error=function(){var e;(e=console).error.apply(e,arguments)},e.token={},e.token.type={output:"output",logic:"logic",comment:"comment",raw:"raw",outputWhitespacePre:"output_whitespace_pre",outputWhitespacePost:"output_whitespace_post",outputWhitespaceBoth:"output_whitespace_both",logicWhitespacePre:"logic_whitespace_pre",logicWhitespacePost:"logic_whitespace_post",logicWhitespaceBoth:"logic_whitespace_both"},e.token.definitions=[{type:e.token.type.raw,open:"{% raw %}",close:"{% endraw %}"},{type:e.token.type.raw,open:"{% verbatim %}",close:"{% endverbatim %}"},{type:e.token.type.outputWhitespacePre,open:"{{-",close:"}}"},{type:e.token.type.outputWhitespacePost,open:"{{",close:"-}}"},{type:e.token.type.outputWhitespaceBoth,open:"{{-",close:"-}}"},{type:e.token.type.logicWhitespacePre,open:"{%-",close:"%}"},{type:e.token.type.logicWhitespacePost,open:"{%",close:"-%}"},{type:e.token.type.logicWhitespaceBoth,open:"{%-",close:"-%}"},{type:e.token.type.output,open:"{{",close:"}}"},{type:e.token.type.logic,open:"{%",close:"%}"},{type:e.token.type.comment,open:"{#",close:"#}"}],e.token.strings=["\"","'"],e.token.findStart=function(t){var a={position:null,def:null},s=null,o=e.token.definitions.length,r,i,n,p;for(r=0;r<o;r++)(i=e.token.definitions[r],n=t.indexOf(i.open),p=t.indexOf(i.close),e.log.trace("Twig.token.findStart: ","Searching for ",i.open," found at ",n),!(0<=n&&i.open.length!==i.close.length&&0>p))&&(0<=n&&(null===a.position||n<a.position)?(a.position=n,a.def=i,s=p):0<=n&&null!==a.position&&n===a.position&&(i.open.length>a.def.open.length?(a.position=n,a.def=i,s=p):i.open.length===a.def.open.length&&(i.close.length>a.def.close.length?0<=p&&p<s&&(a.position=n,a.def=i,s=p):0<=p&&p<s&&(a.position=n,a.def=i,s=p))));return a},e.token.findEnd=function(t,a,s){for(var o=null,r=!1,n=0,p=null,c=null,d=null,y=null,g=null,u=null,m,i;!r;){if(p=null,c=null,d=t.indexOf(a.close,n),0<=d)o=d,r=!0;else throw new e.Error("Unable to find closing bracket '"+a.close+"' opened near template position "+s);if(a.type===e.token.type.comment)break;if(a.type===e.token.type.raw)break;for(i=e.token.strings.length,m=0;m<i;m+=1)g=t.indexOf(e.token.strings[m],n),0<g&&g<d&&(null==p||g<p)&&(p=g,c=e.token.strings[m]);if(null!==p)for(y=p+1,o=null,r=!1;;){if(u=t.indexOf(c,y),0>u)throw e.Error("Unclosed string in template");if("\\"===t.slice(u-1,u))y=u+1;else{n=u+1;break}}}return o},e.tokenize=function(a){for(var i=[],s=0,o=null,r=null;0<a.length;)if(o=e.token.findStart(a),e.log.trace("Twig.tokenize: ","Found token: ",o),null===o.position)i.push({type:e.token.type.raw,value:a}),a="";else{if(0<o.position&&i.push({type:e.token.type.raw,value:a.slice(0,t(0,o.position))}),a=a.slice(o.position+o.def.open.length),s+=o.position+o.def.open.length,r=e.token.findEnd(a,o.def,s),e.log.trace("Twig.tokenize: ","Token ends at ",r),i.push({type:o.def.type,value:a.slice(0,t(0,r)).trim()}),"\n"===a.slice(r+o.def.close.length,r+o.def.close.length+1))switch(o.def.type){case"logic_whitespace_pre":case"logic_whitespace_post":case"logic_whitespace_both":case"logic":r+=1;break;default:}a=a.slice(r+o.def.close.length),s+=r+o.def.close.length}return i},e.compile=function(t){var a=this;try{for(var i=[],s=[],o=[],r=null,n=null,p=null,l=null,c=null,d=null,y=null,g=null,u=null,m=null,h=null,v=null,f=function(t){e.expression.compile.call(a,t),0<s.length?o.push(t):i.push(t)},b=function(t){if(n=e.logic.compile.call(a,t),m=n.type,h=e.logic.handler[m].open,v=e.logic.handler[m].next,e.log.trace("Twig.compile: ","Compiled logic token to ",n," next is: ",v," open is : ",h),void 0!==h&&!h){if(l=s.pop(),y=e.logic.handler[l.type],!y.next.includes(m))throw new Error(m+" not expected after a "+l.type);l.output=l.output||[],l.output=l.output.concat(o),o=[],u={type:e.token.type.logic,token:l},0<s.length?o.push(u):i.push(u)}void 0!==v&&0<v.length?(e.log.trace("Twig.compile: ","Pushing ",n," to logic stack."),0<s.length&&(l=s.pop(),l.output=l.output||[],l.output=l.output.concat(o),s.push(l),o=[]),s.push(n)):void 0!==h&&h&&(u={type:e.token.type.logic,token:n},0<s.length?o.push(u):i.push(u))};0<t.length;){switch(r=t.shift(),c=i[i.length-1],d=o[o.length-1],g=t[0],e.log.trace("Compiling token ",r),r.type){case e.token.type.raw:0<s.length?o.push(r):i.push(r);break;case e.token.type.logic:b.call(a,r);break;case e.token.type.comment:break;case e.token.type.output:f.call(a,r);break;case e.token.type.logicWhitespacePre:case e.token.type.logicWhitespacePost:case e.token.type.logicWhitespaceBoth:case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:switch(r.type!==e.token.type.outputWhitespacePost&&r.type!==e.token.type.logicWhitespacePost&&(c&&c.type===e.token.type.raw&&(i.pop(),c.value=c.value.trimEnd(),i.push(c)),d&&d.type===e.token.type.raw&&(o.pop(),d.value=d.value.trimEnd(),o.push(d))),r.type){case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:f.call(a,r);break;case e.token.type.logicWhitespacePre:case e.token.type.logicWhitespacePost:case e.token.type.logicWhitespaceBoth:b.call(a,r);break;default:}r.type!==e.token.type.outputWhitespacePre&&r.type!==e.token.type.logicWhitespacePre&&g&&g.type===e.token.type.raw&&(t.shift(),g.value=g.value.trimStart(),t.unshift(g));break;default:}e.log.trace("Twig.compile: "," Output: ",i," Logic Stack: ",s," Pending Output: ",o)}if(0<s.length)throw p=s.pop(),new Error("Unable to find an end tag for "+p.type+", expecting one of "+p.next);return i}catch(t){if(a.options.rethrow)throw"TwigException"!==t.type||t.file||(t.file=a.id),t;else e.log.error("Error compiling twig template "+a.id+": "),t.stack?e.log.error(t.stack):e.log.error(t.toString())}},e.prepare=function(t){e.log.debug("Twig.prepare: ","Tokenizing ",t);var a=e.tokenize.call(this,t);e.log.debug("Twig.prepare: ","Compiling ",a);var i=e.compile.call(this,a);return e.log.debug("Twig.prepare: ","Compiled ",i),i},e.output=function(t){var a=this.options.autoescape;if(!a)return t.join("");var i="string"==typeof a?a:"html",s=t.map(function(t){return t&&!0!==t.twigMarkup&&t.twigMarkup!==i&&("html"!==i||"html_attr"!==t.twigMarkup)&&(t=e.filters.escape(t,[i])),t});if(0===s.length)return"";var o=s.join("");return 0===o.length?"":new e.Markup(o,!0)},e.Templates={loaders:{},parsers:{},registry:{}},e.validateId=function(t){if("prototype"===t)throw new e.Error(t+" is not a valid twig identifier");else if(e.cache&&Object.hasOwnProperty.call(e.Templates.registry,t))throw new e.Error("There is already a template with the ID "+t);return!0},e.Templates.registerLoader=function(t,a,i){if("function"!=typeof a)throw new e.Error("Unable to add loader for "+t+": Invalid function reference given.");i&&(a=a.bind(i)),this.loaders[t]=a},e.Templates.unRegisterLoader=function(e){this.isRegisteredLoader(e)&&delete this.loaders[e]},e.Templates.isRegisteredLoader=function(e){return Object.hasOwnProperty.call(this.loaders,e)},e.Templates.registerParser=function(t,a,i){if("function"!=typeof a)throw new e.Error("Unable to add parser for "+t+": Invalid function regerence given.");i&&(a=a.bind(i)),this.parsers[t]=a},e.Templates.unRegisterParser=function(e){this.isRegisteredParser(e)&&delete this.parsers[e]},e.Templates.isRegisteredParser=function(e){return Object.hasOwnProperty.call(this.parsers,e)},e.Templates.save=function(t){if(void 0===t.id)throw new e.Error("Unable to save template with no id");e.Templates.registry[t.id]=t},e.Templates.load=function(t){return Object.hasOwnProperty.call(e.Templates.registry,t)?e.Templates.registry[t]:null},e.Templates.loadRemote=function(t,a,i,s){var o="undefined"==typeof a.id?t:a.id,r=e.Templates.registry[o];if(e.cache&&"undefined"!=typeof r)return"function"==typeof i&&i(r),r;a.parser=a.parser||"twig",a.id=o,"undefined"==typeof a.async&&(a.async=!0);var n=this.loaders[a.method]||this.loaders.fs;return n.call(this,t,a,i,s)},e.Block=function(e,t){this.template=e,this.token=t},e.Block.prototype.render=function(t,a){var i=t.template,s;return t.template=this.template,s=this.token.expression?e.expression.parseAsync.call(t,this.token.output,a):t.parseAsync(this.token.output,a),s.then(function(i){return e.expression.parseAsync.call(t,{type:e.expression.type.string,value:i},a)}).then(function(e){return t.template=i,e})},e.ParseState=function(e,t){this.renderedBlocks={},this.overrideBlocks=void 0===t?{}:t,this.context={},this.macros={},this.nestingStack=[],this.template=e},e.ParseState.prototype.getBlock=function(e,t){var a;return!0!==t&&(a=this.overrideBlocks[e]),void 0===a&&(a=this.template.getBlock(e,t)),void 0===a&&null!==this.template.parentTemplate&&(a=this.template.parentTemplate.getBlock(e)),a},e.ParseState.prototype.getBlocks=function(e){var t={};return!1!==e&&null!==this.template.parentTemplate&&this.template.parentTemplate!==this.template&&(t=this.template.parentTemplate.getBlocks()),t=o({},t,{},this.template.getBlocks(),{},this.overrideBlocks),t},e.ParseState.prototype.getNestingStackToken=function(e){var t;return this.nestingStack.forEach(function(a){void 0===t&&a.type===e&&(t=a)}),t},e.ParseState.prototype.parse=function(t,i,s){function o(e){p.push(e)}function r(e){"undefined"!=typeof e.chain&&(y=e.chain),"undefined"!=typeof e.context&&(n.context=e.context),"undefined"!=typeof e.output&&p.push(e.output)}var n=this,p=[],l=null,c=!0,d=null,y=!0;if(i&&(n.context=i),d=e.async.forEach(t,function(t){switch(e.log.debug("Twig.ParseState.parse: ","Parsing token: ",t),t.type){case e.token.type.raw:p.push(e.filters.raw(t.value));break;case e.token.type.logic:return e.logic.parseAsync.call(n,t.token,n.context,y).then(r);case e.token.type.comment:break;case e.token.type.outputWhitespacePre:case e.token.type.outputWhitespacePost:case e.token.type.outputWhitespaceBoth:case e.token.type.output:return e.log.debug("Twig.ParseState.parse: ","Output token: ",t.stack),e.expression.parseAsync.call(n,t.stack,n.context).then(o);default:}}).then(function(){return p=e.output.call(n.template,p),c=!1,p})["catch"](function(e){s&&a(n,e),l=e}),s)return d;if(null!==l)return a(n,l);if(c)throw new e.Error("You are using Twig.js in sync mode in combination with async extensions.");return p},e.Template=function(t){var a=t.data,s=t.id,o=t.base,r=t.path,n=t.url,p=t.name,l=t.method,c=t.options;this.base=o,this.blocks={defined:{},imported:{}},this.id=s,this.method=l,this.name=p,this.options=c,this.parentTemplate=null,this.path=r,this.url=n,this.tokens=i("String",a)?e.prepare.call(this,a):a,void 0!==s&&e.Templates.save(this)},e.Template.prototype.getBlock=function(e,t){var a=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],i;return!0!==t&&(i=this.blocks.defined[e]),a&&void 0===i&&(i=this.blocks.imported[e]),void 0===i&&null!==this.parentTemplate&&(i=this.parentTemplate.getBlock(e,t,a=!1)),i},e.Template.prototype.getBlocks=function(){var e={};return e=o({},e,{},this.blocks.imported,{},this.blocks.defined),e},e.Template.prototype.render=function(t,a,i){var s=this;return a=a||{},e.async.potentiallyAsync(s,i,function(){var i=new e.ParseState(s,a.blocks);return i.parseAsync(s.tokens,t).then(function(t){var o,r;return null===s.parentTemplate?!0===a.isInclude?t:t.valueOf():(s.options.allowInlineIncludes&&(o=e.Templates.load(s.parentTemplate),o&&(o.options=s.options)),o||(r=e.path.parsePath(s,s.parentTemplate),o=e.Templates.loadRemote(r,{method:s.getLoaderMethod(),base:s.base,async:!1,id:r,options:s.options})),s.parentTemplate=o,s.parentTemplate.renderAsync(i.context,{blocks:i.getBlocks(!1),isInclude:!0}))})})},e.Template.prototype.importFile=function(t){var a=null,i;if(!this.url&&this.options.allowInlineIncludes){if(t=this.path?e.path.parsePath(this,t):t,i=e.Templates.load(t),!i&&(i=e.Templates.loadRemote(a,{id:t,method:this.getLoaderMethod(),async:!1,path:t,options:this.options}),!i))throw new e.Error("Unable to find the template "+t);return i.options=this.options,i}return a=e.path.parsePath(this,t),i=e.Templates.loadRemote(a,{method:this.getLoaderMethod(),base:this.base,async:!1,options:this.options,id:a}),i},e.Template.prototype.getLoaderMethod=function(){return this.path?"fs":this.url?"ajax":this.method||"fs"},e.Template.prototype.compile=function(t){return e.compiler.compile(this,t)},e.Markup=function(e,t){if("string"!=typeof e)return e;var a=new String(e);return a.twigMarkup="undefined"==typeof t||t,a},e}},function(e){"use strict";e.exports=function(e){return e.compiler={module:{}},e.compiler.compile=function(t,a){var i=JSON.stringify(t.tokens),s=t.id,o=null;if(a.module){if(void 0===e.compiler.module[a.module])throw new e.Error("Unable to find module type "+a.module);o=e.compiler.module[a.module](s,i,a.twig)}else o=e.compiler.wrap(s,i);return o},e.compiler.module={amd:function(t,a,i){return"define([\""+i+"\"], function (Twig) {\n\tvar twig, templates;\ntwig = Twig.twig;\ntemplates = "+e.compiler.wrap(t,a)+"\n\treturn templates;\n});"},node:function(t,a){return"var twig = require(\"twig\").twig;\nexports.template = "+e.compiler.wrap(t,a)},cjs2:function(t,a,i){return"module.declare([{ twig: \""+i+"\" }], function (require, exports, module) {\n\tvar twig = require(\"twig\").twig;\n\texports.template = "+e.compiler.wrap(t,a)+"\n});"}},e.compiler.wrap=function(e,t){return"twig({id:\""+e.replace("\"","\\\"")+"\", data:"+t+", precompiled: true});\n"},e}},function(e,t,a){"use strict";var i=a(0),s=i(a(1)),o=i(a(10));e.exports=function(e){function t(t,a,i){return a?e.expression.parseAsync.call(t,a,i):e.Promise.resolve(!1)}for(e.expression={},a(14)(e),e.expression.reservedWords=["true","false","null","TRUE","FALSE","NULL","_context","and","b-and","or","b-or","b-xor","in","not in","if","matches","starts","ends","with"],e.expression.type={comma:"Twig.expression.type.comma",operator:{unary:"Twig.expression.type.operator.unary",binary:"Twig.expression.type.operator.binary"},string:"Twig.expression.type.string",bool:"Twig.expression.type.bool",slice:"Twig.expression.type.slice",array:{start:"Twig.expression.type.array.start",end:"Twig.expression.type.array.end"},object:{start:"Twig.expression.type.object.start",end:"Twig.expression.type.object.end"},parameter:{start:"Twig.expression.type.parameter.start",end:"Twig.expression.type.parameter.end"},subexpression:{start:"Twig.expression.type.subexpression.start",end:"Twig.expression.type.subexpression.end"},key:{period:"Twig.expression.type.key.period",brackets:"Twig.expression.type.key.brackets"},filter:"Twig.expression.type.filter",_function:"Twig.expression.type._function",variable:"Twig.expression.type.variable",number:"Twig.expression.type.number",_null:"Twig.expression.type.null",context:"Twig.expression.type.context",test:"Twig.expression.type.test"},e.expression.set={operations:[e.expression.type.filter,e.expression.type.operator.unary,e.expression.type.operator.binary,e.expression.type.array.end,e.expression.type.object.end,e.expression.type.parameter.end,e.expression.type.subexpression.end,e.expression.type.comma,e.expression.type.test],expressions:[e.expression.type._function,e.expression.type.bool,e.expression.type.string,e.expression.type.variable,e.expression.type.number,e.expression.type._null,e.expression.type.context,e.expression.type.parameter.start,e.expression.type.array.start,e.expression.type.object.start,e.expression.type.subexpression.start,e.expression.type.operator.unary]},e.expression.set.operationsExtended=e.expression.set.operations.concat([e.expression.type.key.period,e.expression.type.key.brackets,e.expression.type.slice]),e.expression.fn={compile:{push:function(e,t,a){a.push(e)},pushBoth:function(e,t,a){a.push(e),t.push(e)}},parse:{push:function(e,t){t.push(e)},pushValue:function(e,t){t.push(e.value)}}},e.expression.definitions=[{type:e.expression.type.test,regex:/^is\s+(not)?\s*([a-zA-Z_]\w*(\s?as)?)/,next:e.expression.set.operations.concat([e.expression.type.parameter.start]),compile:function(e,t,a){e.filter=e.match[2],e.modifier=e.match[1],delete e.match,delete e.value,a.push(e)},parse:function(a,i,s){var o=i.pop(),r=this;return t(r,a.params,s).then(function(t){var s=e.test(a.filter,o,t);"not"===a.modifier?i.push(!s):i.push(s)})}},{type:e.expression.type.comma,regex:/^,/,next:e.expression.set.expressions.concat([e.expression.type.array.end,e.expression.type.object.end]),compile:function(t,a,s){var o=a.length-1,i;for(delete t.match,delete t.value;0<=o;o--){if(i=a.pop(),i.type===e.expression.type.object.start||i.type===e.expression.type.parameter.start||i.type===e.expression.type.array.start){a.push(i);break}s.push(i)}s.push(t)}},{type:e.expression.type.number,regex:/^-?\d+(\.\d+)?/,next:e.expression.set.operations,compile:function(e,t,a){e.value=+e.value,a.push(e)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.operator.binary,regex:/(^\?\?|^\?:|^(b-and)|^(b-or)|^(b-xor)|^[+\-~%?]|^[:](?!\d\])|^[!=]==?|^[!<>]=?|^\*\*?|^\/\/?|^(and)[(|\s+]|^(or)[(|\s+]|^(in)[(|\s+]|^(not in)[(|\s+]|^(matches)|^(starts with)|^(ends with)|^\.\.)/,next:e.expression.set.expressions,transform:function(e,t){switch(e[0]){case"and(":case"or(":case"in(":case"not in(":return t[t.length-1].value=e[2],e[0];default:return"";}},compile:function(t,a,i){delete t.match,t.value=t.value.trim();var s=t.value,o=e.expression.operator.lookup(s,t);for(e.log.trace("Twig.expression.compile: ","Operator: ",o," from ",s);0<a.length&&(a[a.length-1].type===e.expression.type.operator.unary||a[a.length-1].type===e.expression.type.operator.binary)&&(o.associativity===e.expression.operator.leftToRight&&o.precidence>=a[a.length-1].precidence||o.associativity===e.expression.operator.rightToLeft&&o.precidence>a[a.length-1].precidence);){var r=a.pop();i.push(r)}if(":"!==s)a.push(o);else if(a[a.length-1]&&"?"===a[a.length-1].value);else{var n=i.pop();if(n.type===e.expression.type.string||n.type===e.expression.type.variable)t.key=n.value;else if(n.type===e.expression.type.number)t.key=n.value.toString();else if(n.expression&&(n.type===e.expression.type.parameter.end||n.type===e.expression.type.subexpression.end))t.params=n.params;else throw new e.Error("Unexpected value before ':' of "+n.type+" = "+n.value);i.push(t)}},parse:function(t,a,i){var s=this;if(t.key)a.push(t);else{if(t.params)return e.expression.parseAsync.call(s,t.params,i).then(function(e){t.key=e,a.push(t),i.loop||delete t.params});e.expression.operator.parse(t.value,a)}}},{type:e.expression.type.operator.unary,regex:/(^not\s+)/,next:e.expression.set.expressions,compile:function(t,a,i){delete t.match,t.value=t.value.trim();var s=t.value,o=e.expression.operator.lookup(s,t);for(e.log.trace("Twig.expression.compile: ","Operator: ",o," from ",s);0<a.length&&(a[a.length-1].type===e.expression.type.operator.unary||a[a.length-1].type===e.expression.type.operator.binary)&&(o.associativity===e.expression.operator.leftToRight&&o.precidence>=a[a.length-1].precidence||o.associativity===e.expression.operator.rightToLeft&&o.precidence>a[a.length-1].precidence);){var r=a.pop();i.push(r)}a.push(o)},parse:function(t,a){e.expression.operator.parse(t.value,a)}},{type:e.expression.type.string,regex:/^(["'])(?:(?=(\\?))\2[\s\S])*?\1/,next:e.expression.set.operationsExtended,compile:function(t,a,i){var s=t.value;delete t.match,s="\""===s.slice(0,1)?s.replace("\\\"","\""):s.replace("\\'","'"),t.value=s.slice(1,-1).replace(/\\n/g,"\n").replace(/\\r/g,"\r"),e.log.trace("Twig.expression.compile: ","String value: ",t.value),i.push(t)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.subexpression.start,regex:/^\(/,next:e.expression.set.expressions.concat([e.expression.type.subexpression.end]),compile:function(e,t,a){e.value="(",a.push(e),t.push(e)},parse:e.expression.fn.parse.push},{type:e.expression.type.subexpression.end,regex:/^\)/,next:e.expression.set.operationsExtended,validate:function(t,a){for(var s=a.length-1,i=!1,o=!1,r=0,n;!i&&0<=s;)n=a[s],i=n.type===e.expression.type.subexpression.start,i&&o&&(o=!1,i=!1),n.type===e.expression.type.parameter.start?r++:n.type===e.expression.type.parameter.end?r--:n.type===e.expression.type.subexpression.end&&(o=!0),s--;return i&&0==r},compile:function(t,a,i){var s=t,o;for(o=a.pop();0<a.length&&o.type!==e.expression.type.subexpression.start;)i.push(o),o=a.pop();for(var r=[];t.type!==e.expression.type.subexpression.start;)r.unshift(t),t=i.pop();r.unshift(t),o=a[a.length-1],void 0===o||o.type!==e.expression.type._function&&o.type!==e.expression.type.filter&&o.type!==e.expression.type.test&&o.type!==e.expression.type.key.brackets?(s.expression=!0,r.pop(),r.shift(),s.params=r,i.push(s)):(s.expression=!1,o.params=r)},parse:function(t,a,i){var s=this;if(t.expression)return e.expression.parseAsync.call(s,t.params,i).then(function(e){a.push(e)});throw new e.Error("Unexpected subexpression end when token is not marked as an expression")}},{type:e.expression.type.parameter.start,regex:/^\(/,next:e.expression.set.expressions.concat([e.expression.type.parameter.end]),validate:function(t,a){var i=a[a.length-1];return i&&!e.expression.reservedWords.includes(i.value.trim())},compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.parameter.end,regex:/^\)/,next:e.expression.set.operationsExtended,compile:function(t,a,i){var s=t,o;for(o=a.pop();0<a.length&&o.type!==e.expression.type.parameter.start;)i.push(o),o=a.pop();for(var r=[];t.type!==e.expression.type.parameter.start;)r.unshift(t),t=i.pop();r.unshift(t),t=i[i.length-1],void 0===t||t.type!==e.expression.type._function&&t.type!==e.expression.type.filter&&t.type!==e.expression.type.test&&t.type!==e.expression.type.key.brackets?(s.expression=!0,r.pop(),r.shift(),s.params=r,i.push(s)):(s.expression=!1,t.params=r)},parse:function(t,a,i){var s=[],o=!1,r=null,n=this;if(t.expression)return e.expression.parseAsync.call(n,t.params,i).then(function(e){a.push(e)});for(;0<a.length;){if(r=a.pop(),r&&r.type&&r.type===e.expression.type.parameter.start){o=!0;break}s.unshift(r)}if(!o)throw new e.Error("Expected end of parameter set.");a.push(s)}},{type:e.expression.type.slice,regex:/^\[(\d*:\d*)\]/,next:e.expression.set.operationsExtended,compile:function(e,t,a){var i=e.match[1].split(":"),s=i[0]?parseInt(i[0],10):void 0,o=i[1]?parseInt(i[1],10):void 0;e.value="slice",e.params=[s,o],o||(e.params=[s]),a.push(e)},parse:function(t,a){var i=a.pop(),s=t.params,o=this;a.push(e.filter.call(o,t.value,i,s))}},{type:e.expression.type.array.start,regex:/^\[/,next:e.expression.set.expressions.concat([e.expression.type.array.end]),compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.array.end,regex:/^\]/,next:e.expression.set.operationsExtended,compile:function(t,a,s){for(var o=a.length-1,i;0<=o&&(i=a.pop(),i.type!==e.expression.type.array.start);o--)s.push(i);s.push(t)},parse:function(t,a){for(var i=[],s=!1,o=null;0<a.length;){if(o=a.pop(),o&&o.type&&o.type===e.expression.type.array.start){s=!0;break}i.unshift(o)}if(!s)throw new e.Error("Expected end of array.");a.push(i)}},{type:e.expression.type.object.start,regex:/^\{/,next:e.expression.set.expressions.concat([e.expression.type.object.end]),compile:e.expression.fn.compile.pushBoth,parse:e.expression.fn.parse.push},{type:e.expression.type.object.end,regex:/^\}/,next:e.expression.set.operationsExtended,compile:function(t,a,s){for(var o=a.length-1,i;0<=o&&(i=a.pop(),!(i&&i.type===e.expression.type.object.start));o--)s.push(i);s.push(t)},parse:function(t,a){for(var i={},s=!1,o=null,r=!1,n=null;0<a.length;){if(o=a.pop(),o&&o.type&&o.type===e.expression.type.object.start){s=!0;break}if(o&&o.type&&(o.type===e.expression.type.operator.binary||o.type===e.expression.type.operator.unary)&&o.key){if(!r)throw new e.Error("Missing value for key '"+o.key+"' in object definition.");i[o.key]=n,void 0===i._keys&&(i._keys=[]),i._keys.unshift(o.key),n=null,r=!1}else r=!0,n=o}if(!s)throw new e.Error("Unexpected end of object.");a.push(i)}},{type:e.expression.type.filter,regex:/^\|\s?([a-zA-Z_][a-zA-Z0-9_-]*)/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:function(e,t,a){e.value=e.match[1],a.push(e)},parse:function(a,i,s){var o=i.pop(),r=this;return t(r,a.params,s).then(function(t){return e.filter.call(r,a.value,o,t)}).then(function(e){i.push(e)})}},{type:e.expression.type._function,regex:/^([a-zA-Z_]\w*)\s*\(/,next:e.expression.type.parameter.start,validate:function(t){return t[1]&&!e.expression.reservedWords.includes(t[1])},transform:function(){return"("},compile:function(e,t,a){var i=e.match[1];e.fn=i,delete e.match,delete e.value,a.push(e)},parse:function(a,i,s){var r=this,n=a.fn,p;return t(r,a.params,s).then(function(t){if(e.functions[n])p=e.functions[n].apply(r,t);else if("function"==typeof s[n])p=s[n].apply(s,(0,o["default"])(t));else throw new e.Error(n+" function does not exist and is not defined in the context");return p}).then(function(e){i.push(e)})}},{type:e.expression.type.variable,regex:/^[a-zA-Z_]\w*/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:e.expression.fn.compile.push,validate:function(t){return!e.expression.reservedWords.includes(t[0])},parse:function(t,a,i){var s=this;return e.expression.resolveAsync.call(s,i[t.value],i).then(function(i){if(s.template.options.strictVariables&&void 0===i)throw new e.Error("Variable \""+t.value+"\" does not exist.");a.push(i)})}},{type:e.expression.type.key.period,regex:/^\.(\w+)/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:function(e,t,a){e.key=e.match[1],delete e.match,delete e.value,a.push(e)},parse:function(a,i,o,r){var n=this,p=a.key,l=i.pop(),c;if(l&&!Object.prototype.hasOwnProperty.call(l,p)&&n.template.options.strictVariables){var d=Object.keys(l);if(0<d.length)throw new e.Error("Key \""+p+"\" for object with keys \""+Object.keys(l).join(", ")+"\" does not exist.");else throw new e.Error("Key \""+p+"\" does not exist as the object is empty.")}return t(n,a.params,o).then(function(t){if(null===l||void 0===l)c=void 0;else{var a=function(e){return e.slice(0,1).toUpperCase()+e.slice(1)};c="object"===(0,s["default"])(l)&&(p in l)?l[p]:l["get"+a(p)]?l["get"+a(p)]:l["is"+a(p)]?l["is"+a(p)]:void 0}return e.expression.resolveAsync.call(n,c,o,t,r,l)}).then(function(e){i.push(e)})}},{type:e.expression.type.key.brackets,regex:/^\[([^\]:]*)\]/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:function(t,a,i){var s=t.match[1];delete t.value,delete t.match,t.stack=e.expression.compile({value:s}).stack,i.push(t)},parse:function(a,i,o,r){var n=this,p=null,l,c;return t(n,a.params,o).then(function(t){return p=t,e.expression.parseAsync.call(n,a.stack,o)}).then(function(t){if(l=i.pop(),l&&!Object.prototype.hasOwnProperty.call(l,t)&&n.template.options.strictVariables){var a=Object.keys(l);if(0<a.length)throw new e.Error("Key \""+t+"\" for array with keys \""+a.join(", ")+"\" does not exist.");else throw new e.Error("Key \""+t+"\" does not exist as the array is empty.")}else if(null===l||void 0===l)return null;return c="object"===(0,s["default"])(l)&&(t in l)?l[t]:null,e.expression.resolveAsync.call(n,c,l,p,r)}).then(function(e){i.push(e)})}},{type:e.expression.type._null,regex:/^(null|NULL|none|NONE)/,next:e.expression.set.operations,compile:function(e,t,a){delete e.match,e.value=null,a.push(e)},parse:e.expression.fn.parse.pushValue},{type:e.expression.type.context,regex:/^_context/,next:e.expression.set.operationsExtended.concat([e.expression.type.parameter.start]),compile:e.expression.fn.compile.push,parse:function(e,t,a){t.push(a)}},{type:e.expression.type.bool,regex:/^(true|TRUE|false|FALSE)/,next:e.expression.set.operations,compile:function(e,t,a){e.value="true"===e.match[0].toLowerCase(),delete e.match,a.push(e)},parse:e.expression.fn.parse.pushValue}],e.expression.resolveAsync=function(t,a,i,s,o){var r=this;if("function"!=typeof t)return e.Promise.resolve(t);var n=e.Promise.resolve(i);if(s&&s.type===e.expression.type.parameter.end){n=n.then(function(){return s.params&&e.expression.parseAsync.call(r,s.params,a,!0)}).then(function(e){return s.cleanup=!0,e})}return n.then(function(e){return t.apply(o||a,e||[])})},e.expression.resolve=function(t,a,i,s,o){return e.async.potentiallyAsync(this,!1,function(){return e.expression.resolveAsync.call(this,t,a,i,s,o)})},e.expression.handler={},e.expression.extendType=function(t){e.expression.type[t]="Twig.expression.type."+t},e.expression.extend=function(t){if(!t.type)throw new e.Error("Unable to extend logic definition. No type provided for "+t);e.expression.handler[t.type]=t};0<e.expression.definitions.length;)e.expression.extend(e.expression.definitions.shift());return e.expression.tokenize=function(t){var a=[],i=0,s=null,o=[],r=function(){for(var t=arguments.length,r=Array(t),p=0;p<t;p++)r[p]=arguments[p];for(var l=arguments.length-2,y=Array(l);0<l--;)y[l]=r[l];if(e.log.trace("Twig.expression.tokenize","Matched a ",n," regular expression of ",y),s&&!s.includes(n))return o.push(n+" cannot follow a "+a[a.length-1].type+" at template:"+i+" near '"+y[0].slice(0,20)+"...'"),y[0];var g=e.expression.handler[n];return g.validate&&!g.validate(y,a)?y[0]:(o=[],a.push({type:n,value:y[0],match:y}),d=!0,s=c,i+=y[0].length,g.transform?g.transform(y,a):"")},n,p,l,c,d;for(e.log.debug("Twig.expression.tokenize","Tokenizing expression ",t);0<t.length;){for(n in t=t.trim(),e.expression.handler)if(Object.hasOwnProperty.call(e.expression.handler,n)){if(c=e.expression.handler[n].next,p=e.expression.handler[n].regex,e.log.trace("Checking type ",n," on ",t),d=!1,Array.isArray(p))for(l=p.length;0<l--;)t=t.replace(p[l],r);else t=t.replace(p,r);if(d)break}if(!d)if(0<o.length)throw new e.Error(o.join(" OR "));else throw new e.Error("Unable to parse '"+t+"' at template position"+i)}return e.log.trace("Twig.expression.tokenize","Tokenized to ",a),a},e.expression.compile=function(t){var a=t.value,i=e.expression.tokenize(a),s=null,o=[],r=[],n=null;for(e.log.trace("Twig.expression.compile: ","Compiling ",a);0<i.length;)s=i.shift(),n=e.expression.handler[s.type],e.log.trace("Twig.expression.compile: ","Compiling ",s),n.compile(s,r,o),e.log.trace("Twig.expression.compile: ","Stack is",r),e.log.trace("Twig.expression.compile: ","Output is",o);for(;0<r.length;)o.push(r.pop());return e.log.trace("Twig.expression.compile: ","Final output is",o),t.stack=o,delete t.value,t},e.expression.parse=function(t,a,i,s){var o=this;Array.isArray(t)||(t=[t]);var r=[],n=[],p=e.expression.type.operator.binary;return e.async.potentiallyAsync(o,s,function(){return e.async.forEach(t,function(i,s){var l=null,c=null,d;if(!i.cleanup)return t.length>s+1&&(c=t[s+1]),l=e.expression.handler[i.type],l.parse&&(d=l.parse.call(o,i,r,a,c)),i.type===p&&a.loop&&n.push(i),d}).then(function(){for(var e=n.length,t=null;0<e--;)t=n[e],t.params&&t.key&&delete t.key;if(i){var a=r.splice(0);r.push(a)}return r.pop()})})},e}},function(e,t,a){var i=a(11),s=a(12),o=a(13);e.exports=function(e){return i(e)||s(e)||o()}},function(e){e.exports=function(e){if(Array.isArray(e)){for(var t=0,a=Array(e.length);t<e.length;t++)a[t]=e[t];return a}}},function(e){function t(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}e.exports=t},function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t){"use strict";t.exports=function(t){t.expression.operator={leftToRight:"leftToRight",rightToLeft:"rightToLeft"};var i=function(e,t){if(void 0===t||null===t)return null;if(void 0!==t.indexOf)return(e===t||""!==e)&&t.includes(e);for(var a in t)if(Object.hasOwnProperty.call(t,a)&&t[a]===e)return!0;return!1};return t.expression.operator.lookup=function(e,a){switch(e){case"..":a.precidence=20,a.associativity=t.expression.operator.leftToRight;break;case",":a.precidence=18,a.associativity=t.expression.operator.leftToRight;break;case"?:":case"?":case":":a.precidence=16,a.associativity=t.expression.operator.rightToLeft;break;case"??":a.precidence=15,a.associativity=t.expression.operator.rightToLeft;break;case"or":a.precidence=14,a.associativity=t.expression.operator.leftToRight;break;case"and":a.precidence=13,a.associativity=t.expression.operator.leftToRight;break;case"b-or":a.precidence=12,a.associativity=t.expression.operator.leftToRight;break;case"b-xor":a.precidence=11,a.associativity=t.expression.operator.leftToRight;break;case"b-and":a.precidence=10,a.associativity=t.expression.operator.leftToRight;break;case"==":case"!=":a.precidence=9,a.associativity=t.expression.operator.leftToRight;break;case"<":case"<=":case">":case">=":case"not in":case"in":a.precidence=8,a.associativity=t.expression.operator.leftToRight;break;case"~":case"+":case"-":a.precidence=6,a.associativity=t.expression.operator.leftToRight;break;case"//":case"**":case"*":case"/":case"%":a.precidence=5,a.associativity=t.expression.operator.leftToRight;break;case"not":a.precidence=3,a.associativity=t.expression.operator.rightToLeft;break;case"matches":a.precidence=8,a.associativity=t.expression.operator.leftToRight;break;case"starts with":a.precidence=8,a.associativity=t.expression.operator.leftToRight;break;case"ends with":a.precidence=8,a.associativity=t.expression.operator.leftToRight;break;default:throw new t.Error("Failed to lookup operator: "+e+" is an unknown operator.");}return a.operator=e,a},t.expression.operator.parse=function(s,o){t.log.trace("Twig.expression.operator.parse: ","Handling ",s);var n,p,l;if("?"===s&&(l=o.pop()),p=o.pop(),"not"!==s&&(n=o.pop()),"in"!==s&&"not in"!==s&&"??"!==s&&(n&&Array.isArray(n)&&(n=n.length),"?"!==s&&p&&Array.isArray(p)&&(p=p.length)),"matches"===s&&p&&"string"==typeof p){var c=p.match(/^\/(.*)\/([gims]?)$/),d=c[1],y=c[2];p=new RegExp(d,y)}switch(s){case":":break;case"??":void 0===n&&(n=p,p=l,l=void 0),void 0!==n&&null!==n?o.push(n):o.push(p);break;case"?:":t.lib.boolval(n)?o.push(n):o.push(p);break;case"?":void 0===n&&(n=p,p=l,l=void 0),t.lib.boolval(n)?o.push(p):o.push(l);break;case"+":p=parseFloat(p),n=parseFloat(n),o.push(n+p);break;case"-":p=parseFloat(p),n=parseFloat(n),o.push(n-p);break;case"*":p=parseFloat(p),n=parseFloat(n),o.push(n*p);break;case"/":p=parseFloat(p),n=parseFloat(n),o.push(n/p);break;case"//":p=parseFloat(p),n=parseFloat(n),o.push(r(n/p));break;case"%":p=parseFloat(p),n=parseFloat(n),o.push(n%p);break;case"~":o.push(("undefined"!=typeof n&&null!==n?n.toString():"")+("undefined"!=typeof p&&null!==p?p.toString():""));break;case"not":case"!":o.push(!t.lib.boolval(p));break;case"<":o.push(n<p);break;case"<=":o.push(n<=p);break;case">":o.push(n>p);break;case">=":o.push(n>=p);break;case"===":o.push(n===p);break;case"==":o.push(n==p);break;case"!==":o.push(n!==p);break;case"!=":o.push(n!=p);break;case"or":o.push(t.lib.boolval(n)||t.lib.boolval(p));break;case"b-or":o.push(n|p);break;case"b-xor":o.push(n^p);break;case"and":o.push(t.lib.boolval(n)&&t.lib.boolval(p));break;case"b-and":o.push(n&p);break;case"**":o.push(e(n,p));break;case"not in":o.push(!i(n,p));break;case"in":o.push(i(n,p));break;case"matches":o.push(p.test(n));break;case"starts with":o.push("string"==typeof n&&0===n.indexOf(p));break;case"ends with":o.push("string"==typeof n&&n.includes(p,n.length-p.length));break;case"..":o.push(t.functions.range(n,p));break;default:throw new t.Error("Failed to parse operator: "+s+" is an unknown operator.");}},t}},function(a,i,s){"use strict";var r=s(0),n=r(s(1));a.exports=function(a){function i(e,t){var a=Object.prototype.toString.call(t).slice(8,-1);return void 0!==t&&null!==t&&a===e}return a.filters={upper:function(e){return"string"==typeof e?e.toUpperCase():e},lower:function(e){return"string"==typeof e?e.toLowerCase():e},capitalize:function(e){return"string"==typeof e?e.slice(0,1).toUpperCase()+e.toLowerCase().slice(1):e},title:function(e){return"string"==typeof e?e.toLowerCase().replace(/(^|\s)([a-z])/g,function(e,t,a){return t+a.toUpperCase()}):e},length:function(e){return a.lib.is("Array",e)||"string"==typeof e?e.length:a.lib.is("Object",e)?void 0===e._keys?Object.keys(e).length:e._keys.length:0},reverse:function(e){if(i("Array",e))return e.reverse();if(i("String",e))return e.split("").reverse().join("");if(i("Object",e)){var t=e._keys||Object.keys(e).reverse();return e._keys=t,e}},sort:function(e){if(i("Array",e))return e.sort();if(i("Object",e)){delete e._keys;var t=Object.keys(e),a=t.sort(function(t,a){var i,s;return e[t]>e[a]==!(e[t]<=e[a])?e[t]>e[a]?1:e[t]<e[a]?-1:0:isNaN(i=parseFloat(e[t]))||isNaN(s=parseFloat(e[a]))?"string"==typeof e[t]?e[t]>e[a].toString()?1:e[t]<e[a].toString()?-1:0:"string"==typeof e[a]?e[t].toString()>e[a]?1:e[t].toString()<e[a]?-1:0:null:i>s?1:i<s?-1:0});return e._keys=a,e}},keys:function(e){if(void 0!==e&&null!==e){var t=e._keys||Object.keys(e),a=[];return t.forEach(function(t){"_keys"===t||Object.hasOwnProperty.call(e,t)&&a.push(t)}),a}},url_encode:function(e){if(void 0!==e&&null!==e){if(a.lib.is("Object",e)){var t=function e(t,i){var s=[],o=t._keys||Object.keys(t);return o.forEach(function(o){if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?i+"["+o+"]":o,n=t[o];s.push(a.lib.is("Object",n)||Array.isArray(n)?e(n,r):encodeURIComponent(r)+"="+encodeURIComponent(n))}}),s.join("&amp;")};return t(e)}var i=encodeURIComponent(e);return i=i.replace("'","%27"),i}},join:function(e,t){if(void 0!==e&&null!==e){var a="",s=[],o=null;return t&&t[0]&&(a=t[0]),i("Array",e)?s=e:(o=e._keys||Object.keys(e),o.forEach(function(t){"_keys"===t||Object.hasOwnProperty.call(e,t)&&s.push(e[t])})),s.join(a)}},default:function(e,t){if(void 0!==t&&1<t.length)throw new a.Error("default filter expects one argument");return void 0===e||null===e||""===e?void 0===t?"":t[0]:e},json_encode:function(e){if(void 0===e||null===e)return"null";if("object"===(0,n["default"])(e)&&i("Array",e)){var t=[];return e.forEach(function(e){t.push(a.filters.json_encode(e))}),"["+t.join(",")+"]"}if("object"===(0,n["default"])(e)&&i("Date",e))return"\""+e.toISOString()+"\"";if("object"===(0,n["default"])(e)){var s=e._keys||Object.keys(e),o=[];return s.forEach(function(t){o.push(JSON.stringify(t)+":"+a.filters.json_encode(e[t]))}),"{"+o.join(",")+"}"}return JSON.stringify(e)},merge:function(e,t){var s=[],o=0,r=[];if(i("Array",e)?t.forEach(function(e){i("Array",e)||(s={})}):s={},i("Array",s)||(s._keys=[]),i("Array",e)?e.forEach(function(e){s._keys&&s._keys.push(o),s[o]=e,o++}):(r=e._keys||Object.keys(e),r.forEach(function(t){s[t]=e[t],s._keys.push(t);var a=parseInt(t,10);!isNaN(a)&&a>=o&&(o=a+1)})),t.forEach(function(e){i("Array",e)?e.forEach(function(e){s._keys&&s._keys.push(o),s[o]=e,o++}):(r=e._keys||Object.keys(e),r.forEach(function(t){s[t]||s._keys.push(t),s[t]=e[t];var a=parseInt(t,10);!isNaN(a)&&a>=o&&(o=a+1)}))}),0===t.length)throw new a.Error("Filter merge expects at least one parameter");return s},date:function(e,t){var i=a.functions.date(e),s=t&&!!t.length?t[0]:"F j, Y H:i";return a.lib.date(s.replace(/\\\\/g,"\\"),i)},date_modify:function(e,t){if(void 0!==e&&null!==e){if(void 0===t||1!==t.length)throw new a.Error("date_modify filter expects 1 argument");var i=t[0],s;return a.lib.is("Date",e)&&(s=a.lib.strtotime(i,e.getTime()/1e3)),a.lib.is("String",e)&&(s=a.lib.strtotime(i,a.lib.strtotime(e))),a.lib.is("Number",e)&&(s=a.lib.strtotime(i,e)),new Date(1e3*s)}},replace:function(e,t){if(void 0!==e&&null!==e){var i=t[0],s;for(s in i)Object.hasOwnProperty.call(i,s)&&"_keys"!==s&&(e=a.lib.replaceAll(e,s,i[s]));return e}},format:function(e,t){return void 0===e||null===e?void 0:a.lib.vsprintf(e,t)},striptags:function(e,t){return void 0===e||null===e?void 0:a.lib.stripTags(e,t)},escape:function(e,t){if(void 0!==e&&null!==e&&""!==e){var s="html";if(t&&!!t.length&&!0!==t[0]&&(s=t[0]),"html"===s){var o=e.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");return new a.Markup(o,"html")}if("js"===s){for(var r=e.toString(),n="",p=0;p<r.length;p++)if(r[p].match(/^[a-zA-Z0-9,._]$/))n+=r[p];else{var i=r.charAt(p),l=r.charCodeAt(p),c={"\\":"\\\\","/":"\\/","":"\\b","":"\\f","\n":"\\n","\r":"\\r","	":"\\t"};n+=c[i]?c[i]:a.lib.sprintf("\\u%04s",l.toString(16).toUpperCase())}return new a.Markup(n,"js")}if("css"===s){for(var d=e.toString(),y="",g=0;g<d.length;g++)if(d[g].match(/^[a-zA-Z0-9]$/))y+=d[g];else{var u=d.charCodeAt(g);y+="\\"+u.toString(16).toUpperCase()+" "}return new a.Markup(y,"css")}if("url"===s){var m=a.filters.url_encode(e);return new a.Markup(m,"url")}if("html_attr"===s){for(var h=e.toString(),v="",f=0;f<h.length;f++)if(h[f].match(/^[a-zA-Z0-9,.\-_]$/))v+=h[f];else if(h[f].match(/^[&<>"]$/))v+=h[f].replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;");else{var b=h.charCodeAt(f);v+=31>=b&&9!==b&&10!==b&&13!==b?"&#xFFFD;":128>b?a.lib.sprintf("&#x%02s;",b.toString(16).toUpperCase()):a.lib.sprintf("&#x%04s;",b.toString(16).toUpperCase())}return new a.Markup(v,"html_attr")}throw new a.Error("escape strategy unsupported")}},e:function(e,t){return a.filters.escape(e,t)},nl2br:function(e){if(void 0!==e&&null!==e&&""!==e){var t="BACKSLASH_n_replace",i="<br />"+t;return e=a.filters.escape(e).replace(/\r\n/g,i).replace(/\r/g,i).replace(/\n/g,i),e=a.lib.replaceAll(e,t,"\n"),new a.Markup(e)}},number_format:function(t,a){var i=t,r=a&&a[0]?a[0]:void 0,l=a&&void 0!==a[1]?a[1]:".",c=a&&void 0!==a[2]?a[2]:",";i=(i+"").replace(/[^0-9+\-Ee.]/g,"");var d=isFinite(+i)?+i:0,n=isFinite(+r)?p(r):0,y="";return y=(n?function(t,a){var i=e(10,a);return o(t*i)/i+""}(d,n):o(d)+"").split("."),3<y[0].length&&(y[0]=y[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,c)),(y[1]||"").length<n&&(y[1]=y[1]||"",y[1]+=Array(n-y[1].length+1).join("0")),y.join(l)},trim:function(e,a){if(void 0!==e&&null!==e){var s=e+"",o;o=a&&a[0]?a[0]+"":" \n\r\t\f\x0B\xA0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u2028\u2029\u3000";for(var r=0;r<s.length;r++)if(!o.includes(s.charAt(r))){s=s.slice(t(0,r));break}for(var i=s.length-1;0<=i;i--)if(!o.includes(s.charAt(i))){s=s.slice(0,t(0,i+1));break}return o.includes(s.charAt(0))?"":s}},truncate:function(e,t){var a=30,i=!1,s="...";if(e+="",t&&(t[0]&&(a=t[0]),t[1]&&(i=t[1]),t[2]&&(s=t[2])),e.length>a){if(i&&(a=e.indexOf(" ",a),-1===a))return e;e=e.slice(0,a)+s}return e},slice:function(e,s){if(void 0!==e&&null!==e){if(void 0===s||0===s.length)throw new a.Error("slice filter expects at least 1 argument");var o=s[0]||0,r=1<s.length?s[1]:e.length,n=0<=o?o:t(e.length+o,0);if(a.lib.is("Array",e)){for(var p=[],l=n;l<n+r&&l<e.length;l++)p.push(e[l]);return p}if(a.lib.is("String",e))return e.slice(n,n+r);throw new a.Error("slice filter expects value to be an array or string")}},abs:function(e){return void 0===e||null===e?void 0:p(e)},first:function(e){if(i("Array",e))return e[0];if(i("Object",e)){if("_keys"in e)return e[e._keys[0]];}else if("string"==typeof e)return e.slice(0,1)},split:function(e,t){if(void 0!==e&&null!==e){if(void 0===t||0===t.length||2<t.length)throw new a.Error("split filter expects 1 or 2 argument");if(a.lib.is("String",e)){var s=t[0],o=t[1],r=e.split(s);if(void 0===o)return r;if(0>o)return e.split(s,r.length+o);var n=[];if(""===s)for(;0<r.length;){for(var p="",l=0;l<o&&0<r.length;l++)p+=r.shift();n.push(p)}else{for(var i=0;i<o-1&&0<r.length;i++)n.push(r.shift());0<r.length&&n.push(r.join(s))}return n}throw new a.Error("split filter expects value to be a string")}},last:function(e){if(a.lib.is("Object",e)){var t;return t=void 0===e._keys?Object.keys(e):e._keys,e[t[t.length-1]]}return a.lib.is("Number",e)?e.toString().slice(-1):e[e.length-1]},raw:function(e){return new a.Markup(e||"")},batch:function(e,t){var i=t.shift(),s=t.shift(),o,r;if(!a.lib.is("Array",e))throw new a.Error("batch filter expects items to be an array");if(!a.lib.is("Number",i))throw new a.Error("batch filter expects size to be a number");i=Math.ceil(i);var n=a.lib.chunkArray(e,i);if(s&&0!=e.length%i){for(o=n.pop(),r=i-o.length;r--;)o.push(s);n.push(o)}return n},round:function(t,i){i=i||[];var s=0<i.length?i[0]:0,o=1<i.length?i[1]:"common";if(t=parseFloat(t),s&&!a.lib.is("Number",s))throw new a.Error("round filter expects precision to be a number");if("common"===o)return a.lib.round(t,s);if(!a.lib.is("Function",Math[o]))throw new a.Error("round filter expects method to be 'floor', 'ceil', or 'common'");return Math[o](t*e(10,s))/e(10,s)},spaceless:function(e){return e.replace(/>\s+</g,"><").trim()}},a.filter=function(e,t,i){var s=this;if(!a.filters[e])throw new a.Error("Unable to find filter "+e);return a.filters[e].call(s,t,i)},a.filter.extend=function(e,t){a.filters[e]=t},a}},function(e,a,i){"use strict";var o=i(0),n=o(i(1));e.exports=function(a){return a.functions={range:function(e,t,a){var i=[],o=a||1,r=!1,n,p;isNaN(e)||isNaN(t)?isNaN(e)&&isNaN(t)?(r=!0,n=e.charCodeAt(0),p=t.charCodeAt(0)):(n=isNaN(e)?0:e,p=isNaN(t)?0:t):(n=parseInt(e,10),p=parseInt(t,10));var l=!(n>p);if(l)for(;n<=p;)i.push(r?s(n):n),n+=o;else for(;n>=p;)i.push(r?s(n):n),n-=o;return i},cycle:function(e,t){var a=t%e.length;return e[a]},dump:function(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];var i=[].concat(t),s=this,o="\n",r=0,p="",l=function(e){for(var t="";0<e;)e--,t+="  ";return t},c=function(e){p+=l(r),"object"===(0,n["default"])(e)?d(e):"function"==typeof e?p+="function()"+o:"string"==typeof e?p+="string("+e.length+") \""+e+"\""+o:"number"==typeof e?p+="number("+e+")"+o:"boolean"==typeof e&&(p+="bool("+e+")"+o)},d=function(e){if(null===e)p+="NULL"+o;else if(void 0===e)p+="undefined"+o;else if("object"===(0,n["default"])(e)){for(var t in p+=l(r)+(0,n["default"])(e),r++,p+="("+function(e){var t=0,a;for(a in e)Object.hasOwnProperty.call(e,a)&&t++;return t}(e)+") {"+o,e)Object.hasOwnProperty.call(e,t)&&(p+=l(r)+"["+t+"]=> "+o,c(e[t]));r--,p+=l(r)+"}"+o}else c(e)};return 0===i.length&&i.push(s.context),i.forEach(function(e){d(e)}),p},date:function(e){var t;if(void 0===e||null===e||""===e)t=new Date;else if(a.lib.is("Date",e))t=e;else if(a.lib.is("String",e))t=e.match(/^\d+$/)?new Date(1e3*e):new Date(1e3*a.lib.strtotime(e));else if(a.lib.is("Number",e))t=new Date(1e3*e);else throw new a.Error("Unable to parse date "+e);return t},block:function(e){var t=this,a=t.getBlock(e);if(void 0!==a)return a.render(t,t.context)},parent:function(){var e=this;return e.getBlock(e.getNestingStackToken(a.logic.type.block).blockName,!0).render(e,e.context)},attribute:function(e,t,i){return a.lib.is("Object",e)&&Object.hasOwnProperty.call(e,t)?"function"==typeof e[t]?e[t].apply(void 0,i):e[t]:e?e[t]||void 0:void 0},max:function(e){if(a.lib.is("Object",e))return delete e._keys,a.lib.max(e);for(var t=arguments.length,i=Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return Reflect.apply(a.lib.max,null,[e].concat(i))},min:function(e){if(a.lib.is("Object",e))return delete e._keys,a.lib.min(e);for(var t=arguments.length,i=Array(1<t?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];return Reflect.apply(a.lib.min,null,[e].concat(i))},template_from_string:function(e){var t=this;return void 0===e&&(e=""),a.Templates.parsers.twig({options:t.template.options,data:e})},random:function(e){function i(e){var a=r(Math.random()*s),i=Math.min.call(null,0,e),o=t.call(null,0,e);return i+r((o-i+1)*a/s)}var s=2147483648;if(a.lib.is("Number",e))return i(e);if(a.lib.is("String",e))return e.charAt(i(e.length-1));if(a.lib.is("Array",e))return e[i(e.length-1)];if(a.lib.is("Object",e)){var o=Object.keys(e);return e[o[i(o.length-1)]]}return i(s-1)},source:function(t,i){var s=!1,o="undefined"!=typeof e.exports&&"undefined"==typeof window,r,n;n=o?"fs":"ajax";var p={id:t,path:t,method:n,parser:"source",async:!1,fetchTemplateSource:!0};"undefined"==typeof i&&(i=!1);try{r=a.Templates.loadRemote(t,p),"undefined"==typeof r||null===r?r="":s=!0}catch(e){a.log.debug("Twig.functions.source: ","Problem loading template  ",e)}return s||i?r:"Template \"{name}\" is not defined.".replace("{name}",t)}},a._function=function(e,t,i){if(!a.functions[e])throw new a.Error("Unable to find function "+e);return a.functions[e](t,i)},a._function.extend=function(e,t){a.functions[e]=t},a}},function(e,t,a){"use strict";e.exports=function(e){return e.lib={},e.lib.sprintf=a(3),e.lib.vsprintf=a(18),e.lib.round=a(19),e.lib.max=a(20),e.lib.min=a(21),e.lib.stripTags=a(22),e.lib.strtotime=a(24),e.lib.date=a(25),e.lib.boolval=a(26),e.lib.is=function(e,t){return"undefined"!=typeof t&&null!==t&&("Array"===e?Array.isArray(t):"Date"===e?t instanceof Date:"String"===e?"string"==typeof t||t instanceof String:"Number"===e?"number"==typeof t||t instanceof Number:"Function"===e?"function"==typeof t:"Object"==e&&t instanceof Object)},e.lib.replaceAll=function(e,t,a){var i=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(i,"g"),a)},e.lib.chunkArray=function(e,t){var a=[],i=0,s=e.length;if(1>t||!Array.isArray(e))return[];for(;i<s;)a.push(e.slice(i,i+=t));return a},e}},function(e,t,a){"use strict";e.exports=function(e,t){var i=a(3);return i.apply(this,[e].concat(t))}},function(t){"use strict";t.exports=function(t,a,i){var s,n,p,l;return a|=0,s=e(10,a),t*=s,l=0<t|-(0>t),p=t%1==.5*l,n=r(t),(p&&(t="PHP_ROUND_HALF_DOWN"===i?n+(0>l):"PHP_ROUND_HALF_EVEN"===i?n+n%2*l:"PHP_ROUND_HALF_ODD"===i?n+!(n%2):n+(0<l)),(p?t:o(t))/s)}},function(e){"use strict";var t="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.exports=function(){var e=0,a=0,i=arguments,s=i.length,o=function(e){if("[object Array]"===Object.prototype.toString.call(e))return e;var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t},r=function e(a,s){var r=0,i=0,n=0,p=0,l=0;if(a===s)return 0;if("object"===("undefined"==typeof a?"undefined":t(a))){if("object"===("undefined"==typeof s?"undefined":t(s))){if(a=o(a),s=o(s),l=a.length,p=s.length,p>l)return 1;if(p<l)return-1;for(r=0,i=l;r<i;++r){if(n=e(a[r],s[r]),1===n)return 1;if(-1===n)return-1}return 0}return-1}return"object"===("undefined"==typeof s?"undefined":t(s))?1:isNaN(s)&&!isNaN(a)?0===a?0:0>a?1:-1:isNaN(a)&&!isNaN(s)?0===s?0:0<s?1:-1:s===a?0:s>a?1:-1},n,p;if(0===s)throw new Error("At least one value should be passed to max()");else if(1===s){if("object"===t(i[0]))n=o(i[0]);else throw new Error("Wrong parameter count for max()");if(0===n.length)throw new Error("Array must contain at least one element for max()")}else n=i;for(p=n[0],e=1,a=n.length;e<a;++e)1===r(p,n[e])&&(p=n[e]);return p}},function(e){"use strict";var t="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.exports=function(){var e=0,a=0,i=arguments,s=i.length,o=function(e){if("[object Array]"===Object.prototype.toString.call(e))return e;var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t},r=function e(a,s){var r=0,i=0,n=0,p=0,l=0;if(a===s)return 0;if("object"===("undefined"==typeof a?"undefined":t(a))){if("object"===("undefined"==typeof s?"undefined":t(s))){if(a=o(a),s=o(s),l=a.length,p=s.length,p>l)return 1;if(p<l)return-1;for(r=0,i=l;r<i;++r){if(n=e(a[r],s[r]),1===n)return 1;if(-1===n)return-1}return 0}return-1}return"object"===("undefined"==typeof s?"undefined":t(s))?1:isNaN(s)&&!isNaN(a)?0===a?0:0>a?1:-1:isNaN(a)&&!isNaN(s)?0===s?0:0<s?1:-1:s===a?0:s>a?1:-1},n,p;if(0===s)throw new Error("At least one value should be passed to min()");else if(1===s){if("object"===t(i[0]))n=o(i[0]);else throw new Error("Wrong parameter count for min()");if(0===n.length)throw new Error("Array must contain at least one element for min()")}else n=i;for(p=n[0],e=1,a=n.length;e<a;++e)-1===r(p,n[e])&&(p=n[e]);return p}},function(e,t,a){"use strict";e.exports=function(e,t){var i=a(23);t=(((t||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var s=/<\/?([a-z0-9]*)\b[^>]*>?/gi,o=/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,r=i(e);for(r="<"===r.substring(r.length-1)?r.substring(0,r.length-1):r;;){var n=r;if(r=n.replace(o,"").replace(s,function(e,a){return-1<t.indexOf("<"+a.toLowerCase()+">")?e:""}),n===r)return r}}},function(e){"use strict";var t="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.exports=function(e){var a="undefined"==typeof e?"undefined":t(e);switch(a){case"boolean":return e?"1":"";case"string":return e;case"number":return isNaN(e)?"NAN":isFinite(e)?e+"":(0>e?"-":"")+"INF";case"undefined":return"";case"object":return Array.isArray(e)?"Array":null===e?"":"Object";case"function":default:throw new Error("Unsupported value type");}}},function(t){"use strict";function a(e,t){return t=t&&t.toLowerCase(),"a"===t?e+=12===e?-12:0:"p"===t?e+=12===e?0:12:void 0,e}function i(e){var t=+e;return 4>e.length&&100>t&&(t+=70>t?2e3:1900),t}function s(e){return{jan:0,january:0,i:0,feb:1,february:1,ii:1,mar:2,march:2,iii:2,apr:3,april:3,iv:3,may:4,v:4,jun:5,june:5,vi:5,jul:6,july:6,vii:6,aug:7,august:7,viii:7,sep:8,sept:8,september:8,ix:8,oct:9,october:9,x:9,nov:10,november:10,xi:10,dec:11,december:11,xii:11}[e.toLowerCase()]}function o(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;return{mon:1,monday:1,tue:2,tuesday:2,wed:3,wednesday:3,thu:4,thursday:4,fri:5,friday:5,sat:6,saturday:6,sun:0,sunday:0}[e.toLowerCase()]||t}function n(e){var t=e.toLowerCase();return{amount:{last:-1,previous:-1,this:0,first:1,next:1,second:2,third:3,fourth:4,fifth:5,sixth:6,seventh:7,eight:8,eighth:8,ninth:9,tenth:10,eleventh:11,twelfth:12}[t],behavior:{this:1}[t]||0}}function l(e,t){var a=/(?:GMT)?([+-])(\d+)(:?)(\d{0,2})/i;if(e=e&&e.match(a),!e)return t;var i="-"===e[1]?1:-1,s=+e[2],o=+e[4];return e[4]||e[3]||(o=r(s%100),s=r(s/100)),i*(60*s+o)}var c={yesterday:{regex:/^yesterday/i,name:"yesterday",callback:function(){return this.rd-=1,this.resetTime()}},now:{regex:/^now/i,name:"now"},noon:{regex:/^noon/i,name:"noon",callback:function(){return this.resetTime()&&this.time(12,0,0,0)}},midnightOrToday:{regex:/^(midnight|today)/i,name:"midnight | today",callback:function(){return this.resetTime()}},tomorrow:{regex:/^tomorrow/i,name:"tomorrow",callback:function(){return this.rd+=1,this.resetTime()}},timestamp:{regex:/^@(-?\d+)/i,name:"timestamp",callback:function(e,t){return this.rs+=+t,this.y=1970,this.m=0,this.d=1,this.dates=0,this.resetTime()&&this.zone(0)}},firstOrLastDay:{regex:/^(first|last) day of/i,name:"firstdayof | lastdayof",callback:function(e,t){this.firstOrLastDayOfMonth="first"===t.toLowerCase()?1:-1}},backOrFrontOf:{regex:/^(back|front) of (2[0-4]|[01]?[0-9])[ \t]*(?:([ap])\.?m\.?([\t ]|$))?/i,name:"backof | frontof",callback:function(e,t,i,s){var o="back"===t.toLowerCase(),r=+i,n=15;return o||(r-=1,n=45),r=a(r,s),this.resetTime()&&this.time(r,n,0,0)}},weekdayOf:{regex:/^(first|second|third|fourth|fifth|sixth|seventh|eighth?|ninth|tenth|eleventh|twelfth|next|last|previous|this)[ \t]+(sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat)[ \t]+of/i,name:"weekdayof"},mssqltime:{regex:/^(0?[1-9]|1[0-2]):([0-5][0-9]):(60|[0-5][0-9])[:.]([0-9]+)(?:([ap])\.?m\.?([\t ]|$))/i,name:"mssqltime",callback:function(e,t,i,s,o,r){return this.time(a(+t,r),+i,+s,+o.substr(0,3))}},timeLong12:{regex:/^(0?[1-9]|1[0-2])[:.]([0-5]?[0-9])[:.](60|[0-5][0-9])[ \t]*(?:([ap])\.?m\.?([\t ]|$))/i,name:"timelong12",callback:function(e,t,i,s,o){return this.time(a(+t,o),+i,+s,0)}},timeShort12:{regex:/^(0?[1-9]|1[0-2])[:.]([0-5][0-9])[ \t]*(?:([ap])\.?m\.?([\t ]|$))/i,name:"timeshort12",callback:function(e,t,i,s){return this.time(a(+t,s),+i,0,0)}},timeTiny12:{regex:/^(0?[1-9]|1[0-2])[ \t]*(?:([ap])\.?m\.?([\t ]|$))/i,name:"timetiny12",callback:function(e,t,i){return this.time(a(+t,i),0,0,0)}},soap:{regex:/^([0-9]{4})-(0[0-9]|1[0-2])-(0[0-9]|[1-2][0-9]|3[01])T([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])(?:\.([0-9]+))((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)?/i,name:"soap",callback:function(e,t,a,i,s,o,r,n,p){return this.ymd(+t,a-1,+i)&&this.time(+s,+o,+r,+n.substr(0,3))&&this.zone(l(p))}},wddx:{regex:/^([0-9]{4})-(1[0-2]|0?[0-9])-(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)T(2[0-4]|[01]?[0-9]):([0-5]?[0-9]):(60|[0-5]?[0-9])/,name:"wddx",callback:function(e,t,a,i,s,o,r){return this.ymd(+t,a-1,+i)&&this.time(+s,+o,+r,0)}},exif:{regex:/^([0-9]{4}):(0[0-9]|1[0-2]):(0[0-9]|[1-2][0-9]|3[01]) ([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])/i,name:"exif",callback:function(e,t,a,i,s,o,r){return this.ymd(+t,a-1,+i)&&this.time(+s,+o,+r,0)}},xmlRpc:{regex:/^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])T(2[0-4]|[01]?[0-9]):([0-5][0-9]):(60|[0-5][0-9])/,name:"xmlrpc",callback:function(e,t,a,i,s,o,r){return this.ymd(+t,a-1,+i)&&this.time(+s,+o,+r,0)}},xmlRpcNoColon:{regex:/^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])[Tt](2[0-4]|[01]?[0-9])([0-5][0-9])(60|[0-5][0-9])/,name:"xmlrpcnocolon",callback:function(e,t,a,i,s,o,r){return this.ymd(+t,a-1,+i)&&this.time(+s,+o,+r,0)}},clf:{regex:/^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)\/(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)\/([0-9]{4}):([01][0-9]|2[0-4]):([0-5][0-9]):(60|[0-5][0-9])[ \t]+((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)/i,name:"clf",callback:function(e,t,a,i,o,r,n,p){return this.ymd(+i,s(a),+t)&&this.time(+o,+r,+n,0)&&this.zone(l(p))}},iso8601long:{regex:/^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])[:.](60|[0-5]?[0-9])(?:\.([0-9]+))/i,name:"iso8601long",callback:function(e,t,a,i,s){return this.time(+t,+a,+i,+s.substr(0,3))}},dateTextual:{regex:/^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\t ]+([0-9]{1,4})/i,name:"datetextual",callback:function(e,t,a,o){return this.ymd(i(o),s(t),+a)}},pointedDate4:{regex:/^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[.\t-](1[0-2]|0?[0-9])[.-]([0-9]{4})/,name:"pointeddate4",callback:function(e,t,a,i){return this.ymd(+i,a-1,+t)}},pointedDate2:{regex:/^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[.\t](1[0-2]|0?[0-9])\.([0-9]{2})/,name:"pointeddate2",callback:function(e,t,a,s){return this.ymd(i(s),a-1,+t)}},timeLong24:{regex:/^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])[:.](60|[0-5]?[0-9])/,name:"timelong24",callback:function(e,t,a,i){return this.time(+t,+a,+i,0)}},dateNoColon:{regex:/^([0-9]{4})(0[0-9]|1[0-2])(0[0-9]|[1-2][0-9]|3[01])/,name:"datenocolon",callback:function(e,t,a,i){return this.ymd(+t,a-1,+i)}},pgydotd:{regex:/^([0-9]{4})\.?(00[1-9]|0[1-9][0-9]|[12][0-9][0-9]|3[0-5][0-9]|36[0-6])/,name:"pgydotd",callback:function(e,t,a){return this.ymd(+t,0,+a)}},timeShort24:{regex:/^t?(2[0-4]|[01]?[0-9])[:.]([0-5]?[0-9])/i,name:"timeshort24",callback:function(e,t,a){return this.time(+t,+a,0,0)}},iso8601noColon:{regex:/^t?([01][0-9]|2[0-4])([0-5][0-9])(60|[0-5][0-9])/i,name:"iso8601nocolon",callback:function(e,t,a,i){return this.time(+t,+a,+i,0)}},iso8601dateSlash:{regex:/^([0-9]{4})\/(0[0-9]|1[0-2])\/(0[0-9]|[1-2][0-9]|3[01])\//,name:"iso8601dateslash",callback:function(e,t,a,i){return this.ymd(+t,a-1,+i)}},dateSlash:{regex:/^([0-9]{4})\/(1[0-2]|0?[0-9])\/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)/,name:"dateslash",callback:function(e,t,a,i){return this.ymd(+t,a-1,+i)}},american:{regex:/^(1[0-2]|0?[0-9])\/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)\/([0-9]{1,4})/,name:"american",callback:function(e,t,a,s){return this.ymd(i(s),t-1,+a)}},americanShort:{regex:/^(1[0-2]|0?[0-9])\/(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)/,name:"americanshort",callback:function(e,t,a){return this.ymd(this.y,t-1,+a)}},gnuDateShortOrIso8601date2:{regex:/^([0-9]{1,4})-(1[0-2]|0?[0-9])-(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)/,name:"gnudateshort | iso8601date2",callback:function(e,t,a,s){return this.ymd(i(t),a-1,+s)}},iso8601date4:{regex:/^([+-]?[0-9]{4})-(0[0-9]|1[0-2])-(0[0-9]|[1-2][0-9]|3[01])/,name:"iso8601date4",callback:function(e,t,a,i){return this.ymd(+t,a-1,+i)}},gnuNoColon:{regex:/^t([01][0-9]|2[0-4])([0-5][0-9])/i,name:"gnunocolon",callback:function(e,t,a){return this.time(+t,+a,0,this.f)}},gnuDateShorter:{regex:/^([0-9]{4})-(1[0-2]|0?[0-9])/,name:"gnudateshorter",callback:function(e,t,a){return this.ymd(+t,a-1,1)}},pgTextReverse:{regex:/^(\d{3,4}|[4-9]\d|3[2-9])-(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)-(0[0-9]|[1-2][0-9]|3[01])/i,name:"pgtextreverse",callback:function(e,t,a,o){return this.ymd(i(t),s(a),+o)}},dateFull:{regex:/^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[ \t.-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ \t.-]*([0-9]{1,4})/i,name:"datefull",callback:function(e,t,a,o){return this.ymd(i(o),s(a),+t)}},dateNoDay:{regex:/^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\t-]*([0-9]{4})/i,name:"datenoday",callback:function(e,t,a){return this.ymd(+a,s(t),1)}},dateNoDayRev:{regex:/^([0-9]{4})[ .\t-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})/i,name:"datenodayrev",callback:function(e,t,a){return this.ymd(+t,s(a),1)}},pgTextShort:{regex:/^(jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)-(0[0-9]|[1-2][0-9]|3[01])-([0-9]{1,4})/i,name:"pgtextshort",callback:function(e,t,a,o){return this.ymd(i(o),s(t),+a)}},dateNoYear:{regex:/^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})[ .\t-]*(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[,.stndrh\t ]*/i,name:"datenoyear",callback:function(e,t,a){return this.ymd(this.y,s(t),+a)}},dateNoYearRev:{regex:/^(?:(3[01]|[0-2]?[0-9])(?:st|nd|rd|th)?)[ .\t-]*(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec|i[vx]|vi{0,3}|xi{0,2}|i{1,3})/i,name:"datenoyearrev",callback:function(e,t,a){return this.ymd(this.y,s(a),+t)}},isoWeekDay:{regex:/^([0-9]{4})-?W(0[1-9]|[1-4][0-9]|5[0-3])(?:-?([0-7]))?/,name:"isoweekday | isoweek",callback:function(e,t,a,i){if(i=i?+i:1,!this.ymd(+t,0,1))return!1;var s=new Date(this.y,this.m,this.d).getDay();s=0-(4<s?s-7:s),this.rd+=s+7*(a-1)+i}},relativeText:{regex:/^(first|second|third|fourth|fifth|sixth|seventh|eighth?|ninth|tenth|eleventh|twelfth|next|last|previous|this)[ \t]+((?:second|sec|minute|min|hour|day|fortnight|forthnight|month|year)s?|weeks|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?)/i,name:"relativetext",callback:function(e,t,a){var i=n(t),s=i.amount,r=i.behavior;switch(a.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=s;break;case"min":case"mins":case"minute":case"minutes":this.ri+=s;break;case"hour":case"hours":this.rh+=s;break;case"day":case"days":this.rd+=s;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=14*s;break;case"week":case"weeks":this.rd+=7*s;break;case"month":case"months":this.rm+=s;break;case"year":case"years":this.ry+=s;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=o(a,7),this.weekdayBehavior=1,this.rd+=7*(0<s?s-1:s);break;case"weekday":case"weekdays":}}},relative:{regex:/^([+-]*)[ \t]*(\d+)[ \t]*((?:second|sec|minute|min|hour|day|fortnight|forthnight|month|year)s?|weeks|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?|week)/i,name:"relative",callback:function(t,a,i,s){var r=a.replace(/[^-]/g,"").length,n=+i*e(-1,r);switch(s.toLowerCase()){case"sec":case"secs":case"second":case"seconds":this.rs+=n;break;case"min":case"mins":case"minute":case"minutes":this.ri+=n;break;case"hour":case"hours":this.rh+=n;break;case"day":case"days":this.rd+=n;break;case"fortnight":case"fortnights":case"forthnight":case"forthnights":this.rd+=14*n;break;case"week":case"weeks":this.rd+=7*n;break;case"month":case"months":this.rm+=n;break;case"year":case"years":this.ry+=n;break;case"mon":case"monday":case"tue":case"tuesday":case"wed":case"wednesday":case"thu":case"thursday":case"fri":case"friday":case"sat":case"saturday":case"sun":case"sunday":this.resetTime(),this.weekday=o(s,7),this.weekdayBehavior=1,this.rd+=7*(0<n?n-1:n);break;case"weekday":case"weekdays":}}},dayText:{regex:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday|sun|mon|tue|wed|thu|fri|sat|weekdays?)/i,name:"daytext",callback:function(e,t){this.resetTime(),this.weekday=o(t,0),2!==this.weekdayBehavior&&(this.weekdayBehavior=1)}},relativeTextWeek:{regex:/^(next|last|previous|this)[ \t]+week/i,name:"relativetextweek",callback:function(e,t){switch(this.weekdayBehavior=2,t.toLowerCase()){case"this":this.rd+=0;break;case"next":this.rd+=7;break;case"last":case"previous":this.rd-=7;}isNaN(this.weekday)&&(this.weekday=1)}},monthFullOrMonthAbbr:{regex:/^(january|february|march|april|may|june|july|august|september|october|november|december|jan|feb|mar|apr|may|jun|jul|aug|sept?|oct|nov|dec)/i,name:"monthfull | monthabbr",callback:function(e,t){return this.ymd(this.y,s(t),this.d)}},tzCorrection:{regex:/^((?:GMT)?([+-])(2[0-4]|[01]?[0-9]):?([0-5]?[0-9])?)/i,name:"tzcorrection",callback:function(e){return this.zone(l(e))}},ago:{regex:/^ago/i,name:"ago",callback:function(){this.ry=-this.ry,this.rm=-this.rm,this.rd=-this.rd,this.rh=-this.rh,this.ri=-this.ri,this.rs=-this.rs,this.rf=-this.rf}},gnuNoColon2:{regex:/^([01][0-9]|2[0-4])([0-5][0-9])/i,name:"gnunocolon",callback:function(e,t,a){return this.time(+t,+a,0,this.f)}},year4:{regex:/^([0-9]{4})/,name:"year4",callback:function(e,t){return this.y=+t,!0}},whitespace:{regex:/^[ .,\t]+/,name:"whitespace"},any:{regex:/^[\s\S]+/,name:"any",callback:function(){return!1}}},d={y:NaN,m:NaN,d:NaN,h:NaN,i:NaN,s:NaN,f:NaN,ry:0,rm:0,rd:0,rh:0,ri:0,rs:0,rf:0,weekday:NaN,weekdayBehavior:0,firstOrLastDayOfMonth:0,z:NaN,dates:0,times:0,zones:0,ymd:function(e,t,a){return!(0<this.dates)&&(this.dates++,this.y=e,this.m=t,this.d=a,!0)},time:function(e,t,a,i){return!(0<this.times)&&(this.times++,this.h=e,this.i=t,this.s=a,this.f=i,!0)},resetTime:function(){return this.h=0,this.i=0,this.s=0,this.f=0,this.times=0,!0},zone:function(e){return!!(1>=this.zones)&&(this.zones++,this.z=e,!0)},toDate:function(e){switch(this.dates&&!this.times&&(this.h=this.i=this.s=this.f=0),isNaN(this.y)&&(this.y=e.getFullYear()),isNaN(this.m)&&(this.m=e.getMonth()),isNaN(this.d)&&(this.d=e.getDate()),isNaN(this.h)&&(this.h=e.getHours()),isNaN(this.i)&&(this.i=e.getMinutes()),isNaN(this.s)&&(this.s=e.getSeconds()),isNaN(this.f)&&(this.f=e.getMilliseconds()),this.firstOrLastDayOfMonth){case 1:this.d=1;break;case-1:this.d=0,this.m+=1;}if(!isNaN(this.weekday)){var t=new Date(e.getTime());t.setFullYear(this.y,this.m,this.d),t.setHours(this.h,this.i,this.s,this.f);var a=t.getDay();if(2===this.weekdayBehavior)0===a&&0!==this.weekday&&(this.weekday=-6),0===this.weekday&&0!==a&&(this.weekday=7),this.d-=a,this.d+=this.weekday;else{var i=this.weekday-a;(0>this.rd&&0>i||0<=this.rd&&i<=-this.weekdayBehavior)&&(i+=7),0<=this.weekday?this.d+=i:this.d-=7-(p(this.weekday)-a),this.weekday=NaN}}this.y+=this.ry,this.m+=this.rm,this.d+=this.rd,this.h+=this.rh,this.i+=this.ri,this.s+=this.rs,this.f+=this.rf,this.ry=this.rm=this.rd=0,this.rh=this.ri=this.rs=this.rf=0;var s=new Date(e.getTime());switch(s.setFullYear(this.y,this.m,this.d),s.setHours(this.h,this.i,this.s,this.f),this.firstOrLastDayOfMonth){case 1:s.setDate(1);break;case-1:s.setMonth(s.getMonth()+1,0);}return isNaN(this.z)||s.getTimezoneOffset()===this.z||(s.setUTCFullYear(s.getFullYear(),s.getMonth(),s.getDate()),s.setUTCHours(s.getHours(),s.getMinutes()+this.z,s.getSeconds(),s.getMilliseconds())),s}};t.exports=function(e,t){null==t&&(t=r(Date.now()/1e3));for(var a=[c.yesterday,c.now,c.noon,c.midnightOrToday,c.tomorrow,c.timestamp,c.firstOrLastDay,c.backOrFrontOf,c.mssqltime,c.timeLong12,c.timeShort12,c.timeTiny12,c.soap,c.wddx,c.exif,c.xmlRpc,c.xmlRpcNoColon,c.clf,c.iso8601long,c.dateTextual,c.pointedDate4,c.pointedDate2,c.timeLong24,c.dateNoColon,c.pgydotd,c.timeShort24,c.iso8601noColon,c.iso8601dateSlash,c.dateSlash,c.american,c.americanShort,c.gnuDateShortOrIso8601date2,c.iso8601date4,c.gnuNoColon,c.gnuDateShorter,c.pgTextReverse,c.dateFull,c.dateNoDay,c.dateNoDayRev,c.pgTextShort,c.dateNoYear,c.dateNoYearRev,c.isoWeekDay,c.relativeText,c.relative,c.dayText,c.relativeTextWeek,c.monthFullOrMonthAbbr,c.tzCorrection,c.ago,c.gnuNoColon2,c.year4,c.whitespace,c.any],s=Object.create(d);e.length;)for(var o=0,i=a.length;o<i;o++){var n=a[o],p=e.match(n.regex);if(p){if(n.callback&&!1===n.callback.apply(s,p))return!1;e=e.substr(p[0].length);break}}return r(s.toDate(new Date(1e3*t))/1e3)}},function(e){"use strict";e.exports=function(e,t){var a=["Sun","Mon","Tues","Wednes","Thurs","Fri","Satur","January","February","March","April","May","June","July","August","September","October","November","December"],i=/\\?(.?)/gi,s=function(e,t){return y[e]?y[e]():t},n=function(e,t){for(e+="";e.length<t;)e="0"+e;return e},l,y;y={d:function(){return n(y.j(),2)},D:function(){return y.l().slice(0,3)},j:function(){return l.getDate()},l:function(){return a[y.w()]+"day"},N:function(){return y.w()||7},S:function(){var e=y.j(),t=e%10;return 3>=t&&1===parseInt(e%100/10,10)&&(t=0),["st","nd","rd"][t-1]||"th"},w:function(){return l.getDay()},z:function(){var e=new Date(y.Y(),y.n()-1,y.j()),t=new Date(y.Y(),0,1);return o((e-t)/864e5)},W:function(){var e=new Date(y.Y(),y.n()-1,y.j()-y.N()+3),t=new Date(e.getFullYear(),0,4);return n(1+o((e-t)/864e5/7),2)},F:function(){return a[6+y.n()]},m:function(){return n(y.n(),2)},M:function(){return y.F().slice(0,3)},n:function(){return l.getMonth()+1},t:function(){return new Date(y.Y(),y.n(),0).getDate()},L:function(){var e=y.Y();return 0==e%4&0!=e%100|0==e%400},o:function(){var e=y.n(),t=y.W(),a=y.Y();return a+(12===e&&9>t?1:1===e&&9<t?-1:0)},Y:function(){return l.getFullYear()},y:function(){return y.Y().toString().slice(-2)},a:function(){return 11<l.getHours()?"pm":"am"},A:function(){return y.a().toUpperCase()},B:function(){var e=3600*l.getUTCHours(),t=60*l.getUTCMinutes(),a=l.getUTCSeconds();return n(r((e+t+a+3600)/86.4)%1e3,3)},g:function(){return y.G()%12||12},G:function(){return l.getHours()},h:function(){return n(y.g(),2)},H:function(){return n(y.G(),2)},i:function(){return n(l.getMinutes(),2)},s:function(){return n(l.getSeconds(),2)},u:function(){return n(1e3*l.getMilliseconds(),6)},e:function(){throw new Error("Not supported (see source code of date() for timezone on how to add support)")},I:function(){var e=new Date(y.Y(),0),t=Date.UTC(y.Y(),0),a=new Date(y.Y(),6),i=Date.UTC(y.Y(),6);return e-t==a-i?0:1},O:function(){var e=l.getTimezoneOffset(),t=p(e);return(0<e?"-":"+")+n(100*r(t/60)+t%60,4)},P:function(){var e=y.O();return e.substr(0,3)+":"+e.substr(3,2)},T:function(){return"UTC"},Z:function(){return 60*-l.getTimezoneOffset()},c:function(){return"Y-m-d\\TH:i:sP".replace(i,s)},r:function(){return"D, d M Y H:i:s O".replace(i,s)},U:function(){return 0|l/1e3}};return function(e,t){return l=void 0===t?new Date:t instanceof Date?new Date(t):new Date(1e3*t),e.replace(i,s)}(e,t)}},function(e){"use strict";e.exports=function(e){return!1!==e&&0!==e&&0!==e&&""!==e&&"0"!==e&&!(Array.isArray(e)&&0===e.length)&&null!==e&&void 0!==e}},function(e){"use strict";e.exports=function(e){e.Templates.registerLoader("ajax",function(t,a,i,s){var o=a.precompiled,r=this.parsers[a.parser]||this.parser.twig,n;if("undefined"==typeof XMLHttpRequest)throw new e.Error("Unsupported platform: Unable to do ajax requests because there is no \"XMLHTTPRequest\" implementation");var p=new XMLHttpRequest;return p.onreadystatechange=function(){var l=null;4===p.readyState&&(200===p.status||window.cordova&&0===p.status?(e.log.debug("Got template ",p.responseText),l=!0===o?JSON.parse(p.responseText):p.responseText,a.url=t,a.data=l,n=r.call(this,a),"function"==typeof i&&i(n)):"function"==typeof s&&s(p))},p.open("GET",t,!!a.async),p.overrideMimeType("text/plain"),p.send(),!!a.async||n})}},function(e,t,a){"use strict";e.exports=function(e){var t,i;try{t=a(29),i=a(4)}catch(e){console.warn("Missing fs and path modules. "+e)}e.Templates.registerLoader("fs",function(a,s,o,r){var n=null,p=s.precompiled,l=this.parsers[s.parser]||this.parser.twig,c;if(!t||!i)throw new e.Error("Unsupported platform: Unable to load from file because there is no \"fs\" or \"path\" implementation");var d=function(e,t){return e?void("function"==typeof r&&r(e)):void(!0===p&&(t=JSON.parse(t)),s.data=t,s.path=s.path||a,c=l.call(this,s),"function"==typeof o&&o(c))};if(s.path=s.path||a,s.async)return t.stat(s.path,function(a,i){return a||!i.isFile()?void("function"==typeof r&&r(new e.Error("Unable to find template file "+s.path))):void t.readFile(s.path,"utf8",d)}),!0;try{if(!t.statSync(s.path).isFile())throw new e.Error("Unable to find template file "+s.path)}catch(t){throw new e.Error("Unable to find template file "+s.path+". "+t)}return n=t.readFileSync(s.path,"utf8"),d(void 0,n),c})}},function(e){e.exports=a(0)},function(e,t,a){"use strict";function s(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,i)}return a}function o(e){for(var t=1,a;t<arguments.length;t++)a=null==arguments[t]?{}:arguments[t],t%2?s(Object(a),!0).forEach(function(t){(0,r["default"])(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))});return e}var i=a(0),r=i(a(2));e.exports=function(e){for(e.logic={},e.logic.type={if_:"Twig.logic.type.if",endif:"Twig.logic.type.endif",for_:"Twig.logic.type.for",endfor:"Twig.logic.type.endfor",else_:"Twig.logic.type.else",elseif:"Twig.logic.type.elseif",set:"Twig.logic.type.set",setcapture:"Twig.logic.type.setcapture",endset:"Twig.logic.type.endset",filter:"Twig.logic.type.filter",endfilter:"Twig.logic.type.endfilter",apply:"Twig.logic.type.apply",endapply:"Twig.logic.type.endapply",do:"Twig.logic.type.do",shortblock:"Twig.logic.type.shortblock",block:"Twig.logic.type.block",endblock:"Twig.logic.type.endblock",extends_:"Twig.logic.type.extends",use:"Twig.logic.type.use",include:"Twig.logic.type.include",spaceless:"Twig.logic.type.spaceless",endspaceless:"Twig.logic.type.endspaceless",macro:"Twig.logic.type.macro",endmacro:"Twig.logic.type.endmacro",import_:"Twig.logic.type.import",from:"Twig.logic.type.from",embed:"Twig.logic.type.embed",endembed:"Twig.logic.type.endembed",with:"Twig.logic.type.with",endwith:"Twig.logic.type.endwith",deprecated:"Twig.logic.type.deprecated"},e.logic.definitions=[{type:e.logic.type.if_,regex:/^if\s?([\s\S]+)$/,next:[e.logic.type.else_,e.logic.type.elseif,e.logic.type.endif],open:!0,compile:function(t){var a=t.match[1];return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,delete t.match,t},parse:function(t,a,i){var s=this;return e.expression.parseAsync.call(s,t.stack,a).then(function(o){return i=!0,e.lib.boolval(o)?(i=!1,s.parseAsync(t.output,a)):""}).then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.elseif,regex:/^elseif\s?([^\s].*)$/,next:[e.logic.type.else_,e.logic.type.elseif,e.logic.type.endif],open:!1,compile:function(t){var a=t.match[1];return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,delete t.match,t},parse:function(t,a,i){var s=this;return e.expression.parseAsync.call(s,t.stack,a).then(function(o){return i&&e.lib.boolval(o)?(i=!1,s.parseAsync(t.output,a)):""}).then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.else_,regex:/^else$/,next:[e.logic.type.endif,e.logic.type.endfor],open:!1,parse:function(t,a,i){var s=e.Promise.resolve(""),o=this;return i&&(s=o.parseAsync(t.output,a)),s.then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.endif,regex:/^endif$/,next:[],open:!1},{type:e.logic.type.for_,regex:/^for\s+([a-zA-Z0-9_,\s]+)\s+in\s+([\S\s]+?)(?:\s+if\s+([^\s].*))?$/,next:[e.logic.type.else_,e.logic.type.endfor],open:!0,compile:function(t){var a=t.match[1],i=t.match[2],s=t.match[3],o=null;if(t.keyVar=null,t.valueVar=null,!a.includes(","))t.valueVar=a.trim();else if(o=a.split(","),2===o.length)t.keyVar=o[0].trim(),t.valueVar=o[1].trim();else throw new e.Error("Invalid expression in for loop: "+a);return t.expression=e.expression.compile.call(this,{type:e.expression.type.expression,value:i}).stack,s&&(t.conditional=e.expression.compile.call(this,{type:e.expression.type.expression,value:s}).stack),delete t.match,t},parse:function(t,a,i){var s=[],r=0,n=this,p=t.conditional,l=function(e,t){var i=void 0!==p;return{index:e+1,index0:e,revindex:i?void 0:t-e,revindex0:i?void 0:t-e-1,first:0===e,last:i?void 0:e===t-1,length:i?void 0:t,parent:a}},c=function(i,c){var y=o({},a);y[t.valueVar]=c,t.keyVar&&(y[t.keyVar]=i),y.loop=l(r,d);var g=void 0===p?e.Promise.resolve(!0):e.expression.parseAsync.call(n,p,y);return g.then(function(e){return e?n.parseAsync(t.output,y).then(function(e){s.push(e),r+=1}):void 0}).then(function(){delete y.loop,delete y[t.valueVar],delete y[t.keyVar],e.merge(a,y,!0)})},d,y;return e.expression.parseAsync.call(n,t.expression,a).then(function(t){return Array.isArray(t)?(d=t.length,e.async.forEach(t,function(e){var t=r;return c(t,e)})):e.lib.is("Object",t)?(y=void 0===t._keys?Object.keys(t):t._keys,d=y.length,e.async.forEach(y,function(e){return"_keys"===e?void 0:c(e,t[e])})):void 0}).then(function(){return i=0===s.length,{chain:i,context:a,output:e.output.call(n.template,s)}})}},{type:e.logic.type.endfor,regex:/^endfor$/,next:[],open:!1},{type:e.logic.type.set,regex:/^set\s+([a-zA-Z0-9_,\s]+)\s*=\s*([\s\S]+)$/,next:[],open:!0,compile:function(t){var a=t.match[1].trim(),i=t.match[2],s=e.expression.compile.call(this,{type:e.expression.type.expression,value:i}).stack;return t.key=a,t.expression=s,delete t.match,t},parse:function(t,a,i){var s=t.key,r=this;return e.expression.parseAsync.call(r,t.expression,a).then(function(e){return e===a&&(e=o({},e)),a[s]=e,{chain:i,context:a}})}},{type:e.logic.type.setcapture,regex:/^set\s+([a-zA-Z0-9_,\s]+)$/,next:[e.logic.type.endset],open:!0,compile:function(e){var t=e.match[1].trim();return e.key=t,delete e.match,e},parse:function(e,t,a){var i=this,s=e.key;return i.parseAsync(e.output,t).then(function(e){return i.context[s]=e,t[s]=e,{chain:a,context:t}})}},{type:e.logic.type.endset,regex:/^endset$/,next:[],open:!1},{type:e.logic.type.filter,regex:/^filter\s+(.+)$/,next:[e.logic.type.endfilter],open:!0,compile:function(t){var a="|"+t.match[1].trim();return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,delete t.match,t},parse:function(t,a,i){var s=this;return s.parseAsync(t.output,a).then(function(i){var o=[{type:e.expression.type.string,value:i}].concat(t.stack);return e.expression.parseAsync.call(s,o,a)}).then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.endfilter,regex:/^endfilter$/,next:[],open:!1},{type:e.logic.type.apply,regex:/^apply\s+(.+)$/,next:[e.logic.type.endapply],open:!0,compile:function(t){var a="|"+t.match[1].trim();return t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,delete t.match,t},parse:function(t,a,i){var s=this;return s.parseAsync(t.output,a).then(function(i){var o=[{type:e.expression.type.string,value:i}].concat(t.stack);return e.expression.parseAsync.call(s,o,a)}).then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.endapply,regex:/^endapply$/,next:[],open:!1},{type:e.logic.type["do"],regex:/^do\s+([\S\s]+)$/,next:[],open:!0,compile:function(t){var a=t.match[1],i=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack;return t.expression=i,delete t.match,t},parse:function(t,a,i){var s=this;return e.expression.parseAsync.call(s,t.expression,a).then(function(){return{chain:i,context:a}})}},{type:e.logic.type.block,regex:/^block\s+(\w+)$/,next:[e.logic.type.endblock],open:!0,compile:function(e){return e.blockName=e.match[1].trim(),delete e.match,e},parse:function(t,a,i){var s=this,o=e.Promise.resolve();return s.template.blocks.defined[t.blockName]=new e.Block(s.template,t),(null===s.template.parentTemplate||s.template.parentTemplate instanceof e.Template)&&(o=s.getBlock(t.blockName).render(s,a)),o.then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.shortblock,regex:/^block\s+(\w+)\s+(.+)$/,next:[],open:!0,compile:function(t){var a=this;return t.expression=t.match[2].trim(),t.output=e.expression.compile({type:e.expression.type.expression,value:t.expression}).stack,e.logic.handler[e.logic.type.block].compile.apply(a,[t])},parse:function(){for(var t=this,a=arguments.length,i=Array(a),s=0;s<a;s++)i[s]=arguments[s];return e.logic.handler[e.logic.type.block].parse.apply(t,i)}},{type:e.logic.type.endblock,regex:/^endblock(?:\s+(\w+))?$/,next:[],open:!1},{type:e.logic.type.extends_,regex:/^extends\s+(.+)$/,next:[],open:!0,compile:function(t){var a=t.match[1].trim();return delete t.match,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,t},parse:function(t,a,i){var s=this;return e.expression.parseAsync.call(s,t.stack,a).then(function(e){return s.template.parentTemplate=e,{chain:i,output:""}})}},{type:e.logic.type.use,regex:/^use\s+(.+)$/,next:[],open:!0,compile:function(t){var a=t.match[1].trim();return delete t.match,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,t},parse:function(t,a,i){var s=this;return e.expression.parseAsync.call(s,t.stack,a).then(function(t){var a=s.template.importFile(t),i=new e.ParseState(a);return i.parseAsync(a.tokens).then(function(){s.template.blocks.imported=o({},s.template.blocks.imported,{},i.getBlocks())})}).then(function(){return{chain:i,output:""}})}},{type:e.logic.type.include,regex:/^include\s+(.+?)(?:\s|$)(ignore missing(?:\s|$))?(?:with\s+([\S\s]+?))?(?:\s|$)(only)?$/,next:[],open:!0,compile:function(t){var a=t.match,i=a[1].trim(),s=void 0!==a[2],o=a[3],r=void 0!==a[4]&&a[4].length;return delete t.match,t.only=r,t.ignoreMissing=s,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:i}).stack,void 0!==o&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:o.trim()}).stack),t},parse:function(t,a,i){var s=t.only?{}:o({},a),r=t.ignoreMissing,n=this,p=null,l={chain:i,output:""};return p="undefined"==typeof t.withStack?e.Promise.resolve():e.expression.parseAsync.call(n,t.withStack,a).then(function(e){s=o({},s,{},e)}),p.then(function(){return e.expression.parseAsync.call(n,t.stack,a)}).then(function(t){var a=Array.isArray(t)?t:[t];var i=a.reduce(function(t,a){if(null===t.render){if(a instanceof e.Template)return{render:a.renderAsync(s,{isInclude:!0}),lastError:null};try{return{render:n.template.importFile(a).renderAsync(s,{isInclude:!0}),lastError:null}}catch(e){return{render:null,lastError:e}}}return t},{render:null,lastError:null});if(null!==i.render)return i.render;if(null===i.render&&r)return"";throw i.lastError}).then(function(e){return""!==e&&(l.output=e),l})}},{type:e.logic.type.spaceless,regex:/^spaceless$/,next:[e.logic.type.endspaceless],open:!0,parse:function(t,a,i){var s=this;return s.parseAsync(t.output,a).then(function(t){var a=/>\s+</g,s=t.replace(a,"><").trim();return s=new e.Markup(s),{chain:i,output:s}})}},{type:e.logic.type.endspaceless,regex:/^endspaceless$/,next:[],open:!1},{type:e.logic.type.macro,regex:/^macro\s+(\w+)\s*\(\s*((?:\w+(?:\s*=\s*([\s\S]+))?(?:,\s*)?)*)\s*\)$/,next:[e.logic.type.endmacro],open:!0,compile:function(t){var a=t.match[1],s=t.match[2].split(/\s*,\s*/),o=s.map(function(e){return e.split(/\s*=\s*/)[0]}),r=o.length;if(1<r)for(var n={},p=0,i;p<r;p++)if(i=o[p],n[i])throw new e.Error("Duplicate arguments for parameter: "+i);else n[i]=1;return t.macroName=a,t.parameters=o,t.defaults=s.reduce(function(t,a){var i=a.split(/\s*=\s*/),s=i[0],o=i[1];return t[s]=o?e.expression.compile.call(this,{type:e.expression.type.expression,value:o}).stack:void 0,t},{}),delete t.match,t},parse:function(t,a,i){var s=this;return s.macros[t.macroName]=function(){for(var i=arguments.length,o=Array(i),r=0;r<i;r++)o[r]=arguments[r];var n={_self:s.macros};return e.async.forEach(t.parameters,function(s,r){return"undefined"==typeof o[r]?"undefined"==typeof t.defaults[s]?(n[s]=void 0,!0):e.expression.parseAsync.call(this,t.defaults[s],a).then(function(t){return n[s]=t,e.Promise.resolve()}):(n[s]=o[r],!0)}).then(function(){return s.parseAsync(t.output,n)})},{chain:i,output:""}}},{type:e.logic.type.endmacro,regex:/^endmacro$/,next:[],open:!1},{type:e.logic.type.import_,regex:/^import\s+(.+)\s+as\s+(\w+)$/,next:[],open:!0,compile:function(t){var a=t.match[1].trim(),i=t.match[2].trim();return delete t.match,t.expression=a,t.contextName=i,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,t},parse:function(t,a,i){var s=this,o={chain:i,output:""};return"_self"===t.expression?(a[t.contextName]=s.macros,o):e.expression.parseAsync.call(s,t.stack,a).then(function(e){return s.template.importFile(e||t.expression)}).then(function(i){var s=new e.ParseState(i);return s.parseAsync(i.tokens).then(function(){return a[t.contextName]=s.macros,o})})}},{type:e.logic.type.from,regex:/^from\s+(.+)\s+import\s+([a-zA-Z0-9_, ]+)$/,next:[],open:!0,compile:function(t){var a=t.match[1].trim(),i=t.match[2].trim().split(/\s*,\s*/),s={},o=!0,r=!1,n=void 0;try{for(var p=i[Symbol.iterator](),l;!(o=(l=p.next()).done);o=!0){var c=l.value,d=c.match(/^(\w+)\s+as\s+(\w+)$/);d?s[d[1].trim()]=d[2].trim():c.match(/^(\w+)$/)&&(s[c]=c)}}catch(e){r=!0,n=e}finally{try{o||null==p["return"]||p["return"]()}finally{if(r)throw n}}return delete t.match,t.expression=a,t.macroNames=s,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:a}).stack,t},parse:function(t,a,i){var s=this,o;return o="_self"===t.expression?e.Promise.resolve(s.macros):e.expression.parseAsync.call(s,t.stack,a).then(function(e){return s.template.importFile(e||t.expression)}).then(function(t){var a=new e.ParseState(t);return a.parseAsync(t.tokens).then(function(){return a.macros})}),o.then(function(e){for(var s in t.macroNames)void 0!==e[s]&&(a[t.macroNames[s]]=e[s]);return{chain:i,output:""}})}},{type:e.logic.type.embed,regex:/^embed\s+(.+?)(?:\s+(ignore missing))?(?:\s+with\s+([\S\s]+?))?(?:\s+(only))?$/,next:[e.logic.type.endembed],open:!0,compile:function(t){var a=t.match,i=a[1].trim(),s=void 0!==a[2],o=a[3],r=void 0!==a[4]&&a[4].length;return delete t.match,t.only=r,t.ignoreMissing=s,t.stack=e.expression.compile.call(this,{type:e.expression.type.expression,value:i}).stack,void 0!==o&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:o.trim()}).stack),t},parse:function(t,a,i){var s={},r=e.Promise.resolve(),n=this;return t.only||(s=o({},a)),void 0!==t.withStack&&(r=e.expression.parseAsync.call(n,t.withStack,a).then(function(e){s=o({},s,{},e)})),r.then(function(){return e.expression.parseAsync.call(n,t.stack,s)}).then(function(a){var i=new e.Template({data:t.output,id:n.template.id,base:n.template.base,path:n.template.path,url:n.template.url,name:n.template.name,method:n.template.method,options:n.template.options});try{i.importFile(a)}catch(e){if(t.ignoreMissing)return"";throw n=null,e}return i.parentTemplate=a,i.renderAsync(s,{isInclude:!0})}).then(function(e){return{chain:i,output:e}})}},{type:e.logic.type.endembed,regex:/^endembed$/,next:[],open:!1},{type:e.logic.type["with"],regex:/^(?:with\s+([\S\s]+?))(?:\s|$)(only)?$/,next:[e.logic.type.endwith],open:!0,compile:function(t){var a=t.match,i=a[1],s=void 0!==a[2]&&a[2].length;return delete t.match,t.only=s,void 0!==i&&(t.withStack=e.expression.compile.call(this,{type:e.expression.type.expression,value:i.trim()}).stack),t},parse:function(t,a,s){var r={},n=this,p=e.Promise.resolve(),l;return t.only||(r=o({},a)),void 0!==t.withStack&&(p=e.expression.parseAsync.call(n,t.withStack,a).then(function(e){for(l in e)Object.hasOwnProperty.call(e,l)&&(r[l]=e[l])})),p.then(function(){return n.parseAsync(t.output,r)}).then(function(e){return{chain:s,output:e}})}},{type:e.logic.type.endwith,regex:/^endwith$/,next:[],open:!1},{type:e.logic.type.deprecated,regex:/^deprecated\s+(.+)$/,next:[],open:!0,compile:function(e){return console.warn("Deprecation notice: "+e.match[1]),e},parse:function(){return{}}}],e.logic.handler={},e.logic.extendType=function(t,a){a=a||"Twig.logic.type"+t,e.logic.type[t]=a},e.logic.extend=function(t){if(t.type)e.logic.extendType(t.type);else throw new e.Error("Unable to extend logic definition. No type provided for "+t);e.logic.handler[t.type]=t};0<e.logic.definitions.length;)e.logic.extend(e.logic.definitions.shift());return e.logic.compile=function(t){var a=t.value.trim(),i=e.logic.tokenize.call(this,a),s=e.logic.handler[i.type];return s.compile&&(i=s.compile.call(this,i),e.log.trace("Twig.logic.compile: ","Compiled logic token to ",i)),i},e.logic.tokenize=function(t){var a=null,i=null,s=null,o=null,r=null,n=null,p=null;for(a in t=t.trim(),e.logic.handler)if(Object.hasOwnProperty.call(e.logic.handler,a))for(i=e.logic.handler[a].type,s=e.logic.handler[a].regex,o=s,Array.isArray(s)||(o=[s]),r=o.length,n=0;n<r;n++)if(p=o[n].exec(t),null!==p)return e.log.trace("Twig.logic.tokenize: ","Matched a ",i," regular expression of ",p),{type:i,match:p};throw new e.Error("Unable to parse '"+t.trim()+"'")},e.logic.parse=function(t,a,i,s){return e.async.potentiallyAsync(this,s,function(){e.log.debug("Twig.logic.parse: ","Parsing logic token ",t);var s=e.logic.handler[t.type],o=this,r;return s.parse?(o.nestingStack.unshift(t),r=s.parse.call(o,t,a||{},i),e.isPromise(r)?r=r.then(function(e){return o.nestingStack.shift(),e}):o.nestingStack.shift(),r):""})},e}},function(e){"use strict";e.exports=function(e){e.Templates.registerParser("source",function(e){return e.data||""})}},function(e){"use strict";e.exports=function(e){e.Templates.registerParser("twig",function(t){return new e.Template(t)})}},function(e,t,a){"use strict";var i=a(0),s=i(a(1));e.exports=function(e){return e.path={},e.path.parsePath=function(t,a){var i=null,o=t.options.namespaces,r=a||"",n=o&&"object"===(0,s["default"])(o);if(n)for(i in o)if(r.includes(i)){var p=new RegExp("^"+i+"::"),l=new RegExp("^@"+i+"/"),c=o[i].replace(/([^/])$/,"$1/");if(p.test(r))return r=r.replace(p,c),r;if(l.test(r))return r=r.replace(l,c),r}return e.path.relativePath(t,r)},e.path.relativePath=function(t,i){var s="/",o=[],r=i||"",n,p,l;if(t.url)n="undefined"==typeof t.base?t.url:t.base.replace(/([^/])$/,"$1/");else if(t.path){var c=a(4),d=c.sep||s,y=new RegExp("^\\.{1,2}"+d.replace("\\","\\\\"));r=r.replace(/\//g,d),void 0!==t.base&&null===r.match(y)?(r=r.replace(t.base,""),n=t.base+d):n=c.normalize(t.path),n=n.replace(d+d,d),s=d}else if((t.name||t.id)&&t.method&&"fs"!==t.method&&"ajax"!==t.method)n=t.base||t.name||t.id;else throw new e.Error("Cannot extend an inline template.");for(p=n.split(s),p.pop(),p=p.concat(r.split(s));0<p.length;)l=p.shift(),"."===l||(".."===l&&0<o.length&&".."!==o[o.length-1]?o.pop():o.push(l));return o.join(s)},e}},function(e){"use strict";e.exports=function(e){return e.tests={empty:function(e){if(null===e||void 0===e)return!0;if("number"==typeof e)return!1;if(0<e.length)return!1;for(var t in e)if(Object.hasOwnProperty.call(e,t))return!1;return!0},odd:function(e){return 1==e%2},even:function(e){return 0==e%2},divisibleby:function(e,t){return 0==e%t[0]},defined:function(e){return void 0!==e},none:function(e){return null===e},null:function(e){return this.none(e)},"same as":function(e,t){return e===t[0]},sameas:function(t,a){return console.warn("`sameas` is deprecated use `same as`"),e.tests["same as"](t,a)},iterable:function(t){return t&&(e.lib.is("Array",t)||e.lib.is("Object",t))}},e.test=function(t,a,i){if(!e.tests[t])throw e.Error("Test "+t+" is not defined.");return e.tests[t](a,i)},e.test.extend=function(t,a){e.tests[t]=a},e}},function(e){"use strict";e.exports=function(t){function e(e,a,i){var s=i.call(e),o=null,r=!0;if(!t.isPromise(s))return s;if(s.then(function(e){s=e,r=!1})["catch"](function(e){o=e}),null!==o)throw o;if(r)throw new t.Error("You are using Twig.js in sync mode in combination with async extensions.");return s}function a(e,t,a){try{e(t,a)}catch(e){a(e)}}function i(e,t,a){var i=[t,a,-2];return e?-2===e[2]?e=[e,i]:e.push(i):e=i,e}var s=0,o=1,r=2;return t.ParseState.prototype.parseAsync=function(e,t){return this.parse(e,t,!0)},t.expression.parseAsync=function(e,a,i){var s=this;return t.expression.parse.call(s,e,a,i,!0)},t.logic.parseAsync=function(e,a,i){var s=this;return t.logic.parse.call(s,e,a,i,!0)},t.Template.prototype.renderAsync=function(e,t){return this.render(e,t,!0)},t.async={},t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then},t.async.potentiallyAsync=function(a,i,s){return i?t.Promise.resolve(s.call(a)):e(a,i,s)},t.Thenable=function(e,t,a){this.then=e,this._value=a?t:null,this._state=a||s},t.Thenable.prototype["catch"]=function(e){return this._state===o?this:this.then(null,e)},t.Thenable.resolvedThen=function(e){try{return t.Promise.resolve(e(this._value))}catch(e){return t.Promise.reject(e)}},t.Thenable.rejectedThen=function(e,a){if(!a||"function"!=typeof a)return this;var i=this._value,s;try{s=a(i)}catch(e){s=t.Promise.reject(e)}return t.Promise.resolve(s)},t.Promise=function(e){function i(e){c(o,e)}function n(t){c(r,t)}var p=s,l=null,c=function(e,t){p=e,l=t};return(a(e,i,n),p===o)?t.Promise.resolve(l):p===r?t.Promise.reject(l):(c=new t.FullPromise,c.promise)},t.FullPromise=function(){function e(e){e(l._value)}function a(e,t){t(l._value)}function s(t,i){if(!l._state)return l._value=i,l._state=t,n=t===o?e:a,r?-2===r[2]?(n(r[0],r[1]),void(r=null)):void(r.forEach(function(e){n(e[0],e[1])}),r=null):void 0}var r=null,n=function(e,t){r=i(r,e,t)},l=new t.Thenable(function(e,a){var i="function"==typeof e;if(l._state===o&&!i)return t.Promise.resolve(l._value);if(l._state===o)try{return t.Promise.resolve(e(l._value))}catch(e){return t.Promise.reject(e)}return new t.Promise(function(t,s){n(i?function(a){try{t(e(a))}catch(e){s(e)}}:t,"function"==typeof a?function(e){try{t(a(e))}catch(e){s(e)}}:s)})});return s.promise=l,s},t.Promise.defaultResolved=new t.Thenable(t.Thenable.resolvedThen,void 0,o),t.Promise.emptyStringResolved=new t.Thenable(t.Thenable.resolvedThen,"",o),t.Promise.resolve=function(e){return 0===arguments.length||"undefined"==typeof e?t.Promise.defaultResolved:t.isPromise(e)?e:""===e?t.Promise.emptyStringResolved:new t.Thenable(t.Thenable.resolvedThen,e,o)},t.Promise.reject=function(a){return new t.Thenable(t.Thenable.rejectedThen,a,r)},t.Promise.all=function(e){var a=Array(e.length);return t.async.forEach(e,function(e,i){return t.isPromise(e)?e._state===o?void(a[i]=e._value):e.then(function(e){a[i]=e}):void(a[i]=e)}).then(function(){return a})},t.async.forEach=function(e,a){function i(){var n=null;do{if(r===s)return t.Promise.resolve();n=a(e[r],r),r++}while(!n||!t.isPromise(n)||n._state===o);return n.then(i)}var s=e?e.length:0,r=0;return i()},t}},function(e){"use strict";e.exports=function(e){return e.exports={VERSION:e.VERSION},e.exports.twig=function(t){var a=t.id,i={strictVariables:t.strict_variables||!1,autoescape:null!==t.autoescape&&t.autoescape||!1,allowInlineIncludes:t.allowInlineIncludes||!1,rethrow:t.rethrow||!1,namespaces:t.namespaces};if(e.cache&&a&&e.validateId(a),void 0!==t.debug&&(e.debug=t.debug),void 0!==t.trace&&(e.trace=t.trace),void 0!==t.data)return e.Templates.parsers.twig({data:t.data,path:Object.hasOwnProperty.call(t,"path")?t.path:void 0,module:t.module,id:a,options:i});if(void 0!==t.ref){if(void 0!==t.id)throw new e.Error("Both ref and id cannot be set on a twig.js template.");return e.Templates.load(t.ref)}if(void 0!==t.method){if(!e.Templates.isRegisteredLoader(t.method))throw new e.Error("Loader for \""+t.method+"\" is not defined.");return e.Templates.loadRemote(t.name||t.href||t.path||a||void 0,{id:a,method:t.method,parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:i},t.load,t.error)}return void 0===t.href?void 0===t.path?void 0:e.Templates.loadRemote(t.path,{id:a,method:"fs",parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:i},t.load,t.error):e.Templates.loadRemote(t.href,{id:a,method:"ajax",parser:t.parser||"twig",base:t.base,module:t.module,precompiled:t.precompiled,async:t.async,options:i},t.load,t.error)},e.exports.extendFilter=function(t,a){e.filter.extend(t,a)},e.exports.extendFunction=function(t,a){e._function.extend(t,a)},e.exports.extendTest=function(t,a){e.test.extend(t,a)},e.exports.extendTag=function(t){e.logic.extend(t)},e.exports.extend=function(t){t(e)},e.exports.compile=function(t,a){var i=a.filename,s=a.filename,o=new e.Template({data:t,path:s,id:i,options:a.settings["twig options"]});return function(e){return o.render(e)}},e.exports.renderFile=function(t,a,i){"function"==typeof a&&(i=a,a={}),a=a||{};var s=a.settings||{},o=s["twig options"],r={path:t,base:s.views,load:function(e){return o&&o.allowAsync?void e.renderAsync(a).then(function(e){return i(null,e)},i):void i(null,e.render(a)+"")},error:function(e){i(e)}};if(o)for(var n in o)Object.hasOwnProperty.call(o,n)&&(r[n]=o[n]);e.exports.twig(r)},e.exports.__express=e.exports.renderFile,e.exports.cache=function(t){e.cache=t},e.exports.path=e.path,e.exports.filters=e.filters,e.exports.tests=e.tests,e.exports.functions=e.functions,e.exports.Promise=e.Promise,e}}])})}).call(t,a("GTd5"))},"Md+t":function(e,t,a){"use strict";(function(e){var t=a("Vm3q"),i=a("779H"),s=a("jWwD"),o=function(){ga("send","event","search","submit","car");var a=Object(i.b)();if(a){var s="";0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(s+="?typeCoin="+e("[name^=\"typeCoin\"]").val()+"&");var o=e("#origin1").val();!1==t.a.sameCity&&e("#origin1").val()!==e("#destination1").val()&&(o+="-"+e("#destination1").val()),o+="/"+e("#date1").val()+e("#time1").val()+"+"+e("#date-return1").val()+e("#time-return1").val(),window.location.href=carUrl+o+s,_loadSpinner(),e(".js-globalOverlay").show()}return a};e(document).ready(function(){0<e(".js-searchFormCar").length&&(e(".js-sameCity").on("click",function(){e(this).html("Devolver el veh\xEDculo en otro lugar"==e(this).text()?"Devolver el veh\xEDculo en mismo lugar":"Devolver el veh\xEDculo en otro lugar"),e(".js-sameCity-destination").toggle(),t.a.sameCity=!0!=t.a.sameCity}),e(".js-searchButton").off("click").on("click",function(){o()}),e("#origin1Validate").val("Bogot\xE1, Colombia (BOG)"),e("#origin1").val("BOG"),Object(s.e)("#origin1",indexUrl+"buscar/cities-autocomplete/cars/",s.c,s.d,null),Object(s.e)("#destination1",indexUrl+"buscar/cities-autocomplete/cars/",s.c,s.d,null))})}).call(t,a("86YC"))},"Q+xo":function(e,t,a){"use strict";(function(e,i){a.d(t,"a",function(){return l});var s=a("Vm3q"),o=a("3Eqt"),r=a("jWwD"),n=a("779H"),p=function(t){ga("send","event","search","submit","hotel");var a=Object(n.f)(),o="";if(0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(o+="?typeCoin="+e("[name^=\"typeCoin\"]").val()+"&"),a)if("destination"==t.dataset.type){for(var r=s.a.instances.rooms,p=0,c=0,d="",y=1;y<=s.a.instances.rooms;y++)if(p+=parseInt(e("#room"+y+"Adults").val()),0<s.a.instances["room"+y+"kids"]){c+=parseInt(s.a.instances["room"+y+"kids"]);for(var i=1,g=s.a.instances["room"+y+"kids"];i<=g;i++)d+="&age="+e("#js-room"+y+"child"+i+" > .form-group > select").val()}var l=e("#date1").val().split("-"),u=e("#date-return1").val().split("-"),m;m=null==operatorId||""==operatorId?bookingDomain+";iata_orr=1;checkin_monthday="+l[2]+";checkin_year_month="+l[0]+"-"+l[1]+";checkout_monthday="+u[2]+";checkout_year_month="+u[0]+"-"+u[1]+";selected_currency=COP;lang=es;iata="+e("#destination").val()+"&no_rooms="+r+"&group_adults="+p+"&group_children="+c+d:"http://hoteles.aviatur.com/searchresults.html?iata="+e("#destination").val()+";iata_orr=1;checkin_monthday="+l[2]+";checkin_year_month="+l[0]+"-"+l[1]+";checkout_monthday="+u[2]+";checkout_year_month="+u[0]+"-"+u[1]+";selected_currency=COP;lang=es&label=gpaviatur-agencia-asesor-"+operatorId+"&aid=811633&no_rooms="+r+"&group_adults="+p+"&group_children="+c+d,window.location.href=m+o,_loadSpinner(),e(".js-globalOverlay").show()}else{var m=e("#destination").val()+"/";m+=e("#date1").val()+"+"+e("#date-return1").val();for(var y=1;y<=s.a.instances.rooms;y++)if(m+="/"+e("#room"+y+"Adults").val()+"+",0<s.a.instances["room"+y+"kids"])for(var i=1,g=s.a.instances["room"+y+"kids"];i<=g;i++)m+=e("#js-room"+y+"child"+i+" > .form-group select").val(),m+=i===g?"":"-";else m+="n";window.location.href=hotelUrl+m+o,_loadSpinner(),e(".js-globalOverlay").show()}return a},l=function(t){var a=e(t).data("parent1"),r=s.a.instances["room"+a+"kids"],n=e(t).val();if(n>r)for(var p=1;p<=n-r;p++){Object(o.a)(t,"#js-room"+a+"child-n2-","#js-room"+a+"child-anchor","room"+a+"kids","-n2-");var i=/-n2-/g,l="#js-room"+a+"child-n2-".replace(i,s.a.instances["room"+a+"kids"]);e(l+" > .js-slideContent").slideDown()}if(n<r)for(var p=1;p<=r-n;p++)Object(o.b)(t,"#js-room"+a+"child-n2-","room"+a+"kids","-n2-")};e(document).ready(function(){0<e(".js-searchFormHotel").length&&(s.a.hotelDate=new Date(new Date().getTime()+2592000000),e(".js-createRoom").on("click",function(){Object(o.a)(this,"#js-room-n1-","#js-rooms-anchor","rooms","-n1-"),e("#js-room"+s.a.instances.rooms+" > .js-slideContent").slideDown()}),e(".js-deleteRoom").on("click",function(){s.a.instances.rooms>s.a.instances.roomsmin&&e("#js-room"+s.a.instances.rooms).slideUp();var t=s.a.instances.rooms;s.a.instances["room"+t+"kids"]=0,setTimeout(function(){Object(o.b)(e(".js-deleteRoom"),"#js-room-n1-","rooms","-n1-")},300)}),e("body").on("change",".js-instanceOption",function(){l(this)}),e("body").on("click",".js-prevOption",function(){var t=e(this).parent().parent().find(".js-changeOption");l(t)}),e("body").on("click",".js-nextOption",function(){var t=e(this).parent().parent().find(".js-changeOption");l(t)}),e(".js-searchButton").off("click").on("click",function(){p(this)}),e("#destinationValidate").val("Bogot\xE1, Colombia (BOG)"),e("#destination").val("BOG"),6<24-parseFloat(new Date().getTime()/3600000-s.a.today/3600000).toFixed(2)&&(s.a.multiDate[1]=new Date(s.a.today),s.a.returnWayDate=new Date(s.a.today+604800000)),Object(r.e)("#destination",indexUrl+"buscar/cities-autocomplete/hotels/",r.i,r.h,null),e(".js-createRoom").trigger("click"),i("body").find(".ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front").addClass("ui-autocomplete-hotel text-[#000] l:text-[#000] m:text-[#2F2F2F] s:text-[#2F2F2F] xs:text-[#2F2F2F] m:!left-[18px] s:!left-[16px] xs:!left-[16px]"))})}).call(t,a("86YC"),a("86YC"))},R7nV:function(e,t,a){"use strict";(function(e,t){function i(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}var s=a("HBXo"),o=a("jWwD"),r=e(".js-package-search-input"),n=t(".resume-search--package"),p="",l=function(){t(".js-searchError").empty(),t(".js-searchErrorDate").empty(),t(".js-searchErrorWanted").empty();var e=!0;return 0<t("#searchInputCitiesValidate").val().length&&(0==t("#searchInputCities").val().length||t("#searchInputCities").val().match(/([0-9,.;:{}^`´+¨*¡¿?\\\\'()=/&%$#_"!°~|<>¬-])/g))&&t("#searchInputCities").val(t("#searchInputCitiesValidate").val()),0==t("#searchInputValidate-other").val().length&&0==t("#searchInputCitiesValidate").val().length&&null==t("#searchInputValidate-tipoViaje").val()?(t(".js-searchInputError").text("La B\xFAsqueda no puede estar vac\xEDa").fadeIn(),e=!1):(t("#searchInputCities").val().match(/([0-9,.;:{}^`´+¨*¡¿?\\\\'()=/&%$#_"!°~|<>¬-])/g)||-1!==t("#searchInputCitiesValidate").val().search("/"))&&(t(".js-searchInputError").text("La B\xFAsqueda no puede tener n\xFAmeros o car\xE1cteres especiales").fadeIn(),e=!1),e},c=function(){ga("send","event","search","submit","package");var a=l(),s="",o="personalizada/";if(a)if(""!=p)"searchInputCitiesValidate"==e(p).attr("id")&&(p="#searchInputCities"),s=e(p).val(),o+=s.replace(/ /g,"-"),_loadSpinner(),t(".js-globalOverlay").show(),window.location.href=packageUrl+i(o);else return t(".js-searchInputError").text("La B\xFAsqueda no puede estar vac\xEDa").fadeIn(),!1;return a};t(document).ready(function(){0<t(".js-searchFormPackage").length&&(t(".js-searchButton").off("click").on("click",function(){c()}),t("[name^=\"parameters[searchInputValidate]\"]").on("keypress",function(t){13==t.which&&(t.preventDefault(),c()),Object(o.e)("#"+"searchInputCities",indexUrl+"buscar/cities-autocomplete/package/",o.g,o.h,null)}),t(".js-packageSelect").off("click").on("click",function(){_loadSpinner(),t(".js-globalOverlay").show()}),t(".js-toggleOptionsBtn").on("click",function(){t(".js-toggleOptions").slideToggle(),Object(s.b)(this)})),0<r.length&&r.on("click",function(){p=e(this)});t.each([".js-filterOptions",".js-orderResults"],function(e,a){n.find(a).each(function(){t(this).on("click",function(t){window._slidePicker.call(this,t,_iconToggle)})})})})}).call(t,a("86YC"),a("86YC"))},S8Dg:function(e,t,a){"use strict";(function(e,t){var i=a("Vm3q"),s=a("779H"),o=6,r=function(){ga("send","event","search","submit","cruise");var a=Object(s.c)();if(a){var o="";0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(o="?",o+="typeCoin="+e("[name^=\"typeCoin\"]").val()+"&");for(var r=e("#children").val(),n="",p=1;p<=r;p++)n=n+"/"+e("[name^=\"parameters[ageChild"+p+"]\"]").val();for(var i=e("#adults").val(),l="+"+e("[name^=\"parameters[ageAdult1]\"]").val(),p=2;p<=i;p++)l=l+"+"+e("[name^=\"parameters[ageAdult"+p+"]\"]").val();var c="";null!==e("[name^=\"parameters[ship]\"]").val()&&"0"!==e("[name^=\"parameters[ship]\"]").val()&&(c="/"+e("[name^=\"parameters[ship]\"]").val());var d="";null!==e("[name^=\"parameters[ports]\"]").val()&&"0"!==e("[name^=\"parameters[ports]\"]").val()&&(d="/"+e("[name^=\"parameters[ports]\"]").val()),t("[name^=\"quotation\"]").is(":checked")&&(o+="?quotation=1");var y="";null!==e("[name^=\"parameters[loyaltyMembershipID]\"]").val()&&""!==e("[name^=\"parameters[loyaltyMembershipID]\"]").val()&&(y="/"+e("[name^=\"parameters[loyaltyMembershipID]\"]").val());var g=cruiseUrl+e("#destination").val()+c+d+"/"+e("#date1").val()+"+"+e("#date-return1").val()+"/"+e("#adults").val()+l+n+y;window.location.href=g+o,_loadSpinner(),e(".js-globalOverlay").show()}return a},n=function(){for(var t=parseInt(e("#children").val()),a=parseInt(e("#adults").val()),s=1;5>=s;s++)e("#js-child-"+s).hide();if(t+a<=o)for(var s=1;s<=t;s++)e("#js-child-"+s).fadeIn();else e("#children option[value='"+(o-a)+"']").prop("selected",!0).trigger("change"),e(".js-searchErrorMax").show("slow"),setTimeout(function(){e(".js-searchErrorMax").hide("slow")},3e3)},p=function(){for(var t=parseInt(e("#children").val()),a=parseInt(e("#adults").val()),s=1;6>=s;s++)e("#js-adult-"+s).hide();if(t+a>o)e(".js-searchErrorMax").show("slow"),e("#adults option[value='"+(o-t)+"']").prop("selected",!0).trigger("change"),setTimeout(function(){e(".js-searchErrorMax").hide("slow")},3e3);else for(var s=1;s<=a;s++)e("#js-adult-"+s).fadeIn()},l=function(){e("#js-destinationError").hide(0)},c=function(t){e("#js-dateMonthError").hide(0);var a=new Date,s=new Date(e(t).val()+"/01"),o=new Date(s.getFullYear(),s.getMonth()+1,0);s.getTime()>a?(e("#js-createDatepicker1").val(e.datepicker.formatDate("dd M. y",s,{})),e("#date1").val(e.datepicker.formatDate("yy-mm-dd",s,{})),i.a.multiDate[1]=s):(e("#js-createDatepicker1").val(e.datepicker.formatDate("dd M. y",a,{})),e("#date1").val(e.datepicker.formatDate("yy-mm-dd",a,{})),i.a.multiDate[1]=a),e("#js-createDatepicker-return1").val(e.datepicker.formatDate("dd M. y",o,{})),e("#date-return1").val(e.datepicker.formatDate("yy-mm-dd",o,{}))},d=function(){e("[name^=\"parameters[ports]\"]").empty().append("<option selected=\"selected\" value=\"0\">Puerto origen</option>"),e.ajax({url:getportsUrl,data:"region="+e("[name^=\"parameters[option]\"]").val(),dataType:"json",success:function(t){for(var a=0,i;a<t.length;a++)for(var s in i=t[a],i){var o=i[s].replace(/ /g,"_"),o=o.replace(/\//g,"-");e("[name^=\"parameters[ports]\"]").append(e("<option>",{value:o,text:i[s]}))}},error:function(){}})};e(document).ready(function(){0<e(".js-searchFormCruise").length&&(n(),e("#destination").on("change",function(){l()}),e("#dateMonth").on("change",function(){c(this)}),e("#children").on("change",function(){n(this)}),e("#adults").on("change",function(){p(this)}),e(".js-searchButton").off("click").on("click",function(){r()}),e(".js-redirectForm").on("click",function(){window.open(formCruiseUrl,"blank")}),e("[name^=\"parameters[option]\"]").on("change",function(){d()}),p(this),n(this))})}).call(t,a("86YC"),a("86YC"))},Vm3q:function(e,t){"use strict";var a=function(){return new Date().setHours(0,0,0,0)};t.a={courses:2,instances:{flighttype:"r",flights:1,flightsmin:1,flightsmax:6,rooms:0,roomsmin:1,roomsmax:3,room1kids:0,room1kidsmax:3,room2kids:0,room2kidsmax:3,room3kids:0,room3kidsmax:3,insurancepassengers:1},today:a(),multiDate:{1:new Date(a()+86400000),2:!1,3:!1,4:!1,5:!1,6:!1},returnDate:{},hotelDate:!1,sameCity:!0,returnWayDate:new Date(a()+691200000)}},"cq/L":function(e,t,a){"use strict";(function(e,i){var s=a("MYit"),o=a.n(s),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};o.a.extendFunction("to_int",function(e){return+e}),o.a.extendFunction("to_string",function(e){return""+e}),o.a.extendFunction("to_array",function(e){return e instanceof Array?e:[e]}),o.a.extendFilter("true_length",function(e){return e instanceof Array?e:1}),o.a.extendFilter("true_first",function(e){var t=!!(1<arguments.length&&void 0!==arguments[1])&&arguments[1];if(e instanceof Array)return e[0];if(e instanceof Object){if(t)return e;for(var a in e)if(e.hasOwnProperty(a))return e[a]}return e}),o.a.extendFunction("duration",function(t,a){return e.duration(t,a)._data}),o.a.extendFilter("date_format",function(t){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return e(t||new Date).format(a[0]||"")}),o.a.extendFunction("uid",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return i.uid(e)}),o.a.extendFunction("change_coin",function(e,t){e=e||"COP";var a=document.querySelector("[name^=\"typeCoin\"]"),i=document.querySelector("[name^=\"CoinValue\"]");return null!==a&&a.value!==e&&(t*=+i.value),t}),o.a.extendFunction("change_currency",function(e){e=e||"COP";var t=document.querySelector("[name^=\"typeCoin\"]");return null!==t&&t.value!==e&&(e=t.value),e}),o.a.extendFunction("clg",function(){var e;return(e=console).log.apply(e,arguments)}),o.a.extendFunction("ctr",function(){var e;return(e=console).trace.apply(e,arguments)}),o.a.extendFunction("pretty_dump",function(e){return n("",e)});var n=function e(t,a){if(a instanceof Object)for(var s in a)i.obj.has(a,s)&&e(t,s);else return t+"<br>"+("undefined"==typeof a?"undefined":r(a))+": "+a};t.a=o.a}).call(t,a("ZCrj"),a("T6cr"))},ggMG:function(e,t,a){"use strict";(function(e){var t=a("Vm3q"),s=a("779H"),i=a("jWwD"),o=function(){ga("send","event","search","submit","bus");var a=Object(s.a)();if(a){var o="",r="";if(0<e("[name^=\"typeCoin\"]").length&&""!=e("[name^=\"typeCoin\"]").val()&&(o+="?typeCoin="+e("[name^=\"typeCoin\"]").val()+"&"),"r"===t.a.instances.flighttype)r+=e("#origin1").val()+"-"+e("#destination1").val()+"/"+e("#date1").val()+e("#time1").val()+"+"+e("#date-return1").val()+e("#time-return1").val()+"/";else for(var n=1;n<=t.a.instances.flights;n++)r+=e("#origin"+n).val()+"-"+e("#destination"+n).val()+"/"+e("#date"+n).val()+e("#time"+n).val()+"/";window.location.href=busUrl+r+e("#js-passengers").val()+o,_loadSpinner(),e(".js-globalOverlay").show()}return a};e(document).ready(function(){0<e(".js-searchFormBus").length&&(e(".js-searchButton").off("click").on("click",function(){o()}),e("#vuelta").trigger("click"),e("#origin1Validate").val("Bogota Salitre, Distrito Capital(15)"),e("#origin1").val("15"),Object(i.e)("#origin1",indexUrl+"buscar/buscar-terminales/",i.k,i.l,void 0,!1,!1),Object(i.e)("#destination1",indexUrl+"buscar/buscar-terminales/",i.k,i.l,void 0,!1,"origin1"))})}).call(t,a("86YC"))},jWwD:function(e,t,a){"use strict";(function(s,e){a.d(t,"h",function(){return r}),a.d(t,"d",function(){return n}),a.d(t,"b",function(){return p}),a.d(t,"l",function(){return l}),a.d(t,"a",function(){return g}),a.d(t,"f",function(){return u}),a.d(t,"g",function(){return m}),a.d(t,"c",function(){return h}),a.d(t,"k",function(){return v}),a.d(t,"i",function(){return f}),a.d(t,"m",function(){return b}),a.d(t,"e",function(){return x}),a.d(t,"j",function(){return k});var i=a("Vm3q"),o=a("MITR"),r="Ciudades",n="Aeropuertos",p="Aerol\xEDneas",l="Terminales",c="Hoteles",d="Zonas de interes",y=[{code:"BOG",label:"Bogota, Colombia (BOG)",type:r,img:"bog.jpg",countryIco:"co"},{code:"CTG",label:"Cartagena, Colombia (CTG)",type:r,img:"ctg.jpg",countryIco:"co"},{code:"SMR",label:"Santa Marta, Colombia (SMR)",type:r,img:"smr.jpg",countryIco:"co"},{code:"ADZ",label:"San Andr\xE9s Isla, Colombia (ADZ)",type:r,img:"adz.jpg",countryIco:"co"},{code:"MDE",label:"Medell\xEDn, Colombia (MDE)",type:r,img:"mde.jpg",countryIco:"co"},{code:"CLO",label:"Cali, Colombia (CLO)",type:r,img:"clo.jpg",countryIco:"co"},{code:"BAQ",label:"Barranquilla, Colombia (BAQ)",type:r,img:"baq.jpg",countryIco:"co"},{code:"BGA",label:"Bucaramanga, Colombia (BGA)",type:r,img:"bga.jpg",countryIco:"co"},{code:"PEI",label:"Pereira, Colombia (PEI)",type:r,img:"pei.jpg",countryIco:"co"},{code:"CUC",label:"Cucuta, Colombia (CUC)",type:r,img:"cuc.jpg",countryIco:"co"},{code:"AXM",label:"Armenia, Colombia (AXM)",type:r,img:"axm.jpg",countryIco:"co"},{code:"EOH",label:"Olaya Herrera, Medell\xEDn, Colombia (EOH)",type:r,img:"eoh.jpg",countryIco:"co"},{code:"LET",label:"Leticia, Colombia (LET)",type:r,img:"let.jpg",countryIco:"co"},{code:"MTR",label:"Monter\xEDa, Colombia (MTR)",type:r,img:"mtr.jpg",countryIco:"co"},{code:"MZL",label:"Manizales, Colombia (MZL)",type:r,img:"mzl.jpg",countryIco:"co"},{code:"PSO",label:"Pasto, Colombia (PSO)",type:r,img:"pso.jpg",countryIco:"co"},{code:"RCH",label:"Riohacha, Colombia (RCH)",type:r,img:"rch.jpg",countryIco:"co"},{code:"TCO",label:"Tumaco, Colombia (TCO)",type:r,img:"tco.jpg",countryIco:"co"},{code:"UIB",label:"Quibdo, Colombia (UIB)",type:r,img:"uib.jpg",countryIco:"co"},{code:"UIO",label:"Quito, Ecuador (UIO)",type:r,img:"uio.jpg",countryIco:"co"},{code:"MIA",label:"Miami, Estados Unidos (MIA)",type:r,img:"mia.jpg",countryIco:"us"},{code:"NYC",label:"Nueva York, Estados Unidos (NYC)",type:r,img:"nyc.jpg",countryIco:"us"},{code:"MAD",label:"Madrid, Espa\xF1a (MAD)",type:r,img:"mad.jpg",countryIco:"es"},{code:"BCN",label:"Barcelona, Espa\xF1a (BCN)",type:r,img:"bcn.jpg",countryIco:"es"},{code:"PAR",label:"Paris, Francia (PAR)",type:r,img:"par.jpg",countryIco:"fr"},{code:"AMS",label:"Amsterdam, Pa\xEDses Bajos (AMS)",type:r,img:"ams.jpg",countryIco:"nl"},{code:"ASU",label:"Asunci\xF3n, Paraguay (ASU)",type:r,img:"asu.jpg",countryIco:"py"},{code:"AUA",label:"Aruba, Aruba (AUA)",type:r,img:"aua.jpg",countryIco:"aw"},{code:"BER",label:"Berlin, Alemania (BER)",type:r,img:"ber.jpg",countryIco:"de"},{code:"BKK",label:"Bangkok, Tailandia (BKK)",type:r,img:"bkk.jpg",countryIco:"th"},{code:"BOS",label:"Boston, Estados Unidos (BOS)",type:r,img:"bos.jpg",countryIco:"us"},{code:"BXA",label:"Bogalusa, Estados Unidos (BXA)",type:r,img:"bxa.jpg",countryIco:"us"},{code:"CCS",label:"Caracas, Venezuela (CCS)",type:r,img:"ccs.jpg",countryIco:"ve"},{code:"CHI",label:"Chicago, Estados Unidos (CHI)",type:r,img:"chi.jpg",countryIco:"us"},{code:"CPH",label:"Copenhagen, Dinamarca (CPH)",type:r,img:"cph.jpg",countryIco:"dk"},{code:"CPT",label:"Cape Town, Sud\xE1frica (CPT)",type:r,img:"cpt.jpg",countryIco:"za"},{code:"CUZ",label:"Cuzco, Per\xFA (CUZ)",type:r,img:"cuz.jpg",countryIco:"pe"},{code:"FRA",label:"Frankfurt, Alemania (FRA)",type:r,img:"fra.jpg",countryIco:"de"},{code:"GOT",label:"Goteborg, Suecia (GOT)",type:r,img:"got.jpg",countryIco:"se"},{code:"HAV",label:"La Habana, Cuba (HAV)",type:r,img:"hav.jpg",countryIco:"cu"},{code:"HKG",label:"Hong Kong, Hong Kong (HKG)",type:r,img:"hkg.jpg",countryIco:"hk"},{code:"HOU",label:"Houston, Estados Unidos (HOU)",type:r,img:"hou.jpg",countryIco:"us"},{code:"IST",label:"Estambul, Turqu\xEDa (IST)",type:r,img:"ist.jpg",countryIco:"tr"},{code:"KUL",label:"Kuala Lumpur, Malasya (KUL)",type:r,img:"kul.jpg",countryIco:"my"},{code:"LAX",label:"Los \xC1ngeles, Estados Unidos (LAX)",type:r,img:"lax.jpg",countryIco:"us"},{code:"LIS",label:"Lisboa, Portugal (LIS)",type:r,img:"lis.jpg",countryIco:"pt"},{code:"MIL",label:"Mil\xE1n, Italia (MIL)",type:r,img:"mil.jpg",countryIco:"it"},{code:"MOW",label:"Moscow, Rusia (MOW)",type:r,img:"mow.jpg",countryIco:"ru"},{code:"MVD",label:"Montevideo, Uruguay (MVD)",type:r,img:"mvd.jpg",countryIco:"uy"},{code:"ORD",label:"Chicago Ohare Intl, Chicago, Estados Unidos (ORD)",type:r,img:"ord.jpg",countryIco:"us"},{code:"PRG",label:"Praga, Rep\xFAblica Checa (PRG)",type:r,img:"prg.jpg",countryIco:"CZ"},{code:"PUJ",label:"Punta Cana, Rep\xFAblica Dominicana (PUJ)",type:r,img:"puj.jpg",countryIco:"do"},{code:"PVR",label:"Puerto Vallarta, M\xE9xico (PVR)",type:r,img:"pvr.jpg",countryIco:"mx"},{code:"RIO",label:"Rio de Janeiro, Brasil (RIO)",type:r,img:"rio.jpg",countryIco:"br"},{code:"SAO",label:"Sao Paulo, Brasil (SAO)",type:r,img:"sao.jpg",countryIco:"br"},{code:"SCL",label:"Santiago de Chile, Chile (SCL)",type:r,img:"scl.jpg",countryIco:"cl"},{code:"SFO",label:"San Francisco, Estados Unidos (SFO)",type:r,img:"sfo.jpg",countryIco:"us"},{code:"ROM",label:"Roma, Italia (ROM)",type:r,img:"rom.jpg",countryIco:"it"},{code:"SEL",label:"Seoul, Corea del Sur (Rep\xFAblica) (SEL)",type:r,img:"sel.jpg",countryIco:"kr"},{code:"SHA",label:"Shanghai, China (SHA)",type:r,img:"sha.jpg",countryIco:"cn"},{code:"SJO",label:"San Jos\xE9, Costa Rica (SJO)",type:r,img:"sjo.jpg",countryIco:"cr"},{code:"SRE",label:"Sucre, Bolivia (SRE)",type:r,img:"sre.jpg",countryIco:"bo"},{code:"SYD",label:"Sydney, Australia (SYD)",type:r,img:"syd.jpg",countryIco:"au"},{code:"SIN",label:"Singapore, Singapur (SIN)",type:r,img:"sin.jpg",countryIco:"sg"},{code:"TPE",label:"Taipei, Taiw\xE1n (TPE)",type:r,img:"tpe.jpg",countryIco:"tw"},{code:"TYO",label:"Tokio, Jap\xF3n (TYO)",type:r,img:"tyo.jpg",countryIco:"jp"},{code:"LON",label:"London, Gran Breta\xF1a (LON)",type:r,img:"lon.jpg",countryIco:"gb"},{code:"ORL",label:"Orlando, Estados Unidos (ORL)",type:r,img:"orl.jpg",countryIco:"us"},{code:"BUE",label:"Buenos Aires, Argentina (BUE)",type:r,img:"bue.jpg",countryIco:"ar"},{code:"CUN",label:"Cancun, M\xE9xico (CUN)",type:r,img:"cun.jpg",countryIco:"mx"},{code:"MEX",label:"Mexico D.F., M\xE9xico (MEX)",type:r,img:"mex.jpg",countryIco:"mx"},{code:"PTY",label:"Panam\xE1 Ciudad, Panam\xE1 (PTY)",type:r,img:"pty.jpg",countryIco:"pa"},{code:"LIM",label:"Lima, Per\xFA (LIM)",type:r,img:"lim.jpg",countryIco:"pe"},{code:"FLL",label:"Fort Lauderdale, Estados Unidos (FLL)",type:r,img:"fll.jpg",countryIco:"us"},{code:"BOG",label:"Eldorado Intl, Bogot\xE1, Colombia (BOG)",type:n,img:"bog.jpg",countryIco:"co"},{code:"CTG",label:"Rafael Nunez, Cartagena, Colombia (CTG)",type:n,img:"ctg.jpg",countryIco:"co"},{code:"SMR",label:"Simon Bolivar, Santa Marta, Colombia (SMR)",type:n,img:"smr.jpg",countryIco:"co"},{code:"ADZ",label:"Gustavo Rojas Pinilla, San Andr\xE9s Isla, Colombia (ADZ)",type:n,img:"adz.jpg",countryIco:"co"},{code:"MDE",label:"Jose Maria Cordova, Medell\xEDn, Colombia (MDE)",type:n,img:"mde.jpg",countryIco:"co"},{code:"CLO",label:"Alfonso Bonilla Aragon Intl, Cali, Colombia (CLO)",type:n,img:"clo.jpg",countryIco:"co"},{code:"BAQ",label:"Ernesto Cortissoz, Barranquilla, Colombia (BAQ)",type:n,img:"baq.jpg",countryIco:"co"},{code:"BGA",label:"Palonegro, Bucaramanga, Colombia (BGA)",type:n,img:"bga.jpg",countryIco:"co"},{code:"PEI",label:"Matecana, Pereira, Colombia (PEI)",type:n,img:"pei.jpg",countryIco:"co"},{code:"CUC",label:"Camilo Daza, C\xFAcuta, Colombia (CUC)",type:n,img:"cuc.jpg",countryIco:"co"},{code:"EOH",label:"Olaya Herrera, Medell\xEDn, Colombia (EOH)",type:n,img:"eoh.jpg",countryIco:"co"},{code:"AXM",label:"Armenia, Colombia (AXM)",type:n,img:"axm.jpg",countryIco:"co"},{code:"LET",label:"Leticia, Colombia (LET)",type:n,img:"let.jpg",countryIco:"co"},{code:"MTR",label:"Monter\xEDa, Colombia (MTR)",type:n,img:"mtr.jpg",countryIco:"co"},{code:"MZL",label:"Manizales, Colombia (MZL)",type:n,img:"mzl.jpg",countryIco:"co"},{code:"MIA",label:"Miami Intl, Miami, Estados Unidos (MIA)",type:n,img:"mia.jpg",countryIco:"us"},{code:"EWR",label:"Newark Liberty Intl, Nueva York, Estados Unidos (EWR)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"JFK",label:"John F Kennedy Intl, Nueva York, Estados Unidos (JFK)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"LGA",label:"La Guardia, Nueva York, Estados Unidos (LGA)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"MAD",label:"Barajas, Madrid, Espa\xF1a (MAD)",type:n,img:"mad.jpg",countryIco:"es"},{code:"PAR",label:"Paris, Francia (PAR)",type:n,img:"par.jpg",countryIco:"fr"},{code:"BER",label:"Berlin, Alemania (BER)",type:n,img:"ber.jpg",countryIco:"de"},{code:"BKK",label:"Bangkok, Tailandia (BKK)",type:n,img:"bkk.jpg",countryIco:"th"},{code:"ASU",label:"Asunci\xF3n, Paraguay (ASU)",type:n,img:"asu.jpg",countryIco:"py"},{code:"CCS",label:"Caracas, Venezuela (CCS)",type:n,img:"css.jpg",countryIco:"ve"},{code:"CPH",label:"Copenhagen, Dinamarca (CPH)",type:n,img:"cph.jpg",countryIco:"dk"},{code:"CPT",label:"Cape Town, Sud\xE1frica (CPT)",type:n,img:"cpt.jpg",countryIco:"za"},{code:"CUZ",label:"Cuzco, Per\xFA (CUZ)",type:n,img:"cuz.jpg",countryIco:"pe"},{code:"FRA",label:"Frankfurt, Alemania (FRA)",type:n,img:"fra.jpg",countryIco:"de"},{code:"GOT",label:"Goteborg, Suecia (GOT)",type:n,img:"got.jpg",countryIco:"se"},{code:"HAV",label:"La Habana, Cuba (HAV)",type:n,img:"hav.jpg",countryIco:"cu"},{code:"HKG",label:"Hong Kong, Hong Kong (HKG)",type:n,img:"hkg.jpg",countryIco:"hk"},{code:"HOU",label:"Houston, Estados Unidos (HOU)",type:n,img:"hou.jpg",countryIco:"us"},{code:"IST",label:"Estambul, Turqu\xEDa (IST)",type:n,img:"ist.jpg",countryIco:"tr"},{code:"KUL",label:"Kuala Lumpur, Malasya (KUL)",type:n,img:"kul.jpg",countryIco:"my"},{code:"LAX",label:"Los \xC1ngeles, Estados Unidos (LAX)",type:n,img:"lax.jpg",countryIco:"us"},{code:"LIS",label:"Lisboa, Portugal (LIS)",type:n,img:"lis.jpg",countryIco:"pt"},{code:"MIL",label:"Mil\xE1n, Italia (MIL)",type:n,img:"mil.jpg",countryIco:"it"},{code:"MOW",label:"Moscow, Rusia (MOW)",type:n,img:"mow.jpg",countryIco:"ru"},{code:"MVD",label:"Montevideo, Uruguay (MVD)",type:n,img:"mvd.jpg",countryIco:"uy"},{code:"TOJ",label:"Torrejon, Madrid, Espa\xF1a (TOJ)",type:n,img:"mad.jpg",countryIco:"es"},{code:"DWS",label:"Orlando, Orlando, Estados Unidos (DWS)",type:n,img:"orl.jpg",countryIco:"us"},{code:"MCO",label:"Orlando Intl, Orlando, Estados Unidos (MCO)",type:n,img:"orl.jpg",countryIco:"us"},{code:"ORL",label:"Executive, Orlando, Estados Unidos (ORL)",type:n,img:"orl.jpg",countryIco:"us"},{code:"SFB",label:"Orlando Sanford Intl, Orlando, Estados Unidos (SFB)",type:n,img:"orl.jpg",countryIco:"us"},{code:"AEP",label:"Aeroparque Jorge Newbery, Buenos Aires, Argentina (AEP)",type:n,img:"bue.jpg",countryIco:"ar"},{code:"CUN",label:"Cancun Intl, Canc\xFAn, M\xE9xico (CUN)",type:n,img:"cun.jpg",countryIco:"mx"},{code:"PTY",label:"Tocumen Intl, Panam\xE1 Ciudad, Panam\xE1 (PTY)",type:n,img:"pty.jpg",countryIco:"pa"},{code:"LIM",label:"Jorge Chavez Intl, Lima, Per\xFA (LIM)",type:n,img:"lim.jpg",countryIco:"pe"},{code:"FLL",label:"Fort Lauderdale Hollywood Intl, Fort Lauderdale, Estados Unidos (FLL)",type:n,img:"fll.jpg",countryIco:"us"}],g=[{code:"AV",label:"Avianca (AV)",type:p},{code:"LA",label:"Latam Airlines (LA)",type:p},{code:"CM",label:"Copa Airlines (CM)",type:p},{code:"AA",label:"American Airlines (AA)",type:p},{code:"AM",label:"Aeromexico (AM)",type:p},{code:"IB",label:"Iberia (IB)",type:p},{code:"B6",label:"Jetblue Airways (B6)",type:p},{code:"DL",label:"Delta Air Lines (DL)",type:p},{code:"UA",label:"United Airlines (UA)",type:p},{code:"LH",label:"Lufthansa (LH)",type:p},{code:"AF",label:"Air France (AF)",type:p},{code:"TP",label:"Tap Portugal (TP)",type:p},{code:"V0",label:"Conviasa (V0)",type:p},{code:"US",label:"Us Airways (US)",type:p},{code:"KL",label:"Klm Royal Dutch Airlines (KL)",type:p}],u=[{code:"BOG",label:"Bogot\xE1, Colombia(BOG)",type:r},{code:"CTG",label:"Cartagena, Colombia (CTG)",type:r},{code:"SMR",label:"Santa Marta, Colombia (SMR)",type:r},{code:"ADZ",label:"San Andr\xE9s Isla, Colombia (ADZ)",type:r},{code:"MDE",label:"Medell\xEDn, Colombia (MDE)",type:r},{code:"CLO",label:"Cali, Colombia (CLO)",type:r},{code:"BAQ",label:"Barranquilla, Colombia (BAQ)",type:r},{code:"BGA",label:"Bucaramanga, Colombia (BGA)",type:r},{code:"PEI",label:"Pereira, Colombia (PEI)",type:r},{code:"CUC",label:"C\xFAcuta, Colombia (CUC)",type:r},{code:"AXM",label:"Armenia, Colombia (AXM)",type:r},{code:"EOH",label:"Olaya Herrera, Medell\xEDn, Colombia (EOH)",type:r},{code:"LET",label:"Leticia, Colombia (LET)",type:r},{code:"MTR",label:"Monter\xEDa, Colombia (MTR)",type:r},{code:"MZL",label:"Manizales, Colombia (MZL)",type:r},{code:"MIA",label:"Miami, Estados Unidos (MIA)",type:r},{code:"NYC",label:"Nueva York, Estados Unidos (NYC)",type:r},{code:"MAD",label:"Madrid, Espa\xF1a (MAD)",type:r},{code:"PAR",label:"Paris, Francia (PAR)",type:r},{code:"AMS",label:"Amsterdam, Pa\xEDses Bajos (AMS)",type:r},{code:"ASU",label:"Asunci\xF3n, Paraguay (ASU)",type:r},{code:"BER",label:"Berlin, Alemania (BER)",type:r},{code:"BKK",label:"Bangkok, Tailandia (BKK)",type:r},{code:"CCS",label:"Caracas, Venezuela (CCS)",type:r},{code:"BOS",label:"Boston, Estados Unidos (BOS)",type:r},{code:"CPH",label:"Copenhagen, Dinamarca (CPH)",type:r},{code:"CUZ",label:"Cuzco, Per\xFA (CUZ)",type:r},{code:"GPS",label:"Galapagos, Ecuador (GPS)",type:r},{code:"FRA",label:"Frankfurt, Alemania (FRA)",type:r},{code:"CPT",label:"Cape Town, Sud\xE1frica (CPT)",type:r},{code:"HAV",label:"La Habana, Cuba (HAV)",type:r},{code:"GOT",label:"Goteborg, Suecia (GOT)",type:r},{code:"HKG",label:"Hong Kong, Hong Kong (HKG)",type:r},{code:"HOU",label:"Houston, Estados Unidos (HOU)",type:r},{code:"IST",label:"Estambul, Turqu\xEDa (IST)",type:r},{code:"KUL",label:"Kuala Lumpur, Malasya (KUL)",type:r},{code:"LAX",label:"Los \xC1ngeles, Estados Unidos (LAX)",type:r},{code:"LIS",label:"Lisboa, Portugal (LIS)",type:r},{code:"MIL",label:"Mil\xE1n, Italia (MIL)",type:r},{code:"MOW",label:"Moscow, Rusia (MOW)",type:r},{code:"MVD",label:"Montevideo, Uruguay (MVD)",type:r},{code:"ORL",label:"Orlando, Estados Unidos (ORL)",type:r},{code:"BUE",label:"Buenos Aires, Argentina (BUE)",type:r},{code:"CUN",label:"Cancun, M\xE9xico (CUN)",type:r},{code:"MEX",label:"Mexico D.F., M\xE9xico (MEX)",type:r},{code:"PTY",label:"Panam\xE1 Ciudad, Panam\xE1 (PTY)",type:r},{code:"LIM",label:"Lima, Per\xFA (LIM)",type:r},{code:"FLL",label:"Fort Lauderdale, Estados Unidos (FLL)",type:r}],m=[{code:"bogota",label:"Bogot\xE1, Colombia(BOG)",type:r},{code:"cartagena",label:"Cartagena, Colombia (CTG)",type:r},{code:"santa marta",label:"Santa Marta, Colombia (SMR)",type:r},{code:"san andres isla",label:"San Andr\xE9s Isla, Colombia (ADZ)",type:r},{code:"medellin",label:"Medell\xEDn, Colombia (MDE)",type:r},{code:"cali",label:"Cali, Colombia (CLO)",type:r},{code:"barranquilla",label:"Barranquilla, Colombia (BAQ)",type:r},{code:"bucaramanga",label:"Bucaramanga, Colombia (BGA)",type:r},{code:"pereira",label:"Pereira, Colombia (PEI)",type:r},{code:"cucuta",label:"C\xFAcuta, Colombia (CUC)",type:r},{code:"armenia",label:"Armenia, Colombia (AXM)",type:r},{code:"olaya",label:"Olaya Herrera, Medell\xEDn, Colombia (EOH)",type:r},{code:"leticia",label:"Leticia, Colombia (LET)",type:r},{code:"monteria",label:"Monter\xEDa, Colombia (MTR)",type:r},{code:"manizales",label:"Manizales, Colombia (MZL)",type:r},{code:"miami",label:"Miami, Estados Unidos (MIA)",type:r},{code:"nueva york",label:"Nueva York, Estados Unidos (NYC)",type:r},{code:"madrid",label:"Madrid, Espa\xF1a (MAD)",type:r},{code:"paris",label:"Paris, Francia (PAR)",type:r},{code:"amsterdam",label:"Amsterdam, Pa\xEDses Bajos (AMS)",type:r},{code:"asuncion",label:"Asunci\xF3n, Paraguay (ASU)",type:r},{code:"berlin",label:"Berlin, Alemania (BER)",type:r},{code:"bangkok",label:"Bangkok, Tailandia (BKK)",type:r},{code:"caracas",label:"Caracas, Venezuela (CCS)",type:r},{code:"boston",label:"Boston, Estados Unidos (BOS)",type:r},{code:"copenhagen",label:"Copenhagen, Dinamarca (CPH)",type:r},{code:"cuzco",label:"Cuzco, Per\xFA (CUZ)",type:r},{code:"galapagos",label:"Galapagos, Ecuador (GPS)",type:r},{code:"frankfurt",label:"Frankfurt, Alemania (FRA)",type:r},{code:"cape town",label:"Cape Town, Sud\xE1frica (CPT)",type:r},{code:"la habana",label:"La Habana, Cuba (HAV)",type:r},{code:"goteborg",label:"Goteborg, Suecia (GOT)",type:r},{code:"hong kong",label:"Hong Kong, Hong Kong (HKG)",type:r},{code:"houston",label:"Houston, Estados Unidos (HOU)",type:r},{code:"estambul",label:"Estambul, Turqu\xEDa (IST)",type:r},{code:"kuala lumpur",label:"Kuala Lumpur, Malasya (KUL)",type:r},{code:"los angeles",label:"Los \xC1ngeles, Estados Unidos (LAX)",type:r},{code:"lisboa",label:"Lisboa, Portugal (LIS)",type:r},{code:"milan",label:"Mil\xE1n, Italia (MIL)",type:r},{code:"moscow",label:"Moscow, Rusia (MOW)",type:r},{code:"montevideo",label:"Montevideo, Uruguay (MVD)",type:r},{code:"orlando",label:"Orlando, Estados Unidos (ORL)",type:r},{code:"buenos aires",label:"Buenos Aires, Argentina (BUE)",type:r},{code:"cancun",label:"Cancun, M\xE9xico (CUN)",type:r},{code:"mexico",label:"Mexico D.F., M\xE9xico (MEX)",type:r},{code:"panama",label:"Panam\xE1 Ciudad, Panam\xE1 (PTY)",type:r},{code:"lima",label:"Lima, Per\xFA (LIM)",type:r},{code:"fort lauderdale",label:"Fort Lauderdale, Estados Unidos (FLL)",type:r}],h=[{code:"BOG",label:"Eldorado Intl, Bogot\xE1, Colombia (BOG)",type:n,img:"bog.jpg",countryIco:"co"},{code:"CTG",label:"Rafael Nunez, Cartagena, Colombia (CTG)",type:n,img:"ctg.jpg",countryIco:"co"},{code:"SMR",label:"Simon Bolivar, Santa Marta, Colombia (SMR)",type:n,img:"smr.jpg",countryIco:"co"},{code:"ADZ",label:"Gustavo Rojas Pinilla, San Andr\xE9s Isla, Colombia (ADZ)",type:n,img:"adz.jpg",countryIco:"co"},{code:"MDE",label:"Jose Maria Cordova, Medell\xEDn, Colombia (MDE)",type:n,img:"mde.jpg",countryIco:"co"},{code:"CLO",label:"Alfonso Bonilla Aragon Intl, Cali, Colombia (CLO)",type:n,img:"clo.jpg",countryIco:"co"},{code:"BAQ",label:"Ernesto Cortissoz, Barranquilla, Colombia (BAQ)",type:n,img:"baq.jpg",countryIco:"co"},{code:"BGA",label:"Palonegro, Bucaramanga, Colombia (BGA)",type:n,img:"bga.jpg",countryIco:"co"},{code:"PEI",label:"Matecana, Pereira, Colombia (PEI)",type:n,img:"pei.jpg",countryIco:"co"},{code:"CUC",label:"Camilo Daza, C\xFAcuta, Colombia (CUC)",type:n,img:"cuc.jpg",countryIco:"co"},{code:"MIA",label:"Miami Intl, Miami, Estados Unidos (MIA)",type:n,img:"mia.jpg",countryIco:"us"},{code:"EWR",label:"Newark Liberty Intl, Nueva York, Estados Unidos (EWR)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"JFK",label:"John F Kennedy Intl, Nueva York, Estados Unidos (JFK)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"LGA",label:"La Guardia, Nueva York, Estados Unidos (LGA)",type:n,img:"nyc.jpg",countryIco:"us"},{code:"MAD",label:"Barajas, Madrid, Espa\xF1a (MAD)",type:n,img:"mad.jpg",countryIco:"es"},{code:"TOJ",label:"Torrejon, Madrid, Espa\xF1a (TOJ)",type:n,img:"mad.jpg",countryIco:"es"},{code:"DWS",label:"Orlando, Orlando, Estados Unidos (DWS)",type:n,img:"orl.jpg",countryIco:"us"},{code:"MCO",label:"Orlando Intl, Orlando, Estados Unidos (MCO)",type:n,img:"orl.jpg",countryIco:"us"},{code:"ORL",label:"Executive, Orlando, Estados Unidos (ORL)",type:n,img:"orl.jpg",countryIco:"us"},{code:"SFB",label:"Orlando Sanford Intl, Orlando, Estados Unidos (SFB)",type:n,img:"orl.jpg",countryIco:"us"},{code:"AEP",label:"Aeroparque Jorge Newbery, Buenos Aires, Argentina (AEP)",type:n,img:"bue.jpg",countryIco:"ar"},{code:"CUN",label:"Cancun Intl, Canc\xFAn, M\xE9xico (CUN)",type:n,img:"cun.jpg",countryIco:"mx"},{code:"PTY",label:"Tocumen Intl, Panam\xE1 Ciudad, Panam\xE1 (PTY)",type:n,img:"pty.jpg",countryIco:"pa"},{code:"LIM",label:"Jorge Chavez Intl, Lima, Per\xFA (LIM)",type:n,img:"lim.jpg",countryIco:"pe"},{code:"FLL",label:"Fort Lauderdale Hollywood Intl, Fort Lauderdale, Estados Unidos (FLL)",type:n,img:"fll.jpg",countryIco:"us"}],v=[{code:"15",label:"Bogota Salitre, Distrito Capital",type:l},{code:"28",label:"Barranquilla, Atlantico",type:l},{code:"29",label:"Cartagena, Bolivar",type:l},{code:"1",label:"Medellin, Antioquia",type:l},{code:"17",label:"Armenia, Quindio",type:l},{code:"20",label:"Cali, Valle Del Cauca",type:l},{code:"46",label:"Riohacha, La Guajira",type:l},{code:"43",label:"Valledupar, Cesar",type:l},{code:"34",label:"Bucaramanga, Santander",type:l}],f=[{code:"BOG",label:"Bogota, Colombia (BOG)",type:r,img:"bog.jpg",countryIco:"co"},{code:"CTG",label:"Cartagena, Colombia (CTG)",type:r,img:"ctg.jpg",countryIco:"co"},{code:"SMR",label:"Santa Marta, Colombia (SMR)",type:r,img:"smr.jpg",countryIco:"co"},{code:"GIO",label:"GIO Hotel Tama Cartagena",type:c},{code:"SON",label:"Sonesta Hotel Cartagena",type:c},{code:"BOG",label:"Eldorado Intl, Bogot\xE1, Colombia (BOG)",type:n,img:"bog.jpg",countryIco:"co"},{code:"CTG",label:"Rafael Nunez, Cartagena, Colombia (CTG)",type:n,img:"ctg.jpg",countryIco:"co"},{code:"SMR",label:"Simon Bolivar, Santa Marta, Colombia (SMR)",type:n,img:"smr.jpg",countryIco:"co"},{code:"GIO",label:"GIO Hotel Tama Cartagena",type:d},{code:"CTG",label:"Aeropuerto Internacional Rafael N\xFA\xF1ez",type:d}],b=[{code:"12226",label:"Paris (All stations)",type:l,icon:"city"},{code:"1999",label:"London (All stations)",type:l,icon:"city"},{code:"6130",label:"Madrid (All stations)",type:l,icon:"city"},{code:"2031",label:"Lyon (All stations)",type:l,icon:"city"},{code:"12142",label:"Amsterdam (All stations)",type:l,icon:"city"}],x=function(e,t,a,p,l,g,c){t="undefined"==typeof t?indexUrl+"buscar/cities-autocomplete/flight/":t,a="undefined"==typeof a?y:a,p="undefined"==typeof p?r:p,l="undefined"==typeof l?n:l,g="undefined"==typeof g||g,c="undefined"!=typeof c&&c;var u=[],d={},m=s(e),h=s(e+"Validate"),v;h.catcomplete({source:function(e,o){if(3===e.term.length)u=[],d.term=e.term,c&&(d[c.replace(/[^a-z]/gi,"")]=s("#"+c).val()),s.ajax({url:t,async:!0,data:d,success:function(r){for(var y=r.split(";"),a={},h=0,i=0,n=y.length,f,t;i<n;i++){0===i?f=p:1===i&&(f=l),t=y[i].split("-");for(var c=0,m=t.length,b;c<m;c++)b=t[c].split(":"),a[h]={},a[h].code=b[0],a[h].label=g?b[1]+" ("+b[0]+")":b[1],a[h].countrycode=b[2],a[h].type=f,u[h]=[],u[h].code=a[h].code,u[h].label=a[h].label,u[h].countrycode=a[h].countrycode,u[h].type=f,h++}v=a,o(s.ui.autocomplete.filter(u,e.term)),T(u)}});else if(0<u.length)o(s.ui.autocomplete.filter(u,e.term)),T(u);else if(3>e.term.length)o(s.ui.autocomplete.filter(a,e.term)),j();else{var i=[{code:"",label:"Buscando...",type:p}];o(s.ui.autocomplete.filter(i,"busc"));var r=function t(a){setTimeout(function(){0<u.length?(o(s.ui.autocomplete.filter(u,e.term)),T(u)):t(a)},a)};r(250)}},minLength:1,select:function(t,e){e.item.code&&"NN"!==e.item.code?(-1!==s(t.target).attr("id").indexOf("destination")&&k(e.item.code),m.val(e.item.code),h.val(e.item.label).trigger("blur")):t.preventDefault(),"r"===i.a.instances.flighttype&&"undefined"!=typeof s("#date-return1").val()&&0!==s("#date-return1").val().length&&"undefined"!=typeof o.a?(o.a.clearRS(),o.a.sendRequest("return")):"undefined"!=typeof o.a&&o.a.clearRS(),"undefined"!=typeof s("#date1").val()&&0!==s("#date1").val().length&&"undefined"!=typeof o.a&&o.a.sendRequest("dep")},focus:function(t,e){e.item.code&&"NN"!==e.item.code||t.preventDefault()},change:function(t,e){null!==e.item&&e.item.code&&"NN"!==e.item.code||(0<u.length?w(m,h,u,v):w(m,h,a,v))},delay:0})},w=function(e,t,a,i){var o=t.val().split("").reverse().join("");if((null===e.val()||""===e.val()||")"+e.val().split("").reverse().join("")+"("!=o.substr(0,o.indexOf("(")+1))&&0<a.length){var r=s.ui.autocomplete.filter(a,t.val());0<r.length?(e.val(r[0].code),t.val(r[0].label)):i&&i[0].code&&"NN"!==i[0].code&&(e.val(i[0].code),t.val(i[0].label))}};s.widget("custom.catcomplete",s.ui.autocomplete,{_renderMenu:function(e,t){var a=this,i="";/destination[0-9]*Validate/.test(this.element[0].id)&&-1===e[0].className.indexOf("destination-list")&&(e[0].className+=" destination-list");var o,r;s.each(t,function(n,p){if(p.type!==i){var l=s.extend({},p);l.label=l.type,a._renderItemData(e,l).addClass("ui-autocomplete-category"),i=p.type}if(!(p.code&&"NN"!==p.code))a._renderItemData(e,p).addClass("ui-disabled-state");else if(-1===location.pathname.indexOf("/trenes/"))a._renderItemData(e,p),o=p.label,r=p.countrycode;else if("undefined"!=typeof t[n-1]){var c=t[n-1];-1!==p.label.indexOf(o)&&p.countrycode==r&&+c.code+1==p.code?(p.label=p.label,a._renderItemData(e,p).addClass("ui-menu-item-subitem")):(a._renderItemData(e,p),o=p.label,r=p.countrycode)}else a._renderItemData(e,p),o=p.label,r=p.countrycode})}});var k=function(e){var t=s(".js-headerImg"),a=s(".js-headerVideo");if(t.length&&-1===s(".responsive-js").css("content").indexOf("palm")&&/[A-Z]{3}/.test(e)&&"1"!==s(".js-hdBlackFriday").val()){for(var o=0,i;o<y.length;o++)if(y[o].code!==e)i="/assets/aviatur_assets/img/header/covers/snapshots/background_default.jpg?v169e3e061f4";else if(y[o].img){i="/assets/aviatur_assets/img/places/"+y[o].img;break}i||(i="/assets/aviatur_assets/img/places/"+e+".jpg");var r="https://aviaturcdndev.z5.web.core.windows.net/assets/aviatur_assets/img/header/covers/snapshots/background_default.webp";s.get(i).done(function(){a.length&&!a.hasClass("js-hidden")?(t.hide(0),a.fadeOut(200,function(){t.css("background-image","url("+i+")").fadeIn(200)}).addClass("js-hidden")):t.fadeOut(200,function(){s(this).css("background-image","url("+i+")")}).fadeIn(200)}).fail(function(){a.length&&!a.hasClass("js-hidden")?(t.hide(0),a.fadeOut(200,function(){t.css("background-image","url("+r+")").fadeIn(200)}).addClass("js-hidden")):t.fadeOut(200,function(){s(this).css("background-image","url("+r+")")}).fadeIn(200)})}},T=function(e){for(var t=[],a=[],s=0;s<e.length;s++)e[s].code&&e[s].countrycode&&(2==e[s].countrycode.length?t.push({iata:e[s].code,alfa2:e[s].countrycode.toLowerCase()}):2<e[s].countrycode.length&&a.push({label:e[s].label,type:e[s].countrycode.toLowerCase()}));0<t.length&&j(t),0<a.length&&C(a)},j=function(e){var t=s("ul.ui-autocomplete li");0>=t.length&&(t=s("ul.ui-autocomplete-flight li")),s("ul.ui-autocomplete li.ui-autocomplete-category").each(function(){var e=s(this).text();"Ciudades"==e&&s(this).prepend("<span class=\"material-symbols-outlined w-[20px] h-[20px] text-[#000] l:text-[#000] m:text-[#042A44] s:text-[#042A44] xs:text-[#042A44]\" style=\"font-variation-settings: 'FILL' 0\">location_on</span>"),"Hoteles"==e&&s(this).prepend("<span class=\"material-symbols-outlined w-[20px] h-[20px] text-[#FFFFFF] l:text-[#FFFFFF] m:text-[#042A44] s:text-[#042A44] xs:text-[#042A44]\">concierge</span>"),"Aeropuertos"==e&&s(this).prepend("<span class=\"material-symbols-outlined w-[20px] h-[20px] text-[#FFFFFF] l:text-[#FFFFFF] m:text-[#042A44] s:text-[#042A44] xs:text-[#042A44] \">flight_takeoff</span>"),"Zonas de interes"==e&&s(this).prepend("<span class=\"material-symbols-outlined w-[20px] h-[20px] text-[#FFFFFF] l:text-[#FFFFFF] m:text-[#042A44] s:text-[#042A44] xs:text-[#042A44] \"> camping </span>")}),t.each(function(){var t=s(this).text();if(/\([A-Z]{3}\)/.test(t)){var a=t.match(/\([A-Z]{3}\)/)[0].slice(1,4);if(e){for(var o=0;o<e.length;o++)if(e[o].iata===a&&!s(this).find("img.countryIco").length){s(this).prepend("<img class=\"countryIco\" src=\"/assets/aviatur_assets/img/flags/flags_iso/16/"+e[o].alfa2+".png\"></img>");break}}else for(var o=0;o<y.length;o++)if(y[o].code===a&&y[o].countryIco){s(this).prepend("<img class=\"countryIco\" src=\"/assets/aviatur_assets/img/flags/flags_iso/16/"+y[o].countryIco+".png\"></img>");break}}})},C=function(e){console.log("Entra a prepend"),s("ul.ui-autocomplete li").each(function(){var t=s(this).text();if(e){for(var a=0;a<e.length;a++)if(e[a].label===t&&!s(this).find("img.countryIco").length){s(this).prepend("<img class=\"countryIco\" src=\"/assets/common_assets/img/train/icon/"+e[a].type+".png\"></img>");break}}else for(var a=0;a<y.length;a++)if(y[a].label===t&&y[a].icon){s(this).prepend("<img class=\"countryIco\" src=\"/assets/common_assets/img/train/icon/"+y[a].icon+".png\"></img>");break}})};s(document).ready(function(){e.ui._isMobile()&&s(".js-searchForm").on("click",".js-scrollToTop",function(){s("html,body").animate({scrollTop:s(this).offset().top-15},"slow")})})}).call(t,a("86YC"),a("T6cr"))},ncd9:function(e,t,a){"use strict";var i=Math.floor;(function(o,e,s){var r=a("cq/L"),n=a("FRZn"),p=a.n(n),l=function(){var t=function(e,t,i){var p=[],c=void 0,d=void 0,y=void 0,g=void 0,u=[];if(void 0===e.FlightSegment[0]){var m=e.FlightSegment;e.FlightSegment=[],e.FlightSegment[0]=m}var h=null;c=0,o(e.FlightSegment).each(function(){if(null!==h){var t=new Date(this["@attributes"].DepartureDateTime),i=new Date(h);c+=parseInt((t.getTime()/1e3-i.getTime()/1e3)/60),this.StopoverLength=a(parseInt((t.getTime()/1e3-i.getTime()/1e3)/60))}this.FlightLength=a(parseInt(this.Comment[12].split(": ")[1])),this["@attributes"].DepartureCityName=this.Comment[2].split(": ")[1],this["@attributes"].ArrivalCityName=this.Comment[9].split(": ")[1],this["@attributes"].DepartureAirportName=this.Comment[0].split(": ")[1],this["@attributes"].DepartureLocaleDateTime=n(new Date(this["@attributes"].DepartureDateTime)),this["@attributes"].ArrivalAirportName=this.Comment[7].split(": ")[1],this["@attributes"].DepartureHour=s(this["@attributes"].DepartureDateTime,"DD-MM-YY HH:mm").format("HH:mm"),this["@attributes"].ArrivalHour=s(this["@attributes"].ArrivalDateTime,"DD-MM-YY HH:mm").format("HH:mm"),this["@attributes"].PriceType=e["@attributes"].PriceType,this["@attributes"].RefNumber=e["@attributes"].RefNumber,this.attributes=this["@attributes"],c+=parseInt(this.Comment[12].split(": ")[1]),h=this["@attributes"].ArrivalDateTime,void 0!==this.Equipment["@text"]&&(this.Equipment=this.Equipment["@text"]),p.push(this)});var v=p.length-1;c=void 0!==e["@attributes"].TotalDuration&&null!==e["@attributes"].TotalDuration?e["@attributes"].TotalDuration:void 0!==e["@attributes"].TotalDurationMin&&null!==e["@attributes"].TotalDurationMin?a(e["@attributes"].TotalDurationMin):void 0!==e.FlightSegment[0].TPA_Extensions.OriginDestinationOptionDuration&&null!==e.FlightSegment[0].TPA_Extensions.OriginDestinationOptionDuration?a(e.FlightSegment[0].TPA_Extensions.OriginDestinationOptionDuration):a(c);var f=new Date(p[0]["@attributes"].DepartureDateTime);f=f.setHours(f.getHours()-f.getTimezoneOffset()/60);var b=new Date(f),x=new Date(p[v]["@attributes"].ArrivalDateTime);x=x.setHours(x.getHours()-x.getTimezoneOffset()/60);var l=new Date(x);return d=b.toISOString().slice(0,10),y=l.toISOString().slice(0,10),g=!0,"fare"===i.ffType&&(g=!1),d<y&&(u.diff=r(d,y)),u.flights=p,u.airlineFareTypes=t,u.totalDuration=c,u.departureDate=d,u.arrivalDate=y,u.showFareInfo=g,u},a=function(e){e=parseInt(e);var t=i(e/60),a=i(e%60);return t+"h "+a+"m"},r=function(e,t){var a=e.split("-"),s=t.split("-"),o=Date.UTC(a[0],a[1]-1,a[2]),r=Date.UTC(s[0],s[1]-1,s[2]),n=i((r-o)/86400000);return n},n=function(e){return e.toLocaleDateString("co-co",{weekday:"long",year:"numeric",month:"long",day:"numeric"})};return{results:"#flight-results",options:"#flight-results .js-flight-block",hotelData:{},tooltipBestPrice:"<span class=\"tooltips-content\">Mejores tarifas encontradas para esas fechas!</span>",availRetries:1,availResults:0,loaded:!1,hasFF:0,alert:!1,ffType:function(){return("undefined"==typeof defaultFfType||"undefined"!=typeof ajaxUrlMultiAvail)&&(window.defaultFfType="price"),o(".js-ffOption.active").data("fftype")||e.url._getQueryParam("ffType")||defaultFfType},toggleFilterButtons:function(){var t=o(".js-toggleFilterAvail");return l.loaded?void("price"===l.ffType()?e.ui._isMobile()?t.hide().not(".js-availFilters").show():t.hide().not(".js-toggleFilters").show():t.hide().not(".js-availFilters, .js-toggleFilters").show()):void t.hide()},ajaxDetailHandler:function(a,e){e=e||{};var i=o("#js-body-detailAvailability").empty(),s=o("#js-spinner-detailAvailability").show(),r=o(this).closest(".js-flight-block"),n=r.find("input[name='flightTransactionID']").val(),c=r.find("input[name='flightPricedID']").val().split("*"),d=o(this).data("refnumber"),y=o(this).data("rph"),g=o(this).data("provider");if(_loadSpinner("js-spinOverlay-detailAvailability"),o(".js-ajaxDetailAvailability").data("state",""),o(this).data("state","loading"),i.data("activedetail",""+n+c[0]+d+y+g),i.data("activedetail")===""+n+c[0]+d+y+g){if("fare"===e.ffType){var u=o(this).data("infoflight").split("|"),m=u[0];"VH"==m&&(m="FC");var h=l.data.airlineFares[parseInt(u[3]-1)][m][u[2]],v=void 0;for(var f in h.fares){v=h.fares[f].flightInfo;break}i.empty().html(p()(t(v,e))),s.hide()}else if("price"===e.ffType){var b=JSON.parse(l.data.flights),x=l.data.airlineFareTypes,w=o(this).parents("form").data("index"),k=o(this).parents(".js-flight-option").data("index-flight")-1,T=o(this).parents(".js-flight-option").children("input").val(),j=b.PricedItineraries.PricedItinerary[w],C=!1;if(void 0===j&&(j=b.PricedItineraries.PricedItinerary),void 0===j.AirItinerary.OriginDestinationOptions.OriginDestinationOption[0]){var _=j.AirItinerary.OriginDestinationOptions.OriginDestinationOption;j.AirItinerary.OriginDestinationOptions.OriginDestinationOption=[],j.AirItinerary.OriginDestinationOptions.OriginDestinationOption[0]=_}if(void 0!==j.AirItinerary.OriginDestinationOptions.OriginDestinationOption[k]&&T===j.AirItinerary.OriginDestinationOptions.OriginDestinationOption[k]["@attributes"].FlightInfo&&(T=j.AirItinerary.OriginDestinationOptions.OriginDestinationOption[k],i.empty().html(p()(t(T,x,e))),s.hide(),C=!0),!C){for(var D in j=b.PricedItineraries.PricedItinerary,j){if(void 0!==j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption.FlightSegment){var I=j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption;j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption=[],j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption[0]=I}if(void 0!==j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption[k]&&T===j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption[k]["@attributes"].FlightInfo){T=j[D].AirItinerary.OriginDestinationOptions.OriginDestinationOption[k],i.empty().html(p()(t(T,x,e))),s.hide(),C=!0;break}}if(!C)for(var A in j)for(var O in j[A].AirItinerary.OriginDestinationOptions.OriginDestinationOption)if(T===j[A].AirItinerary.OriginDestinationOptions.OriginDestinationOption[O]["@attributes"].FlightInfo){T=j[A].AirItinerary.OriginDestinationOptions.OriginDestinationOption[O],i.empty().html(p()(t(T,x,e))),s.hide(),C=!0;break}}}o(this).data("state","loaded")}}}}();window.AVflight=l,t.a=l}).call(t,a("86YC"),a("T6cr"),a("ZCrj"))},pwWZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Vm3q"),s=a("3Eqt"),o=a("HBXo"),r=a("779H"),n=a("ggMG"),p=a("Md+t"),l=a("S8Dg"),c=a("+Q60"),d=a.n(c),y=a("r5Zi"),g=a("t3YS"),u=a("DRMX"),m=a("DKKE"),h=a.n(m),v=a("Q+xo"),f=a("8n/K"),b=a("R7nV"),x=a("IFYJ"),w=a.n(x),k=a("22w9"),T=a.n(k),j=a("GR7K"),C=a("xFK3")},r5Zi:function(e,t,a){"use strict";(function(e){var t=a("jWwD"),i=e("#searchInfoExperience"),s=e("#searchInfoExperience2"),o=e("#avanzada"),r=function(){ga("send","event","search","submit","experience");var t=n();if(t){var a="";""!=i.val()&&1==i.data("validate")?(e("#origin-n1-Validate").val(""),a=i.val().trim().replace(/ /g,"-")):""!=e("#origin-n1-Validate").val&&0==i.data("validate")?(i.data("validate",0),e("#searchInfoExperience").val(""),a=e("#origin-n1-").val()):""!=s.val()&&(a="/"+s.val(),experienceUrl=getAvailabilitySearch),window.location.href=experienceUrl+a,_loadSpinner(),e(".js-globalOverlay").show()}return t},n=function(){e(".js-searchError").empty();var t=!0;return""==e("#origin-n1-Validate").val()&&0==i.data("validate")?(e("#js-origin-n1-Error").text("Verifique la ciudad a ingresar").fadeIn(),t=!1):1==i.data("validate")&&""==i.val()&&(e("#js-searchError").text("Seleccione alguna palabra clave").fadeIn(),t=!1),t};e(document).ready(function(){0<e(".js-searchFormExperience").length&&(e(".js-searchButton").unbind("click").click(function(){r()}),""==e("#origin-n1-").val()&&(e("#origin-n1-Validate").val("Bogot\xE1, Colombia (BOG)"),e("#origin-n1-").val("BOG")),Object(t.e)("#origin-n1-")),o.on("click",function(){var t=o.data("state");0==t?(o.removeClass("btn--inactive"),e(".targetDiv-personalizada").show(),i.data("validate",1),o.data("state",1),e("#origin-n1-Validate").prop("readonly",!0)):(o.addClass("btn--inactive"),e(".targetDiv-personalizada").hide(),i.data("validate",0),o.data("state",0),e("#origin-n1-Validate").prop("readonly",!1))})})}).call(t,a("86YC"))},rH1J:function(e){function t(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(c===setTimeout)return setTimeout(e,0);if((c===t||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(d===clearTimeout)return clearTimeout(e);if((d===a||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(e);try{return d(e)}catch(t){try{return d.call(null,e)}catch(t){return d.call(this,e)}}}function o(){g&&m&&(g=!1,m.length?y=m.concat(y):u=-1,y.length&&r())}function r(){if(!g){var e=s(o);g=!0;for(var t=y.length;t;){for(m=y,y=[];++u<t;)m&&m[u].run();u=-1,t=y.length}m=null,g=!1,i(e)}}function n(e,t){this.fun=e,this.array=t}function p(){}var l=e.exports={},c,d;(function(){try{c="function"==typeof setTimeout?setTimeout:t}catch(a){c=t}try{d="function"==typeof clearTimeout?clearTimeout:a}catch(t){d=a}})();var y=[],g=!1,u=-1,m;l.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];y.push(new n(e,t)),1!==y.length||g||s(r)},n.prototype.run=function(){this.fun.apply(null,this.array)},l.title="browser",l.browser=!0,l.env={},l.argv=[],l.version="",l.versions={},l.on=p,l.addListener=p,l.once=p,l.off=p,l.removeListener=p,l.removeAllListeners=p,l.emit=p,l.prependListener=p,l.prependOnceListener=p,l.listeners=function(){return[]},l.binding=function(){throw new Error("process.binding is not supported")},l.cwd=function(){return"/"},l.chdir=function(){throw new Error("process.chdir is not supported")},l.umask=function(){return 0}},t3YS:function(e,t,a){"use strict";(function(e,t,s,i){var o=a("Vm3q"),r=a("3Eqt"),n=a("jWwD"),p=a("HBXo"),l=a("779H"),c=a("MITR"),d=a("5M89"),y=a("ncd9"),g=a("cq/L"),u=a("ANK5"),m=a.n(u),h=a("DIDY"),v=a.n(h),f=window.location.pathname;e.locale("es-es");var b=function(){var e=!1;ga("send","event","search","submit","flight");var a=Object(l.e)(o.a.instances.flights),r=!!t("#applyBudget").is(":checked");if(a){var n="?";0<t("#airline").length&&""!=t("#airline").val()&&(n+="airline="+t("#airline").val()+"&"),0<t("#travel-class").length&&""!=t("#travel-class").val()&&(n+="class="+t("#travel-class").val()+"&"),0<t("#stop-over").length&&""!=t("#stop-over").val()&&(n+="stop="+t("#stop-over").val()+"&"),0<t("#baggage").length&&t("#baggage").is(":checked")&&(n+="baggage=1&"),0<t("#carryOn").length&&t("#carryOn").is(":checked")&&(n+="carryOn=1&"),0<t("#isActiveTourCode").length&&t("#isActiveTourCode").is(":checked")&&(n+="isActiveTourCode=1&",0<t("#airlineTourCode").length&&""!=t("#airlineTourCode").val()&&(n+="airlineTourCode="+t("#airlineTourCode").val()+"&"),0<t("#tourCode").length&&""!=t("#tourCode").val()&&(n+="tourCode="+t("#tourCode").val()+"&"));var p="";if("undefined"!=typeof applyCencosudFront&&t("#applyCencosudPromo").prop("checked",!0),0<t("#applyCencosudPromo").length&&t("#applyCencosudPromo").is(":checked")){if("undefined"==typeof c)var c="2018-06-30",d="2018-07-15",y=["BOG","CLO","SMR","BGA","BAQ","CTG","CUC","LET","MDE","MTR","PEI","ADZ","VUP","EYP"],g=["ANF","CJC","COR","PMC","SCL","AQP","CUZ","JUL","LIM","BUE","FTE","IGR","ANF","RIO","SAO","IGU","CWB","POA","SYD","MEL","BNE","AKL","LPB","ASU","MVD","VVI","USH","FOR","REC","BSB","SSA","IGR","IQQ","PUQ","MAO","RGL","PPT","FLN","UIO","GYE","LSC","TUC","CCP","PCL","ZCO","ARI","AUA","CUN","MIA"].concat(y);var u=t("input[name=\"parameters[origin1]\"]").val(),m=t("input[name=\"parameters[destination1]\"]").val(),h=!0,v=!0,b=new Date(c),x=new Date(d);if("r"===o.a.instances.flighttype){var w=new Date(t("#date1").val().substring(0,10)),k=new Date(t("#date-return1").val().substring(0,10));(w>b||k>b)&&(h=!1,(w>x||k>x)&&(v=!1))}else{var w=new Date(t("#date1").val().substring(0,10));w>b&&(h=!1,w>x&&(v=!1))}if("m"!==o.a.instances.flighttype&&(-1===y.indexOf(u)||-1===g.indexOf(m)))return t("#js-cencosudLatamTrips").modal("show"),!1;if(!0==h)n+="cencosud=true&airline=LA&";else if(!0==v){var T=window.btoa("Promoci\xF3n condicionada"),C=window.btoa("Las fechas que has seleccionado no aplican para todos los cupones por lo que debe ser validado por uno de nuestros asesores, por favor comun\xEDcate con nosotros."),_=window.btoa("error");p="?rtitle="+T+"&rtext="+C+"&rimage="+_}else{var T=window.btoa("No aplica promoci\xF3n"),C=window.btoa("Las fechas que ha seleccionado no aplican para este descuento. Mostraremos las opciones de acuerdo con su consulta."),_=window.btoa("error");p="?rtitle="+T+"&rtext="+C+"&rimage="+_}}0<t("[name^=\"typeCoin\"]").length&&""!=t("[name^=\"typeCoin\"]").val()&&(n+="currency="+t("[name^=\"typeCoin\"]").val()+"&"),n=n.substring(0,n.length-1);var D="";if(t("[name^=\"findCalendar\"]").is(":checked")&&(D="calendar/"),"r"===o.a.instances.flighttype){if(D+=t("#origin1").val()+"-"+t("#destination1").val()+"/"+t("#date1").val()+t("#time1").val()+"+"+t("#date-return1").val()+t("#time-return1").val()+"/",1==f.indexOf("blog"))window.open(flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,"_blank");else if(1==f.indexOf("tiquetes-baratos-a")||1==f.indexOf("tiquetes-baratos-con"))window.open(flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p);else if("www.aviatursym.com.co"==window.location.host&&"undefined"!=typeof window.bookingLeaveBehind)0<t(".page__body .search_promo").length&&-1===D.indexOf("calendar")?(e=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,j(e)):"undefined"==typeof flight_result_booking?(window.bookingLeaveBehind.redirect("http://hoteles.aviatur.com/searchresults.html?aid=1368806;checkin="+t("#date1").val()+";checkout="+t("#date-return1").val()+";iata_orr=1;lang=es;iata="+t("#destination1").val()+"&no_rooms=1&group_adults="+t("#js-adults").val()+"&group_children="+(parseInt(t("#js-children").val())+parseInt(t("#js-infants").val()))+";label=aviatur.com-gpaviatur-mainsearchextension",300),window.open(flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,"_blank")):"1"==flight_result_booking?(window.bookingLeaveBehind.redirect("http://hoteles.aviatur.com/searchresults.html?aid=1368806;checkin="+t("#date1").val()+";checkout="+t("#date-return1").val()+";iata_orr=1;lang=es;iata="+t("#destination1").val()+"&no_rooms=1&group_adults="+t("#js-adults").val()+"&group_children="+(parseInt(t("#js-children").val())+parseInt(t("#js-infants").val()))+";label=aviatur.com-gpaviatur-mainsearchextension",300),window.open(flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,"_blank")):"0"==flight_result_booking&&(window.location.href=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p);else if(0<t(".page__body .search_promo").length&&"aviatur:Flux"===agencyFolder&&-1===D.indexOf("calendar"))e=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,j(e);else{var I=window.top!==window.self;if(0<s(".el-pais").length&&I){var A=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p;s(".js-responsive-submit").html(s(".js-responsive-submit").html()+"<a type=\"button\" value=\"Buscar\" class=\"search__footer__submit btn btn--full btn--submit search_link\"   href=\"http://elpaispro.com/vuelos/BOG-CTG/2018-12-11+2018-12-18/1-0-0\" style=\"display:none;\" target=\"_blank\"> Buscar </a>"),window.location.href="/buscar/vuelos",s(".search_link").bind("click",function(){window.open(A,"_blank")}),s(".vuelos").bind("click",function(){window.location.href="/buscar/vuelos"}),s(".search_link, .vuelos").click(),s(".search_link").remove()}else window.location.href=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p}}else if(r){for(var O=1;O<=o.a.instances.flights;O++)D+=t("#origin"+O).val()+"/"+t("#date"+O).val()+"/"+t("#date-return"+O).val();1==f.indexOf("blog")?window.open(flightUrl+"explorar/"+D,"_blank"):window.location.href=flightUrl+"explorar/"+D}else if(1==f.indexOf("blog")){for(var O=1;O<=o.a.instances.flights;O++)D+=t("#origin"+O).val()+"-"+t("#destination"+O).val()+"/"+t("#date"+O).val()+t("#time"+O).val()+"/";window.open(flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,"_blank")}else{for(var O=1;O<=o.a.instances.flights;O++)D+=t("#origin"+O).val()+"-"+t("#destination"+O).val()+"/"+t("#date"+O).val()+t("#time"+O).val()+"/";if(0<t(".page__body .search_promo").length&&"aviatur:Flux"===agencyFolder&&-1===D.indexOf("calendar"))e=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p,j(e);else{var I=window.top!==window.self;if(0<s(".el-pais").length&&I){var A=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p;s(".js-responsive-submit").html(s(".js-responsive-submit").html()+"<a type=\"button\" value=\"Buscar\" class=\"search__footer__submit btn btn--full btn--submit search_link\"   href=\"http://elpaispro.com/vuelos/BOG-CTG/2018-12-11+2018-12-18/1-0-0\" style=\"display:none;\" target=\"_blank\"> Buscar </a>"),window.location.href="/buscar/vuelos",s(".search_link").bind("click",function(){window.open(A,"_blank")}),s(".vuelos").bind("click",function(){window.location.href="/buscar/vuelos"}),s(".search_link, .vuelos").click(),s(".search_link").remove()}else window.location.href=flightUrl+D+t("#js-adults").val()+"-"+t("#js-children").val()+"-"+t("#js-infants").val()+n+p}}if(1!=f.indexOf("blog")&&1!=f.indexOf("tiquetes-baratos")&&!e){_loadSpinner(),t(".js-globalOverlay").show();var I=window.top!==window.self;0<s(".el-pais").length&&I&&(window.location.href="/buscar/vuelos")}}return a},x=function(){t("#ida").on("click",w.ida),t("#vuelta").on("click",w.vuelta),t("#multidest").on("click",w.multidest),t("#explore").on("click",w.explore),t("#explore-mobile").on("click",w.explore),t("#explore-blog").on("click",w.explore),t(".js-baggageToggle").on("change",w.baggageToggle),t(".js-reinitBaggage").on("click",w.reinitBaggage),t(".js-confirmBaggage").on("click",w.confirmBaggage),t("#js-modalClose").on("click",w.modalClose),t("#js-modalCencosudClose").on("click",w.modalCencosudClose),w.travelers_select(),w.searchFormFlight()},w={ida:function(){t(".js-masterCalendar").show(),t(".js-baggage").show(),t("#applyBudget").prop("checked",!1),o.a.instances.flighttype="o",Object(p.b)(this),t(".flightReturn1").fadeOut(200),t("#sectionGoDate1Id").hasClass("search__col-flight-date-flight")&&(t("#sectionGoDate1Id").removeClass("search__col-flight-date-flight").addClass("search__col-flight-date-left-only-go"),t("#separatorDates1Id").hasClass("js-search__col-flight-date-icon-avail")?t("#separatorDates1Id").removeClass("search__col-flight-date-icon-avail").addClass("search__col-flight-date-icon-only-go"):t("#separatorDates1Id").removeClass("search__col-flight-date-icon").addClass("search__col-flight-date-icon-only-go"),t("#sectionReturnDate1Id").removeClass("search__col-flight-date-flight").addClass("search__col-flight-date-right-only-go"),t("#passengersSectionId").hasClass("js-search__col-flight-passengers-avail")?t("#passengersSectionId").removeClass("search__col-flight-passengers-avail").addClass("search__col-flight-passengers-only-go"):t("#passengersSectionId").removeClass("search__col-flight-passengers").addClass("search__col-flight-passengers-only-go")),t("#destination1Id").fadeIn(200),t("#passengersSectionId").hasClass("js-search__col-flight-passengers-avail")?t(".search__col-flight-passengers-avail").fadeIn(200):t(".search__col-flight-passengers").fadeIn(200),t(".search__col-flight-passengers_blog").fadeIn(200),t("#js-addDest").slideUp();for(var e=1;e<=o.a.instances.flights;e++)t(".js-deleteFlight").trigger("click");0!==t("#date1").val().length&&"undefined"!=typeof c.a&&c.a.sendRequest("dep"),t("#explore-mobile").is(":visible")&&t("#explore-mobile").addClass("btn--inactive"),s("#explore-blog")&&s("#explore-blog").addClass("btn--inactive"),_(t(this))},vuelta:function(){t(".js-masterCalendar").show(),t(".js-baggage").show(),t("#applyBudget").prop("checked",!1),o.a.instances.flighttype="r",Object(p.b)(this),t(".flightReturn1").fadeIn(200),t("#sectionGoDate1Id").hasClass("search__col-flight-date-left-only-go")&&(t("#sectionGoDate1Id").removeClass("search__col-flight-date-left-only-go").addClass("search__col-flight-date-flight"),t("#separatorDates1Id").hasClass("js-search__col-flight-date-icon-avail")?t("#separatorDates1Id").removeClass("search__col-flight-date-icon-only-go").addClass("search__col-flight-date-icon-avail"):t("#separatorDates1Id").removeClass("search__col-flight-date-icon-only-go").addClass("search__col-flight-date-icon"),t("#sectionReturnDate1Id").removeClass("search__col-flight-date-right-only-go").addClass("search__col-flight-date-flight"),t("#passengersSectionId").hasClass("js-search__col-flight-passengers-avail")?t("#passengersSectionId").removeClass("search__col-flight-passengers-only-go").addClass("search__col-flight-passengers-avail"):t("#passengersSectionId").removeClass("search__col-flight-passengers-only-go").addClass("search__col-flight-passengers")),t("#destination1Id").fadeIn(200),t("#passengersSectionId").hasClass("js-search__col-flight-passengers-avail")?t(".search__col-flight-passengers-avail").fadeIn(200):t(".search__col-flight-passengers").fadeIn(200),t(".search__col-flight-passengers_blog").fadeIn(200),t("#js-addDest").slideUp();for(var e=1;e<=o.a.instances.flights;e++)t(".js-deleteFlight").trigger("click");0!==t("#date1").val().length&&"undefined"!=typeof c.a&&c.a.sendRequest("dep"),0!==t("#date-return1").val().length&&"undefined"!=typeof c.a&&c.a.sendRequest("return"),t("#explore-mobile").is(":visible")&&t("#explore-mobile").addClass("btn--inactive"),s("#explore-blog")&&s("#explore-blog").addClass("btn--inactive"),_(t(this))},multidest:function(){if(t("[name^=\"findCalendar\"]").prop("checked",!1),t(".js-masterCalendar").hide(),t(".js-baggage").hide(),t("#destination1Id").fadeIn(200),t(".search__col-flight-passengers").fadeIn(200),t(".search__col-flight-passengers_blog").fadeIn(200),t("#applyBudget").prop("checked",!1),o.a.instances.flighttype="m",1===o.a.instances.flights&&(Object(p.b)(this),t(".flightReturn1").fadeOut(200),t("#sectionGoDate1Id").hasClass("search__col-flight-date-flight")&&(t("#sectionGoDate1Id").removeClass("search__col-flight-date-flight").addClass("search__col-flight-date-left-only-go"),t("#separatorDates1Id").hasClass("js-search__col-flight-date-icon-avail")?t("#separatorDates1Id").removeClass("search__col-flight-date-icon-avail").addClass("search__col-flight-date-icon-only-go"):t("#separatorDates1Id").removeClass("search__col-flight-date-icon").addClass("search__col-flight-date-icon-only-go"),t("#sectionReturnDate1Id").removeClass("search__col-flight-date-flight").addClass("search__col-flight-date-right-only-go"),t("#passengersSectionId").hasClass("js-search__col-flight-passengers-avail")?t("#passengersSectionId").removeClass("search__col-flight-passengers-avail").addClass("search__col-flight-passengers-only-go"):t("#passengersSectionId").removeClass("search__col-flight-passengers").addClass("search__col-flight-passengers-only-go")),t(".js-createFlight").trigger("click"),t("#js-addDest").slideDown()),"undefined"!=typeof AvailabilityArray)var e=AvailabilityArray;else if("undefined"!=typeof cookieLastSearch&&null!==cookieLastSearch)var e=cookieLastSearch;if(e)for(var a=e.route.split("_"),r=1;r<=a[a.length-1];r++)2<r&&void 0===s("#origin"+r+"Validate").val()&&s(".js-createFlight").click(),s("#origin"+r+"Validate").val(e["originLabel"+r]),s("#origin"+r).val(e["origin"+r]),s("#destination"+r+"Validate").val(e["destinationLabel"+r]),s("#destination"+r).val(e["destination"+r]),s("#js-createDatepicker"+r).val(e["date"+r].split("T")[0]),s("#date"+r).val(e["date"+r].split("T")[0]);t("#explore-mobile").is(":visible")&&t("#explore-mobile").addClass("btn--inactive"),s("#explore-blog")&&s("#explore-blog").addClass("btn--inactive"),_(t(this))},explore:function(){t(".js-masterCalendar").show(),o.a.instances.flighttype="e",Object(p.b)(this),t(".flightReturn1").fadeIn(200),t("#destination1Id").fadeOut(200),t(".search__col-flight-passengers").fadeOut(200),t(".search__col-flight-passengers_blog").fadeOut(200),t("#js-addDest").slideUp();for(var e=1;e<=o.a.instances.flights;e++)t(".js-deleteFlight").trigger("click");if(t("#applyBudget").prop("checked",!0),t("#explore-mobile").is(":visible")||s("#explore-blog")){var a=s("#ida").siblings();Object(p.b)(a)}},baggageToggle:function(a){(t(this).is(":checked")||t(this).hasClass("is-active"))&&"r"===o.a.instances.flighttype&&i.scopedClosure(window._slidePicker,[a],this)()},reinitBaggage:function(){t(".js-baggageOptions > .js-radio-option").eq(0).trigger("click"),t("[data-slidetoggle=\"js-baggageOptions\"]").trigger("click")},confirmBaggage:function(){t(".js-baggage .js-baggageOptions").slideUp("slow"),t("[data-slidetoggle=\"js-baggageOptions\"]").removeClass("is-active")},modalClose:function(){t("#js-modalSearchNotification").modal("hide")},modalCencosudClose:function(){t("#js-cencosudLatamTrips").modal("hide")},travelers_select:function(){t(".js-travelers select").each(function(){t(this).on("change",function(){var e=parseInt(t("#js-adults").val()||0),a=parseInt(t("#js-children").val()||0),i=parseInt(t("#js-infants").val()||0);parseInt(t("#js-children").val()||0)>2*e&&(a=0),parseInt(t("#js-infants").val()||0)>e&&(i=0);var s=e+a+i;1==s?t(this).closest(".js-travelerContainer").find(".js-passangerTotal").html("1 pasajero"):t(this).closest(".js-travelerContainer").find(".js-passangerTotal").html(s+" pasajeros")})}),t("#js-adults").on("change",function(){var e=parseInt(t("#js-adults").val()||0),a=parseInt(t("#js-children").val()||0),i=parseInt(t("#js-infants").val()||0),s=function(e,t,a,i){for(var s="",o=0;o<=e;o++){var r=0===o?"Sin "+a.toLowerCase():o+" "+(1===o?a:i),n=o===t?"selected=\"selected\"":"";s+="<option class=\"select-option\" "+n+" value=\""+o+"\"> "+r+"</option>"}return s},o=s(2*e,a,"Ni\xF1o","Ni\xF1os"),r=s(e,i,"Infante","Infantes");t("#js-children").html(o),t("#js-infants").html(r)})},searchFormFlight:function(){0<t(".js-searchFormFlight").length&&(t(".js-createFlight").on("click",function(a,e){if(e?o.a.instances.flights++:(Object(r.a)(this,"#js-flights-n1-","#js-flights-anchor","flights","-n1-"),0<t(".js-searchForm").find(".js-search-cloneButton").length&&(t(".js-searchForm").find(".js-search-cloneButton").off("click"),t(".js-searchForm").find(".js-search-cloneButton").on("click",function(){b()}))),Object(n.e)("#origin"+o.a.instances.flights),Object(n.e)("#destination"+o.a.instances.flights),1<o.a.instances.flights){if(t("#js-flights1").addClass("section--first"),2!==o.a.instances.flights){var i=o.a.instances.flights-1;t("#js-flights"+i).removeClass("section--last").addClass("section--middle")}t("#js-flights"+o.a.instances.flights).removeClass("section--middle").addClass("section--last")}else t("#js-flights1").removeClass("section--first");t("#js-flights"+o.a.instances.flights+" > .js-slideContent").slideDown(),t("body").find(".ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front").addClass("ui-autocomplete-flight").removeClass("ui-autocomplete")}),t(".js-deleteFlight").on("click",function(){o.a.instances.flights>o.a.instances.flightsmin&&t("#js-flights"+o.a.instances.flights).slideUp(),setTimeout(function(){Object(r.b)(t(".js-deleteFlight"),"#js-flights-n1-","flights","-n1-"),1===o.a.instances.flights?t("#js-flights1").removeClass("section--first"):t("#js-flights"+o.a.instances.flights).addClass("section--last").removeClass("section--middle"),o.a.multiDate[o.a.instances.flights+1]=!1},300)}),t(".js-searchButton").on("click",function(){b()}),t("#vuelta").trigger("click"),t("#js-flights"+o.a.instances.flights+" > .js-slideContent").stop(!0,!0).slideDown().show(),t("#origin1Validate").val("Bogot\xE1, Colombia (BOG)"),t("#origin1").val("BOG"),Object(n.e)("#origin1"),Object(n.e)("#destination1"),Object(n.e)("#airline",indexUrl+"buscar/buscar-aerolineas/",n.a,n.b))}},k=function(a){var s=null,o=(window.location.pathname+window.location.search).split("/"),r=o[o.length-1].split("?")[0].split("-"),n=Math.round((o.length-3)/2),p=void 0,l=void 0,c=[];if(1===n){var d=t("#origin1Validate").val().split(","),y=t("#destination1Validate").val().split(",");if(d=void 0===d[2]?d[0]:d[1],y=void 0===y[2]?y[0]:y[1],-1!==o[3].indexOf("+")){s="round",++n;var g=o[3].split("+")[0],u=o[3].split("+")[1];c[1]={date:e(g).format(),origin:t("#origin1").val(),destination:t("#destination1").val(),originLabel:t("#origin1Validate").val(),cityOrigin:d,destinationLabel:t("#destination1Validate").val(),cityDestination:y},c[2]={date:e(u).format(),origin:t("#destination1").val(),destination:t("#origin1").val(),originLabel:t("#destination1Validate").val(),cityOrigin:y,destinationLabel:t("#origin1Validate").val(),cityDestination:d},p=c[1].cityOrigin,l=c[1].cityDestination}else s="oneway",c[n]={date:e(o[3]).format(),origin:t("#origin1").val(),originLabel:t("#origin1Validate").val(),cityOrigin:d,destination:t("#destination1").val(),destinationLabel:t("#destination1Validate").val(),cityDestination:y},p=c[1].cityOrigin,l=c[1].cityDestination}else{s="multi";for(var m=void 0,h=void 0,v=3,f=1;f<=n;f++)m=t("#origin"+f+"Validate").val().split(","),h=t("#destination"+f+"Validate").val().split(","),m=void 0===m[2]?m[0]:m[1],h=void 0===h[2]?h[0]:h[1],c[f]={date:e(o[v]).format(),origin:t("#origin"+f).val(),originLabel:t("#origin"+f+"Validate").val(),cityOrigin:m,destination:t("#destination"+f).val(),destinationLabel:t("#destination"+f+"Validate").val(),cityDestination:h},v+=2;p=c[1].cityOrigin,l=c[n].cityDestination}return{route:a,routetype:s,adults:parseInt(r[0]),children:parseInt(r[1]),infants:parseInt(r[2]),flights:n,detail:c,cityOriginName:p,cityDestinationName:l}},T=function(t){var a=t.adults+t.children+t.infants,o="",s=!1,r=!1,n=[];if(1<a&&(o="s"),"round"===t.routetype)r=!0,n=[{blocks:[{title:t.detail[1].origin,label:t.cityOriginName,date:e(t.detail[2].date).format("D MMM"),tooltip:t.detail[1].originLabel,traveltype:"o",travelNumber:"1"},{title:t.detail[2].origin,label:t.cityDestinationName,date:e(t.detail[1].date).format("D MMM"),tooltip:t.detail[2].originLabel,traveltype:"d",travelNumber:"1"},{title:t.detail[1].origin,label:t.cityOriginName,date:e(t.detail[2].date).format("D MMM"),tooltip:t.detail[1].originLabel,traveltype:"o",travelNumber:"1"}]},{blocks:[{title:a,label:"Pasajero"+o,type:"passenger",traveltype:"p",travelNumber:"1"}]}];else if("oneway"===t.routetype)n=[{blocks:[{title:t.detail[1].origin,label:t.detail[1].cityOrigin,date:e(t.detail[1].date).format("D MMM"),tooltip:t.detail[1].originLabel,traveltype:"o",travelNumber:"1"},{title:t.detail[1].destination,label:t.detail[1].cityDestination,date:e(t.detail[1].date).format("D MMM"),tooltip:t.detail[1].destinationLabel,traveltype:"d",travelNumber:"1"}]},{blocks:[{title:a,label:"Pasajero"+o,type:"passenger",traveltype:"p",travelNumber:""}]}];else{s=!0;var p=[],l=!1;for(var c in t.detail)l&&(p.push({separator:1}),l=!1),p.push({title:t.detail[c].origin,label:t.detail[c].cityOrigin,date:e(t.detail[c].date).format("D MMM"),tooltip:t.detail[c].originLabel,type:"multi",traveltype:"o",travelNumber:""+c}),c<t.flights&&t.detail[c].destinationLabel!==t.detail[parseInt(c)+1].originLabel?(p.push({title:t.detail[c].destination,label:t.detail[c].cityDestination,tooltip:t.detail[c].destinationLabel,type:"multi",traveltype:"d",travelNumber:""+c}),l=!0):c==t.flights&&p.push({title:t.detail[c].destination,label:t.detail[c].cityDestination,tooltip:t.detail[c].destinationLabel,type:"multi",traveltype:"d",travelNumber:""+c});n=[{blocks:p},{blocks:[{title:a,label:"Pasajero"+o,type:"passenger",traveltype:"p",travelNumber:""}]}]}return{search_entities:n,roundtrip:r,multi:s}},j=function e(a){if(window.history.pushState(null,"Titulo",a),t(".dispo-shared__content-full-width").show(),void 0!==i)i=null;else var i;var o=!1;!0===t(".js-topbarOptions").is(":visible")&&C();var r=t(".search__light--box"),n=t(".page__body--search .search-shared__datepicker-container");t("#js-modalAlert").remove(),y.a.alert=!1,t(".page__body--search").hide(),s("[id*=home-promos]").hide(),t(".js-newSearchEngine").hide(),t(".page__body .search_promo").hide(),!0!==t(".search_promo").is(":visible")&&(t(".page__body").css("background","#fff"),t(".page-head").css("margin-bottom","18px")),t(".js-topbarOptions").hide(),t("#flight-results").html(""),t(".js-flightLoader").show();var p=k(a),l=T(p);t("#resumeSearchFlight1").html(v()({entities:l.search_entities,roundtrip:l.roundtrip,multi:l.multi,url:p.route})),Object(d.a)(1e3,"price"),t(".resume-search__engine").append(r),t(".js-topbarOptions").html(m()({AvailabilityArray:p})),0===n.length?(t(".js-filterOptions").on("click",function(t){window._slidePicker.call(this,t,_iconToggle)}),t(".js-toggleFilters").on("click",function(){0==+t(this).data("state")?(t(".js-availFilters").show(),t(this).data("state",1).text("Ocultar filtros")):(t(".js-availFilters").hide(),t(this).data("state",0).text("Ver filtros"))})):t(".datap").html(n),s(".coin").on("click",function(){if(!o)return t(".js-flightLoader").show(),t(".js-tripSegment, .js-flightSelection, .dispo-flight__ff-container, .js-paginatorTarget").empty(),i=_reloadPrices(!0),e(i),Object(d.b)(t("#js-targetCalendar"),!1),t(".js-toogleCalendar").data("toogle","0").text("Mostrar Calendario +/- 3 dias"),t("#js-targetCalendar").closest(".js-calendarFrame").hide(),t(".dropbtn").bind("click",_buttonCoin),o=!0,o}),t(".js-closeSearchEngine").on("click",function(){t(".js-newSearchEngine").hide(),t(".js-resumeSearch").show()})},C=function(){t("#airline").val(""),t("#airlineValidate").val(""),y.a.ffType(),t(".js-filterUnit .ui-slider").each(function(e){t(this).slider()&&(t(this).slider("option","range")?t(this).slider("values",0)===y.a.filterInit[e].minValue?t(this).slider("values",1)!==y.a.filterInit[e].maxValue&&t(this).slider("values",1,y.a.filterInit[e].maxValue):t(this).slider("values",0,y.a.filterInit[e].minValue):t(this).slider("value",y.a.filterInit[e].value))}),y.a.filterReq={priceRange:[],timeRange:[],fares:{count:0,filter:[]},airlines:{count:0,filter:[]},stops:{count:0,filter:[]},airports:{count:0,filter:[]},flightHours:{departures:[],arrivals:[]}},t(".js-filterUnit .js-checkbox-option").each(function(){t(this).find(".checkbox-option").prop("checked")||_toggleCheckbox.call(this)}),t(".js-miscFilters .js-filterUnit").each(function(){var e=t(this).find(".checkbox-option"),a=t(this).data("entity");y.a.filterReq[a]={count:e.length,filter:[]},e.each(function(){t(this).prop("checked")&&y.a.filterReq[a].filter.push(t(this).val())})})},_=function(e){s(".search__btn-group.btn-group").find(".flight-type").text("radio_button_unchecked"),s(e).find("i").text("radio_button_checked")};t(document).ready(function(){x(),0<=location.search.indexOf("cencosud=true")&&t("#applyCencosudPromo").prop("checked",!0),("/"==f||"/buscar/vuelos/"==f)&&s(".search-shared__datepicker-container.picker.js-datepicker-container-target").addClass("picker-flight").removeClass("picker"),s("body").find(".ui-menu.ui-widget.ui-widget-content.ui-autocomplete.ui-front").addClass("ui-autocomplete-flight").removeClass("ui-autocomplete")})}).call(t,a("ZCrj"),a("86YC"),a("86YC"),a("T6cr"))},xFK3:function(e,t,a){"use strict";(function(e,t){var s=a("Vm3q"),o=a("jWwD"),r=a("HBXo"),n=a("GR7K"),p=a("Q+xo"),i=a("8n/K"),l=a("MITR");e(document).ready(function(){if(!(0<e("#js-cookieLastSearch-date1").length&&""!==e("#js-cookieLastSearch-date1").html()))Object(r.a)();else if(t.getFullDate(e("#js-cookieLastSearch-date1").text().split("T")[0])<new Date)Object(r.a)();else{var a=t.getFullDate(e("#js-cookieLastSearch-date1").text().split("T")[0]);a.setTime(a.getTime()+6e4*new Date().getTimezoneOffset()),s.a.multiDate&&(s.a.multiDate[1]=a),s.a.hotelDate&&(s.a.hotelDate=new Date(a.getTime()+2592000000));var c=e.datepicker.formatDate("yy-mm-dd",a,{}),d=e.datepicker.formatDate("dd M. y",a,{});if(e("#date1").val(c),e("#js-createDatepicker1").val(d),e("#js-cookieLastSearch-date2").length){var y,g,u;""===e("#js-cookieLastSearch-date2").html()?(e("#ida").trigger("click"),y=new Date(a.getTime()+259200000),g=e.datepicker.formatDate("yy-mm-dd",y,{}),u=e.datepicker.formatDate("dd M. y",y,{})):(y=t.getFullDate(e("#js-cookieLastSearch-date2").text().split("T")[0]),y.setTime(y.getTime()+6e4*new Date().getTimezoneOffset()),g=e.datepicker.formatDate("yy-mm-dd",y,{}),u=e.datepicker.formatDate("dd M. y",y,{}),s.a.returnWayDate&&(s.a.returnWayDate=y)),e("#date-return1").val(g),e("#js-createDatepicker-return1").val(u)}}if(0<e("[id^=\"js-cookieLastSearch\"]").length){var m=e("#js-cookieLastSearch-origin").html(),h=e("#js-cookieLastSearch-destination").html(),v=e("#js-cookieLastSearch-originLabel").html(),f=e("#js-cookieLastSearch-destinationLabel").html();m&&(e("#origin1").val(m),v&&e("#origin1Validate").val(v)),h&&(e("#destination").add("#destination1").val(h),f&&e("#destinationValidate").add("#destination1Validate").val(f),!e(".js-page-body-toggle").attr("data-searchindex")&&Object(o.j)(h),0!==e("#date1").val().length&&"undefined"!=typeof l.a&&l.a.sendRequest("dep"),"r"===s.a.instances.flighttype&&0!==e("#date-return1").val().length&&"undefined"!=typeof l.a&&l.a.sendRequest("return"));var b=e("#js-cookieLastSearch-adults").html(),x=e("#js-cookieLastSearch-children").html(),w=e("#js-cookieLastSearch-infants").html();if(b&&e("#js-adults option").prop("selected",!1).eq(b-1).prop("selected",!0).trigger("change"),x&&0<e(".js-searchFormFlight").length&&(e("#js-children option[value='0']").prop("selected",!1),e("#js-children option[value='"+x+"']").prop("selected",!0).trigger("change"),e("#js-cookieChildren").trigger("click")),w&&0<e(".js-searchFormFlight").length&&(e("#js-infants option[value='0']").eq(0).prop("selected",!1),e("#js-infants option[value='"+w+"']").prop("selected",!0).trigger("change"),e("#js-cookieInfants").trigger("click")),x&&0<e(".js-searchFormHotel").length){e("#room1Adults option[value='0']").prop("selected",!1),e("#room1Adults option[value='"+b+"']").prop("selected",!0),e("#js-children1 option[value='0']").prop("selected",!1),e("#js-children1 option[value='"+x+"']").prop("selected",!0),Object(p.a)("#js-children1");for(var k=1,T;k<=x;k++)T=e("#js-cookieLastSearch-childrenAge"+k).html(),e("#js-room1child"+k+"select option[value='6']").prop("selected",!1),e("#js-room1child"+k+"select option[value='"+T+"']").prop("selected",!0)}if(0<e(".js-searchFormCruise").length)if(new Date(e("#js-cookieLastSearch-date1").html())<new Date){Object(r.a)();var j=t.getFullDate(e("#date1").val().split("T")[0]);e("#dateMonth option[value=\""+j.getFullYear()+"/"+(j.getMonth()+1)+"\"]").prop("selected",!0)}else{var a=new Date(e("#js-cookieLastSearch-date1").html());a.setTime(a.getTime()+6e4*new Date().getTimezoneOffset());var c=e.datepicker.formatDate("yy-mm-dd",a,{}),d=e.datepicker.formatDate("dd M. y",a,{});e("#date1").val(c),e("#js-createDatepicker1").val(d);var y=new Date(e("#js-cookieLastSearch-date2").html());y.setTime(y.getTime()+6e4*new Date().getTimezoneOffset());var g=e.datepicker.formatDate("yy-mm-dd",y,{}),u=e.datepicker.formatDate("dd M. y",y,{});s.a.returnWayDate=y,e("#date-return1").val(g),e("#js-createDatepicker-return1").val(u),e("#dateMonth option[value=\""+a.getFullYear()+"/"+(a.getMonth()+1)+"\"]").prop("selected",!0);var C=e("#js-cookieLastSearch-region").html();e("#sailingOrigin option[value='0']").prop("selected",!1),e("#sailingOrigin option[value='"+C+"']").prop("selected",!0),b=e("#js-cookieLastSearch-adults").html(),x=e("#js-cookieLastSearch-children").html(),e("#adults option[value='0']").prop("selected",!1),e("#adults option[value='"+b+"']").prop("selected",!0),e("#children option[value='0']").prop("selected",!1),e("#children option[value='"+x+"']").prop("selected",!0),e("#children").trigger("change"),e("#adults").trigger("change");for(var k=1,_;k<=b;k++)_=e("#js-cookieLastSearch-adultsAge"+k).html(),e("#js-adult-"+k+"-select option[value='6']").prop("selected",!1),e("#js-adult-"+k+"-select option[value='"+_+"']").prop("selected",!0);for(var k=1,T;k<=x;k++)T=e("#js-cookieLastSearch-childrenAge"+k).html(),e("#js-child-"+k+"-select option[value='6']").prop("selected",!1),e("#js-child-"+k+"-select option[value='"+T+"']").prop("selected",!0)}if(0<e(".js-searchFormPackage").length){var D=e("#js-cookieLastSearch-package").html(),I=e("#js-cookieLastSearch-description").html();e("#id-package-type option[value=\""+D+"\"]").prop("selected",!0),e(".js-package-container").fadeIn("slow"),e("."+e("#id-package-type").val()).show(),e("#searchInputValidate").val(I)}if(0<e(".js-searchFormInsurance").length){var A=e("#js-cookieLastSearch-passenger").html();e(".js-instanceOption option[value=\""+A+"\"]").prop("selected",!0),Object(i.a)(e(".js-instanceOption").val())}if(0<e(".js-searchFormTrain").length){var m=e("#js-cookieLastSearch-originId").html(),h=e("#js-cookieLastSearch-destinationId").html(),v=e("#js-cookieLastSearch-originLabel").html(),f=e("#js-cookieLastSearch-destinationLabel").html(),O=e("#js-cookieLastSearch-dateIn").html().split("T"),S=e("#js-cookieLastSearch-dateReturn").html().split("T"),P=e("#js-cookieLastSearch-passengers").html(),L=e("#js-cookieLastSearch-birthdays").html();m&&(e("#departure").val(m),v&&e("#departureValidate").val(v)),h&&(e("#arrival").val(h),f&&e("#arrivalValidate").val(f)),e("#date1").val(O[0]),e("#js-createDatepicker1").val(O[0]),""==S?e("#ida").trigger("click"):(e("#date-return1").val(S[0]),e("#js-createDatepicker-return1").val(S[0]));var E=JSON.parse(L);if(1==P)e("#birthday1").val(E[0]);else{e("#js-passengers option[value='1']").prop("selected",!1),e("#js-passengers option[value='"+P+"']").prop("selected",!0),Object(n.a)(P);for(var k=1;k<=P;k++)e("#birthday"+k).val(E[k-1])}}if(0<e(".js-searchFormExperience").length){var f=e("#js-cookieLastSearch-destinationLabel").html(),R=e("#js-cookieLastSearch-searchInfoExperience").html();if(0<e("[id^=\"js-cookieLastSearch-destination\"]").length){var h=e("#js-cookieLastSearch-destination").html();e("#origin-n1-").val(h)}0<e("[id^=\"js-cookieLastSearch-date2\"]").length?(e("#ida").data("oneway",0),e(".flightReturn1").show(),e("#ida").addClass("btn--inactive"),e("#vuelta").removeClass("btn--inactive")):(e("#ida").data("oneway",1),e(".flightReturn1").hide(),e("#vuelta").addClass("btn--inactive"),e("#ida").removeClass("btn--inactive")),0<e("[id^=\"js-cookieLastSearch-searchInfoExperience\"]").length&&""!==e("[id^=\"js-cookieLastSearch-searchInfoExperience\"]").html()?(e("#avanzada").removeClass("btn--inactive"),e(".targetDiv-personalizada").show(),e("#searchInfoExperience").data("validate",1),e("#avanzada").data("state",1),e("#searchInfoExperience").val(R),e("#origin-n1-Validate").val(""),e("#origin-n1-Validate").prop("readonly",!0)):0<e("[id^=\"js-cookieLastSearch-destination\"]").length&&""!==e("[id^=\"js-cookieLastSearch-destination\"]").html()&&(e("#avanzada").addClass("btn--inactive"),e(".targetDiv-personalizada").hide(),e("#searchInfoExperience").data("validate",0),e("#avanzada").data("state",0),e("#origin-n1-Validate").val(f),e("#searchInfoExperience").val(""),e("#origin-n1-Validate").prop("readonly",!1))}if(0<e(".js-searchFormExplore").length){var m=e("#js-cookieLastSearch-origin").html();e("#origin1").val(m);var F=e("#js-cookieLastSearch-label").html();e("#origin1Validate").val(F);var a=e("#js-cookieLastSearch-date1").html();e("#date1").val(a);var S=e("#js-cookieLastSearch-dateReturn").html();e("#date-return1").val(S);var y=new Date(S);y.setTime(y.getTime()+6e4*new Date().getTimezoneOffset());var u=e.datepicker.formatDate("dd M. y",y,{});e("#js-createDatepicker-return1").val(u)}}})}).call(t,a("86YC"),a("T6cr"))}},["pwWZ"]);