
(function($){"use strict";UNCODE.init=function(){var wfl_check=!1,wfl_request,waypoint_request;UNCODE.preventDoubleTransition();UNCODE.betterResize();UNCODE.utils();UNCODE.magnetic();if(typeof UNCODE.rowParallax!=='undefined'){UNCODE.rowParallax()}
if(typeof UNCODE.changeSkinOnScroll!=='undefined'){UNCODE.changeSkinOnScroll()}
if(typeof UNCODE.share!=='undefined'){UNCODE.share()}
if(typeof UNCODE.tooltip!=='undefined'){UNCODE.tooltip()}
if(typeof UNCODE.counters!=='undefined'){UNCODE.counters()}
if(typeof UNCODE.countdowns!=='undefined'){UNCODE.countdowns()}
if(typeof UNCODE.tabs!=='undefined'){UNCODE.tabs()}
if(typeof UNCODE.collapse!=='undefined'){UNCODE.collapse()}
if(typeof UNCODE.bigText!=='undefined'){UNCODE.bigText()}
UNCODE.menuSystem();if(typeof UNCODE.bgChanger!=='undefined'){UNCODE.bgChanger()}
if(typeof UNCODE.magicCursor!=='undefined'){UNCODE.magicCursor()}
if(typeof UNCODE.magneticCursor!=='undefined'){UNCODE.magneticCursor()}
if(typeof UNCODE.dropImage!=='undefined'){UNCODE.dropImage()}
if(typeof UNCODE.postTable!=='undefined'){UNCODE.postTable()}
if(typeof UNCODE.rotatingTxt!=='undefined'){UNCODE.rotatingTxt()}
if(typeof UNCODE.okvideo!=='undefined'){UNCODE.okvideo();window.addEventListener("uncode-more-items-loaded",function(){UNCODE.okvideo()})}
if(typeof UNCODE.backgroundSelfVideos!=='undefined'){UNCODE.backgroundSelfVideos()}
UNCODE.tapHover();if(typeof UNCODE.isotopeLayout!=='undefined'){UNCODE.isotopeLayout()}
if(typeof UNCODE.justifiedGallery!=='undefined'){UNCODE.justifiedGallery()}
if(typeof UNCODE.cssGrid!=='undefined'){UNCODE.cssGrid()}
if(typeof UNCODE.linearGrid!=='undefined'){UNCODE.linearGrid()}
if(typeof UNCODE.lightbox!=='undefined'&&!SiteParameters.lbox_enhanced){UNCODE.lightbox()}
if(typeof UNCODE.lightgallery!=='undefined'&&SiteParameters.lbox_enhanced){$(window).on('load more-items-loaded',function(){UNCODE.lightgallery()})}
if(typeof UNCODE.carousel!=='undefined'){UNCODE.carousel($('body'))}
if(typeof UNCODE.lettering!=='undefined'){UNCODE.lettering()}
UNCODE.animations();if(typeof UNCODE.stickyElements!=='undefined'&&!SiteParameters.is_frontend_editor){UNCODE.stickyElements()}
if(typeof UNCODE.twentytwenty!=='undefined'){UNCODE.twentytwenty()}
UNCODE.disableHoverScroll();UNCODE.printScreen();if(typeof UNCODE.particles!=='undefined'){UNCODE.particles()}
if(typeof UNCODE.filters!=='undefined'){UNCODE.filters()}
if(typeof UNCODE.ajax_filters!=='undefined'){UNCODE.ajax_filters()}
if(typeof UNCODE.widgets!=='undefined'){UNCODE.widgets()}
if(typeof UNCODE.unmodal!=='undefined'){UNCODE.unmodal()}
if(typeof UNCODE.checkScrollForTabs!=='undefined'){if(!UNCODE.isFullPage){UNCODE.checkScrollForTabs()}}
if(typeof UNCODE.onePage!=='undefined'){UNCODE.onePage(UNCODE.isMobile)}
if(typeof UNCODE.fullPage!=='undefined'){$(document).ready(function(){UNCODE.fullPage()})}
if(typeof UNCODE.skewIt!=='undefined'){UNCODE.skewIt()}
if(typeof UNCODE.rotateIt!=='undefined'){UNCODE.rotateIt()}
if(typeof UNCODE.textMarquee!=='undefined'){UNCODE.textMarquee()}
if(typeof UNCODE.stickyScroll!=='undefined'){UNCODE.stickyScroll()}
if(typeof UNCODE.stickyTrigger!=='undefined'){UNCODE.stickyTrigger()}
if(typeof UNCODE.verticalText!=='undefined'){UNCODE.verticalText()}
if(typeof UNCODE.videoThumbs!=='undefined'){UNCODE.videoThumbs()}
if(typeof UNCODE.revslider!=='undefined'){UNCODE.revslider()}
if(typeof UNCODE.layerslider!=='undefined'){UNCODE.layerslider()}
if(typeof UNCODE.lottie!=='undefined'){UNCODE.lottie()}
if(typeof UNCODE.inlineImgs!=='undefined'){UNCODE.inlineImgs()}
if(typeof UNCODE.animatedBgGradient!=='undefined'){UNCODE.animatedBgGradient()}
if(typeof UNCODE.readMoreCol!=='undefined'){UNCODE.readMoreCol()}
if(typeof UNCODE.multibg!=='undefined'){UNCODE.multibg()}
if(typeof UNCODE.flexEqual!=='undefined'){UNCODE.flexEqual()}
$(window).on('load',function(){clearRequestTimeout(waypoint_request);waypoint_request=requestTimeout(function(){Waypoint.refreshAll()},1000)});$(window).one('load',function(){if(typeof UNCODE.parallax!=='undefined'){UNCODE.parallax()}})}
if(!SiteParameters.is_frontend_editor){UNCODE.init()}})(jQuery);



