(e=>{e.vc||(e.vc={}),e.vc.utils={fixUnclosedTags:function(e){return e.replace(/<\/([^>]+)$/g,"</$1").replace(/<([^>]+)?$/g,"<$1")},fallbackCopyTextToClipboard:function(e){var o=document.createElement("textarea");o.value=e,o.style.top="0",o.style.left="0",o.style.position="fixed",document.body.appendChild(o),o.focus(),o.select();try{document.execCommand("copy")}catch(e){console.error("Unable to copy",e)}document.body.removeChild(o)},copyTextToClipboard:function(e){navigator.clipboard?navigator.clipboard.writeText(e):this.fallbackCopyTextToClipboard(e)}}})(window); window.vc||(window.vc={}),(()=>{function l(e){return"\\"+n[e]}vc.templateOptions={default:{evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},custom:{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g}};var a=/(.)^/,n={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},i=/\\|'|\r|\n|\u2028|\u2029/g;vc.template=function(u,e){e=_.defaults({},e,vc.templateOptions.default);var n,t=RegExp([(e.escape||a).source,(e.interpolate||a).source,(e.evaluate||a).source].join("|")+"|$","g"),c=0,o="__p+='";u.replace(t,function(e,n,t,r,a){return o+=u.slice(c,a).replace(i,l),c=a+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":t?o+="'+\n((__t=("+t+"))==null?'':__t)+\n'":r&&(o+="';\n"+r+"\n__p+='"),e}),o+="';\n",o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(o=e.variable?o:"with(obj||{}){\n"+o+"}\n")+"return __p;\n";try{n=new Function(e.variable||"obj","_",o)}catch(e){throw e.source=o,e}function r(e){return n.call(this,e,_)}t=e.variable||"obj";return r.source="function("+t+"){\n"+o+"}",r}})(); (d=>{d(function(){var a=d('[data-vc-roles="form"]');d('[data-vc-roles="part-state"]').on("click",function(){var e=d(this);e.data("vcCustomSelector",e.find(":selected").data("vcCustomSelector")||"")}).on("change",function(){var e,a,t=d(this),c=t.data("vcRolePart"),c=d('[data-vc-role-related-part="'+c+'"]');if("*"===c.data("vcRolePartState"))return!1;e=t.val(),a=t.data("vcCustomSelector")||"",c.data("vcRolePartState").toString()===e?(c.addClass("vc_visible"),a.length&&c.find(t.data("vcCustomSelector")).prop("checked",!0)):c.removeClass("vc_visible")}),a.on("submit",function(e){var t,c={};e&&e.preventDefault&&e.preventDefault(),(t=d("#submit_btn")).attr("disabled",!0),d("#vc_wp-spinner").show(),c.action=d("#vc_settings-roles-action").val(),c.vc_nonce_field=d("#vc_nonce_field").val(),c.vc_roles={},d("[data-vc-role]").each(function(){var e=d(this),a=e.data("vcRole"),t={};e.find("select").each(function(){var e=d(this),a=e.data("vcPart");void 0===t[a]&&(t[a]={}),t[a][e.data("vcName")]=e.val()}),e.find('[data-vc-role-related-part].vc_visible [data-vc-name][type="checkbox"]').each(function(){var e=d(this),a=e.data("vcPart");void 0===t[a]&&(t[a]={}),t[a][e.data("vcName")]=e.is(":checked")?e.val():"0"}),c.vc_roles[a]=JSON.stringify(t)}),d.ajax({url:a.attr("action"),type:"POST",dataType:"json",data:c,context:this}).done(function(e){var a;d("#vc_wp-spinner").hide(),e.message&&((a=d('
')).find("strong").text(e.message),a.insertBefore(t).fadeIn(100),window.setTimeout(function(){a.slideUp(100,function(){d(this).remove(),t.attr("disabled",!1)})},2e3))})})}),d("[data-vc-accordion]").on("show.vc.accordion",function(){d(this).addClass("vc_opened")}).on("hide.vc.accordion",function(){d(this).removeClass("vc_opened")}),d('[data-vc-ui-element="panel-tab-control"]').on("click",function(e){var a=d(this),t=a.parents("fieldset").first(),c=".vc_wp-form-table";e.preventDefault(),d('[data-vc-ui-element="panel-tabs-controls"] .vc_active',t).removeClass("vc_active"),a.parent().addClass("vc_active"),e=a.data("filter"),t.attr("data-vc-roles-filter-value",e),c+=" "+e,d(".vc_wp-form-table [data-vc-capability]",t).addClass("vc_hidden"),d(c,t).removeClass("vc_hidden")}),d('[data-vc-roles="table-checkbox"]').on("change",function(){var e=d(this);(e.is(":checked")?e.parents("tr:first").find('[data-vc-name!="'+e.attr("data-vc-name")+'"]:checked'):e.parents('[data-vc-roles="table"]').first().find('[data-vc-roles-select-all-checkbox="'+e.data("vcCap")+'"]')).prop("checked",!1)}),d("[data-vc-roles-select-all-checkbox]").on("change",function(){var e=d(this),a=e.is(":checked"),t=e.parents('[data-vc-roles="table"]').first(),c=t.find(e.data("vcRelatedControls")),o=e.data("vcRolesSelectAllCheckbox");t.find('[data-vc-cap="'+o+'"]:visible').prop("checked",a),c.prop("checked",a),a&&_.defer(function(){t.find("[data-vc-roles-select-all-checkbox!="+o+"]:not([data-vc-cap])").prop("checked",!1),t.find('[data-vc-cap!="'+o+'"]:not([data-vc-roles-select-all-checkbox]):visible').prop("checked",!1)})}),d('[data-vc-role-related-part].vc_visible [data-vc-roles="table"]').each(function(){var t=d(this);t.find("thead [data-vc-roles-select-all-checkbox]").each(function(){var e=d(this),a=e.data("vcRolesSelectAllCheckbox");t.find('[data-vc-cap="'+a+'"]:not(:checked)').length||(e.prop("checked",!0),t.find('tfoot [data-vc-roles-select-all-checkbox="'+a+'"]').prop("checked",!0))})})})(window.jQuery); _.isUndefined(window.vc)&&(window.vc={}),jQuery(document).ready(function(){_.isUndefined(window.less)||(window.vc.less={},window.vc.less.options={relativeUrls:!1,rootpath:!1},window.less.options.env=vcData.debug?"development":"production",window.less.options.logLevel=vcData.debug?4:0,window.vc.less.generateLessFormData=function(s,e){var o={};return _.isEmpty(e)||_.each(e,function(e,i){var t,n;_.isString(e)?(t=_.first(_.where(s,{name:e})),_.isObject(t)&&0<(n=t.value).length&&(o[i]=n)):_.isObject(e)&&!_.isUndefined(e.key)&&(t=_.first(_.where(s,{name:e.key})),_.isObject(t)||_.isUndefined(e.default_key)?_.isObject(t)||_.isUndefined(e.default)||(t={value:e.default}):t=_.isUndefined(o[e.default_key])?_.first(_.where(s,{name:e.default_key})):{value:o[e.default_key]},_.isObject(t))&&(n=t.value,_.isUndefined(e.modify_output)||!_.isObject(e.modify_output)||_.isEmpty(e.modify_output)||_.each(e.modify_output,function(e){_.isUndefined(e.plain)||!_.isObject(e.plain)||_.isEmpty(e.plain)||_.each(e.plain,function(e){e=e.replace("{{ value }}",n);n=e})}),n)&&0