1var hasResults=!0,topLoaded=!1;(-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("mader")||-1!=window.location.href.indexOf("oe24.at")||isFranchise)&&(topLoaded=!0);var lastJoeId=0,enterActivated=!1;function setVaInSuchconfig(){let e=!1;$("select[name=veranstalter] option:selected").each(function(t,i){""==$(this).val()&&(e=!0)}),""==suchConfig.veranstalter&&(e=""),suchConfig.veranstalter=e?"":$("select[name=veranstalter] option:selected").val(),e&&$("select[name=veranstalter]").selectpicker("deselectAll")}function initSort(){$("select[name=sort]").change(function(){suchConfig.sort=$(this).val(),suchConfig.page=1,$("#search_result_box").html(""),$(".isTopOffer").remove(),suchen()})}$(window).scroll(function(){topLoaded||topOffers(),"undefined"!=typeof suchConfig&&(jQuery(window).scrollTop()>2200*suchConfig.page-4600&&resultsLoading,hasResults&&0==resultsLoading&&$("#search_result_box .search_result_box").length<10*suchConfig.page&&($(window).scrollTop(),$(window).height(),$(document).height()))}),$(function(){$(".row.summary").click(function(){$(".widget-content").removeClass("inResults"),$(".widget-content").parent().removeClass("d-none"),$(this).addClass("d-none")}),initUpdateSearchButton(),initSort(),initAirport(),$(".multiselectContainer.airport input").change(function(e){runAirportCheck(e.currentTarget)}),$(".passengers .mainButton").click(function(){$(this).toggleClass("show");var e=$(this).parent().children(".subselects");if(e.hasClass("d-none"))e.removeClass("d-none");else{e.addClass("d-none");var t=e.find("select.adults").val(),i="",n=0;e.find("select[class^=child]").each(function(){$(this).val()>0&&(n++,i+=$(this).val()+"|")}),e.parent().find("input[name=adults]").val(t),e.parent().find("input[name=children]").val(i),childText=1==n?"Kind":"Kinder",-1!=window.location.href.indexOf("oeamtc.at")?adultText=1==t?"Erwachsener":"Erwachsene":adultText="Erw.",0==n?$(this).children(".travelerButton").children(".text").html(t+" "+adultText):$(this).children(".travelerButton").children(".text").html(t+" "+adultText+", "+n+" "+childText)}}),$(".subselects .close, .subselects .btn-primary").click(function(){$(this).parent().parent().children(".mainButton").trigger("click")}),$(window).click(function(){$(".subselects").each(function(){$(this).hasClass("d-none")||$(this).parent().children(".mainButton").trigger("click")})}),$(".passengers").click(function(e){e.stopPropagation()}),initFilter(),$(".search form").keypress(function(e){13==(e=e||event).keyCode&&(e.preventDefault(),$(".resultcontainer").length>0&&(enterActivated||$.isNumeric($("#"+$(this).data("id")+" input[name=destinationName]").val())||"undefined"==$(".resultcontainer span.destination.active").data("url")?handleDestinationClick($(".resultcontainer span.destination.active")):$("#"+$(this).data("id")+" input[name=destinationName]").parent().addClass("error")))}),$(".searchHotelButton").on("click",function(){hotelSearchtext=$(".hotelSearchtext").val(),suchConfig.hotelSearchtext=hotelSearchtext,doFilterSearch()}),$("input.destination").unbind("keyup"),$("input.destination").keyup(function(e){if(!$(this).hasClass("joeSuche"))switch(e.keyCode){case 40:enterActivated=!0,keySelectHotel("next",$(this));break;case 38:enterActivated=!0,keySelectHotel("prev",$(this));break;case 13:break;default:0==$(this).val().length&&$(".resultcontainer").remove(),loadDestination($(this))}}),initDestinationGeotree(),$("select[name=veranstalter]").change(function(){doFilterSearch()})}),$.fn.reverse=[].reverse;var countries=Array("at","de","ch","si","sk","hu");function getSliderTime(e){var t=e%4*15;return(e-e%4)/4+":"+(t<10?"0"+t:t)}function initSlider(e){let t=History.getState();var i=document.querySelector("."+e+" .slider");if(null!==i){var n=0,s=96;"depSliderOut"==e&&(n=""!==getStateParameter("depOutMin",t.hashedUrl)?getStateParameter("depOutMin",t.hashedUrl):0,s=""!==getStateParameter("depOutMax",t.hashedUrl)?getStateParameter("depOutMax",t.hashedUrl):96),"dstSliderOut"==e&&(n=""!==getStateParameter("dstOutMin",t.hashedUrl)?getStateParameter("dstOutMin",t.hashedUrl):0,s=""!==getStateParameter("dstOutMax",t.hashedUrl)?getStateParameter("dstOutMax",t.hashedUrl):96),noUiSlider.create(i,{start:[n,s],connect:!0,range:{min:0,max:96},step:1});var a=[document.querySelector("."+e+" .minTime"),document.querySelector("."+e+" .maxTime")];i.noUiSlider.on("update",function(e,t){a[t].innerHTML=getSliderTime(e[t])}),i.noUiSlider.on("change",function(e,t){doFilterSearch()})}}function initAirport(){$(".multiselectContainer.airport").each(function(){for(var e=0;e<countries.length;e++){var t=1;$(this).find("li:not(.mainEntry)."+countries[e]+" input").each(function(){$(this).prop("checked")||(t=0)}),t?$(this).find("li.mainEntry."+countries[e]+" input").prop("checked",!0):$(this).find("li.mainEntry."+countries[e]+" input").prop("checked",!1)}})}function runAirportCheck(e){var t=$(e).parent().parent().parent().parent().parent().parent();if($(e).parent().parent().parent().hasClass("mainEntry"),$(e).parent().parent().parent().hasClass("mainEntry"))for(var i=0;i<countries.length;i++)$(e).parent().parent().parent().hasClass(countries[i])&&(1==$(e).prop("checked")?t.find("li."+countries[i]+" input").prop("checked",!0):t.find("li."+countries[i]+" input").prop("checked",!1));else for(i=0;i<countries.length;i++){var n=1;t.find("li:not(.mainEntry)."+countries[i]+" input").each(function(){$(this).prop("checked")||(n=0)}),n?t.find("li.mainEntry."+countries[i]+" input").prop("checked",!0):t.find("li.mainEntry."+countries[i]+" input").prop("checked",!1)}t.find("li input").each(function(){""!=$(this).val()&&($(this).prop("checked")?t.find("option[value="+$(this).val()+"]").attr("selected",!0):t.find("option[value="+$(this).val()+"]").attr("selected",!1))});var s=t.find("li:not(.mainEntry) input:checked").length;s>0?s>1?t.find(".multiselect-selected-text").html(s+" gewählt"):t.find(".multiselect-selected-text").html(t.find("li:not(.mainEntry) input:checked")[0].parent().text()):t.find(".multiselect-selected-text").html("wählen")}function keySelectHotel(e,t,i){selectNext=0,container="resultcontainer",i="airport"==i?"div.airport":".destination",0==$("."+container).length&&loadDestination(t),d="next"==e?$("."+container+" "+i):$("."+container+" "+i).reverse(),d.each(function(){if(1==selectNext&&(0!=$(this).data("id")||"undefined"!=$(this).data("url")||$(this).hasClass("airport")))return $("."+container+" "+i).removeClass("active"),offset=$(this).offset(),$(this).addClass("active"),!1;$(this).hasClass("active")&&(selectNext=1)})}function initFilter(){initBewertung(),initSterne(),$(".filter input,input.verpflegung, input.zimmer,.erweiterteSuche select, input.sterne:not(.discountedStar), input.hc").change(function(){"undefined"==typeof suchConfig&&(suchConfig=""),suchConfig.stars=$("input.sterne").val()>0?$("input.sterne").val():"",suchConfig.bewertung=$("input.hc").val()>0?$("input.hc").val():"",suchConfig.verpflegung="",$("input.verpflegung:checked").each(function(){suchConfig.verpflegung+=$(this).val()+" "}),suchConfig.room="",$("input.zimmer:checked").each(function(){suchConfig.room+=$(this).val()+"-"}),doFilterSearch(),addCookieHistory()}),$(".showFilter").click(function(){$(this).parent().parent().find(".filter.row").hasClass("d-none")?($(this).parent().parent().find(".filter.row").removeClass("d-none"),$(this).children(".up").addClass("d-none"),$(this).children(".down").removeClass("d-none")):($(this).parent().parent().find(".filter.row").addClass("d-none"),$(this).children(".down").addClass("d-none"),$(this).children(".up").removeClass("d-none"))}),$(".filter .close").click(function(){$(".showFilter").trigger("click")}),$(".filterResults").click(function(){$(".innerFilter").css("display","block"),$("body").addClass("noScroll"),$(".col-md-3.filter").addClass("show")}),$(".hideFilter, .innerFilter .close").click(function(e){if($(".innerFilter, .isTopOffer").css("display","none"),$("body").removeClass("noScroll"),$(".col-md-3.filter").removeClass("show"),$(".filter.row").addClass("d-none"),$(this).hasClass("hideFilter")&&void 0!==$(this).parent().parent().parent().find(".showFilter").offset()){var t=$(this).parent().parent().parent().find(".showFilter").offset().top-500;$("html, body").animate({scrollTop:t},200)}}),$(".filterButton").click(function(){$(".col-md-3.filter").hasClass("show")?(document.getElementById("hubspot-messages-iframe-container")&&document.getElementById("hubspot-messages-iframe-container").style.setProperty("display","initial","important"),$(".col-md-3.filter").removeClass("show"),$("body").removeClass("noScroll")):($(".innerFilter").css("display","block"),$(".col-md-3.filter").addClass("show"),$("body").addClass("noScroll"),document.getElementById("hubspot-messages-iframe-container")&&document.getElementById("hubspot-messages-iframe-container").style.setProperty("display","none","important"))}),$(".closeFilter").click(function(){document.getElementById("hubspot-messages-iframe-container")&&document.getElementById("hubspot-messages-iframe-container").style.setProperty("display","initial","important"),$(".col-md-3.filter").removeClass("show"),$("body").removeClass("noScroll")}),setTimeout(function(){updateFilterCloud()},100),$(".showFilterModal").click(function(){$(this).parent().parent().find(".filter.row").removeClass("d-none"),$(this).parent().parent().find(".filter.row").find(".close").unbind("click"),$(this).parent().parent().find(".filter.row").find(".close").removeClass("d-md-none"),$(this).parent().parent().find(".filter.row").find(".closeFilter").unbind("click"),$(this).parent().parent().find(".filter.row").find(".close").on("click",function(){closeFilterModal()}),$(this).parent().parent().find(".filter.row").find(".closeFilter").on("click",function(){closeFilterModal()}),$("body").append('<div class="modal-backdrop filterBackdrop fade show"></div>'),$("body").addClass("noScroll"),$(this).closest(".container.search").addClass("modalOpened"),$(".modal-backdrop.filterBackdrop").on("click",function(){closeFilterModal()}),$(".resetFilter").unbind("click"),$(".resetFilter").on("click",function(){$(this).closest(".filter").find(".sternbox .stern").removeClass("yellow"),$(this).closest(".filter").find(".sternbox .sterne").val(""),$(this).closest(".filter").find(".holidaycheck .bewertung").addClass("inactive"),$(this).closest(".filter").find(".hc").val(""),$(this).closest(".filter").find("input[type=checkbox]").prop("checked",!1)})})}function closeFilterModal(){let e=$(".container.search.modalOpened .tab-pane.active");$(".container.search").removeClass("modalOpened"),$(".modal-backdrop.filterBackdrop").remove(),e.find(".filter.row").addClass("d-none"),e.find(".filter.row").find(".close").addClass("d-md-none"),$("body").removeClass("noScroll"),e.find(".showFilterModal .pill").remove();let t=0;e.find(".filter.row").find("input[type=checkbox]:checked").each(function(){t++}),""!=e.find(".sternbox .sterne").val()&&t++,""!=e.find("input.hc").val()&&t++,t>0&&e.find(".showFilterModal").append('<span class="pill">'+t+"</span>")}function doFilterSearch(){if("undefined"==typeof suchConfig&&(suchConfig=""),lastJoeId=0,suchConfig.page=1,$("#search_result_box").html(""),resultsLoading=!1,$(".isTopOffer").remove(),void 0!==topOffersAjax&&"function"==typeof topOffersAjax.abort&&topOffersAjax.abort(),void 0!==$("div[id^=maxPrice]")[0]){var e=$
1("div[id^=maxPrice]")[0].noUiSlider.get();suchConfig.minPreis=e[0].replace(".00",""),suchConfig.preis=e[1].replace(".00","")==sliderMax?"":e[1].replace(".00","")}void 0!==$("select[name=veranstalter]")[0]&&setVaInSuchconfig(),updateUrlNew(),"function"==typeof suchen&&(suchen(),topLoaded=!1,topOffers())}function loadDestination(e){if(name=e.val(),hasSelectedHotelOnlyEntry=0,enterActivated=!1,name.length>=2){"undefined"==typeof rq_getDestinations?rq_getDestinations="":"function"==typeof rq_getDestinations.abort&&rq_getDestinations.abort(),kategorien="";var t=0;e.hasClass("onlyOwnOffers")&&(t=1),1==e.data("kreuzfahrt")&&(kategorien=e.parent().children(".destination[name=joeSuchkategorie]").val());var n="";1==e.data("nosuggest")&&(n=1),rq_getDestinations=$.ajax({type:"POST",url:"/hub/ajax/getDestination.php",data:{destination:name,noSuggest:n,kategorien:kategorien,suchtyp:e.data("suchtyp"),onlyOwnOffers:t,kreuzfahrt:e.data("kreuzfahrt")}}).done(function(t){if(/^[\],:{}\s]*$/.test(t.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){$(".resultcontainer").remove(),result=jQuery.parseJSON(t);var n="",s=0;for(i=0;i<result.length;i++){cssclass=1==result[i].headline?" headline":"",1!=result[i].headline&&0==s&&(cssclass+=" active",s=1),resetGiata="",1==result[i].resetGiata&&(resetGiata=' data-resetgiata="1" ');var a=$.trim(result[i].countryCode);n+='<span class="destination'+cssclass+'" data-id="'+result[i].id+'" '+resetGiata+' data-url="'+result[i].url+'" data-field="'+result[i].field+'" data-countrycode="'+a+'">'+result[i].name+"</span>"}""==n&&(n="<div class='p-2'>Keine Ergebnisse</div>"),e.after('<div class="resultcontainer">'+n+"</div>"),$(".resultcontainer").css("display","block"),initDestination(e)}})}}function checkSearchform(e){let t=!0;var i=$("#"+e+" .inputDaterangepicker").data("daterangepicker").startDate.format("YYYY-MM-DD"),n=$("#"+e+" .inputDaterangepicker").data("daterangepicker").endDate.format("YYYY-MM-DD");$("#"+e+" input[name=vonTermin]").val(i),$("#"+e+" input[name=bisTermin]").val(n);var s="";return $("#"+e+" select[class^=child]").each(function(){$(this).val()>0&&(s+=$(this).val()+"-")}),$("#"+e+" input[name=children]").val(s),1==$("#"+e+" .destination ").length&&""==$("#"+e+" input[name=hotelOnlyText_id]").val()&&""==$("#"+e+" input[name=gid]").val()&&1!=$("#"+e+" input[name=suchtyp]").val()&&($("#"+e+" .destination ").parent().addClass("error"),loadDestination($("#"+e+" .destination ")),t=!1),$("#"+e+" .form-label-group.multiselectContainer.airport ").length,1==$("#"+e+" .form-label-group.multiselectContainer select[name=dauer] ").length&&1!=$("#"+e+" .form-label-group.multiselectContainer select[name=dauer] ").data("isoptional")&&(""==$("#"+e+" .form-label-group.multiselectContainer select[name=dauer]").val()?($("#"+e+" .form-label-group.multiselectContainer select[name=dauer] ").parent().addClass("error"),t=!1):$("#"+e+" .form-label-group.multiselectContainer select[name=dauer] ").parent().removeClass("error")),t}function isMobileSearchSummaryViewport(){return window.matchMedia("(max-width: 767px)").matches}function getChildrenCountFromValue(e){if(null==e||""===e)return 0;for(var t=e.toString().split(/[-|]/),i=0,n=0;n<t.length;n++)""!==$.trim(t[n])&&i++;return i}function getSummaryDateText(e,t){var i=moment(e,"YYYY-MM-DD",!0),n=moment(t,"YYYY-MM-DD",!0);return i.isValid()&&n.isValid()?i.format("DD.MM.")+" - "+n.format("DD.MM."):""}function updateSummaryRowFromSearch(e){var t=$(".row.summary");if(0!==t.length){var i=$("#"+e),n=t.data("default-destination")||"alle",s=t.data("default-duration")||"wählen",a=$.trim(i.find(".destination").val()),o=i.find("select[name=adults]").val(),r=getChildrenCountFromValue(i.find("input[name=children]").val()),l=getSummaryDateText(i.find("input[name=vonTermin]").val(),i.find("input[name=bisTermin]").val()),c=$.trim(i.find("select[name=dauer] option:selected").text()),d=o&&""!==o?o:"2";d+=" Erw.",r>0&&(d+=", "+r+" Kind"+(1!==r?"er":"")),t.find(".summaryDest").text(""!==a?a:n),t.find(".summaryTravellers").text(d),""!==l&&t.find(".summaryTraveldate").text(l),t.find(".summaryDuration").text(""!==c?c:s)}}function showSummaryAndHideSearchForMobile(){isMobileSearchSummaryViewport()&&($(".searchOnResultpage .widget-content").addClass("inResults"),$(".searchOnResultpage").addClass("d-none"),$(".row.summary").removeClass("d-none"))}function initUpdateSearchButton(){$(".updateSearchButton").click(function(e){e.preventDefault(),e.stopPropagation();let t=$(this).closest("form").data("id");checkSearchform(t)&&(suchConfig.vonTermin=$("#"+t+" input[name=vonTermin]").val(),suchConfig.bisTermin=$("#"+t+" input[name=bisTermin]").val(),suchConfig.children=$("#"+t+" input[name=children]").val(),1==$("#"+t+" .form-label-group.multiselectContainer.airport ").length&&(suchConfig.airport=$("#"+t+" .form-label-group.multiselectContainer.airport input[type=checkbox]:checked").map(function(){return this.value}).get().join(" ")),1==$("#"+t+" .form-label-group.multiselectContainer select[name=dauer] ").length&&(suchConfig.dauer=$("#"+t+" .form-label-group.multiselectContainer select[name=dauer]").val()),1==$("#"+t+" .destination ").length&&(suchConfig.destinationName=$("#"+t+" .destination ").val(),suchConfig.destination=$("#"+t+" input[name=hotelO
1nlyText_id] ").val(),originalDestination=suchConfig.destination),suchConfig.adults=$("#"+t+" select[name=adults]").val(),suchConfig.page=1,suchConfig.gid=$("input[name=gid]").val(),$(".search_result_box.isTopOffer").remove(),$(".search_result_box").html(""),$("#search_result_box").html(""),regionListLoaded=""!=$("input[name=gid]").val(),$("style[data-type=hideOffers]").remove(),$("#search_result_box_regions").html(""),suchen(),updateUrlNew(t),updateSummaryRowFromSearch(t),showSummaryAndHideSearchForMobile())})}function initDestination(e){$("html").click(function(e){!$(e.target).hasClass("right")&&$(".resultcontainer").length>0&&(handleDestinationClick($(".resultcontainer .destination.active:not(.headline)")),$(".resultcontainer").remove(),$(e.target).hasClass("destination")||($(".inputfield.destination").val(""),$(".inputfield.destination").blur()))}),$(".resultcontainer span.destination:not(.headline)").click(function(){handleDestinationClick($(this))}),$(".resultcontainer span.destination:not(.headline)").mouseover(function(){$(this).parent().find(".destination").removeClass("active"),$(this).addClass("active")})}function updateUrlNew(e){(-1==e&&(e=1),$("#"+e+" input[name=vonTermin]").length>0&&(removeUrlParam("vonTermin"),addOrUpdateUrlParam("vonTermin",$("#"+e+" input[name=vonTermin]").val())),$("#"+e+" input[name=bisTermin]").length>0&&(removeUrlParam("bisTermin"),addOrUpdateUrlParam("bisTermin",$("#"+e+" input[name=bisTermin]").val())),$("#"+e+" select[name=dauer]").length>0&&(removeUrlParam("dauer"),addOrUpdateUrlParam("dauer",$("#"+e+" select[name=dauer]").val())),$("#"+e+" select[name=adults]").length>0&&(removeUrlParam("adults"),addOrUpdateUrlParam("adults",$("#"+e+" select[name=adults]").val())),$("#"+e+" input[name=children]").length>0&&(removeUrlParam("children"),addOrUpdateUrlParam("children",$("#"+e+" input[name=children]").val())),$("#"+e+" select[name='airport[]']").length>0)&&addOrUpdateMultiUrlParam("airport[]",$("#"+e+" select[name='airport[]']").val()||[]);$(".searchOnResultpage").length>0&&(removeUrlParam("destinationName"),""!=suchConfig.destinationName&&void 0!==suchConfig.destinationName&&addOrUpdateUrlParam("destinationName",suchConfig.destinationName),removeUrlParam("destination"),""!=suchConfig.destination&&void 0!==suchConfig.destination&&addOrUpdateUrlParam("destination",suchConfig.destination),removeUrlParam("stars"),""!=suchConfig.stars&&void 0!==suchConfig.stars&&addOrUpdateUrlParam("stars",suchConfig.stars),removeUrlParam("hc"),""!=suchConfig.bewertung&&void 0!==suchConfig.bewertung&&"undefined"!=suchConfig.bewertung&&addOrUpdateUrlParam("hc",suchConfig.bewertung),removeUrlParam("gT"),""!=suchConfig.globalTypes&&" "!=suchConfig.globalTypes&&void 0!==suchConfig.globalTypes&&addOrUpdateUrlParam("gT",suchConfig.globalTypes),removeUrlParam("transfer"),""!=suchConfig.transfer&&void 0!==suchConfig.transfer&&addOrUpdateUrlParam("transfer",suchConfig.transfer),removeUrlParam("verpflegung"),removeUrlParam("verpflegung[]"),removeUrlParam("verpflegung%5B%5D"),$(""!=suchConfig.verpflegung&&void 0!==suchConfig.verpflegung)&&$("input.verpflegung:checked").each(function(){addUrlParam("verpflegung[]",$(this).val())}),removeUrlParam("zimmer"),removeUrlParam("zimmer[]"),removeUrlParam("zimmer%5B%5D"),""!=suchConfig.room&&void 0!==suchConfig.room&&$("input.zimmer:checked").each(function(){addUrlParam("zimmer[]",$(this).val())}),removeUrlParam("minPreis"),""!=suchConfig.minPreis&&void 0!==suchConfig.minPreis&&"undefined"!=suchConfig.minPreis&&addOrUpdateUrlParam("minPreis",suchConfig.minPreis),removeUrlParam("preis"),""!=suchConfig.preis&&void 0!==suchConfig.preis&&"undefined"!=suchConfig.preis&&addOrUpdateUrlParam("preis",suchConfig.preis),removeUrlParam("nonStop"),"true"==suchConfig.nonStop&&0==suchConfig.nonStop&&addOrUpdateUrlParam("nonstop",1),removeUrlParam("hotelSearchtext"),""!=suchConfig.hotelSearchtext&&void 0!==suchConfig.hotelSearchtext&&addOrUpdateUrlParam("name",suchConfig.hotelSearchtext),removeUrlParam("veranstalter"),""!=suchConfig.veranstalter&&void 0!==suchConfig.veranstalter&&addOrUpdateUrlParam("veranstalter",suchConfig.veranstalter),removeUrlParam("dstOutMax"),""!=suchConfig.dstOutMax&&void 0!==suchConfig.dstOutMax&&addOrUpdateUrlParam("dstOutMax",suchConfig.dstOutMax),removeUrlParam("dstOutMin"),""!=suchConfig.dstOutMin&&void 0!==suchConfig.dstOutMin&&addOrUpdateUrlParam("dstOutMin",suchConfig.dstOutMin),removeUrlParam("depOutMax"),""!=suchConfig.depOutMax&&void 0!==suchConfig.depOutMax&&addOrUpdateUrlParam("depOutMax",suchConfig.depOutMax),removeUrlParam("depOutMin"),""!=suchConfig.depOutMin&&void 0!==suchConfig.depOutMin&&addOrUpdateUrlParam("depOutMin",suchConfig.depOutMin),removeUrlParam("updD"),addOrUpdateUrlParam("updD",1))}function addOrUpdateMultiUrlParam(e,t){var i=new URL(window.location.href),n=new URLSearchParams(i.search);n.delete(e),t.forEach(t=>{n.append(e,t)}),i.search=n.toString(),window.history.replaceState({},document.title,i.toString())}function handleDestinationClick(e){if(0!=e.data("id")&&void 0!==e.data("id")||""!=e.data("url")&&void 0!==e.data("url")){if(resetGeotreeSelection(e),addPreventCountrylistPreset(),removeUrlParam("forceLevel"),e.addClass("black"),e.val(e.text()),""!=e.data("url")&&"undefined"!=e.data("url"))return document.cookie="lastSearch=/index.php#"+e.parent().parent().parent().attr("id"),void(window.location=e.data("url"));if("hotelname"==e.data("field")?(e.parent().parent().parent().parent().find("input[name=gid]").val(e.data("id")),e.parent().parent().parent().parent().find("input[name=hotelO
1nlyText_id]").val(""),e.parent().parent().parent().parent().find("input[name=name]").val(e.text()),e.parent().parent().parent().parent().find("input.destination").val(e.text()),e.parent().parent().parent().parent().find("input[name=url]").val("")):(e.parent().parent().parent().parent().find("input[name=hotelOnlyText_id]").val(e.data("id")),e.parent().parent().parent().parent().find("input.destination").val(e.text()),e.parent().parent().parent().parent().find("input[name=gid]").val(""),e.parent().parent().parent().parent().find("input[name=name]").val(""),e.parent().parent().parent().parent().find("input[name=url]").val("")),0==$(".searchOnResultpage").length){var t=new Array("AT","DE","CH","IT","SK","HU","HR","SI","CZ");let i="VIE";window.location.href.indexOf("willweg.de")>0&&(i="FRA"),0==e.parent().parent().parent().parent().find(".airportParent option:selected").length&&(-1==t.indexOf(e.data("countrycode"))?$(".airportParent option[value="+i+"]").prop("selected",!0):$(".airportParent option[value="+i+"]").prop("selected",!1))}$("select[name=setVa]").val(""),$(".resultcontainer").parent().removeClass("error"),$(".resultcontainer").remove(),selectedDestination="",selectedDestinationName="",hasSelectedHotelOnlyEntry=1,updateUrl(e.parent().parent().attr("id"))}1==e.data("resetgiata")&&(e.parent().parent().parent().find("input[name=hotelOnlyText_id]").val(""),e.parent().parent().parent().find("input[name=gid]").val(""),e.parent().parent().parent().find("input[name=name]").val(""),e.parent().parent().parent().find("input[name=url]").val(""))}function resetGeotreeSelection(e){e.closest("form").find("#selected_destinations").find("li").each(function(){removeDestination($(this).data("id")),updateDestinationGeotree(),removeUrlParam("forceLevel")}),e.closest("form").find(".removeAllDestinations").remove()}function removeUrlParam(e){var t=new URL(window.location.href),i=new URLSearchParams(t.search);i.delete(e),t.search=i.toString(),window.history.replaceState({},document.title,t.toString())}function addOrUpdateUrlParam(e,t){var i=new URL(window.location.href),n=new URLSearchParams(i.search);n.set(e,t),i.search=n.toString(),window.history.replaceState({},document.title,i.toString())}function addUrlParam(e,t){var i=new URL(window.location.href),n=new URLSearchParams(i.search);n.append(e,t),i.search=n.toString(),window.history.replaceState({},document.title,i.toString())}function getCallerLineNumber(){const e=(new Error).stack;if(e){const t=e.split("\n");if(t.length>=3){const e=t[3].trim().match(/:(\d+):\d+\)?$/);return e?e[1]:null}}return null}function getNoResult(){if($(".search_result_box.isTopOffer").length>0)return;if(-1!=window.location.href.indexOf("oeamtc.at")||-1!=window.location.href.indexOf("fliegablinz.at"))return"<h3 class='w-100 text-center mb-4 pb-4 mt-4'>Leider wurden für Ihre Kriterien keine Ergebnisse gefunden.</h3>";return'<h3 class="w-100 text-center font-weight-normal mb-4 pb-4 mt-4"><div class=\'noresult\'>\nâ Leider nix gefunden â probierâs mit einer neuen Suche ð.<br />ð Oder klick <a href="/15minuten" style="font-weight: bold">EXPRESS-ANGEBOT</a> und hol dir Top-Deals direkt per Mail. <br /><br /><a href="/15minuten" class="expressUnderSearch"><img class="hoverImg" src="'+(-1!=window.location.href.indexOf("maderreisen")?"https://maderreisen.at/uploads/contact-header/express-reiseangebot.png":"/images/express.svg")+'"></a></div></h3>'}var suchenAjax="";function suchen(){if($(".colorbox").hasClass("categorie_box")||$(".categorie_box").addClass("categorymargin"),updateFilterCloud(),!resultsLoading){getGlobalTypes(),resultsLoading=!0,suchConfig.lastJoeId=lastJoeId,suchConfig.level=""!=$("input[name=hotelOnlyText_id]").val()||""!=$("input[name=gid]").val()?2:1,1==getStateParameter("suchtyp",window.location.href)&&(suchConfig.level=2,suchConfig.suchtyp=1),1==suchConfig.showAsCountrylist&&(suchConfig.level=1),$("input[name=destination].main:checked").length>0&&(suchConfig.level=1,suchConfig.forceLevel=1);var e=new URLSearchParams(window.location.search);if(2==e.get("forceLevel")?suchConfig.forceLevel=2:2==suchConfig.level&&(suchConfig.forceLevel=""),1==e.get("forceLevel")&&(suchConfig.forceLevel=1,removeUrlParam("forceLevel")),null!=document.querySelector(".depSliderOut .slider")){let e=document.querySelector(".depSliderOut .slider").noUiSlider.get(),t=document.querySelector(".dstSliderOut .slider").noUiSlider.get();suchConfig.depOutMin=parseInt(e[0]),suchConfig.depOutMax=parseInt(e[1]),suchConfig.dstOutMin=parseInt(t[0]),suchConfig.dstOutMax=parseInt(t[1])}2==suchConfig.level?$("body").hasClass("suchpage")||$("body").addClass("suchpage"):$(".searchresultcontainer #search_result_box_regions").addClass("d-none"),-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("oe24.at")||isFranchise?$("#search_result_box").append('<div class="loadingdiv w-100 text-center"><img src="/images/loading_plane.svg?id=3" alt="loading img" class="spinner" width="150" height="150" /><h3>Top-Deals im Anflug!</h3></div>'):$("#search_result_box").append('<div class="loadingdiv w-100 text-center"><img src="/images/loading.svg" alt="loading img" class="spinner" width="64" height="64" /><h3>Ihre Reisen werden geladen.</h3></div>'),"function"==typeof suchenAjax.abort&&suchenAjax.abort(),suchenAjax=$.ajax({type:"POST",url:"/hub/ajax/deliver.php",data:suchConfig}).done(function(e){if(suchenAjax="",/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){if(result=jQuery.parseJSON(e),1!=result.hasResults?(hasResults=!1,1==suchConfig.page?2==getStateParameter("suchtyp",window.location.href)?""!=$("input[name=gid]").val()?($("#search_result_box").html(getNoResult()),$("#search_result_box .loadingdiv").remove()):(""==result.value?$("#search_result_box").html(getNoResult()):$("#search_result_box").html(result.value),$("#search_result_box .loadingdiv").remove()):($("#search_result_box").append(getNoResult()),$("#search_result_box .loadingdiv").remove(),loadNoResultsCategory()):$("#search_result_box").append('<h3 class="w-100 text-center mb-4 pb-4 mt-4">Es wurden alle Ergebnisse geladen</h3>')):(hasResults=!0,$("#search_result_box").append(result.value),hideDoubleGid(),lastJoeId=result.lastJoeId,"function"==typeof pushSelectItemSearch&&($(".search_result_box").unbind("click"),$(".search_result_box").click(function(){pushSelectItemSearch($(this))})),"function"==typeof pushViewItemList&&setTimeout(function(){pushViewItemList()},1e3),0!=result.resultsTotal&&null!=result.resultsTotal&&($("#searchCountBox").html(result.resultsTotal>1?result.resultsTotal+" Angebote filtern nach":result.resultsTotal+" Angebot filtern nach"),result.resultsTotal>10&&($(".loadMoreOffers").remove(),setTimeout(function(){$("#search_result_box").append('<span class="btn btn-primary fancy loadMoreOffers">Mehr Angebote laden</span>'),$(".loadMoreOffers").on("click",function(){$(this).remove(),suchen()})},200))),$(".ratingbox").unbind("click"),$(".ratingbox").on("click",function(){$(this).closest("a").attr("href",$(this).closest("a").attr("href")+"&tab=rating"),setTimeout(function(){$(this).closest("a").attr("href",$(this).closest("a").attr("href").split("&tab=rating").join(""))},50)})),suchConfig.page++,state=History.getState(),1==suchConfig.level||$(".level1_result").length>0){if($("#search_result_box").html(result.value),hasResults){const e=window.location.search;new URLSearchParams(e);$(".bestPriceText").remove(),-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("oe24.at")||isFranchise||-1!=window.location.href.indexOf("oeamtc.at")&&result.resultsTotal>0&&$("#search_result_box").prepend('<h3 class="w-100 bestPriceText text-center mb-4 pb-4 mt-4">ÃAMTC REISEN â Mein Reisebüro mit Clubvorteil</h3>')}else $("#search_result_box").html(getNoResult());hasResults&&1!=suchConfig.showAlternativeNotFound&&$(".form-label-group.multiselectContainer.airport").length>0&&(-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("oe24.at"))&&$(".bestPriceText").remove(),hasResults=!1,$("#resultate .level1_result").unbind("click"),"willweg"!=tpTemplate&&"mader"!=tpTemplate?$("#resultate .level1_result").click(function(){if($(this).hasClass("expand"))$(this).parent().find(".subregi
1ons").hasClass("show")?$(this).parent().find(".subregions").removeClass("show"):$(this).parent().find(".subregions").addClass("show");else{var e=window.location.href;e=(e=(e=e.split("destinationName="+getStateParameter("destinationName",state.hashedUrl)).join("")).split("&hotelOnlyText_id="+getStateParameter("hotelOnlyText_id",state.hashedUrl)).join("")).split("&gid="+getStateParameter("gid",state.hashedUrl)).join(""),window.location.href=e+"&destinationName="+$(this).data("name")+"&hotelOnlyText_id= "+$(this).data("id")+"&startSuche=1&level=2&sxt&forceLevel=2"}}):($(".allRegions").unbind("click"),$(".allRegions").on("click",function(){var e=window.location.href;e=(e=(e=(e=e.split("destinationName="+getStateParameter("destinationName",state.hashedUrl)).join("")).split("&hotelOnlyText_id="+getStateParameter("hotelOnlyText_id",state.hashedUrl)).join("")).split("&gid="+getStateParameter("gid",state.hashedUrl)).join(""))+"&destinationName="+$(this).parent().parent().data("name")+"&hotelOnlyText_id="+$(this).parent().parent().data("id")+"&startSuche=1&level=2&sxt&forceLevel=2",window.location.href=e}),$("#resultate .subregions .level1_result").click(function(){var e=window.location.href;e=(e=(e=(e=e.split("destinationName="+getStateParameter("destinationName",state.hashedUrl)).join("")).split("&hotelOnlyText_id="+getStateParameter("hotelOnlyText_id",state.hashedUrl)).join("")).split("&gid="+getStateParameter("gid",state.hashedUrl)).join(""))+"&destinationName="+$(this).data("name")+"&hotelOnlyText_id="+$(this).data("id")+"&startSuche=1&level=2&sxt&forceLevel=2",window.location.href=e})),initLevel1Sort()}else $(".bestPriceText").remove(),-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("oe24.at")||isFranchise?result.resultsTotal:-1!=window.location.href.indexOf("oeamtc.at")&&result.resultsTotal>0&&$(".searchresultcontainer").prepend('<h3 class="w-100 text-center bestPriceText">ÃAMTC REISEN â Mein Reisebüro mit Clubvorteil</h3>');1==result.resultsTotal?($(".resultCount").html(result.resultsTotal+" Hotel gefunden"),$(".multiselectContainer.sort").removeClass("d-none")):void 0!==result.resultsTotal&&null!=result.resultsTotal?(-1!=window.location.href.indexOf("oeamtc.at")?$(".resultCount").html(result.resultsTotal+" Angebote gefunden"):$(".resultCount").html(result.resultsTotal+" Hotels gefunden"),$(".multiselectContainer.sort").removeClass("d-none")):$(".multiselectContainer.sort").addClass("d-none"),getRegionlist(),initResultSlick(),initFaves()}else console.log("datenfehler in suchen.js"),console.log(jQuery.parseJSON(e));$("#search_result_box .loadingdiv").remove(),resultsLoading=!1,updateUrlNew()})}}function hideDoubleGid(){let e=new Set;document.querySelectorAll("#search_result_box .search_result_box").forEach(t=>{let i=t.getAttribute("data-giataid");e.has(i)?t.style.display="none":e.add(i)})}function initLevel1Sort(){$(".sortLevel1").change(function(){let e=$(this).val(),t=$("#resultate");t.find("section").sort(function(t,i){return"price"==e?+t.dataset.price-+i.dataset.price:"name"==e?t.dataset.name<i.dataset.name?-1:t.dataset.name>i.dataset.name?1:0:"flight"==e?0==t.dataset.flighttime?1:0==i.dataset.flighttime?-1:+t.dataset.flighttime-+i.dataset.flighttime:void 0}).appendTo(t),t.find("section").each(function(){let t=$(this),i=t.find(".subregions .level1_result");i.sort(function(t,i){if("price"==e)return+t.dataset.price-+i.dataset.price;if("name"==e){let e=(t.dataset.name||"").toLowerCase(),n=(i.dataset.name||"").toLowerCase();return e<n?-1:e>n?1:0}return"flight"==e?0==t.dataset.flighttime?1:0==i.dataset.flighttime?-1:+t.dataset.flighttime-+i.dataset.flighttime:void 0}),i.detach().appendTo(t.find(".subregions"))})}),$(".sortLevel1").val("price"),$(".sortLevel1").trigger("change")}var topOffersAjax="";function topOffers(){if(!(-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("mader")||-1!=window.location.href.indexOf("oe24.at")||isFranchise||"undefined"!=typeof tpTemplate&&"willweg"==tpTemplate||topLoaded)){if(topLoaded=!0,"undefined"==typeof suchConfig)return;var e=Object.create(suchConfig);
1if(e.topOffers=1,e.level=""!=$("input[name=hotelOnlyText_id]").val()||""!=$("input[name=gid]").val()?2:1,1==e.showAsCountrylist)return;topOffersAjax=$.ajax({type:"POST",url:"/hub/ajax/deliver.php",data:e}).done(function(e){/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))?(result=jQuery.parseJSON(e),result.resultsTotal>0&&$(".noresult").remove(),$("#search_result_box").parent().prepend(result.value),initResultSlick(),initFaves(),2==suchConfig.level&&($(".bestPriceText").remove(),0==$("#search_result_box .noresult").length&&(-1!=window.location.href.indexOf("willweg")||-1!=window.location.href.indexOf("oe24.at")||isFranchise||-1!=window.location.href.indexOf("oeamtc.at")&&$(".searchresultcontainer").prepend('<h3 class="w-100 text-center bestPriceText">ÃAMTC REISEN â Mein Reisebüro mit Clubvorteil</h3>')),"function"==typeof pushSelectItemSearch&&($(".search_result_box").unbind("click"),$(".search_result_box").click(function(){pushSelectItemSearch($(this))})),$(".ratingbox").unbind("click"),$(".ratingbox").on("click",function(){$(this).closest("a").attr("href",$(this).closest("a").attr("href")+"&tab=rating"),setTimeout(function(){$(this).closest("a").attr("href",$(this).closest("a").attr("href").split("&tab=rating").join(""))},50)}))):console.log("datenfehler in suchen.js")})}}function loadNoResultsCategory(){if(topLoaded=!0,"undefined"!=typeof suchConfig){var e=Object.create(suchConfig);e.level=""!=$("input[name=hotelOnlyText_id]").val()||""!=$("input[name=gid]").val()?2:1,e.noResultsCategory=$("input[name=noResultsCategory]").val(),topOffersAjax=$.ajax({type:"POST",url:"/hub/ajax/deliver.php",data:e}).done(function(e){/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))?(result=jQuery.parseJSON(e),$("#search_result_box").html(getNoResult()),$("#search_result_box").append(result.value),initResultSlick(),initFaves()):console.log("datenfehler in suchen.js")})}}function initResultSlick(){let e=1,t=1,i=1;-1!=window.location.href.indexOf("oeamtc.at")&&(e=3,t=5,i=2),e=3,t=5,i=3,$(".resultslider").not(".slick-initialized").slick({arrows:!0,slidesToShow:e,lazyLoad:"ondemand",infinite:!1,slidesToScroll:1,variableWidth:!1,variableHeight:!1,centerMode:!1,mobileFirst:!0,swipeToSlide:!0,responsive:[{breakpoint:991,settings:{slidesToShow:i}},{breakpoint:576,settings:{slidesToShow:t}}]})}function getGlobalTypes(){var e="";suchConfig.transfer=0,suchConfig.nonStop=0,$(".global input").each(function(){input=$(this),input.prop("checked")&&("transfer"==input.val()?suchConfig.transfer=1:"nonstop"==input.attr("name")?suchConfig.nonStop="true":e+=" "+input.val())}),suchConfig.globalTypes=e}$(function(){"function"!=typeof back&&(window.back=function(){window.history.back()}),$(".multiselect.category").length>0&&$(".multiselect.category").on("change",function(){suchConfig.searchcategory=$(this).val()})});let originalDestination="",regionListLoaded=!1;function getRegionlist(){if(!regionListLoaded){""==originalDestination&&(originalDestination=suchConfig.destination);var e=Object.create(suchConfig);e.getRegionlist=1,e.level=1,e.destination=originalDestination,""!=e.gid&&void 0!==e.gid&&-1==e.gid.indexOf(" ")||(regionListLoaded=!0,$.ajax({type:"POST",url:"/hub/ajax/deliver.php",data:e}).done(function(e){if(/^[\],:{}\s]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))&&""!=e)if(result=jQuery.parseJSON(e),""==$("#search_result_box_regions").html())$("#search_result_box_regions").html(result.value),$(".moreRegions").click(function(e){e.preventDefault(),$(this).parent().parent().addClass("show"),$(this).addClass("d-none")}),$("#search_result_box_regions .region").each(function(){$(this).find("input").change(function(){var e="";$("#search_result_box_regions input:checked").each(function(){e+=" "+$(this).val()}),e=e.split("-").join(" "),suchConfig.destination=""!=e?e:$("input[name=hotelO
1nlyText_id]").val(),suchConfig.page=1,suchConfig.lastJoeId="",resultsLoading=!1,$("#search_result_box").html(""),suchen()})});else if(null!==result.regionsRaw&&result.regionsRaw.length>0){$("#search_result_box_regions .region").addClass("d-none");for(let e=0;e<result.regionsRaw.length;e++){let t=result.regionsRaw[e][0],i=result.regionsRaw[e][1],n=$("input[name=regionbox][value="+t+"]").parent().find("span").html();n=n.split("("),$("input[name=regionbox][value="+t+"]").parent().find("span").html(n[0]+"("+i+")"),$("input[name=regionbox][value="+t+"]").parent().parent().removeClass("d-none")}}else $("#search_result_box_regions").html("");else console.log("datenfehler in suchen.js")}))}}function initSterne(){aktiv="★",inaktiv="★",$(".stern").mouseover(function(){for($(this).parent().children(".stern").html(inaktiv),$(this).parent().children(".stern").removeClass("yellow"),pos=$(this).index(),i=0;i<=parseInt(pos);i++)$(this).parent().children(".stern:nth-child("+(i+1)+")").html(aktiv),$(this).parent().children(".stern:nth-child("+(i+1)+")").addClass("yellow")}),$(".stern").mouseout(function(){for(pos=$(this).parent().children(".sterne").val(),$(this).parent().children(".stern").html(inaktiv),$(this).parent().children(".stern").removeClass("yellow"),i=1;i<=parseInt(pos)+1;i++)$(this).parent().children(".stern:nth-child("+i+")").html(aktiv),$(this).parent().children(".stern:nth-child("+i+")").addClass("yellow")}),$(".stern").click(function(){pos=$(this).index(),pos==$(this).parent().children(".sterne").val()&&(pos=0),$(this).parent().children(".sterne").val(pos).trigger("change")})}function initBewertung(){state=History.getState();var e=getStateParameter("hc",state.hashedUrl);$(".holidaycheck a").mouseover(function(e){if(bewertung=$(this).data("id"),!isNaN(bewertung))for(i=1;i<=5;i++)i<=bewertung?$(this).parent().children(".bewertung"+i).removeClass("inactive"):$(this).parent().children(".bewertung"+i).addClass("inactive")}),$(".holidaycheck a").mouseout(function(t){for(i=1;i<=5;i++)i<=e?$(this).parent().children(".bewertung"+i).removeClass("inactive"):$(this).parent().children(".bewertung"+i).addClass("inactive")}),$(".holidaycheck a").click(function(t){isNaN(bewertung)||((e=$(this).data("id"))==$(this).parent().parent().children(".hc").val()&&(e=0),$(this).parent().parent().children(".hc").val(e).trigger("change"),$(this).parent().parent().children(".surround.hc .del").css("display","block"))})}function updateUrl(e,t){"hotel"!=getStateParameter("page",state.hashedUrl)&&updateUrlNew(-1)}function isIE(){var e=navigator.userAgent.toLowerCase();return-1!=e.indexOf("msie")&&parseInt(e.split("msie")[1])}function getStateParameter(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null==i?"":decodeURIComponent(i[1].replace(/\+/g," "))}function initGeotreeSearch(){$("#geotreeSearchfield").on("keyup click",function(){$("#geotreeResult").remove(),$(this).parent().after("<div id='geotreeResult'></div>"),search=$(this).val().toLowerCase(),search.length>1&&($(".destinationsBox label").each(function(){val=$(this).html().split("<"),val=val[0],-1!=val.toLowerCase().indexOf(search)&&($(this).hasClass("main")?sub="Alle Reiseziele":sub="Alle Reisezeile, "+$(this).parent().parent().children("label.main").html(),id=$(this).prev("input").data("val"),$("#geotreeResult").append('<div class="result" data-val="'+id+'"><span class="destname">'+val+'</span><span class="sub">'+sub+"</span> </div> "))}),$("#geotreeResult .result").click(function(){val=$(this).data("val"),checkbox=$(".destinationsBox input[data-val="+val+"]"),addDestination(val),checkbox.parent().hasClass("inactive")&&checkbox.parent().parent().children("label.main").trigger("click"),checkbox.prop("checked",!0),$("#geotreeResult").remove(),$("#geotreeSearchfield").val("")})),$(".destinationsBox, html").click(function(){$("#geotreeResult").remove()})})}function initDestinationGeotree(){setTimeout(function(){$(".destinationsBox input:checked").each(function(){addDestination($(this).prop("id"))}),updateDestinationGeotree()},100),$(".destinationsBox .mainregion .main").change(function(){var e=$
1(this).is(":checked");switchDestination($(this)),$(this).parent().children(".subregions").children(" .subregion").each(function(){e?($(this).prop("checked",!0),addDestination($(this).prop("id"))):($(this).prop("checked",!1),removeDestination($(this).prop("id")))}),e?($(this).parent().children(".subregions").removeClass("inactive"),$(this).removeClass("inactive")):($(this).parent().children(".subregions").addClass("inactive"),$(this).addClass("inactive"))}),$(".destinationsBox .subregion").change(function(){$(this).parent().parent().children("input.main").prop("checked",!1),removeDestination($(this).parent().parent().children("input.main").prop("id")),switchDestination($(this))}),$(".destinationsBox .subregions label").click(function(){$(this).prev().trigger("click")}),$(".destinationsBox .mainregion label.main").click(function(){0==$(this).parent().children(".subregions").children("input").length&&$(this).prev().trigger("click")}),$(".destinationsBox span.h4").click(function(){$(this).parent().children(".subdestinations").toggle(),$(this).hasClass("active")?$(this).removeClass("active"):$(this).addClass("active")}),$(".deButton").click(function(e){$(this).parent().find(".destinationsBox").css("display","block")}),$(".destinationsBox .close,.destinationsBox .ok, html").click(function(e){let t=!1;$(".destinationsBox").each(function(){"block"==$(this).css("display")&&(t=!0)}),!$(e.target).hasClass("button_console")&&t&&($(".destinationsBox").css("display","none"),"function"!=typeof trackTf||treetracked?updateDestinationGeotree():(trackTf("geotree"),treetracked=!0,setTimeout(updateDestinationGeotree,70)))}),$(".destinationsBox label.main").click(function(){$(this).parent().children(".subregions").hasClass("active")?($(this).parent().children(".subregions").removeClass("active").addClass("inactive"),$(this).removeClass("active"),$(this).children(".icon").removeClass("active")):($(this).parent().children(".subregions").removeClass("inactive").addClass("active"),$(this).children(".icon").addClass("active"),$(this).addClass("active"))}),$(".destinationsBox input[type=checkbox]:checked,.subregions.active").each(function(){var e=$
1(this).parent().parent().parent().parent();e.children(".subdestinations").css("display","block"),e.children("span.h4").hasClass("active")||e.children("span.h4").addClass("active")}),$(".destinationsBox, .deButton, #geotreeSearchfield").click(function(e){e.stopPropagation()}),$("#selected_destinations ").on("click","ul li span",function(){id=$(this).parent().data("id"),removeDestination(id)}),$(".destinationsBox .tab").click(function(){$(".destinationsBox .tab").removeClass("active"),$(".destinationsBox .contents").removeClass("block"),$(this).addClass("active"),$(".destinationsBox #contents_"+$(this).data("id")).addClass("block")}),initGeotreeSearch()}function removeAllDestinationsGeotree(){$(".destinationsBox input[type=checkbox]:checked").each(function(){$(this).prop("checked",!1)}),$(".destinationsBox #selected_destinations ul li").remove(),updateDestinationGeotree()}function updateDestinationGeotree(){destinationcount=0,gesamtcount=0,name="",$(".destinationsBox .mainregion ").each(function(){all_children_selected=0,$(this).children(".subregion").length>0&&(all_children_selected=1),$(this).children(".subregion").each(function(){$(this).is(":checked")||(all_children_selected=0)}),1==all_children_selected&&($(this).children(".subregion").each(function(){$(this).prop("checked",!1),removeDestination($(this).data("val"))}),$(this).children(".main").prop("checked",!0),addDestination($(this).children(".main").data("val")))}),$('.destinationsBox input[name="destination"]').each(function(){"undefined"!=typeof val&&(gesamtcount+=val.length)}),$('.destinationsBox input[name="destination"]:checked').each(function(){val=$(this).data("childcount"),""==name?name=$(this).data("name"):name=0,destinationcount+=parseInt(val)}),0==destinationcount||destinationcount==gesamtcount?$(".deButton .text").html("wählen"):($(".border.destination .del").trigger("click"),$(".border.destination input").blur(),0!=name&&""!=name?$(".deButton .text").html("Reiseziel: "+name):(destinationcount=0,$(".destinationsBox input:checked").each(function(){destinationcount++}),$(".deButton").each(function(){$(this).find(".text").html($(this).parent().find("#selected_destinations li").length+" Reiseziele gewählt")})),destination="",destination_groups="",$(' input[name="destination"]:checked').each(function(){destination+=$(this).val()+"-",destination_groups+=$(this).data("val")+"-"}),"block"==$(".destinationsBox_mobile").css("display")&&(destination=$(".destinationsBox_mobile").val()+"-",destination_groups=$(".destinationsBox_mobile").val()+"-"),$("input[name=destination_groups]").val(destination_groups),$("input[name=hotelOnlyText_id]").val(destination),$("input[name=gid]").val(""),killAirline=!0,setAirline="",state=History.getState(),"results"==getStateParameter("page",state.hashedUrl)?updateUrl(1):updateUrl())}function updateGeotreeAllowed(){$(".destinationsBox").each(function(){$(this).find("ul li").length>50?($(this).find("input[type=checkbox]:not(:checked)").attr("disabled","disabled"),$(this).find(".red.d-none").removeClass("d-none")):($(this).find("input[type=checkbox]:not(:checked)").removeAttr("disabled"),$(this).find(".red").addClass("d-none"))})}function switchDestination(e){e.is(":checked")?addDestination(e.prop("id")):removeDestination(e.prop("id"))}function addPreventCountrylistPreset(){"undefined"!=typeof suchConfig?suchConfig.showAsCountrylist=0:($(".prevCL").remove(),$("input[name=suchtyp]").prepend('<input type="hidden" class="prevCL" name="preventCountrylistPreset" value="1">'))}function addDestination(e){var t=0;$(".destinationsBox #selected_destinations ul li").each(function(){$(this).data("id")!=e&&$(this).find(".selectedDestination").text()!=$(".destinationsBox #"+e).data("name")||(t=1)}),1!=t&&($(".destinationsBox #selected_destinations ul").append("<li data-id='"+e+"'><span class='border'><span class='removeX'>x</span></span><span class='selectedDestination'>"+$(".destinationsBox #"+e).data("name")+"</span></li>"),updateGeotreeAllowed(),$(".destinationsBox").closest("form").find(".destination").val(""),addPreventCountrylistPreset(),removeUrlParam("forceLevel"),$(".destinationsBox .removeAllDestinations").remove(),$(".destinationsBox #selected_destinations ul").before('<span class="removeAllDestinations">alle Reiseziele entfernen</span>'),$(".removeAllDestinations").click(function(){resetGeotreeSelection($(this))}))}function removeDestination(e){let t=$(".destinationsBox #"+e).data("name");
1$(".destinationsBox #"+e).prop("checked",!1),$(".destinationsBox input[data-name='"+t+"']").prop("checked",!1),$(".destinationsBox #selected_destinations ul li[data-id='"+e+"']").remove(),updateGeotreeAllowed()}function initType(e){$("input[name="+e+"box]").change(function(){val="",$("input[name="+e+"box]:checked").each(function(){val+=$(this).val()+" "}),$("input[name="+e+"]").val(val),suchConfig[e]=val,suchen()}),initMultiElem(".row."+e)}function initMultiElem(e){$(e).click(function(e){$(this).hasClass("active")?($(this).removeClass("active"),$(this).children("input").prop("checked",!1)):($(this).addClass("active"),$(this).children("input").prop("checked",!0)),"checkbox"!=e.target.type&&$(this).children("input").trigger("change")})}function updateFilterCloud(){let e="filterBox btn btn-outline p-2 mr-2 mt-0";History.getState();$(".filterCloud .filterStars").remove(),$(".filterCloud .filterHc").remove(),$(".filterCloud .filterMaxPrice").remove(),$(".filterCloud .filterAdditional").remove(),$(".filterCloud .filterRegions").remove();try{let t=$("select[name=veranstalter] option:selected"),i=[];$(t).each(function(){""!=$(this).val()&&i.push($(this).text())}),$(".filterCloud .filterToc").remove(),i.length>0&&(i=i.join(", "),$(".filterCloud").append('<span class="'+e+' filterToc">'+i+"</div>"),$(".filterCloud .filterToc").on("click",function(){$(this).remove(),$("select[name=veranstalter]").selectpicker("val",""),$("select[name=veranstalter]").trigger("change")}))}catch(e){}if("undefined"!=typeof suchConfig&&""!=suchConfig.hotelSearchtext&&void 0!==suchConfig.hotelSearchtext)try{$(".filterCloud .filterSearchtext").remove(),$(".filterCloud").append('<span class="'+e+' filterSearchtext">'+suchConfig.hotelSearchtext+"</div>"),$(".filterCloud .filterSearchtext").on("click",function(){$(this).remove(),$("input[name=hotelSearchtext]").val(""),suchConfig.hotelSearchtext="",doFilterSearch()})}catch(e){}try{let t={};if($(".depSliderOut .slider").length>0){$(".filterCloud .filterDepFlight").remove();let i=$(".depSliderOut .slider")[0].noUiSlider.get();t.min=i[0].replace(".00",""),t.max=i[1].replace(".00",""),(t.min>0||t.max<96)&&($(".filterCloud").append('<span class="'+e+' filterDepFlight">Hinflug: '+getSliderTime(t.min)+" - "+getSliderTime(t.max)+" Uhr</div>"),$(".filterCloud .filterDepFlight").on("click",function(){$(this).remove(),$(".depSliderOut .slider")[0].noUiSlider.set([0,96]),doFilterSearch()}))}}catch(e){}try{let t={};if($(".dstSliderOut .slider").length>0){$(".filterCloud .filterRetFlight").remove();let i=$(".dstSliderOut .slider")[0].noUiSlider.get();t.min=i[0].replace(".00",""),t.max=i[1].replace(".00",""),(t.min>0||t.max<96)&&($(".filterCloud").append('<span class="'+e+' filterRetFlight">Rückflug: '+getSliderTime(t.min)+" - "+getSliderTime(t.max)+" Uhr</div>"),$(".filterCloud .filterRetFlight").on("click",function(){$(this).remove(),$(".dstSliderOut .slider")[0].noUiSlider.set([0,96]),doFilterSearch()}))}}catch(e){console.log(e)}try{let t=parseInt($("input.sterne").val());t>1&&($(".filterCloud").append('<span class="'+e+' filterStars">min '+t+" Sterne</div>"),$(".filterCloud .filterStars").on("click",function(){$(this).remove(),$("input.sterne").val("0"),$(".txt_xlarge.stern").removeClass("yellow"),doFilterSearch()}))}catch(e){}try{let t=parseInt($("input.hc").val());t>1&&($(".filterCloud").append('<span class="'+e+' filterHc">min '+t+" Bewertung</div>"),$(".filterCloud .filterHc").on("click",function(){$(this).remove(),$("input.hc").val(""),$(".holidaycheck .bewertung").removeClass("inactive"),$(".holidaycheck .bewertung").addClass("inactive"),doFilterSearch()}))}catch(e){}try{if(void 0!==$("div[id^=maxPrice].slider")[0].noUiSlider){let t=$("input[name=minPreis]").val(),i=$("input[name=preis]").val(),n=$("div[id^=maxPrice].slider")[0].noUiSlider.options.range.max;if(t>0||i<n){let n="";t>0&&(n="Gesamtpreis: ab â¬"+t),""!=i&&(n="Gesamtpreis: bis â¬"+i),t>0&&""!=i&&(n="Gesamtpreis: â¬"+t+" - â¬"+i),""!=n&&($(".filterCloud").append('<span class="'+e+' filterMaxPrice">'+n+"</div>"),$(".filterCloud .filterMaxPrice").on("click",function(){$("input[name=minPreis]").val(0),$("input[name=preis]").val(5e3),$("div[id^=maxPrice].slider")[0].noUiSlider.set([0,$("div[id^=maxPrice].slider")[0].noUiSlider.options.range.max]),$(this).remove(),doFilterSearch()}))}}}catch(e){}$(".innerFilter input[type=checkbox]:checked:not(.topHotelOnly)").each(function(){$(".filterCloud").append('<span class="'+e+' filterAdditional" data-name="'+$(this).attr("name")+'" data-value="'+$
1(this).val()+'">'+$(this).parent().find("span").text()+"</div>")}),$(".filterCloud .filterAdditional").unbind("click"),$(".filterCloud .filterAdditional").on("click",function(){$(this).remove(),1!=$(this).data("value")?$("input[value='"+$(this).data("value")+"']").click():$("input[name="+$(this).data("name")+"]").click()}),$(".filterCloud .removeAllFilter").remove(),$(".filterCloud .filterBox:not(.filterRegions)").length>0&&($(".filterCloud").append("<span class='removeAllFilter'>Alle Filter löschen</span>"),$(".filterCloud .removeAllFilter").unbind("click"),$(".filterCloud .removeAllFilter").on("click",function(){suchConfig.verpflegung="",suchConfig.zimmer="",suchConfig.globalType="",$("input[name=verpflegung]").val(""),$("input[name=zimmer]").val(""),$("input[name=globalType]").val(""),$("input[name=minPreis]").val(0),$("input[name=preis]").val(),$("div[id^=maxPrice].slider").length>0&&$("div[id^=maxPrice].slider")[0].noUiSlider.set([0,1e6]),$("select[name=veranstalter]").selectpicker("val",""),$("select[name=veranstalter]").trigger("change");let e=$(".depSliderOut .slider");e.length>0&&e[0].noUiSlider.set([0,96]);let t=$(".dstSliderOut .slider");t.length>0&&t[0].noUiSlider.set([0,96]),$("input[name=minPreis]").val(0),$("input[name=preis]").val(5e3),$("div[id^=maxPrice].slider")[0].noUiSlider.set([0,$("div[id^=maxPrice].slider")[0].noUiSlider.options.range.max]),$("input.hc").val(""),suchConfig.bewertung="",$(".holidaycheck .bewertung").removeClass("inactive"),$(".holidaycheck .bewertung").addClass("inactive"),$("input.sterne").val("0"),suchConfig.stars="",$(".txt_xlarge.stern").removeClass("yellow"),$(".innerFilter input[type=checkbox]").prop("checked",!1),$(".filterCloud .filterBox").remove(),$(".filterCloud .removeAllFilter").remove(),doFilterSearch()}))}function initCruiseSearch(){cruiseInited||(cruiseInited=!0,$("select[name=cruiseCompany]").on("change",function(){if(0==$(this)[0].selectedOptions.length){if(0!=$(this).parent().parent().parent().find("select[name=cruiseShip]").length)for(var e=$(this).parent().parent().parent().find("select[name=cruiseShip]")[0].options,t=0;t<e.length;t++)e[t].className=""}else $(this).parent().parent().parent().find("select[name=cruiseShip] option:not(.d-none)").addClass("d-none"),$(this).find("option:selected").each(function(){var e=$
1(this).val();0==e.indexOf("prerow_")&&(e=e.replace("prerow_","")),$(this).parent().parent().parent().parent().find("select[name=cruiseShip] option[data-red="+e+"]").removeClass("d-none")});$(this).parent().parent().parent().find("select[name=cruiseShip] option.d-none:selected").prop("selected",!1),$(this).parent().parent().parent().find("select[name=cruiseShip]").multiselect("rebuild")}),0!=$("select[name=cruiseCompany]").length&&$("select[name=cruiseCompany]").trigger("change"),$(".cruiseSearch").each(function(){var e=$(this);e.find(".btn-primary").on("click",function(){updateCruiseUrl(e)})}))}function updateCruiseUrl(e){if(void 0===e.find(".inputDaterangepicker").val())return;let t=cruiseUrl;t.indexOf("?")<0&&(t+="/?"),t.indexOf("subid")>0&&(t+="&");let i=e.find(".inputDaterangepicker").data("daterangepicker");var n=i.startDate.format("YYYY-MM-DD"),s=i.endDate.format("YYYY-MM-DD");let[a,o,r]=n.split("-"),[l,c,d]=s.split("-");t+="sdt="+a+"-"+o+"-"+r,t+="&bdt="+l+"-"+c+"-"+d,$(e).find("select[name=cruiseDuration]").length>0&&(t+="&dur="+$(e).find("select[name=cruiseDuration]").val()),t+="&erw="+$(e).find("select[name=adults]").val();for(let i=1;i<=4;i++)$(e).find("select.child"+i).val()>0&&(t+="&k"+i+"="+$(e).find("select.child"+i).val());t=getDataFromSelects(t,e,"cruiseCompany","red"),t=getDataFromSelects(t,e,"cruiseShip","shipid"),t=getDataFromSelects(t,e,"cruiseHarbor","dsi"),t=getDataFromSelects(t,e,"cruiseDestination","region"),t=getDataFromSelects(t,e,"cruiseCabin","cab"),t=getDataFromSelects(t,e,"cruiseType","t"),e.find(".btn-primary").attr("href",t)}function getDataFromSelects(e,t,i,n){var s=t[0].querySelector("select[name="+i+"]");if(null!=s){var a=s.selectedOptions;if(a.length>0){if(1==a.length&&""==a[0].value)return e;e+="&"+n+"=";for(var o=0;o<a.length;o++)a[o].value=a[o].value.replace("prerow_",""),a.length>1?e+=a[o].value+"%2C":e+=a[o].value}}return e}!function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],i=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],n=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function a(t,a){var o=t.nodeName.toLowerCase();if(-1!==e.inArray(o,a))return-1===e.inArray(o,i)||Boolean(t.nodeValue.match(n)||t.nodeValue.match(s));for(var r=e(a).filter(function(e,t){return t instanceof RegExp}),l=0,c=r.length;l<c;l++)if(o.match(r[l]))return!0;return!1}function o(e,t,i){if(i&&"function"==typeof i)return i(e);for(var n=Object.keys(t),s=0,o=e.length;s<o;s++)for(var r=e[s].querySelectorAll("*"),l=0,c=r.length;l<c;l++){var d=r[l],h=d.nodeName.toLowerCase();if(-1!==n.indexOf(h))for(var u=[].slice.call(d.attributes),p=[].concat(t["*"]||[],t[h]||[]),f=0,m=u.length;f<m;f++){var g=u[f];a(g,p)||d.removeAttribute(g.nodeName)}else d.parentNode.removeChild(d)}}"classList"in document.createElement("_")||function(t){if("Element"in t){var i="classList",n="prototype",s=t.Element[n],a=Object,o=function(){var t=e(this);return{add:function(e){return e=Array.prototype.slice.call(arguments).join(" "),t.addClass(e)},remove:function(e){return e=Array.prototype.slice.call(arguments).join(" "),t.removeClass(e)},toggle:function(e,i){return t.toggleClass(e,i)},contains:function(e){return t.hasClass(e)}}};if(a.defineProperty){var r={get:o,enumerable:!0,configurable:!0};try{a.defineProperty(s,i,r)}catch(t){void 0!==t.number&&-2146823252!==t.number||(r.enumerable=!1,a.defineProperty(s,i,r))}}else a[n].__defineGetter__&&s.__defineGetter__(i,o)}}(window);var r,l,c=document.createElement("_");if(c.classList.add("c1","c2"),!c.classList.contains("c2")){var d=DOMTokenList.prototype.add,h=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,d.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,h.bind(this))}}if(c.classList.toggle("c3",!1),c.classList.contains("c3")){var u=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:u.call(this,e)}}function p(e){if(null==this)throw new TypeError;var t=String(this);if(e&&"[object RegExp]"==l.call(e))throw new TypeError;var i=t.length,n=String(e),s=n.length,a=1<arguments.length?arguments[1]:void 0,o=a?Number(a):0;o!=o&&(o=0);var r=Math.min(Math.max(o,0),i);if(i<s+r)return!1;for(var c=-1;++c<s;)if(t.charCodeAt(r+c)!=n.charCodeAt(c))return!1;return!0}function f(e,t){var i,n=e.selectedOptions,s=[];if(t){for(var a=0,o=n.length;a<o;a++)(i=n[a]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||s.push(i);return s}return n}function m(e,t){for(var i,n=[],s=t||e.selectedOptions,a=0,o=s.length;a<o;a++)(i=s[a]).disabled||"OPTGROUP"===i.parentNode.tagName&&i.parentNode.disabled||n.push(i.value);return e.multiple?n:n.length?n[0]:null}c=null,String.prototype.startsWith||(r=function(){try{var e={},t=Object.defineProperty,i=t(e,e,e)&&t}catch(e){}return i}(),l={}.toString,r?r(String.prototype,"startsWith",{value:p,configurable:!0,writable:!0}):String.prototype.startsWith=p),Object.keys||(Object.keys=function(e,t,i){for(t in i=[],e)i.hasOwnProperty.call(e,t)&&i.push(t);return i}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var g={useDefault:!1,_set:e.valHooks.select.set};e.valHooks.select.set=function(t,i){return i&&!g.useDefault&&e(t).data("selected",!0),g._set.apply(this,arguments)};var v=null,$=function(){try{return new Event("change"),!0}catch(e){return!1}}();function b(e,t,i,n){for(var s=["display","subtext","tokens"],a=!1,o=0;o<s.length;o++){var r=s[o],l=e[r];if(l&&(l=l.toString(),"display"===r&&(l=l.replace(/<[^>]+>/g,"")),n&&(l=S(l)),l=l.toUpperCase(),a="contains"===i?0<=l.indexOf(t):l.startsWith(t)))break}return a}function w(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,i=this[0];i.dispatchEvent?($?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),i.dispatchEvent(t)):i.fireEvent?((t=document.createEventObject()).eventType=e,i.fireEvent("on"+e,t)):this.trigger(e)};var x=
vendor: 1,721 bytes, line 1
1{"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss","Ä":"A","Ä":"A","Ä":"A","Ä":"a","Ä":"a","Ä
":"a","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"D","Ä":"D","Ä":"d","Ä":"d","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"G","Ä":"G","Ä ":"G","Ä¢":"G","Ä":"g","Ä":"g","Ä¡":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä¥":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Ä®":"I","İ":"I","Ä©":"i","Ä«":"i","Ä":"i","į":"i","ı":"i","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Ä¿":"L","Å":"L","ĺ":"l","ļ":"l","ľ":"l","Å":"l","Å":"l","Å":"N","Å
":"N","Å":"N","Å":"N","Å":"n","Å":"n","Å":"n","Å":"n","Å":"O","Å":"O","Å":"O","Å":"o","Å":"o","Å":"o","Å":"R","Å":"R","Å":"R","Å":"r","Å":"r","Å":"r","Å":"S","Å":"S","Å":"S","Å ":"S","Å":"s","Å":"s","Å":"s","Å¡":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å¥":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Å®":"U","Ű":"U","Ų":"U","Å©":"u","Å«":"u","Å":"u","ů":"u","ű":"u","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","Å»":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Å":"Oe","Å":"oe","Å":"'n","Å¿":"s"}
vendor: 36,761 bytes, line 1
1,C=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,k=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function y(e){return x[e]}function S(e){return(e=e.toString())&&e.replace(C,y).replace(k,"")}var I,O,T,E,D=(I={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},O="(?:"+Object.keys(I).join("|")+")",T=RegExp(O),E=RegExp(O,"g"),function(e){return e=null==e?"":""+e,T.test(e)?e.replace(E,P):e});function P(e){return I[e]}var U={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},A={success:!1,major:"3"};try{A.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),A.major=A.full[0],A.success=!0}catch(e){}var L=0,_=".bs.select",N={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},z={MENU:"."+N.MENU},M={span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("Â "),fragment:document.createDocumentFragment()};M.a.setAttribute("role","option"),"4"===A.major&&(M.a.className="dropdown-item"),M.subtext.className="text-muted",M.text=M.span.cloneNode(!1),M.text.className="text",M.checkMark=M.span.cloneNode(!1);var R=new RegExp("38|40"),B=new RegExp("^9$|27"),H={li:function(e,t,i){var n=M.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?n.appendChild(e):n.innerHTML=e),void 0!==t&&""!==t&&(n.className=t),null!=i&&n.classList.add("optgroup-"+i),n},a:function(e,t,i){var n=M.a.cloneNode(!0);return e&&(11===e.nodeType?n.appendChild(e):n.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&n.classList.add.apply(n.classList,t.split(" ")),i&&n.setAttribute("style",i),n},text:function(e,t){var i,n,s=M.text.cloneNode(!1);if(e.content)s.innerHTML=e.content;else{if(s.textContent=e.text,e.icon){var a=M.whitespace.cloneNode(!1);(n=(!0===t?M.i:M.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,M.fragment.appendChild(n),M.fragment.appendChild(a)}e.subtext&&((i=M.subtext.cloneNode(!1)).textContent=e.subtext,s.appendChild(i))}if(!0===t)for(;0<s.childNodes.length;)M.fragment.appendChild(s.childNodes[0]);else M.fragment.appendChild(s);return M.fragment},label:function(e){var t,i,n=M.text.cloneNode(!1);if(n.innerHTML=e.display,e.icon){var s=M.whitespace.cloneNode(!1);(i=M.span.cloneNode(!1)).className=this.options.iconBase+" "+e.icon,M.fragment.appendChild(i),M.fragment.appendChild(s)}return e.subtext&&((t=M.subtext.cloneNode(!1)).textContent=e.subtext,n.appendChild(t)),M.fragment.appendChild(n),M.fragment}},F=function(t,i){var n=this;g.useDefault||(e.valHooks.select.set=g._set,g.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=i,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){n.selectpicker.keydown.keyHistory=""},800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var s=this.options.windowPadding;"number"==typeof s&&(this.options.windowPadding=[s,s,s,s]),this.val=F.prototype.val,this.render=F.prototype.render,this.refresh=F.prototype.refresh,this.setStyle=F.prototype.setStyle,this.selectAll=F.prototype.selectAll,this.deselectAll=F.prototype.deselectAll,this.destroy=F.prototype.destroy,this.remove=F.prototype.remove,this.show=F.prototype.show,this.hide=F.prototype.hide,this.init()};function j(i){var n,s=arguments,a=i;if([].shift.apply(s),!A.success){try{A.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(i){F.BootstrapVersion?A.full=F.BootstrapVersion.split(" ")[0].split("."):(A.full=[A.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",i))}A.major=A.full[0],A.success=!0}if("4"===A.major){var o=[];F.DEFAULTS.style===N.BUTTONCLASS&&o.push({name:"style",className:"BUTTONCLASS"}),F.DEFAULTS.iconBase===N.ICONBASE&&o.push({name:"iconBase",className:"ICONBASE"}),F.DEFAULTS.tickIcon===N.TICKICON&&o.push({name:"tickIcon",className:"TICKICON"}),N.DIVIDER="dropdown-divider",N.SHOW="show",N.BUTTONCLASS="btn-light",N.POPOVERHEADER="popover-header",N.ICONBASE="",N.TICKICON="bs-ok-default";for(var r=0;r<o.length;r++)i=o[r],F.DEFAULTS[i.name]=N[i.className]}var l=this.each(function(){var i=e(this);if(i.is("select")){var o=i.data("selectpicker"),r="object"==typeof a&&a;if(o){if(r)for(var l in r)r.hasOwnProperty(l)&&(o.options[l]=r[l])}else{var c=i.data();for(var d in c)c.hasOwnProperty(d)&&-1!==e.inArray(d,t)&&delete c[d];var h=e.extend({},F.DEFAULTS,e.fn.selectpicker.defaults||{},c,r);h.template=e.extend({},F.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},c.template,r.template),i.data("selectpicker",o=new F(this,h))}"string"==typeof a&&(n=o[a]instanceof Function?o[a].apply(o,s):o.options[a])}});return void 0!==n?n:l}F.VERSION="1.13.14",F.DEFAULTS={noneSelectedText:"",noneResultsText:"No results matched {0}",countSelectedText:function(e,t){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:N.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:N.ICONBASE,tickIcon:N.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},F.prototype={constructor:F,init:function(){var e=this,t=this.$element.attr("id");L++,this.selectId="bs-select-"+L,this.$element[0].classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$element[0].classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(z.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.$element[0].classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(N.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+_,function(){if(e.isVirtual()){var t=e.$menuInner[0],i=t.firstChild.cloneNode(!1);t.replaceChild(i,t.firstChild),t.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide"+_,t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden"+_,t)},"show.bs.dropdown":function(t){e.$element.trigger("show"+_,t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown"+_,t)}}),e.$element[0].hasAttribute("required")&&this.$element.on("invalid"+_,function(){e.$button[0].classList.add("bs-invalid"),e.$element.on("shown"+_+".invalid",function(){e.$element.val(e.$element.val()).off("shown"+_+".invalid")}).on("rendered"+_,function(){this.validity.valid&&e.$button[0].classList.remove("bs-invalid"),e.$element.off("rendered"+_)}),e.$button.on("blur"+_,function(){e.$element.trigger("focus").trigger("blur"),e.$button.off("blur"+_)})}),setTimeout(function(){e.buildList(),e.$element.trigger("loaded"+_)})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.multiple?' aria-multiselectable="true"':"",n="",s=this.autofocus?" autofocus":"";A.major<4&&this.$element.parent().hasClass("input-group")&&(n=" input-group-btn");var a,o="",r="",l="",c="";return this.options.header&&(o='<div class="'+N.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>"),this.options.liveSearch&&(r='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+D(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+N.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+N.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+N.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),a='<div class="dropdown bootstrap-select'+t+n+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+s+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===A.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+N.MENU+" "+("4"===A.major?"":N.SHOW)+'">'+o+r+l+'<div class="inner '+N.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+i+'><ul class="'+N.MENU+" inner "+("4"===A.major?N.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",e(a)},setPositionData:function(){this.selectpicker.view.canHighlight=[];for(var e=this.selectpicker.view.size=0;e<this.selectpicker.current.data.length;e++){var t=this.selectpicker.current.data[e],i=!0;"divider"===t.type?(i=!1,t.height=this.sizeInfo.dividerHeight):"optgroup-label"===t.type?(i=!1,t.height=this.sizeInfo.dropdownHeaderHeight):t.height=this.sizeInfo.liHeight,t.disabled&&(i=!1),this.selectpicker.view.canHighlight.push(i),i&&(this.selectpicker.view.size++,t.posinset=this.selectpicker.view.size),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,i,n){var s,a,r=this,l=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),i)if(n)l=this.$menuInner[0].scrollTop;else if(!r.multiple){var d=r.$element[0],h=(d.options[d.selectedIndex]||{}).liIndex;if("number"==typeof h&&!1!==r.options.size){var u=r.selectpicker.main.data[h],p=u&&u.position;p&&(l=p-(r.sizeInfo.menuInnerHeight+r.sizeInfo.liHeight)/2)}}function f(e,i){var n,l,d,h,u,p,f,m,g=r.selectpicker.current.elements.length,v=[],$=!0,b=r.isVirtual();r.selectpicker.view.scrollTop=e,n=Math.ceil(r.sizeInfo.menuInnerHeight/r.sizeInfo.liHeight*1.5),l=Math.round(g/n)||1;for(var w=0;w<l;w++){var x=(w+1)*n;if(w===l-1&&(x=g),v[w]=[w*n+(w?1:0),x],!g)break;void 0===u&&e-1<=r.selectpicker.current.data[x-1].position-r.sizeInfo.menuInnerHeight&&(u=w)}if(void 0===u&&(u=0),p=[r.selectpicker.view.position0,r.selectpicker.view.position1],d=Math.max(0,u-1),h=Math.min(l-1,u+1),r.selectpicker.view.position0=!1===b?0:Math.max(0,v[d][0])||0,r.selectpicker.view.position1=!1===b?g:Math.min(g,v[h][1])||0,f=p[0]!==r.selectpicker.view.position0||p[1]!==r.selectpicker.view.position1,void 0!==r.activeIndex&&(a=r.selectpicker.main.elements[r.prevActiveIndex],c=r.selectpicker.main.elements[r.activeIndex],s=r.selectpicker.main.elements[r.selectedIndex],i&&(r.activeIndex!==r.selectedIndex&&r.defocusItem(c),r.activeIndex=void 0),r.activeIndex&&r.activeIndex!==r.selectedIndex&&r.defocusItem(s)),void 0!==r.prevActiveIndex&&r.prevActiveIndex!==r.activeIndex&&r.prevActiveIndex!==r.selectedIndex&&r.defocusItem(a),(i||f)&&(m=r.selectpicker.view.visibleElements?r.selectpicker.view.visibleElements.slice():[],r.selectpicker.view.visibleElements=!1===b?r.selectpicker.current.elements:r.selectpicker.current.elements.slice(r.selectpicker.view.position0,r.selectpicker.view.position1),r.setOptionStatus(),(t||!1===b&&i)&&($=!function(e,t){return e.length===t.length&&e.every(function(e,i){return e===t[i]})}(m,r.selectpicker.view.visibleElements)),(i||!0===b)&&$)){var C,k,y=r.$menuInner[0],S=document.createDocumentFragment(),I=y.firstChild.cloneNode(!1),O=r.selectpicker.view.visibleElements,T=[];y.replaceChild(I,y.firstChild),w=0;for(var E=O.length;w<E;w++){var D,P,U=O[w];r.options.sanitize&&(D=U.lastChild)&&(P=r.selectpicker.current.data[w+r.selectpicker.view.position0])&&P.content&&!P.sanitized&&(T.push(D),P.sanitized=!0),S.appendChild(U)}if(r.options.sanitize&&T.length&&o(T,r.options.whiteList,r.options.sanitizeFn),!0===b?(C=0===r.selectpicker.view.position0?0:r.selectpicker.current.data[r.selectpicker.view.position0-1].position,k=r.selectpicker.view.position1>g-1?0:r.selectpicker.current.data[g-1].position-r.selectpicker.current.data[r.selectpicker.view.position1-1].position,y.firstChild.style.marginTop=C+"px",y.firstChild.style.marginBottom=k+"px"):(y.firstChild.style.marginTop=0,y.firstChild.style.marginBottom=0),y.firstChild.appendChild(S),!0===b&&r.sizeInfo.hasScrollBar){var A=y.firstChild.offsetWidth;if(i&&A<r.sizeInfo.menuInnerInnerWidth&&r.sizeInfo.totalMenuWidth>r.sizeInfo.selectWidth)y.firstChild.style.minWidth=r.sizeInfo.menuInnerInnerWidth+"px";else if(A>r.sizeInfo.menuInnerInnerWidth){r.$menu[0].style.minWidth=0;var L=y.firstChild.offsetWidth;L>r.sizeInfo.menuInnerInnerWidth&&(r.sizeInfo.menuInnerInnerWidth=L,y.firstChild.style.minWidth=r.sizeInfo.menuInnerInnerWidth+"px"),r.$menu[0].style.minWidth=""}}}if(r.prevActiveIndex=r.activeIndex,r.options.liveSearch){if(t&&i){var _,N=0;r.selectpicker.view.canHighlight[N]||(N=1+r.selectpicker.view.canHighlight.slice(1).indexOf(!0)),_=r.selectpicker.view.visibleElements[N],r.defocusItem(r.selectpicker.view.currentActive),r.activeIndex=(r.selectpicker.current.data[N]||{}).index,r.focusItem(_)}}else r.$menuInner.trigger("focus")}f(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){r.noScroll||f(this.scrollTop,t),r.noScroll=!1}),e(window).off("resize"+_+"."+this.selectId+".createView").on("resize"+_+"."+this.selectId+".createView",function(){r.$newElement.hasClass(N.SHOW)&&f(r.$menuInner[0].scrollTop)})},focusItem:function(e,t,i){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var n=e.firstChild;n&&(n.setAttribute("aria-setsize",this.selectpicker.view.size),n.setAttribute("aria-posinset",t.posinset),!0!==i&&(this.focusedParent.setAttribute("aria-activedescendant",n.id),e.classList.add("active"),n.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var i=this.$element[0],n=!1,s=!this.selectpicker.view.titleOption.parentNode;s&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",n=void 0===e(i.options[i.selectedIndex]).attr("selected")&&void 0===this.$element.data("selected")),!s&&0===this.selectpicker.view.titleOption.index||i.insertBefore(this.selectpicker.view.titleOption,i.firstChild),n&&(i.selectedIndex=0)}return t},buildData:function(){var e=':not([hidden]):not([data-hidden="true"])',t=[],i=0,n=this.setPlaceholder()?1:0;this.options.hideDisabled&&(e+=":not(:disabled)");var s=this.$element[0].querySelectorAll("select > *"+e);function a(e){var i=t[t.length-1];i&&"divider"===i.type&&(i.optID||e.optID)||((e=e||{}).type="divider",t.push(e))}function o(e,i){if((i=i||{}).divider="true"===e.getAttribute("data-divider"),i.divider)a({optID:i.optID});else{var n=t.length,s=e.style.cssText,o=s?D(s):"",r=(e.className||"")+(i.optgroupClass||"");i.optID&&(r="opt "+r),i.optionClass=r.trim(),i.inlineStyle=o,i.text=e.textContent,i.content=e.getAttribute("data-content"),i.tokens=e.getAttribute("data-tokens"),i.subtext=e.getAttribute("data-subtext"),i.icon=e.getAttribute("data-icon"),e.liIndex=n,i.display=i.content||i.text,i.type="option",i.index=n,i.option=e,i.selected=!!e.selected,i.disabled=i.disabled||!!e.disabled,t.push(i)}}function r(n,s){var r=s[n],l=s[n-1],c=s[n+1],d=r.querySelectorAll("option"+e);if(d.length){var h,u,p={display:D(r.label),subtext:r.getAttribute("data-subtext"),icon:r.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(r.className||"")};i++,l&&a({optID:i}),p.optID=i,t.push(p);for(var f=0,m=d.length;f<m;f++){var g=d[f];0===f&&(u=(h=t.length-1)+m),o(g,{headerIndex:h,lastIndex:u,optID:p.optID,optgroupClass:p.optgroupClass,disabled:r.disabled})}c&&a({optID:i})}}for(var l=s.length;n<l;n++){var c=s[n];"OPTGROUP"!==c.tagName?o(c,{}):r(n,s)}this.selectpicker.main.data=this.selectpicker.current.data=t},buildList:function(){var e=this,t=this.selectpicker.main.data,i=[],n=0;function s(t){var s,a=0;switch(t.type){case"divider":s=H.li(!1,N.DIVIDER,t.optID?t.optID+"div":void 0);break;case"option":(s=H.li(H.a(H.text.call(e,t),t.optionClass,t.inlineStyle),"",t.optID)).firstChild&&(s.firstChild.id=e.selectId+"-"+t.index);break;case"optgroup-label":s=H.li(H.label.call(e,t),"dropdown-header"+t.optgroupClass,t.optID)}i.push(s),t.display&&(a+=t.display.length),t.subtext&&(a+=t.subtext.length),t.icon&&(a+=1),n<a&&(n=a,e.selectpicker.view.widestOption=i[i.length-1])}!e.options.showTick&&!e.multiple||M.checkMark.parentNode||(M.checkMark.className=this.options.iconBase+" "+e.options.tickIcon+" check-mark",M.a.appendChild(M.checkMark));for(var a=t.length,o=0;o<a;o++)s(t[o]);this.selectpicker.main.elements=this.selectpicker.current.elements=i},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var e,t=this,i=this.$element[0],n=this.setPlaceholder()&&0===i.selectedIndex,s=f(i,this.options.hideDisabled),a=s.length,r=this.$button[0],l=r.querySelector(".filter-option-inner-inner"),c=document.createTextNode(this.options.multipleSeparator),d=M.fragment.cloneNode(!1),h=!1;if(r.classList.toggle("bs-placeholder",t.multiple?!a:!m(i,s)),this.tabIndex(),"static"===this.options.selectedTextFormat)d=H.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<a&&(1<(e=this.options.selectedTextFormat.split(">")).length&&a>e[1]||1===e.length&&2<=a))){if(!n){for(var u=0;u<a&&u<50;u++){var p=s[u],g=this.selectpicker.main.data[p.liIndex],v={};this.multiple&&0<u&&d.appendChild(c.cloneNode(!1)),p.title?v.text=p.title:g&&(g.content&&t.options.showContent?(v.content=g.content.toString(),h=!0):(t.options.showIcon&&(v.icon=g.icon),t.options.showSubtext&&!t.multiple&&g.subtext&&(v.subtext=" "+g.subtext),v.text=p.textContent.trim())),d.appendChild(H.text.call(this,v,!0))}49<a&&d.appendChild(document.createTextNode("..."))}}else{var $=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&($+=":not(:disabled)");var b=this.$element[0].querySelectorAll("select > option"+$+", optgroup"+$+" option"+$).length,w="function"==typeof this.options.countSelectedText?this.options.countSelectedText(a,b):this.options.countSelectedText;d=H.text.call(this,{text:w.replace("{0}",a.toString()).replace("{1}",b.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),d.childNodes.length||(d=H.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),r.title=d.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&h&&o([d],t.options.whiteList,t.options.sanitizeFn),l.innerHTML="",l.appendChild(d),A.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var x=r.querySelector(".filter-expand"),C=l.cloneNode(!0);C.className="filter-expand",x?r.replaceChild(C,x):r.appendChild(C)}this.$element.trigger("rendered"+_)},setStyle:function(e,t){var i,n=this.$button[0],s=this.$newElement[0],a=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),A.major<4&&(s.classList.add("bs3"),s.parentNode.classList.contains("input-group")&&(s.previousElementSibling||s.nextElementSibling)&&(s.previousElementSibling||s.nextElementSibling).classList.contains("input-group-addon")&&s.classList.add("bs3-has-addon")),i=e?e.trim():a,"add"==t?i&&n.classList.add.apply(n.classList,i.split(" ")):"remove"==t?i&&n.classList.remove.apply(n.classList,i.split(" ")):(a&&n.classList.remove.apply(n.classList,a.split(" ")),i&&n.classList.add.apply(n.classList,i.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("div"),a=document.createElement("ul"),o=document.createElement("li"),r=document.createElement("li"),l=document.createElement("li"),c=document.createElement("a"),d=document.createElement("span"),h=this.options.header&&0<this.$menu.find("."+N.POPOVERHEADER).length?this.$menu.find("."+N.POPOVERHEADER)[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,p=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,f=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,d.className="text",c.className="dropdown-item "+(m?m.className:""),i.className=this.$menu[0].parentNode.className+" "+N.SHOW,i.style.width=0,"auto"===this.options.width&&(n.style.minWidth=0),n.className=N.MENU+" "+N.SHOW,s.className="inner "+N.SHOW,a.className=N.MENU+" inner "+("4"===A.major?N.SHOW:""),o.className=N.DIVIDER,r.className="dropdown-header",d.appendChild(document.createTextNode("â")),c.appendChild(d),l.appendChild(c),r.appendChild(d.cloneNode(!0)),this.selectpicker.view.widestOption&&a.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),a.appendChild(l),a.appendChild(o),a.appendChild(r),h&&n.appendChild(h),u){var g=document.createElement("input");u.className="bs-searchbox",g.className="form-control",u.appendChild(g),n.appendChild(u)}p&&n.appendChild(p),s.appendChild(a),n.appendChild(s),f&&n.appendChild(f),i.appendChild(n),document.body.appendChild(i);var v,$=l.offsetHeight,b=r?r.offsetHeight:0,x=h?h.offsetHeight:0,C=u?u.offsetHeight:0,k=p?p.offsetHeight:0,y=f?f.offsetHeight:0,S=e(o).outerHeight(!0),I=!!window.getComputedStyle&&window.getComputedStyle(n),O=n.offsetWidth,T=I?null:e(n),E={vert:w(I?I.paddingTop:T.css("paddingTop"))+w(I?I.paddingBottom:T.css("paddingBottom"))+w(I?I.borderTopWidth:T.css("borderTopWidth"))+w(I?I.borderBottomWidth:T.css("borderBottomWidth")),horiz:w(I?I.paddingLeft:T.css("paddingLeft"))+w(I?I.paddingRight:T.css("paddingRight"))+w(I?I.borderLeftWidth:T.css("borderLeftWidth"))+w(I?I.borderRightWidth:T.css("borderRightWidth"))},D={vert:E.vert+w(I?I.marginTop:T.css("marginTop"))+w(I?I.marginBottom:T.css("marginBottom"))+2,horiz:E.horiz+w(I?I.marginLeft:T.css("marginLeft"))+w(I?I.marginRight:T.css("marginRight"))+2};s.style.overflowY="scroll",v=n.offsetWidth-O,document.body.removeChild(i),this.sizeInfo.liHeight=$,this.sizeInfo.dropdownHeaderHeight=b,this.sizeInfo.headerHeight=x,this.sizeInfo.searchHeight=C,this.sizeInfo.actionsHeight=k,this.sizeInfo.doneButtonHeight=y,this.sizeInfo.dividerHeight=S,this.sizeInfo.menuPadding=E,this.sizeInfo.menuExtras=D,this.sizeInfo.menuWidth=O,this.sizeInfo.menuInnerInnerWidth=O-E.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=v,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,i=e(window),n=this.$newElement.offset(),s=e(this.options.container);this.options.container&&s.length&&!s.is("body")?((t=s.offset()).top+=parseInt(s.css("borderTopWidth")),t.left+=parseInt(s.css("borderLeftWidth"))):t={top:0,left:0};var a=this.options.windowPadding;this.sizeInfo.selectOffsetTop=n.top-t.top-i.scrollTop(),this.sizeInfo.selectOffsetBot=i.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-a[2],this.sizeInfo.selectOffsetLeft=n.left-t.left-i.scrollLeft(),this.sizeInfo.selectOffsetRight=i.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-a[1],this.sizeInfo.selectOffsetTop-=a[0],this.sizeInfo.selectOffsetLeft-=a[3]},setMenuSize:function(e){this.getSelectPosition();var t,i,n,s,a,o,r,l,c=this.sizeInfo.selectWidth,d=this.sizeInfo.liHeight,h=this.sizeInfo.headerHeight,u=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(r=d*this.selectpicker.current.elements.length+g.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&r+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(N.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)s=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,i=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,n=s+h+u+p+f,o=Math.max(s-g.vert,0),this.$newElement.hasClass(N.DROPUP)&&(i=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),t=(a=i)-h-u-p-f-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var $=0;$<this.options.size;$++)"divider"===this.selectpicker.current.data[$].type&&v++;t=(i=d*this.options.size+v*m+g.vert)-g.vert,a=i+h+u+p+f,n=o=""}this.$menu.css({"max-height":a+"px",overflow:"hidden","min-height":n+"px"}),this.$menuInner.css({"max-height":t+"px","overflow-y":"auto","min-height":o+"px"}),this.sizeInfo.menuInnerHeight=Math.max(t,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(N.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var i=this,n=e(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return i.setMenuSize()}),"auto"===this.options.size?n.off("resize"+_+"."+this.selectId+".setMenuSize scroll"+_+"."+this.selectId+".setMenuSize").on("resize"+_+"."+this.selectId+".setMenuSize scroll"+_+"."+this.selectId+".setMenuSize",function(){return i.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&n.off("resize"+_+"."+this.selectId+".setMenuSize scroll"+_+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame(function(){e.$menu.css("min-width","0"),e.$element.on("loaded"+_,function(){e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),i=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,i),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function t(t){var r={},l=a.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;a.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(N.DROPUP,t.hasClass(N.DROPUP)),i=t.offset(),o.is("body")?n={top:0,left:0}:((n=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),n.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),s=t.hasClass(N.DROPUP)?0:t[0].offsetHeight,(A.major<4||"static"===l)&&(r.top=i.top-n.top+s,r.left=i.left-n.left),r.width=t[0].offsetWidth,a.$bsContainer.css(r)}this.$bsContainer=e('<div class="bs-container" />');var i,n,s,a=this,o=e(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){a.isDisabled()||(t(a.$newElement),a.$bsContainer.appendTo(a.options.container).toggleClass(N.SHOW,!a.$button.hasClass(N.SHOW)).append(a.$menu))}),e(window).off("resize"+_+"."+this.selectId+" scroll"+_+"."+this.selectId).on("resize"+_+"."+this.selectId+" scroll"+_+"."+this.selectId,function(){a.$newElement.hasClass(N.SHOW)&&t(a.$newElement)}),this.$element.on("hide"+_,function(){a.$menu.data("height",a.$menu.height()),a.$bsContainer.detach()})},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var i=0;i<t.selectpicker.view.visibleElements.length;i++){var n=t.selectpicker.current.data[i+t.selectpicker.view.position0],s=n.option;s&&(!0!==e&&t.setDisabled(n.index,n.disabled),t.setSelected(n.index,s.selected))}},setSelected:function(e,t){var i,n,s=this.selectpicker.main.elements[e],a=this.selectpicker.main.data[e],o=void 0!==this.activeIndex,r=this.activeIndex===e||t&&!this.multiple&&!o;a.selected=t,n=s.firstChild,t&&(this.selectedIndex=e),s.classList.toggle("selected",t),r?(this.focusItem(s,a),this.selectpicker.view.currentActive=s,this.activeIndex=e):this.defocusItem(s),n&&(n.classList.toggle("selected",t),t?n.setAttribute("aria-selected",!0):this.multiple?n.setAttribute("aria-selected",!1):n.removeAttribute("aria-selected")),r||o||!t||void 0===this.prevActiveIndex||(i=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(i))},setDisabled:function(e,t){var i,n=this.selectpicker.main.elements[e];this.selectpicker.main.data[e].disabled=t,i=n.firstChild,n.classList.toggle(N.DISABLED,t),i&&("4"===A.major&&i.classList.toggle(N.DISABLED,t),t?(i.setAttribute("aria-disabled",t),i.setAttribute("tabindex",-1)):(i.removeAttribute("aria-disabled"),i.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(N.DISABLED),this.$button.addClass(N.DISABLED).attr("tabindex",-1).attr("aria-disabled",!0)):(this.$button[0].classList.contains(N.DISABLED)&&(this.$newElement[0].classList.remove(N.DISABLED),this.$button.removeClass(N.DISABLED).attr("aria-disabled",!1)),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"))},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex"))),this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=e(document);function n(){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$menuInner.trigger("focus")}function s(){t.dropdown&&t.dropdown._popper&&t.dropdown._popper.state.isCreated?n():requestAnimationFrame(s)}i.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&i.data("spaceSelect")&&(e.preventDefault(),i.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<A.major&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){t.$newElement.hasClass(N.SHOW)||t.setSize()}),this.$element.on("shown"+_,function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),3<A.major?requestAnimationFrame(s):n()}),this.$menuInner.on("mouseenter","li a",function(e){var i=this.parentElement,n=t.isVirtual()?t.selectpicker.view.position0:0,s=Array.prototype.indexOf.call(i.parentElement.children,i),a=t.selectpicker.current.data[s+n];t.focusItem(i,a,!0)}),this.$menuInner.on("click","li a",function(i,n){var s=e(this),a=t.$element[0],o=t.isVirtual()?t.selectpicker.view.position0:0,r=t.selectpicker.current.data[s.parent().index()+o],l=r.index,c=m(a),d=a.selectedIndex,h=a.options[d],u=!0;if(t.multiple&&1!==t.options.maxOptions&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass(N.DISABLED)){var p=r.option,g=e(p),$=p.selected,b=g.parent("optgroup"),w=b.find("option"),x=t.options.maxOptions,C=b.data("maxOptions")||!1;if(l===t.activeIndex&&(n=!0),n||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(p.selected=!$,t.setSelected(l,!$),s.trigger("blur"),!1!==x||!1!==C){var k=x<f(a).length,y=C<b.find("option:selected").length;if(x&&k||C&&y)if(x&&1==x)a.selectedIndex=-1,p.selected=!0,t.setOptionStatus(!0);else if(C&&1==C){for(var S=0;S<w.length;S++){var I=w[S];I.selected=!1,t.setSelected(I.liIndex,!1)}p.selected=!0,t.setSelected(l,!0)}else{var O="string"==typeof t.options.maxOptionsText?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,T="function"==typeof O?O(x,C):O,E=T[0].replace("{n}",x),D=T[1].replace("{n}",C),P=e('<div class="notify"></div>');T[2]&&(E=E.replace("{var}",T[2][1<x?0:1]),D=D.replace("{var}",T[2][1<C?0:1])),p.selected=!1,t.$menu.append(P),x&&k&&(P.append(e("<div>"+E+"</div>")),u=!1,t.$element.trigger("maxReached"+_)),C&&y&&(P.append(e("<div>"+D+"</div>")),u=!1,t.$element.trigger("maxReachedGrp"+_)),setTimeout(function(){t.setSelected(l,!1)},10),P[0].classList.add("fadeOut"),setTimeout(function(){P.remove()},1050)}}}else h&&(h.selected=!1),p.selected=!0,t.setSelected(l,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.trigger("focus"):t.options.liveSearch&&t.$searchbox.trigger("focus"),u&&(!t.multiple&&d===a.selectedIndex||(v=[p.index,g.prop("selected"),c],t.$element.triggerNative("change")))}}),this.$menu.on("click","li."+N.DISABLED+" a, ."+N.POPOVERHEADER+", ."+N.POPOVERHEADER+" :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!e(i.target).hasClass("close")?t.$searchbox.trigger("focus"):t.$button.trigger("focus"))}
1),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus")}),this.$menu.on("click","."+N.POPOVERHEADER+" .close",function(){t.$button.trigger("click")}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus"),i.preventDefault(),i.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()}),this.$element.on("change"+_,function(){t.render(),t.$element.trigger("changed"+_,v),v=null}).on("focus"+_,function(){t.options.mobile||t.$button.trigger("focus")})},liveSearchListener:function(){var e=this,t=document.createElement("li");this.$button.on("click.bs.dropdown.data-api",function(){e.$searchbox.val()&&e.$searchbox.val("")}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var i=e.$searchbox.val();if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],i){var n=[],s=i.toUpperCase(),a={},o=[],r=e._searchStyle(),l=e.options.liveSearchNormalize;l&&(s=S(s));for(var c=0;c<e.selectpicker.main.data.length;c++){var d=e.selectpicker.main.data[c];a[c]||(a[c]=b(d,s,r,l)),a[c]&&void 0!==d.headerIndex&&-1===o.indexOf(d.headerIndex)&&(0<d.headerIndex&&(a[d.headerIndex-1]=!0,o.push(d.headerIndex-1)),a[d.headerIndex]=!0,o.push(d.headerIndex),a[d.lastIndex+1]=!0),a[c]&&"optgroup-label"!==d.type&&o.push(c)}c=0;for(var h=o.length;c<h;c++){var u=o[c],p=o[c-1],f=(d=e.selectpicker.main.data[u],e.selectpicker.main.data[p]);("divider"!==d.type||"divider"===d.type&&f&&"divider"!==f.type&&h-1!==c)&&(e.selectpicker.search.data.push(d),n.push(e.selectpicker.main.elements[u]))}e.activeIndex=void 0,e.noScroll=!0,e.$menuInner.scrollTop(0),e.selectpicker.search.elements=n,e.createView(!0),n.length||(t.className="no-results",t.innerHTML=e.options.noneResultsText.replace("{0}",'"'+D(i)+'"'),e.$menuInner[0].firstChild.appendChild(t))}else e.$menuInner.scrollTop(0),e.createView(!1)})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(e){var t=this.$element[0];if(void 0===e)return this.$element.val();var i=m(t);if(v=[null,null,i],this.$element.val(e).trigger("changed"+_,v),this.$newElement.hasClass(N.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var n=(t.options[t.selectedIndex]||{}).liIndex;"number"==typeof n&&(this.setSelected(this.selectedIndex,!1),this.setSelected(n,!0))}return this.render(),v=null,this.$element},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.$element[0],i=0,n=0,s=m(t);t.classList.add("bs-select-hidden");for(var a=0,o=this.selectpicker.current.data,r=o.length;a<r;a++){var l=o[a],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&i++,!0===(c.selected=e)&&n++)}t.classList.remove("bs-select-hidden"),i!==n&&(this.setOptionStatus(),v=[null,null,s],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e){(e=e||window.event)&&e.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(t){var i,n,s,a,o,r=e(this),l=r.hasClass("dropdown-toggle"),c=(l?r.closest(".dropdown"):r.closest(z.MENU)).data("this"),d=c.findLis(),h=!1,u=9===t.which&&!l&&!c.options.selectOnTab,p=R.test(t.which)||u,f=c.$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(112<=t.which&&t.which<=123))if(!(n=c.$newElement.hasClass(N.SHOW))&&(p||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105||65<=t.which&&t.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(27===t.which&&n&&(t.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),p){if(!d.length)return;-1!==(i=(s=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(s.parentElement.children,s):-1)&&c.defocusItem(s),38===t.which?(-1!==i&&i--,i+m<0&&(i+=d.length),c.selectpicker.view.canHighlight[i+m]||-1===(i=c.selectpicker.view.canHighlight.slice(0,i+m).lastIndexOf(!0)-m)&&(i=d.length-1)):40!==t.which&&!u||(++i+m>=c.selectpicker.view.canHighlight.length&&(i=0),c.selectpicker.view.canHighlight[i+m]||(i=i+1+c.selectpicker.view.canHighlight.slice(i+m+1).indexOf(!0))),t.preventDefault();var g=m+i;38===t.which?0===m&&i===d.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):h=(o=(a=c.selectpicker.current.data[g]).position-a.height)<f:40!==t.which&&!u||(0===i?g=c.$menuInner[0].scrollTop=0:h=f<(o=(a=c.selectpicker.current.data[g]).position-c.sizeInfo.menuInnerHeight)),s=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(s),c.selectpicker.view.currentActive=s,h&&(c.$menuInner[0].scrollTop=o),c.options.liveSearch?c.$searchbox.trigger("focus"):r.trigger("focus")}else if(!r.is("input")&&!B.test(t.which)||32===t.which&&c.selectpicker.keydown.keyHistory){var v,$,w=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=U[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),$=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test($)&&($=$.charAt(0));for(var x=0;x<c.selectpicker.current.data.length;x++){var C=c.selectpicker.current.data[x];b(C,$,"startsWith",!0)&&c.selectpicker.view.canHighlight[x]&&w.push(C.index)}if(w.length){var k=0;d.removeClass("active").find("a").removeClass("active"),1===$.length&&(-1===(k=w.indexOf(c.activeIndex))||k===w.length-1?k=0:k++),v=w[k],h=0<f-(a=c.selectpicker.main.data[v]).position?(o=a.position-a.height,!0):(o=a.position-c.sizeInfo.menuInnerHeight,a.position>f+c.sizeInfo.menuInnerHeight),s=c.selectpicker.main.elements[v],c.activeIndex=w[k],c.focusItem(s),s&&s.firstChild.focus(),h&&(c.$menuInner[0].scrollTop=o),r.trigger("focus")}}n&&(32===t.which&&!c.selectpicker.keydown.keyHistory||13===t.which||9===t.which&&c.options.selectOnTab)&&(32!==t.which&&t.preventDefault(),c.options.liveSearch&&32===t.which||(c.$menuInner.find(".active a").trigger("click",!0),r.trigger("focus"),c.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))}},mobile:function(){this.$element[0].classList.add("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.setStyle(),this.render(),this.buildData(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+_)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.$element.off(_).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),e(window).off(_+"."+this.selectId)}};var W=e.fn.selectpicker;e.fn.selectpicker=j,e.fn.selectpicker.Constructor=F,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=W,this};var V=e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown;e(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',V).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",V).on("keydown"+_,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',F.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(e){e.stopPropagation()}),e(window).on("load"+_+".data-api",function(){e(".selectpicker").each(function(){var t=e(this);j.call(t,t.data())})})}(e)});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.