function ownKeys(t,e){var o,n=Object.keys(t);return Object.getOwnPropertySymbols&&(o=Object.getOwnPropertySymbols(t),e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0).forEach(function(e){_defineProperty(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):ownKeys(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}function _regenerator(){var f,e="function"==typeof Symbol?Symbol:{},t=e.iterator||"@@iterator",o=e.toStringTag||"@@toStringTag";function n(e,t,o,n){var a,c,i,r,l,s,u,d,p,t=t&&t.prototype instanceof b?t:b,t=Object.create(t.prototype);return _regeneratorDefine2(t,"_invoke",(a=e,c=o,u=n||[],d=!1,p={p:s=0,n:0,v:f,a:_,f:_.bind(f,4),d:function(e,t){return i=e,r=0,l=f,p.n=t,m}},function(e,t,o){if(1<s)throw TypeError("Generator is already running");for(d&&1===t&&_(t,o),r=t,l=o;(h=r<2?f:l)||!d;){i||(r?r<3?(1<r&&(p.n=-1),_(r,l)):p.n=l:p.v=l);try{if(s=2,i){if(h=i[e=r?e:"next"]){if(!(h=h.call(i,l)))throw TypeError("iterator result is not an object");if(!h.done)return h;l=h.value,r<2&&(r=0)}else 1===r&&(h=i.return)&&h.call(i),r<2&&(l=TypeError("The iterator does not provide a '"+e+"' method"),r=1);i=f}else if((h=(d=p.n<0)?l:a.call(c,p))!==m)break}catch(e){i=f,r=1,l=e}finally{s=1}}return{value:h,done:d}}),!0),t;function _(e,t){for(r=e,l=t,h=0;!d&&s&&!o&&h<u.length;h++){var o,n=u[h],a=p.p,c=n[2];3<e?(o=c===t)&&(l=n[(r=n[4])?5:r=3],n[4]=n[5]=f):n[0]<=a&&((o=e<2&&a<n[1])?(r=0,p.v=t,p.n=n[1]):a<c&&(o=e<3||n[0]>t||c<t)&&(n[4]=e,n[5]=t,p.n=c,r=0))}if(o||1<e)return m;throw d=!0,t}}var m={};function b(){}function a(){}function c(){}var h=Object.getPrototypeOf,e=[][t]?h(h([][t]())):(_regeneratorDefine2(h={},t,function(){return this}),h),i=c.prototype=b.prototype=Object.create(e);function r(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(i),e}return _regeneratorDefine2(i,"constructor",a.prototype=c),_regeneratorDefine2(c,"constructor",a),_regeneratorDefine2(c,o,a.displayName="GeneratorFunction"),_regeneratorDefine2(i),_regeneratorDefine2(i,o,"Generator"),_regeneratorDefine2(i,t,function(){return this}),_regeneratorDefine2(i,"toString",function(){return"[object Generator]"}),(_regenerator=function(){return{w:n,m:r}})()}function _regeneratorDefine2(e,t,o,n){var c=Object.defineProperty;try{c({},"",{})}catch(e){c=0}(_regeneratorDefine2=function(e,t,o,n){function a(t,o){_regeneratorDefine2(e,t,function(e){return this._invoke(t,o,e)})}t?c?c(e,t,{value:o,enumerable:!n,configurable:!n,writable:!n}):e[t]=o:(a("next",0),a("throw",1),a("return",2))})(e,t,o,n)}function asyncGeneratorStep(e,t,o,n,a,c,i){try{var r=e[c](i),l=r.value}catch(e){return void o(e)}r.done?t(l):Promise.resolve(l).then(n,a)}function _asyncToGenerator(r){return function(){var e=this,i=arguments;return new Promise(function(t,o){var n=r.apply(e,i);function a(e){asyncGeneratorStep(n,t,o,a,c,"next",e)}function c(e){asyncGeneratorStep(n,t,o,a,c,"throw",e)}a(void 0)})}}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,a,c,i,r=[],l=!0,s=!1;try{if(c=(o=o.call(e)).next,0===t){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=c.call(o)).done)&&(r.push(n.value),r.length!==t);l=!0);}catch(e){s=!0,a=e}finally{try{if(!l&&null!=o.return&&(i=o.return(),Object(i)!==i))return}finally{if(s)throw a}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _callSuper(e,t,o){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,o||[],_getPrototypeOf(e).constructor):t.apply(e,o))}function _possibleConstructorReturn(e,t){if(t&&("object"==_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createForOfIteratorHelper(e,t){var o,n,a,c,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return a=!(n=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return n=e.done,e},e:function(e){a=!0,o=e},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}};if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),c=0,{s:t=function(){},n:function(){return c>=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){var o;if(e)return"string"==typeof e?_arrayLikeToArray(e,t):"Map"===(o="Object"===(o={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:o)||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,o){return t&&_defineProperties(e.prototype,t),o&&_defineProperties(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function _defineProperty(e,t,o){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0===o)return("string"===t?String:Number)(e);o=o.call(e,t||"default");if("object"!=_typeof(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}function _typeof(e){return(_typeof="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)}function apbctSetEmailDecoderPopupAnimation(){var e=["apbct_dog_one","apbct_dog_two","apbct_dog_three"],t=document.createElement("div");t.classList="apbct-ee-animation-wrapper";for(var o=0;o<e.length;o++){var n=document.createElement("span");n.classList="apbct_dog "+e[o],n.innerText="@",t.append(n)}return t}function ctFillDecodedEmailHandler(){var e,t,o,n=0<arguments.length&&void 0!==arguments[0]&&arguments[0],a=!1,c="",i="",r=("undefined"!=typeof ctPublic?(this.removeEventListener("click",ctFillDecodedEmailHandler),a=this,ctPublic.encodedEmailNodesIsMixed=!1,c=ctPublic.wl_brandname,i=ctPublic.encodedEmailNodes):"undefined"!=typeof ctAdminCommon&&(c=ctAdminCommon.plugin_name,i=ctAdminCommon.encodedEmailNode),document.body.classList.add("apbct-popup-fade"),document.getElementById("apbct_popup"));r?(r.setAttribute("style","display: inherit"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_wait_for_decoding?document.getElementById("apbct_popup_text").innerHTML=ctPublicFunctions.text__ee_wait_for_decoding:document.getElementById("apbct_popup_text").innerHTML=ctAdminCommon.text__ee_wait_for_decoding):((r=document.createElement("div")).setAttribute("class","apbct-popup apbct-email-encoder-popup"),r.setAttribute("id","apbct_popup"),(e=document.createElement("span")).classList="apbct-email-encoder-elements_center",(t=document.createElement("p")).innerText=c,t.setAttribute("class","apbct-email-encoder--popup-header"),e.append(t),(c=document.createElement("div")).setAttribute("id","apbct_popup_text"),c.setAttribute("class","apbct-email-encoder-elements_center"),c.style.color="black",(t=document.createElement("p")).id="apbct_email_ecoder__popup_text_node_first","undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_wait_for_decoding?t.innerText=ctPublicFunctions.text__ee_wait_for_decoding:t.innerText=ctAdminCommon.text__ee_wait_for_decoding,t.setAttribute("class","apbct-email-encoder-elements_center"),(o=document.createElement("p")).id="apbct_email_ecoder__popup_text_node_second","undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_decoding_process?o.innerText=ctPublicFunctions.text__ee_decoding_process:o.innerText=ctAdminCommon.text__ee_decoding_process,c.append(t),c.append(o),r.append(e),r.append(c),r.append(apbctSetEmailDecoderPopupAnimation()),document.body.append(r)),apbctAjaxEmailDecodeBulk(n,i,a)}function apbctAjaxEmailDecodeBulk(e,t,o){if(e&&o){for(var n={post_url:document.location.href,referrer:document.referrer,encodedEmails:""},a=(+ctPublic.bot_detector_enabled?n.event_token=apbctLocalStorage.get("bot_detector_event_token"):n.event_javascript_data=getJavascriptClientData(),{}),c=0;c<t.length;c++){void 0!==t[c].href&&0===t[c].href.indexOf("mailto:")&&(e.preventDefault(),ctPublic.encodedEmailNodesIsMixed=!0);var i=document.createElement("div");i.setAttribute("class","apbct-tooltip"),apbct(t[c]).append(i),a[c]=t[c].dataset.originalString}n.encodedEmails=JSON.stringify(a),"rest"===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("apbct_decode_email",{data:n,method:"POST",callback:function(e){ctSetCookie("apbct_email_encoder_passed",ctPublic.emailEncoderPassKey,""),apbctEmailEncoderCallbackBulk(e,t,o)},onErrorCallback:function(e){resetEncodedNodes(),ctShowDecodeComment(e)}}):(n.action="apbct_decode_email",apbct_public_sendAJAX(n,{notJson:!1,callback:function(e){ctSetCookie("apbct_email_encoder_passed",ctPublic.emailEncoderPassKey,""),apbctEmailEncoderCallbackBulk(e,t,o)},onErrorCallback:function(e){resetEncodedNodes(),ctShowDecodeComment(e)}}))}else{var n=t.dataset.originalString,n={encodedEmails:JSON.stringify({0:n})},r=document.createElement("div");r.setAttribute("class","apbct-tooltip"),t.appendChild(r),apbct_admin_sendAJAX({action:"apbct_decode_email",encodedEmails:n.encodedEmails},{callback:function(e){apbctEmailEncoderCallbackBulk(e,t,!1)},notJson:!0})}}function apbctEmailEncoderCallbackBulk(c,i){var e,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];c.success&&!0===c.data[0].is_allowed?setTimeout(function(){var t,e,o,n,a=document.getElementById("apbct_popup");null!==a&&(n="",n=r?(c.data.forEach(function(e){e.encoded_email===r.dataset.originalString&&(t=e)}),t.decoded_email.split(/[&?]/)[0]):c.data[0].decoded_email,o=a.querySelector("#apbct_email_ecoder__popup_text_node_first"),(e=document.createElement("b")).setAttribute("class","apbct-email-encoder-select-whole-email"),e.innerText=n,"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_click_to_select?e.title=ctPublicFunctions.text__ee_click_to_select:e.title=ctAdminCommon.text__ee_click_to_select,o&&("undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_original_email?o.innerHTML=ctPublicFunctions.text__ee_original_email+"&nbsp;"+e.outerHTML:o.innerHTML=ctAdminCommon.text__ee_original_email+"&nbsp;"+e.outerHTML,o.setAttribute("style","flex-direction: row;")),(n=a.querySelector(".apbct-ee-animation-wrapper"))&&n.remove(),(e=a.querySelector("#apbct_email_ecoder__popup_text_node_second"))&&e.remove(),(o=document.createElement("span")).classList="apbct-email-encoder-elements_center top-margin-long",document.querySelector(".apbct-email-encoder-got-it-button")||(n=document.createElement("button"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_got_it?n.innerText=ctPublicFunctions.text__ee_got_it:n.innerText=ctAdminCommon.text__ee_got_it,n.classList="apbct-email-encoder-got-it-button",n.addEventListener("click",function(){document.body.classList.remove("apbct-popup-fade"),a.setAttribute("style","display:none"),fillDecodedNodes(i,c),"undefined"!=typeof ctPublic&&ctPublic.encodedEmailNodesIsMixed&&r&&r.click()}),o.append(n),a.append(o)))},3e3):r?(e="unknown_error",c.hasOwnProperty("data")&&0<c.data.length&&"object"===_typeof(c.data[0])&&"string"==typeof c.data[0].comment&&(e=c.data[0].comment),c.success?(resetEncodedNodes(),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_blocked?ctShowDecodeComment(ctPublicFunctions.text__ee_blocked+": "+e):ctShowDecodeComment(ctAdminCommon.text__ee_blocked+": "+e)):(resetEncodedNodes(),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_cannot_connect?ctShowDecodeComment(ctPublicFunctions.text__ee_cannot_connect+": "+e):ctShowDecodeComment(ctAdminCommon.text__ee_cannot_connect+": "+e))):console.log("result",c)}function resetEncodedNodes(){void 0!==ctPublic.encodedEmailNodes&&ctPublic.encodedEmailNodes.forEach(function(e){e.addEventListener("click",ctFillDecodedEmailHandler)})}function ctShowDecodeComment(e){e=e||("undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_cannot_decode?ctPublicFunctions:ctAdminCommon).text__ee_cannot_decode;var t=document.getElementById("apbct_popup"),o=document.getElementById("apbct_popup_text");null!==t&&(document.body.classList.remove("apbct-popup-fade"),"undefined"!=typeof ctPublicFunctions&&ctPublicFunctions.text__ee_email_decoder?o.innerText=ctPublicFunctions.text__ee_email_decoder+": "+e:o.innerText=ctAdminCommon.text__ee_email_decoder+": "+e,setTimeout(function(){t.setAttribute("style","display:none")},3e3))}function fillDecodedNodes(c,i){if(0<c.length){for(var e,t=0;t<c.length;t++)if(0!==(e=(t=>{var o,e;if(i.data.forEach(function(e){e.encoded_email===c[t].dataset.originalString&&(o=e)}),!1===o.is_allowed)return{v:void 0};if(void 0===c[t].href||0!==c[t].href.indexOf("mailto:")&&0!==c[t].href.indexOf("tel:"))c[t].classList.add("no-blur"),setTimeout(function(){ctProcessDecodedDataResult(o,c[t])},2e3);else{if(0===c[t].href.indexOf("mailto:"))e="mailto:";else{if(0!==c[t].href.indexOf("tel:"))return 0;e="tel:"}var n=c[t].href.replace(e,""),a=c[t].innerHTML;c[t].innerHTML=a.replace(n,o.decoded_email),c[t].href=e+o.decoded_email,c[t].querySelectorAll("span.apbct-email-encoder").forEach(function(t){var o="";i.data.forEach(function(e){e.encoded_email===t.dataset.originalString&&(o=e.decoded_email)}),t.innerHTML=o})}c[t].removeEventListener("click",ctFillDecodedEmailHandler)})(t))&&e)return e.v}else{var o=i.data[0];c.classList.add("no-blur"),setTimeout(function(){ctProcessDecodedDataResult(o,c)},2e3),c.removeEventListener("click",ctFillDecodedEmailHandler)}}function ctProcessDecodedDataResult(e,t){t.setAttribute("title",""),t.removeAttribute("style"),ctFillDecodedEmail(t,e.decoded_email)}function ctFillDecodedEmail(e,t){e.innerHTML=e.innerHTML.replace(/.+?(<div class=["']apbct-tooltip["'].+?<\/div>)/,t+"$1")}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll("[data-original-string]");if("undefined"!=typeof ctPublic&&(ctPublic.encodedEmailNodes=e),e.length)for(var t=0;t<e.length;++t){var o,n=e[t];n.parentNode&&"A"===n.parentNode.tagName&&null!=(o=n.parentNode.getAttribute("href"))&&o.includes("mailto:")&&n.parentNode.hasAttribute("data-original-string")||n.addEventListener("click",ctFillDecodedEmailHandler)}});var cleantalkModal=cleantalkModal||{loaded:!1,loading:!1,opened:!1,opening:!1,ignoreURLConvert:!1,load:function(e){var t;this.loaded||(this.loading=!0,t=function(e,t,o,n){cleantalkModal.loading=!1,cleantalkModal.loaded=e,document.dispatchEvent(new CustomEvent("cleantalkModalContentLoaded",{bubbles:!0}))},("function"==typeof apbct_admin_sendAJAX?apbct_admin_sendAJAX:apbct_public_sendAJAX)({action:e},{callback:t,notJson:!0}))},open:function(){function e(){var e,t="";for(e in this.styles)t+=e+":"+this.styles[e]+";";return t}var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"get_options_template",o={styles:{"z-index":"9999999999",position:"fixed",top:"0",left:"0",width:"100%",height:"100%",background:"rgba(0,0,0,0.5)",display:"flex","justify-content":"center","align-items":"center"},toString:e},n={styles:{position:"relative",padding:"30px",background:"#FFF",border:"1px solid rgba(0,0,0,0.75)","border-radius":"4px","box-shadow":"7px 7px 5px 0px rgba(50,50,50,0.75)"},toString:e},a={styles:{position:"absolute",background:"#FFF",width:"20px",height:"20px",border:"2px solid rgba(0,0,0,0.75)","border-radius":"15px",cursor:"pointer",top:"-8px",right:"-8px","box-sizing":"content-box"},toString:e},c={styles:{content:'""',display:"block",position:"absolute",background:"#000","border-radius":"1px",width:"2px",height:"16px",top:"2px",left:"9px",transform:"rotate(45deg)"},toString:e},i={styles:{content:'""',display:"block",position:"absolute",background:"#000","border-radius":"1px",width:"2px",height:"16px",top:"2px",left:"9px",transform:"rotate(-45deg)"},toString:e},r={styles:{overflow:"hidden"},toString:e},l=document.createElement("style"),r=(l.setAttribute("id","cleantalk-modal-styles"),l.innerHTML="body.cleantalk-modal-opened{"+r+"}",l.innerHTML+="#cleantalk-modal-overlay{"+o+"}",l.innerHTML+="#cleantalk-modal-close{"+a+"}",l.innerHTML+="#cleantalk-modal-close:before{"+c+"}",l.innerHTML+="#cleantalk-modal-close:after{"+i+"}",document.body.append(l),document.createElement("div")),o=(r.setAttribute("id","cleantalk-modal-overlay"),document.body.append(r),document.body.classList.add("cleantalk-modal-opened"),document.createElement("div")),a=(o.setAttribute("id","cleantalk-modal-inner"),o.setAttribute("style",n),r.append(o),document.createElement("div")),c=(a.setAttribute("id","cleantalk-modal-close"),o.append(a),document.createElement("div"));this.loaded?/.*\/inc/g.test(this.loaded)||this.ignoreURLConvert?c.innerHTML=this.loaded:c.innerHTML=this.loaded.replace(/(https?:\/\/[^\s]+)/g,'<a href="$1" target="_blank">$1</a>'):(c.innerHTML="Loading...",t&&this.load(t)),c.setAttribute("id","cleantalk-modal-content"),o.append(c),this.opened=!0},confirm:function(e){var t,o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"",a=3<arguments.length?arguments[3]:void 0,c=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"Yes",i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:"No",r=(cleantalkModal.loading=!1,document.getElementById("cleantalk-modal-content"));r&&(r.innerHTML="",(t=document.createElement("div")).className="cleantalk-confirm-modal_header",t.textContent=e,r.append(t),(e=document.createElement("div")).className="cleantalk-confirm-modal_text-block",r.append(e),n&&60<n.length&&(n="..."+n.slice(n.length-60)),(t=document.createElement("div")).className="cleantalk-confirm-modal_text",t.textContent=o,e.append(t),(n=document.createElement("div")).className="cleantalk-confirm-modal_buttons-block",r.append(n),(o=document.createElement("button")).className="cleantalk_link cleantalk_link-auto",o.textContent=c,o.onclick=function(){a(!0),cleantalkModal.close()},n.append(o),(e=document.createElement("button")).className="cleantalk_link cleantalk_link-auto",e.textContent=i,e.onclick=function(){cleantalkModal.close()},n.append(e)),document.dispatchEvent(new CustomEvent("cleantalkModalContentLoaded",{bubbles:!0}))},close:function(){document.body.classList.remove("cleantalk-modal-opened");var e=document.getElementById("cleantalk-modal-overlay"),t=document.getElementById("cleantalk-modal-styles");null!==e&&e.remove(),null!==t&&t.remove(),document.dispatchEvent(new CustomEvent("cleantalkModalClosed",{bubbles:!0}))}},ApbctCore=(document.addEventListener("click",function(e){!e.target||"cleantalk-modal-overlay"!==e.target.id&&"cleantalk-modal-close"!==e.target.id||cleantalkModal.close()}),document.addEventListener("cleantalkModalContentLoaded",function(e){cleantalkModal.opened&&cleantalkModal.loaded&&(document.getElementById("cleantalk-modal-content").innerHTML=cleantalkModal.loaded)}),(()=>_createClass(function e(t){_classCallCheck(this,e),_defineProperty(this,"ajax_parameters",{}),_defineProperty(this,"restParameters",{}),_defineProperty(this,"selector",null),_defineProperty(this,"elements",[]),_defineProperty(this,"eventCallback",void 0),_defineProperty(this,"eventSelector",void 0),_defineProperty(this,"event",void 0),this.select(t)},[{key:"select",value:function(e){return e instanceof HTMLCollection?(this.selector=null,this.elements=[],this.elements=Array.prototype.slice.call(e)):"object"===_typeof(e)?(this.selector=null,this.elements=[],this.elements[0]=e):"string"==typeof e?(this.selector=e,this.elements=Array.prototype.slice.call(document.querySelectorAll(e))):this.deselect(),this}},{key:"addElement",value:function(e){"object"===_typeof(e)?this.elements.push(e):"string"==typeof e?(this.selector=e,this.elements=Array.prototype.slice.call(document.querySelectorAll(e))):this.deselect()}},{key:"push",value:function(e){this.elements.push(e)}},{key:"reduce",value:function(){this.elements=this.elements.slice(0,-1)}},{key:"deselect",value:function(){this.elements=[]}},{key:"css",value:function(e,t){if(t=t||!1,"object"===_typeof(e)){for(var o in e)if(Object.hasOwn(e,o))for(var n=o.replace(/([-_][a-z])/g,function(e){return e.toUpperCase().replace("-","").replace("_","")}),a=0;a<this.elements.length;a++)this.elements[a].style[n]=e[o];return this}var c;if("string"==typeof e)return void 0!==(c=getComputedStyle(this.elements[0])[e])&&!t&&(c=c.replace(/(\d)(em|pt|%|px){1,2}$/,"$1"),Number(c)==c)?Number(c):c}},{key:"hide",value:function(){this.prop("prev-display",this.css("display")),this.css({display:"none"})}},{key:"show",value:function(){this.css({display:this.prop("prev-display")})}},{key:"addClass",value:function(){for(var e=0;e<this.elements.length;e++)this.elements[e].classList.add(className)}},{key:"removeClass",value:function(){for(var e=0;e<this.elements.length;e++)this.elements[e].classList.remove(className)}},{key:"toggleClass",value:function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].classList.toggle(e)}},{key:"ajax",value:function(e){return this.ajax_parameters=e,new ApbctAjax(e)}},{key:"rest",value:function(e){return this.restParameters=e,new ApbctRest(e)}},{key:"on",value:function(){this.event=arguments.length<=0?void 0:arguments[0],this.eventCallback=(arguments.length<=2?void 0:arguments[2])||(arguments.length<=1?void 0:arguments[1]),this.eventSelector="string"==typeof(arguments.length<=1?void 0:arguments[1])?arguments.length<=1?void 0:arguments[1]:null;for(var e=0;e<this.elements.length;e++)this.elements[e].addEventListener(this.event,null!==this.eventSelector?this.onChecker.bind(this):this.eventCallback)}},{key:"onChecker",value:function(e){if(e.target===document.querySelector(this.eventSelector))return e.stopPropagation(),this.eventCallback(e)}},{key:"ready",value:function(e){document.addEventListener("DOMContentLoaded",e)}},{key:"change",value:function(e){this.on("change",e)}},{key:"attr",value:function(e){for(var t=[],o=0;o<this.elements.length;o++)void 0!==this.elements[o][e]?t.push(this.elements[o][e]):t.push(this.elements[o].getAttribute(e));return 1===t.length?t[0]:t}},{key:"prop",value:function(e,t){if(void 0!==t){for(var o=0;o<this.elements.length;o++)this.elements[o][e]=t;return this}for(var n=[],a=0;a<this.elements.length;a++)n.push(this.elements[a][e]);return 1===n.length?n[0]:n}},{key:"html",value:function(e){return void 0!==e?this.prop("innerHTML",e):this.prop("innerHTML")}},{key:"val",value:function(e){return void 0!==e?this.prop("value",e):this.prop("value")}},{key:"data",value:function(e,t){return void 0!==t?this.prop("apbct-data",e,t):this.prop("apbct-data")}},{key:"is",value:function(e){var t,o=!1,n=_createForOfIteratorHelper(this.elements);try{for(n.s();!(t=n.n()).done;)var a=t.value,o=o||this.isElem(a,e)}catch(e){n.e(e)}finally{n.f()}return o}},{key:"isElem",value:function(e,t){var o=!1;return"function"==typeof t&&(o=o||t.call(this,e)),o="string"==typeof t?t.match(/^[a-z]/)&&(e=>(e=document.createElement(e).constructor,!Boolean(~[HTMLElement,HTMLUnknownElement].indexOf(e))))(t)?o||e.tagName.toLowerCase()===t.toLowerCase():t.match(/^[a-z]/)?o||Boolean(e[t]):o||(null!==this.selector?null!==document.querySelector(this.selector+t):this.isWithoutSelector(e,t)):o}},{key:"isWithoutSelector",value:function(e,t){var o,n=!1,a=_createForOfIteratorHelper(document.querySelectorAll(t));try{for(a.s();!(o=a.n()).done;)n=n||e===o.value}catch(e){a.e(e)}finally{a.f()}return n}},{key:"filter",value:function(e){this.selector=null;for(var t=this.elements.length-1;0<=t;t--)this.isElem(this.elements[t],e)||this.elements.splice(Number(t),1);return this}},{key:"parent",value:function(e){return this.select(this.elements[0].parentElement),void 0===e||this.is(e)||this.deselect(),this}},{key:"parents",value:function(e){for(this.select(this.elements[0]);null!==this.elements[this.elements.length-1].parentElement;)this.push(this.elements[this.elements.length-1].parentElement);return this.elements.splice(0,1),void 0!==e&&this.filter(e),this}},{key:"children",value:function(e){return this.select(this.elements[0].children),void 0!==e&&this.filter(e),this}},{key:"siblings",value:function(e){var t=this.elements[0];return this.parent(),this.children(e),this.elements.splice(this.elements.indexOf(t),1),this}},{key:"remove",value:function(){var e,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(e=t.n()).done;)e.value.remove()}catch(e){t.e(e)}finally{t.f()}}},{key:"after",value:function(e){var t,o=_createForOfIteratorHelper(this.elements);try{for(o.s();!(t=o.n()).done;)t.value.after(e)}catch(e){o.e(e)}finally{o.f()}}},{key:"append",value:function(e){var t,o=_createForOfIteratorHelper(this.elements);try{for(o.s();!(t=o.n()).done;)t.value.append(e)}catch(e){o.e(e)}finally{o.f()}}},{key:"fadeIn",value:function(n){var a,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(a=t.n()).done;)(()=>{function e(){t.style.opacity=+t.style.opacity+(new Date-o)/n,o=+new Date,+t.style.opacity<1&&(window.requestAnimationFrame&&requestAnimationFrame(e)||setTimeout(e,16))}var t=a.value,o=(t.style.opacity=0,t.style.display="block",+new Date);e()})()}catch(e){t.e(e)}finally{t.f()}}},{key:"fadeOut",value:function(n){var a,t=_createForOfIteratorHelper(this.elements);try{for(t.s();!(a=t.n()).done;)(()=>{function e(){t.style.opacity=+t.style.opacity-(new Date-o)/n,o=+new Date,0<+t.style.opacity?window.requestAnimationFrame&&requestAnimationFrame(e)||setTimeout(e,16):t.style.display="none"}var t=a.value,o=(t.style.opacity=1,+new Date);e()})()}catch(e){t.e(e)}finally{t.f()}}}]))());function selectActualNonce(){var e="";return ctPublicFunctions.hasOwnProperty("_fresh_nonce")&&"string"==typeof ctPublicFunctions._fresh_nonce&&0<ctPublicFunctions._fresh_nonce.length?ctPublicFunctions._fresh_nonce:("admin_ajax"===ctPublicFunctions.data__ajax_type&&ctPublicFunctions.hasOwnProperty("_ajax_nonce")&&"string"==typeof ctPublicFunctions._ajax_nonce&&0<ctPublicFunctions._ajax_nonce.length&&(e=ctPublicFunctions._ajax_nonce),"rest"===ctPublicFunctions.data__ajax_type&&ctPublicFunctions.hasOwnProperty("_rest_nonce")&&"string"==typeof ctPublicFunctions._rest_nonce&&0<ctPublicFunctions._rest_nonce.length?ctPublicFunctions._rest_nonce:e)}function apbct(e){return(new ApbctCore).select(e)}var ApbctXhr=(()=>{function n(e){for(var t in _classCallCheck(this,n),_defineProperty(this,"xhr",new XMLHttpRequest),_defineProperty(this,"method","POST"),_defineProperty(this,"url",""),_defineProperty(this,"async",!0),_defineProperty(this,"user",null),_defineProperty(this,"password",null),_defineProperty(this,"data",{}),_defineProperty(this,"button",null),_defineProperty(this,"spinner",null),_defineProperty(this,"progressbar",null),_defineProperty(this,"context",this),_defineProperty(this,"callback",null),_defineProperty(this,"onErrorCallback",null),_defineProperty(this,"responseType","json"),_defineProperty(this,"headers",{}),_defineProperty(this,"timeout",15e3),_defineProperty(this,"methods_to_convert_data_to_URL",["GET","HEAD"]),_defineProperty(this,"body",null),_defineProperty(this,"http_code",0),_defineProperty(this,"status_text",""),e)void 0!==this[t]&&(this[t]=e[t]);if(this.prepare(),Object.keys(this.data).length&&(this.deleteDoubleJSONEncoding(this.data),this.convertData()),!this.url)return console.log("%cXHR%c not URL provided","color: red; font-weight: bold;","color: grey; font-weight: normal;"),!1;this.xhr.open(this.method,this.url,this.async,this.user,this.password),this.setHeaders(),this.xhr.responseType=this.responseType,this.xhr.timeout=this.timeout,this.xhr.onreadystatechange=function(){this.isWpNonceError()?this.getFreshNonceAndRerunXHR(e):this.onReadyStateChange()}.bind(this),this.xhr.onload=function(){this.onLoad()}.bind(this),this.xhr.onprogress=function(e){this.onProgress(e)}.bind(this),this.xhr.onerror=function(){this.onError()}.bind(this),this.xhr.ontimeout=function(){this.onTimeout()}.bind(this),this.xhr.send(this.body)}return _createClass(n,[{key:"prepare",value:function(){this.button&&(this.button.setAttribute("disabled","disabled"),this.button.style.cursor="not-allowed"),this.spinner&&(this.spinner.style.display="inline")}},{key:"complete",value:function(){this.http_code=this.xhr.status,this.status_text=this.xhr.statusText,this.button&&(this.button.removeAttribute("disabled"),this.button.style.cursor="auto"),this.spinner&&(this.spinner.style.display="none"),this.progressbar&&this.progressbar.fadeOut("slow")}},{key:"onReadyStateChange",value:function(){null!==this.on_ready_state_change&&"function"==typeof this.on_ready_state_change&&this.on_ready_state_change()}},{key:"onProgress",value:function(e){null!==this.on_progress&&"function"==typeof this.on_progress&&this.on_progress()}},{key:"onError",value:function(){console.log("error"),this.complete(),this.error(this.http_code,this.status_text),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback(this.status_text)}},{key:"onTimeout",value:function(){this.complete(),this.error(0,"timeout"),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback("Timeout")}},{key:"onLoad",value:function(){if(this.complete(),"json"===this.responseType){if(null===this.xhr.response)return this.error(this.http_code,this.status_text,"No response"),!1;if(void 0!==this.xhr.response.error)return this.error(this.http_code,this.status_text,this.xhr.response.error),!1}null!==this.callback&&"function"==typeof this.callback&&this.callback.call(this.context,this.xhr.response,this.data)}},{key:"isWpNonceError",value:function(){var e=!1,t=!1;return 4==this.xhr.readyState&&(e="object"===_typeof(this.xhr.response)&&null!==this.xhr.response&&this.xhr.response.hasOwnProperty("data")&&this.xhr.response.data.hasOwnProperty("status")&&403===this.xhr.response.data.status,t="-1"===this.xhr.response&&403===this.xhr.status),e||t}},{key:"getFreshNonceAndRerunXHR",value:function(e){var t,o="";e.hasOwnProperty("headers")&&e.headers.hasOwnProperty("X-WP-Nonce")&&(o=e.headers["X-WP-Nonce"]),""!==(o=e.hasOwnProperty("data")&&e.data.hasOwnProperty("_ajax_nonce")?e.data._ajax_nonce:o)&&((t={method:"POST"}).data={spbc_remote_call_action:"get_fresh_wpnonce",plugin_name:"antispam",nonce_prev:o,initial_request_params:e},t.notJson=!0,t.url=ctPublicFunctions.host_url,t.callback=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=t[0],a=!1;(a=void 0!==t[1]&&t[1].hasOwnProperty("initial_request_params")?t[1].initial_request_params:a)&&n.hasOwnProperty("wpnonce")&&(ctPublicFunctions._fresh_nonce=n.wpnonce,"rest"===ctPublicFunctions.data__ajax_type?(new ApbctCore).rest(a):(new ApbctCore).ajax(a))},new n(t))}},{key:"error",value:function(e,t,o){var n="";"timeout"===t?n+="Server response timeout":200===e?"parsererror"===t?n+="Unexpected response from server. See console for details.":(n+="Unexpected error. Status: "+t+".",void 0!==o&&(n+=" Additional error info: "+o)):n+=500===e?"Internal server error.":"Unexpected response code:"+e,this.errorOutput(n),null!==this.onErrorCallback&&"function"==typeof this.onErrorCallback&&this.onErrorCallback(this.status_text)}},{key:"errorOutput",value:function(e){console.log("%c ctXHR error: %c"+e,"color: red;","color: grey;")}},{key:"setHeaders",value:function(){for(var e in this.headers)void 0!==this.headers[e]&&this.xhr.setRequestHeader(e,this.headers[e])}},{key:"convertData",value:function(){return~this.methods_to_convert_data_to_URL.indexOf(this.method)?this.convertDataToURL():this.convertDataToBody()}},{key:"convertDataToURL",value:function(){var e=new URLSearchParams(this.data).toString(),t=this.url.match(/^(https?:\/{2})?[a-z0-9.]+\?/)?"&":"?";return this.url+=t+e,this.url}},{key:"convertDataToBody",value:function(){for(var e in this.body=new FormData,this.data)Object.hasOwn(this.data,e)&&this.body.append(e,"object"===_typeof(this.data[e])?JSON.stringify(this.data[e]):this.data[e]);return this.body}},{key:"deleteDoubleJSONEncoding",value:function(e){if("object"===_typeof(e))for(var t in e){var o;Object.hasOwn(e,t)&&("object"===_typeof(e[t])&&(e[t]=this.deleteDoubleJSONEncoding(e[t])),"string"==typeof e[t])&&null!==e[t].match(/^[\[{].*?[\]}]$/)&&"object"===_typeof(o=JSON.parse(e[t]))&&(e[t]=o)}return e}}])})(),ApbctAjax=(()=>{function n(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return _classCallCheck(this,n),(t=t[0]).data._ajax_nonce=selectActualNonce(),_callSuper(this,n,[t])}return _inherits(n,ApbctXhr),_createClass(n)})(),ApbctRest=(()=>{function a(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];_classCallCheck(this,a);var t=t[0],n=selectActualNonce();return t.url=a.default_route+t.route,t.headers={"X-WP-Nonce":n},_defineProperty(n=_callSuper(this,a,[t]),"route",""),n}return _inherits(a,ApbctXhr),_createClass(a)})(),ApbctFetchProxyCallbacks=(_defineProperty(ApbctRest,"default_route",ctPublicFunctions._rest_url+"cleantalk-antispam/v1/"),Object.prototype.hasOwn||Object.defineProperty(Object.prototype,"hasOwn",{value:function(e){return Object.prototype.hasOwnProperty.call(this,e)},enumerable:!1,configurable:!0,writable:!0}),{mailchimpBlock:function(e){try{for(var t=localStorage.length-1;0<=t;t--){var o=localStorage.key(t);o&&-1!==o.indexOf("mcforms")&&localStorage.removeItem(o)}}catch(e){console.warn("Error clearing localStorage by mcforms mask:",e)}}}),ApbctFetchProxyConfig={mailchimp:{selector:".mcforms-wrapper",urlPattern:"mcf-integrations-mcmktg.mlchmpcompprduse2.iks2.a.intuit.com/gateway/receive",externalForm:!0,action:"cleantalk_force_mailchimp_shadowroot_check",callbackAllow:!1,callbackBlock:ApbctFetchProxyCallbacks.mailchimpBlock},otterform:{selector:".otter-form__container",urlPattern:"otter/v1/form/frontend",externalForm:!1,action:"cleantalk_force_otterform_check",callbackAllow:!1,callbackBlock:!1},elfsight:{selector:'[class*="elfsight-app"]',urlPattern:"data.elfsight.com/public/resources/form-submissions",externalForm:!0,action:"cleantalk_force_elfsight_check",payloadKey:"elfsight_payload",callbackAllow:!1,callbackBlock:!1}},ApbctFetchProxyProtection=(()=>{return _createClass(function e(){_classCallCheck(this,e),this.config=ApbctFetchProxyConfig},[{key:"findMatchingConfig",value:function(e){for(var t="string"==typeof e?e:null!=e&&"string"==typeof e.href?e.href:"",o=0,n=Object.entries(this.config);o<n.length;o++){var a=_slicedToArray(n[o],2),c=a[0],a=a[1];if((!a.externalForm||+ctPublic.settings__forms__check_external)&&0<document.querySelectorAll(a.selector).length&&t&&t.includes(a.urlPattern))return{formKey:c,config:a}}return null}},{key:"checkRequest",value:(n=_asyncToGenerator(_regenerator().m(function e(t,i,r){return _regenerator().w(function(e){for(;;)if(0===e.n)return e.a(2,new Promise(function(t){var o={action:i.action};try{var e=JSON.parse(r);if(i.payloadKey)o[i.payloadKey]=r;else for(var n=0,a=Object.entries(e);n<a.length;n++){var c=_slicedToArray(a[n],2);o[c[0]]=c[1]}}catch(e){o.raw_body=r}+ctPublic.bot_detector_enabled?(e=(new ApbctHandler).toolGetEventToken())&&(o.ct_bot_detector_event_token=e):o.ct_no_cookie_hidden_field=getNoCookieData(),apbct_public_sendAJAX(o,{async:!0,callback:function(e){void 0===e.apbct&&void 0===e.data||void 0!==e.apbct&&!+e.apbct.blocked?("function"==typeof i.callbackAllow&&i.callbackAllow(e),t(!1)):void 0!==e.apbct&&+e.apbct.blocked||void 0!==e.data&&void 0!==e.data.message?((new ApbctShowForbidden).parseBlockMessage(e),"function"==typeof i.callbackBlock&&i.callbackBlock(e),t(!0)):t(!1)},onErrorCallback:function(e){console.log("APBCT FetchProxy check error:",e),t(!1)}})}))},e)})),function(e,t,o){return n.apply(this,arguments)})},{key:"extractBodyText",value:function(e){var e=e[1]&&e[1].body,t="";if(e instanceof FormData){var o,n={},a=_createForOfIteratorHelper(e.entries());try{for(a.s();!(o=a.n()).done;){var c=_slicedToArray(o.value,2);n[c[0]]=c[1]}}catch(e){a.e(e)}finally{a.f()}t=JSON.stringify(n)}else"string"==typeof e&&(t=e);return t}},{key:"processFetch",value:(t=_asyncToGenerator(_regenerator().m(function e(t){var o,n,a;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:if(o="string"==typeof t[0]?t[0]:(null==(o=t[0])?void 0:o.url)||"",n=this.findMatchingConfig(o)){e.n=1;break}return e.a(2,null);case 1:return a=this.extractBodyText(t),e.n=2,this.checkRequest(n.formKey,n.config,a);case 2:return e.a(2,e.v)}},e,this)})),function(e){return t.apply(this,arguments)})}]);var t,n})();function initParams(e){var t=new Date,o=navigator.webdriver,n=void 0!==ApbctGatheringData&&"function"==typeof ApbctGatheringData.prototype.getScreenInfo?(new ApbctGatheringData).getScreenInfo():"",a=[["ct_ps_timestamp",Math.floor((new Date).getTime()/1e3)],["ct_fkp_timestamp","0"],["ct_pointer_data","0"],["ct_timezone",t.getTimezoneOffset()/60*-1],["ct_screen_info",n],["apbct_headless",o]];if(apbctLocalStorage.set("ct_ps_timestamp",Math.floor((new Date).getTime()/1e3)),apbctLocalStorage.set("ct_fkp_timestamp","0"),apbctLocalStorage.set("ct_pointer_data","0"),apbctLocalStorage.set("ct_timezone",t.getTimezoneOffset()/60*-1),apbctLocalStorage.set("ct_screen_info",n),apbctLocalStorage.set("apbct_headless",o),"native"!==ctPublic.data__cookies_type)a.push(["apbct_visible_fields","0"]);else{var c=document.cookie.split(";");if(0!==c.length)for(var i=0;i<c.length;i++){var r=c[i].trim().split("=")[0];0===r.indexOf("apbct_visible_fields_")&&ctDeleteCookie(r)}}+ctPublic.pixel__setting&&3!=+ctPublic.pixel__setting&&("function"==typeof ctIsDrawPixel&&ctIsDrawPixel()?"function"==typeof ctGetPixelUrl&&ctGetPixelUrl():a.push(["apbct_pixel_url",ctPublic.pixel__url])),+ctPublic.data__email_check_before_post&&(a.push(["ct_checked_emails","0"]),"function"==typeof apbct)&&apbct('input[type="email"], #email').on("blur",checkEmail),+ctPublic.data__email_check_exist_post&&(a.push(["ct_checked_emails_exist","0"]),"function"==typeof apbct)&&(apbct('.comment-form input[name="email"], input#email').on("blur",checkEmailExist),apbct('.frm-fluent-form input[name="email"], input#email').on("blur",checkEmailExist),apbct('#registerform input[name="user_email"]').on("blur",checkEmailExist),apbct('form.wc-block-checkout__form input[type="email"]').on("blur",checkEmailExist),apbct('form.checkout input[type="email"]').on("blur",checkEmailExist),apbct('form.wpcf7-form input[type="email"]').on("blur",ctDebounceFuncExec(checkEmailExist,300)),apbct('form.wpforms-form input[type="email"]').on("blur",checkEmailExist),apbct('form[id^="gform_"] input[type="email"]').on("blur",checkEmailExist),apbctIntegrateDynamicEmailCheck({formSelector:".nf-form-content",emailSelector:'input[type="email"], input[type="email"].ninja-forms-field',handler:checkEmailExist,debounce:300})),apbctLocalStorage.isSet("ct_checkjs")?a.push(["ct_checkjs",apbctLocalStorage.get("ct_checkjs")]):a.push(["ct_checkjs",0]),e&&a.push(["ct_gathering_loaded",e]),ctSetCookie(a)}function ctSetCookie(e,t,n){var o,a=["ct_sfw_pass_key","ct_sfw_passed","wordpress_apbct_antibot","apbct_anticrawler_passed","apbct_bot_detector_exist","apbct_antiflood_passed","apbct_email_encoder_passed"],c=!1;"string"==typeof e&&(c="ct_pointer_data"===e,"string"!=typeof t&&"number"!=typeof t||(e=[[e,t,n]])),"none"===ctPublicFunctions.data__cookies_type?(o=[],e.forEach(function(e){-1!==a.indexOf(e[0])?o.push(e):apbctLocalStorage.set(e[0],e[1])}),0<o.length&&ctSetAlternativeCookie(o),ctPublic.force_alt_cookies&&!c?ctSetAlternativeCookie(e,{forceAltCookies:!0}):ctNoCookieAttachHiddenFieldsToForms()):"native"===ctPublicFunctions.data__cookies_type?(ctPublic.force_alt_cookies&&!c&&ctSetAlternativeCookie(e,{forceAltCookies:!0}),e.forEach(function(e){var t=void 0!==e[2]?"expires="+n+"; ":"",o="https:"===location.protocol?"; secure":"";document.cookie=ctPublicFunctions.cookiePrefix+e[0]+"="+encodeURIComponent(e[1])+"; "+t+"path=/; samesite=lax"+o})):"alternative"!==ctPublicFunctions.data__cookies_type||c||ctSetAlternativeCookie(e)}function ctSetAlternativeCookie(e,t){if("function"==typeof getJavascriptClientData?Array.isArray(e)&&(e=getJavascriptClientData(e)):+ctPublic.settings__data__bot_detector_enabled||console.log("APBCT ERROR: getJavascriptClientData() is not loaded"),"string"==typeof(e=Array.isArray(e)&&e[0]&&"apbct_bot_detector_exist"===e[0][0]?{apbct_bot_detector_exist:e[0][1]}:e))try{e=JSON.parse(e)}catch(e){return void console.log("APBCT ERROR: JSON parse error:"+e)}var o=t&&t.callback||null,n=t&&t.onErrorCallback||null;t&&t.forceAltCookies&&(e.apbct_force_alt_cookies=!0),"rest"===ctPublicFunctions.data__ajax_type?("string"==typeof e.apbct_pixel_url&&-1!==e.apbct_pixel_url.indexOf("%3A")&&(e.apbct_pixel_url=decodeURIComponent(e.apbct_pixel_url)),apbct_public_sendREST("alt_sessions",{method:"POST",data:{cookies:e},callback:o,onErrorCallback:n})):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_alt_session__save__AJAX",cookies:e},{notJson:1,callback:o,onErrorCallback:n,beforeSend:function(e){e.setRequestHeader("X-Robots-Tag","noindex, nofollow")}})}function ctGetCookie(e){e=document.cookie.match(new RegExp("(?:^|;)"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return e?decodeURIComponent(e[1]):void 0}function ctDeleteCookie(e){var t;"none"!==ctPublicFunctions.data__cookies_type&&("native"===ctPublicFunctions.data__cookies_type?(t="https:"===location.protocol?"; secure":"",document.cookie=e+'=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; samesite=lax'+t):ctPublicFunctions.data__cookies_type)}function apbct_public_sendAJAX(e,t,o){var n=[],o=(n.callback=t.callback||null,n.onErrorCallback=t.onErrorCallback||null,n.callback_context=t.callback_context||null,n.callback_params=t.callback_params||null,n.async=t.async||!0,n.notJson=t.notJson||null,n.responseType=t.notJson?"text":"json",n.timeout=t.timeout||15e3,n.obj=o||null,n.button=t.button||null,n.spinner=t.spinner||null,n.progressbar=t.progressbar||null,n.silent=t.silent||null,n.no_nonce=t.no_nonce||null,n.data=e,n.url=ctPublicFunctions._ajax_url,selectActualNonce());"string"==typeof e?(n.no_nonce||(n.data=n.data+"&_ajax_nonce="+o),n.data=n.data+"&no_cache="+Math.random()):(n.no_nonce||(n.data._ajax_nonce=o),n.data.no_cache=Math.random()),(new ApbctCore).ajax(n)}function apbct_public_sendREST(e,t){var o=[];o.route=e,o.callback=t.callback||null,o.onErrorCallback=t.onErrorCallback||null,o.data=t.data||[],o.method=t.method||"POST",(new ApbctCore).rest(o)}function apbct_attach_event_handler(e,t,o){"function"==typeof window.addEventListener?e.addEventListener(t,o):e.attachEvent(t,o)}function apbct_remove_event_handler(e,t,o){"function"==typeof window.removeEventListener?e.removeEventListener(t,o):e.detachEvent(t,o)}function removeDoubleJsonEncoding(e){if("object"===_typeof(e))for(var t in e){var o;"object"===_typeof(e[t])&&(e[t]=removeDoubleJsonEncoding(e[t])),"string"==typeof e[t]&&null!==e[t].match(/^[\[{].*?[\]}]$/)&&"object"===_typeof(o=JSON.parse(e[t]))&&(e[t]=o)}return e}function ctGetPageForms(){var e=document.forms;return e||!1}function apbct_js_keys__set_input_value(e,t,o,n){if(0<document.querySelectorAll("[name^=ct_checkjs]").length)for(var a=document.querySelectorAll("[name^=ct_checkjs]"),c=0;c<a.length;c++)a[c].value=e.js_key}var apbctLocalStorage={get:function(t,o){void 0===o&&(o="value");t=localStorage.getItem(t);if(null!==t)try{var n=JSON.parse(t);if(!n.hasOwnProperty(o))return n;try{return JSON.parse(n[o])}catch(e){return n[o].toString()}}catch(e){return t}return!1},set:function(e,t){var o;!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?(o={value:JSON.stringify(t),timestamp:Math.floor((new Date).getTime()/1e3)},localStorage.setItem(e,JSON.stringify(o))):localStorage.setItem(e,t)},isAlive:function(e,t){return void 0===t&&(t=86400),this.get(e,"timestamp")+t>Math.floor((new Date).getTime()/1e3)},isSet:function(e){return null!==localStorage.getItem(e)},delete:function(e){localStorage.removeItem(e)},getCleanTalkData:function(){for(var e={},t=0;t<localStorage.length;t++){var o=localStorage.key(t);-1===o.indexOf("ct_")&&-1===o.indexOf("apbct_")||(e[o.toString()]=apbctLocalStorage.get(o))}return e}},apbctSessionStorage={get:function(t,e){void 0===e&&(e="value");t=sessionStorage.getItem(t);if(null!==t)try{var o=JSON.parse(t);return o.hasOwnProperty(e)?JSON.parse(o[e]):o}catch(e){return t}return!1},set:function(e,t){var o;!(2<arguments.length&&void 0!==arguments[2])||arguments[2]?(o={value:JSON.stringify(t),timestamp:Math.floor((new Date).getTime()/1e3)},sessionStorage.setItem(e,JSON.stringify(o))):sessionStorage.setItem(e,t)},isSet:function(e){return null!==sessionStorage.getItem(e)},delete:function(e){sessionStorage.removeItem(e)},getCleanTalkData:function(){for(var e={},t=0;t<sessionStorage.length;t++){var o=sessionStorage.key(t);-1===o.indexOf("ct_")&&-1===o.indexOf("apbct_")||(e[o.toString()]=apbctSessionStorage.get(o))}return e}};function getNoCookieData(){var e=apbctLocalStorage.getCleanTalkData(),t=apbctSessionStorage.getCleanTalkData(),e=_objectSpread(_objectSpread({},e),t),e=JSON.stringify(e);return"_ct_no_cookie_data_"+btoa(e)}function getCleanTalkStorageDataArray(){var e=apbctLocalStorage.getCleanTalkData(),t=apbctSessionStorage.getCleanTalkData(),o={typo:[]},n=(document.ctTypoData&&document.ctTypoData.data&&(o={typo:document.ctTypoData.data}),{collecting_user_activity_data:[]});return document.ctCollectingUserActivityData&&(n={collecting_user_activity_data:JSON.parse(JSON.stringify(document.ctCollectingUserActivityData))}),_objectSpread(_objectSpread(_objectSpread(_objectSpread({},e),t),o),n)}function ctDebounceFuncExec(a,c){var i;return function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=this;clearTimeout(i),i=setTimeout(function(){a.apply(n,t)},c)}}function ctNoCookieAttachHiddenFieldsToForms(){if("none"===ctPublic.data__cookies_type){var e=ctGetPageForms();if(e)for(var t=0;t<e.length;t++)if(!(new ApbctHandler).checkHiddenFieldsExclusions(document.forms[t],"no_cookie")&&(null===document.forms[t].getAttribute("method")||"post"===document.forms[t].getAttribute("method").toLowerCase())){for(var o=e[t].querySelectorAll(".ct_no_cookie_hidden_field"),n=0;n<o.length;n++)o[n].outerHTML="";document.forms[t].append((new ApbctAttachData).constructNoCookieHiddenField())}}}var ApbctEventTokenTransport=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"attachEventTokenToMultipageGravityForms",value:function(){document.addEventListener("gform_page_loaded",function(){void 0!==ctPublic.force_alt_cookies&&("undefined"===ctPublic.force_alt_cookies||ctPublic.force_alt_cookies)||"function"!=typeof setEventTokenField||"function"!=typeof botDetectorLocalStorage||setEventTokenField(botDetectorLocalStorage.get("bot_detector_event_token"))})}},{key:"attachEventTokenToWoocommerceGetRequestAddToCart",value:function(){ctPublic.wc_ajax_add_to_cart||document.querySelectorAll("a.add_to_cart_button:not(.product_type_variable):not(.wc-interactive)").forEach(function(n){n.addEventListener("click",function(e){var t=n.getAttribute("href"),o=apbctLocalStorage.get("bot_detector_event_token");o&&(-1===t.indexOf("?")?t+="?":t+="&",n.setAttribute("href",t+="ct_bot_detector_event_token="+o))})})}},{key:"restartBotDetectorEventTokenAttach",value:function(){var e,t=0<document.getElementsByClassName("latepoint-form").length||0<document.getElementsByClassName("mec-booking-form-container").length||null!==document.getElementById("login-form-popup");try{t&&(e=apbctLocalStorage.get("bot_detector_event_token"),"function"==typeof setEventTokenField)&&void 0!==e&&64===e.length&&setEventTokenField(e)}catch(e){console.log(e.toString())}}}]))(),ApbctAttachData=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"attachHiddenFieldsToForms",value:function(e){void 0!==ctPublic.force_alt_cookies&&("undefined"===ctPublic.force_alt_cookies||ctPublic.force_alt_cookies)||+ctPublic.bot_detector_enabled&&!e||(ctNoCookieAttachHiddenFieldsToForms(),document.addEventListener("gform_page_loaded",ctNoCookieAttachHiddenFieldsToForms))}},{key:"attachVisibleFieldsToForm",value:function(e,t){var o=document.createElement("input"),t=(o.setAttribute("type","hidden"),o.setAttribute("id","apbct_visible_fields_"+t),o.setAttribute("name","apbct_visible_fields"),{});t[0]=this.collectVisibleFields(e),o.value=btoa(JSON.stringify(t)),e.append(o)}},{key:"attachVisibleFieldsDuringSubmit",value:function(e,t){"native"!==ctPublic.data__cookies_type&&void 0!==e.target.ctFormIndex&&this.setVisibleFieldsCookie(this.collectVisibleFields(t),e.target.ctFormIndex)}},{key:"constructNoCookieHiddenField",value:function(e){var t="hidden",e=("submit"===e&&(t="submit"),""),o=getCleanTalkStorageDataArray(),o=JSON.stringify(o);return o="_ct_no_cookie_data_"+btoa(o),(e=document.createElement("input")).setAttribute("name","ct_no_cookie_hidden_field"),e.setAttribute("value",o),e.setAttribute("type",t),e.classList.add("apbct_special_field"),e.classList.add("ct_no_cookie_hidden_field"),e}},{key:"attachNoCookieDuringSubmit",value:function(e){"none"===ctPublic.data__cookies_type&&e.target&&e.target.action&&-1!==e.target.action.toString().indexOf("mailpoet_subscription_form")&&(window.XMLHttpRequest.prototype.send=function(e){var t,o;+ctPublic.bot_detector_enabled?(t=(new ApbctHandler).toolGetEventToken())&&(o="data%5Bct_no_cookie_hidden_field%5D="+getNoCookieData()+"&",defaultSend.call(this,o+("data%5Bct_bot_detector_event_token%5D="+t+"&")+e)):(o="data%5Bct_no_cookie_hidden_field%5D="+getNoCookieData()+"&",defaultSend.call(this,o+e)),setTimeout(function(){window.XMLHttpRequest.prototype.send=defaultSend},0)})}},{key:"setVisibleFieldsCookie",value:function(e,t){var o="object"===_typeof(e)&&null!==e?e:{};if("native"===ctPublic.data__cookies_type)for(var n in o){if(10<n)return;ctSetCookie("apbct_visible_fields_"+(void 0!==t?t:n),JSON.stringify(o[n]))}else ctSetCookie("apbct_visible_fields",JSON.stringify(o))}},{key:"collectVisibleFields",value:function(e){var t,o=[],n="",a=0,c="",i=0,r=[];for(t in e.elements)isNaN(+t)||(o[t]=e.elements[t]);return(o=o.filter(function(e){return-1===r.indexOf(e.getAttribute("name"))&&(-1===["radio","checkbox"].indexOf(e.getAttribute("type"))||(r.push(e.getAttribute("name")),!1))})).map(function(e){var t;return"submit"===e.getAttribute("type")||null===e.getAttribute("name")||"ct_checkjs"===e.getAttribute("name")?{elem:e,skip:!0}:"hidden"===e.getAttribute("type")?{elem:e,isVisible:!1,isWpEditor:e.classList.contains("wp-editor-area")}:{elem:e,isVisible:!("none"===(t=getComputedStyle(e)).display||"hidden"===t.visibility||"0"===t.opacity),isWpEditor:e.classList.contains("wp-editor-area")}}).forEach(function(e){e.skip||(e.isVisible||e.isWpEditor?(n+=" "+e.elem.getAttribute("name"),a++):(c+=" "+e.elem.getAttribute("name"),i++))}),c=c.trim(),{visible_fields:n=n.trim(),visible_fields_count:a,invisible_fields:c,invisible_fields_count:i}}}]))(),ApbctHandler=(()=>{function i(){_classCallCheck(this,i)}return _createClass(i,[{key:"excludeForm",value:function(e){return!!this.checkHiddenFieldsExclusions(e,"visible_fields")||!!(e.querySelector('input[name="wspsc_add_cart_submit"]')||e.querySelector('input[name="option"][value="com_vikrentcar"]')||e.querySelector('input[name="option"][value="com_vikbooking"]'))||void 0!==e.elements.apbct_visible_fields&&0<e.elements.apbct_visible_fields.length}},{key:"checkHiddenFieldsExclusions",value:function(e,t){var o="string"==typeof e.action?e.action:"";return!!Boolean(e.querySelector("fieldset.asl_sett_scroll"))||!!e.classList.contains("swpf-instant-filtering")||-1!==o.indexOf("secure.payu.com")||-1!==o.indexOf("hsforms")||-1!==o.indexOf("secureinternetbank.com")||"string"==typeof t&&-1!==["visible_fields","no_cookie"].indexOf(t)&&1===this.getHiddenFieldExclusionsType(e)[t]}},{key:"getHiddenFieldExclusionsType",value:function(e){var t={no_cookie:0,visible_fields:0},o=((0==+ctPublic.data__visible_fields_required||"get"===e.method.toString().toLowerCase()&&0===e.querySelectorAll(".nf-form-content").length&&"twt_cc_signup"!==e.id||e.classList.contains("slp_search_form")||e.parentElement.classList.contains("mec-booking")||-1!==e.action.toString().indexOf("activehosted.com")||e.id&&"caspioform"===e.id||e.classList&&e.classList.contains("tinkoffPayRow")||e.classList&&e.classList.contains("give-form")||e.id&&"ult-forgot-password-form"===e.id||e.id&&-1!==e.id.toString().indexOf("calculatedfields")||e.id&&-1!==e.id.toString().indexOf("sac-form")||e.id&&-1!==e.id.toString().indexOf("cp_tslotsbooking_pform")||e.name&&-1!==e.name.toString().indexOf("cp_tslotsbooking_pform")||"https://epayment.epymtservice.com/epay.jhtml"===e.action.toString()||e.name&&-1!==e.name.toString().indexOf("tribe-bar-form")||e.id&&"ihf-login-form"===e.id||e.id&&"subscriberForm"===e.id&&-1!==e.action.toString().indexOf("actionType=update")||e.id&&"ihf-main-search-form"===e.id||e.id&&"frmCalc"===e.id||-1!==e.action.toString().indexOf("property-organizer-delete-saved-search-submit")||null!==e.querySelector('a[name="login"]'))&&(t.visible_fields=1),e.parentNode);return(o&&o.classList.contains("proinput")||"options"===e.name&&e.classList.contains("asp-fss-flex"))&&(t.no_cookie=1),e&&e.classList.contains("woocommerce-form-login")&&(t.visible_fields=1,t.no_cookie=1),t}},{key:"prevCallExclude",value:function(e){return!!e.classList.contains("hb-booking-search-form")}},{key:"catchMain",value:function(t,e){t.onsubmit_prev=t.onsubmit,t.ctFormIndex=e;var o=this;t.onsubmit=function(e){(new ApbctAttachData).attachVisibleFieldsDuringSubmit(e,t),e.target.onsubmit_prev instanceof Function&&!o.prevCallExclude(e.target)&&(void 0!==e.target.classList&&e.target.classList.contains("brave_form_form")&&e.preventDefault(),setTimeout(function(){e.target.onsubmit_prev.call(e.target,e)},0))}}},{key:"cronFormsHandler",value:function(){setTimeout(function(){setInterval(function(){+ctPublic.bot_detector_enabled||void 0===ApbctGatheringData||(new ApbctGatheringData).restartFieldsListening(),(new ApbctEventTokenTransport).restartBotDetectorEventTokenAttach()},2e3)},0<arguments.length&&void 0!==arguments[0]?arguments[0]:2e3)}},{key:"detectForcedAltCookiesForms",value:function(){var e=0<document.querySelectorAll('script[id*="smart-forms"]').length,t=0<document.querySelectorAll('iframe[name="jetpack_remote_comment"]').length,o=0<document.querySelectorAll('div[id^="user-registration-form"]').length,n=0<document.querySelectorAll('div[class^="et_pb_newsletter_form"]').length;ctPublic.force_alt_cookies=e||t||o||n,setTimeout(function(){var e;ctPublic.force_alt_cookies||(e=0<document.querySelectorAll('main[id^="bookingpress_booking_form"]').length||0<document.querySelectorAll(".bpa-frontend-main-container").length,ctPublic.force_alt_cookies=e)},1e3)}},{key:"catchXmlHttpRequest",value:function(){var a;(null!==document.querySelector("div.wfu_container")||null!==document.querySelector("#newAppointmentForm")||null!==document.querySelector(".booked-calendar-shortcode-wrap")||document.body.classList.contains("single-product")&&"undefined"!=typeof cwginstock||null!==document.querySelector("div.fluent_booking_wrap")||null!==document.querySelector("div.fcal_calendar_slot_wrap "))&&(a=XMLHttpRequest.prototype.send,XMLHttpRequest.prototype.send=function(e){var t,o=e&&"string"==typeof e&&(-1!==e.indexOf("action=wfu_ajax_action_ask_server")||-1!==e.indexOf("action=booked_add_appt")||-1!==e.indexOf("action=cwginstock_product_subscribe")),n=e&&"object"===_typeof(e)&&e instanceof FormData&&e.has("action")&&"fluent_cal_schedule_meeting"===e.get("action");return o&&(o="",+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(t=(new i).toolGetEventToken())&&(o+="&data%5Bct_bot_detector_event_token%5D="+t):o+="&data%5Bct_no_cookie_hidden_field%5D="+getNoCookieData(),e+=o),n&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(t=(new i).toolGetEventToken())&&e.append("ct_bot_detector_event_token",t):(o=getNoCookieData(),e.append("ct_no_cookie_hidden_field",o))),a.apply(this,[e])})}},{key:"catchIframeFetchRequest",value:function(){setTimeout(function(){try{var c,e=Array.from(document.querySelectorAll("iframe")).find(function(e){return null==(e=e.src)?void 0:e.includes("givewp-route")});if(e){try{if(!(c=e.contentWindow)||!c.fetch)return}catch(e){return}var i=c.fetch;c.fetch=_asyncToGenerator(_regenerator().m(function e(){var t,o,n,a=arguments;return _regenerator().w(function(e){for(;;)if(0===e.n){for(t=a.length,o=new Array(t),n=0;n<t;n++)o[n]=a[n];try{o&&o[1]&&o[1].body&&(o[1].body instanceof FormData||"function"==typeof o[1].body.append)&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?o[1].body.append("ct_bot_detector_event_token",apbctLocalStorage.get("bot_detector_event_token")):o[1].body.append("ct_no_cookie_hidden_field",getNoCookieData()))}catch(e){}return e.a(2,i.apply(c,o))}},e)}))}}catch(e){}},1e3)}},{key:"catchFetchRequest",value:function(){function b(e){var t={key:null,value:null};return e?(t.key="ct_bot_detector_event_token",t.value=apbctLocalStorage.get("bot_detector_event_token")):(t.key="ct_no_cookie_hidden_field",t.value=getNoCookieData()),!(!t.key||!t.value)&&t}function h(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(t)if(e instanceof FormData||"function"==typeof e.append)e.append(t.key,t.value);else try{var o=JSON.parse(e);o.hasOwnProperty(t.key)||(o[t.key]=t.value,e=JSON.stringify(o))}catch(e){}return e}var y=new ApbctFetchProxyProtection,g=!1,v=!1,k=window.fetch;window.fetch=_asyncToGenerator(_regenerator().m(function e(){var t,o,n,a,c,i,r,l,s,u,d,p,_,f,m=arguments;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:for(t=m.length,o=new Array(t),n=0;n<t;n++)o[n]=m[n];if(v)return e.a(2,k.apply(this,o));e.n=1;break;case 1:if(e.p=1,(t=>!(!t||"string"!=typeof t)&&["google.com/recaptcha","gstatic.com/recaptcha","recaptcha.google.com","recaptcha.net","www.google.com/recaptcha","apis.google.com","paypal.com","api.paypal.com","www.paypal.com","js.stripe.com","api.stripe.com","checkout.stripe.com","api.doboard.com"].some(function(e){return t.includes(e)}))("string"==typeof o[0]?o[0]:(null==(a=o[0])?void 0:a.url)||""))return e.a(2,k.apply(this,o));e.n=2;break;case 2:if(g=!1,o&&o[0]&&o[1]&&o[1].body){e.n=3;break}return e.a(2,k.apply(this,o));case 3:return e.n=4,y.processFetch(o);case 4:if(!0===e.v)return e.a(2,Promise.reject(new Error("Forbidden")));e.n=5;break;case 5:if(0<document.querySelectorAll("form.metform-form-content").length&&"function"==typeof o[0].includes&&(o[0].includes("/wp-json/metform/")||ctPublicFunctions._rest_url&&(()=>{try{return o[0].includes(new URL(ctPublicFunctions._rest_url).pathname+"metform/")}catch(e){}})()))try{o[1].body=h(o[1].body,b(+ctPublic.bot_detector_enabled))}catch(e){}if(0<document.querySelectorAll("form.wprm-user-ratings-modal-stars-container").length&&"function"==typeof o[0].includes&&o[0].includes("/wp-json/wp-recipe-maker/"))try{o[1].body=h(o[1].body,b(+ctPublic.bot_detector_enabled))}catch(e){}if((0<document.querySelectorAll("button.add_to_cart_button, button.ajax_add_to_cart, button.single_add_to_cart_button").length||0<document.querySelectorAll("a.add_to_cart_button").length)&&o[0].includes("/wc/store/v1/cart/add-item"))try{+ctPublic.settings__forms__wc_add_to_cart&&(o[1].body=h(o[1].body,b(+ctPublic.bot_detector_enabled)))}catch(e){}if(+ctPublic.settings__forms__wc_add_to_cart&&(0<document.querySelectorAll("button.add_to_cart_button, button.ajax_add_to_cart, button.single_add_to_cart_button").length||0<document.querySelectorAll("a.add_to_cart_button").length)&&o[0].includes("/wc/store/v1/batch")&&"string"==typeof o[1].body)try{if((c=JSON.parse(o[1].body)).requests&&Array.isArray(c.requests)){i=b(+ctPublic.settings__data__bot_detector_enabled),r=_createForOfIteratorHelper(c.requests);try{for(r.s();!(l=r.n()).done;)"/wc/store/v1/cart/add-item"===(s=l.value).path&&s.body&&i&&i.key&&(s.body[i.key]=i.value)}catch(e){r.e(e)}finally{r.f()}o[1].body=JSON.stringify(c)}}catch(e){}if(!(+ctPublic.settings__forms__check_external&&0<document.querySelectorAll(".b24-form").length&&o[0].includes("bitrix/services/main/ajax.php?action=crm.site.form.fill")&&o[1].body instanceof FormData)){e.n=10;break}if(!(u=document.querySelector(".b24-form form"))){e.n=10;break}d={action:"cleantalk_force_ajax_check"},p=_createForOfIteratorHelper(u.elements);try{for(p.s();!(_=p.n()).done;)(f=_.value).name&&(d[f.name]=f.value)}catch(e){p.e(e)}finally{p.f()}return v=!0,e.p=6,e.n=7,new Promise(function(t,o){apbct_public_sendAJAX(d,{async:!0,callback:function(e){(void 0===e.apbct&&void 0===e.data||void 0!==e.apbct&&!+e.apbct.blocked)&&(g=!1),(void 0!==e.apbct&&+e.apbct.blocked||void 0!==e.data&&void 0!==e.data.message)&&(g=!0,(new ApbctShowForbidden).parseBlockMessage(e)),t(e)},onErrorCallback:function(e){g=!1,o(e)}})});case 7:e.n=9;break;case 8:e.p=8,g=!1;case 9:return e.p=9,v=!1,e.f(9);case 10:if(g){e.n=11;break}return e.a(2,k.apply(this,o));case 11:e.n=13;break;case 12:return e.p=12,e.a(2,k.apply(this,o));case 13:return e.a(2)}},e,this,[[6,8,9,10],[1,12]])}))}},{key:"catchJqueryAjax",value:function(){"undefined"!=typeof jQuery&&("function"==typeof jQuery.ajaxSetup&&jQuery.ajaxSetup({beforeSend:function(e,t){var o=new i,n=o.searchSignsForJQAjaxInjection(t,"ajaxSetup");!1!==n.found&&(t.data=o.injectCleantalkDataToJQAjaxString(n,t.data))}}),"function"==typeof jQuery.ajaxPrefilter)&&jQuery.ajaxPrefilter(function(e,t,o){var n=new i,a=n.searchSignsForJQAjaxInjection(e,"ajaxPrefilter");!1!==a.found&&("string"==typeof e.data&&(e.data=n.injectCleantalkDataToJQAjaxString(a,e.data)),"object"===_typeof(e.data))&&"function"==typeof e.data.append&&(e.data=n.injectCleantalkDataToJQAjaxFormData(a,e.data))})}},{key:"searchSignsForJQAjaxInjection",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ajaxSetup",o={found:!1,keepUnwrapped:!1,attachVisibleFieldsData:!1};return"ajaxSetup"===t&&("string"==typeof e.data&&(-1!==e.data.indexOf("action=fl_builder_subscribe_form_submit")&&(o.found="fl_builder_subscribe_form_submit"),-1!==e.data.indexOf("twt_cc_signup")&&(o.found="twt_cc_signup"),-1!==e.data.indexOf("action=mailpoet")&&(o.found="action=mailpoet",o.attachVisibleFieldsData=!0),-1!==e.data.indexOf("action=user_registration")&&-1!==e.data.indexOf("ur_frontend_form_nonce")&&(o.found="action=user_registration"),-1!==e.data.indexOf("action=happyforms_message")&&(o.found="action=happyforms_message"),-1!==e.data.indexOf("action=new_activity_comment")&&(o.found="action=new_activity_comment"),-1!==e.data.indexOf("action=wwlc_create_user")&&(o.found="action=wwlc_create_user"),-1!==e.data.indexOf("action=drplus_signup")&&(o.found="action=drplus_signup",o.keepUnwrapped=!0),-1!==e.data.indexOf("action=bt_cc")&&(o.found="action=bt_cc",o.keepUnwrapped=!0),-1!==e.data.indexOf("action=wpr_form_builder_email")&&(o.found="action=wpr_form_builder_email",o.keepUnwrapped=!0),-1!==e.data.indexOf("action=nf_ajax_submit")&&(o.found="action=nf_ajax_submit",o.keepUnwrapped=!0,o.attachVisibleFieldsData=!0),-1!==e.data.indexOf("action=uael_register_user")&&"none"===ctPublic.data__cookies_type&&(o.found="action=uael_register_user",o.keepUnwrapped=!0),-1!==e.data.indexOf("action=SQBSubmitQuizAjax"))&&(o.found="action=SQBSubmitQuizAjax",o.keepUnwrapped=!0),"string"==typeof e.url)&&-1!==e.url.indexOf("wc-ajax=add_to_cart")&&(o.found="wc-ajax=add_to_cart"),"ajaxPrefilter"===t&&("string"==typeof e.data&&-1!==e.data.indexOf("action=bloom_subscribe")&&(o.found="action=bloom_subscribe",o.keepUnwrapped=!0),"object"===_typeof(e.data))&&"function"==typeof e.data.get&&"pafe_ajax_form_builder"===e.data.get("action")&&(o.found="action=pafe_ajax_form_builder",o.keepUnwrapped=!0),o}},{key:"injectCleantalkDataToJQAjaxFormData",value:function(e,t){if("object"===_typeof(e)&&"object"===_typeof(t)&&t instanceof FormData)try{var o,n;if(+ctPublic.settings__data__bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(o=this.toolGetEventToken())&&(e.keepUnwrapped?t.append("ct_bot_detector_event_token",o):t.append("data[ct_bot_detector_event_token]",o)):(n=getNoCookieData())&&(e.keepUnwrapped?t.append("ct_no_cookie_hidden_field",n):t.append("data[ct_no_cookie_hidden_field]",n)),e.attachVisibleFieldsData){var a=!1;if(ApbctVisibleFieldsExtractor.createExtractor(e.found)){var c,i=null,r=_createForOfIteratorHelper(t.entries());try{for(r.s();!(c=r.n()).done;){var l=c.value;if("form_id"===l[0]||"data[form_id]"===l[0]){i=l[1];break}}}catch(e){r.e(e)}finally{r.f()}var s,u,d,p=null;i&&"string"==typeof i&&(s=i.replace(/["\\]/g,""),p=(p=document.getElementById(s))||document.querySelector('[data-id="'+s+'"]')),p&&(u=p.querySelectorAll("input, select, textarea"),d=(new ApbctAttachData).collectVisibleFields({elements:u}),a=JSON.stringify(d))}"string"==typeof a&&0<a.length&&t.append("apbct_visible_fields",a)}}catch(e){}return t}},{key:"injectCleantalkDataToJQAjaxString",value:function(e,t){if("object"!==_typeof(e)||"string"!=typeof t)return t;var o="",n="",a="";if(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?(c=(new i).toolGetEventToken())&&(o=e.keepUnwrapped?"ct_bot_detector_event_token="+c+"&":"data%5Bct_bot_detector_event_token%5D="+c+"&"):(n=getNoCookieData(),n=e.keepUnwrapped?"ct_no_cookie_hidden_field="+n+"&":"data%5Bct_no_cookie_hidden_field%5D="+n+"&"),e.attachVisibleFieldsData){var c=!1,e=ApbctVisibleFieldsExtractor.createExtractor(e.found);if("string"==typeof(c=e?e.extract(t):c))try{a="apbct_visible_fields="+encodeURIComponent(c)+"&"}catch(e){}}return n+o+a+t}},{key:"catchWCRestRequestAsMiddleware",value:function(){window.hasOwnProperty("wp")&&window.wp.hasOwnProperty("apiFetch")&&"function"==typeof window.wp.apiFetch.use&&window.wp.apiFetch.use(function(e,t){var o;return"object"===_typeof(e)&&null!==e&&e.hasOwnProperty("data")&&void 0!==e.data&&e.hasOwnProperty("path")&&void 0!==e.path&&(e.data.hasOwnProperty("requests")&&0<e.data.requests.length&&e.data.requests[0].hasOwnProperty("path")&&"/wc/store/v1/cart/add-item"===e.data.requests[0].path&&(o=e.data.requests[0].body||(e.data.requests[0].body={}),+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?o.ct_bot_detector_event_token=localStorage.getItem("bot_detector_event_token"):"none"===ctPublic.data__cookies_type&&(o.ct_no_cookie_hidden_field=getNoCookieData())),e.path.includes("/wc/store/v1/checkout"))&&(+ctPublic.bot_detector_enabled&&apbctLocalStorage.get("bot_detector_event_token")?e.data.ct_bot_detector_event_token=localStorage.getItem("bot_detector_event_token"):"none"===ctPublic.data__cookies_type&&(e.data.ct_no_cookie_hidden_field=getNoCookieData())),t(e)})}},{key:"searchFormMiddleware",value:function(){var e,o=this,t=_createForOfIteratorHelper(document.forms);try{for(t.s();!(e=t.n()).done;)(()=>{var t=e.value;"undefined"!=typeof ctPublic&&1==+ctPublic.settings__forms__search_test&&null!==t.getAttribute("apbct-form-sign")&&"native_search"===t.getAttribute("apbct-form-sign")&&(t.apbctSearchPrevOnsubmit=t.onsubmit,t.onsubmit=function(e){return o.searchFormHandler(e,t)})})()}catch(e){t.e(e)}finally{t.f()}}},{key:"searchFormHandler",value:function(e,t){try{var o,n,a,c=t.querySelector('[name*="apbct_email_id__"]'),i=null,r=(null!==c&&null!==c.value&&(i=c.value),getCleanTalkStorageDataArray()),l=apbctLocalStorage.get("bot_detector_event_token");null===r&&null===c&&null===l||(e.preventDefault(),o=function(){null!==c&&c.parentNode.removeChild(c),"function"==typeof t.apbctSearchPrevOnsubmit?t.apbctSearchPrevOnsubmit():HTMLFormElement.prototype.submit.call(t)},n=r,null!==i&&(n.apbct_search_form__honeypot_value=i),n.ct_bot_detector_event_token=l,"string"==typeof n.apbct_pixel_url&&-1!==n.apbct_pixel_url.indexOf("%3A")&&(n.apbct_pixel_url=decodeURIComponent(n.apbct_pixel_url)),void 0!==(a=JSON.stringify(n))&&0!==a.length?ctSetAlternativeCookie(a,{callback:o,onErrorCallback:o,forceAltCookies:!0}):o())}catch(e){console.warn("APBCT search form onsubmit handler error. "+e)}}},{key:"toolForAntiCrawlerCheckDuringBotDetector",value:function(){var e=setInterval(function(){localStorage.bot_detector_event_token&&(ctSetCookie("apbct_bot_detector_exist","1","3600"),clearInterval(e))},500)}},{key:"toolGetEventToken",value:function(){var t=localStorage.getItem("bot_detector_event_token");try{t=JSON.parse(t)}catch(e){t=!1}return!(null===t||!1===t||!t.hasOwnProperty("value")||""===t.value)&&t.value}}])})(),ApbctShowForbidden=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"prepareBlockForAjaxForms",value:function(){var n=function(e){if(e.responseText&&-1!==e.responseText.indexOf('"apbct')&&-1===e.responseText.indexOf("DOCTYPE"))try{this.parseBlockMessage(JSON.parse(e.responseText))}catch(e){console.log(e.toString())}}.bind(this);"undefined"!=typeof jQuery?"function"!=typeof jQuery(document).ajaxComplete()?jQuery(document).on("ajaxComplete",function(e,t,o){n(t)}):jQuery(document).ajaxComplete(function(e,t,o){n(t)}):"undefined"!=typeof XMLHttpRequest&&document.addEventListener("readystatechange",function(e){4===e.target.readyState&&n(e.target)})}},{key:"parseBlockMessage",value:function(e){var t,o="";if((void 0!==e.apbct&&(e=e.apbct).blocked&&(o=e.comment),o=void 0!==e.data&&void 0!==(e=e.data).message?e.message:o)&&(document.dispatchEvent(new CustomEvent("apbctAjaxBockAlert",{bubbles:!0,detail:{message:o}})),cleantalkModal.loaded=o,cleantalkModal.open(),1==+e.stop_script&&(window.stop(),e.integration&&"NEXForms"===e.integration&&((t=document.querySelector("form.submit-nex-form button.nex-submit"))&&(t.disabled=!0,t.style.opacity="0.5",t.style.cursor="not-allowed",t.style.pointerEvents="none",t.style.backgroundColor="#ccc",t.style.color="#fff"),t=document.querySelector("div.nex_success_message"))&&(t.style.display="none"),e.integration)&&"ElfsightForm"===e.integration)){var n=[document];try{document.querySelectorAll("iframe").forEach(function(e){try{e.contentDocument&&n.push(e.contentDocument)}catch(e){}})}catch(e){}for(var a=0,c=n;a<c.length;a++){var i=c[a],r=i.querySelector('[class*="elfsight-app"]');if(r){var l=r.querySelector('button[type="submit"]')||Array.from(r.querySelectorAll('button, [role="button"]')).find(function(e){return"Submit"===e.textContent.trim()||"Submit"===e.getAttribute("aria-label")});l&&(l.disabled=!1,l.removeAttribute("aria-busy"));r.querySelectorAll('[class*="Loader__Spinner"]').forEach(function(e){e.style.display="none"});var s=r.querySelector(".apbct-elfsight-forbidden-msg");s||((s=i.createElement("div")).className="apbct-elfsight-forbidden-msg",s.style.cssText="margin-top:12px;padding:10px;color:#c0392b;font-size:14px;line-height:1.4;",l?l.insertAdjacentElement("afterend",s):r.appendChild(s)),s.textContent=o,s.style.display="";break}}}}}]))(),ApbctVisibleFieldsExtractor=(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"extract",value:function(e){if(e&&"string"==typeof e){try{e=decodeURIComponent(e)}catch(e){return!1}var t=document.querySelectorAll("form"),o=this.getIdFromAjax(e);if(o){var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n()).done;){var c=n.value,i=this.findParentContainer(c);if(i){var r=this.getIdFromHTML(i);if(r===o){var l=i.querySelector("input[id^=apbct_visible_fields_]");if(null!=l&&l.value)return l.value}}}}catch(e){a.e(e)}finally{a.f()}}}return!1}},{key:"getIdFromAjax",value:function(e){return console.warn("getIdFromAjax must be implemented by child class"),null}},{key:"findParentContainer",value:function(e){return console.warn("findParentContainer must be implemented by child class"),null}},{key:"getIdFromHTML",value:function(e){return console.warn("getIdFromHTML must be implemented by child class"),null}}],[{key:"createExtractor",value:function(e){switch(e){case"action=nf_ajax_submit":return new ApbctNinjaFormsVisibleFields;case"action=mailpoet":return new ApbctMailpoetVisibleFields;default:return null}}}]))(),ApbctNinjaFormsVisibleFields=(()=>{function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,ApbctVisibleFieldsExtractor),_createClass(e,[{key:"getIdFromAjax",value:function(e){for(var t=0,o=[/"id"\s*:\s*"?(\d+)"/,/form_id\s*[:\s]*"?(\d+)"/,/nf-form-(\d+)/,/"id":(\d+)/];t<o.length;t++){var n=e.match(o[t]);if(n&&n[1])return parseInt(n[1],10)}return null}},{key:"findParentContainer",value:function(e){for(var t=e;t&&t!==document.body;){if(t.id&&/^nf-form-\d+-cont$/.test(t.id))return t;t=t.parentElement}return null}},{key:"getIdFromHTML",value:function(e){e=e.id.match(/^nf-form-(\d+)-cont$/);return e?parseInt(e[1],10):null}}])})(),ApbctMailpoetVisibleFields=(()=>{function e(){return _classCallCheck(this,e),_callSuper(this,e,arguments)}return _inherits(e,ApbctVisibleFieldsExtractor),_createClass(e,[{key:"getIdFromAjax",value:function(e){for(var t=0,o=[/form_id\s*[:\s]*"?(\d+)"/,/data\[form_id\]=(\d+)/,/form_id=(\d+)/];t<o.length;t++){var n=e.match(o[t]);if(n&&n[1])return parseInt(n[1],10)}return null}},{key:"findParentContainer",value:function(e){return e}},{key:"getIdFromHTML",value:function(e){return e.action&&e.action.match(/mailpoet_subscription_form/)&&(e=e.querySelector('input[type="hidden"][name="data[form_id]"]'))&&e.value?parseInt(e.value,10):null}}])})();function getApbctBasePath(){var e,t=_createForOfIteratorHelper(document.getElementsByTagName("script"));try{for(t.s();!(e=t.n()).done;){var o=e.value;if(o.src&&o.src.includes("apbct-public-bundle")){var n=o.src.match(/^(.*\/js\/)/);if(n&&n[1])return n[1]}}}catch(e){t.e(e)}finally{t.f()}return null}function apbctImportScript(e){return _apbctImportScript.apply(this,arguments)}function _apbctImportScript(){return(_apbctImportScript=_asyncToGenerator(_regenerator().m(function e(n){var t,o,a;return _regenerator().w(function(e){for(;;)switch(e.p=e.n){case 0:t=n.replace(/\/$/,""),o=document.querySelectorAll("script[src]"),o=_createForOfIteratorHelper(o),e.p=1,o.s();case 2:if((a=o.n()).done)e.n=4;else{if(a.value.src.replace(/\/$/,"")===t)return e.a(2,!0);e.n=3}break;case 3:e.n=2;break;case 4:e.n=6;break;case 5:e.p=5,a=e.v,o.e(a);case 6:return e.p=6,o.f(),e.f(6);case 7:return e.a(2,new Promise(function(e,t){var o=document.createElement("script");o.src=n,o.async=!0,o.onload=function(){e(!0)},o.onerror=function(){t(new Error("Script loading failed: "+n))},document.head.appendChild(o)}).catch(function(e){return!1}))}},e,null,[[1,5,6,7]])}))).apply(this,arguments)}function apbct_ready(){return _apbct_ready.apply(this,arguments)}function _apbct_ready(){return(_apbct_ready=_asyncToGenerator(_regenerator().m(function e(){var a,t,c,o,n;return _regenerator().w(function(e){for(;;)switch(e.n){case 0:apbctLocalStorage.set("ct_checkjs",ctPublic.ct_checkjs_key,!0),ctSetCookie("ct_checkjs",ctPublic.ct_checkjs_key,!0),(new ApbctShowForbidden).prepareBlockForAjaxForms(),a=!1,apbctLocalStorage.get("apbct_existing_visitor")&&+ctPublic.bot_detector_enabled&&!apbctLocalStorage.get("bot_detector_event_token")&&void 0===ApbctGatheringData?(t=getApbctBasePath(),e.n=t?1:3):e.n=3;break;case 1:return o=t+"public-2-gathering-data.min.js",e.n=2,apbctImportScript(o);case 2:a=e.v;case 3:if((c=new ApbctHandler).detectForcedAltCookiesForms(),+ctPublic.bot_detector_enabled&&!a||void 0===ApbctGatheringData||((o=new ApbctGatheringData).setSessionId(),o.writeReferrersToSessionStorage(),o.setCookiesType(),o.startFieldsListening(),o.listenAutocomplete(),o.gatheringTypoData()),"function"==typeof initParams)try{initParams(a)}catch(e){console.log("initParams error:",e)}setTimeout(function(){+ctPublic.bot_detector_enabled&&((e=new ApbctEventTokenTransport).attachEventTokenToMultipageGravityForms(),e.attachEventTokenToWoocommerceGetRequestAddToCart());var e,t=new ApbctAttachData;+ctPublic.bot_detector_enabled&&!a||t.attachHiddenFieldsToForms(a);for(var o=0;o<document.forms.length;o++){var n=document.forms[o];c.excludeForm(n)||(t.attachVisibleFieldsToForm(n,o),c.catchMain(n,o))}},1e3),1==+ctPublic.settings__forms__search_test&&c.searchFormMiddleware(),c.catchXmlHttpRequest(),c.catchFetchRequest(),c.catchIframeFetchRequest(),c.catchJqueryAjax(),c.catchWCRestRequestAsMiddleware(),+ctPublic.bot_detector_enabled&&(n=!1,window.addEventListener("botDetectorEventTokenUpdated",function(e){e=null==(e=e.detail)?void 0:e.eventToken;e&&!n&&(ctSetCookie([["ct_bot_detector_event_token",e]]),n=!0,void 0!==ctPublic.force_alt_cookies)&&ctPublic.force_alt_cookies&&ctSetAlternativeCookie(JSON.stringify({ct_bot_detector_event_token:e}),{forceAltCookies:!0})})),ctPublic.settings__sfw__anti_crawler&&+ctPublic.bot_detector_enabled&&c.toolForAntiCrawlerCheckDuringBotDetector(),apbctLocalStorage.set("apbct_existing_visitor",1);case 4:return e.a(2)}},e)}))).apply(this,arguments)}var tokenCheckerIntervalId,ctMouseReadInterval,ctMouseWriteDataInterval,defaultSend=XMLHttpRequest.prototype.send,ApbctGatheringData=("loading"!==document.readyState?apbct_ready():apbct_attach_event_handler(document,"DOMContentLoaded",apbct_ready),(new ApbctHandler).cronFormsHandler(2e3),(()=>_createClass(function e(){_classCallCheck(this,e)},[{key:"setSessionId",value:function(){var e;apbctSessionStorage.isSet("apbct_session_id")?apbctLocalStorage.set("apbct_page_hits",Number(apbctLocalStorage.get("apbct_page_hits"))+1):(e=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(2,10),apbctSessionStorage.set("apbct_session_id",e,!1),apbctLocalStorage.set("apbct_page_hits",1),document.referrer&&new URL(document.referrer).host!==location.host&&apbctSessionStorage.set("apbct_site_referer",document.referrer,!1))}},{key:"writeReferrersToSessionStorage",value:function(){var e=apbctSessionStorage.get("apbct_session_current_page");!1!==e&&document.location.href!==e&&apbctSessionStorage.set("apbct_prev_referer",e,!1),apbctSessionStorage.set("apbct_session_current_page",document.location.href,!1)}},{key:"setCookiesType",value:function(){var e=apbctLocalStorage.get("ct_cookies_type");e&&e===ctPublic.data__cookies_type||(apbctLocalStorage.set("ct_cookies_type",ctPublic.data__cookies_type),apbctLocalStorage.delete("ct_mouse_moved"),apbctLocalStorage.delete("ct_has_scrolled"))}},{key:"startFieldsListening",value:function(){if(!apbctLocalStorage.isSet("ct_has_key_up")&&!apbctLocalStorage.get("ct_has_key_up")||!apbctLocalStorage.isSet("ct_has_input_focused")&&!apbctLocalStorage.get("ct_has_input_focused")||"native"!==ctPublic.data__cookies_type||void 0===ctGetCookie("ct_has_input_focused")||void 0===ctGetCookie("ct_has_key_up")){var e=ctGetPageForms();if(ctPublic.handled_fields=[],0<e.length)for(var t=0;t<e.length;t++)for(var o=e[t].querySelectorAll("input,textarea"),n=0;n<o.length;n++)"hidden"!==o[n].type&&(ctPublic.handled_fields.push(o[n]),apbct_attach_event_handler(o[n],"focus",ctFunctionHasInputFocused),apbct_attach_event_handler(o[n],"keyup",ctFunctionHasKeyUp))}}},{key:"listenAutocomplete",value:function(){window.addEventListener("animationstart",this.apbctOnAnimationStart,!0),window.addEventListener("input",this.apbctOnInput,!0)}},{key:"gatheringTypoData",value:function(){document.ctTypoData=new CTTypoData,document.ctTypoData.gatheringFields(),document.ctTypoData.setListeners()}},{key:"gatheringMouseData",value:function(){new ApbctCollectingUserMouseActivity}},{key:"getScreenInfo",value:function(){var e=document.documentElement,t=document.body,t={scrollWidth:e.scrollWidth,bodyScrollHeight:t.scrollHeight,docScrollHeight:e.scrollHeight,bodyOffsetHeight:t.offsetHeight,docOffsetHeight:e.offsetHeight,bodyClientHeight:t.clientHeight,docClientHeight:e.clientHeight,docClientWidth:e.clientWidth};return JSON.stringify({fullWidth:t.scrollWidth,fullHeight:Math.max(t.bodyScrollHeight,t.docScrollHeight,t.bodyOffsetHeight,t.docOffsetHeight,t.bodyClientHeight,t.docClientHeight),visibleWidth:t.docClientWidth,visibleHeight:t.docClientHeight})}},{key:"restartFieldsListening",value:function(){apbctLocalStorage.isSet("ct_has_input_focused")||apbctLocalStorage.isSet("ct_has_key_up")||this.startFieldsListening()}}]))()),ApbctCollectingUserMouseActivity=(()=>_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"elementBody",document.querySelector("body")),_defineProperty(this,"collectionForms",document.forms),this.setListeners()},[{key:"setListeners",value:function(){var t=this;this.elementBody.addEventListener("click",function(e){t.checkElementInForms(e,"addClicks")}),this.elementBody.addEventListener("mouseup",function(e){"Range"==document.getSelection().type.toString()&&t.addSelected()}),this.elementBody.addEventListener("mousemove",function(e){t.checkElementInForms(e,"trackMouseMovement")})}},{key:"checkElementInForms",value:function(e,t){for(var o,n=0;n<this.collectionForms.length;n++)o=0<e.target.outerHTML.length&&0<this.collectionForms[n].innerHTML.length?this.collectionForms[n].innerHTML.indexOf(e.target.outerHTML):-1;switch(t){case"addClicks":o<0&&this.addClicks();break;case"trackMouseMovement":-1<o&&this.trackMouseMovement()}}},{key:"addClicks",value:function(){document.ctCollectingUserActivityData?document.ctCollectingUserActivityData.clicks?document.ctCollectingUserActivityData.clicks++:document.ctCollectingUserActivityData.clicks=1:document.ctCollectingUserActivityData={clicks:1}}},{key:"addSelected",value:function(){document.ctCollectingUserActivityData?document.ctCollectingUserActivityData.selected?document.ctCollectingUserActivityData.selected++:document.ctCollectingUserActivityData.selected=1:document.ctCollectingUserActivityData={selected:1}}},{key:"trackMouseMovement",value:function(){document.ctCollectingUserActivityData||(document.ctCollectingUserActivityData={}),document.ctCollectingUserActivityData.mouseMovementsInsideForm||(document.ctCollectingUserActivityData.mouseMovementsInsideForm=!1),document.ctCollectingUserActivityData.mouseMovementsInsideForm=!0}}]))(),CTTypoData=(()=>_createClass(function e(){_classCallCheck(this,e),_defineProperty(this,"fieldData",{isAutoFill:!1,isUseBuffer:!1,speedDelta:0,firstKeyTimestamp:0,lastKeyTimestamp:0,lastDelta:0,countOfKey:0}),_defineProperty(this,"fields",document.querySelectorAll("textarea[name=comment]")),_defineProperty(this,"data",[])},[{key:"gatheringFields",value:function(){var o=this;Array.prototype.slice.call(this.fields).forEach(function(e,t){o.data.push(Object.assign({},o.fieldData))})}},{key:"setListeners",value:function(){var n=this;this.fields.forEach(function(e,t){e.addEventListener("paste",function(){n.data[t].isUseBuffer=!0})}),this.fields.forEach(function(e,t){e.addEventListener("onautocomplete",function(){n.data[t].isAutoFill=!0})}),this.fields.forEach(function(e,o){e.addEventListener("input",function(){n.data[o].countOfKey++;var e,t=+new Date;1===n.data[o].countOfKey?(n.data[o].lastKeyTimestamp=t,n.data[o].firstKeyTimestamp=t):(e=t-n.data[o].lastKeyTimestamp,2===n.data[o].countOfKey?(n.data[o].lastKeyTimestamp=t,n.data[o].lastDelta=e):2<n.data[o].countOfKey&&(n.data[o].speedDelta+=Math.abs(n.data[o].lastDelta-e),n.data[o].lastKeyTimestamp=t,n.data[o].lastDelta=e))})})}}]))(),ctTimeMs=(new Date).getTime(),ctMouseEventTimerFlag=!0,ctMouseData=[],ctMouseDataCounter=0,ctFunctionFirstKey=function(e){ctSetCookie("ct_fkp_timestamp",Math.floor((new Date).getTime()/1e3)),ctKeyStopStopListening()};function ctMouseStopData(){apbct_remove_event_handler(document,"mousemove",ctFunctionMouseMove),clearInterval(ctMouseReadInterval),clearInterval(ctMouseWriteDataInterval)}ctPublic.data__key_is_ok&&(ctMouseReadInterval=setInterval(function(){ctMouseEventTimerFlag=!0},150),ctMouseWriteDataInterval=setInterval(function(){ctSetCookie("ct_pointer_data",JSON.stringify(ctMouseData))},1200));var ctFunctionMouseMove=function(e){ctSetMouseMoved(),!0===ctMouseEventTimerFlag&&(ctMouseData.push([Math.round(e.clientY),Math.round(e.clientX),Math.round((new Date).getTime()-ctTimeMs)]),ctMouseEventTimerFlag=!1,50<=++ctMouseDataCounter)&&ctMouseStopData()};function ctKeyStopStopListening(){apbct_remove_event_handler(document,"mousedown",ctFunctionFirstKey),apbct_remove_event_handler(document,"keydown",ctFunctionFirstKey)}function ctSetHasScrolled(){apbctLocalStorage.isSet("ct_has_scrolled")&&apbctLocalStorage.get("ct_has_scrolled")||(ctSetCookie("ct_has_scrolled","true"),apbctLocalStorage.set("ct_has_scrolled",!0)),"native"===ctPublic.data__cookies_type&&void 0===ctGetCookie("ct_has_scrolled")&&ctSetCookie("ct_has_scrolled","true")}function ctSetMouseMoved(){apbctLocalStorage.isSet("ct_mouse_moved")&&apbctLocalStorage.get("ct_mouse_moved")||(ctSetCookie("ct_mouse_moved","true"),apbctLocalStorage.set("ct_mouse_moved",!0)),"native"===ctPublic.data__cookies_type&&void 0===ctGetCookie("ct_mouse_moved")&&ctSetCookie("ct_mouse_moved","true")}function ctStopFieldsListening(e,t){if(void 0!==ctPublic.handled_fields&&0<ctPublic.handled_fields.length)for(var o=0;o<ctPublic.handled_fields.length;o++)apbct_remove_event_handler(ctPublic.handled_fields[o],e,t)}var ctFunctionHasInputFocused=function(e){ctSetHasInputFocused(),ctStopFieldsListening("focus",ctFunctionHasInputFocused)},ctFunctionHasKeyUp=function(e){ctSetHasKeyUp(),ctStopFieldsListening("keyup",ctFunctionHasKeyUp)};function ctSetHasInputFocused(){apbctLocalStorage.isSet("ct_has_input_focused")&&apbctLocalStorage.get("ct_has_input_focused")||apbctLocalStorage.set("ct_has_input_focused",!0),("native"===ctPublic.data__cookies_type&&void 0===ctGetCookie("ct_has_input_focused")||"alternative"===ctPublic.data__cookies_type||"none"===ctPublic.data__cookies_type&&(void 0!==ctPublic.force_alt_cookies||void 0!==ctPublic.force_alt_cookies&&ctPublic.force_alt_cookies))&&ctSetCookie("ct_has_input_focused","true")}function ctSetHasKeyUp(){apbctLocalStorage.isSet("ct_has_key_up")&&apbctLocalStorage.get("ct_has_key_up")||apbctLocalStorage.set("ct_has_key_up",!0),("native"===ctPublic.data__cookies_type&&void 0===ctGetCookie("ct_has_key_up")||"alternative"===ctPublic.data__cookies_type||"none"===ctPublic.data__cookies_type&&(void 0!==ctPublic.force_alt_cookies||void 0!==ctPublic.force_alt_cookies&&ctPublic.force_alt_cookies))&&ctSetCookie("ct_has_key_up","true")}function getJavascriptClientData(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t={},o=(t.ct_checked_emails=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_checked_emails"),t.ct_checked_emails_exist=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_checked_emails_exist"),t.ct_checkjs=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_checkjs"),t.ct_fkp_timestamp=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_fkp_timestamp"),t.ct_pointer_data=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_pointer_data"),t.ct_ps_timestamp=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_ps_timestamp"),t.ct_screen_info=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_screen_info"),t.ct_timezone=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_timezone"),apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"ct_mouse_moved")),n=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"ct_has_scrolled"),a=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"ct_cookies_type"),c=apbctLocalStorage.get("apbct_page_hits"),i=apbctSessionStorage.get("apbct_prev_referer"),r=apbctSessionStorage.get("apbct_site_referer"),l=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"ct_js_errors"),s=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"apbct_pixel_url"),u=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"apbct_headless"),d=apbctLocalStorage.get(ctPublicFunctions.cookiePrefix+"ct_bot_detector_frontend_data_log"),p=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_mouse_moved"),_=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_has_scrolled"),f=ctGetCookie(ctPublicFunctions.cookiePrefix+"ct_cookies_type"),m=ctGetCookie(ctPublicFunctions.cookiePrefix+"apbct_pixel_url"),b=!!ctGetCookie(ctPublicFunctions.cookiePrefix+"apbct_headless");if(t.ct_mouse_moved=void 0!==o?o:p,t.ct_has_scrolled=void 0!==n?n:_,t.ct_cookies_type=void 0!==a?a:f,t.apbct_pixel_url=void 0!==s?s:m,t.apbct_headless=void 0!==u?u:b,t.ct_bot_detector_frontend_data_log=void 0!==d?d:"",t.apbct_pixel_url&&"string"==typeof t.apbct_pixel_url&&t.apbct_pixel_url.indexOf("%3A%2F")&&(t.apbct_pixel_url=decodeURIComponent(t.apbct_pixel_url)),t.apbct_page_hits=c,t.apbct_prev_referer=i,t.apbct_site_referer=r,t.apbct_ct_js_errors=l,t.apbct_pixel_url||(t.apbct_pixel_url=ctPublic.pixel__url),"object"===_typeof(e))for(var h=0;h<e.length;++h)"object"===_typeof(e[h][1])?t[e[h][1][0]]=e[h][1][1]:t[e[h][0]]=e[h][1];else console.log("APBCT JS ERROR: Collecting data type mismatch");return t=removeDoubleJsonEncoding(t),JSON.stringify(t)}function ctIsDrawPixel(){return("3"!=ctPublic.pixel__setting||!+ctPublic.bot_detector_enabled)&&(+ctPublic.pixel__enabled||"none"===ctPublic.data__cookies_type&&0===document.querySelectorAll("img#apbct_pixel").length||"alternative"===ctPublic.data__cookies_type&&0===document.querySelectorAll("img#apbct_pixel").length)}function ctSetPixelImg(e){if("3"==ctPublic.pixel__setting&&+ctPublic.bot_detector_enabled)return!1;var t;ctSetCookie("apbct_pixel_url",e),ctIsDrawPixel()&&!document.getElementById("apbct_pixel")&&((t=document.createElement("img")).setAttribute("alt","CleanTalk Pixel"),t.setAttribute("title","CleanTalk Pixel"),t.setAttribute("id","apbct_pixel"),t.setAttribute("style","display: none; left: 99999px;"),t.setAttribute("src",e),apbct("body").append(t))}function ctSetPixelImgFromLocalstorage(e){if("3"==ctPublic.pixel__setting&&+ctPublic.bot_detector_enabled)return!1;var t;ctIsDrawPixel()&&!document.getElementById("apbct_pixel")&&((t=document.createElement("img")).setAttribute("alt","CleanTalk Pixel"),t.setAttribute("title","CleanTalk Pixel"),t.setAttribute("id","apbct_pixel"),t.setAttribute("style","display: none; left: 99999px;"),t.setAttribute("src",decodeURIComponent(e)),apbct("body").append(t))}function ctGetPixelUrl(){if("3"==ctPublic.pixel__setting&&+ctPublic.bot_detector_enabled)return!1;var e=apbctLocalStorage.get("apbct_pixel_url");if(!1!==e){if(apbctLocalStorage.isAlive("apbct_pixel_url",10800))return void ctSetPixelImgFromLocalstorage(e);apbctLocalStorage.delete("apbct_pixel_url")}"rest"===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("apbct_get_pixel_url",{method:"POST",callback:function(e){e&&("string"==typeof e||e instanceof String)&&0===e.indexOf("https")&&(apbctLocalStorage.get("apbct_pixel_url")||(apbctLocalStorage.set("apbct_pixel_url",e),ctNoCookieAttachHiddenFieldsToForms()),ctSetPixelImg(e))}}):apbct_public_sendAJAX({action:"apbct_get_pixel_url"},{notJson:!0,callback:function(e){e&&("string"==typeof e||e instanceof String)&&0===e.indexOf("https")&&(apbctLocalStorage.get("apbct_pixel_url")||(apbctLocalStorage.set("apbct_pixel_url",e),ctNoCookieAttachHiddenFieldsToForms()),ctSetPixelImg(e))},beforeSend:function(e){e.setRequestHeader("X-Robots-Tag","noindex, nofollow")}})}function ctSetPixelUrlLocalstorage(e){ctSetCookie("apbct_pixel_url",e)}function apbctOnAnimationStart(e){("onautofillstart"===e.animationName?apbctAutocomplete:apbctCancelAutocomplete)(e.target)}function apbctOnInput(e){("insertReplacementText"!==e.inputType&&"data"in e?apbctCancelAutocomplete:apbctAutocomplete)(e.target)}function apbctAutocomplete(e){var t;e.hasAttribute("autocompleted")||(e.setAttribute("autocompleted",""),t=new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!0,detail:null}),e.dispatchEvent(t))||(e.value="")}function apbctCancelAutocomplete(e){e.hasAttribute("autocompleted")&&(e.removeAttribute("autocompleted"),e.dispatchEvent(new window.CustomEvent("onautocomplete",{bubbles:!0,cancelable:!1,detail:null})))}ctPublic.data__key_is_ok&&(apbct_attach_event_handler(document,"mousemove",ctFunctionMouseMove),apbct_attach_event_handler(document,"mousedown",ctFunctionFirstKey),apbct_attach_event_handler(document,"keydown",ctFunctionFirstKey),apbct_attach_event_handler(document,"scroll",ctSetHasScrolled));var botDetectorLogLastUpdate=0,botDetectorLogEventTypesCollected=[];function sendBotDetectorLogToAltSessions(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:3e3,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1e3;setTimeout(function(){setInterval(function(){var e=apbctLocalStorage.get("ct_bot_detector_frontend_data_log");needsSaveLogToAltSessions(e)&&(botDetectorLogLastUpdate=e.log_last_update,ctSetAlternativeCookie([],{forceAltCookies:!0}))},t)},e)}function needsSaveLogToAltSessions(e){if(e&&e.hasOwnProperty("log_last_update")&&botDetectorLogLastUpdate!==e.log_last_update)try{for(var t=0;t<e.records.length;t++){var o=e.records[t].frontend_data.js_event;if(void 0===o||!botDetectorLogEventTypesCollected.includes(o))return botDetectorLogEventTypesCollected.push(o),!0}}catch(e){console.log("APBCT: bot detector log collection error: ".e.toString())}return!1}ctPublicFunctions.hasOwnProperty("bot_detector_enabled")&&+ctPublicFunctions.bot_detector_enabled&&ctPublicFunctions.hasOwnProperty("data__frontend_data_log_enabled")&&1==ctPublicFunctions.data__frontend_data_log_enabled&&sendBotDetectorLogToAltSessions(1e3);var ctCheckedEmails={},ctCheckedEmailsExist={};function checkEmail(e){var t=e.target.value;!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||!t||t in ctCheckedEmails||("rest"===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("check_email_before_post",{method:"POST",data:{email:t},callback:function(e){e.result&&(ctCheckedEmails[t]={result:e.result,timestamp:Date.now()/1e3|0},ctSetCookie("ct_checked_emails",JSON.stringify(ctCheckedEmails)))}}):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_email_check_before_post",email:t},{callback:function(e){e.result&&(ctCheckedEmails[t]={result:e.result,timestamp:Date.now()/1e3|0},ctSetCookie("ct_checked_emails",JSON.stringify(ctCheckedEmails)))}}))}function checkEmailExist(t){var e,o=t.target.value;o&&o.length?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)&&(o in ctCheckedEmailsExist?(e=ctCheckedEmailsExist[o],getResultCheckEmailExist(t,e,o)):(viewCheckEmailExist(t,"load"),(ctPublicFunctions.data__ajax_type="rest")===ctPublicFunctions.data__ajax_type?apbct_public_sendREST("check_email_exist_post",{method:"POST",data:{email:o},callback:function(e){getResultCheckEmailExist(t,e,o)}}):"admin_ajax"===ctPublicFunctions.data__ajax_type&&apbct_public_sendAJAX({action:"apbct_email_check_exist_post",email:o},{callback:function(e){getResultCheckEmailExist(t,e,o)}}))):((e=document.getElementById("apbct-check_email_exist-block"))&&e.remove(),(e=document.getElementById("apbct-check_email_exist-popup_description"))&&e.remove())}function getResultCheckEmailExist(e,t,o){t&&t.result&&(t=t.result,ctCheckedEmailsExist[o]={result:t,timestamp:Date.now()/1e3|0},"EXISTS"==t.result?viewCheckEmailExist(e,"good_email",t.text_result):viewCheckEmailExist(e,"bad_email",t.text_result),ctSetCookie("ct_checked_emails_exist",JSON.stringify(ctCheckedEmailsExist)))}function viewCheckEmailExist(e,t,o){var n,a,e=e.target.parentElement,c=(c=e.querySelector('[name*="email"]'))||e.querySelector('[type*="email"]');if(c)switch(document.getElementById("apbct-check_email_exist-block")?n=document.getElementById("apbct-check_email_exist-block"):((n=document.createElement("div")).setAttribute("class","apbct-check_email_exist-block"),n.setAttribute("id","apbct-check_email_exist-block"),window.addEventListener("scroll",function(){n.style.top=c.getBoundingClientRect().top+"px"}),e.after(n)),document.getElementById("apbct-check_email_exist-popup_description")?a=document.getElementById("apbct-check_email_exist-popup_description"):((a=document.createElement("div")).setAttribute("class","apbct-check_email_exist-popup_description"),a.setAttribute("id","apbct-check_email_exist-popup_description"),window.addEventListener("scroll",function(){a.style.top=n.getBoundingClientRect().top+"px"}),n.after(a)),ctEmailExistSetElementsPositions(c),ctListenRequiredRedrawing(c),t){case"load":n.classList.remove("apbct-check_email_exist-good_email","apbct-check_email_exist-bad_email"),n.classList.add("apbct-check_email_exist-load");break;case"good_email":n.classList.remove("apbct-check_email_exist-load","apbct-check_email_exist-bad_email"),n.classList.add("apbct-check_email_exist-good_email"),n.onmouseover=function(){a.textContent=o,a.style.display="block",a.style.top=c.getBoundingClientRect().top-a.getBoundingClientRect().height+"px",a.style.color="#1C7129"},n.onmouseout=function(){a.style.display="none"};break;case"bad_email":n.classList.remove("apbct-check_email_exist-load","apbct-check_email_exist-good_email"),n.classList.add("apbct-check_email_exist-bad_email"),n.onmouseover=function(){a.textContent=o,a.style.display="block",a.style.top=c.getBoundingClientRect().top-a.getBoundingClientRect().height+"px",a.style.color="#E01111"},n.onmouseout=function(){a.style.display="none"}}}function ctEmailExistSetElementsPositions(e){if(!(!e instanceof HTMLInputElement)){var t=e.getBoundingClientRect(),o=e.offsetHeight,n=e.offsetWidth,a=1.2*o,c=0,i=!1;try{var r=window.getComputedStyle(e),l=e.parentElement||e,s=window.getComputedStyle(l,"::after"),u=s.getPropertyValue("content"),c=s.getPropertyValue("font-size")||s.getPropertyValue("width"),d=(u&&"none"!==u&&0<parseFloat(c)&&(i=!0),"string"==typeof r.fontSize&&r.fontSize),p=d||"inherit"}catch(e){p="inherit"}e=document.getElementById("apbct-check_email_exist-block"),s=(e&&(l=0,i&&(l=parseFloat(c)),e.style.cssText="\n            top: ".concat(t.top,"px;\n            left: ").concat(t.right-a-l,"px;\n            height: ").concat(o,"px;\n            width: ").concat(a,"px;\n            background-size: ").concat(p,";\n            background-position: center;\n        ")),document.getElementById("apbct-check_email_exist-popup_description"));s&&(s.style.width="".concat(n,"px"),s.style.left="".concat(t.left,"px"))}}function ctListenRequiredRedrawing(t){window.addEventListener("resize",function(e){ctEmailExistSetElementsPositions(t)}),[{selector:"form.wpcf7-form",observerConfig:{childList:!0,subtree:!0},emailElement:t},{selector:"form.hp-form--user-register",observerConfig:{childList:!0,subtree:!0},emailElement:t}].forEach(function(e){ctWatchFormChanges(e.selector,e.observerConfig,function(){ctEmailExistSetElementsPositions(e.emailElement)})})}function ctWatchFormChanges(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,o=2<arguments.length?arguments[2]:void 0,n=document.querySelector(e);return!(!n||!t)&&((e=new MutationObserver(function(e){e.forEach(function(e){"childList"!==e.type&&"attributes"!==e.type||o(n,e)})})).observe(n,t),e)}function apbctIntegrateDynamicEmailCheck(e){var t=e.formSelector,o=e.emailSelector,n=e.handler,a=e.debounce,c=void 0===a?300:a,a=e.attribute,i=void 0===a?"data-apbct-email-exist":a;document.querySelectorAll(t+" "+o).forEach(function(e){e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(n,c)),e.setAttribute(i,"1"))}),new MutationObserver(function(e){e.forEach(function(e){e.addedNodes.forEach(function(e){1===e.nodeType&&(e.matches&&e.matches(t+" "+o)&&(e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(n,c)),e.setAttribute(i,"1"))),e.querySelectorAll)&&e.querySelectorAll(o).forEach(function(e){e.hasAttribute(i)||(e.addEventListener("blur",ctDebounceFuncExec(n,c)),e.setAttribute(i,"1"))})})})}).observe(document.body,{childList:!0,subtree:!0})}function ctProcessError(e,t){var o={},e=(e&&e.message?o.err={msg:e.message,file:e.fileName||!1,ln:e.lineNumber||lineNo||!1,col:e.columnNumber||columnNo||!1,stacktrace:e.stack||!1,cause:!!t&&JSON.stringify(t),errorObj:error||!1}:(o.err={msg:e},t&&(o.err.file=t)),o.url=window.location.href,o.userAgent=window.navigator.userAgent,"ct_js_errors");null===(n=localStorage.getItem(e))&&(n="[]");for(var n=JSON.parse(n),a=0;a<n.length;a++)if(n[a].err.msg===o.err.msg)return;n.push(o),localStorage.setItem(e,JSON.stringify(n))}function closeAllPopupTRP(){var e=document.querySelectorAll(".apbct-real-user-popup.visible");0<e.length&&e.forEach(function(e){e.classList.remove("visible")})}1===Math.floor(100*Math.random())&&(window.onerror=function(e,t){for(var o=["apbct","ctPublic"],n=o.length;n--;)-1!==e.indexOf(o[n])&&ctProcessError(e,t);return!1}),document.addEventListener("DOMContentLoaded",function(){var e,t=this,d=void 0,p=!1;"undefined"==typeof ctPublic&&"undefined"==typeof ctTrpAdminLocalize||void 0===(d="undefined"!=typeof ctPublic&&ctPublic.theRealPerson?ctPublic.theRealPerson:d)&&"undefined"!=typeof ctTrpAdminLocalize&&ctTrpAdminLocalize.theRealPerson&&(d=ctTrpAdminLocalize.theRealPerson,p=!0),d&&(e='.apbct-trp > .comment-body *[class*="comment-author"]',document.querySelector(".apbct-trp .comment-author .comment-author-link")&&(e='.apbct-trp *[class*="comment-author-link"]'),0!==(e=document.querySelectorAll(e+',.apbct-trp > .wp-block-group *[class*="comment-author"],.apbct-trp *[class*="review__author"],.apbct-trp td[class*="column-author"] > strong')).length)&&(e.forEach(function(e,t){var o,n,a,c,i,r,l,s,u;e.className.indexOf("review")<0&&"undefined"==typeof pagenow&&e.parentElement.className.indexOf("group")<0&&"DIV"!=e.tagName||e.querySelector(".comment-metadata")||((o=document.createElement("div")).setAttribute("class","apbct-real-user-badge"),(n=document.createElement("img")).setAttribute("src",d.imgPersonUrl),n.setAttribute("class","apbct-real-user-popup-img"),(a=document.createElement("div")).setAttribute("class","apbct-real-user-popup"),(r=document.createElement("strong")).append(d.phrases.trpHeading),(c=document.createElement("div")).setAttribute("class","apbct-real-user-popup-content_row"),c.setAttribute("style","white-space: nowrap"),(i=document.createElement("div")).append(r),i.append(" "),i.append(d.phrases.trpContent1),(r=document.createElement("div")).style.display="flex",r.style.gap="5px",(l=document.createElement("div")).append(d.phrases.trpContent2),r.append(l),p&&(l=document.createElement("div"),(s=document.createElement("a")).setAttribute("href",d.trpContentLink),s.setAttribute("target","_blank"),(u=document.createElement("img")).setAttribute("src",ctAdminCommon.new_window_gif),u.setAttribute("alt","New window"),u.setAttribute("style","padding-top:3px"),s.append(u),l.append(s),r.append(l)),c.append(i,r),a.append(c),o.append(n),e.append(o),e.append(a))}),document.querySelectorAll(".apbct-real-user-badge").forEach(function(n){var a=void 0,e=(t.body.addEventListener("click",function(e){-1==e.target.className.indexOf("apbct-real-user")&&-1==e.target.parentElement.className.indexOf("apbct-real-user")&&closeAllPopupTRP()}),n.addEventListener("click",function(){var e=this.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.toggle("visible")}),n.addEventListener("mouseenter",function(){closeAllPopupTRP();var e=this.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.add("visible")}),n.addEventListener("mouseleave",function(){var t=this;a=setTimeout(function(){var e=t.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},1e3)}),n.nextElementSibling);e.addEventListener("mouseenter",function(){clearTimeout(a),e.classList.add("visible")}),e.addEventListener("mouseleave",function(){a=setTimeout(function(){e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},1e3)}),n.addEventListener("touchend",function(){var o=this;a=setTimeout(function(){var e=o.nextElementSibling,t=window.getSelection();e&&t&&e.classList.contains("apbct-real-user-popup")&&0===t.toString().length?e.classList.remove("visible"):(clearTimeout(a),document.addEventListener("selectionchange",function e(){var t=window.getSelection();t&&0===t.toString().length&&(a=setTimeout(function(){var e=n.nextElementSibling;e&&e.classList.contains("apbct-real-user-popup")&&e.classList.remove("visible")},3e3),document.removeEventListener("selectionchange",e))}))},3e3)})}))});
(function($){$.fn.modal=function(option){var modal=this;var modalId=modal.attr("id");var $backdrop=null;if(option==="hide"){modal.removeClass("in show");$backdrop=$('.wpdm-modal-backdrop[data-modal="'+modalId+'"]');$backdrop.removeClass("in");setTimeout(function(){modal.css("display","none");$backdrop.remove();$("body").removeClass("modal-open").css("overflow","");modal.trigger("hidden.bs.modal")},250);$(document).off("keydown.wpdmModal");return modal}if(option==="show"||option===undefined){$("body").addClass("modal-open").css("overflow","hidden");$backdrop=$('<div class="modal-backdrop fade wpdm-modal-backdrop" data-modal="'+modalId+'"></div>');$("body").append($backdrop);modal.css({display:"block","z-index":1050});modal[0].offsetHeight;setTimeout(function(){$backdrop.addClass("in");modal.addClass("in show");modal.trigger("shown.bs.modal")},10);modal.find('[data-dismiss="modal"]').off("click.wpdmModal").on("click.wpdmModal",function(e){e.preventDefault();modal.modal("hide")});$backdrop.on("click",function(){if(!modal.data("backdrop")||modal.data("backdrop")!=="static"){modal.modal("hide")}});$(document).off("keydown.wpdmModal").on("keydown.wpdmModal",function(e){if(e.key==="Escape"&&modal.hasClass("in")){if(!modal.data("keyboard")||modal.data("keyboard")!==false){modal.modal("hide")}}})}if(option==="toggle"){if(modal.hasClass("in")){modal.modal("hide")}else{modal.modal("show")}}return modal};$.fn.tooltip=function(options){var settings=$.extend({background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"4px",fontSize:"12px"},options);var $tooltip=$("<div class='simple-tooltip'></div>").css({position:"absolute",maxWidth:"200px",display:"none",zIndex:9999,background:settings.background,color:settings.color,padding:settings.padding,borderRadius:settings.borderRadius,fontSize:settings.fontSize,pointerEvents:"none"}).appendTo("body");return this.each(function(){var $elem=$(this);var title=$elem.attr("title");$elem.on("mouseenter",function(e){if(!title)return;$elem.data("tip-title",title).removeAttr("title");$tooltip.text(title).fadeIn(150);$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mousemove",function(e){$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mouseleave",function(){$tooltip.hide();$elem.attr("title",$elem.data("tip-title"))})})}})(jQuery);jQuery(function($){var $body=$("body");$body.on("click",'.w3eden [data-toggle="collapse"]',function(e){e.preventDefault();var target=$(this).attr("href")||$(this).data("target");$(target).slideToggle(200)});$body.on("click",'.w3eden [data-toggle="modal"], .w3eden[data-toggle="modal"]',function(e){e.preventDefault();var target=$(this).data("target");$(target).modal("show")});$body.on("click",'.w3eden [data-toggle="tab"]',function(e){e.preventDefault();var $this=$(this);var $container=$this.closest(".nav-tabs, .nav-pills");var target=$this.attr("href");$container.find('[data-toggle="tab"]').each(function(){var $tab=$(this);$tab.removeClass("active");$tab.parent("li").removeClass("active");var pane=$tab.attr("href");if(pane){$(pane).removeClass("active in")}});$this.addClass("active");$this.parent("li").addClass("active");if(target){$(target).addClass("active in")}$this.trigger("shown.bs.tab")});$body.on("click",'.w3eden [data-toggle="dropdown"]',function(e){e.preventDefault();e.stopPropagation();var $dropdown=$(this).closest(".dropdown, .btn-group");var isOpen=$dropdown.hasClass("open");$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open");if(!isOpen){$dropdown.addClass("open")}});$(document).on("click",function(e){if(!$(e.target).closest(".dropdown, .btn-group").length){$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open")}})});
var allps,pss;let count=0;let colors=[];var wpdm_pass_target="#pps_z";String.prototype.wpdm_shuffle=function(){var a=this.split(""),n=a.length;for(var i=n-1;i>0;i--){var j=Math.floor(Math.random()*(i+1));var tmp=a[i];a[i]=a[j];a[j]=tmp}return a.join("")};String.prototype.wpdm_hash=function(){if(Array.prototype.reduce){return this.split("").reduce(function(a,b){a=(a<<5)-a+b.charCodeAt(0);return a&a},0)}var hash=0;if(this.length===0)return hash;for(var i=0;i<this.length;i++){var character=this.charCodeAt(i);hash=(hash<<5)-hash+character;hash=hash&hash}return hash};const WPDM={actions:{},init:function($){},addAction:function(action,func){if(!WPDM.actions[action])WPDM.actions[action]=[];WPDM.actions[action].push(func)},doAction:async function(action,...params){if(typeof WPDM.actions[action]!=="undefined")WPDM.actions[action].forEach(fn=>fn(...params))},copy:function($id){var copyText=document.getElementById($id);copyText.select();copyText.setSelectionRange(0,99999);document.execCommand ("copy");WPDM.notify('<i class="fa fa-check-double"></i> Copied',"success","top-center",1e3)},copyTxt:function(textToCopy){WPDM.notify('<i class="fa fa-check-double"></i> Copied',"success","top-center",1e3);if(navigator.clipboard&&window.isSecureContext){return navigator.clipboard.writeText(textToCopy)}else{let textArea=document.createElement("textarea");textArea.value=textToCopy;textArea.style.position="fixed";textArea.style.left="-999999px";textArea.style.top="-999999px";document.body.appendChild(textArea);textArea.focus();textArea.select();return new Promise((res,rej)=>{document.execCommand ("copy")?res():rej();textArea.remove()})}},beep:function(){if(WPDM.audio==undefined)var snd=new Audio("data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgAI0wWs/ItAAAGDgYtAgAyN+QWaAAihwMWm4G8QQRDiMcCBcH3Cc+CDv/7xA4Tvh9Rz/y8QADBwMWgQAZG/ILNAARQ4GLTcDeIIIhxGOBAuD7hOfBB3/94gcJ3w+o5/5eIAIAAAVwWgQAVQ2ORaIQwEMAJiDg95G4nQL7mQVWI6GwRcfsZAcsKkJvxgxEjzFUgfHoSQ9Qq7KNwqHwuB13MA4a1q/DmBrHgPcmjiGoh//EwC5nGPEmS4RcfkVKOhJf+WOgoxJclFz3kgn//dBA+ya1GhurNn8zb//9NNutNuhz31f////9vt///z+IdAEAAAK4LQIAKobHItEIYCGAExBwe8jcToF9zIKrEdDYIuP2MgOWFSE34wYiR5iqQPj0JIeoVdlG4VD4XA67mAcNa1fhzA1jwHuTRxDUQ//iYBczjHiTJcIuPyKlHQkv/LHQUYkuSi57yQT//uggfZNajQ3Vmz+Zt//+mm3Wm3Q576v////+32///5/EOgAAADVghQAAAAA//uQZAUAB1WI0PZugAAAAAoQwAAAEk3nRd2qAAAAACiDgAAAAAAABCqEEQRLCgwpBGMlJkIz8jKhGvj4k6jzRnqasNKIeoh5gI7BJaC1A1AoNBjJgbyApVS4IDlZgDU5WUAxEKDNmmALHzZp0Fkz1FMTmGFl1FMEyodIavcCAUHDWrKAIA4aa2oCgILEBupZgHvAhEBcZ6joQBxS76AgccrFlczBvKLC0QI2cBoCFvfTDAo7eoOQInqDPBtvrDEZBNYN5xwNwxQRfw8ZQ5wQVLvO8OYU+mHvFLlDh05Mdg7BT6YrRPpCBznMB2r//xKJjyyOh+cImr2/4doscwD6neZjuZR4AgAABYAAAABy1xcdQtxYBYYZdifkUDgzzXaXn98Z0oi9ILU5mBjFANmRwlVJ3/6jYDAmxaiDG3/6xjQQCCKkRb/6kg/wW+kSJ5//rLobkLSiKmqP/0ikJuDaSaSf/6JiLYLEYnW/+kXg1WRVJL/9EmQ1YZIsv/6Qzwy5qk7/+tEU0nkls3/zIUMPKNX/6yZLf+kFgAfgGyLFAUwY//uQZAUABcd5UiNPVXAAAApAAAAAE0VZQKw9ISAAACgAAAAAVQIygIElVrFkBS+Jhi+EAuu+lKAkYUEIsmEAEoMeDmCETMvfSHTGkF5RWH7kz/ESHWPAq/kcCRhqBtMdokPdM7vil7RG98A2sc7zO6ZvTdM7pmOUAZTnJW+NXxqmd41dqJ6mLTXxrPpnV8avaIf5SvL7pndPvPpndJR9Kuu8fePvuiuhorgWjp7Mf/PRjxcFCPDkW31srioCExivv9lcwKEaHsf/7ow2Fl1T/9RkXgEhYElAoCLFtMArxwivDJJ+bR1HTKJdlEoTELCIqgEwVGSQ+hIm0NbK8WXcTEI0UPoa2NbG4y2K00JEWbZavJXkYaqo9CRHS55FcZTjKEk3NKoCYUnSQ0rWxrZbFKbKIhOKPZe1cJKzZSaQrIyULHDZmV5K4xySsDRKWOruanGtjLJXFEmwaIbDLX0hIPBUQPVFVkQkDoUNfSoDgQGKPekoxeGzA4DUvnn4bxzcZrtJyipKfPNy5w+9lnXwgqsiyHNeSVpemw4bWb9psYeq//uQZBoABQt4yMVxYAIAAAkQoAAAHvYpL5m6AAgAACXDAAAAD59jblTirQe9upFsmZbpMudy7Lz1X1DYsxOOSWpfPqNX2WqktK0DMvuGwlbNj44TleLPQ+Gsfb+GOWOKJoIrWb3cIMeeON6lz2umTqMXV8Mj30yWPpjoSa9ujK8SyeJP5y5mOW1D6hvLepeveEAEDo0mgCRClOEgANv3B9a6fikgUSu/DmAMATrGx7nng5p5iimPNZsfQLYB2sDLIkzRKZOHGAaUyDcpFBSLG9MCQALgAIgQs2YunOszLSAyQYPVC2YdGGeHD2dTdJk1pAHGAWDjnkcLKFymS3RQZTInzySoBwMG0QueC3gMsCEYxUqlrcxK6k1LQQcsmyYeQPdC2YfuGPASCBkcVMQQqpVJshui1tkXQJQV0OXGAZMXSOEEBRirXbVRQW7ugq7IM7rPWSZyDlM3IuNEkxzCOJ0ny2ThNkyRai1b6ev//3dzNGzNb//4uAvHT5sURcZCFcuKLhOFs8mLAAEAt4UWAAIABAAAAAB4qbHo0tIjVkUU//uQZAwABfSFz3ZqQAAAAAngwAAAE1HjMp2qAAAAACZDgAAAD5UkTE1UgZEUExqYynN1qZvqIOREEFmBcJQkwdxiFtw0qEOkGYfRDifBui9MQg4QAHAqWtAWHoCxu1Yf4VfWLPIM2mHDFsbQEVGwyqQoQcwnfHeIkNt9YnkiaS1oizycqJrx4KOQjahZxWbcZgztj2c49nKmkId44S71j0c8eV9yDK6uPRzx5X18eDvjvQ6yKo9ZSS6l//8elePK/Lf//IInrOF/FvDoADYAGBMGb7FtErm5MXMlmPAJQVgWta7Zx2go+8xJ0UiCb8LHHdftWyLJE0QIAIsI+UbXu67dZMjmgDGCGl1H+vpF4NSDckSIkk7Vd+sxEhBQMRU8j/12UIRhzSaUdQ+rQU5kGeFxm+hb1oh6pWWmv3uvmReDl0UnvtapVaIzo1jZbf/pD6ElLqSX+rUmOQNpJFa/r+sa4e/pBlAABoAAAAA3CUgShLdGIxsY7AUABPRrgCABdDuQ5GC7DqPQCgbbJUAoRSUj+NIEig0YfyWUho1VBBBA//uQZB4ABZx5zfMakeAAAAmwAAAAF5F3P0w9GtAAACfAAAAAwLhMDmAYWMgVEG1U0FIGCBgXBXAtfMH10000EEEEEECUBYln03TTTdNBDZopopYvrTTdNa325mImNg3TTPV9q3pmY0xoO6bv3r00y+IDGid/9aaaZTGMuj9mpu9Mpio1dXrr5HERTZSmqU36A3CumzN/9Robv/Xx4v9ijkSRSNLQhAWumap82WRSBUqXStV/YcS+XVLnSS+WLDroqArFkMEsAS+eWmrUzrO0oEmE40RlMZ5+ODIkAyKAGUwZ3mVKmcamcJnMW26MRPgUw6j+LkhyHGVGYjSUUKNpuJUQoOIAyDvEyG8S5yfK6dhZc0Tx1KI/gviKL6qvvFs1+bWtaz58uUNnryq6kt5RzOCkPWlVqVX2a/EEBUdU1KrXLf40GoiiFXK///qpoiDXrOgqDR38JB0bw7SoL+ZB9o1RCkQjQ2CBYZKd/+VJxZRRZlqSkKiws0WFxUyCwsKiMy7hUVFhIaCrNQsKkTIsLivwKKigsj8XYlwt/WKi2N4d//uQRCSAAjURNIHpMZBGYiaQPSYyAAABLAAAAAAAACWAAAAApUF/Mg+0aohSIRobBAsMlO//Kk4soosy1JSFRYWaLC4qZBYWFRGZdwqKiwkNBVmoWFSJkWFxX4FFRQWR+LsS4W/rFRb/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VEFHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAU291bmRib3kuZGUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMjAwNGh0dHA6Ly93d3cuc291bmRib3kuZGUAAAAAAAAAACU=");else var snd=new Audio(WPDM.audio);snd.play()},hash:function(str){return str.wpdm_hash()},uniqueID:function(prefix){var uniq=Date.now()+"abcdefghijklmnopqrstuvwxyz_";uniq=uniq.wpdm_shuffle();uniq=uniq.substring(1,10);uniq=typeof prefix!=="undefined"?prefix+uniq:uniq;return uniq},fileTypeIcon:function(ext){if(!colors[ext]){let color1="58"+"95BB".wpdm_shuffle();let color2="56789A".wpdm_shuffle();colors[ext]=[color1,color2]}count++;return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" style="margin: 4px">
<defs>
<linearGradient id="gradient${count}" x1="0" y1="0" x2="0" y2="1">
<stop stop-color="#${colors[ext][0]}" offset="0"/>
<stop stop-color="var(--color-primary)" stop-opacity="0.7" offset="1"/>
</linearGradient>
</defs>
<g>
<rect fill="url(#gradient${count})" x="0" y="0" width="40" height="40" rx="3" ry="3"/>
<text x="5" y="19" font-family="Arial, Helvetica, sans-serif" font-size="11px" letter-spacing="1" font-weight="600" text-rendering="geometricPrecision" fill="#FFFFFF">
<tspan>${ext}</tspan>
<tspan x="6" y="28">_</tspan>
</text>
</g>
</svg>`},popupWindow:function(url,title,w,h,onclose){var dualScreenLeft=typeof window.screenLeft!=="undefined"?window.screenLeft:screen.left;var dualScreenTop=typeof window.screenTop!=="undefined"?window.screenTop:screen.top;var width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;var height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;var left=width/2-w/2+dualScreenLeft;var top=height/2-h/2+dualScreenTop;var newWindow=window.open(url,title,"scrollbars=yes, width="+w+", height="+h+", top="+top+", left="+left);if(window.focus){newWindow.focus()}if(onclose!==undefined)newWindow.onbeforeunload=function(){onclose.call()};return false},html:function(elment,html,_class,_id){_class=_class!==undefined?_class:"";_id=_id!==undefined?_id:"";return"<"+elment+" class='"+_class+"' id='"+_id+"'>"+html+"</"+elment+">"},el:function(element,attrs,innerHTML){var el=document.createElement(element);el=jQuery(el);jQuery.each(attrs,function(name,val){el.attr(name,val)});if(typeof innerHTML!=="undefined"&&innerHTML!=="")el.html(innerHTML);return el[0].outerHTML},bootAlert:function(heading,content,width,backdrop,options){let html,url="";let modal_id="__bootModal_"+this.uniqueID();options=options||{};if(typeof content==="object"){return WPDM.dialog.ajax(heading,content.url,options)}return WPDM.dialog.alert(heading,content,options)},pushNotify:function(title,message,icon,image,url){var type="info";if(title.includes("rror")||message.includes("rror"))type="error";if(!("Notification"in window)||!("ServiceWorkerRegistration"in window)){WPDM.notify("<strong>"+title+"</strong><br/>"+message,type,"top-right");return}Notification.requestPermission(function(result){if(result==="granted"){console.log("Notification: "+result);try{var notification=new Notification(title,{body:message,icon:icon?icon:"https://cdn1.iconfinder.com/data/icons/hawcons/32/698558-icon-47-note-important-512.png",image:image?image:""});if(url){notification.onclick=function(e){e.preventDefault();window.open(url,"_blank")}}}catch(err){WPDM.notify("<strong>"+title+"</strong><br/>"+message,type,"top-right");console.log("Notification API error: "+err)}}else{WPDM.notify("<strong>"+title+"</strong><br/>"+message,type,"top-right");console.log("Notification: "+result)}})},notify:function(message,type,position,autoclose){WPDM.toast(message,type,position,autoclose)},floatify:function(html,position){WPDM.toast(html,"info",position)},toast:function(message,type,position,autoclose){var $=jQuery;if(!type)type="info";if(!position)position="bottom-right";if(autoclose===undefined)autoclose=4e3;if(type==="danger")type="error";var containerId="wpdm-toast-"+position;if($("#"+containerId).length===0)$("body").append("<div class='w3eden' id='"+containerId+"' class='wpdm-toast-container'></div>");var icons={success:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>',error:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="15" y1="9" x2="9" y2="15"/><line x1="9" y1="9" x2="15" y2="15"/></svg>',warning:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>',info:'<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><line x1="12" y1="16" x2="12" y2="12"/><line x1="12" y1="8" x2="12.01" y2="8"/></svg>'};var icon=icons[type]||icons.info;var toast=$("<div class='wpdm-toast wpdm-toast-"+type+"'>"+"<span class='wpdm-toast-icon'>"+icon+"</span>"+"<span class='wpdm-toast-msg'>"+message+"</span>"+"<button class='wpdm-toast-close'>&times;</button>"+"</div>");$("#"+containerId).append(toast);setTimeout(function(){toast.addClass("wpdm-toast-show")},10);toast.find(".wpdm-toast-close").on("click",function(){dismiss()});var timer;if(autoclose>0){timer=setTimeout(dismiss,autoclose);toast.on("mouseenter",function(){clearTimeout(timer)});toast.on("mouseleave",function(){timer=setTimeout(dismiss,1500)})}function dismiss(){clearTimeout(timer);toast.removeClass("wpdm-toast-show");setTimeout(function(){toast.remove()},300)}return toast},blockUI:function(element,xhr){jQuery(element).addClass("blockui");if(xhr)xhr.addEventListener("load",function(){jQuery(element).removeClass("blockui")})},unblockUI:function(element){if(typeof element==="undefined")element=".blockui";jQuery(element).removeClass("blockui")},confirm:function(heading,content,buttons,width){var html,$=jQuery;var modal_id="__boot_popup_"+WPDM.uniqueID();$("#w3eden__boot_popup").remove();if(!width)width=350;var _buttons="";if(buttons){_buttons='<div class="modal-footer text-center" style="padding: 8px 15px;justify-content: center;">\n';$.each(buttons,function(i,button){var btnid=WPDM.uniqueID();_buttons+="<button id='"+btnid+"' class='"+button.class+" btn-xs' style='font-size: 12px;padding: 4px 16px;border-radius: 4px'>"+button.label+"</button> ";$("body").on("click","#"+btnid,function(){button.callback.call($("#"+modal_id));return false})});_buttons+="</div>\n"}html='<div class="w3eden" id="w3eden'+modal_id+'"><div id="'+modal_id+'" style="z-index: 9999999 !important;" class="modal fade" tabindex="-1" role="dialog">\n'+'  <div class="modal-dialog wpdm-modal-confirm modal-dialog-centered" role="document" style="max-width: 100%;width: '+width+'px">\n'+'    <div class="modal-content" style="border-radius: 6px;overflow: hidden">\n'+'      <div class="modal-header" style="padding: 12px 15px;background: #f5f5f5;">\n'+'        <h4 class="modal-title" style="font-size: 12pt;font-weight: 500;padding: 0;margin: 0;font-family:var(--wpdm-font), san-serif;letter-spacing: 0.5px">'+heading+"</h4>\n"+"      </div>\n"+'      <div class="modal-body text-center" style="font-family:var(--wpdm-font), san-serif;letter-spacing: 0.5px;font-size: 10pt;font-weight: 300;padding: 25px;line-height: 1.5">\n'+"        "+content+"\n"+"      </div>\n"+_buttons+"    </div>\n"+"  </div>\n"+"</div></div>";$("body").append(html);$("#"+modal_id).modal("show");return $("#"+modal_id)},audioUI:function(audio){var $=jQuery,song_length,song_length_m,song_length_s;var player_html=`<div class="w3eden"><div style="display: none" class="wdmapui" id="wdmapui"><div id="wpdm_close_player"><svg style="width: 20px" data-name="Livello 1" viewBox="0 0 151.57 151.57" xmlns="http://www.w3.org/2000/svg"><circle cx="1038.5" cy="467.01" r="72.28" style="fill:#da2244;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-width:7px" transform="translate(-988.78 479.89) rotate(-45)"/><line style="fill:#da2244;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-width:7px" x1="47.57" x2="103.99" y1="103.99" y2="47.57"/><line style="fill:#da2244;stroke:#f2f2f2;stroke-linecap:round;stroke-linejoin:round;stroke-width:7px" x1="45.8" x2="105.7" y1="45.87" y2="105.77"/></svg></div><div class="card m-2"><div class="card-body text-center"><div class="mb-3 wpdm-audio-control-buttons d-block d-sm-none"><button class="btn btn-primary btn-play" id="wpdm-btn-play"><i class="fa fa-play"></i></button> <button class="btn btn-secondary btn-backward" id="wpdm-btn-backward"><i class="fa fa-backward"></i></button> <button class="btn btn-secondary btn-forward" id="wpdm-btn-forward"><i class="fa fa-forward"></i></button> <button class="btn btn-info btn-volumctrl" id="wpdm-btn-volumctrl"><i class="fa fa-volume-up"></i></button></div><div class="media"><div class="mr-3 wpdm-audio-control-buttons d-none d-sm-block"><button class="btn btn-primary btn-play" id="wpdm-btn-play"><i class="fa fa-play"></i></button> <button class="btn btn-secondary btn-backward" id="wpdm-btn-backward"><i class="fa fa-backward"></i></button> <button class="btn btn-secondary btn-forward" id="wpdm-btn-forward"><i class="fa fa-forward"></i></button></div><div class="media-body"><div class="position-relative"><div id="played">00:00</div><div id="mins">00:00</div></div><div class="progress"><div  id="wpdm-audio-progress" class="progress-bar bg-success" role="progressbar" style="width: 0%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div></div></div><div class="ml-3 wpdm-audio-control-buttons  d-none d-sm-block"> <button class="btn btn-info btn-volumctrl" id="wpdm-btn-volumctrl"><i class="fa fa-volume-up"></i></button> <div class="volumctrl"><input type="range" min="0" max="1" step="0.01" value="3" class="p-0" id="wpdm-audio-volume"></div></div></div></div></div></div></div>`;if(audio.duration!==Infinity){song_length=parseInt(audio.duration);song_length_m=parseInt(song_length/60);song_length_s=song_length-song_length_m*60;song_length_m=song_length_m>9?song_length_m:"0"+song_length_m;song_length_s=song_length_s>9?song_length_s:"0"+song_length_s}else{song_length_m="--";song_length_s="--";audio.addEventListener("durationchange",function(e){console.log(this.duration);if(this.duration!==Infinity){song_length=parseInt(this.duration);song_length_m=parseInt(song_length/60);song_length_s=song_length-song_length_m*60;song_length_m=song_length_m>9?song_length_m:"0"+song_length_m;song_length_s=song_length_s>9?song_length_s:"0"+song_length_s;$("#mins").html(song_length_m+":"+song_length_s);next(song_length)}},false)}if($("#wdmapui").length===0){$("body").append(player_html);$("#wdmapui").slideDown();$("#mins").html(song_length_m+":"+song_length_s);$("body").on("click","#wdmapui .progress",function(e){let value=e.offsetX*100/this.clientWidth;var played=parseInt(song_length*value/100);var played_m=parseInt(played/60);var played_s=played-played_m*60;played_m=played_m>9?played_m:"0"+played_m;played_s=played_s>9?played_s:"0"+played_s;$("#played").html(played_m+":"+played_s);audio.currentTime=song_length*value/100;$(this).find(".progress-bar").css("width",value+"%")});$("body").on("click",".btn-backward",function(){let value=parseInt($("#wdmapui .progress-bar").css("width"))/parseInt($("#wdmapui .progress").css("width"))*100-10;if(value<0)value=0;var played=parseInt(song_length*value/100);var played_m=parseInt(played/60);var played_s=played-played_m*60;played_m=played_m>9?played_m:"0"+played_m;played_s=played_s>9?played_s:"0"+played_s;$("#played").html(played_m+":"+played_s);audio.currentTime=song_length*value/100;$("#wdmapui .progress-bar").css("width",value+"%")});$("body").on("click",".btn-forward",function(){let value=parseInt($("#wdmapui .progress-bar").css("width"))/parseInt($("#wdmapui .progress").css("width"))*100+10;if(value>100)value=100;var played=parseInt(song_length*value/100);var played_m=parseInt(played/60);var played_s=played-played_m*60;played_m=played_m>9?played_m:"0"+played_m;played_s=played_s>9?played_s:"0"+played_s;$("#played").html(played_m+":"+played_s);audio.currentTime=song_length*value/100;$("#wdmapui .progress-bar").css("width",value+"%")});$("body").on("click",".btn-volumctrl",function(){$(this).next(".volumctrl").toggle()});$("body").on("click",".btn-play",function(){if($(this).find(".fa").hasClass("fa-play")){$(this).find(".fa").addClass("fa-pause").removeClass("fa-play");$(this).data("state","playing");audio.play()}else{$(this).find(".fa").addClass("fa-play").removeClass("fa-pause");$(this).data("state","paused");audio.pause()}});$("body").on("change","#wpdm-audio-volume",function(){audio.volume=this.value})}$("#mins").html(song_length_m+":"+song_length_s);audio.addEventListener("play",function(){$(".btn-play .fa").addClass("fa-pause").removeClass("fa-play")});audio.addEventListener("pause",function(){$(".btn-play .fa").addClass("fa-play").removeClass("fa-pause")});audio.addEventListener("timeupdate",function(e){var song_length=parseInt(audio.duration);var time_now=audio.currentTime;var percent=time_now/song_length*100;if(percent>100)percent=100;$("#wpdm-audio-progress").css("width",percent+"%");var played=parseInt(time_now);var played_m=parseInt(played/60);var played_s=played-played_m*60;played_m=played_m>9?played_m:"0"+played_m;played_s=played_s>9?played_s:"0"+played_s;$("#played").html(played_m+":"+played_s)})}};jQuery(function($){var $body=$("body");const saves_state=localStorage.getItem("page_state_"+wpdm_url.page_code)||null;const container=localStorage.getItem("page_state_container_"+wpdm_url.page_code)||null;if(saves_state&&container){$.get(saves_state,function(res){$(container).html($(res).find(container).html());$(container).removeClass("blockui")})}$body.on("click",".wpdm-notify, .wpdm-floatify",function(){$(this).animate({opacity:0},1e3,function(){$(this).slideUp()})});$body.on("click",".dismis-on-click",function(){$(this).slideUp()});$body.on("click",".wpdm-download-link.wpdm-download-locked",function(e){e.preventDefault();hideLockFrame();var parentWindow=document.createElement("a");parentWindow.href=document.referrer.toString();var __sep="?";if(wpdm_url.home.indexOf("?")>0)__sep="&";let extras="";if($(this).data("file")!==undefined)extras+="__wpdmfl="+$(this).data("file");extras+="&REFERRER="+encodeURI(location.href);if(parentWindow.hostname===window.location.hostname||1)$(window.parent.document.body).append("<iframe id='wpdm-lock-frame' style='left:0;top:0;width: 100%;height: 100%;z-index: 999999999;position: fixed;background: rgba(255,255,255,0.4) url("+wpdm_url.home+"wp-content/plugins/download-manager/assets/images/loader.svg) center center no-repeat;background-size: 80px 80px;border: 0;' src='"+wpdm_url.home+__sep+"__wpdmlo="+$(this).data("package")+"&"+extras+"'></iframe>");else window.parent.postMessage({task:"showiframe",iframe:"<iframe id='wpdm-lock-frame' style='left:0;top:0;width: 100%;height: 100%;z-index: 999999999;position: fixed;background: rgba(255,255,255,0.4) url("+wpdm_url.home+"wp-content/plugins/download-manager/assets/images/loader.svg) center center no-repeat;background-size: 80px 80px;border: 0;' src='"+wpdm_url.home+__sep+"__wpdmlo="+$(this).data("package")+__sep+"__wpdmfl="+ +"'></iframe>"},"*")});$body.on("click",".wpdm-download-link.download-on-click[data-downloadurl]",function(e){e.preventDefault();if(this.target==="_blank")window.open($(this).data("downloadurl"));else window.location.href=$(this).data("downloadurl")});$body.on("click",".__wpdm_playvideo",function(e){e.preventDefault();$("#__wpdm_videoplayer").children("source").attr("src",$(this).data("video"));console.log("loading...");var vid=document.getElementById("__wpdm_videoplayer");vid.onloadeddata=function(){console.log("loaded....")};$("#__wpdm_videoplayer").get(0).load()});$body.on("change",".terms_checkbox",function(e){if($(this).is(":checked"))$("#wpdm-filelist-"+$(this).data("pid")+" .btn.inddl, #xfilelist .btn.inddl").removeAttr("disabled");else $("#wpdm-filelist-"+$(this).data("pid")+" .btn.inddl, #xfilelist .btn.inddl").attr("disabled","disabled")});$body.on("click",".wpdm-social-lock",function(e){try{if($(this).data("url"))_PopupCenter($(this).data("url"),"Social Lock",600,400)}catch(e){}});$body.on("click","#wdmds a.list-group-item",function(e){location.href=this.href});var $input_group_input=$(".input-group input");$input_group_input.on("focus",function(){$(this).parent(".input-group").find(".input-group-addon").addClass("input-group-addon-active")});$input_group_input.on("blur",function(){$(this).parent().find(".input-group-addon").removeClass("input-group-addon-active")});$body.on("click","button.btn.inddl",function(e){e.preventDefault();var tis=this;if($(this).data("dlurl")!==undefined){location.href=$(this).data("dlurl");return}$.post(wpdm_rest_url("validate-filepass"),{wpdmfileid:$(tis).data("pid"),wpdmfile:$(tis).data("file"),actioninddlpvr:1,filepass:$($(tis).data("pass")).val()},function(res){if(res.success===true){var dlurl=res.downloadurl;$(tis).data("dlurl",dlurl);wpdm_boot_popup(wpdm_strings.pass_var,"<div style='padding: 50px;'>"+wpdm_strings.pass_var_q+"<br/><br/><a href='"+dlurl+"' class='btn btn-lg btn-success' target='_blank'>"+wpdm_strings.start_dl+"</a></div>",[{label:"Close",class:"btn btn-secondary",callback:function(){$("#__boot_popup").modal("hide");return false}}])}else{alert(res.msg)}})});$body.on("click",".wpdm-indir",function(e){e.preventDefault();WPDM.blockUI("#xfilelist");$("#xfilelist").load(location.href,{action:"wpdmfilelistcd",pid:$(this).data("pid"),cd:$(this).data("dir")},function(res){WPDM.unblockUI("#xfilelist")})});$body.on("click",".role-tabs a",function(e){$(".role-tabs a").removeClass("active");$(this).addClass("active")});$body.on("click",".btn-wpdm-a2f",function(e){var a2fbtn=$(this);$.post(wpdm_url.ajax,{action:"wpdm_addtofav",pid:$(this).data("package")},function(res){if(a2fbtn.hasClass("btn-secondary"))a2fbtn.removeClass("btn-secondary").addClass("btn-danger").html(a2fbtn.data("rlabel"));else a2fbtn.removeClass("btn-danger").addClass("btn-secondary").html(a2fbtn.data("alabel"))})});$body.on("click","#wpdm_close_player",function(e){$("#wdmapui").slideUp()});$body.on("click",".wpdm-btn-play",function(e){e.preventDefault();if($("#wpdm-audio-player").length===0){var player=document.createElement("audio");player.id="wpdm-audio-player";player.controls="controls";player.autoplay=1;player.type="audio/mpeg";$("body").append(player)}player=$("#wpdm-audio-player");var btn=$(this);if(btn.data("state")==="stop"||!btn.data("state")){player.css("display","none");player.attr("src",$(this).data("song")+"&play=song.mp3")}if(btn.data("state")==="playing"){btn.data("state","paused");player.trigger("pause");$(this).html("<i class='fa fa-play'></i>");return false}if(btn.data("state")==="paused"){$(this).data("state","playing");player.trigger("play");$(".wpdm-btn-play").html("<i class='fa fa-play'></i>");$(this).html("<i class='fa fa-pause'></i>");$("#wdmapui").slideDown();return false}$(".wpdm-btn-play").data("state","stop");$(".wpdm-btn-play").html("<i class='fa fa-play'></i>");btn.html("<i class='fas fa-sun  fa-spin'></i>");player.unbind("loadedmetadata");player.on("loadedmetadata",function(){console.log("Playing "+this.src+", for: "+this.duration+"seconds.");btn.html("<i class='fa fa-pause'></i>");btn.data("state","playing");WPDM.audioUI(this)});document.getElementById("wpdm-audio-player").onended=function(){btn.html("<i class='fa fa-redo'></i>");btn.data("state","stop")}});$(".wpdm_remove_empty").remove();var file_frame,dfield;$body.on("click",".wpdm-media-upload",function(event){event.preventDefault();dfield=$($(this).attr("rel"));if(file_frame){file_frame.open();return}file_frame=wp.media.frames.file_frame=wp.media({title:$(this).data("uploader_title"),button:{text:$(this).data("uploader_button_text")},multiple:false});file_frame.on("select",function(){attachment=file_frame.state().get("selection").first().toJSON();dfield.val(attachment.url).trigger("change")});file_frame.open()});$body.on("click",".btn-image-selector",function(event){event.preventDefault();dfield=$($(this).attr("rel"));var dfield_h=$($(this).attr("rel")+"_hidden");if(file_frame){file_frame.open();return}file_frame=wp.media.frames.file_frame=wp.media({title:$(this).data("uploader_title"),button:{text:$(this).data("uploader_button_text")},multiple:false});file_frame.on("select",function(){attachment=file_frame.state().get("selection").first().toJSON();dfield.attr("src",attachment.url);dfield_h.val(attachment.url)});file_frame.open()});$body.on("click",".pagination.async a, .__wpdm_load_async",function(e){e.preventDefault();var _cont=$(this).data("container");var href=this.href;$(_cont).addClass("blockui");localStorage.setItem("page_state_"+wpdm_url.page_code,href);localStorage.setItem("page_state_container_"+wpdm_url.page_code,_cont);$.get(href,function(res){$(_cont).html($(res).find(_cont).html());$(_cont).removeClass("blockui")})});$body.on("keyup",".wpdm-pack-search-file",function(){var value=$(this).val().toLowerCase();var filelist_item=$(this).data("filelist")+" tr";$(filelist_item).filter(function(){$(this).toggle($(this).text().toLowerCase().indexOf(value)>-1)})});$(document).on("click",".wpdm-filelist-toggle__btn",function(e){e.preventDefault();var $btn=$(this);var $toggle=$btn.closest(".wpdm-filelist-toggle");var targetSelector=$toggle.data("target");var $grid=$(targetSelector);var layout=$btn.data("layout");$toggle.find(".wpdm-filelist-toggle__btn").removeClass("active");$btn.addClass("active");if(layout==="list"){$grid.addClass("wpdm-filelist-grid--list")}else{$grid.removeClass("wpdm-filelist-grid--list")}try{localStorage.setItem("wpdm_filelist_layout",layout)}catch(e){}});$(function(){try{var savedLayout=localStorage.getItem("wpdm_filelist_layout");if(savedLayout==="list"){$(".wpdm-filelist-toggle").each(function(){var $toggle=$(this);var targetSelector=$toggle.data("target");var $grid=$(targetSelector);$toggle.find(".wpdm-filelist-toggle__btn").removeClass("active");$toggle.find('[data-layout="list"]').addClass("active");$grid.addClass("wpdm-filelist-grid--list")})}}catch(e){}});$(document).on("input",".wpdm-filelist-search__input",function(){var value=$(this).val().toLowerCase().trim();var targetSelector=$(this).data("filelist");var $items=$(targetSelector).find(".wpdm-filelist-item, .wpdm-gallery__item");if(value===""){$items.removeClass("wpdm-filelist-hidden");return}$items.each(function(){var $item=$(this);var filename=$item.data("filename")||"";var titleText=$item.find(".wpdm-filelist-item__title, .wpdm-gallery__title").text().toLowerCase();var matches=filename.indexOf(value)>-1||titleText.indexOf(value)>-1;if(matches){$item.removeClass("wpdm-filelist-hidden")}else{$item.addClass("wpdm-filelist-hidden")}})});$body.on("keydown",".wpdm-filelist-search__input",function(e){if(e.key==="Escape"){$(this).val("").trigger("input")}});$(".__wpdm_submit_async").on("submit",function(e){e.preventDefault();var _cont=$(this).data("container");$(_cont).addClass("blockui");$(this).ajaxSubmit({success:function(response){$(_cont).html($(response).find(_cont).html());$(_cont).removeClass("blockui")}})});var unlocked=[];$(".wpdm-filelist-area[data-termlock]").on("mouseover",function(){try{if(unlocked[$(this).data("packageid")]===1)return}catch(e){}$("#term-panel-"+$(this).data("packageid")).fadeIn("fast")});$(".terms_checkbox").on("click",function(){if($(this).is(":checked")){unlocked[$(this).data("pid")]=1;$("#term-panel-"+$(this).data("pid")).fadeOut("fast");$(".download_footer_"+$(this).data("pid")).slideDown()}else $(".download_footer_"+$(this).data("pid")).slideUp()});$formcontrol=$(".input-wrapper input");$formcontrol.on("focus",function(){$(".input-wrapper").removeClass("input-focused");$(this).parent(".input-wrapper").addClass("input-focused")});$formcontrol.on("change",function(){$(".input-wrapper").removeClass("input-focused");$(this).parent(".input-wrapper").addClass("input-focused");if($(this).val()!=="")$(this).parent(".input-wrapper").addClass("input-withvalue");else $(this).parent(".input-wrapper").removeClass("input-withvalue")})});function _PopupCenter(url,title,w,h){var dualScreenLeft=window.screenLeft!=undefined?window.screenLeft:screen.left;var dualScreenTop=window.screenTop!=undefined?window.screenTop:screen.top;var width=window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width;var height=window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height;var left=width/2-w/2+dualScreenLeft;var top=height/2-h/2+dualScreenTop;var newWindow=window.open(url,title,"scrollbars=yes, width="+w+", height="+h+", top="+top+", left="+left);if(window.focus){newWindow.focus()}return false}function generatepass(id){wpdm_pass_target="#"+id;jQuery("#generatepass").modal("show")}function hideLockFrame(){jQuery("#wpdm-lock-frame").remove()}function wpdm_bootModal(heading,content,width){return WPDM.bootAlert(heading,content,width)}function wpdm_boot_popup(heading,content,buttons){var html,$=jQuery;$("#w3eden__boot_popup").remove();var _buttons="";if(buttons){_buttons='<div class="modal-footer" style="padding: 8px 15px;">\n';$.each(buttons,function(i,button){var id="btx_"+i;_buttons+="<button id='"+id+"' class='"+button.class+" btn-xs' style='font-size: 10px;padding: 3px 20px;'>"+button.label+"</button> "});_buttons+="</div>\n"}html='<div class="w3eden" id="w3eden__boot_popup"><div id="__boot_popup" style="z-index: 9999999 !important;" class="modal fade" tabindex="-1" role="dialog">\n'+'  <div class="modal-dialog" role="document" style="max-width: 96%;width: 350px">\n'+'    <div class="modal-content" style="border-radius: 3px;overflow: hidden">\n'+'      <div class="modal-header" style="padding: 12px 15px;background: #f5f5f5;">\n'+'        <h4 class="modal-title" style="font-size: 9pt;font-weight: 500;padding: 0;margin: 0;letter-spacing: 0.5px">'+heading+"</h4>\n"+"      </div>\n"+'      <div class="modal-body text-center" style="letter-spacing: 0.5px;font-size: 10pt;font-weight: 300;padding: 25px;line-height: 1.5">\n'+"        "+content+"\n"+"      </div>\n"+_buttons+"    </div>\n"+"  </div>\n"+"</div></div>";$("body").append(html);$("#__boot_popup").modal("show");$.each(buttons,function(i,button){var id="btx_"+i;$("#"+id).unbind("click");$("#"+id).bind("click",function(){button.callback.call($("#__boot_popup"));return false})});return $("#__boot_popup")}function wpdm_iframe_modal(url,closebutton){var iframe,$=jQuery;if(url==="close"){$("#wpdm_iframe_modal").remove();$("#ifcb").remove();$("body").removeClass("wpdm-iframe-modal-open");return false}var closebutton_html="";if(closebutton!==undefined&&closebutton===true)closebutton_html="<span id='ifcb' class='w3eden'><a href='#' onclick='return wpdm_iframe_modal(\"close\");' style='border-radius: 0;position: fixed;top: 0;right: 0;z-index: 9999999999 !important;width: 40px;line-height: 40px;padding: 0' class='btn btn-danger'><i class='fas fa-times'></i></a></span>";iframe='<iframe src="'+url+'" style="width: 100%;height: 100%;position: fixed;z-index: 999999999 !important;border: 0;left: 0;top: 0;right: 0;bottom: 0;background: rgba(0,0,0,0.2);display: none;" id="wpdm_iframe_modal"></iframe>'+closebutton_html;$("body").append(iframe).addClass("wpdm-iframe-modal-open");$("#wpdm_iframe_modal").fadeIn()};