(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?t(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function n(t,r,n){var a;return a=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(r,"string"),(r="symbol"==e(a)?a:String(a))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}jQuery(document).ready((function(){window.fluentFormrecaptchaSuccessCallback=function(e){if(window.innerWidth<768&&/iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream){var t=jQuery(".g-recaptcha").filter((function(t,r){return grecaptcha.getResponse(t)==e}));t.length&&jQuery("html, body").animate({scrollTop:t.first().offset().top-jQuery(window).height()/2},0)}},window.ffValidationError=function(){var e=function(){};return(e.prototype=Object.create(Error.prototype)).constructor=e,e}(),window.ff_helper={numericVal:function(e){if(e.hasClass("ff_numeric")){var t=JSON.parse(e.attr("data-formatter"));return currency(e.val(),t).value}return e.val()||0},formatCurrency:function(e,t){if(e.hasClass("ff_numeric")){var r=JSON.parse(e.attr("data-formatter"));return currency(t,r).format()}return t}},function(e,t){e||(e={}),e.stepAnimationDuration=parseInt(e.stepAnimationDuration);var n={};window.fluentFormApp=function(r){var a=r.attr("data-form_instance"),o=window["fluent_form_"+a];if(!o)return console.log("No Fluent form JS vars found!"),!1;if(n[a])return n[a];var f,s,c,l,u,d,h,p,m,g,v,_,y,w,b,k,C,x,j,S,O,F,T=o.form_id_selector,A="."+a;return f=i,s={},c=function(){return t("body").find("form"+A)},u=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"next";r.trigger("update_slider",{goBackToStep:e,animDuration:t,isScrollTop:n,actionType:a})},d=function(e){try{var r=e.find(":input").filter((function(e,r){return!t(r).closest(".has-conditions").hasClass("ff_excluded")}));w(r);var n=r.serializeArray(),a=n.map((function(e){return e.name}));r=r.filter((function(){return!t(this).closest(".ff-el-input--content").find("table").length}));var i={};r.each((function(){var r=t(this).attr("name");a.includes(r)||(t(this).is(":checkbox")||t(this).is(":radio"))&&(i[r]||e.find('input[name="'+r+'"]:checked').length||(n.push({name:r,value:""}),i[r]=!0))}));var o={data:t.param(t.map(n,(function(e){return{name:e.name,value:e.value}}))),action:"fluentform_submit",form_id:e.data("form_id")};if(t.each(e.find("[type=file]"),(function(e,r){var n={},a=r.name+"[]";n[a]=[],t(r).closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").each((function(e,r){n[a][e]=t(this).data("src")})),t.each(n,(function(e,r){if(r.length){var n={};n[e]=r,o.data+="&"+t.param(n)}}))})),e.find(".ff_uploading").length){var f=t("<div/>",{class:"error text-danger"}),c=t("<span/>",{class:"error-clear",html:"&times;",click:function(e){return t(A+"_errors").html("")}}),l=t("<span/>",{class:"error-text",text:"File upload in progress. Please wait..."});return t(A+"_errors").html(f.append(l,c)).show()}if(e.find(".ff-el-recaptcha.g-recaptcha").length){var u=e.find(".ff-el-recaptcha.g-recaptcha").data("grecaptcha_widget_id");u&&(o.data+="&"+t.param({"g-recaptcha-response":grecaptcha.getResponse(u)}))}if(e.find(".ff-el-hcaptcha.h-captcha").length){var d=e.find(".ff-el-hcaptcha.h-captcha").data("hcaptcha_widget_id");d&&(o.data+="&"+t.param({"h-captcha-response":hcaptcha.getResponse(d)}))}if(e.find(".ff-el-turnstile.cf-turnstile").length){var m=e.find(".ff-el-turnstile.cf-turnstile").data("turnstile_widget_id");m&&(o.data+="&"+t.param({"cf-turnstile-response":turnstile.getResponse(m)}))}t(A+"_success").remove(),t(A+"_errors").html(""),e.find(".error").html(""),e.parent().find(".ff-errors-in-stack").hide(),function(e,t){var r=[],n=s;return e.hasClass("ff_has_v3_recptcha")&&(n.ff_v3_recptcha=function(e,t){var r=jQuery.Deferred(),n=e.data("recptcha_key");return grecaptcha.execute(n,{action:"submit"}).then((function(e){t.data+="&"+jQuery.param({"g-recaptcha-response":e}),r.resolve()})),r.promise()}),jQuery.each(n,(function(n,a){r.push(a(e,t))})),jQuery.when.apply(jQuery,r)}(e,o).then((function(){p(e),h(e,o)}))}catch(e){if(!(e instanceof ffValidationError))throw e;b(e.messages),_(350)}},h=function(r,n){var a,i,f=(a="t="+Date.now(),i=e.ajaxUrl,i+=(i.split("?")[1]?"&":"?")+a);if(!this.isSending){var s=this;this.isSending=!0,t.post(f,n).then((function(n){if(!n||!n.data||!n.data.result)return r.trigger("fluentform_submission_failed",{form:r,response:n}),void b(n);if(n.data.append_data&&O(n.data.append_data),n.data.nextAction)r.trigger("fluentform_next_action_"+n.data.nextAction,{form:r,response:n});else{if(r.triggerHandler("fluentform_submission_success",{form:r,config:o,response:n}),jQuery(document.body).trigger("fluentform_submission_success",{form:r,config:o,response:n}),"redirectUrl"in n.data.result)return n.data.result.message&&(t("<div/>",{id:T+"_success",class:"ff-message-success"}).html(n.data.result.message).insertAfter(r),r.find(".ff-el-is-error").removeClass("ff-el-is-error")),void(location.href=n.data.result.redirectUrl);var a=T+"_success",i="#"+a;t(i).length&&t(i).slideUp("fast"),t("<div/>",{id:a,class:"ff-message-success"}).html(n.data.result.message).insertAfter(r),r.find(".ff-el-is-error").removeClass("ff-el-is-error"),"hide_form"==n.data.result.action?(r.hide().addClass("ff_force_hide"),r[0].reset()):(jQuery(document.body).trigger("fluentform_reset",[r,o]),r[0].reset());var f=t(i);f.length&&!y(f[0])&&t("html, body").animate({scrollTop:f.offset().top-(t("#wpadminbar")?32:0)-20},e.stepAnimationDuration)}})).fail((function(t){if(r.trigger("fluentform_submission_failed",{form:r,response:t}),t&&t.responseJSON&&t.responseJSON&&t.responseJSON.errors){if(t.responseJSON.append_data&&O(t.responseJSON.append_data),b(t.responseJSON.errors),_(350),r.find(".fluentform-step").length){var n=r.find(".error").not(":empty:first").closest(".fluentform-step");if(n.length){var a=n.index();u(a,e.stepAnimationDuration,!1)}}}else b(t.responseText)})).always((function(e){if(s.isSending=!1,m(r),window.grecaptcha){var t=r.find(".ff-el-recaptcha.g-recaptcha").data("grecaptcha_widget_id");t&&grecaptcha.reset(t)}if(window.hcaptcha){var n=r.find(".ff-el-hcaptcha.h-captcha").data("hcaptcha_widget_id");n&&hcaptcha.reset(n)}if(window.turnstile){var a=r.find(".ff-el-turnstile.cf-turnstile").data("turnstile_widget_id");a&&turnstile.reset(a)}}))}},g=function(){"yes"!=r.attr("data-ff_reinit")&&(t(document).on("submit",A,(function(e){e.preventDefault(),window.ff_sumitting_form||(window.ff_sumitting_form=!0,setTimeout((function(){window.ff_sumitting_form=!1}),1500),d(t(this)))})),t(document).on("reset",A,(function(n){!function(n){t(".ff-step-body",r).length&&u(0,e.stepAnimationDuration,!1),n.find(".ff-el-repeat .ff-t-cell").each((function(){t(this).find("input").not(":first").remove()})),n.find(".ff-el-repeat .ff-el-repeat-buttons-list").find(".ff-el-repeat-buttons").not(":first").remove();var a=n.find("input[type=checkbox],input[type=radio]");a.length&&a.each((function(e,r){(r=t(r)).prop("defaultChecked")?r.closest(".ff-el-form-check").addClass("ff_item_selected"):r.closest(".ff-el-form-check.ff_item_selected").removeClass("ff_item_selected")})),n.find("input[type=file]").closest("div").find(".ff-uploaded-list").html("").end().closest("div").find(".ff-upload-progress").addClass("ff-hidden").find(".ff-el-progress-bar").css("width","0%");var i=n.find('input[type="range"]');i.length&&i.each((function(e,r){(r=t(r)).val(r.data("calc_value")).change()})),t.each(o.conditionals,(function(e,r){t.each(r.conditions,(function(e,t){v(j(t.field))}))}))}(t(this))})))},v=function(e){var r=e.prop("type");null!=r&&("checkbox"==r||"radio"==r?e.each((function(e,r){var n=t(this);n.prop("checked",n.prop("defaultChecked"))})):r.startsWith("select")?e.find("option").each((function(e,r){var n=t(this);n.prop("selected",n.prop("defaultSelected"))})):e.val(e.prop("defaultValue")),e.trigger("change"))},_=function(e){var n=o.settings.layout.errorMessagePlacement;if(n&&"stackToBottom"!=n){var a=r.find(".ff-el-is-error").first();a.length&&!y(a[0])&&t("html, body").delay(e).animate({scrollTop:a.offset().top-(t("#wpadminbar")?32:0)-20},e)}},y=function(e){if(!e)return!0;var r=e.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=t(window).height()&&r.right<=t(window).width()},b=function(e){if(r.parent().find(".ff-errors-in-stack").empty(),e)if("string"!=typeof e){var n=o.settings.layout.errorMessagePlacement;if(!n||"stackToBottom"==n)return k(e),!1;r.find(".error").empty(),r.find(".ff-el-group").removeClass("ff-el-is-error"),t.each(e,(function(e,r){"string"==typeof r&&(r=[r]),t.each(r,(function(t,r){C(e,r)}))}))}else k({error:[e]})},k=function(e){var r=c(),n=r.parent().find(".ff-errors-in-stack");e&&(t.isEmptyObject(e)||(t.each(e,(function(e,a){"string"==typeof a&&(a=[a]),t.each(a,(function(a,i){var o=t("<div/>",{class:"error text-danger"}),f=t("<span/>",{class:"error-clear",html:"&times;"}),s=t("<span/>",{class:"error-text","data-name":j(e).attr("name"),html:i});o.attr("role","alert"),o.append(s,f),t(document.body).trigger("fluentform_error_in_stack",{form:r,element:j(e),message:s}),n.append(o).show()}));var i=j(e);if(i){var o=i.attr("name");i.attr("aria-invalid","true");var f=t("[name='"+o+"']").first();f&&f.closest(".ff-el-group").addClass("ff-el-is-error")}})),y(n[0])||t("html, body").animate({scrollTop:n.offset().top-100},350),n.on("click",".error-clear",(function(){t(this).closest("div").remove(),n.hide()})).on("click",".error-text",(function(){var e=t("[name='".concat(t(this).data("name"),"']")).first();t("html, body").animate({scrollTop:e.offset()&&e.offset().top-100},350,(function(t){return e.focus()}))}))))},C=function(e,n){var a,i;(a=j(e)).length?(a.attr("aria-invalid","true"),(i=t("<div/>",{class:"error text-danger"})).attr("role","alert"),a.closest(".ff-el-group").addClass("ff-el-is-error"),a.closest(".ff-el-input--content").length?(a.closest(".ff-el-input--content").find("div.error").remove(),t(document.body).trigger("fluentform_error_below_element",{form:r,element:a,message:n}),a.closest(".ff-el-input--content").append(i.html(n))):(a.find("div.error").remove(),a.append(i.text(n)))):k([n])},x=function(){r.find(".ff-el-group,.ff_repeater_table").on("change","input,select,textarea",(function(){if(!window.ff_disable_error_clear){t(this).attr("aria-invalid","false");var e=o.settings.layout.errorMessagePlacement;if(e||"stackToBottom"!=e){var r=t(this).closest(".ff-el-group");r.hasClass("ff-el-is-error")&&r.removeClass("ff-el-is-error").find(".error.text-danger").remove()}}}))},j=function(e){var r=c(),n=t("[data-name='"+e+"']",r);return(n=n.length?n:t("[name='"+e+"']",r)).length?n:t("[name='"+e+"[]']",r)},S=function(){if(r.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha.ready((function(){var e=r.find(".ff-el-recaptcha.g-recaptcha"),t=e.data("sitekey"),n=e.attr("id"),a=grecaptcha.render(document.getElementById(n),{sitekey:t});e.attr("data-grecaptcha_widget_id",a)})),r.find(".ff-el-turnstile.cf-turnstile").length){var e,t=r.find(".ff-el-turnstile.cf-turnstile"),n=t.data("sitekey"),a=t.attr("id"),i=null===(e=window.turnstile)||void 0===e?void 0:e.render(document.getElementById(a),{sitekey:n});t.attr("data-turnstile_widget_id",i)}if(r.find(".ff-el-hcaptcha.h-captcha").length){var o=r.find(".ff-el-hcaptcha.h-captcha"),f=o.data("sitekey"),s=o.attr("id"),c=hcaptcha.render(document.getElementById(s),{sitekey:f});o.attr("data-hcaptcha_widget_id",c)}},O=function(e){jQuery.each(e,(function(e,n){if(n){var a=r.find("input[name="+e+"]");a.length?a.attr("value",n):t("<input>").attr({type:"hidden",name:e,value:n}).appendTo(r)}}))},F={initFormHandlers:function(){g(),l(),x(),r.removeClass("ff-form-loading").addClass("ff-form-loaded"),r.on("show_element_error",(function(e,t){C(t.element,t.message)}))},registerFormSubmissionHandler:g,maybeInlineForm:l=function(){r.hasClass("ff-form-inline")&&r.find("button.ff-btn-submit").css("height","50px")},reinitExtras:function(){if(r.find(".ff-el-recaptcha.g-recaptcha").length&&window.grecaptcha.ready((function(){var e=r.find(".ff-el-recaptcha.g-recaptcha"),t=e.data("sitekey"),n=e.attr("id"),a=grecaptcha.render(document.getElementById(n),{sitekey:t});e.attr("data-grecaptcha_widget_id",a)})),r.find(".ff-el-turnstile.cf-turnstile").length&&window.turnstile.ready((function(){var e=r.find(".ff-el-turnstile.cf-turnstile"),t=e.data("sitekey"),n=e.attr("id"),a=turnstile.render(document.getElementById(n),{sitekey:t});e.attr("data-turnstile_widget_id",a)})),r.find(".ff-el-hcaptcha.h-captcha").length){var e=r.find(".ff-el-hcaptcha.h-captcha"),t=e.data("sitekey"),n=e.attr("id"),a=hcaptcha.render(document.getElementById(n),{sitekey:t});e.attr("data-hcaptcha_widget_id",a)}},initTriggers:function(){r=c(),jQuery(document.body).trigger("fluentform_init",[r,o]),jQuery(document.body).trigger("fluentform_init_"+o.id,[r,o]),r.trigger("fluentform_init_single",[this,o]),r.find("input.ff-el-form-control").on("keypress",(function(e){return 13!==e.which})),r.data("is_initialized","yes"),r.find(".ff-el-tooltip").on("mouseenter",(function(e){var n=t(this).data("content"),a=t(".ff-el-pop-content");a.length||(t("<div/>",{class:"ff-el-pop-content"}).appendTo(document.body),a=t(".ff-el-pop-content")),a.html(n);var i=r.innerWidth()-20;a.css("max-width",i);var o=t(this).offset().left,f=a.outerWidth(),s=a.outerHeight(),c=o-f/2+10;c<15&&(c=15),a.css("top",t(this).offset().top-s-5),a.css("left",c)})),r.find(".ff-el-tooltip").on("mouseleave",(function(){t(".ff-el-pop-content").remove()})),t(document).on("lity:open",(function(){var e;null===(e=window.turnstile)||void 0===e||e.remove(),S()})),S()},validate:w=function(e){e.length||(e=t(".frm-fluent-form").find(":input").not(":button").filter((function(e,r){return!t(r).closest(".has-conditions").hasClass("ff_excluded")}))),e.each((function(e,r){t(r).closest(".ff-el-group").removeClass("ff-el-is-error").find(".error").remove()})),f().validate(e,o.rules)},showErrorMessages:b,scrollToFirstError:_,settings:o,formSelector:A,sendData:h,addGlobalValidator:function(e,t){s[e]=t},config:o,showFormSubmissionProgress:p=function(e){e.addClass("ff_submitting"),e.find(".ff-btn-submit").addClass("disabled").addClass("ff-working").prop("disabled",!0)},addFieldValidationRule:function(e,t,r){o.rules[e]||(o.rules[e]={}),o.rules[e][t]=r},removeFieldValidationRule:function(e,t){e in o.rules&&t in o.rules[e]&&delete o.rules[e][t]},hideFormSubmissionProgress:m=function(e){e.removeClass("ff_submitting"),e.find(".ff-btn-submit").removeClass("disabled").removeClass("ff-working").attr("disabled",!1),r.parent().find(".ff_msg_temp").remove()}},n[a]=F,F};var a={init:function(){var e=this;setTimeout((function(){e.initMultiSelect()}),100),this.initMask(),this.initNumericFormat(),this.initCheckableActive()},initMultiSelect:function(){t.isFunction(window.Choices)&&t(".ff_has_multi_select").length&&t(".ff_has_multi_select").each((function(e,n){var a=r(r({},{removeItemButton:!0,silent:!0,shouldSort:!1,searchEnabled:!0,searchResultLimit:50}),window.fluentFormVars.choice_js_vars),i=t(n).attr("data-max_selected_options");parseInt(i)&&(a.maxItemCount=parseInt(i),a.maxItemText=function(e){var t=window.fluentFormVars.choice_js_vars.maxItemText;return t=t.replace("%%maxItemCount%%",e)}),a.callbackOnCreateTemplates=function(){t(this.passedElement.element);return{option:function(e){var t=Choices.defaults.templates.option.call(this,e);return e.customProperties&&(t.dataset.calc_value=e.customProperties),t}}},t(n).data("choicesjs",new Choices(n,a))}))},initMask:function(){if(null!=jQuery.fn.mask){var e={clearIfNotMatch:window.fluentFormVars.input_mask_vars.clearIfNotMatch,translation:{"*":{pattern:/[0-9a-zA-Z]/},0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};jQuery("input[data-mask]").each((function(t,r){var n=(r=jQuery(r)).attr("data-mask"),a=e;r.attr("data-mask-reverse")&&(a.reverse=!0),r.attr("data-clear-if-not-match")&&(a.clearIfNotMatch=!0),n&&r.mask(n,a)}))}},initCheckableActive:function(){t(document).on("change",".ff-el-form-check input[type=radio]",(function(){t(this).is(":checked")&&(t(this).closest(".ff-el-input--content").find(".ff-el-form-check").removeClass("ff_item_selected"),t(this).closest(".ff-el-form-check").addClass("ff_item_selected"))})),t(document).on("change",".ff-el-form-check input[type=checkbox]",(function(){t(this).is(":checked")?t(this).closest(".ff-el-form-check").addClass("ff_item_selected"):t(this).closest(".ff-el-form-check").removeClass("ff_item_selected")}))},initNumericFormat:function(){var e=t(".frm-fluent-form .ff_numeric");t.each(e,(function(e,r){var n=t(r),a=JSON.parse(n.attr("data-formatter"));n.val()&&n.val(window.ff_helper.formatCurrency(n,n.val())),n.on("blur change",(function(){var e=currency(t(this).val(),a).format();t(this).val(e)}))}))}},i=function(){return new function(){this.errors={},this.validate=function(e,r){var n,a,i=this,o=!0;e.each((function(e,f){n=t(f),a=n.prop("name").replace("[]",""),"repeater_item"===n.data("type")&&(a=n.attr("data-name"),r[a]=r[n.data("error_index")]),r[a]&&t.each(r[a],(function(e,t){e in i&&(i[e](n,t)||(o=!1,a in i.errors||(i.errors[a]={}),i.errors[a][e]=t.message))}))})),!o&&this.throwValidationException()},this.throwValidationException=function(){var e=new ffValidationError("Validation Error!");throw e.messages=this.errors,e},this.required=function(e,r){if(!r.value)return!0;var n=e.prop("type");if("checkbox"==n||"radio"==n)return e.parents(".ff-el-group").attr("data-name")&&!r.per_row?e.parents(".ff-el-group").find("input:checked").length:t('[name="'+e.prop("name")+'"]:checked').length;if(n.startsWith("select")){var a=e.find(":selected");return!(!a.length||!a.val().length)}return"file"==n?e.closest("div").find(".ff-uploaded-list").find(".ff-upload-preview[data-src]").length:"false"==e.attr("is-changed")?"":String(t.trim(e.val())).length},this.url=function(e,t){var r=e.val();if(!t.value||!r.length)return!0;return/^(ftp|http|https):\/\/[^ "]+$/.test(r)},this.email=function(e,t){var r=e.val();if(!t.value||!r.length)return!0;return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(r.toLowerCase())},this.numeric=function(e,r){var n=window.ff_helper.numericVal(e);return n=n.toString(),!r.value||!n||t.isNumeric(n)},this.min=function(e,t){if(!e.val())return!0;var r=window.ff_helper.numericVal(e);return r=r.toString(),!t.value||!r.length||(this.numeric(e,t)?Number(r)>=Number(t.value):void 0)},this.max=function(e,t){if(!e.val())return!0;var r=window.ff_helper.numericVal(e);return r=r.toString(),!t.value||!r.length||(this.numeric(e,t)?Number(r)<=Number(t.value):void 0)},this.digits=function(e,t){if(!e.val())return!0;var r=window.ff_helper.numericVal(e);return r=r.toString(),!t.value||!r.length||this.numeric(e,t)&&r.length==t.value},this.max_file_size=function(){return!0},this.max_file_count=function(){return!0},this.allowed_file_types=function(){return!0},this.allowed_image_types=function(){return!0},this.force_failed=function(){return!1},this.valid_phone_number=function(e,t){if(!e.val())return!0;if(void 0===window.intlTelInputGlobals)return!0;if(e&&e[0]){var r=window.intlTelInputGlobals.getInstance(e[0]);if(!r)return!0;if(e.hasClass("ff_el_with_extended_validation"))return!!r.isValidNumber()&&(e.val(r.getNumber()),!0);var n=r.getSelectedCountryData(),a=e.val();return!e.attr("data-original_val")&&a&&n&&n.dialCode&&(e.val("+"+n.dialCode+a),e.attr("data-original_val",a)),!0}}}},o=t(".frm-fluent-form");function f(e){var t=fluentFormApp(e);if(t)t.initFormHandlers(),t.initTriggers();else var r=0,n=setInterval((function(){(t=fluentFormApp(e))&&(clearInterval(n),t.initFormHandlers(),t.initTriggers()),++r>10&&(clearInterval(n),console.log("Form could not be loaded"))}),1e3)}t.each(o,(function(e,r){f(t(r))})),t(document).on("ff_reinit",(function(e,r){var n=t(r),i=fluentFormApp(n);if(!i)return!1;i.reinitExtras(),f(n),a.init(),n.attr("data-ff_reinit","yes")})),a.init()}(window.fluentFormVars,jQuery),jQuery(".fluentform").on("submit",".ff-form-loading",(function(e){e.preventDefault(),jQuery(this).parent().find(".ff_msg_temp").remove(),jQuery("<div/>",{class:"error text-danger ff_msg_temp"}).html("Javascript handler could not be loaded. Form submission has been failed. Reload the page and try again").insertAfter(jQuery(this))}))})),jQuery(document.body).on("fluentform_init",(function(e,t){}))})();



(()=>{var o;o=jQuery,window.BorlabsCookie=function(){"use strict";var e,t,n="#BorlabsCookieBox input[type='checkbox']",i="#BorlabsCookieBox",a="#BorlabsCookieBoxWrap",s="#BorlabsCookieBox input[type='checkbox'][name='cookieGroup[]']",c="._brlbs-btn-switch-status",r="data-borlabs-cookie-uid",l="data-borlabs-cookie-consent-history",d=".BorlabsCookie",u={},b={},h={},k={},p={scriptBlockerId:{},jsHandle:{}},f=!1,v={consents:{},expires:null,uid:"anonymous",version:null},g="borlabs-cookie",m={consentSaved:null,codeUnblocked:null,codeUnblockedAfterConsent:null},x=null,C=!1,y=null;function B(o,e){if(e){var t=e.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),n=Array.from(t).filter((function(o){return 0!==o.offsetHeight})),i=n[0],a=n[n.length-1];("Tab"===o.key||9===o.keyCode)&&(o.shiftKey?document.activeElement===i&&(o.preventDefault(),a.focus()):document.activeElement===a&&(o.preventDefault(),i.focus()))}}function w(o){o.addEventListener("keydown",(function(e){return B(e,o)}),!0)}function O(o){o.removeEventListener("keydown",(function(e){return B(e,o)}),!0)}function L(){o(i).attr("aria-modal",!1)}var S,_=function(t){o(i).attr("aria-modal",!0),o("body").addClass("borlabs-position-fix"),w(document.querySelector(".cookie-box")),void 0===t&&(t=!1);var a=o(s),c=null;Object.keys(v.consents).length?(o("[data-borlabs-cookie-group]").each((function(){-1===Object.keys(v.consents).indexOf(this.dataset.borlabsCookieGroup)&&o(this).addClass("borlabs-hide")})),a.length&&"1"===e.boxLayoutAdvanced&&a.each((function(){c=this.value,"string"==typeof this.dataset.borlabsCookieCheckbox&&("object"==typeof v.consents[c]?o(this).prop("checked",!0):o(this).prop("checked",!1))}))):a.length&&a.each((function(){c=this.value,"1"===e.boxLayoutAdvanced&&"1"===e.ignorePreSelectStatus&&!1===f&&"essential"!==c&&(o(this).prop("checked",!1),o(n+"[name='cookies["+c+"][]']").prop("checked",!1).trigger("change"))})),e.blockContent?(o("#BorlabsCookieBox > div").addClass("_brlbs-block-content"),e.animation?(o("#BorlabsCookieBox > div").addClass("_brlbs-bg-animation"),setTimeout((function(){o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")}),25)):o("#BorlabsCookieBox > div").addClass("_brlbs-bg-dark")):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),o("#BorlabsCookieBox > div").css("display",""),o("#BorlabsCookieBox > div").addClass("show-cookie-box"),e.animation&&o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass("_brlbs-animated "+e.animationIn+(t&&e.animationDelay?" delay-1s":""));const r=o("#BorlabsCookieBox > div")[0];return r.offsetWidth,r.offsetHeight,o("#CookieBoxSaveButton")[0].focus({preventScroll:!0}),y=o("._brlbs-"+e.boxLayout+"-wrap")[0].offsetWidth+"px",!0},j=function(){return L(),O(document.querySelector(".cookie-box")),e.animation&&(o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass("delay-1s "),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("#BorlabsCookieBox ._brlbs-"+e.boxLayout).addClass(e.animationOut)),o("#BorlabsCookieBox > div").addClass("borlabs-hide"),e.blockContent?o("#BorlabsCookieBox > div").removeClass("_brlbs-bg-dark"):o("._brlbs-"+e.boxLayout+"-wrap").addClass("_brlbs-position-fixed"),setTimeout((function(){o("._brlbs-"+e.boxLayout+"-wrap").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").removeAttr("style"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").removeAttr("style"),e.animation&&(o("._brlbs-"+e.boxLayout).removeClass("_brlbs-animated"),o("._brlbs-"+e.boxLayout).removeClass("delay-1s"),o("._brlbs-"+e.boxLayout).removeClass(e.animationIn),o("._brlbs-"+e.boxLayout).removeClass(e.animationOut)),o("#BorlabsCookieBox > div").removeClass("show-cookie-box"),e.blockContent&&o("#BorlabsCookieBox > div").removeClass("_brlbs-block-content")}),e.animation?1e3:0),o("body").removeClass("borlabs-position-fix"),!0},D=function(){O(document.querySelector(".cookie-box")),w(document.querySelector(".cookie-preference"));var t=o(s),i=null;t.length&&t.each((function(){i=this.value,Object.keys(v.consents).length?!1===f&&(void 0!==v.consents[i]?(o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){-1!==v.consents[i].indexOf(this.value)?o(this).prop("checked",!0):o(this).prop("checked",!1),o(this).trigger("change")}))):(o(this).prop("checked",!1),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").prop("checked",!1).trigger("change"))):("1"===e.ignorePreSelectStatus&&!1===f&&(o(this).prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide")),o(this).trigger("change"),o(n+"[name='cookies["+i+"][]']").each((function(){"1"===e.ignorePreSelectStatus&&!1===f&&o(this).prop("checked",!1),o(this).trigger("change")})))})),o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!1),o("#CookiePrefSave")[0].focus({preventScroll:!0}),o("._brlbs-"+e.boxLayout+"-wrap").animate({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-preference .container")[0].scrollHeight;o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:"80vh",maxHeight:t,opacity:1})}))}))},I=function(){O(document.querySelector(".cookie-preference")),o("._brlbs-"+e.boxLayout+" .cookie-preference .container").animate({height:0,opacity:0},(function(){o("._brlbs-"+e.boxLayout+" .cookie-box").attr("aria-hidden",!1),o("._brlbs-"+e.boxLayout+" .cookie-preference").attr("aria-hidden",!0),o("._brlbs-"+e.boxLayout+"-wrap").animate({maxWidth:"box"===e.boxLayout?y:"100%"},"box"===e.boxLayout?400:0,(function(){var t=o("._brlbs-"+e.boxLayout+" .cookie-box .container")[0].scrollHeight+"px";o("._brlbs-"+e.boxLayout+" .cookie-box .container").animate({height:t,opacity:1})})),o("#CookieBoxSaveButton")[0].focus()}))},T=function(t){return void 0!==t&&t.preventDefault(),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back]").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-preference .container a["+"data-cookie-back] + span._brlbs-separator").css("display","none"),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("height",0),o("._brlbs-"+e.boxLayout+" .cookie-box .container").css("opacity",0),o("._brlbs-"+e.boxLayout+"-wrap").css({width:"100vw",maxWidth:"box"===e.boxLayout?"768px":"100%"}),_(!1),setTimeout((function(){D()}),500),!0},E=function(){o("[data-cookie-accordion]").on("click","[data-cookie-accordion-target]",(function(e){e.preventDefault();var t=o(this).closest("[data-cookie-accordion]");t.find("[data-cookie-accordion-parent]:visible").length&&(t.find("[data-cookie-accordion-status='hide']").addClass("borlabs-hide"),t.find("[data-cookie-accordion-status='show']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent]:visible").slideUp()),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']:hidden").length&&(o(this).children("[data-cookie-accordion-status='show']").addClass("borlabs-hide"),o(this).children("[data-cookie-accordion-status='hide']").removeClass("borlabs-hide"),t.find("[data-cookie-accordion-parent='"+this.dataset.cookieAccordionTarget+"']").slideDown())}))},A=function(){var e=o(s),t=null;e.length&&e.each((function(){t=this.value,o(this).prop("checked",!0),o(this).trigger("change"),o(n+"[name='cookies["+t+"][]']").each((function(){o(this).prop("checked",!0),o(this).trigger("change")}))})),N(),j()},U=function(){o(document).on("click",s,(function(){f=!0,this.checked?(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!0).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!0),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").removeClass("borlabs-hide")):(o(n+"[name='cookies["+this.value+"][]']").prop("checked",!1).trigger("change"),o(s+"[value='"+this.value+"']").prop("checked",!1),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.value+"']").addClass("borlabs-hide"))}))},P=function(){o(document).on("click",n+"[name^='cookies']",(function(){f=!0,this.checked&&(o(s+"[value='"+this.dataset.cookieGroup+"']").prop("checked",!0).trigger("change"),o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").length&&o("#BorlabsCookieBox [data-borlabs-cookie-group='"+this.dataset.cookieGroup+"']").removeClass("borlabs-hide"))}))},H=function(){!0===this.checked?(o(this).parent().parent().children(c).children().last().css("display","none"),o(this).parent().parent().children(c).children().first().css("display","inline-block")):(o(this).parent().parent().children(c).children().first().css("display","none"),o(this).parent().parent().children(c).children().last().css("display","inline-block"))},N=function(){var t={essential:e.cookies.essential},i=o(s+":checked"),a=o(n+"[name^='cookies']:checked");if(i.length&&(i.each((function(){this.value.length&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&"essential"!==this.value&&(t[this.value]=[])})),a.length&&a.each((function(){this.value.length&&"string"==typeof this.dataset.cookieGroup&&new RegExp(/^[a-z-_]{3,}$/).test(this.value)&&new RegExp(/^[a-z-_]{3,}$/).test(this.dataset.cookieGroup)&&t[this.dataset.cookieGroup].push(this.value)}))),Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&K(v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])K(l);if(Object.keys(v.consents).length)for(var c in v.consents)if(void 0!==t[c])for(var r in v.consents[c])-1===t[c].indexOf(v.consents[c][r])&&Q(c,v.consents[c][r]);else if(void 0!==u[c])for(var l in u[c])Q(c,l);J(t,!1),"1"!==e.reloadAfterConsent&&(V(),F(),Y(),document.dispatchEvent(m.codeUnblockedAfterConsent),document.dispatchEvent(m.codeUnblocked))},R=function(){var o=!1;return"string"==typeof v.version&&(v.version===e.cookieVersion?o=!0:v.consents={}),o},G=function(){if(document.cookie.length)for(var o=document.cookie.split(";"),t=0;t<o.length;t++)try{o[t]=decodeURIComponent(o[t]);var n=o[t].split("="),i=void 0!==n[0]?n[0].trim():"",a=void 0!==n[1]?n[1].trim():"";if(i===g){var s=JSON.parse(decodeURIComponent(a));void 0!==s.domainPath?s.domainPath===e.cookieDomain+e.cookiePath&&(v=s):v=s}}catch(e){console.log("The cookie is spoiled:"),console.dir(o[t]),console.dir(e)}return v},J=function(o,t){var n={},i="",a=[],s=e.cookieLifetime;if(1===Object.keys(o).length&&void 0!==e.cookieLifetimeEssentialOnly&&(s=e.cookieLifetimeEssentialOnly),!1===t||!1===R()){var c=new Date;c.setTime(c.getTime()+24*parseInt(s)*60*60*1e3),i=c.toUTCString()}else i=v.expires;n.consents=o,n.domainPath=e.cookieDomain+e.cookiePath,n.expires=i,n.uid=v.uid,n.version=e.cookieVersion,void 0===n.consents.essential&&(n.consents.essential=e.cookies.essential);var r=!0;1===Object.keys(o).length?(n.uid="anonymous",("anonymous"!==v.uid||1===Object.keys(v.consents).length)&&(r=!1)):"anonymous"===v.uid?(n.uid=$(),1===Object.keys(v.consents).length&&(r=!1)):"anonymous"!==v.uid&&(r=!1),a.push(g+"="+encodeURIComponent(JSON.stringify(n))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&a.push("domain="+e.cookieDomain),a.push("path="+e.cookiePath),a.push("expires="+i),a.push("SameSite="+e.cookieSameSite),e.cookieSecure&&a.push("secure"),document.cookie=a.join(";"),G(),no(r),ao(r),document.dispatchEvent(m.consentSaved)},M=function(o,t,n){var i,a="",s=[],c="",r=new Date;return null==t||!1===t?""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&(a=e.cookieDomain):a=t,void 0===n&&(n=!1),i=function(o,e){var t={name:"",value:""};if(void 0===e&&(e=!1),e&&(o=o.replace("*","")),document.cookie.length)for(var n=document.cookie.split(";"),i=0;i<n.length;i++)try{n[i]=decodeURIComponent(n[i]);var a=n[i].split("="),s=void 0!==a[0]?a[0].trim():"",c=void 0!==a[1]?a[1].trim():"";e?-1!==s.indexOf(o)&&(t.name=s,t.value=c):s===o&&(t.name=s,t.value=c)}catch(o){console.log("The cookie is spoiled:"),console.dir(n[i]),console.dir(o)}return t}(o,n),i.name.length&&(s.push(i.name+"="),""!==a&&s.push("domain="+a),s.push("path="+e.cookiePath),r.setTime(r.getTime()-864e5),c=r.toUTCString(),s.push("expires="+c),document.cookie=s.join(";")),!0},z=function(o,e){return function(o,e){"string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)&&(void 0===v.consents[o]&&(v.consents[o]=[]),"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&-1===v.consents[o].indexOf(e)&&v.consents[o].push(e)),J(v.consents,!0)}(o,e),!0},W=function(o,e){return function(o,e){if("string"==typeof o&&o.length&&new RegExp(/^[a-z-_]{3,}$/).test(o)){var t=!0;"string"==typeof e&&new RegExp(/^[a-z-_]{3,}$/).test(e)&&void 0!==v.consents[o]&&-1!==v.consents[o].indexOf(e)&&(v.consents[o].splice(v.consents[o].indexOf(e),1),t=!1),!0===t&&void 0!==v.consents[o]&&delete v.consents[o]}Object.keys(v.consents).length&&J(v.consents,!0)}(o,e),K(e),Q(o,e),!0},q=function(o){var e=!1;for(var t in v.consents)-1!==v.consents[t].indexOf(o)&&(e=!0);return e},$=function(){function o(){var o="";if("object"==typeof window.crypto){var e=0,t=new Uint32Array(4);for(window.crypto.getRandomValues(t);e<4;e++)o+="abcdefhgihjklmnopqrstuvwxyz0123456789"[t[e]%37]}else o=Math.floor(65536*(1+Math.random())).toString(16).substring(1);return o}return o()+o()+"-"+o()+o()+"-"+o()+o()+"-"+o()+o()},V=function(){for(var e in v.consents)for(var n in v.consents[e]){var i=v.consents[e][n];void 0!==u[e]&&void 0!==u[e][i]&&(void 0!==t[e]&&void 0!==t[e][i]&&(o("body").append(to(t[e][i])),delete t[e][i]),void 0!==u[e][i].optInJS&&(o("body").append(to(u[e][i].optInJS)),u[e][i].optInJS=""))}},F=function(){o("[data-borlabs-cookie-type='cookie-group']").each((function(){if(void 0!==v.consents[this.dataset.borlabsCookieId]){var t;t="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(t):o(this).parent().prepend(t),this.parentNode.removeChild(this)}}))},Y=function(){o("[data-borlabs-cookie-type='cookie']").each((function(){for(var t in v.consents)if(-1!==v.consents[t].indexOf(this.dataset.borlabsCookieId)){var n;n="javascript"===e.cookieBoxIntegration?to(this.firstChild.innerHTML):to(this.innerHTML),o(this).prev().length?o(this).prev().after(n):o(this).parent().prepend(n),this.parentNode.removeChild(this)}}))},K=function(o){null===x&&(x=[],C=!0),x.push(o)},Q=function(e,t){if(void 0!==u[e]&&void 0!==u[e][t]&&void 0!==u[e][t].optOutJS){var n=to(u[e][t].optOutJS);void 0!==u[e][t].settings.asyncOptOutCode&&"1"===u[e][t].settings.asyncOptOutCode||(n+="<script>window.BorlabsCookie.optOutDone('"+t+"')<\/script>"),o("body").append(n),u[e][t].optOutJS=""}},X=function(t){t.preventDefault();var n,i,a=o(this).parents(".BorlabsCookie"),s=!1;if(n=a.find("[data-borlabs-cookie-type='content-blocker']")[0].dataset.borlabsCookieId,void 0!==b[n]&&void 0!==b[n].settings.unblockAll&&"1"===b[n].settings.unblockAll&&(s=!0),(i=a.find("input[type='checkbox'][name='unblockAll']")).length&&(s=!!i[0].checked),s)for(var c in o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+n+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))})),e.cookies)-1!==e.cookies[c].indexOf(n)&&z(c,n);else Z(a)},Z=function(o){var t=o.find("[data-borlabs-cookie-type='content-blocker']"),n="";if(t.length){var i;n=t[0].dataset.borlabsCookieId,void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"1"===b[n].settings.executeGlobalCodeBeforeUnblocking&&void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),i="javascript"===e.cookieBoxIntegration?to(t[0].firstChild.innerHTML):to(t[0].innerHTML);var a=setInterval((function(){var e=!0;void 0!==k[n]&&(void 0!==k[n].scriptBlockerId&&Object.entries(k[n].scriptBlockerId).forEach((o=>{var t=o[0];!0!==eo(k[n].scriptBlockerId[t],"scriptBlockerId")&&(e=!1)})),void 0!==k[n].jsHandle&&Object.entries(k[n].jsHandle).forEach((o=>{var t=o[0];!0!==eo(k[n].jsHandle[t],"jsHandle")&&(e=!1)}))),!0===e&&(clearInterval(a),o.prev().length?o.prev().after(i):o.parent().prepend(i),void 0!==b[n].settings.executeGlobalCodeBeforeUnblocking&&"0"!==b[n].settings.executeGlobalCodeBeforeUnblocking||void 0===h[n]&&(b[n].global(b[n]),h[n]=!0),b[n].init(o.prev()[0],b[n]),o[0].parentNode.removeChild(o[0]))}),50)}},oo=function(e,t,n){var i=o(e)[0];if(void 0!==i){var a=document.createElement("script");for(var s of i.attributes)-1===s.name.indexOf("borlabs")&&-1===s.name.indexOf("type")&&a.setAttribute(s.name,s.value);"string"==typeof i.dataset.borlabsScriptBlockerSrc?(a.src=i.dataset.borlabsScriptBlockerSrc,a.onload=function(){p[n][t]--,oo(e,t,n)},i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i)):(a.type="text/javascript",a.innerHTML=i.innerHTML,i.parentNode.insertBefore(a,i),i.parentNode.removeChild(i),p[n][t]--,oo(e,t,n))}return!0},eo=function(o,e){var t=!1;return void 0!==p[e][o]&&0===p[e][o]&&(t=!0),t},to=function(o){return decodeURIComponent(Array.prototype.map.call(window.atob(o),(function(o){return"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)})).join(""))},no=function(t){!1===/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())&&o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"log",language:e.language,cookieData:v,essentialStatistic:t}}).done((function(){e.reloadAfterConsent&&Object.keys(v.consents).length>0&&location.reload(!0),C&&bo()}))},io=function(){o.ajax(e.ajaxURL,{type:"POST",data:{action:"borlabs_cookie_handler",type:"consent_history",language:e.language,uid:v.uid}}).done((function(e){(e=o.parseJSON(e)).length&&o.each(e,(function(e,t){o("["+l+"] table").append("<tr><td>"+t.stamp+"</td><td>"+t.version+"</td><td>"+t.consent+"</td></tr>")}))}))},ao=function(t){e.crossDomainCookie.length&&Object.entries(e.crossDomainCookie).forEach((n=>{var i=e.crossDomainCookie[n[0]];o("body").append('<iframe class="borlabs-hide" src="'+i+"?__borlabsCookieCall=cDC&cookieLang="+e.language+"&cookieData="+encodeURIComponent(JSON.stringify(v))+"&essentialStatistic="+(t?1:0)+'"></iframe>')}))},so=function(){o(".BorlabsCookie [name^='borlabsCookie']").each((function(){q(this.value)?this.checked=!0:this.checked=!1,o(this).trigger("change")})),o(document).on("change",".BorlabsCookie [name^='borlabsCookie']",(function(){this.checked?z(this.dataset.cookieGroup,this.value):W(this.dataset.cookieGroup,this.value)}))},co=window.scrollY||document.documentElement.scrollTop,ro=null,lo=null,uo=document.getElementById("BorlabsCookieBoxWidget");uo&&window.addEventListener("scroll",(function(){(S=window.scrollY||document.documentElement.scrollTop)>co?ro="up":S<co&&(ro="down"),ro!==lo&&("up"===ro?(uo.classList.add("_brlbs-hide-mobile"),lo=ro):"down"===ro&&(uo.classList.remove("_brlbs-hide-mobile"),lo=ro)),co=S}));var bo=function(){C=!1,0===x.length&&(x=null,e.reloadAfterOptOut&&window.location.reload())};return{addConsent:z,allocateScriptBlockerToContentBlocker:function(o,e,t){"scriptBlockerId"!==t&&"jsHandle"!==t||(void 0===k[o]&&(k[o]={scriptBlockerId:[],jsHandle:[]}),-1===k[o][t].indexOf(e)&&k[o][t].push(e))},callWhenLoaded:function(o,e){var t=function(){!0===window.hasOwnProperty(o)?e(e):window.setTimeout(t,1e3)};t()},checkCookieConsent:q,checkCookieGroupConsent:function(o){var e=!1;return void 0!==v.consents[o]&&(e=!0),e},deleteCookie:M,getCookie:G,hideCookieBox:j,init:function(n,i,c,h){return"about:blank"!==window.location.href&&(e=o.extend({ajaxURL:"",language:"en",animation:"1",animationDelay:"",animationIn:"fadeIn",animationOut:"fadeOut",blockContent:"",boxLayout:"box",boxLayoutAdvanced:"0",automaticCookieDomainAndPath:"",cookieDomain:"",cookiePath:"",cookieSameSite:"Lax",cookieSecure:!0,cookieLifetime:"365",crossDomainCookie:[],cookieBeforeConsent:"",cookiesForBots:"1",cookieVersion:"1",hideCookieBoxOnPages:[],respectDoNotTrack:"",reloadAfterConsent:"",reloadAfterOptOut:"1",showCookieBox:"1",cookieBoxIntegration:"javascript",ignorePreSelectStatus:"1",cookies:[]},n),t=h,u=i,b=c,m.consentSaved=document.createEvent("Event"),m.consentSaved.initEvent("borlabs-cookie-consent-saved",!0,!0),m.codeUnblocked=document.createEvent("Event"),m.codeUnblocked.initEvent("borlabs-cookie-code-unblocked",!0,!0),m.codeUnblockedAfterConsent=document.createEvent("Event"),m.codeUnblockedAfterConsent.initEvent("borlabs-cookie-code-unblocked-after-consent",!0,!0),G(),function(){if(Object.keys(u).length)for(var o in u)if(Object.keys(u[o]).length)for(var e in u[o])if(void 0!==u[o][e].settings&&void 0!==u[o][e].settings.blockCookiesBeforeConsent&&"1"===u[o][e].settings.blockCookiesBeforeConsent&&void 0!==u[o][e].cookieNameList&&!1===q(e))for(var t in u[o][e].cookieNameList)M(t,null,-1!==t.indexOf("*")),M(t,"",-1!==t.indexOf("*"))}(),e.cookieBeforeConsent&&(null!==v.uid&&"anonymous"!==v.uid||(v.uid=$()),"function"==typeof Object&&(void 0===Object.entries&&(Object.entries=function(o){for(var e=Object.keys(o),t=e.length,n=new Array(t);t--;)n[t]=[e[t],o[e[t]]];return n}),0===Object.entries(v.consents).length&&null===v.expires&&(function(){var o={},t=[],n=e.cookieLifetimeEssentialOnly,i=new Date;i.setTime(i.getTime()+24*parseInt(n)*60*60*1e3);var a=i.toUTCString();o.consents={},o.domainPath=e.cookieDomain+e.cookiePath,o.expires=a,o.uid=v.uid,o.version=null,t.push(g+"="+encodeURIComponent(JSON.stringify(o))),""!==e.cookieDomain&&""===e.automaticCookieDomainAndPath&&t.push("domain="+e.cookieDomain),t.push("path="+e.cookiePath),t.push("expires="+a),t.push("SameSite="+e.cookieSameSite),e.cookieSecure&&t.push("secure"),document.cookie=t.join(";"),G()}(),no(!0)))),o(a).length&&"SCRIPT"===o(a)[0].tagName&&o(a).after(o(a).html()),o(document).on("click","[data-cookie-accept]",(function(o){o.preventDefault(),N(),j()})),o(document).on("click","[data-cookie-accept-all]",(function(o){o.preventDefault(),A()})),o(document).on("click","[data-cookie-back]",(function(o){o.preventDefault(),I()})),o(document).on("click","[data-cookie-individual]",(function(o){o.preventDefault(),D()})),o(document).on("click","[data-cookie-refuse]",(function(e){e.preventDefault();var t=[];o(s+":checked").each((function(){-1===t.indexOf(this.value)&&(o(this).trigger("click"),t.push(this.value))})),N(),j()})),E(),U(),P(),!0===R()?(V(),F(),Y(),document.dispatchEvent(m.codeUnblocked),L()):e.showCookieBox?0===e.hideCookieBoxOnPages.length||-1===e.hideCookieBoxOnPages.indexOf(window.location.protocol+"//"+window.location.host+window.location.pathname)?e.cookiesForBots&&/bot|googlebot|crawler|spider|robot|crawling|lighthouse/i.test(navigator.userAgent.toLowerCase())?(J(e.cookies,!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):e.respectDoNotTrack&&void 0!==navigator.doNotTrack&&"1"===navigator.doNotTrack?(J({essential:e.cookies.essential},!1),V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):_(!0):(V(),F(),Y(),L(),document.dispatchEvent(m.codeUnblocked)):L(),o(document).on("click","[data-borlabs-cookie-unblock]",X),o(document).on("click","[data-borlabs-cookie-preference]",T),o(document).on("click",".borlabs-cookie-preference",T),o(document).on("change","[data-borlabs-cookie-switch]",H),o(document).on("keydown",(function(e){9===e.keyCode&&o(d).addClass("_brlbs-keyboard")})),o(document).on("mousedown",(function(e){o(d).is(":visible")&&o(d).removeClass("_brlbs-keyboard")})),o("body").on("focus",".BorlabsCookie._brlbs-keyboard input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).addClass("_brlbs-focused")})),o(d).on("blur","input[type='checkbox']",(function(e){var t=o(e.currentTarget).closest("label");t&&o(t).removeClass("_brlbs-focused")})),o("["+l+"]").length&&io(),so(),o("["+r+"]").length&&o("["+r+"]").each((function(){o(this).html(v.uid)})),!0)},initConsentHistoryTable:io,initSwitchConsentButtonStatus:so,openCookiePreference:T,removeConsent:W,showCookieBox:_,unblockContentId:function(e){o("[data-borlabs-cookie-type='content-blocker'][data-borlabs-cookie-id='"+e+"']").each((function(){Z(o(this).parents(".BorlabsCookie"))}))},unblockScriptBlockerId:function(e){var t="[data-borlabs-script-blocker-id='"+e+"']";return o(t).length&&(p.scriptBlockerId[e]=o(t).length,oo(t,e,"scriptBlockerId")),!0},unblockScriptBlockerJSHandle:function(e){var t="[data-borlabs-script-blocker-js-handle='"+e+"']";return o(t).length&&(p.jsHandle[e]=o(t).length,oo(t,e,"jsHandle")),!0},optOutDone:function(o){null!==x?x.length!==(x=x.filter((function(e,t,n){return e!==o}))).length?0!==x.length||C||(x=null,e.reloadAfterOptOut&&window.location.reload()):console.log('No opt out found for cookie "'+o+'"'):console.log("No opt out has been initialized")}}}()})();


document.addEventListener("DOMContentLoaded", function (e) {
var borlabsCookieContentBlocker = {"facebook": {"id": "facebook","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) { if(typeof FB === "object") { FB.XFBML.parse(el.parentElement); } },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"default": {"id": "default","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"googlemaps": {"id": "googlemaps","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"instagram": {"id": "instagram","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) { if (typeof instgrm === "object") { instgrm.Embeds.process(); } },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"openstreetmap": {"id": "openstreetmap","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"twitter": {"id": "twitter","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false}},"vimeo": {"id": "vimeo","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false,"saveThumbnails":false,"autoplay":false,"videoWrapper":false}},"youtube": {"id": "youtube","global": function (contentBlockerData) {  },"init": function (el, contentBlockerData) {  },"settings": {"executeGlobalCodeBeforeUnblocking":false,"changeURLToNoCookie":true,"saveThumbnails":false,"autoplay":false,"thumbnailQuality":"maxresdefault","videoWrapper":false}}};
    var BorlabsCookieInitCheck = function () {

    if (typeof window.BorlabsCookie === "object" && typeof window.jQuery === "function") {

        if (typeof borlabsCookiePrioritized !== "object") {
            borlabsCookiePrioritized = { optInJS: {} };
        }

        window.BorlabsCookie.init(borlabsCookieConfig, borlabsCookieCookies, borlabsCookieContentBlocker, borlabsCookiePrioritized.optInJS);
    } else {
        window.setTimeout(BorlabsCookieInitCheck, 50);
    }
};

BorlabsCookieInitCheck();});
