window.WPCAFR=function(t){"use strict";var e={done:!1},a=null,n=!1,i="wpca-show",o="wpca-hide",c="wpca-btn",r="wpca-trans-layer",s="hide",d="show",p="wpca-replacement-elem-",l="wpca-icon-close",u="wpca-cc-sett-box",w="wpca-blocked",h="wpca-btn-hide",f="wpca-btn-reset-has",g="text/template",b="txt",m="txt-processing",y="wpca-marked",v="wpca-marked-data",C="wpca-skip-bckp",k=200,D="bar",x="top",P=0,B=0,A=30,E=!1,I=!1,_=0,L=!1,N=!1,M=!1,O=!1,W=!1,F=!1,j=!1,R=200,T=[],z=!1,q=!1,H=200,S=["type","cc","selector","jsFunc"],U={barbox:null,accepting:!1,declining:!1,resetting:!1,savingcc:!1,showingLayer:!1,showingPopup:!1},V={wrapper:{},barbox:{},ccBox:{},wpadminbar:{},layer:{},privacyBtns:{},privacyBtn:{},closeBarBox:{},closePopup:{},popup:{},reconsiderIcon:{}},$={names:{init_ready:"wpca.init:ready",consent_after:"wpca.consent:after",decline_after:"wpca.decline:after",reset_after:"wpca.reset:after",cc_saved:"wpca.cc:saved",tp_init_before:"wpca.3rdpartyinit:before",tp_init_after:"wpca.3rdpartyinit:after",init_blocking_ready:"wpca.initblocking:ready",init_states_before:"wpca.initstates:before",popup_show:"wpca.popup:show",popup_hide:"wpca.popup:hide"},getName:function(t){var e,a="";if("string"!=typeof t)return a;for(e in this.names)if(t===e){a=this.names[e];break}return a},trigger:function(){var e="";if(0<arguments.length){var a=arguments[0];"string"!=typeof a&&(a=""),1<arguments.length&&[].shift.apply(arguments)}""!==(e=this.getName(a))&&t(window).triggerHandler(e,arguments)}},Y={unbind:function(){return t(window).off($.names.init_blocking_ready,Lt),t(window).off($.names.consent_after,Nt),t(window).off($.names.decline_after,Mt),t(window).off($.names.reset_after,Ot),X().off("click",Wt),t("body").off("click",".wpca-btn-accept",Ft),t("body").off("click",".wpca-btn-decline",jt),t("body").off("click",".wpca-btn-reset-consent",Rt),t("body").off("click",".wpca-btn-cc-settings, #wpca-icon-settings",Tt),V.closeBarBox.off("click",Ht),V.layer.off("click",St),V.closePopup.off("click",St),t(document).off("keyup",Yt),t(window).off("click",zt),t(".wpca-cc-sett-options input","."+u).off("click change",Ut),t(".wpca-btn-cc-save-sett","."+u).off("click",Vt),this},bind:function(a){return a&&this.unbind(),t(window).on($.names.init_blocking_ready,Lt),t(window).on($.names.consent_after,Nt),t(window).on($.names.decline_after,Mt),t(window).on($.names.reset_after,Ot),X().on("click",Wt),(it()||e.needButtonAcceptForCCPA())&&t("body").on("click",".wpca-btn-accept",Ft),t("body").on("click",".wpca-btn-decline",jt),t("body").on("click",".wpca-btn-reset-consent",Rt),t("body").on("click",".wpca-btn-cc-settings, #wpca-icon-settings",Tt),_t($t,{}),W&&V.closeBarBox.on("click",Ht),M&&(V.layer.on("click",St),V.closePopup.on("click",St),t(document).on("keyup",Yt)),e.isFirstVisit()&&(!q&&_?7===_?t(window).on("click",zt):6!==_||e.accepted()?5===_&&!e.accepted()||4===_&&!e.accepted()?(t(window).on("click",zt),_t(qt)):3!==_||e.accepted()?2!==_||e.accepted()||_t(qt):t(window).on("click",zt):_t(qt):q&&wpcaData.ccpa.consentAfterUse&&(t(window).on("click",zt),_t(qt))),t(".wpca-cc-sett-options input","."+u).on("click change",Ut),t(".wpca-btn-cc-save-sett","."+u).on("click",Vt),t(window).on("resize",(function(){Ct(U.barbox),kt(U.barbox)})),this}},G={MutationObzerverObj:null,ready:!1,obzervering:!1,handlerMutationObzerver:function(e){try{var a,n,i,o={},c=!1;for(a=0;a<e.length;a++)"childList"===(n=e[a]).type&&n.removedNodes.length&&(i=t(n.removedNodes[0])).isMarked()&&(o=i.data(v),c=i.data(C),"body"===o.context&&!0!==c&&(o.backup=!0,i.setMarkedDataObj(o).insertAfter(t(n.previousSibling)).hide()))}catch(t){WPIE.log(t.message,t)}},init:function(){return this.ready||(this.MutationObzerverObj=new MutationObserver(this.handlerMutationObzerver),this.ready=!0),this},obzerve:function(){return this.ready&&(this.MutationObzerverObj.observe(window.document.body,{attributes:!0,childList:!0,subtree:!0}),this.obzervering=!0),this},disconnect:function(){return this.obzervering&&(this.MutationObzerverObj.disconnect(),this.obzervering=!1),this}},J={isProcessingBtn:function(){return t(this).hasClass(c)&&t(this).is("[data-txt]")&&t(this).is("[data-txt-processing]")},processingBntState:function(e){var a=t(this);return a.isProcessingBtn()&&("process"===e?a.css({height:a.outerHeight()+"px"}).html(a.data(m)).trigger("focus"):a.html(a.data(b))),a},isMarked:function(){return t(this).is("[data-wpca-marked]")&&t(this).is("[data-wpca-marked-data]")},getMarkedData:function(e){if(void 0===e)return null;if(t(this).isMarked()){var a=t(this).data(v);return void 0!==a[e]?a[e]:null}return null},setMarkedDataObj:function(e,a){return void 0===e||"object"!=typeof e?t(this):this.each((function(){if(t(this).isMarked()){var n,i=t(this).data(v);for(n in e){var o=e[n];i[n]=o}t(this).data(v,i).attr("data-wpca-marked-data",JSON.stringify(i))}else!0===a&&t(this).attr("data-wpca-marked","1").attr("data-wpca-marked-data",JSON.stringify(e)).data(y,"1").data(v,e)}))},cbCheck:function(e){return void 0===e&&(e=!0),"boolean"!=typeof e&&(0===parseInt(e)?e=!1:1===parseInt(e)&&(e=!0)),t(this).prop("checked",e),t(this)},cbCheckForCategory:function(e,a){if(void 0===e)return t(this);if("string"!=typeof a&&!Array.isArray(a))return t(this);if(!t(this).hasClass(u))return t(this);Array.isArray(a)||(a=[a]);for(var n=0;n<a.length;n++){var i=a[n],o=t(this).find('.wpca-cc-sett-options input[data-cat="'+i+'"]');o.length&&(e&&!o.is(":checked")?o.cbCheck():!e&&o.is(":checked")&&o.cbCheck(0))}},hideButton:function(e){return void 0===e&&(e=!1),"boolean"!=typeof e&&(0===parseInt(e)?e=!1:1===parseInt(e)&&(e=!0)),e?t(this).addClass(h):t(this).removeClass(h),t(this)},hasPlaceholder:function(e){return 0<=e&&0<t("#wpca-replacement-elem-"+e).length}};function Q(t){if(!t||"string"!=typeof t.depName||""===t.depName)throw new Error("depName argument is not valid");return new Promise((function(e,a){setTimeout((async function(t){if(t.depName&&window[t.depName])return t.resolved=!0,e(t);t.maxRetries=t.maxRetries-1;var n=await Q(t);return n.resolved?e(n):0===n.maxRetries?a(`dependency ${n.depName} not found and max retries (${n.maxRetries}) reached`):void 0}),t.timeout,t)}))}async function K(t,e,a,n,i){return Q({depName:t,func:e,funcArgs:a,timeout:n,maxRetries:i}).then((function(t){!function(t,e,a){var n="string"==typeof t,i=!Array.isArray(e);if("function"!=typeof t&&!n)throw new Error("doFn() argument (fn) is not a valid function");i&&void 0!==e?e=[e]:i&&(e=[]);var o=n&&window[t]||t;if(e.length>0){if(a)return o.apply(this,e);o.apply(this,e)}else{if(a)return o.call();o.call()}}(t.func,t.funcArgs)}))}function X(){return t(".wpca-btn[data-txt][data-txt-processing]")}function Z(){var e=X();e.length>0&&e.each((function(){t(this).processingBntState("default")}))}function tt(e,a,n){var i,o=0,c=0;try{if(!(e instanceof jQuery))throw new Error('param "$el" needs to be a jQuery Object.');if("object"!=typeof a)throw new Error('param "obj" needs to be an Object to return width and height.');if(n&&(i=t('<div class="wpca-tmp"/>').css({display:"block",width:"100%",height:"1px",visibility:"hidden"}).appendTo(e),e=e.find(".wpca-tmp")),o=e.attr("width"),c=e.attr("height"),void 0!==o&&void 0!==c||(o=e[0].clientWidth,c=e[0].clientHeight),(!c||1===c)&&e.is("img")){var r=e.getMarkedData("src").match(/-(\d+)x(\d+)\.[a-z]+$/i);r&&(o=r[1],c=r[2])}}catch(t){a={},WPIE.log(t.message)}finally{return n&&i.remove(),a.w=parseInt(o),a.h=parseInt(c),0<a.w&&0<a.h}}function et(t,e,a,n,i,o){if(void 0===t||void 0===e)throw new Error("Could not set cookie. Name or value is undefined.");void 0===a&&(a=A),void 0===n&&(n=wpcaData.cookieDomain),void 0===i&&(i=wpcaData.cookiePath),void 0===o&&(o=wpcaData.ssl),WPIE.setKookie(t,e,a,n,i,o)}function at(t,e,a){if(void 0===t)throw new Error("Could not delete cookie. Name is undefined.");void 0===e&&(e=wpcaData.cookieDomain),void 0===a&&(a=wpcaData.cookiePath),WPIE.eraseKookie(t,e,a)}function nt(t){return WPIE.readKookie(t)}function it(){return-1===[5,6,7].indexOf(_)}function ot(){return null!=wpcaData.cookiesBeforeConsent&&3===wpcaData.cookiesBeforeConsent}function ct(t){return-1!==wpcaData.allowedCc.indexOf(t)}function rt(){N&&!U.showingLayer&&(U.showingLayer=!0,V.layer.removeClass(o),t("html").css("overflow","hidden"))}function st(){N&&U.showingLayer&&(U.showingLayer=!1,V.layer.addClass(o),t("html").css("overflow","initial"))}function dt(){M&&(U.showingPopup=!1,V.barbox.removeClass("wpca-cc-settings-open"),V.popup.addClass(o),e.doLayer()||st(),e.needConsentLayout()||pt(),$.trigger("popup_hide"))}function pt(){F&&(V.reconsiderIcon.removeClass(o),V.reconsiderIcon.addClass(i))}function lt(){F&&(V.reconsiderIcon.removeClass(i),V.reconsiderIcon.addClass(o))}function ut(){V.ccBox.each((function(){t(this).cbCheckForCategory(!1,wpcaData.allowedCc)}))}function wt(){ut(),V.ccBox.each((function(){t(this).cbCheckForCategory(!0,wpcaData.requiredCc)}))}function ht(){V.ccBox.each((function(){t(this).cbCheckForCategory(!0,wpcaData.allowedCc)}))}function ft(){var t=nt(wpcaData.cookieNameCc);return null!=t?t.split(","):[]}function gt(t){Array.isArray(t)||(t=[]),(L=0<t.length)&&t.sort((function(t,e){return wpcaData.allowedCc.indexOf(t)-wpcaData.allowedCc.indexOf(e)}));var e=ft(),a=L?t.join():"";at(wpcaData.cookieNameCc),L&&et(wpcaData.cookieNameCc,a),T=t,z=bt(t,e)}function bt(t,e){return 0<WPIE.arrDiff(t,e).length}function mt(t){switch(void 0===t||0==t?d:t){case s:V.barbox.removeClass(i),V.barbox.addClass(o),pt();break;case d:default:lt(),V.barbox.removeClass(o),V.barbox.addClass(i)}}function yt(e,a){var n,i,o;if((n=""!==a?t('script[src$="'+a+'"]'):e).length>1&&n.each((function(){if(t(this).isMarked()&&!t(this).data(C))return n=t(this),!1})),!0===n.data(C))return n;n.data(C,!0).attr("data-wpca-skip-bckp",!0),o=n[0].nextSibling,i=t(n[0].cloneNode(!0)),o&&8==o.nodeType&&"[wpca_mrkd]"==o.nodeValue&&o.parentNode.removeChild(o);try{n.after(i)}catch(t){}return n.remove(),i.after(document.createComment("[wpca_mrkd]")),i}function vt(e,a,n,i){var o,c,r,s=wpcaData.doPlaceholder?t("#wpca-placeholer-html").html():"",d=e.data(v),l=e.getMarkedData("type"),u=e.getMarkedData("placeholder"),h=e.getMarkedData("blocked"),f=e.getMarkedData("backup"),b=e.getMarkedData("context"),m=e.getMarkedData("src"),y=e.getMarkedData("srcset"),k=e.getMarkedData("nodeName"),D=e.hasPlaceholder(a),x=null!==m,P=null!==y,B=wpcaData.ccLabels&&wpcaData.ccLabels[n]||n,A=e.is("script"),E=e.is("iframe"),I=!e.is("iframe")&&"iframe"===k,_=e.is("img"),L=e.is("a"),N="",M={};if(!(i&&h&&u&&D)){if(i)d.blocked=1,A?(e.attr("type",g),x&&e.attr("src")!==wpcaData.blockedAssetsUri.js&&e.attr("src",wpcaData.blockedAssetsUri.js)):E||I?x&&e.attr("src")!==wpcaData.blockedAssetsUri.iframe&&e[0].contentWindow.location.replace(wpcaData.blockedAssetsUri.iframe):_?(x&&e.attr("src")!==wpcaData.blockedAssetsUri.img&&e.attr("src",wpcaData.blockedAssetsUri.img),P&&e.attr("srcset","")):L&&x&&e.attr("href")!==wpcaData.blockedAssetsUri.a&&e.attr("href",wpcaData.blockedAssetsUri.a);else if(d.blocked=0,x&&(L?e.attr("href",m):E?e[0].contentWindow.location.replace(m):e.attr("src",m)),P&&e.attr("srcset",y),A&&(e[0].hasAttribute("type")&&g===e.attr("type")&&e.attr("type","text/javascript"),e=yt(e,x?m:"")),I){var O={};t.each(e[0].attributes,(function(t,e){O[e.nodeName]=e.nodeValue})),e.data(C,!0).attr("data-wpca-skip-bckp",!0).replaceWith((function(){return O.text=t(this).text(),e=t("<iframe />",O)}))}if("body"===b)if(o="",i){if(u&&wpcaData.doPlaceholder){if(d.id=a,N=s.replace(/cc="%CC%/g,`cc="${n}`).replace(/wpca-replace-%CC%/g,`wpca-replace-${n}`).replace(/%TYPE%/g,l).replace(/%CC%/g,B),(o=t(N)).attr("id",p+a),""!==(r=e.getMarkedData("txt"))&&o.find(".wpca-replace-txt").html(r),!tt(e,M)&&0<e.children().length&&(0===(c=e.find("[width][height]")).length?c=e.children(":first"):1<c.length&&(c=c.first()),tt(c,M)),wpcaData.minPlacehoderDim.w<=M.w&&wpcaData.minPlacehoderDim.h<=M.h){var W,F={},j=M.h/M.w,R={width:M.w,"min-height":M.h};wpcaData.doPlaceholderParentSizing&&tt(e.parent(),F,!0)&&M.w>F.w&&(F.w>1?W=F.w:0===F.w&&(W=M.w),R={"min-height":W*j+"px"}),o.css(R)}f&&e.show().prev().hide(),e.after(o)}e.addClass(w)}else i||(f&&e.hide().prev().show(),t("#wpca-replacement-elem-"+a).remove(),e.removeClass(w));e.setMarkedDataObj(d)}}function Ct(e){if(x=V.barbox.hasClass("wpca-top")?"top":"bottom",P=V.barbox.innerHeight(),"box"===D){I&&(x="top",t("body").css("position","relative"));var a=parseInt(V.barbox.data("space"));P=0<a?P+a:P}E&&d===e&&("top"===x||I)?600<t(window).width()?(P=Math.abs(V.wpadminbar.innerHeight()-P),B=V.wpadminbar.innerHeight()):(t("body").css("position",""),B=window.pageYOffset<=V.wpadminbar.innerHeight()?Math.abs(V.wpadminbar.innerHeight()-window.pageYOffset):0):B=0}function kt(e){if(null!==e){var a={};mt(e),d===e?I&&640<t(window).width()?a={top:""}:("top"===x&&(a={top:B+"px"}),"bottom"===x&&(a={bottom:B+"px"})):("top"===x&&(a={top:"-"+P+"px"}),"bottom"===x&&(a={bottom:"-"+P+"px"})),V.barbox.css(a)}}function Dt(){t(".wpca-btn-reset-consent").length&&t(".wpca-btn-reset-consent").each((function(){var a=t(this),n=a.next(".wpca-btn-accept");n.addClass(f),e.needToReplaceResetByAccept()?(a.hideButton(1),n.hideButton(0)):(a.hideButton(0),n.hideButton(1))})),!t(".wpca-btn-accept").length||e.needButtonAccept()||e.needButtonAcceptForCCPA()?t(".wpca-btn-accept").not(".wpca-btn-reset-has").hideButton(0):t(".wpca-btn-accept").not(".wpca-btn-reset-has").hideButton(1),!t(".wpca-btn-decline").length||e.needButtonDecline()||e.needButtonDeclineForCCPA()?t(".wpca-btn-decline").hideButton(0):t(".wpca-btn-decline").hideButton(1),t(".wpca-btn-cc-settings").length&&t(".wpca-btn-cc-settings").hideButton(0)}function xt(a){(function(){var a,n=t("wpca-block").not("[data-wpca-marked-auto]"),i=t('[data-wpca-marked="1"]'),o=[];for(a=0;a<n.length;a++){var c=t(n[a]),r=c.find("[data-wpca-marked-auto]"),s=c.data("txt")||"",d=c.data("type")||"",p=!1!==c.data("placeholder");if(0<r.length)r.setMarkedDataObj({txt:s,type:d,placeholder:p});else if(""!==(w=c.data("cc")||"")){var l={id:0};l.cc=w,l.txt=s,l.type=d,l.context="body",l.blocked=1,l.placeholder=p,c.setMarkedDataObj(l,!0)}}for(a=0;a<i.length;a++){var u=(c=t(i[a])).getMarkedData("dep"),w=c.getMarkedData("cc"),h=e.doBlockCookies(w),f=null!==u&&""!==u.name,g=f&&u.dt>=0,b=f&&u.r>0,m=parseInt(g&&u.dt||200),y=parseInt(b&&u.r||3);c.isMarked()&&(c.is("script")&&f&&!h?o.push(K(u.name,vt,[c,a,w,h],m,y)):vt(c,a,w,h))}return Promise.all(o)})().catch((function(t){WPIE.log(t.message,t)})).then((function(){$.trigger("init_blocking_ready")})).finally((function(){var n,i,o,c;$.trigger("init_states_before",{args:a}),Dt(),Ct(a.states.barbox),a.animate?(n=a.states.barbox,i={},o=n===d,c=n===s,e.hasLayout()&&o||!e.hasLayout()&&c||(I?i=e.hasLayout()?{top:"-"+P+"px"}:{top:"50%"}:"top"===x?i=e.hasLayout()?{top:"-"+P+"px"}:{top:B+"px"}:"bottom"===x&&(i=e.hasLayout()?{bottom:"-"+P+"px"}:{bottom:B+"px"}),!e.hasLayout()&&o&&mt(d),V.barbox.animate(i,k,(function(){!e.hasLayout()&&o?mt(d):e.hasLayout()&&c&&mt(s)})))):kt(a.states.barbox),Z(),e.isFirstVisit()?wt():(ut(),V.ccBox.each((function(){t(this).cbCheckForCategory(!0,T)}))),V.ccBox.each((function(){t(this).show()})),U.showingPopup&&dt(),e.doLayer()?rt():st()}))}function Pt(t){if("object"!=typeof t)throw new Error("Could not initialize: no valid args found.");if(void 0===t.states||void 0===t.states.barbox)throw new Error("Could not initialize the bar/box layout: states.barbox argument not found.");void 0===t.animate&&(t.animate=!1),t.hasBtn="object"==typeof t.btn,t.timeout=parseInt(200),0<t.timeout?setTimeout((function(){xt(t)}),t.timeout):xt(t)}function Bt(){window.dataLayer=window.dataLayer||[],setTimeout((function(){var t,e=ft();if(e.length||(e=wpcaData.requiredCc),t=e.join(","),e.length>0){var a={},n={};a[wpcaData.gtm.dataLayerVar]=t,n.event=wpcaData.gtm.dataLayerEventPrefix+e.join("_").replace("-","_"),dataLayer.push(a),dataLayer.push(n)}}),200)}function At(t,a){U.accepting||(e.acceptedAll()||(U.accepting=!0,et(wpcaData.cookieNameConsent,"1"),void 0===a&&(a=wpcaData.allowedCc),Array.isArray(a)&&a.length&&gt(a),U.accepting=!1),$.trigger("consent_after",{categories:a,btn:t}))}function Et(t,a){U.declining||(e.declined()||(U.declining=!0,et(wpcaData.cookieNameConsent,"0"),void 0===a&&(a=wpcaData.requiredCc),Array.isArray(a)&&a.length&&gt(a),wt(),U.declining=!1),$.trigger("decline_after",{categories:a,btn:t}))}function It(t){U.resetting||(U.resetting=!0,at(wpcaData.cookieNameConsent),gt([]),ht(),U.resetting=!1,$.trigger("reset_after",{btn:t}))}function _t(t,e){window.addEventListener?(window.addEventListener("scroll",(function(a){var n=window.event||a;t(n,e)}),!1),window.addEventListener("mousewheel",(function(a){var n=window.event||a;t(n,e)}),!1),window.addEventListener("DOMMouseScroll",(function(a){var n=window.event||a;t(n,e)}),!1),window.addEventListener("touchmove",(function(a){var n=window.event||a;t(n,e)}),!1)):window.attachEvent("onmousewheel",(function(a){var n=window.event||a;t(n,e)}))}function Lt(t){wpcaData.init3rdPartyItems&&wpcaData.init3rdPartyItems.length>-1&&setTimeout((function(){try{for(var t=0;t<wpcaData.init3rdPartyItems.length;t++){var a=wpcaData.init3rdPartyItems[t];switch(WPIE.checkForRequiredProps(S,a,!0,"3rdPartyItem"),$.trigger("tp_init_before",a),a.type){case"avada-fusion-gmaps":e.initFusionGmaps(a);break;case"divi-gmaps":e.initDiviGmaps(a);break;default:e.initRegistered3rdParty(a)}$.trigger("tp_init_after",a)}}catch(t){WPIE.log(t.message,t)}}),H)}function Nt(t,a){void 0===a.btn&&(a.btn=!1),e.needPageReloadAfterConsent()&&window.location.reload(!0),wpcaData.gtm.optimize&&Bt(),e.acceptedAll()&&ht(),U.barbox=s,Pt({states:U,btn:a.btn,animate:!0})}function Mt(t,e){void 0===e.btn&&(e.btn=!1),U.barbox=s,Pt({states:U,btn:e.btn,animate:!0})}function Ot(t,e){void 0===e.btn&&(e.btn=!1),U.barbox=d,Pt({states:U,btn:e.btn,animate:!0}),Y.unbind().bind()}function Wt(e){try{e.preventDefault(),t(this).processingBntState("process")}catch(t){WPIE.log(t.message,t)}}function Ft(a){try{a.preventDefault();var n=t(this).data("cc"),i=[n];return ct(n)?(function(t){for(var e=0;e<wpcaData.requiredCc.length;e++){var a=wpcaData.requiredCc[e];-1===t.indexOf(a)&&t.push(a)}}(i=e.hasClientThisCookieCategory(n)?T:T.concat(i)),At(t(this),i)):At(t(this)),!1}catch(t){WPIE.log(t.message,t)}}function jt(e){try{return e.preventDefault(),Et(t(this)),!1}catch(t){WPIE.log(t.message,t)}}function Rt(e){try{return e.preventDefault(),It(t(this)),!1}catch(t){WPIE.log(t.message,t)}}function Tt(t){try{return t.preventDefault(),M&&(U.showingPopup=!0,rt(),V.barbox.addClass("wpca-cc-settings-open"),V.popup.removeClass(o),lt(),$.trigger("popup_show")),!1}catch(t){WPIE.log(t.message,t)}}function zt(a){try{if(e.doLayer())return!1;if(window===a.currentTarget&&"click"===a.type){var n=a.target;if("IMG"===n.nodeName&&"A"===n.parentNode.nodeName&&(n=n.parentNode),"A"===n.nodeName){if(e.accepted()||e.declined())return;t(n).hasClass(wpcaData.policyCssClass)||(a.preventDefault(),At(!1),window.location=n.href)}}}catch(t){WPIE.log(t.message,t)}}function qt(a,n){try{if(-1!==window.location.search.indexOf(wpcaData.queryVarBypass+"=1"))return!1;var i;if(e.accepted()||e.declined())return!1;if(i=t(window).scrollTop(),R>i)return!1;if(e.doLayer())return!1;At(!1)}catch(t){WPIE.log(t.message,t)}}function Ht(t){try{return j?Et(!1):At(!1),!1}catch(t){WPIE.log(t.message,t)}}function St(t){try{var e=r===t.target.id,a=-1!==(t.target.className.baseVal||t.target.parentElement.className.baseVal).indexOf(l);return(e||a)&&dt(),!1}catch(t){WPIE.log(t.message,t)}}function Ut(e){try{var a=t(this),n=a.parents("."+u).data("id"),i=u+"-"+n,o=a.data("cat"),c=a.is(":checked");V.ccBox.not("#"+i).each((function(){t(this).cbCheckForCategory(c,o)}))}catch(t){WPIE.log(t.message,t)}}function Vt(e){try{e.preventDefault();var a=t(this),n=function(e){var a=[];return e&&e.each((function(){var e=t(this),n=e.data("cat");if(!ct(n))throw new Error(n+" is not an allowed cookie category.");e.is(":checked")&&a.push(n)})),a}(function(t){return t.parents("."+u).find(".wpca-cc-sett-options input")}(a));return(z=bt(n,T))?(function(t){for(var e=[],a=0;a<wpcaData.requiredCc.length;a++){var n=wpcaData.requiredCc[a];e.push(-1!==t.indexOf(n))}return-1===e.indexOf(!1)}(n)||(n=wpcaData.requiredCc,WPIE.alert("not all required categories found. Required: "+wpcaData.requiredCc.join())),t(window).one($.names.cc_saved,(function(t,e){At(a,e.categories)})),function(t,e){!U.savingcc&&z&&(U.savingcc=!0,Array.isArray(e)&&e.length&&gt(e),U.savingcc=!1,$.trigger("cc_saved",{categories:e}))}(0,n),!1):(Z(),void dt())}catch(t){WPIE.log(t.message,t)}}function $t(e){if(E&&"top"===x&&d===U.barbox&&600>=t(window).width()){var a=null;window.pageYOffset<V.wpadminbar.innerHeight()?a=V.wpadminbar.innerHeight()-window.pageYOffset:V.wpadminbar.innerHeight()<=window.pageYOffset&&(a=0),null!==a&&V.barbox.css("top",a+"px")}}function Yt(t){27===t.keyCode&&U.showingPopup&&dt()}return e.handlerOnload=function(t){setTimeout((function(){try{wpcaData.gtm.optimize&&Bt()}catch(t){WPIE.log(t.message,t)}finally{window.removeEventListener("load",e.handlerOnload,!1)}}),0)},e.acceptedAll=function(){return!(!this.accepted()||!this.hasClientCookieCategoriesAll())||!(!this.accepted()||L)},e.accepted=function(){return"1"===nt(wpcaData.cookieNameConsent)},e.declined=function(){return"0"===nt(wpcaData.cookieNameConsent)},e.isFirstVisit=function(){return!this.accepted()&&!this.declined()},e.isBypassingConsent=function(){return wpcaData.bypassingConsent},e.needButtonAccept=function(){return!this.acceptedAll()&&it()},e.needButtonAcceptForCCPA=function(){return q&&wpcaData.ccpa.showBtnAccept&&!this.acceptedAll()},e.needButtonDecline=function(){return!this.declined()&&!this.accepted()&&!ot()},e.needButtonDeclineForCCPA=function(){return q&&wpcaData.ccpa.showBtnDecline&&!this.declined()},e.needToReplaceResetByAccept=function(){return!this.accepted()&&wpcaData.replaceResetBtn},e.needPageReloadAfterConsent=function(){return wpcaData.reloadAfterConsent},e.needConsentLayout=function(){return!this.isBypassingConsent()&&!this.declined()&&!!this.isFirstVisit()},e.doLayer=function(){return(""===wpcaData.cookiePolicyPathRel||wpcaData.cookiePolicyPathRel!==window.location.pathname)&&(!q||""===wpcaData.ccpa.dnsmpiUrlRel||wpcaData.ccpa.dnsmpiUrlRel!==window.location.pathname)&&!!e.needConsentLayout()&&1===_&&wpcaData.showLayer&&N},e.getClientCookieCategoriesDeclined=function(){return WPIE.arrDiff(wpcaData.allowedCc,T)},e.hasClientCookieCategoriesAll=function(){return!!L&&0===this.getClientCookieCategoriesDeclined().length},e.hasClientThisCookieCategory=function(t){return L&&-1!==T.indexOf(t)},e.hasLayout=function(){return V.barbox.hasClass(i)},e.triggerResetConsent=function(){try{It()}catch(t){WPIE.log(t.message,t)}},e.doBlockCookies=function(t){t=void 0!==t?t.trim():"";var e,a=this.hasClientCookieCategoriesAll(),n=!1,i=!0;return""!==t&&ct(t)&&(n=!0,e=this.hasClientThisCookieCategory(t)),(n&&e||this.accepted()&&a||this.accepted()&&!L||this.isFirstVisit()&&ot())&&(i=!1),i},e.getEventName=function(t){return $.getName(t)},e.initContentForCc=function(t,e,a){if(ct(t.cc)&&!this.doBlockCookies(t.cc))try{e="string"==typeof e?e:t.jsFunc,t.depName||(t.depName=e),K(t.depName,e,a,parseInt(t.depDt||200),parseInt(t.depRetries||3)).catch((function(t){WPIE.log(t)}))}catch(t){WPIE.log(t.message,t)}},e.initRegistered3rdParty=function(t){this.initContentForCc(t)},e.initFusionGmaps=function(a){t(".fusion-google-map").each((function(){var n="fusion_run_map_"+t(this).attr("id");a.jsFunc=n,e.initContentForCc(a)}))},e.initDiviGmaps=function(a){t(".et_pb_map_container").each((function(){a.jsFunc="et_pb_map_init",e.initContentForCc(a,null,t(this))}))},e.doLayoutHTMLRequest=function(){var e={},i={},o=!1;if(n=!0,-1!==window.location.search.indexOf("wpca-fm=rest")&&(o=!0),"rest"===wpcaData.fetchMethod||o){o&&(i["wpca-do-rest"]="1"),i._wpnonce=wpcaData.restNonce;var c=wpcaData.restUrl+wpcaData.ns+"/v1/fetch-layout";a=t.get(c,i,"html")}else i.context=wpcaData.ajaxContextFrontend,e.action="wpie-action",e[wpcaData.ns+"_action"]="wpca-frontend-render-layout",e.data=i,e.nonce=wpcaData.nonce,a=t.get(wpcaData.ajaxurl,e,"html")},e.loadLayout=function(){if(V.wrapper=t("#wpca-lay-out-wrapper"),V.wrapper.length)return a.done((function(t){return V.wrapper.html(t),!0})).fail((function(t){t.responseJSON&&t.responseJSON.message&&WPIE.log(t.responseJSON.message)}));throw new Error("missing wrapper element")},e.init=function(){try{if(this.done)return;wpcaData.loadHtmlEarly||n||e.doLayoutHTMLRequest(),this.loadLayout().done((function(){D=wpcaData.layout,V.barbox=t("#wpca-"+D),V.wpadminbar=t("#wpadminbar"),V.privacyBtns=t("."+wpcaData.policyCssClass),V.privacyBtn=V.barbox.find("."+wpcaData.policyCssClass),V.ccBox=t("."+u),V.layer=t("#"+r),V.popup=t("#wpca-popup-modal"),V.closeBarBox=V.barbox.find(".wpca-icon-close"),V.closePopup=V.popup.find(".wpca-icon-close"),V.reconsiderIcon=t("#wpca-reconsider-icon"),j=wpcaData.useXAsDismiss,_=parseInt(wpcaData.consentMethod),A=wpcaData.cookieExpire?wpcaData.cookieExpire:A,R=0<=wpcaData.minScrollTop?wpcaData.minScrollTop:R,T=ft(),I=V.barbox.hasClass("wpca-ct"),E=null!=V.wpadminbar[0],N=0<V.layer.length,M=0<V.popup.length,O=wpcaData.hasClose,L=0<T.length,W=O&&0<V.closeBarBox.length,F=0<V.reconsiderIcon.length,k=0<=wpcaData.animateDuration?wpcaData.animateDuration:k,q=null!=wpcaData.ccpa,H=wpcaData.init3rdPartyTimeout||H,e.isFirstVisit()&&T.length&&at(wpcaData.cookieNameCc),U.barbox=e.needConsentLayout()?d:s,t.fn.extend(J),Pt({states:U}),Y.bind(),G.init().obzerve(),e.done=!0,$.trigger("init_ready")}))}catch(t){WPIE.log(t.message,t)}},e}(jQuery||{},window.WPCAFR),function(t){try{WPIE.checkForRequiredProps(["loadHtmlEarly","fetchMethod","layout","policyCssClass","cookiePolicyPathRel","queryVarBypass","cookieNameConsent","cookieNameCc","cookiesBeforeConsent","consentMethod","showLayer","hasClose","useXAsDismiss","minScrollTop","bypassingConsent","ssl","allowedCc","requiredCc","replaceResetBtn","doPlaceholder","doPlaceholderParentSizing","blockedAssetsUri","reloadAfterConsent","minPlacehoderDim","animateDuration","gtm","init3rdPartyTimeout","init3rdPartyItems","ccLabels"],wpcaData,!1,"wpcaData"),wpcaData.loadHtmlEarly&&WPCAFR.doLayoutHTMLRequest(),t((function(t){WPCAFR.init()})),window.addEventListener("load",WPCAFR.handlerOnload,!1)}catch(t){WPIE.log(t.message,t)}}(jQuery||{});