WebFontConfig={google:{families:["Exo:400,700,900:latin","Lato:400,700,900:latin"]}},function(){let t=document.createElement("script");t.src=("https:"===document.location.protocol?"https":"http")+"://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js",t.type="text/javascript",t.async=!0;let e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();var COMPONENTS=[];(function(jQuery){jQuery.fn.dispatcher=function(t){return methods[t]?methods[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void jQuery.error("Method "+t+" does not exist on jQuery.tooltip"):methods.init.apply(this,arguments)};var methods={initialize:function(options){void 0!==COMPONENTS&&COMPONENTS.length>0&&jQuery(COMPONENTS).each((function(key,component){eval("jQuery()."+component+"('start')")}))}}})(jQuery);jQuery(document).ready((function(){jQuery().dispatcher("initialize")}));!function(n){var t=n(".anchor-link");n.fn.anchor=function(t){return o[t]?o[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void n.error("Method "+t+" does not exist on jQuery.anchor"):o.init.apply(this,arguments)};var o={start:function(){n().anchor("init")},init:function(){t.length&&t.click((function(t){t.preventDefault();var o=n(this).attr("href"),r=o.substring(o.indexOf("#")+1),e=n("#"+r);e.length>0?n("html, body").animate({scrollTop:e.offset().top-75},1e3):console.log("Error: Anchor not found.")}))}}}(jQuery),COMPONENTS.push("anchor");!function(o){var s=o(".share");o.fn.socialShare=function(s){return a[s]?a[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?void o.error("Method "+s+" does not exist on jQuery.socialShare"):a.init.apply(this,arguments)};var a={start:function(){o().socialShare("showSocial")},showSocial:function(){s.on("click",(function(){o(this).parents(".box-social-share").hasClass("open")?o(this).parents(".box-social-share").removeClass("open"):o(this).parents(".box-social-share").addClass("open")}))}}}(jQuery),COMPONENTS.push("socialShare");!function(o){var t=o(".scroll-to-top");o(window).width();o.fn.scrollToTop=function(t){return l[t]?l[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void o.error("Method "+t+" does not exist on jQuery.scrollToTop"):l.init.apply(this,arguments)};var l={start:function(){o().scrollToTop("init")},init:function(){$(window).scroll((function(){$(this).scrollTop()>300?t.addClass("cd-is-visible"):t.removeClass("cd-is-visible cd-fade-out"),$(this).scrollTop()>1200&&t.addClass("cd-fade-out")})),t.on("click",(function(t){t.preventDefault(),o("body,html").animate({scrollTop:0},700)}))}}}(jQuery),COMPONENTS.push("scrollToTop");$((function(){const a="#main-menu",n="[data-opentab]",e="[data-closetab]",o="open-navbar-tab",t="show",s="active",r="#menu-product",c="navbar-open-search",i="navbar-open-shortcuts",l="navbar-open-login",u=document.querySelectorAll(a),d=$(a),v=$(".navbar-search .form-control"),f=$(n),h=$(e),m=$(n,".navbar-tab-header"),b=$(e,".navbar-tab-header"),g=$(".navbar-tab-content .tab-pane"),p=$("a[data-menu]",g),C=$(r+" .custom-control-input"),k=$("<div/>").addClass("navbar-tab-backdrop").click((function(){M()}));function w(a){const n=a.data("opentab");"menu-search"===n?(d.addClass(c).removeClass(i+" "+l),v.is(":focus")||v.focus()):"menu-login"===n?d.addClass(l).removeClass(c+" "+i):d.addClass(i).removeClass(c+" "+l),f.removeClass(s),g.removeClass(s),$(a).addClass(s),$("#"+n).addClass(s),$("body").addClass(o).append(k.addClass(t)),a.trigger("megaMenu:open",{id:n})}function M(){f.removeClass(s),g.removeClass(s),d.removeClass(i+" "+c+" "+l),$("body").removeClass(o),k.removeClass(t).detach(),d.trigger("megaMenu:close")}if(f.on("click",(function(a){a.preventDefault(),w($(this))})),h.on("click",(function(a){console.log(a.target),"#"===a.target.href&&a.preventDefault(),M()})),m.hoverIntent({over:function(){w($(this))},out:function(a){},interval:250}),b.hoverIntent({over:function(){M()},out:function(a){},interval:250}),p.on("click",(function(){var a;(a=$(this)).trigger("megaMenu:follow",{id:a.attr("data-menu")})})),v.closest("form").on("submit",(function(){var a;(a=v).trigger("megaMenu:search",{value:a.val()})})),v.on("focus click keypress",(function(){d.hasClass("navbar-open-search")||w($("#open-menu-search"))})),C.on("change",(function(){!function(){let a=[];C.filter(":checked").each((function(n,e){a.push($(e).val())})),0===a.length?$(r+" li[data-group]").show():$(r+" li[data-group]").each((function(n,e){const o=$(e).data("group").toString().split(",");$(o).filter(a).length?$(e).show():$(e).hide()}))}()})),u.length>=1){function y(){150<window.scrollY?u[0].classList.add("navbar-transition"):u[0].classList.remove("navbar-transition")}["scroll","resize","DOMContentLoaded"].forEach((function(a){window.addEventListener(a,y)}))}}));!function(t,n,o,e){const i=function(o,e){this.elem=o,this.$elem=t(o),this.options=e,this.metadata=this.$elem.data("options"),this.$win=t(n)};i.defaults=(i.prototype={defaults:{item:".anchorspy",anchorClass:"active",offset:0,start:0,onAnchor:null,onUnanchor:null,onClick:null},init:function(){const n=this;return n.config=t.extend({},n.defaults,n.options,n.metadata),n.getItems(),n.bindEvents(),n},bindEvents:function(){const n=this;n.$win.on("scroll.anchorspy",t.proxy(n.handleScroll,n)),n.$win.on("resize.anchorspy",t.proxy(n.handleResize,n))},destroy:function(){this.$win.off("scroll.anchorspy"),this.$win.off("resize.anchorspy")},getItem:function(n,o){const e=t(o),i=t(e.attr("href"));if(0===i.length)return;const s={$elem:e,$target:i,isAnchor:!1};this.items.push(s)},getItems:function(){const n=this;n.items=[],n.$elem.find(n.config.item).each(t.proxy(n.getItem,n))},handleResize:function(){const t=this;t.items.length>0&&t.doStuff()},handleScroll:function(){const t=this;t.items.length>0&&t.doStuff()},getOffset:function(n){let o=1;return t(".special-sticky").parent().find(n).length&&!n.hasClass("full-md-container")&&t(".anchor-toggle, .filter-toggle").is(":visible")&&(o+=63),t(".position-relative.bg-white").find(n).length&&(o+=67),this.config.offset+o},doStuff:function(){const t=this,n=t.$win.scrollTop();for(let o=0,e=t.items.length;o<e;o++){let e=t.items[o];e.anchorStart=e.$target.offset().top-t.getOffset(e.$target),e.anchorStop=e.anchorStart+e.$target.outerHeight(),!0===e.isAnchor&&(n<e.anchorStart||n>e.anchorStop)?(t.items[o].isAnchor=!1,e.$elem.removeClass(t.config.anchorClass),t.config.onUnanchor&&t.config.onUnanchor(e)):!1===e.isAnchor&&n>=e.anchorStart&&n<=e.anchorStop&&(t.items[o].isAnchor=!0,e.$elem.addClass(t.config.anchorClass),t.config.onAnchor&&t.config.onAnchor(e))}}}).defaults,t.fn.anchorspy=function(t){return this.destroy=function(){this.each((function(){new i(this,t).destroy()}))},this.each((function(){new i(this,t).init()}))}}(jQuery,window,document),$("body").anchorspy({offset:50});!function(t,i,e,n){var s=function(e,n){this.elem=e,this.$elem=t(e),this.options=n,this.metadata=this.$elem.data("options"),this.$win=t(i)};s.defaults=(s.prototype={defaults:{item:".sticky",container:".sticky-container",stickClass:"is-sticky-top",endStickClass:"is-sticky-bottom",offset:0,start:0,onStick:null,onUnstick:null,onUnstickBottom:null},init:function(){var i=this;return i.config=t.extend({},i.defaults,i.options,i.metadata),i.config.offset=parseInt(i.config.offset,10),i.config.start=parseInt(i.config.start,10),i.getItems(),i.setWindowHeight(),i.setItemsHeight(),i.doStuff(),i.bindEvents(),i},bindEvents:function(){var i=this;i.$win.on("scroll.sticky",t.proxy(i.handleScroll,i)),i.$win.on("resize.sticky",t.proxy(i.handleResize,i))},destroy:function(){this.$win.off("scroll.sticky"),this.$win.off("resize.sticky")},getItem:function(e,n){var s=t(n),o={$elem:s,elemHeight:s.height(),$container:s.parents(this.config.container),isStuck:!1};o.$container.find(".open-anchor, .close-anchor").on("click",(function(){jQuery(this);jQuery(i).width()<768?o.$container.hasClass("open")?o.$container.addClass("closing").dequeue().delay(500).queue((function(){o.$container.removeClass("closing").removeClass("open")})):o.$container.addClass("opening").dequeue().delay(500).queue((function(){o.$container.removeClass("opening").addClass("open")})):o.$container.removeClass("opening").removeClass("closing").removeClass("open")})),o.containerHeight=o.$container.outerHeight(),this.items.push(o)},getItems:function(){var i=this;i.items=[],i.$elem.find(i.config.item).each(t.proxy(i.getItem,i))},handleResize:function(){var t=this;t.items.length>0&&(t.setWindowHeight(),t.setItemsHeight(),t.doStuff())},handleScroll:function(){var t=this;t.items.length>0&&(t.setWindowHeight(),t.setItemsHeight(),t.doStuff())},setWindowHeight:function(){var t=this;t.windowHeight=t.$win.height()-t.config.offset},setItemsHeight:function(){for(var t=this,i=0,e=t.items.length;i<e;i++){var n=t.items[i];t.items[i].elemHeight=n.$elem.outerHeight(),t.items[i].containerHeight=n.$container.outerHeight(),t.items[i].containerWidth=n.$container.width(),t.items[i].containerStart=n.$container.offset().top-t.config.offset+t.config.start,t.items[i].scrollFinish=n.containerStart-t.config.start+(n.containerHeight-n.elemHeight)}},doStuff:function(){for(var t=this,i=t.$win.scrollTop(),e=0,n=t.items.length;e<n;e++){var s=t.items[e];s.containerHeight>s.elemHeight?(s.$elem.width(s.containerWidth),s.isStuck&&(i<s.containerStart||i>s.scrollFinish)?(t.items[e].isStuck=!1,i>s.scrollFinish?(s.$elem.removeClass(t.config.stickClass).addClass(t.config.endStickClass),t.config.onUnstickBottom&&t.config.onUnstickBottom(s)):(s.$elem.removeClass(t.config.stickClass),t.config.onUnstick&&t.config.onUnstick(s))):!1===s.isStuck&&i>s.containerStart&&i<s.scrollFinish&&(t.items[e].isStuck=!0,s.$elem.removeClass(t.config.endStickClass).addClass(t.config.stickClass),t.config.onStick&&t.config.onStick(s))):(t.items[e].isStuck=!1,s.$elem.removeClass(t.config.stickClass).removeClass(t.config.endStickClass))}}}).defaults,t.fn.sticky=function(t){return this.destroy=function(){this.each((function(){new s(this,t).destroy()}))},this.each((function(){new s(this,t).init()}))}}(jQuery,window,document),$(".sticky-container").sticky();!function(e,n,o,t){let a=e("#overlay-content"),s=function(o,t){this.elem=o,this.$elem=e(o),this.options=t,this.metadata=this.$elem.data("options"),this.$win=e(n),this.$body=e("body"),this.isOpen=!1,this.type=null};s.prototype={defaults:{beforeOpen:e.noop,onOpen:e.noop,onClose:e.noop,afterClose:e.noop},init:function(){const n=this;return n.config=e.extend({},n.defaults,n.options,n.metadata),0===a.length&&(a=e('<div id="overlay-content" class="overlay" tabindex="-1" aria-hidden="true"/>'),n.$body.append(a)),n.bindEvents(),n},bindEvents:function(){const n=this;a.on("click",(function(o){e(o.target).is(".overlay, .close-overlay")&&(o.preventDefault(),n.closeOverlay())})),n.$elem.on("click",(function(e){e.preventDefault(),n.openOverlay()})),n.$body.on("keydown",(function(o){27===o.which&&n.closeOverlay(),n.isOpen&&(9===o.keyCode&&(e(o.target).closest(a).length||o.preventDefault()),9===o.keyCode&&o.shiftKey&&(e(o.target).closest(a).length||o.preventDefault()))}))},destroy:function(){const e=this;a.off("click.overlay"),e.isOpen=!1,e.$elem.off("click.overlay"),e.$body.off("keydown.overlay")},openOverlay:function(){const e=this;e.isOpen||(e.isOpen=!0,a.removeAttr("aria-hidden"),a.attr("aria-modal",!0),e.$body.addClass("overlay-open").find(":focus").blur(),e.config.beforeOpen(e.$elem,a),a.addClass("visible"),e.config.onOpen(e.$elem,a))},closeOverlay:function(){const e=this;e.isOpen&&(e.isOpen=!1,a.attr("aria-hidden",!0),a.removeAttr("aria-modal"),e.$elem.focus(),e.$body.removeClass("overlay-open"),e.config.onClose(e.$elem,a),a.removeClass("visible"),e.config.afterClose(e.$elem,a))}},s.defaults=s.prototype.defaults,e.fn.overlay=function(e){return this.destroy=function(){this.each((function(){new s(this,e).destroy()}))},this.each((function(){new s(this,e).init()}))}}(jQuery,window,document),$(".open-overlay.open-src").overlay({beforeOpen:function(e,n){const o=e.attr("data-openoverlay"),t=$("#"+o);n.append(t.children()),t.empty()},afterClose:function(e,n){const o=e.attr("data-openoverlay");$("#"+o).append(n.children()),n.empty()}}),$(".open-overlay.open-video").overlay({beforeOpen:function(e,n){const o=`\n            <header>\n                <span class="icon-close close-overlay"></span>\n            </header>\n            <div class="embed-responsive embed-responsive-cover">\n                <iframe src="${"https://www.youtube-nocookie.com/embed/"+e.attr("data-urlvideo")+"?rel=0"}" width="560" height="349" allowfullscreen class="embed-responsive-item"></iframe>\n            </div>\n        `;n.html(o).addClass("video-container")},afterClose:function(e,n){n.empty()}}),$(".open-overlay.open-video-vimeo").overlay({beforeOpen:function(e,n){const o=`\n            <header>\n                <span class="icon-close close-overlay"></span>\n            </header>\n            <div class="embed-responsive embed-responsive-cover">\n                <iframe src="${"https://player.vimeo.com/video/"+e.attr("data-urlvideo")+"?autoplay=1&title=0&byline=0&portrait=0"}" width="560" height="349" allowfullscreen class="embed-responsive-item"></iframe>\n            </div>\n        `;n.html(o).addClass("video-container")},afterClose:function(e,n){n.empty()}}),$(".open-overlay.open-map").overlay({beforeOpen:function(e,n){if("object"!=typeof google&&"object"!=typeof google.maps)return;const o=e.data("title-overlay"),t=`\n            <div class="general-content">\n                <header>\n                    <div class="title-overlay">${o}</div>\n                    <span class="icon-close close-overlay"></span>\n                </header>\n                <div id="container-map" class="embed-responsive embed-responsive-4by3">\n                    <div id="map" class="map-canvas embed-responsive-item"></div>\n                </div>\n            </div>\n        `;n.html(t);const a=new google.maps.LatLng(e.data("latitude"),e.data("longitude")),s=new google.maps.StyledMapType({name:"Styled Map"}),l={zoom:12,mapTypeControl:!1,draggable:!0,scaleControl:!1,scrollwheel:!1,zoomControl:!0,mapTypeControlOptions:{mapTypeIds:[google.maps.MapTypeId.ROADMAP,"map_style"]},navigationControl:!0,streetViewControl:!1,center:a},i=new google.maps.Map(document.getElementById("map"),l);i.mapTypes.set("map_style",s),i.setMapTypeId("map_style");const r=new google.maps.InfoWindow({maxWidth:230,maxHeight:300,content:o}),c=new google.maps.Marker({position:a,map:i,icon:"/typo3conf/ext/t3palcore/Resources/Public/Images/Frontend/Icon/pointer.png"});c.addListener("click",(function(){r.open(i,c)}))},afterClose:function(e,n){n.empty()}}),$(".open-overlay.open-url").overlay({beforeOpen:function(e,n){const o=e.attr("href");n.html('\n            <div class="general-content solution">\n                <header>\n                    <div class="title-overlay"></div>\n                    <span class="icon-close close-overlay"></span>\n                </header>\n                <div class="content-overlay">\n                </div>\n            </div>\n        ');const t=$.ajax({url:o,cache:!0,type:"get",timeout:1e4,success:function(e){const o=$(e).filter(".title-overlay"),t=$(e).filter(".detail-open-box");n.find(".title-overlay").html(o),n.find(".content-overlay").html(t)},error:function(e,o){if(0!==e.status||"abort"!==e.statusText){const o="Error",t=e.statusText;n.find(".title-overlay").html(o),n.find(".content-overlay").html(t)}else{const e="",o="";n.find(".title-overlay").html(e),n.find(".content-overlay").html(o)}}});n.one("overlay:close",(function(){t.abort()}))},onOpen:function(e,n){n.trigger("overlay:open")},onClose:function(e,n){n.trigger("overlay:close")},afterClose:function(e,n){n.empty()}}),$(".open-overlay.open-accessory").overlay({beforeOpen:function(e,n){const o=e.closest(".card-accessory"),t=o.find(".conformity-declaration"),a=o.find("img").attr("src")||"",s=$("<div>").append(t.clone().removeClass("float-left").addClass("mt-4")).html()||"",l=o.find("h5").html()||"",i=o.find("p:not(.truncate)").html()||"",r=$(`\n            <div class="media media-accessory flex-column flex-sm-row">\n                <img class="mb-4 mb-sm-0 mr-0 mr-sm-4" src="${a}" alt="">\n                <div class="media-body">\n                    <h5 class="mt-0">${l}</h5>\n                    <p class="mb-0">${i}</p>\n                    <div>${s}</div>\n                </div>\n            </div>\n        `),c=$('\n            <div class="general-content accessory">\n                <header>\n                    <span class="icon-close close-overlay"></span>\n                </header>\n                <div class="content-overlay">\n                </div>\n            </div>\n        ');c.find(".content-overlay").html($("<section />").append(r)),n.html(c)},afterClose:function(e,n){n.empty()}});$((function(){function e(n){for(let a in n)n.hasOwnProperty(a)&&("true"===n[a]?n[a]=!0:"false"===n[a]?n[a]=!1:isNaN(n[a])?"object"==typeof n[a]&&(n[a]=e(n[a])):n[a]=+n[a]);return n}$("[data-swiper]").each((function(){let n=$(this).find(".swiper-container");if(n.length){const a=e($(this).data("options"));let t={slidesPerView:"auto",spaceBetween:0,observer:!0,observeParents:!0,watchOverflow:!0,navigation:{nextEl:$(this).find(".swiper-button-next")[0],prevEl:$(this).find(".swiper-button-prev")[0]},pagination:{clickable:!0,el:$(this).find(".swiper-pagination")[0]},scrollbar:{el:$(this).find(".swiper-scrollbar")[0]},on:{observerUpdate:function(e,n){$(n.target).hasClass("tab-pane")&&(!e.isBeginning||e.activeIndex>0)&&e.slideTo(0,0,!1)},paginationRender:function(e,n){(e.params.loop?Math.ceil((e.slides.length-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length)<2?(e.pagination.$el.addClass("d-none"),e.navigation.hasOwnProperty("$nextEl")&&e.navigation.$nextEl.addClass("d-none"),e.navigation.hasOwnProperty("$prevEl")&&e.navigation.$prevEl.addClass("d-none")):(e.pagination.$el.removeClass("d-none"),e.navigation.hasOwnProperty("$nextEl")&&e.navigation.$nextEl.removeClass("d-none"),e.navigation.hasOwnProperty("$prevEl")&&e.navigation.$prevEl.removeClass("d-none"))}}};t=$.extend(t,a);let i=new Swiper(n[0],t);t.hasOwnProperty("autoplay")&&t.autoplay.delay>0&&!1!==t.autoplay.disableOnInteraction&&$(this).mouseenter((function(){i.autoplay.stop()})).mouseleave((function(){i.autoplay.start()}))}}))}));$(".accordion").on("hide.bs.collapse",(function(o){var a=$(o.target).prev(".accordion-header");if(a.length>0){var e=a.offset().top-5;e<$(window).scrollTop()&&$("html,body").animate({scrollTop:e},500)}}));$((function(){let t=$("#datalist"),e=$("#datalist-search"),n=$("#datalist-filter"),i=$("#datalist-reset");if(t.length){const l={listClass:"filter-list",valueNames:["dl-title","dl-code","dl-teaser",{data:["category"]}]};let s=new List(t[0],l);function a(){$(".filter-count").text("("+s.matchingItems.length+")"),$(".filter-headline").text($(".filter a.active").text()),s.matchingItems.length?t.find(".no-filter").addClass("d-none"):t.find(".no-filter").removeClass("d-none"),s.filtered||s.searched?i.removeClass("d-none"):i.addClass("d-none");const e=t.offset().top-parseInt(t.css("margin-top"))-70;$("html,body").animate({scrollTop:e},700)}i.find("a").on("click",(function(t){t.preventDefault(),e.find("input").val(""),s.search(),n.find("a").first().click()})),s.on("searchComplete",a).on("filterComplete",a),n.find("a").on("click",(function(t){t.preventDefault();const e=$(this).data("filter"),n=e?e.toString():e;$(this).addClass("active").parent().siblings().find("a").removeClass("active"),n.length?s.filter((function(t){return t.values().category===n})):s.filter(),$(".close-anchor").click()})),e.on("keypress",(function(t){13===t.which&&(s.search(),$(".close-anchor").click())}))}}));!function(t){let e=t(".menu-anchor","#facet-wrap-group");e.length&&(t("[id^=section-group-]").each((function(a,n){let o=t(n),r=o.attr("id"),c=o.data("title"),l=t('<li class="anchor">').append(t("<a>").attr("href","#"+r).attr("data-event","typo3.filter").attr("data-event-category","search-filter").attr("data-event-action","anchor").attr("data-event-label",c).text(c));e.append(l)})),t("body").anchorspy({offset:50,item:"#facet-wrap-group .anchor a[href]"}));let a=t(".menu-anchor","#facet-wrap-product");a.length&&(t("[id^=section-product-]").each((function(e,n){let o=t(n),r=o.attr("id"),c=o.data("title"),l=t('<li class="anchor">').append(t("<a>").attr("href","#"+r).attr("data-event","typo3.filter").attr("data-event-category","search-filter").attr("data-event-action","anchor").attr("data-event-label",c).text(c));a.append(l)})),t("body").anchorspy({offset:50,item:"#facet-wrap-product .anchor a[href]"}));let n=t(".menu-filters","#facet-wrap-fileType");n.length&&(t(".filter[data-facet-item-value] a",n).click((function(e){e.preventDefault(),t(this).toggleClass("active");let a=[];n.find(".active").each((function(e,n){a.push(t(n).parent().data("facetItemValue"))}));let o=0;if(a.length>0)t(".list-group-item[data-filetype]").addClass("d-none"),t.each(a,(function(e,a){let n=t('.list-group-item[data-filetype="'+a+'"]');o+=n.length,n.removeClass("d-none")}));else{let e=t(".list-group-item[data-filetype]");o+=e.length,e.removeClass("d-none")}t(".count","#section-group-document").text(o),t("[id^=section-product]").each((function(e,a){let n=t(a),o=n.attr("id");jQuery(".list-group-item:not(.d-none)",a).length>0?(n.show(),t('.anchor a[href="#'+o+'"]').parent().show()):(n.hide(),t('.anchor a[href="#'+o+'"]').parent().hide())})),t("#section-group-document").length&&t("html, body").animate({scrollTop:t("#section-group-document").offset().top-51},500)})),t(".filter[data-facet-item-value]",n).each((function(e,a){let n=t(this);const o=n.data("facetItemValue");0===t("[data-filetype="+o+"]").length&&n.remove()})))}(jQuery);function SuggestController(){this.init=function(){jQuery("form[data-suggest]").each((function(){var t,e=$(this),o=e.find(".tx-solr-suggest");t=e.find(".tx-solr-autocomplete").length>0?e.find(".tx-solr-autocomplete"):$("body"),e.find(".tx-solr-suggest-focus").focus(),0===o.length&&(o=e),o.css("position","relative"),e.on("submit",(function(t){""===e.find(".tx-solr-suggest").val()&&(t.preventDefault(),e.find(".tx-solr-suggest").focus())})),e.find(".tx-solr-suggest").devbridgeAutocomplete({serviceUrl:e.data("suggest"),dataType:"jsonp",ajaxSettings:{jsonp:"tx_solr[callback]"},paramName:"tx_solr[queryString]",groupBy:"category",maxHeight:1e3,appendTo:t,autoSelectFirst:!1,triggerSelectOnValidInput:!1,width:o.outerWidth(),transformResult:function(t){return t.suggestions?{suggestions:$.map(t.suggestions,(function(t,o){return e||(e=o),{value:o,data:{category:"suggestion",count:t}}}))}:{suggestions:[]};var e},beforeRender:function(t){t.find(".autocomplete-group:first").remove(),t.addClass("tx-solr-autosuggest"),o.parent().addClass("autocomplete-active").fadeIn()},formatResult:function(t,e){if(!e)return t.value;var o="("+$.Autocomplete.utils.escapeRegExChars(e.trim())+")";return t.value.replace(new RegExp(o,"gi"),"<strong>$1</strong>").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/&lt;(\/?strong)&gt;/g,"<$1>")}}).on("blur",(function(){o.parent().removeClass("autocomplete-active");var t=$(this);setTimeout((function(){t.devbridgeAutocomplete("hide")}),200)}))}))}}jQuery(document).ready((function(){var t=new SuggestController;t.init(),jQuery("body").on("tx_solr_updated",(function(){t.init()}))}));dFlipLocation="/typo3conf/ext/t3palcore/Resources/Public/Contrib/dflip/",$(document).ready((function(){DFLIP.defaults.moreControls="",DFLIP.defaults.hideControls="share,pageMode,startPage,endPage,more,sound",DFLIP.defaults.backgroundColor="transparent",$("body").on("click",".open-pdf",(function(o){o.preventDefault();let t=$(this),i=$(this).attr("href");window.dfLightBox||(window.dfLightBox=new DFLightBox((function(){Array.prototype.forEach.call(DFLIP.utils.getSharePrefixes(),(function(o){0===window.location.hash.indexOf("#"+o)&&(window.location.hash="#_")})),window.dfActiveLightBoxBook.analytics({eventAction:"Book Closed",options:window.dfActiveLightBoxBook.options}),window.dfActiveLightBoxBook.dispose(),window.dfActiveLightBoxBook=null}))),window.dfLightBox.duration=500,window.dfActiveLightBoxBook&&window.dfActiveLightBoxBook.dispose?window.dfActiveLightBoxBook.dispose():window.dfLightBox.show((function(){let o=DFLIP.getOptions(t);o.transparent=!1,o.height="100%",o.id=t.attr("id");let n=t.attr("slug");null!==n&&(o.slug=n),o.isLightBox=!0,window.dfActiveLightBoxBook=$(window.dfLightBox.container).flipBook(i,o)}))}))}));!function(t){function e(e){if(e.length){const i=t(".anchor-toggle, .filter-toggle"),o=t(".sticky-top.sticky-top--scroll");let a=0;t(".special-sticky").parent().find(e).length&&!e.hasClass("full-md-container")&&i.is(":visible")&&(a+=i.parent().outerHeight()),o.parent().find(e).length&&(a+=o.outerHeight());const n=50+a,s=e.offset().top-n;return t("html,body").animate({scrollTop:s},700),!1}}t('a[href*="#"]:not([href$="#"])').click((function(){if(location.pathname.replace(/^\//,"")===this.pathname.replace(/^\//,"")&&location.hostname===this.hostname&&void 0===t(this).data("toggle")&&void 0===t(this).data("slide")){e(t(this.hash.replace(/(:|\.|\[|\]|,|=|\/)/g,"\\$1"))||t("[name="+this.hash.slice(1)+"]"))}})),setTimeout((function(){if(location.hash){e(t("#"+location.hash.split("#")[1]))}}),1)}(jQuery);!function(s){const t=document.body,o="scroll-up",e="scroll-down";let c=!1,n=0;function l(){c=!1;const s=window.scrollY;s<=0?t.classList.remove(o,e):(s>n&&!t.classList.contains(e)?(t.classList.remove(o),t.classList.add(e)):s<n&&t.classList.contains(e)&&(t.classList.remove(e),t.classList.add(o)),n=s)}window.addEventListener("scroll",(()=>{!function(s){c||(c=!0,l._tId=setTimeout((function(){l()}),s))}(200)}));const i=document.querySelector(".sticky-top--scroll");if(null!==i){new ResizeObserver((t=>{for(const o of t){let t=s(o.target).outerHeight();s(o.target).css("top",50-t)}})).observe(i)}}(jQuery);$(document).ready((function(){function e(e){const n=e.id,i=e.min,t=e.max,a=e.value,o=100*(a-i)/(t-i);e.style.backgroundSize=o+"% 100%",$("output[for="+n+"] .value").text(a)}if($(".custom-file-input").on("change",(function(){$(this).siblings(".custom-file-label").text($(this).val().split("\\").pop())})),Array.from(document.getElementsByClassName("custom-range")).forEach((function(n){e(n)})),$("input[type=range].custom-range").on("input change",(function(n){e(n.target)})),window.Parsley.addValidator("checkemail",{validateString:function(e,n){if(21!==parseInt($("#femanager-field-usergroup").val(),10))return!0;var i=$.map(n.split(","),$.trim);for(let n=0;n<i.length;n++){var t=i[n];if(e.length>=t.length&&e.substring(e.length-t.length,e.length)===t)return!0}return!1}}),window.Parsley.on("field:error",(function(){this.$element.removeClass("is-invalid").siblings(".invalid-feedback").remove()})),window.Parsley.on("field:success",(function(){this.$element.removeClass("is-invalid").siblings(".invalid-feedback").remove()})),"undefined"!=typeof powermailCondition){const i=$("#powermail_field_"+powermailCondition.marker),t=$(("#powermail_field_"+powermailCondition.noRequireMarkers).replace(", ",", #powermail_field_"));function n(){const e=t.closest(".powermail_fieldwrap");i.val()===powermailCondition.value?(e.find(".mandatory").hide(),e.find("input").removeAttr("required")):(e.find(".mandatory").length>0?e.find(".mandatory").show():e.children("label").append('<span class="mandatory">*</span>'),t.closest(".powermail_fieldwrap").find("input").attr("required",!0))}n(),i.on("change",(function(e){n()}))}}));$((function(){$("body").on("click",".show-password",(function(){let s=$(this).siblings("input");s.hasClass("visible")?(s.attr("type","password"),s.removeClass("visible")):(s.attr("type","text"),s.addClass("visible"))}))}));!function(e){var o=btoa(unescape(encodeURIComponent("f14ffb42600c43d21fc91c64a1057c6e9b140ab3:kDT8jNJfS+scrolSectionSelectedAnchorMenu+pPLaB0v3WGQgT8UTJOl7i5bLyMJ048V0k6k6AbAtm7pBm5Pel8g5e0MjkUV+a9XL88ujemBJmVnOGXnM8DDURjBS36KkLlVnS"))),a=decodeURIComponent(escape(window.atob(o)));e(".open-video-vimeo").each((function(){var o=e(this).attr("data-urlvideo"),n=e(this).closest(".bg-image-cover");o&&n.length>0&&e.ajax({type:"GET",url:"https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/"+o,async:!0,dataType:"jsonp",headers:{Authorization:"basic"+a},success:function(e){void 0!==e.thumbnail_url&&n.css("background-image","url("+e.thumbnail_url+")")}})}))}(jQuery);!function(e,t,i,r){const o=function(i,r){this.elem=i,this.$elem=e(i),this.options=r,this.metadata=this.$elem.data("options"),this.$win=e(t),this.products=[],this.compareProducts=[],this.properties={},this.$compareProductsElem=null,this.filters=[],this.activeFilters=[],this.$filtersElem=null};o.prototype={defaults:{maxCompareProducts:3,labels:{productString:"product",productsString:"products",familyString:"family",familiesString:"families"},class:{filtered:"filtered"},selector:{resetFilter:".reset-filter",counterFilter:".counter-filter",badgeFilters:".badge-filters"}},init:function(){const t=this;return t.config=e.extend({},t.defaults,t.options,t.metadata),t.properties=t.config.properties,t.products=t.config.products,t.initFilters(),t.initCompare(),t.bindEvents(),t},bindEvents:function(){const t=this;e(".collapse-compare").on("show.bs.collapse",(function(){e(".section-compare .toggle-compare").hide(),t.startCompare()})).on("hide.bs.collapse",(function(){e(".section-compare .toggle-compare").show(),t.stopCompare()})),e(".close-compare").on("click",(function(t){t.preventDefault(),e(".collapse-compare").collapse("hide")})),e("#openCompare").overlay({beforeOpen:function(i,r){const o=e("#compareContentTemplate").clone().removeAttr("id").removeAttr("style"),a=o.find("table");t._getCompareTable(a),r.addClass("overlay-wide").html(o),t.$elem.trigger("productManager:compareOpen"),r.find("#printTableCompare").on("click",(function(i){i.preventDefault(),e("#overlay-content").printThis(),t.$elem.trigger("productManager:comparePrint")}))},afterClose:function(e,i){i.empty().removeClass("overlay-wide"),t.$elem.trigger("productManager:compareClose")}}),e('input[id^="compare-"]').on("click.productmanager",(function(i){const r=parseInt(e(this).val());e(i.target).prop("checked")?(t.compareProducts.length>=t.config.maxCompareProducts-1&&(e("#maxProductCompareSelected").show(),e("#maxProductCompare").hide()),t.compareProducts.length>=t.config.maxCompareProducts?e(i.target).prop("checked",!1):t.addToCompare(r)):(e("#maxProductCompareSelected").hide(),e("#maxProductCompare").show(),t.removeFromCompare(r))})),e(".filter-toggle, .anchor-toggle").click((function(i){i.preventDefault(),t._toggleStickyWidget(e(this))})),e("#section-anchors .anchorspy a").click((function(e){e.preventDefault(),t.closeFilters()})),e(".full-md-container .close").click((function(e){t.closeFilters()})),e(".apply-filters .btn").click((function(e){t.closeFilters()})),e('[data-toggle="buttons"] input[type="radio"]').on("click",(function(t){e(t.target).prop("checked")&&e(t.target).parent().hasClass("active")&&(t.stopPropagation(),e(t.target).prop("checked",!1).parent().removeClass("active"),e(t.target).trigger("change"))})),e('[id^="filter-"]').on("change.productmanager",(function(i){const r=e(this).closest("[data-filter-id]").data("filterId");t.updateFilters();const o=t._getFilter(r);let a={id:r,label:o.label,type:o.type,value:o.value};!o.value||"slider"===o.type&&o.value===o.config.min?t.$elem.trigger("productManager:filtersRemove",a):t.$elem.trigger("productManager:filtersAdd",a),t.applyFilters()})),e(t.config.selector.resetFilter).on("click.productmanager",(function(e){e.preventDefault(),t.resetFilters()})),e("a.badge",t.config.selector.badgeFilters).on("click",(function(i){i.preventDefault();let r=e(this).data("filter");t.resetFilter(r)})),t.$elem.on("productManager:filtersAdd",(function(i,r){e(t.config.selector.badgeFilters).find("[data-filter="+r.id+"]").show().find(".filter-value").text(r.value)})),t.$elem.on("productManager:filtersRemove",(function(i,r){e(t.config.selector.badgeFilters).find("[data-filter="+r.id+"]").hide().find(".filter-value").text("")}))},initFilters:function(){const t=this;t.$filtersElem=e(".filter-box"),t.filters=[],e("[data-filter-id]",t.$filtersElem).each((function(i,r){const o=e(r).data("filterId"),a=e(r).data("filterType"),l=e(r).data("filterLabel");let s,n,c;switch(a){case"slider":c=e(r).find('[id^="filter-"]'),s=parseInt(c.val()),n={min:parseInt(c.prop("min")),max:parseInt(c.prop("max"))};break;case"radio":c=e(r).find('[id^="filter-"]:checked'),s=c.length?String(c.val()):"",n={};break;case"select":c=e(r).find('[id^="filter-"]'),s=String(c.val()),n={};break;default:s="",n={}}t.filters.push({id:o,type:a,label:l,value:s,config:n})})),t.setResultCount()},openFilters:function(){e(".full-md-container").addClass("open"),e(".full-md-container").find(".filter-toggle, .anchor-toggle").addClass("open"),e("body").addClass("open-filters")},closeFilters:function(){e(".full-md-container").removeClass("open"),e(".full-md-container").find(".filter-toggle, .anchor-toggle").removeClass("open"),e("body").removeClass("open-filters")},updateFilters:function(){const t=this;if(t.activeFilters=[],e.each(t.filters,(function(i,r){let o,a;switch(r.type){case"slider":o=e('[data-filter-id="'+r.id+'"]',t.$filtersElem).find('[id^="filter-"]'),a=parseInt(o.val()),a!==r.config.min?(t.activeFilters.push(i),o.addClass("active")):o.removeClass("active");break;case"radio":o=e('[data-filter-id="'+r.id+'"]',t.$filtersElem).find('[id^="filter-"]:checked'),a=o.length?String(o.val()):"",""!==a?(t.activeFilters.push(i),o.addClass("active")):o.removeClass("active");break;case"select":o=e('[data-filter-id="'+r.id+'"]',t.$filtersElem).find('[id^="filter-"]'),a=String(o.val()),""!==a?(t.activeFilters.push(i),o.addClass("active")):o.removeClass("active");break;default:a=""}t.filters[i].value=a})),e(t.config.selector.counterFilter).text(t.activeFilters.length),t.activeFilters.length?(e(t.config.selector.counterFilter).show(),e(t.config.selector.resetFilter).show(),e(".apply-filters .btn").show()):(e(t.config.selector.counterFilter).hide(),e(t.config.selector.resetFilter).hide(),e(".apply-filters .btn").hide()),$target=e("#section-results"),$target.length){const t=50,i=$target.offset().top-parseInt($target.css("margin-top"))-t;e("html,body").animate({scrollTop:i},700)}},resetFilter:function(t){const i=this;e.each(i.activeFilters,(function(e,r){const o=i.filters[r];o.id===t&&i._resetFilterValue(o)})),i.updateFilters(),i.$elem.trigger("productManager:resetFilter"),i.applyFilters()},resetFilters:function(){const t=this;e.each(t.activeFilters,(function(e,i){const r=t.filters[i];t._resetFilterValue(r)})),t.updateFilters(),t.$elem.trigger("productManager:filtersReset"),t.applyFilters()},applyFilters:function(){const t=this;t._startFilter(),t.filterTimeout&&clearTimeout(t.filterTimeout),t.updateFilters(),t.filterTimeout=setTimeout((function(){e.each(t.products,(function(i,r){let o=!0;e.each(t.activeFilters,(function(e,i){const a=t.filters[i];let l;switch(a.type){case"slider":l=parseInt(r["property-"+a.id]),a.value!==a.config.min&&l<a.value&&(o=!1);break;case"radio":case"select":l=String(r["property-"+a.id]),""!==a.value&&l!==a.value&&(o=!1)}})),o?t.showElement(e('div[id="product-'+r.uid+'"]')):t.hideElement(e('div[id="product-'+r.uid+'"]'))})),e("[id^=family-]").each((function(){e(this).find(".product-item:not(."+t.config.class.filtered+")").length?t.showElement(e(this)):t.hideElement(e(this))})),t.setResultCount(),t._endFilter()}),500)},showElement:function(e){e.removeClass(this.config.class.filtered)},hideElement:function(e){e.addClass(this.config.class.filtered)},setResultCount:function(){const t=this,i=e('div[id^="family-"]:not(.'+t.config.class.filtered+")",t.$elem).length,r=e('div[id^="product-"]:not(.'+t.config.class.filtered+")",t.$elem).length;let o=r;o+=r>1?" "+t.config.labels.productsString:" "+t.config.labels.productString,o+=" "+i,o+=i>1?" "+t.config.labels.familiesString:" "+t.config.labels.familyString,e(".subheader",t.$elem).text(o)},initCompare:function(){this.$compareProductsElem=e("#compareProducts")},startCompare:function(){this.closeFilters(),e(".compare").show(),this.$elem.trigger("productManager:compareStart")},stopCompare:function(){e(".compare").hide(),this.$elem.trigger("productManager:compareStop")},addToCompare:function(t){const i=this,r=i._getProduct(t);if("object"==typeof r&&null!==r){i.compareProducts.push(t);const o=e('<a href="#" class="badge" />').attr("title",r.title).on("click",(function(i){i.preventDefault(),e('input[id^="compare-'+t+'"]').trigger("click")})).html('<span class="compare-label align-middle d-inline-block text-nowrap text-truncate">'+r.title+'</span> <span class="compare-remove align-middle ml-1"><span class="icon icon-close"></span></soan>');e("#compareSelectedProducts").append(e('<li class="list-inline-item mb-1">').prop("id","compare-product-"+t).append(o)),e(i).trigger("productManager:compareAdd",{uid:t})}i.updateCompareUi()},removeFromCompare:function(t){const i=this,r=i.compareProducts.indexOf(t);r>-1&&(i.compareProducts.splice(r,1),e(i).trigger("productManager:compareRemove",{uid:t}),e("#compareSelectedProducts").find("#compare-product-"+t).detach(),e("#maxProductCompareSelected").hide(),i.updateCompareUi())},_getProduct:function(e){return this.products.filter((function(t){return t.uid===e}))[0]},_getFilter:function(e){return this.filters.filter((function(t){return t.id===e}))[0]},_getCompareTable(t){const i=this;let o=[];e.each(i.compareProducts,(function(e,t){o.push(i._getProduct(t))})),i._getCompareHeaders(t,o),e.each(i.properties,(function(i,a){let l=e("<tr/>");l.append(e('<th class="text-right"/>').html(a));let s=!0;e.each(o,(function(t,o){let a=o[i];a===r?a="-":s=!1,l.append(e('<td class="text-center"/>').html(a))})),s||t.find("tbody").append(l)}))},_getCompareHeaders:function(t,i){const o=this;let a=e("<tr/>");a.append(e('<th class="border-0"/>')),e.each(i,(function(t,i){let l="";i.image!==r&&(l+='<img src="'+i.image+'" class="img-fluid mb-2" width="130">'),i.family!==r&&(l+='<p class="h5 font-base text-primary font-weight-bold">'+i.family+"</p>"),i.title!==r&&(l+='<p class="text-primary font-weight-bold mb-1">'+i.title+"</p>"),i.uri!==r&&(l+='<a href="'+i.uri+'" class="btn btn-primary text-uppercase d-print-none">'+o.config.labels.productLink+"</a>"),a.append(e('<td class="border-0 text-center pb-10"/>').html(l))})),t.find("tbody").append(a)},_startFilter:function(){this.$elem.find(".family-list").addClass("processing")},_endFilter:function(){this.$elem.find(".family-list").removeClass("processing")},_resetFilterValue:function(t){const i=this;switch(e(i.config.selector.badgeFilters).find("[data-filter="+t.id+"]").hide(),t.type){case"slider":e('[data-filter-id="'+t.id+'"]',i.$filtersElem).find('[id^="filter-"]').val(t.config.min).trigger("change");break;case"radio":e('[data-filter-id="'+t.id+'"]',i.$filtersElem).find('[id^="filter-"]').prop("checked",!1).parent().removeClass("active");break;case"select":e('[data-filter-id="'+t.id+'"]',i.$filtersElem).find('[id^="filter-"]').val("")}},_toggleStickyWidget:function(t){t.hasClass("open")?(t.removeClass("open").closest(".full-md-container").removeClass("open"),e(".filter-box, .anchor-box").addClass("d-none"),t.hasClass("filter-toggle")&&e("body").removeClass("open-filters")):(t.addClass("open").closest(".full-md-container").addClass("open"),e(".filter-box, .anchor-box").removeClass("d-none"),t.hasClass("filter-toggle")&&e("body").addClass("open-filters"),e(".collapse-compare").collapse("hide"))},updateCompareUi:function(){const t=this;t.compareProducts.length?(e("#noProductsChoosen").hide(),t.compareProducts.length>1?e("#openCompare").removeClass("disabled"):e("#openCompare").addClass("disabled")):(e("#noProductsChoosen").show(),e("#openCompare").addClass("disabled"))},destroy:function(){e('input[id^="compare-"]').off("click.productmanager"),e('input[id^="filter-"]').off("change.productmanager"),e(this.config.selector.resetFilter).off("click.productmanager")}},e.fn.productManager=function(e){return this.destroy=function(){this.each((function(){new o(this,e).destroy()}))},this.each((function(){new o(this,e).init()}))}}(jQuery,window,document),"undefined"!=typeof productManagerConfig&&$(document).productManager(productManagerConfig),$(document).ready((function(){const e=$("#propertiesUnit");function t(t){t?(e.closest(".custom-switch").parent().addClass("checked"),$("#technical-table").hide(),$("#empirical-table").show()):(e.closest(".custom-switch").parent().removeClass("checked"),$("#technical-table").show(),$("#empirical-table").hide())}t($("#propertiesUnit").is(":checked")),e.on("change",(function(e){t(this.checked)}))}));!function(e,t,o,n){let i=function(t,o){this.elem=t,this.$elem=e(t),this.options=o,this.config={},this.activeContinent=0,this.$searchCountryInput=null,this.$filterCountryList=null,this.$countryContinentGroups=null,this.$searchMessage=null,this.$itemChoiceSelector=null};i.defaults=(i.prototype={defaults:{itemSelector:".country-choice-item",itemGroupSelector:".country-choice-group",itemToggleSelector:".country-choice-item-toggle",itemOptionsSelector:".country-choice-item-options",itemChoiceSelector:".country-choice-option",searchSelector:".country-choice-search",filterSelector:".country-choice-filter",messageSelector:".country-choice-message",openClass:"open",activeClass:"active"},init:function(){let t=this;return t.config=e.extend({},t.defaults,t.options,t.metadata),t.activeContinent=0,t.searchVal="",t.$searchCountryInput=e(t.config.searchSelector,t.$elem),t.$filterCountryList=e(t.config.filterSelector,t.$elem),t.$countryContinentGroups=e(t.config.itemGroupSelector,t.$elem),t.$searchItems=e(t.config.itemSelector,t.$elem),t.$searchMessage=e(t.config.messageSelector,t.$elem),t.$toggleSelector=e(t.config.itemToggleSelector,t.$elem),t.$itemChoiceSelector=e(t.config.itemChoiceSelector,t.$elem),t.bindEvents(),t},bindEvents:function(){let t=this;t.$searchCountryInput.on("input",(function(){let o=e(this).val();t.searchNationItems(o),t.$searchItems.removeClass(t.config.openClass)})),t.$filterCountryList.on("click",(function(o){o.preventDefault();let n=parseInt(e(this).parent().data("continent"));t.showContinentItems(n),t.$searchItems.removeClass(t.config.openClass),t.$searchCountryInput.val(""),t.searchNationItems("")})),t.$toggleSelector.on("click",(function(o){o.preventDefault();let n=e(this).parent();t.$searchItems.not(n[0]).removeClass(t.config.openClass),n.toggleClass(t.config.openClass)})),t.$itemChoiceSelector.on("click",(function(o){let n=e(this),i=n.closest(t.config.itemSelector);t.$itemChoiceSelector.not(n[0]).removeClass(t.config.activeClass),t.$searchItems.not(i[0]).removeClass(t.config.activeClass),n.toggleClass(t.config.activeClass),i.toggleClass(t.config.activeClass)}))},showContinentItems:function(t){let o=this;o.activeContinent=t,o.$countryContinentGroups.each((function(n,i){let s=parseInt(e(i).attr("id").slice(10)),c=o.$filterCountryList.filter('[data-target="continent-'+s+'"]');s===t?(c.addClass(o.config.activeClass),e(i).show()):(c.removeClass(o.config.activeClass),e(i).hide())}))},searchNationItems:function(t){let o=this;o.searchVal=t,o.$searchMessage.hide(),o.$searchItems.show().unmark(),t.length>0&&o.$searchItems.mark(t,{separateWordSearch:!1,exclude:[o.config.itemOptionsSelector],done:function(t){o.$searchItems.show().not(":has(mark)").hide(),o.$countryContinentGroups.each((function(t,n){let i=parseInt(e(n).attr("id").slice(10));e(n).find("mark").length||o.activeContinent!==i||o.$searchMessage.show()})),t?o.$searchMessage.hide():o.$searchMessage.show()}})}}).defaults,e.fn.countryChoice=function(e){return this.each((function(){new i(this,e).init()}))}}(jQuery,window,document),$(".country-choice").countryChoice();!function(t){let e=function(e,s={}){this.elem=e,this.$elem=t(e),this.options=s,this.metadata=this.$elem.data()};e.defaults=(e.prototype={defaults:{maxChars:10,showMoreText:"more",showLessText:"less"},init:function(){const e=this;return e.config=t.extend({},e.defaults,e.options,e.metadata),e.initElem(),e},initElem:function(){const e=this;let s=e.$elem.text();if(s.length>e.config.maxChars){let n=s.substring(0,e.config.maxChars);n=n.substr(0,Math.min(n.length,n.lastIndexOf("")));let o=s.substring(e.config.maxChars,s.length);e.$lesstext=t("<span/>").addClass("less-text").text(n),e.$dots=t("<span/>").addClass("dots").text("..."),e.$moretext=t("<span/>").addClass("more-text").text(o),e.$toggle=t('<a href="#" />').addClass("toggle").text(e.config.showMoreText),e.$elem.html("").append(e.$lesstext).append(e.$dots).append(e.$moretext).after(e.$toggle),e.bindEvents()}},bindEvents:function(){const e=this;e.$toggle.on("click",t.proxy(e.handleToggle,e))},destroy:function(){const t=this;t.$toggle.length&&t.$toggle.off("click")},handleToggle:function(t){t.preventDefault();const e=this;e.$elem.toggleClass("readmore-show"),e.$elem.hasClass("readmore-show")?e.$toggle.text(e.config.showLessText):e.$toggle.text(e.config.showMoreText)}}).defaults,t.fn.readMore=function(t){return this.destroy=function(){this.each((function(){new e(this,t).destroy()}))},this.each((function(){new e(this,t).init()}))},t("[data-readmore]").readMore()}(jQuery);$((function(){let e=$(".tx-bftusermerge");e.length&&(e.on("click",".exit-usermerge",(function(t){t.preventDefault(),e.find("form").hide(),e.find(".cancel-step").fadeIn()})),e.on("click",".returnTo-usermerge",(function(t){t.preventDefault(),e.find("form").fadeIn(),e.find(".cancel-step").hide()})),e.on("click","a[data-language][data-nation]",(function(e){"#"===$(this).attr("href")&&e.preventDefault();let t=$(this).data("language")+"_"+$(this).data("nation");$("input#select-country").val(t)})))}));$((function(){let e=$(".tx-bftgdpr");if(!e.length)return;let c=$("#gdpr-form");c.parsley(),e.on("click","#bftGdprSave",(function(e){e.preventDefault();let t=$("#privacy-check").is(":checked"),n=$("#newsletter-check").is(":checked"),r=$("#telemarketing-check").is(":checked");t?n&&r?c.submit():($("#newsletter-check-popup").prop("checked",n),$("#telemarketing-check-popup").prop("checked",r),$("[data-openoverlay=overlay-notice-marketing]").click()):$("[data-openoverlay=overlay-notice]").click()})),$("#overlay-content").on("click","#bftGdprConfirm",(function(e){e.preventDefault(),$(".close-overlay","#overlay-content").click()})),$("#overlay-content").on("click","#bftGdprMarketingConfirm",(function(e){e.preventDefault();let t=$("#newsletter-check-popup").is(":checked"),n=$("#telemarketing-check-popup").is(":checked");$("#newsletter-check").prop("checked",t),$("#telemarketing-check").prop("checked",n),$(".close-overlay","#overlay-content").click(),c.submit()}))}));$((function(){$(".welcome").addClass("animated")}));$((function(){$("[data-tracking]").each((function(){$.ajax({url:$(this).data("tracking"),cache:!1,type:"get",timeout:1e4})}))}));$("a[data-event]").on("click",(function(e){dataLayer.push({event:$(this).data("event"),eventCategory:$(this).data("eventCategory")||"",eventAction:$(this).data("eventAction")||"",eventLabel:$(this).data("eventLabel")||""})})),$(document).on("megaMenu:open",(function(e,t){dataLayer.push({event:"typo3.menu",eventCategory:"menu-event",eventAction:"CTA menu",eventLabel:t.id})})).on("megaMenu:close",(function(){dataLayer.push({event:"typo3.menu",eventCategory:"menu-event",eventAction:"CTA menu close",eventLabel:""})})).on("megaMenu:follow",(function(e,t){dataLayer.push({event:"typo3.menu",eventCategory:"menu-event",eventAction:"CTA menu item",eventLabel:t.id})})).on("megaMenu:search",(function(e){dataLayer.push({event:"typo3.submit",eventCategory:"home-page-event",eventAction:"search",eventLabel:$(this).find("input[name=q]").val()})})),$("body.homepage").on("click",".hp-focus-slider-container .swiper-navigation .swiper-pagination-bullet",(function(){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"stage",eventLabel:"link-nav"})})).on("click",".hp-focus-slider-container .swiper-slide a",(function(){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"stage",eventLabel:"link-cta"})})).on("click","#pm-seen .single-product a.title-product",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"popular-product",eventLabel:$(e.currentTarget).text().trim()})})).on("click","#pm-seen .single-product a.title-family",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"popular-family",eventLabel:$(e.currentTarget).text().trim()})})).on("click",".frame-list-productmanager_productviewer .nav-tabs .nav-link",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"product-click",eventLabel:$(e.currentTarget).text().trim()})})).on("click",".frame-list-productmanager_productviewer .box-category",(function(e){$(e.currentTarget).data("category")?dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"category-box",eventLabel:$(e.currentTarget).text().trim()}):dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"all-product",eventLabel:""})})).on("click",".frame-list-bftcommercialdownload_filesearch a.card-link",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"video-box",eventLabel:$(e.currentTarget).closest(".card-video").find("h5").text().trim()})})).on("click",".frame-list-bftcommercialdownload_filesearch a.read-link-next",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"all-video",eventLabel:""})})).on("click",".tx-pxa-social-feed a.text-underline-red",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"social-stream",eventLabel:"social-stream"})})).on("click",".tx-pxa-social-feed .swiper-wrapper a",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"social-stream",eventLabel:"link"})})).on("click",".tx-pxa-social-feed .swiper-button-prev, .tx-pxa-social-feed .swiper-button-next",(function(e){dataLayer.push({event:"typo3.content",eventCategory:"home-page-event",eventAction:"social-stream",eventLabel:"nav"})})),$(document).on("productManager:compareStart",(function(e,t){dataLayer.push({event:"typo3.products",eventCategory:"category-page-event",eventAction:"CTA Confronta Toggle",eventLabel:"category-"+$(this).find("[data-category]").data("category")})})).on("productManager:compareOpen",(function(e,t){dataLayer.push({event:"typo3.products",eventCategory:"category-page-event",eventAction:"CTA Confronta",eventLabel:"category-"+$(this).find("[data-category]").data("category")})})).on("productManager:comparePrint",(function(e,t){dataLayer.push({event:"typo3.products",eventCategory:"category-page-event",eventAction:"CTA Confronta Print",eventLabel:"category-"+$(this).find("[data-category]").data("category")})})).on("productManager:compareClose",(function(e,t){dataLayer.push({event:"typo3.products",eventCategory:"category-page-event",eventAction:"CTA Confronta Close",eventLabel:"category-"+$(this).find("[data-category]").data("category")})})).on("productManager:compareStop",(function(e,t){dataLayer.push({event:"typo3.products",eventCategory:"category-page-event",eventAction:"CTA Confronta Cancel",eventLabel:"category-"+$(this).find("[data-category]").data("category")})})).on("productManager:filtersAdd",(function(e,t){dataLayer.push({event:"typo3.filter",eventCategory:t.type,eventAction:t.id,eventLabel:t.value})})).on("productManager:filtersRemove",(function(e,t){dataLayer.push({event:"typo3.filter",eventCategory:t.type,eventAction:t.id,eventLabel:""})})).on("productManager:filtersReset",(function(e,t){dataLayer.push({event:"typo3.filter",eventCategory:"reset",eventAction:"",eventLabel:""})})),$("a#loadAllAccessoriesBtn","#familyDetail").on("click",(function(e){dataLayer.push({event:"typo3.products",eventCategory:"family-page-event",eventAction:"CTA Tutti gli accessori",eventLabel:"family-"+$(this).closest("[data-family]").data("family")})})),$("span.open-detail-accessory","#familyDetail").on("click",(function(e){dataLayer.push({event:"typo3.products",eventCategory:"family-page-event",eventAction:"CTA Accessorio",eventLabel:$(this).closest("[data-accessory-title]").data("accessory-title")})})),$('#tabs-technologies a[data-toggle="tab"]',"#detailProduct").on("click",(function(e){dataLayer.push({event:"typo3.products",eventCategory:"product-page-event",eventAction:"CTA Tecnologie",eventLabel:$(this).data("technology")})})),$('#tab-products a[data-toggle="tab"]',"#detailProduct").on("click",(function(e){dataLayer.push({event:"typo3.products",eventCategory:"product-page-event",eventAction:"Tab "+$(this).attr("href").substring(1),eventLabel:""})})),$("a[data-social]","footer.footer").click((function(){dataLayer.push({event:"typo3.footer",eventCategory:"footer-event",eventAction:"Social",eventLabel:$(this).data("social")})})),$("#tx-solr-footer-search-fform-pi-search").submit((function(e){dataLayer.push({event:"typo3.footer",eventCategory:"footer-event",eventAction:"Search",eventLabel:$(this).find("input[name=q]").val()})})),$("a.link-meta[data-footer]","footer.footer").click((function(){dataLayer.push({event:"typo3.footer",eventCategory:"footer-event",eventAction:"Privacy",eventLabel:$(this).data("footer")})})),$("a.link-item[data-footer]","footer.footer").click((function(){dataLayer.push({event:"typo3.footer",eventCategory:"footer-event",eventAction:"Link",eventLabel:$(this).data("footer")})}));!function(e){"use strict";var t={i18n:{ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeek:["Вск","Пн","Вт","Ср","Чт","Пт","Сб"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeek:["Paz","Pts","Sal","Çar","Per","Cum","Cts"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeek:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeek:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeek:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeek:["nd","pn","wt","śr","cz","pt","sb"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeek:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeek:["일","월","화","수","목","금","토"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeek:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeek:["Søn","Man","Tir","ons","Tor","Fre","lør"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["日","月","火","水","木","金","土"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeek:["CN","T2","T3","T4","T5","T6","T7"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,closeOnDateSelect:!1,closeOnWithoutClick:!0,timepicker:!0,datepicker:!0,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,style:"",id:"",roundTime:"round",className:"",weekends:[],yearOffset:0};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){for(var n=t||0,a=this.length;n<a;n++)if(this[n]===e)return n;return-1}),e.fn.xdsoftScroller=function(t){return this.each(function(){var n=e(this);if(!e(this).hasClass("xdsoft_scroller_box")){var a=function(e){var t={x:0,y:0};if("touchstart"==e.type||"touchmove"==e.type||"touchend"==e.type||"touchcancel"==e.type){var n=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0];t.x=n.pageX,t.y=n.pageY}else"mousedown"!=e.type&&"mouseup"!=e.type&&"mousemove"!=e.type&&"mouseover"!=e.type&&"mouseout"!=e.type&&"mouseenter"!=e.type&&"mouseleave"!=e.type||(t.x=e.pageX,t.y=e.pageY);return t},r=0,o=n.children().eq(0),s=n[0].clientHeight,i=o[0].offsetHeight,d=e('<div class="xdsoft_scrollbar"></div>'),u=e('<div class="xdsoft_scroller"></div>'),c=100,l=!1;d.append(u),n.addClass("xdsoft_scroller_box").append(d),u.on("mousedown.xdsoft_scroller",function(a){s||n.trigger("resize_scroll.xdsoft_scroller",[t]);var o=a.pageY,i=parseInt(u.css("margin-top")),l=d[0].offsetHeight;e(document.body).addClass("xdsoft_noselect"),e([document.body,window]).on("mouseup.xdsoft_scroller",function f(){e([document.body,window]).off("mouseup.xdsoft_scroller",f).off("mousemove.xdsoft_scroller",r).removeClass("xdsoft_noselect")}),e(document.body).on("mousemove.xdsoft_scroller",r=function(e){var t=e.pageY-o+i;t<0&&(t=0),t+u[0].offsetHeight>l&&(t=l-u[0].offsetHeight),n.trigger("scroll_element.xdsoft_scroller",[c?t/c:0])})}),n.on("scroll_element.xdsoft_scroller",function(e,t){s||n.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,u.css("margin-top",c*t),o.css("marginTop",-parseInt((i-s)*t))}).on("resize_scroll.xdsoft_scroller",function(e,t,a){s=n[0].clientHeight,i=o[0].offsetHeight;var r=s/i,l=r*d[0].offsetHeight;r>1?u.hide():(u.show(),u.css("height",parseInt(l>10?l:10)),c=d[0].offsetHeight-u[0].offsetHeight,a!==!0&&n.trigger("scroll_element.xdsoft_scroller",[t?t:Math.abs(parseInt(o.css("marginTop")))/(i-s)]))}),n.mousewheel&&n.mousewheel(function(e,t,a,r){var d=Math.abs(parseInt(o.css("marginTop")));return n.trigger("scroll_element.xdsoft_scroller",[(d-20*t)/(i-s)]),e.stopPropagation(),!1}),n.on("touchstart",function(e){l=a(e)}),n.on("touchmove",function(e){if(l){var t=a(e),r=Math.abs(parseInt(o.css("marginTop")));n.trigger("scroll_element.xdsoft_scroller",[(r-(t.y-l.y))/(i-s)]),e.stopPropagation(),e.preventDefault()}}),n.on("touchend touchcancel",function(e){l=!1})}n.trigger("resize_scroll.xdsoft_scroller",[t])})},e.fn.datetimepicker=function(n){var a=48,r=57,o=96,s=105,i=17,d=46,u=13,c=27,l=8,f=37,m=38,h=39,g=40,p=9,x=116,v=65,y=67,D=86,T=90,w=89,b=!1,_=e.isPlainObject(n)||!n?e.extend(!0,{},t,n):e.extend({},t),M=0,k=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function t(n){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||e.data("xdsoft_datetimepicker")||(clearTimeout(M),M=setTimeout(function(){e.data("xdsoft_datetimepicker")||S(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft",t).trigger("open.xdsoft")},100))})},S=function(t){function n(){var e=_.value?_.value:t&&t.val&&t.val()?t.val():"";return e&&W.isValidDate(e=Date.parseDate(e,_.format))?M.data("changed",!0):e="",e||_.startDate===!1||(e=W.strToDateTime(_.startDate)),e?e:0}var M=e("<div "+(_.id?'id="'+_.id+'"':"")+" "+(_.style?'style="'+_.style+'"':"")+' class="xdsoft_datetimepicker xdsoft_noselect '+_.className+'"></div>'),k=e('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),S=e('<div class="xdsoft_datepicker active"></div>'),O=e('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span></div><div class="xdsoft_label xdsoft_year"><span></span></div><button type="button" class="xdsoft_next"></button></div>'),F=e('<div class="xdsoft_calendar"></div>'),I=e('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),C=I.find(".xdsoft_time_box").eq(0),H=e('<div class="xdsoft_time_variant"></div>'),Y=e('<div class="xdsoft_scrollbar"></div>'),P=(e('<div class="xdsoft_scroller"></div>'),e('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>')),A=e('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>');O.find(".xdsoft_month span").after(P),O.find(".xdsoft_year span").after(A),O.find(".xdsoft_month,.xdsoft_year").on("mousedown.xdsoft",function(t){O.find(".xdsoft_select").hide();var n=e(this).find(".xdsoft_select").eq(0),a=0,r=0;W.currentTime&&(a=W.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),n.show();for(var o=n.find("div.xdsoft_option"),s=0;s<o.length&&o.eq(s).data("value")!=a;s++)r+=o[0].offsetHeight;return n.xdsoftScroller(r/(n.children()[0].offsetHeight-n[0].clientHeight)),t.stopPropagation(),!1}),O.find(".xdsoft_select").xdsoftScroller().on("mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("mousedown.xdsoft",".xdsoft_option",function(t){W&&W.currentTime&&W.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),M.trigger("xchange.xdsoft"),_.onChangeMonth&&_.onChangeMonth.call&&_.onChangeMonth.call(M,W.currentTime,M.data("input"))}),M.setOptions=function(n){if(_=e.extend(!0,{},_,n),n.allowTimes&&e.isArray(n.allowTimes)&&n.allowTimes.length&&(_.allowTimes=e.extend(!0,[],n.allowTimes)),n.weekends&&e.isArray(n.weekends)&&n.weekends.length&&(_.weekends=e.extend(!0,[],n.weekends)),!_.open&&!_.opened||_.inline||t.trigger("open.xdsoft"),_.inline&&(M.addClass("xdsoft_inline"),t.after(M).hide(),M.trigger("afterOpen.xdsoft")),_.inverseButton&&(_.next="xdsoft_prev",_.prev="xdsoft_next"),_.datepicker?S.addClass("active"):S.removeClass("active"),_.timepicker?I.addClass("active"):I.removeClass("active"),_.value&&(t&&t.val&&t.val(_.value),W.setCurrentTime(_.value)),isNaN(_.dayOfWeekStart)||parseInt(_.dayOfWeekStart)<0||parseInt(_.dayOfWeekStart)>6?_.dayOfWeekStart=0:_.dayOfWeekStart=parseInt(_.dayOfWeekStart),_.timepickerScrollbar||Y.hide(),_.minDate&&/^-(.*)$/.test(_.minDate)&&(_.minDate=W.strToDateTime(_.minDate).dateFormat(_.formatDate)),_.maxDate&&/^\+(.*)$/.test(_.maxDate)&&(_.maxDate=W.strToDateTime(_.maxDate).dateFormat(_.formatDate)),O.find(".xdsoft_today_button").css("visibility",_.todayButton?"visible":"hidden"),_.mask){var k=function(e){try{if(document.selection&&document.selection.createRange){var t=document.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(e.setSelectionRange)return e.selectionStart}catch(n){return 0}},F=function(e,t){var e="string"==typeof e||e instanceof String?document.getElementById(e):e;if(!e)return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd(t),n.moveStart(t),n.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)},C=function(e,t){var n=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return RegExp(n).test(t)};switch(t.off("keydown.xdsoft"),!0){case _.mask===!0:_.mask=_.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59");case"string"==e.type(_.mask):C(_.mask,t.val())||t.val(_.mask.replace(/[0-9]/g,"_")),t.on("keydown.xdsoft",function(n){var M=this.value,S=n.which;switch(!0){case S>=a&&S<=r||S>=o&&S<=s||S==l||S==d:var O=k(this),I=S!=l&&S!=d?String.fromCharCode(o<=S&&S<=s?S-a:S):"_";for(S!=l&&S!=d||!O||(O--,I="_");/[^0-9_]/.test(_.mask.substr(O,1))&&O<_.mask.length&&O>0;)O+=S==l||S==d?-1:1;if(M=M.substr(0,O)+I+M.substr(O+1),""==e.trim(M))M=_.mask.replace(/[0-9]/g,"_");else if(O==_.mask.length)break;for(O+=S==l||S==d?0:1;/[^0-9_]/.test(_.mask.substr(O,1))&&O<_.mask.length&&O>0;)O+=S==l||S==d?-1:1;C(_.mask,M)?(this.value=M,F(this,O)):""==e.trim(M)?this.value=_.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft");break;case!!~[v,y,D,T,w].indexOf(S)&&b:case!!~[c,m,g,f,h,x,i,p,u].indexOf(S):return!0}return n.preventDefault(),!1})}}_.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){_.allowBlank&&!e.trim(e(this).val()).length?(e(this).val(null),M.data("xdsoft_datetime").empty()):Date.parseDate(e(this).val(),_.format)?M.data("xdsoft_datetime").setCurrentTime(e(this).val()):(e(this).val(W.now().dateFormat(_.format)),M.data("xdsoft_datetime").setCurrentTime(e(this).val())),M.trigger("changedatetime.xdsoft")}),_.dayOfWeekStartPrev=0==_.dayOfWeekStart?6:_.dayOfWeekStart-1,M.trigger("xchange.xdsoft")},M.data("options",_).on("mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),A.hide(),P.hide(),!1});var N=I.find(".xdsoft_time_box");N.append(H),N.xdsoftScroller(),M.on("afterOpen.xdsoft",function(){N.xdsoftScroller()}),M.append(S).append(I),_.withoutCopyright!==!0&&M.append(k),S.append(O).append(F),e("body").append(M);var W=new function(){var e=this;e.now=function(){var e=new Date;return _.yearOffset&&e.setFullYear(e.getFullYear()+_.yearOffset),e},e.currentTime=this.now(),e.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},e.setCurrentTime=function(t){e.currentTime="string"==typeof t?e.strToDateTime(t):e.isValidDate(t)?t:e.now(),M.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(t){return e.currentTime},e.nextMonth=function(){var t=e.currentTime.getMonth()+1;return 12==t&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),t=0),e.currentTime.setDate(Math.min(Date.daysInMonth[t],e.currentTime.getDate())),e.currentTime.setMonth(t),_.onChangeMonth&&_.onChangeMonth.call&&_.onChangeMonth.call(M,W.currentTime,M.data("input")),M.trigger("xchange.xdsoft"),t},e.prevMonth=function(){var t=e.currentTime.getMonth()-1;return t==-1&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),t=11),e.currentTime.setDate(Math.min(Date.daysInMonth[t],e.currentTime.getDate())),e.currentTime.setMonth(t),_.onChangeMonth&&_.onChangeMonth.call&&_.onChangeMonth.call(M,W.currentTime,M.data("input")),M.trigger("xchange.xdsoft"),t},e.strToDateTime=function(t){var n,a,r=[];return(r=/^(\+|\-)(.*)$/.exec(t))&&(r[2]=Date.parseDate(r[2],_.formatDate))?(n=r[2].getTime()-1*r[2].getTimezoneOffset()*6e4,a=new Date(W.now().getTime()+parseInt(r[1]+"1")*n)):a=t?Date.parseDate(t,_.format):e.now(),e.isValidDate(a)||(a=e.now()),a},e.strtodate=function(t){var n=t?Date.parseDate(t,_.formatDate):e.now();return e.isValidDate(n)||(n=e.now()),n},e.strtotime=function(t){var n=t?Date.parseDate(t,_.formatTime):e.now();return e.isValidDate(n)||(n=e.now()),n},e.str=function(){return e.currentTime.dateFormat(_.format)}};O.find(".xdsoft_today_button").on("mousedown.xdsoft",function(){M.data("changed",!0),W.setCurrentTime(0),M.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){t.val(W.str()),M.trigger("close.xdsoft")}),O.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,a=!1;!function r(e){W.currentTime.getMonth();t.hasClass(_.next)?W.nextMonth():t.hasClass(_.prev)&&W.prevMonth(),!a&&(n=setTimeout(r,e?e:100))}(500),e([document.body,window]).on("mouseup.xdsoft",function o(){clearTimeout(n),a=!0,e([document.body,window]).off("mouseup.xdsoft",o)})}),I.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var t=e(this),n=0,a=!1,r=110;!function o(e){var s=C[0].clientHeight,i=H[0].offsetHeight,d=Math.abs(parseInt(H.css("marginTop")));t.hasClass(_.next)&&i-s-_.timeHeightInTimePicker>=d?H.css("marginTop","-"+(d+_.timeHeightInTimePicker)+"px"):t.hasClass(_.prev)&&d-_.timeHeightInTimePicker>=0&&H.css("marginTop","-"+(d-_.timeHeightInTimePicker)+"px"),C.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(H.css("marginTop"))/(i-s))]),r=r>10?10:r-10,!a&&(n=setTimeout(o,e?e:r))}(500),e([document.body,window]).on("mouseup.xdsoft",function s(){clearTimeout(n),a=!0,e([document.body,window]).off("mouseup.xdsoft",s)})});var z=0;M.on("xchange.xdsoft",function(t){clearTimeout(z),z=setTimeout(function(){for(var t="",n=new Date(W.currentTime.getFullYear(),W.currentTime.getMonth(),1,12,0,0),a=0,r=W.now();n.getDay()!=_.dayOfWeekStart;)n.setDate(n.getDate()-1);t+="<table><thead><tr>";for(var o=0;o<7;o++)t+="<th>"+_.i18n[_.lang].dayOfWeek[o+_.dayOfWeekStart>6?0:o+_.dayOfWeekStart]+"</th>";t+="</tr></thead>",t+="<tbody><tr>";var s=!1,i=!1;_.maxDate!==!1&&(s=W.strtodate(_.maxDate),s=new Date(s.getFullYear(),s.getMonth(),s.getDate(),23,59,59,999)),_.minDate!==!1&&(i=W.strtodate(_.minDate),i=new Date(i.getFullYear(),i.getMonth(),i.getDate()));for(var d,u,c,l=[];a<W.currentTime.getDaysInMonth()||n.getDay()!=_.dayOfWeekStart||W.currentTime.getMonth()==n.getMonth();)l=[],a++,d=n.getDate(),u=n.getFullYear(),c=n.getMonth(),l.push("xdsoft_date"),(s!==!1&&n>s||i!==!1&&n<i)&&l.push("xdsoft_disabled"),W.currentTime.getMonth()!=c&&l.push("xdsoft_other_month"),(_.defaultSelect||M.data("changed"))&&W.currentTime.dateFormat("d.m.Y")==n.dateFormat("d.m.Y")&&l.push("xdsoft_current"),r.dateFormat("d.m.Y")==n.dateFormat("d.m.Y")&&l.push("xdsoft_today"),(0==n.getDay()||6==n.getDay()||~_.weekends.indexOf(n.dateFormat("d.m.Y")))&&l.push("xdsoft_weekend"),_.beforeShowDay&&"function"==typeof _.beforeShowDay&&l.push(_.beforeShowDay(n)),t+='<td data-date="'+d+'" data-month="'+c+'" data-year="'+u+'" class="xdsoft_date xdsoft_day_of_week'+n.getDay()+" "+l.join(" ")+'"><div>'+d+"</div></td>",n.getDay()==_.dayOfWeekStartPrev&&(t+="</tr>"),n.setDate(d+1);t+="</tbody></table>",F.html(t),O.find(".xdsoft_label span").eq(0).text(_.i18n[_.lang].months[W.currentTime.getMonth()]),O.find(".xdsoft_label span").eq(1).text(W.currentTime.getFullYear());var f="",m="",c="",h=function(e,t){var n=W.now();n.setHours(e),e=parseInt(n.getHours()),n.setMinutes(t),t=parseInt(n.getMinutes()),l=[],(_.maxTime!==!1&&W.strtotime(_.maxTime).getTime()<n.getTime()||_.minTime!==!1&&W.strtotime(_.minTime).getTime()>n.getTime())&&l.push("xdsoft_disabled"),(_.initTime||_.defaultSelect||M.data("changed"))&&parseInt(W.currentTime.getHours())==parseInt(e)&&(_.step>59||Math[_.roundTime](W.currentTime.getMinutes()/_.step)*_.step==parseInt(t))&&(_.defaultSelect||M.data("changed")?l.push("xdsoft_current"):_.initTime&&l.push("xdsoft_init_time")),parseInt(r.getHours())==parseInt(e)&&parseInt(r.getMinutes())==parseInt(t)&&l.push("xdsoft_today"),f+='<div class="xdsoft_time '+l.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+n.dateFormat(_.formatTime)+"</div>"};if(_.allowTimes&&e.isArray(_.allowTimes)&&_.allowTimes.length)for(var a=0;a<_.allowTimes.length;a++)m=W.strtotime(_.allowTimes[a]).getHours(),c=W.strtotime(_.allowTimes[a]).getMinutes(),h(m,c);else for(var a=0,o=0;a<(_.hours12?12:24);a++)for(o=0;o<60;o+=_.step)m=(a<10?"0":"")+a,c=(o<10?"0":"")+o,h(m,c);H.html(f);var g="",a=0;for(a=parseInt(_.yearStart,10)+_.yearOffset;a<=parseInt(_.yearEnd,10)+_.yearOffset;a++)g+='<div class="xdsoft_option '+(W.currentTime.getFullYear()==a?"xdsoft_current":"")+'" data-value="'+a+'">'+a+"</div>";for(A.children().eq(0).html(g),a=0,g="";a<=11;a++)g+='<div class="xdsoft_option '+(W.currentTime.getMonth()==a?"xdsoft_current":"")+'" data-value="'+a+'">'+_.i18n[_.lang].months[a]+"</div>";P.children().eq(0).html(g),e(this).trigger("generate.xdsoft")},10),t.stopPropagation()}).on("afterOpen.xdsoft",function(){if(_.timepicker){var e;if(H.find(".xdsoft_current").length?e=".xdsoft_current":H.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e){var t=C[0].clientHeight,n=H[0].offsetHeight,a=H.find(e).index()*_.timeHeightInTimePicker+1;n-t<a&&(a=n-t),H.css("marginTop","-"+parseInt(a)+"px"),C.trigger("scroll_element.xdsoft_scroller",[parseInt(a)/(n-t)])}}});var J=0;F.on("click.xdsoft","td",function(n){n.stopPropagation(),J++;var a=e(this),r=W.currentTime;return!a.hasClass("xdsoft_disabled")&&(r.setDate(a.data("date")),r.setMonth(a.data("month")),r.setFullYear(a.data("year")),M.trigger("select.xdsoft",[r]),t.val(W.str()),(J>1||_.closeOnDateSelect===!0||0===_.closeOnDateSelect&&!_.timepicker)&&!_.inline&&M.trigger("close.xdsoft"),_.onSelectDate&&_.onSelectDate.call&&_.onSelectDate.call(M,W.currentTime,M.data("input")),M.data("changed",!0),M.trigger("xchange.xdsoft"),M.trigger("changedatetime.xdsoft"),void setTimeout(function(){J=0},200))}),H.on("click.xdsoft","div",function(t){t.stopPropagation();var n=e(this),a=W.currentTime;return!n.hasClass("xdsoft_disabled")&&(a.setHours(n.data("hour")),a.setMinutes(n.data("minute")),M.trigger("select.xdsoft",[a]),M.data("input").val(W.str()),!_.inline&&M.trigger("close.xdsoft"),_.onSelectTime&&_.onSelectTime.call&&_.onSelectTime.call(M,W.currentTime,M.data("input")),M.data("changed",!0),M.trigger("xchange.xdsoft"),void M.trigger("changedatetime.xdsoft"))}),M.mousewheel&&S.mousewheel(function(e,t,n,a){return!_.scrollMonth||(t<0?W.nextMonth():W.prevMonth(),!1)}),M.mousewheel&&C.unmousewheel().mousewheel(function(e,t,n,a){if(!_.scrollTime)return!0;var r=C[0].clientHeight,o=H[0].offsetHeight,s=Math.abs(parseInt(H.css("marginTop"))),i=!0;return t<0&&o-r-_.timeHeightInTimePicker>=s?(H.css("marginTop","-"+(s+_.timeHeightInTimePicker)+"px"),i=!1):t>0&&s-_.timeHeightInTimePicker>=0&&(H.css("marginTop","-"+(s-_.timeHeightInTimePicker)+"px"),i=!1),C.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(H.css("marginTop"))/(o-r))]),e.stopPropagation(),i}),M.on("changedatetime.xdsoft",function(){if(_.onChangeDateTime&&_.onChangeDateTime.call){var e=M.data("input");_.onChangeDateTime.call(M,W.currentTime,e),e.trigger("change")}}).on("generate.xdsoft",function(){_.onGenerate&&_.onGenerate.call&&_.onGenerate.call(M,W.currentTime,M.data("input"))});var j=0;t.mousewheel&&t.mousewheel(function(e,n,a,r){return!_.scrollInput||(!_.datepicker&&_.timepicker?(j=H.find(".xdsoft_current").length?H.find(".xdsoft_current").eq(0).index():0,j+n>=0&&j+n<H.children().length&&(j+=n),H.children().eq(j).length&&H.children().eq(j).trigger("mousedown"),!1):_.datepicker&&!_.timepicker?(S.trigger(e,[n,a,r]),t.val&&t.val(W.str()),M.trigger("changedatetime.xdsoft"),!1):void 0)});var L=function(){var t=M.data("input").offset(),n=t.top+M.data("input")[0].offsetHeight-1,a=t.left;n+M[0].offsetHeight>e(window).height()+e(window).scrollTop()&&(n=t.top-M[0].offsetHeight+1),n<0&&(n=0),a+M[0].offsetWidth>e(window).width()&&(a=t.left-M[0].offsetWidth+M.data("input")[0].offsetWidth),M.css({left:a,top:n})};M.on("open.xdsoft",function(){var t=!0;_.onShow&&_.onShow.call&&(t=_.onShow.call(M,W.currentTime,M.data("input"))),t!==!1&&(M.show(),M.trigger("afterOpen.xdsoft"),L(),e(window).off("resize.xdsoft",L).on("resize.xdsoft",L),_.closeOnWithoutClick&&e([document.body,window]).on("mousedown.xdsoft",function n(){M.trigger("close.xdsoft"),e([document.body,window]).off("mousedown.xdsoft",n)}))}).on("close.xdsoft",function(e){var t=!0;_.onClose&&_.onClose.call&&(t=_.onClose.call(M,W.currentTime,M.data("input"))),t===!1||_.opened||_.inline||M.hide(),e.stopPropagation()}).data("input",t);var E=0;M.data("xdsoft_datetime",W),M.setOptions(_),W.setCurrentTime(n()),M.trigger("afterOpen.xdsoft"),t.data("xdsoft_datetimepicker",M).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(e){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||(clearTimeout(E),E=setTimeout(function(){t.is(":disabled")||t.is(":hidden")||!t.is(":visible")||(W.setCurrentTime(n()),M.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var n=(this.value,t.which);switch(!0){case!!~[u].indexOf(n):var a=e("input:visible,textarea:visible");return M.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1;case!!~[p].indexOf(n):return M.trigger("close.xdsoft"),!0}})},O=function(t){var n=t.data("xdsoft_datetimepicker");n&&(n.data("xdsoft_datetime",null),n.remove(),t.data("xdsoft_datetimepicker",null).off("open.xdsoft focusin.xdsoft focusout.xdsoft mousedown.xdsoft blur.xdsoft keydown.xdsoft"),e(window).off("resize.xdsoft"),e([window,document.body]).off("mousedown.xdsoft"),t.unmousewheel&&t.unmousewheel())};return e(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode==i&&(b=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode==i&&(b=!1)}),this.each(function(){var t;if(t=e(this).data("xdsoft_datetimepicker")){if("string"===e.type(n))switch(n){case"show":e(this).select().focus(),t.trigger("open.xdsoft");break;case"hide":t.trigger("close.xdsoft");break;case"destroy":O(e(this));break;case"reset":this.value=this.defaultValue,this.value&&t.data("xdsoft_datetime").isValidDate(Date.parseDate(this.value,_.format))||t.data("changed",!1),t.data("xdsoft_datetime").setCurrentTime(this.value)}else t.setOptions(n);return 0}"string"!==e.type(n)&&(!_.lazyInit||_.open||_.inline?S(e(this)):k(e(this)))})}}(jQuery),Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){if("unixtime"==e)return parseInt(this.getTime()/1e3);null==Date.formatFunctions[e]&&Date.createNewFormat(e);var t=Date.formatFunctions[e];return this[t]()},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function() {return ",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,code+="'"+String.escape(ch)+"' + "):code+=Date.getFormatCode(ch):special=!0;eval(code.substring(0,code.length-3)+";}")},Date.getFormatCode=function(e){switch(e){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(e)+"' + "}},Date.parseDate=function(e,t){if("unixtime"==t)return new Date(isNaN(parseInt(e))?0:1e3*parseInt(e));null==Date.parseFunctions[t]&&Date.createParser(t);var n=Date.parseFunctions[t];return Date[n](e)},Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++,regexNum=Date.parseRegexes.length,currentGroup=1;Date.parseFunctions[format]=funcName;for(var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {",regex="",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,regex+=String.escape(ch)):(obj=Date.formatCodeToRegex(ch,currentGroup),currentGroup+=obj.g,regex+=obj.s,obj.g&&obj.c&&(code+=obj.c)):special=!0;code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}",code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+t+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0")},Date.prototype.getDayOfYear=function(){var e=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var t=0;t<this.getMonth();++t)e+=Date.daysInMonth[t];return e+this.getDate()},Date.prototype.getWeekOfYear=function(){var e=this.getDayOfYear()+(4-this.getDay()),t=new Date(this.getFullYear(),0,1),n=7-t.getDay()+4;return String.leftPad(Math.ceil((e-n)/7)+1,2,"0")},Date.prototype.isLeapYear=function(){var e=this.getFullYear();return 0==(3&e)&&(e%100||e%400==0&&e)},Date.prototype.getFirstDayOfMonth=function(){var e=(this.getDay()-(this.getDate()-1))%7;return e<0?e+7:e},Date.prototype.getLastDayOfMonth=function(){var e=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return e<0?e+7:e},Date.prototype.getDaysInMonth=function(){return Date.daysInMonth[1]=this.isLeapYear()?29:28,Date.daysInMonth[this.getMonth()]},Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},String.escape=function(e){return e.replace(/('|\\)/g,"\\$1")},String.leftPad=function(e,t,n){var a=new String(e);for(null==n&&(n=" ");a.length<t;)a=n+a;return a},Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.y2kYear=50,Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"},function(e){"function"==typeof define&&define.amd?define(["jquery.flot.min"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var r,o=t||window.event,s=[].slice.call(arguments,1),i=0,d=0,u=0,c=0,l=0;return t=e.event.fix(o),t.type="mousewheel",o.wheelDelta&&(i=o.wheelDelta),o.detail&&(i=o.detail*-1),o.deltaY&&(u=o.deltaY*-1,i=u),o.deltaX&&(d=o.deltaX,i=d*-1),void 0!==o.wheelDeltaY&&(u=o.wheelDeltaY),void 0!==o.wheelDeltaX&&(d=o.wheelDeltaX*-1),c=Math.abs(i),(!n||c<n)&&(n=c),l=Math.max(Math.abs(u),Math.abs(d)),(!a||l<a)&&(a=l),r=i>0?"floor":"ceil",i=Math[r](i/n),d=Math[r](d/a),u=Math[r](u/a),s.unshift(t,i,d,u),(e.event.dispatch||e.event.handle).apply(this,s)}var n,a,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"];if(e.event.fixHooks)for(var s=r.length;s;)e.event.fixHooks[r[--s]]=e.event.mouseHooks;e.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=o.length;e;)this.addEventListener(o[--e],t,!1);else this.onmousewheel=t},teardown:function(){if(this.removeEventListener)for(var e=o.length;e;)this.removeEventListener(o[--e],t,!1);else this.onmousewheel=null}},e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})});function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)}var _slice=Array.prototype.slice,_slicedToArray=function(){function e(e,t){var i=[],n=!0,r=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(n=(a=o.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(l){r=!0,s=l}finally{try{!n&&o["return"]&&o["return"]()}finally{if(r)throw s}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):e.parsley=t(e.jQuery)}(this,function(e){"use strict";function t(e,t){return e.parsleyAdaptedCallback||(e.parsleyAdaptedCallback=function(){var i=Array.prototype.slice.call(arguments,0);i.unshift(this),e.apply(t||T,i)}),e.parsleyAdaptedCallback}function i(e){return 0===e.lastIndexOf(D,0)?e.substr(D.length):e}function n(){var t=this,i=window||global;_extends(this,{isNativeEvent:function(e){return e.originalEvent&&e.originalEvent.isTrusted!==!1},fakeInputEvent:function(i){t.isNativeEvent(i)&&e(i.target).trigger("input")},misbehaves:function(i){t.isNativeEvent(i)&&(t.behavesOk(i),e(document).on("change.inputevent",i.data.selector,t.fakeInputEvent),t.fakeInputEvent(i))},behavesOk:function(i){t.isNativeEvent(i)&&e(document).off("input.inputevent",i.data.selector,t.behavesOk).off("change.inputevent",i.data.selector,t.misbehaves)},install:function(){if(!i.inputEventPatched){i.inputEventPatched="0.0.3";for(var n=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'],r=0;r<n.length;r++){var s=n[r];e(document).on("input.inputevent",s,{selector:s},t.behavesOk).on("change.inputevent",s,{selector:s},t.misbehaves)}}},uninstall:function(){delete i.inputEventPatched,e(document).off(".inputevent")}})}var r=1,s={},a={attr:function(e,t,i){var n,r,s,a=new RegExp("^"+t,"i");if("undefined"==typeof i)i={};else for(n in i)i.hasOwnProperty(n)&&delete i[n];if(!e)return i;for(s=e.attributes,n=s.length;n--;)r=s[n],r&&r.specified&&a.test(r.name)&&(i[this.camelize(r.name.slice(t.length))]=this.deserializeValue(r.value));return i},checkAttr:function(e,t,i){return e.hasAttribute(t+i)},setAttr:function(e,t,i,n){e.setAttribute(this.dasherize(t+i),String(n))},generateID:function(){return""+r++},deserializeValue:function(t){var i;try{return t?"true"==t||"false"!=t&&("null"==t?null:isNaN(i=Number(t))?/^[\[\{]/.test(t)?e.parseJSON(t):t:i):t}catch(n){return t}},camelize:function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},dasherize:function(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var e;window.console&&"function"==typeof window.console.warn&&(e=window.console).warn.apply(e,arguments)},warnOnce:function(e){s[e]||(s[e]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){s={}},trimString:function(e){return e.replace(/^\s+|\s+$/g,"")},parse:{date:function S(e){var t=e.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!t)return null;var i=t.map(function(e){return parseInt(e,10)}),n=_slicedToArray(i,4),r=(n[0],n[1]),s=n[2],a=n[3],S=new Date(r,s-1,a);return S.getFullYear()!==r||S.getMonth()+1!==s||S.getDate()!==a?null:S},string:function(e){return e},integer:function(e){return isNaN(e)?null:parseInt(e,10)},number:function(e){if(isNaN(e))throw null;return parseFloat(e)},"boolean":function(e){return!/^\s*false\s*$/i.test(e)},object:function(e){return a.deserializeValue(e)},regexp:function(e){var t="";return/^\/.*\/(?:[gimy]*)$/.test(e)?(t=e.replace(/.*\/([gimy]*)$/,"$1"),e=e.replace(new RegExp("^/(.*?)/"+t+"$"),"$1")):e="^"+e+"$",new RegExp(e,t)}},parseRequirement:function(e,t){var i=this.parse[e||"string"];if(!i)throw'Unknown requirement specification: "'+e+'"';var n=i(t);if(null===n)throw"Requirement is not a "+e+': "'+t+'"';return n},namespaceEvents:function(t,i){return t=this.trimString(t||"").split(/\s+/),t[0]?e.map(t,function(e){return e+"."+i}).join(" "):""},difference:function(t,i){var n=[];return e.each(t,function(e,t){i.indexOf(t)==-1&&n.push(t)}),n},all:function(t){return e.when.apply(e,_toConsumableArray(t).concat([42,42]))},objectCreate:Object.create||function(){var e=function(){};return function(t){if(arguments.length>1)throw Error("Second argument not supported");if("object"!=typeof t)throw TypeError("Argument must be an object");e.prototype=t;var i=new e;return e.prototype=null,i}}(),_SubmitSelector:'input[type="submit"], button:submit'},o={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(e){},errorsContainer:function(e){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},l=function(){this.__id__=a.generateID()};l.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var t=this,i=function(){var i=e.Deferred();return!0!==t.validationResult&&i.reject(),i.resolve().promise()};return[i,i]},actualizeOptions:function(){return a.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(e){this.domOptions=a.objectCreate(this.parent.options),this.options=a.objectCreate(this.domOptions);for(var t in e)e.hasOwnProperty(t)&&(this.options[t]=e[t]);this.actualizeOptions()},_listeners:null,on:function(e,t){this._listeners=this._listeners||{};var i=this._listeners[e]=this._listeners[e]||[];return i.push(t),this},subscribe:function(t,i){e.listenTo(this,t.toLowerCase(),i)},off:function(e,t){var i=this._listeners&&this._listeners[e];if(i)if(t)for(var n=i.length;n--;)i[n]===t&&i.splice(n,1);else delete this._listeners[e];return this},unsubscribe:function(t,i){e.unsubscribeTo(this,t.toLowerCase())},trigger:function(e,t,i){t=t||this;var n,r=this._listeners&&this._listeners[e];if(r)for(var s=r.length;s--;)if(n=r[s].call(t,t,i),n===!1)return n;return!this.parent||this.parent.trigger(e,t,i)},asyncIsValid:function(e,t){return a.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:e,force:t})},_findRelated:function(){return this.options.multiple?e(this.parent.element.querySelectorAll("["+this.options.namespace+'multiple="'+this.options.multiple+'"]')):this.$element}};var u=function(e,t){var i=e.match(/^\s*\[(.*)\]\s*$/);if(!i)throw'Requirement is not an array: "'+e+'"';var n=i[1].split(",").map(a.trimString);if(n.length!==t)throw"Requirement has "+n.length+" values when "+t+" are needed";return n},d=function(e,t,i){var n=null,r={};for(var s in e)if(s){var o=i(s);"string"==typeof o&&(o=a.parseRequirement(e[s],o)),r[s]=o}else n=a.parseRequirement(e[s],t);return[n,r]},h=function(t){e.extend(!0,this,t)};h.prototype={validate:function(e,t){if(this.fn)return arguments.length>3&&(t=[].slice.call(arguments,1,-1)),this.fn(e,t);if(Array.isArray(e)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}var i=arguments[arguments.length-1];if(this.validateDate&&i._isDateInput())return arguments[0]=a.parse.date(arguments[0]),null!==arguments[0]&&this.validateDate.apply(this,arguments);if(this.validateNumber)return!isNaN(e)&&(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments));if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"},parseRequirements:function(t,i){if("string"!=typeof t)return Array.isArray(t)?t:[t];var n=this.requirementType;if(Array.isArray(n)){for(var r=u(t,n.length),s=0;s<r.length;s++)r[s]=a.parseRequirement(n[s],r[s]);return r}return e.isPlainObject(n)?d(n,t,i):[a.parseRequirement(n,t)]},requirementType:"string",priority:2};var p=function(e,t){this.__class__="ValidatorRegistry",this.locale="en",this.init(e||{},t||{})},c={email:/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(e){return null!==a.parse.date(e)}},url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$","i")};c.range=c.number;var f=function(e){var t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},m=function(e,t){return t.map(a.parse[e])},g=function(e,t){return function(i){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return r.pop(),t.apply(void 0,[i].concat(_toConsumableArray(m(e,r))))}},v=function(e){return{validateDate:g("date",e),validateNumber:g("number",e),requirementType:e.length<=2?"string":["string","string"],priority:30}};p.prototype={init:function(e,t){this.catalog=t,this.validators=_extends({},this.validators);for(var i in e)this.addValidator(i,e[i].fn,e[i].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(e){if("undefined"==typeof this.catalog[e])throw new Error(e+" is not available in the catalog");return this.locale=e,this},addCatalog:function(e,t,i){return"object"==typeof t&&(this.catalog[e]=t),!0===i?this.setLocale(e):this},addMessage:function(e,t,i){return"undefined"==typeof this.catalog[e]&&(this.catalog[e]={}),this.catalog[e][t]=i,this},addMessages:function(e,t){for(var i in t)this.addMessage(e,i,t[i]);return this},addValidator:function(e,t,i){if(this.validators[e])a.warn('Validator "'+e+'" is already defined.');else if(o.hasOwnProperty(e))return void a.warn('"'+e+'" is a restricted keyword and is not a valid validator name.');return this._setValidator.apply(this,arguments)},updateValidator:function(e,t,i){return this.validators[e]?this._setValidator.apply(this,arguments):(a.warn('Validator "'+e+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(e){return this.validators[e]||a.warn('Validator "'+e+'" is not defined.'),delete this.validators[e],this},_setValidator:function(e,t,i){"object"!=typeof t&&(t={fn:t,priority:i}),t.validate||(t=new h(t)),this.validators[e]=t;for(var n in t.messages||{})this.addMessage(n,e,t.messages[n]);return this},getErrorMessage:function(e){var t;if("type"===e.name){var i=this.catalog[this.locale][e.name]||{};t=i[e.requirements]}else t=this.formatMessage(this.catalog[this.locale][e.name],e.requirements);return t||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(e,t){if("object"==typeof t){for(var i in t)e=this.formatMessage(e,t[i]);return e}return"string"==typeof e?e.replace(/%s/i,t):""},validators:{notblank:{validateString:function(e){return/\S/.test(e)},priority:2},required:{validateMultiple:function(e){return e.length>0},validateString:function(e){return/\S/.test(e)},priority:512},type:{validateString:function(e,t){var i=arguments.length<=2||void 0===arguments[2]?{}:arguments[2],n=i.step,r=void 0===n?"any":n,s=i.base,a=void 0===s?0:s,o=c[t];if(!o)throw new Error("validator type `"+t+"` is not supported");if(!o.test(e))return!1;if("number"===t&&!/^any$/i.test(r||"")){var l=Number(e),u=Math.max(f(r),f(a));if(f(l)>u)return!1;var d=function(e){return Math.round(e*Math.pow(10,u))};if((d(l)-d(a))%d(r)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(e,t){return t.test(e)},requirementType:"regexp",priority:64},minlength:{validateString:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxlength:{validateString:function(e,t){return e.length<=t},requirementType:"integer",priority:30},length:{validateString:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(e,t){return e.length>=t},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(e,t){return e.length<=t},requirementType:"integer",priority:30},check:{validateMultiple:function(e,t,i){return e.length>=t&&e.length<=i},requirementType:["integer","integer"],priority:30},min:v(function(e,t){return e>=t}),max:v(function(e,t){return e<=t}),range:v(function(e,t,i){return e>=t&&e<=i}),equalto:{validateString:function(t,i){var n=e(i);return n.length?t===n.val():t===i},priority:256}}};var y={},_=function k(e,t,i){for(var n=[],r=[],s=0;s<e.length;s++){for(var a=!1,o=0;o<t.length;o++)if(e[s].assert.name===t[o].assert.name){a=!0;break}a?r.push(e[s]):n.push(e[s])}return{kept:r,added:n,removed:i?[]:k(t,e,!0).added}};y.Form={_actualizeTriggers:function(){var e=this;this.$element.on("submit.Parsley",function(t){e.onSubmitValidate(t)}),this.$element.on("click.Parsley",a._SubmitSelector,function(t){e.onSubmitButton(t)}),!1!==this.options.uiEnabled&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,!0===this.validationResult||"none"===this.options.focus)return null;for(var e=0;e<this.fields.length;e++){var t=this.fields[e];if(!0!==t.validationResult&&t.validationResult.length>0&&"undefined"==typeof t.options.noFocus&&(this._focusedField=t.$element,"first"===this.options.focus))break}return null===this._focusedField?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},y.Field={_reflowUI:function(){if(this._buildUI(),this._ui){var e=_(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(e),this._actualizeTriggers(),!e.kept.length&&!e.added.length||this._failedOnce||(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(!0===this.validationResult)return[];for(var e=[],t=0;t<this.validationResult.length;t++)e.push(this.validationResult[t].errorMessage||this._getErrorMessage(this.validationResult[t].assert));return e},addError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.message,n=t.assert,r=t.updateClass,s=void 0===r||r;this._buildUI(),this._addError(e,{message:i,assert:n}),s&&this._errorClass()},updateError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.message,n=t.assert,r=t.updateClass,s=void 0===r||r;this._buildUI(),this._updateError(e,{message:i,assert:n}),s&&this._errorClass()},removeError:function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],i=t.updateClass,n=void 0===i||i;this._buildUI(),this._removeError(e),n&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&!0===this.validationResult?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(t){if("undefined"==typeof this.options.errorsMessagesDisabled){if("undefined"!=typeof this.options.errorMessage)return t.added.length||t.kept.length?(this._insertErrorWrapper(),0===this._ui.$errorsWrapper.find(".parsley-custom-error-message").length&&this._ui.$errorsWrapper.append(e(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorsWrapper.addClass("filled").find(".parsley-custom-error-message").html(this.options.errorMessage)):this._ui.$errorsWrapper.removeClass("filled").find(".parsley-custom-error-message").remove();for(var i=0;i<t.removed.length;i++)this._removeError(t.removed[i].assert.name);for(i=0;i<t.added.length;i++)this._addError(t.added[i].assert.name,{message:t.added[i].errorMessage,assert:t.added[i].assert});for(i=0;i<t.kept.length;i++)this._updateError(t.kept[i].assert.name,{message:t.kept[i].errorMessage,assert:t.kept[i].assert})}},_addError:function(t,i){var n=i.message,r=i.assert;this._insertErrorWrapper(),this._ui.$errorsWrapper.addClass("filled").append(e(this.options.errorTemplate).addClass("parsley-"+t).html(n||this._getErrorMessage(r)))},_updateError:function(e,t){var i=t.message,n=t.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+e).html(i||this._getErrorMessage(n))},_removeError:function(e){this._ui.$errorsWrapper.removeClass("filled").find(".parsley-"+e).remove()},_getErrorMessage:function(e){var t=e.name+"Message";return"undefined"!=typeof this.options[t]?window.Parsley.formatMessage(this.options[t],e.requirements):window.Parsley.getErrorMessage(e)},_buildUI:function(){if(!this._ui&&!1!==this.options.uiEnabled){var t={};this.element.setAttribute(this.options.namespace+"id",this.__id__),t.$errorClassHandler=this._manageClassHandler(),t.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),t.$errorsWrapper=e(this.options.errorsWrapper).attr("id",t.errorsWrapperId),t.lastValidationResult=[],t.validationInformationVisible=!1,this._ui=t}},_manageClassHandler:function(){if("string"==typeof this.options.classHandler)return 0===e(this.options.classHandler).length&&ParsleyUtils.warn("No elements found that match the selector `"+this.options.classHandler+"` set in options.classHandler or data-parsley-class-handler"),e(this.options.classHandler);if("function"==typeof this.options.classHandler)var t=this.options.classHandler.call(this,this);return"undefined"!=typeof t&&t.length?t:this._inputHolder()},_inputHolder:function(){return this.options.multiple&&"SELECT"!==this.element.nodeName?this.$element.parent():this.$element},_insertErrorWrapper:function(){var t;if(0!==this._ui.$errorsWrapper.parent().length)return this._ui.$errorsWrapper.parent();if("string"==typeof this.options.errorsContainer){if(e(this.options.errorsContainer).length)return e(this.options.errorsContainer).append(this._ui.$errorsWrapper);a.warn("The errors container `"+this.options.errorsContainer+"` does not exist in DOM")}else"function"==typeof this.options.errorsContainer&&(t=this.options.errorsContainer.call(this,this));return"undefined"!=typeof t&&t.length?t.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var e,t=this,i=this._findRelated();i.off(".Parsley"),this._failedOnce?i.on(a.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){t._validateIfNeeded()}):(e=a.namespaceEvents(this.options.trigger,"Parsley"))&&i.on(e,function(e){t._validateIfNeeded(e)})},_validateIfNeeded:function(e){var t=this;e&&/key|input/.test(e.type)&&(!this._ui||!this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return t.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),"undefined"!=typeof this._ui&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),"undefined"!=typeof this._ui&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var w=function(t,i,n){this.__class__="Form",this.element=t,this.$element=e(t),this.domOptions=i,this.options=n,this.parent=window.Parsley,this.fields=[],this.validationResult=null},b={pending:null,resolved:!0,rejected:!1};w.prototype={onSubmitValidate:function(e){var t=this;if(!0!==e.parsley){var i=this._submitSource||this.$element.find(a._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!i||null===i.getAttribute("formnovalidate")){window.Parsley._remoteCache={};var n=this.whenValidate({event:e});"resolved"===n.state()&&!1!==this._trigger("submit")||(e.stopImmediatePropagation(),e.preventDefault(),"pending"===n.state()&&n.done(function(){t._submit(i)}))}}},onSubmitButton:function(e){this._submitSource=e.currentTarget},_submit:function(t){if(!1!==this._trigger("submit")){if(t){var i=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);0===i.length&&(i=e('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),i.attr({name:t.getAttribute("name"),value:t.getAttribute("value")})}this.$element.trigger(_extends(e.Event("submit"),{parsley:!0}))}},validate:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var i=_slice.call(arguments),n=i[0],r=i[1],s=i[2];t={group:n,force:r,event:s}}return b[this.whenValidate(t).state()]},whenValidate:function(){var t,i=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=n.group,s=n.force,o=n.event;this.submitEvent=o,o&&(this.submitEvent=_extends({},o,{preventDefault:function(){a.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),i.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var l=this._withoutReactualizingFormOptions(function(){return e.map(i.fields,function(e){return e.whenValidate({force:s,group:r})})});return(t=a.all(l).done(function(){i._trigger("success")}).fail(function(){i.validationResult=!1,i.focus(),i._trigger("error")}).always(function(){i._trigger("validated")})).pipe.apply(t,_toConsumableArray(this._pipeAccordingToValidationResult()))},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var i=_slice.call(arguments),n=i[0],r=i[1];t={group:n,force:r}}return b[this.whenValid(t).state()]},whenValid:function(){var t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.group,r=i.force;this._refreshFields();var s=this._withoutReactualizingFormOptions(function(){return e.map(t.fields,function(e){return e.whenValid({group:n,force:r})})});return a.all(s)},reset:function(){for(var e=0;e<this.fields.length;e++)this.fields[e].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var e=0;e<this.fields.length;e++)this.fields[e].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var t=this,i=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){t.$element.find(t.options.inputs).not(t.options.excluded).each(function(e,i){var n=new window.Parsley.Factory(i,{},t);if(("Field"===n.__class__||"FieldMultiple"===n.__class__)&&!0!==n.options.excluded){var r=n.__class__+"-"+n.__id__;"undefined"==typeof t.fieldsMappedById[r]&&(t.fieldsMappedById[r]=n,t.fields.push(n))}}),e.each(a.difference(i,t.fields),function(e,t){t.reset()})}),this},_withoutReactualizingFormOptions:function(e){var t=this.actualizeOptions;this.actualizeOptions=function(){return this};var i=e();return this.actualizeOptions=t,i},_trigger:function(e){return this.trigger("form:"+e)}};var F=function(e,t,i,n,r){var s=window.Parsley._validatorRegistry.validators[t],a=new h(s);n=n||e.options[t+"Priority"]||a.priority,r=!0===r,_extends(this,{validator:a,name:t,requirements:i,priority:n,isDomConstraint:r}),this._parseRequirements(e.options)},C=function(e){var t=e[0].toUpperCase();return t+e.slice(1)};F.prototype={validate:function(e,t){var i;return(i=this.validator).validate.apply(i,[e].concat(_toConsumableArray(this.requirementList),[t]))},_parseRequirements:function(e){var t=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(i){return e[t.name+C(i)]})}};var E=function(t,i,n,r){this.__class__="Field",this.element=t,this.$element=e(t),"undefined"!=typeof r&&(this.parent=r),this.options=n,this.domOptions=i,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},A={pending:null,resolved:!0,rejected:!1};E.prototype={validate:function(t){arguments.length>=1&&!e.isPlainObject(t)&&(a.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),t={options:t});var i=this.whenValidate(t);if(!i)return!0;switch(i.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var e,t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,r=i.group;if(this.refreshConstraints(),!r||this._isInGroup(r))return this.value=this.getValue(),this._trigger("validate"),(e=this.whenValid({force:n,value:this.value,_refreshed:!0}).always(function(){t._reflowUI()}).done(function(){t._trigger("success")}).fail(function(){t._trigger("error")}).always(function(){t._trigger("validated")})).pipe.apply(e,_toConsumableArray(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return 0!==this.constraints.length},needsValidation:function(e){return"undefined"==typeof e&&(e=this.getValue()),!(!e.length&&!this._isRequired()&&"undefined"==typeof this.options.validateIfEmpty)},_isInGroup:function(t){return Array.isArray(this.options.group)?-1!==e.inArray(t,this.options.group):this.options.group===t},isValid:function(t){if(arguments.length>=1&&!e.isPlainObject(t)){a.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var i=_slice.call(arguments),n=i[0],r=i[1];t={force:n,value:r}}var s=this.whenValid(t);return!s||A[s.state()]},whenValid:function(){var t=this,i=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],n=i.force,r=void 0!==n&&n,s=i.value,o=i.group,l=i._refreshed;if(l||this.refreshConstraints(),!o||this._isInGroup(o)){if(this.validationResult=!0,!this.hasConstraints())return e.when();if("undefined"!=typeof s&&null!==s||(s=this.getValue()),!this.needsValidation(s)&&!0!==r)return e.when();var u=this._getGroupedConstraints(),d=[];return e.each(u,function(i,n){var r=a.all(e.map(n,function(e){return t._validateConstraint(s,e)}));if(d.push(r),"rejected"===r.state())return!1}),a.all(d)}},_validateConstraint:function(t,i){var n=this,r=i.validate(t,this);return!1===r&&(r=e.Deferred().reject()),a.all([r]).fail(function(e){n.validationResult instanceof Array||(n.validationResult=[]),n.validationResult.push({assert:i,errorMessage:"string"==typeof e&&e})})},getValue:function(){var e;return e="function"==typeof this.options.value?this.options.value(this):"undefined"!=typeof this.options.value?this.options.value:this.$element.val(),"undefined"==typeof e||null===e?"":this._handleWhitespace(e)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},addConstraint:function(e,t,i,n){if(window.Parsley._validatorRegistry.validators[e]){var r=new F(this,e,t,i,n);"undefined"!==this.constraintsByName[r.name]&&this.removeConstraint(r.name),this.constraints.push(r),this.constraintsByName[r.name]=r}return this},removeConstraint:function(e){for(var t=0;t<this.constraints.length;t++)if(e===this.constraints[t].name){this.constraints.splice(t,1);break}return delete this.constraintsByName[e],this},updateConstraint:function(e,t,i){return this.removeConstraint(e).addConstraint(e,t,i)},_bindConstraints:function(){for(var e=[],t={},i=0;i<this.constraints.length;i++)!1===this.constraints[i].isDomConstraint&&(e.push(this.constraints[i]),t[this.constraints[i].name]=this.constraints[i]);this.constraints=e,this.constraintsByName=t;for(var n in this.options)this.addConstraint(n,this.options[n],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){null!==this.element.getAttribute("required")&&this.addConstraint("required",!0,void 0,!0),null!==this.element.getAttribute("pattern")&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var e=this.element.getAttribute("min"),t=this.element.getAttribute("max");null!==e&&null!==t?this.addConstraint("range",[e,t],void 0,!0):null!==e?this.addConstraint("min",e,void 0,!0):null!==t&&this.addConstraint("max",t,void 0,!0),null!==this.element.getAttribute("minlength")&&null!==this.element.getAttribute("maxlength")?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):null!==this.element.getAttribute("minlength")?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):null!==this.element.getAttribute("maxlength")&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var i=this.element.type;return"number"===i?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base:e||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(i)?this.addConstraint("type",i,void 0,!0):this},_isRequired:function(){return"undefined"!=typeof this.constraintsByName.required&&!1!==this.constraintsByName.required.requirements},_trigger:function(e){return this.trigger("field:"+e)},_handleWhitespace:function(e){return!0===this.options.trimValue&&a.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),"squish"===this.options.whitespace&&(e=e.replace(/\s{2,}/g," ")),"trim"!==this.options.whitespace&&"squish"!==this.options.whitespace&&!0!==this.options.trimValue||(e=a.trimString(e)),e},_isDateInput:function(){var e=this.constraintsByName.type;return e&&"date"===e.requirements},_getGroupedConstraints:function(){if(!1===this.options.priorityEnabled)return[this.constraints];for(var e=[],t={},i=0;i<this.constraints.length;i++){var n=this.constraints[i].priority;t[n]||e.push(t[n]=[]),t[n].push(this.constraints[i])}return e.sort(function(e,t){return t[0].priority-e[0].priority}),e}};var x=E,$=function(){this.__class__="FieldMultiple"};$.prototype={addElement:function(e){return this.$elements.push(e),this},refreshConstraints:function(){var t;if(this.constraints=[],"SELECT"===this.element.nodeName)return this.actualizeOptions()._bindConstraints(),this;for(var i=0;i<this.$elements.length;i++)if(e("html").has(this.$elements[i]).length){t=this.$elements[i].data("FieldMultiple").refreshConstraints().constraints;for(var n=0;n<t.length;n++)this.addConstraint(t[n].name,t[n].requirements,t[n].priority,t[n].isDomConstraint)}else this.$elements.splice(i,1);return this},getValue:function(){if("function"==typeof this.options.value)return this.options.value(this);if("undefined"!=typeof this.options.value)return this.options.value;if("INPUT"===this.element.nodeName){if("radio"===this.element.type)return this._findRelated().filter(":checked").val()||"";if("checkbox"===this.element.type){var t=[];return this._findRelated().filter(":checked").each(function(){t.push(e(this).val())}),t}}return"SELECT"===this.element.nodeName&&null===this.$element.val()?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var P=function(t,i,n){this.element=t,this.$element=e(t);var r=this.$element.data("Parsley");if(r)return"undefined"!=typeof n&&r.parent===window.Parsley&&(r.parent=n,r._resetOptions(r.options)),"object"==typeof i&&_extends(r.options,i),r;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if("undefined"!=typeof n&&"Form"!==n.__class__)throw new Error("Parent instance must be a Form instance");return this.parent=n||window.Parsley,this.init(i)};P.prototype={init:function(e){return this.__class__="Parsley",this.__version__="2.7.2",this.__id__=a.generateID(),this._resetOptions(e),"FORM"===this.element.nodeName||a.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){return"radio"===this.element.type||"checkbox"===this.element.type||"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple")},handleMultiple:function(){var t,i,n=this;if(this.options.multiple=this.options.multiple||(t=this.element.getAttribute("name"))||this.element.getAttribute("id"),"SELECT"===this.element.nodeName&&null!==this.element.getAttribute("multiple"))return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return a.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),t&&e('input[name="'+t+'"]').each(function(e,t){"radio"!==t.type&&"checkbox"!==t.type||t.setAttribute(n.options.namespace+"multiple",n.options.multiple)});for(var r=this._findRelated(),s=0;s<r.length;s++)if(i=e(r.get(s)).data("Parsley"),"undefined"!=typeof i){this.$element.data("FieldMultiple")||i.addElement(this.$element);break}return this.bind("parsleyField",!0),i||this.bind("parsleyFieldMultiple")},bind:function(t,i){var n;switch(t){case"parsleyForm":n=e.extend(new w(this.element,this.domOptions,this.options),new l,window.ParsleyExtend)._bindFields();break;case"parsleyField":n=e.extend(new x(this.element,this.domOptions,this.options,this.parent),new l,window.ParsleyExtend);break;case"parsleyFieldMultiple":n=e.extend(new x(this.element,this.domOptions,this.options,this.parent),new $,new l,window.ParsleyExtend)._init();break;default:throw new Error(t+"is not a supported Parsley type")}return this.options.multiple&&a.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),"undefined"!=typeof i?(this.$element.data("FieldMultiple",n),n):(this.$element.data("Parsley",n),n._actualizeTriggers(),n._trigger("init"),n)}};var V=e.fn.jquery.split(".");if(parseInt(V[0])<=1&&parseInt(V[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";V.forEach||a.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var O=_extends(new l,{element:document,$element:e(document),actualizeOptions:null,_resetOptions:null,Factory:P,version:"2.7.2"});_extends(x.prototype,y.Field,l.prototype),_extends(w.prototype,y.Form,l.prototype),_extends(P.prototype,l.prototype),e.fn.parsley=e.fn.psly=function(t){if(this.length>1){var i=[];return this.each(function(){i.push(e(this).parsley(t))}),i}return e(this).length?new P(this[0],t):void a.warn("You must bind Parsley on an existing element.")},"undefined"==typeof window.ParsleyExtend&&(window.ParsleyExtend={}),O.options=_extends(a.objectCreate(o),window.ParsleyConfig),window.ParsleyConfig=O.options,window.Parsley=window.psly=O,O.Utils=a,window.ParsleyUtils={},e.each(a,function(e,t){"function"==typeof t&&(window.ParsleyUtils[e]=function(){return a.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),a[e].apply(a,arguments)})});var M=window.Parsley._validatorRegistry=new p(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},e.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator".split(" "),function(e,t){window.Parsley[t]=function(){return M[t].apply(M,arguments)},window.ParsleyValidator[t]=function(){var e;return a.warnOnce("Accessing the method '"+t+"' through Validator is deprecated. Simply call 'window.Parsley."+t+"(...)'"),(e=window.Parsley)[t].apply(e,arguments)}}),window.Parsley.UI=y,window.ParsleyUI={removeError:function(e,t,i){var n=!0!==i;return a.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e.removeError(t,{updateClass:n})},getErrorsMessages:function(e){return a.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),e.getErrorsMessages()}},e.each("addError updateError".split(" "),function(e,t){window.ParsleyUI[t]=function(e,i,n,r,s){var o=!0!==s;return a.warnOnce("Accessing UI is deprecated. Call '"+t+"' on the instance directly. Please comment in issue 1073 as to your need to call this method."),e[t](i,{message:n,assert:r,updateClass:o})}}),!1!==window.ParsleyConfig.autoBind&&e(function(){e("[data-parsley-validate]").length&&e("[data-parsley-validate]").parsley()});var T=e({}),R=function(){a.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")},D="parsley:";e.listen=function(e,n){var r;if(R(),"object"==typeof arguments[1]&&"function"==typeof arguments[2]&&(r=arguments[1],n=arguments[2]),"function"!=typeof n)throw new Error("Wrong parameters");window.Parsley.on(i(e),t(n,r))},e.listenTo=function(e,n,r){if(R(),!(e instanceof x||e instanceof w))throw new Error("Must give Parsley instance");if("string"!=typeof n||"function"!=typeof r)throw new Error("Wrong parameters");e.on(i(n),t(r))},e.unsubscribe=function(e,t){if(R(),"string"!=typeof e||"function"!=typeof t)throw new Error("Wrong arguments");window.Parsley.off(i(e),t.parsleyAdaptedCallback)},e.unsubscribeTo=function(e,t){if(R(),!(e instanceof x||e instanceof w))throw new Error("Must give Parsley instance");e.off(i(t))},e.unsubscribeAll=function(t){R(),window.Parsley.off(i(t)),e("form,input,textarea,select").each(function(){var n=e(this).data("Parsley");n&&n.off(i(t))})},e.emit=function(e,t){var n;R();var r=t instanceof x||t instanceof w,s=Array.prototype.slice.call(arguments,r?2:1);s.unshift(i(e)),r||(t=window.Parsley),(n=t).trigger.apply(n,_toConsumableArray(s))};e.extend(!0,O,{asyncValidators:{"default":{fn:function(e){return e.status>=200&&e.status<300},url:!1},reverse:{fn:function(e){return e.status<200||e.status>=300},url:!1}},addAsyncValidator:function(e,t,i,n){return O.asyncValidators[e]={fn:t,url:i||!1,options:n||{}},this}}),O.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(t,i,n,r){var s,a,o={},l=n.validator||(!0===n.reverse?"reverse":"default");if("undefined"==typeof O.asyncValidators[l])throw new Error("Calling an undefined async validator: `"+l+"`");i=O.asyncValidators[l].url||i,i.indexOf("{value}")>-1?i=i.replace("{value}",encodeURIComponent(t)):o[r.element.getAttribute("name")||r.element.getAttribute("id")]=t;var u=e.extend(!0,n.options||{},O.asyncValidators[l].options);s=e.extend(!0,{},{url:i,data:o,type:"GET"},u),r.trigger("field:ajaxoptions",r,s),a=e.param(s),"undefined"==typeof O._remoteCache&&(O._remoteCache={});var d=O._remoteCache[a]=O._remoteCache[a]||e.ajax(s),h=function(){var t=O.asyncValidators[l].fn.call(r,d,i,n);return t||(t=e.Deferred().reject()),e.when(t)};return d.then(h,h)},priority:-1}),O.on("form:submit",function(){O._remoteCache={}}),l.prototype.addAsyncValidator=function(){return a.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),O.addAsyncValidator.apply(O,arguments)},O.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same."}),O.setLocale("en");var I=new n;I.install();var q=O;return q});jQuery(document).ready(function(e){function a(e,a){l(e,a),e.find(a.container).first().show()}function n(a,n){if(n.tabs){var t=e("<div />",{"class":n.tabMenuClassName}).insertBefore(a.children(n.container).filter(":first"));a.children(n.container).each(function(i,r){var l=e("<button/>").html(e(this).children(n.header).html()).addClass(0==i?n.tabMenuItemActiveClassName:"").addClass("item"+i).addClass("btn btn-default").prop("type","button").on("click keypress",{container:a.children(n.container),fieldset:e(r)},function(){var t=e(this),i=t.parent().children().index(t);s(a,n,t,i)});n.tabIndex&&l.prop("tabindex",i),t.append(l)})}}function t(a,n){n.navigation&&a.children(n.container).each(function(t){var i=e("<div />").addClass("powermail_fieldwrap").addClass("powermail_tab_navigation").appendTo(e(this));t>0&&i.append(c(a,n)),t<a.children(n.container).length-1&&i.append(o(a,n))})}function i(a,n){e.fn.parsley&&"data-parsley-validate"===a.data("parsley-validate")&&a.parsley().subscribe("parsley:field:validated",function(){v(a,n),C(a,n)})}function r(a,n){n.openTabOnError&&e.fn.parsley&&e.listen("parsley:field:error",function(){setTimeout(function(){a.find("."+n.tabMenuClassName+" > ."+n.tabMenuItemErrorClassName+":first").click()},50)})}function s(a,n,t,i){$activeTab=b(a,n),$activeTab.removeClass(n.tabMenuItemActiveClassName),t.addClass(n.tabMenuItemActiveClassName),l(a,n),e(".powermail_fieldset",a).slice(i,i+1).show()}function l(e,a){e.children(a.container).hide()}function c(a,n){return e("<a />").prop("href","#").addClass("btn btn-warning").html("<").click(function(e){e.preventDefault(),u(a,n)})}function o(a,n){return e("<a />").prop("href","#").addClass("btn btn-primary pull-right").html(">").click(function(e){e.preventDefault(),d(a,n)})}function d(e,a){var n=m(e,a);$activeTab=b(e,a),$activeTab.removeClass(a.tabMenuItemActiveClassName).next().addClass(a.tabMenuItemActiveClassName),f(e,a,n+1)}function u(e,a){var n=m(e,a);$activeTab=b(e,a),$activeTab.removeClass(a.tabMenuItemActiveClassName).prev().addClass(a.tabMenuItemActiveClassName),f(e,a,n-1)}function f(e,a,n){l(e,a),e.find(".powermail_fieldset").slice(n,n+1).show()}function m(e,a){var n=p(e,a),t=n.index(b(e,a));return parseInt(t)}function p(e,a){return e.find("."+a.tabMenuClassName).children()}function b(e,a){var n=p(e,a);return n.filter("."+a.tabMenuItemActiveClassName)}function v(e,a){var n=p(e,a);n.removeClass(a.tabMenuItemErrorClassName)}function C(a,n){a.parsley().isValid()||a.find(".parsley-error").each(function(){var t=a.find(".powermail_fieldset").index(e(this).closest(".powermail_fieldset")),i=p(a,n),r=i.slice(t,t+1);r.addClass(n.tabMenuItemErrorClassName)})}e.fn.powermailTabs=function(e){"use strict";var s=jQuery(this);e=jQuery.extend({container:"fieldset",header:"legend",tabs:!0,navigation:!0,openTabOnError:!0,tabIndex:!0,tabMenuClassName:"btn-group",tabMenuItemActiveClassName:"btn-primary",tabMenuItemErrorClassName:"btn-danger"},e),a(s,e),n(s,e),t(s,e),i(s,e),r(s,e)}});function PowermailForm(e){"use strict";this.initialize=function(){t(),a(),i(),r(),o(),n(),f(),l()};var t=function(){e.fn.powermailTabs&&e(".powermail_morestep").each(function(){e(this).powermailTabs()})},a=function(){e("form[data-powermail-ajax]").length&&p()},i=function(){if(e('*[data-powermail-location="prefill"]').length&&navigator.geolocation){e(this);navigator.geolocation.getCurrentPosition(function(t){var a=t.coords.latitude,i=t.coords.longitude,r=C()+"/index.php?eID=powermailEidGetLocation";jQuery.ajax({url:r,data:"lat="+a+"&lng="+i,cache:!1,success:function(t){t&&e('*[data-powermail-location="prefill"]').val(t)}})})}},r=function(){e.fn.datetimepicker&&e(".powermail_date").each(function(){var t=e(this);if("date"===t.prop("type")||"datetime-local"===t.prop("type")||"time"===t.prop("type")){if(!t.data("datepicker-force")){if(e(this).data("date-value")){var a=g(e(this).data("date-value"),e(this).data("datepicker-format"),t.prop("type"));null!==a&&e(this).val(a)}return}t.prop("type","text"),t.val(e(this).data("date-value"))}var i=!0,r=!0;"date"===t.data("datepicker-settings")?r=!1:"time"===t.data("datepicker-settings")&&(i=!1),t.datetimepicker({format:t.data("datepicker-format"),timepicker:r,datepicker:i,lang:"en",i18n:{en:{months:t.data("datepicker-months").split(","),dayOfWeek:t.data("datepicker-days").split(",")}}})})},o=function(){e(".powermail_all_type_password.powermail_all_value").html("********")},n=function(){e.fn.parsley&&e(".powermail_reset").on("click","",function(){e('form[data-parsley-validate="data-parsley-validate"]').parsley().reset()})},l=function(){window.Parsley&&(x(),b())},p=function(){var t,a=!1;e(document).on("submit","form[data-powermail-ajax]",function(i){var r=e(this),o=r.closest(".tx-powermail");r.data("powermail-ajax-uri")&&(t=r.data("powermail-ajax-uri"));var n=r.data("powermail-form");a||(e.ajax({type:"POST",url:r.prop("action"),data:new FormData(r.get(0)),contentType:!1,processData:!1,beforeSend:function(){s(r)},complete:function(){d(r),f(),c(o)},success:function(i){var o=e('*[data-powermail-form="'+n+'"]:first',i);o.length?(e('*[data-powermail-form="'+n+'"]:first').closest(".tx-powermail").html(o),e.fn.powermailTabs&&e(".powermail_morestep").powermailTabs(),e.fn.parsley&&e('form[data-parsley-validate="data-parsley-validate"]').parsley(),w()):(t?D(t):r.submit(),a=!0)}}),i.preventDefault())})},s=function(t){d(t),e(".powermail_submit",t).length?e(".powermail_submit",t).parent().append(y()):t.closest(".tx-powermail").append(y())},d=function(e){e.closest(".tx-powermail").find(".powermail_progressbar").remove()},c=function(t){var a=e.Event("submitted.powermail.form");t.trigger(a)},f=function(){e(".powermail_fieldwrap_file").find(".deleteAllFiles").each(function(){u(e(this).closest(".powermail_fieldwrap_file").find('input[type="file"]'))}),e(".deleteAllFiles").click(function(){m(e(this).closest(".powermail_fieldwrap_file").find('input[type="hidden"]')),e(this).closest("ul").fadeOut(function(){e(this).remove()})})},u=function(e){e.prop("disabled","disabled").addClass("hide").prop("type","hidden")},m=function(e){e.prop("disabled",!1).removeClass("hide").prop("type","file")},w=function(){e("img.powermail_captchaimage").each(function(){var t=h(e(this).prop("src"));e(this).prop("src",t+"?hash="+v(5))})},h=function(e){var t=e.split("?");return t[0]},v=function(e){for(var t="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=0;i<e;i++)t+=a.charAt(Math.floor(Math.random()*a.length));return t},g=function(e,t,a){var i=Date.parseDate(e,t);if(null===i)return null;var r=new Date(i),o=r.getFullYear()+"-";o+=("0"+(r.getMonth()+1)).slice(-2)+"-",o+=("0"+r.getDate()).slice(-2);var n=("0"+r.getHours()).slice(-2)+":"+("0"+r.getMinutes()).slice(-2),l=o+"T"+n;return"date"===a?o:"datetime-local"===a?l:"time"===a?n:null},y=function(){return e("<div />").addClass("powermail_progressbar").html(e("<div />").addClass("powermail_progress").html(e("<div />").addClass("powermail_progress_inner")))},_=function(e){for(var t=e.get(0),a=0,i=0;i<t.files.length;i++){var r=t.files[i];r.size>a&&(a=r.size)}return parseInt(a)},x=function(){window.Parsley.addValidator("powermailfilesize",function(t,a){if(a.indexOf(",")!==-1){var i=a.split(","),r=parseInt(i[0]),o=e('*[name="tx_powermail_pi1[field]['+i[1]+'][]"]');if(o.length&&_(o)>r)return!1}return!0},32).addMessage("en","powermailfilesize","Error")},b=function(){window.Parsley.addValidator("powermailfileextensions",function(t,a){var i=e('*[name="tx_powermail_pi1[field]['+a+'][]"]');return!i.length||k(j(t),i.prop("accept"))},32).addMessage("en","powermailfileextensions","Error")},k=function(e,t){return t.indexOf("."+e)!==-1},j=function(e){return e.split(".").pop().toLowerCase()},D=function(e){e.indexOf("http")!==-1?window.location=e:window.location.pathname=e},C=function(){var t;return t=e("base").length>0?jQuery("base").prop("href"):"https:"!=window.location.protocol?"http://"+window.location.hostname:"https://"+window.location.hostname}}jQuery(document).ready(function(e){"use strict";var t=new window.PowermailForm(e);t.initialize()});$(document).ready((function(){$("#femanager-field-usergroup").on("change blur",(function(e){let r=parseInt($(e.target).val())||0,a=$("#wrapper-femanager-field-company, #wrapper-femanager-field-vatcode");-1===$.inArray(r,[0,14,21])?(a.find("input").attr("required",""),a.hasClass("show")||a.collapse("show")):(a.find("input").removeAttr("required"),a.hasClass("show")&&a.collapse("hide"))})).trigger("change");const e=$("#femanager-field-password"),r=$("#wrapper-femanager-field-password_repeat");e.on("keyup blur",(function(e){($(e.target).val()||"").length>0?r.hasClass("show")||r.collapse("show").find("input").attr("required",""):r.hasClass("show")&&r.collapse("hide").find("select").removeAttr("required")}));const a=$("#femanager-field-state");a.find("option").length>1?a.attr("required","").closest(".form-group").show():a.removeAttr("required").closest(".form-group").hide()}));$(document).ready(function(){const querystring=Math.floor(Date.now()/(1000*60))
$('a[href$=".pdf"]').each(function(index,element){const href=$(element).prop('href')+'?'+querystring;$(element).prop('href',href)})})