| Server IP : 216.238.66.20 / Your IP : 216.73.216.158 Web Server : nginx/1.30.4 System : Linux woropds 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/sweetheart.mx/htdocs/wp-content/plugins/wordfence-bak/js/ |
Upload File : |
import*as e from"vue";import{Fragment as t,Teleport as a,Transition as n,cloneVNode as l,computed as s,createApp as o,createBlock as i,createCommentVNode as r,createElementBlock as u,createElementVNode as c,createSlots as d,createStaticVNode as p,createTextVNode as f,createVNode as h,customRef as m,defineComponent as g,getCurrentInstance as w,guardReactiveProps as v,h as y,inject as b,isRef as A,mergeDefaults as k,mergeProps as _,nextTick as x,normalizeClass as C,normalizeProps as S,normalizeStyle as I,onBeforeUnmount as D,onBeforeUpdate as M,onMounted as T,onScopeDispose as L,onUnmounted as O,openBlock as B,provide as $,reactive as P,readonly as E,ref as R,renderList as F,renderSlot as N,resolveDirective as W,resolveDynamicComponent as H,shallowReactive as V,shallowRef as U,toDisplayString as Y,toHandlers as K,toRaw as j,toRef as G,toRefs as Q,toValue as q,triggerRef as Z,unref as J,useAttrs as z,useSlots as X,useTemplateRef as ee,vModelCheckbox as te,vModelRadio as ae,vModelSelect as ne,vModelText as le,vShow as se,watch as oe,withCtx as ie,withDirectives as re,withKeys as ue,withModifiers as ce}from"vue";var de=Object.create,pe=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,he=Object.getOwnPropertyNames,me=Object.getPrototypeOf,ge=Object.prototype.hasOwnProperty,we=(e,t)=>()=>(e&&(t=e(e=0)),t),ve=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),ye=(e,t)=>{let a={};for(var n in e)pe(a,n,{get:e[n],enumerable:!0});return t||pe(a,Symbol.toStringTag,{value:"Module"}),a},be=(e,t,a,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var l,s=he(t),o=0,i=s.length;o<i;o++)l=s[o],ge.call(e,l)||l===a||pe(e,l,{get:(e=>t[e]).bind(null,l),enumerable:!(n=fe(t,l))||n.enumerable});return e},Ae=(e,t,a)=>(a=null!=e?de(me(e)):{},be(!t&&e&&e.__esModule?a:pe(a,"default",{value:e,enumerable:!0}),e)),ke=/* @__PURE__ */ve((e,t)=>{var a=function(e){return e&&e.Math===Math&&e};t.exports=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof global&&global)||a("object"==typeof e&&e)||function(){return this}()||Function("return this")()}),_e=/* @__PURE__ */ve((e,t)=>{t.exports=function(e){try{return!!e()}catch(t){return!0}}}),xe=/* @__PURE__ */ve((e,t)=>{var a=_e();t.exports=!a(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}),Ce=/* @__PURE__ */ve((e,t)=>{var a=xe(),n=Function.prototype,l=n.apply,s=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(a?s.bind(l):function(){return s.apply(l,arguments)})}),Se=/* @__PURE__ */ve((e,t)=>{var a=xe(),n=Function.prototype,l=n.call,s=a&&n.bind.bind(l,l);t.exports=a?s:function(e){return function(){return l.apply(e,arguments)}}}),Ie=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=a({}.toString),l=a("".slice);t.exports=function(e){return l(n(e),8,-1)}}),De=/* @__PURE__ */ve((e,t)=>{var a=Ie(),n=Se();t.exports=function(e){if("Function"===a(e))return n(e)}}),Me=/* @__PURE__ */ve((e,t)=>{var a="object"==typeof document&&document.all;t.exports=void 0===a&&void 0!==a?function(e){return"function"==typeof e||e===a}:function(e){return"function"==typeof e}}),Te=/* @__PURE__ */ve((e,t)=>{var a=_e();t.exports=!a(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),Le=/* @__PURE__ */ve((e,t)=>{var a=xe(),n=Function.prototype.call;t.exports=a?n.bind(n):function(){return n.apply(n,arguments)}}),Oe=/* @__PURE__ */ve(e=>{var t={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,n=a&&!t.call({1:2},1);e.f=n?function(e){var t=a(this,e);return!!t&&t.enumerable}:t}),Be=/* @__PURE__ */ve((e,t)=>{t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}}),$e=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=_e(),l=Ie(),s=Object,o=a("".split);t.exports=n(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===l(e)?o(e,""):s(e)}:s}),Pe=/* @__PURE__ */ve((e,t)=>{t.exports=function(e){return null==e}}),Ee=/* @__PURE__ */ve((e,t)=>{var a=Pe(),n=TypeError;t.exports=function(e){if(a(e))throw new n("Can't call method on "+e);return e}}),Re=/* @__PURE__ */ve((e,t)=>{var a=$e(),n=Ee();t.exports=function(e){return a(n(e))}}),Fe=/* @__PURE__ */ve((e,t)=>{var a=Me();t.exports=function(e){return"object"==typeof e?null!==e:a(e)}}),Ne=/* @__PURE__ */ve((e,t)=>{t.exports={}}),We=/* @__PURE__ */ve((e,t)=>{var a=Ne(),n=ke(),l=Me(),s=function(e){return l(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?s(a[e])||s(n[e]):a[e]&&a[e][t]||n[e]&&n[e][t]}}),He=/* @__PURE__ */ve((e,t)=>{var a=Se();t.exports=a({}.isPrototypeOf)}),Ve=/* @__PURE__ */ve((e,t)=>{var a=ke().navigator,n=a&&a.userAgent;t.exports=n?String(n):""}),Ue=/* @__PURE__ */ve((e,t)=>{var a,n,l=ke(),s=Ve(),o=l.process,i=l.Deno,r=o&&o.versions||i&&i.version,u=r&&r.v8;u&&(n=(a=u.split("."))[0]>0&&a[0]<4?1:+(a[0]+a[1])),!n&&s&&(!(a=s.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=s.match(/Chrome\/(\d+)/))&&(n=+a[1]),t.exports=n}),Ye=/* @__PURE__ */ve((e,t)=>{var a=Ue(),n=_e(),l=ke().String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var e=Symbol("symbol detection");return!l(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&a&&a<41})}),Ke=/* @__PURE__ */ve((e,t)=>{var a=Ye();t.exports=a&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),je=/* @__PURE__ */ve((e,t)=>{var a=We(),n=Me(),l=He(),s=Ke(),o=Object;t.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=a("Symbol");return n(t)&&l(t.prototype,o(e))}}),Ge=/* @__PURE__ */ve((e,t)=>{var a=String;t.exports=function(e){try{return a(e)}catch(t){return"Object"}}}),Qe=/* @__PURE__ */ve((e,t)=>{var a=Me(),n=Ge(),l=TypeError;t.exports=function(e){if(a(e))return e;throw new l(n(e)+" is not a function")}}),qe=/* @__PURE__ */ve((e,t)=>{var a=Qe(),n=Pe();t.exports=function(e,t){var l=e[t];return n(l)?void 0:a(l)}}),Ze=/* @__PURE__ */ve((e,t)=>{var a=Le(),n=Me(),l=Fe(),s=TypeError;t.exports=function(e,t){var o,i;if("string"===t&&n(o=e.toString)&&!l(i=a(o,e)))return i;if(n(o=e.valueOf)&&!l(i=a(o,e)))return i;if("string"!==t&&n(o=e.toString)&&!l(i=a(o,e)))return i;throw new s("Can't convert object to primitive value")}}),Je=/* @__PURE__ */ve((e,t)=>{t.exports=!0}),ze=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=Object.defineProperty;t.exports=function(e,t){try{n(a,e,{value:t,configurable:!0,writable:!0})}catch(l){a[e]=t}return t}}),Xe=/* @__PURE__ */ve((e,t)=>{var a=Je(),n=ke(),l=ze(),s="__core-js_shared__",o=t.exports=n[s]||l(s,{});(o.versions||(o.versions=[])).push({version:"3.47.0",mode:a?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),et=/* @__PURE__ */ve((e,t)=>{var a=Xe();t.exports=function(e,t){return a[e]||(a[e]=t||{})}}),tt=/* @__PURE__ */ve((e,t)=>{var a=Ee(),n=Object;t.exports=function(e){return n(a(e))}}),at=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=tt(),l=a({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return l(n(e),t)}}),nt=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=0,l=Math.random(),s=a(1.1.toString);t.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+l,36)}}),lt=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=et(),l=at(),s=nt(),o=Ye(),i=Ke(),r=a.Symbol,u=n("wks"),c=i?r.for||r:r&&r.withoutSetter||s;t.exports=function(e){return l(u,e)||(u[e]=o&&l(r,e)?r[e]:c("Symbol."+e)),u[e]}}),st=/* @__PURE__ */ve((e,t)=>{var a=Le(),n=Fe(),l=je(),s=qe(),o=Ze(),i=lt(),r=TypeError,u=i("toPrimitive");t.exports=function(e,t){if(!n(e)||l(e))return e;var i,c=s(e,u);if(c){if(void 0===t&&(t="default"),i=a(c,e,t),!n(i)||l(i))return i;throw new r("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}}),ot=/* @__PURE__ */ve((e,t)=>{var a=st(),n=je();t.exports=function(e){var t=a(e,"string");return n(t)?t:t+""}}),it=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=Fe(),l=a.document,s=n(l)&&n(l.createElement);t.exports=function(e){return s?l.createElement(e):{}}}),rt=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=_e(),l=it();t.exports=!a&&!n(function(){return 7!==Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a})}),ut=/* @__PURE__ */ve(e=>{var t=Te(),a=Le(),n=Oe(),l=Be(),s=Re(),o=ot(),i=at(),r=rt(),u=Object.getOwnPropertyDescriptor;e.f=t?u:function(e,t){if(e=s(e),t=o(t),r)try{return u(e,t)}catch(c){}if(i(e,t))return l(!a(n.f,e,t),e[t])}}),ct=/* @__PURE__ */ve((e,t)=>{var a=_e(),n=Me(),l=/#|\.prototype\./,s=function(e,t){var l=i[o(e)];return l===u||l!==r&&(n(t)?a(t):!!t)},o=s.normalize=function(e){return String(e).replace(l,".").toLowerCase()},i=s.data={},r=s.NATIVE="N",u=s.POLYFILL="P";t.exports=s}),dt=/* @__PURE__ */ve((e,t)=>{var a=De(),n=Qe(),l=xe(),s=a(a.bind);t.exports=function(e,t){return n(e),void 0===t?e:l?s(e,t):function(){return e.apply(t,arguments)}}}),pt=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=_e();t.exports=a&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),ft=/* @__PURE__ */ve((e,t)=>{var a=Fe(),n=String,l=TypeError;t.exports=function(e){if(a(e))return e;throw new l(n(e)+" is not an object")}}),ht=/* @__PURE__ */ve(e=>{var t=Te(),a=rt(),n=pt(),l=ft(),s=ot(),o=TypeError,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",d="writable";e.f=t?n?function(e,t,a){if(l(e),t=s(t),l(a),"function"==typeof e&&"prototype"===t&&"value"in a&&d in a&&!a[d]){var n=r(e,t);n&&n[d]&&(e[t]=a.value,a={configurable:c in a?a[c]:n[c],enumerable:u in a?a[u]:n[u],writable:!1})}return i(e,t,a)}:i:function(e,t,n){if(l(e),t=s(t),l(n),a)try{return i(e,t,n)}catch(r){}if("get"in n||"set"in n)throw new o("Accessors not supported");return"value"in n&&(e[t]=n.value),e}}),mt=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=ht(),l=Be();t.exports=a?function(e,t,a){return n.f(e,t,l(1,a))}:function(e,t,a){return e[t]=a,e}}),gt=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=Ce(),l=De(),s=Me(),o=ut().f,i=ct(),r=Ne(),u=dt(),c=mt(),d=at();Xe();var p=function(e){var t=function(a,l,s){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(a);case 2:return new e(a,l)}return new e(a,l,s)}return n(e,this,arguments)};return t.prototype=e.prototype,t};t.exports=function(e,t){var n,f,h,m,g,w,v,y,b,A=e.target,k=e.global,_=e.stat,x=e.proto,C=k?a:_?a[A]:a[A]&&a[A].prototype,S=k?r:r[A]||c(r,A,{})[A],I=S.prototype;for(m in t)f=!(n=i(k?m:A+(_?".":"#")+m,e.forced))&&C&&d(C,m),w=S[m],f&&(v=e.dontCallGetSet?(b=o(C,m))&&b.value:C[m]),g=f&&v?v:t[m],(n||x||typeof w!=typeof g)&&(y=e.bind&&f?u(g,a):e.wrap&&f?p(g):x&&s(g)?l(g):g,(e.sham||g&&g.sham||w&&w.sham)&&c(y,"sham",!0),c(S,m,y),x&&(d(r,h=A+"Prototype")||c(r,h,{}),c(r[h],m,g),e.real&&I&&(n||!I[m])&&c(I,m,g)))}}),wt=/* @__PURE__ */ve(()=>{gt()({target:"Object",stat:!0},{hasOwn:at()})}),vt=/* @__PURE__ */ve((e,t)=>{wt();var a=Ne();t.exports=a.Object.hasOwn}),yt=/* @__PURE__ */ve((e,t)=>{var a=vt();t.exports=a}),bt=/* @__PURE__ */ve((e,t)=>{var a=yt();t.exports=a}),At=/* @__PURE__ */ve(()=>{}),kt=/* @__PURE__ */ve((e,t)=>{t.exports=function(){}}),_t=/* @__PURE__ */ve((e,t)=>{t.exports={}}),xt=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=Me(),l=a.WeakMap;t.exports=n(l)&&/native code/.test(String(l))}),Ct=/* @__PURE__ */ve((e,t)=>{var a=et(),n=nt(),l=a("keys");t.exports=function(e){return l[e]||(l[e]=n(e))}}),St=/* @__PURE__ */ve((e,t)=>{t.exports={}}),It=/* @__PURE__ */ve((e,t)=>{var a,n,l,s=xt(),o=ke(),i=Fe(),r=mt(),u=at(),c=Xe(),d=Ct(),p=St(),f="Object already initialized",h=o.TypeError,m=o.WeakMap;if(s||c.state){var g=c.state||(c.state=new m);g.get=g.get,g.has=g.has,g.set=g.set,a=function(e,t){if(g.has(e))throw new h(f);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},l=function(e){return g.has(e)}}else{var w=d("state");p[w]=!0,a=function(e,t){if(u(e,w))throw new h(f);return t.facade=e,r(e,w,t),t},n=function(e){return u(e,w)?e[w]:{}},l=function(e){return u(e,w)}}t.exports={set:a,get:n,has:l,enforce:function(e){return l(e)?n(e):a(e,{})},getterFor:function(e){return function(t){var a;if(!i(t)||(a=n(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return a}}}}),Dt=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=at(),l=Function.prototype,s=a&&Object.getOwnPropertyDescriptor,o=n(l,"name"),i=o&&"something"===function(){}.name,r=o&&(!a||a&&s(l,"name").configurable);t.exports={EXISTS:o,PROPER:i,CONFIGURABLE:r}}),Mt=/* @__PURE__ */ve((e,t)=>{var a=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?n:a)(t)}}),Tt=/* @__PURE__ */ve((e,t)=>{var a=Mt();t.exports=function(e){var t=+e;return t!=t||0===t?0:a(t)}}),Lt=/* @__PURE__ */ve((e,t)=>{var a=Tt(),n=Math.max,l=Math.min;t.exports=function(e,t){var s=a(e);return s<0?n(s+t,0):l(s,t)}}),Ot=/* @__PURE__ */ve((e,t)=>{var a=Tt(),n=Math.min;t.exports=function(e){var t=a(e);return t>0?n(t,9007199254740991):0}}),Bt=/* @__PURE__ */ve((e,t)=>{var a=Ot();t.exports=function(e){return a(e.length)}}),$t=/* @__PURE__ */ve((e,t)=>{var a=Re(),n=Lt(),l=Bt(),s=function(e){return function(t,s,o){var i=a(t),r=l(i);if(0===r)return!e&&-1;var u,c=n(o,r);if(e&&s!=s){for(;r>c;)if((u=i[c++])!=u)return!0}else for(;r>c;c++)if((e||c in i)&&i[c]===s)return e||c||0;return!e&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}}),Pt=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=at(),l=Re(),s=$t().indexOf,o=St(),i=a([].push);t.exports=function(e,t){var a,r=l(e),u=0,c=[];for(a in r)!n(o,a)&&n(r,a)&&i(c,a);for(;t.length>u;)n(r,a=t[u++])&&(~s(c,a)||i(c,a));return c}}),Et=/* @__PURE__ */ve((e,t)=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),Rt=/* @__PURE__ */ve((e,t)=>{var a=Pt(),n=Et();t.exports=Object.keys||function(e){return a(e,n)}}),Ft=/* @__PURE__ */ve(e=>{var t=Te(),a=pt(),n=ht(),l=ft(),s=Re(),o=Rt();e.f=t&&!a?Object.defineProperties:function(e,t){l(e);for(var a,i=s(t),r=o(t),u=r.length,c=0;u>c;)n.f(e,a=r[c++],i[a]);return e}}),Nt=/* @__PURE__ */ve((e,t)=>{var a=We();t.exports=a("document","documentElement")}),Wt=/* @__PURE__ */ve((e,t)=>{var a,n=ft(),l=Ft(),s=Et(),o=St(),i=Nt(),r=it(),u=Ct(),c="prototype",d="script",p=u("IE_PROTO"),f=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{a=new ActiveXObject("htmlfile")}catch(o){}var e,t,n;g="undefined"!=typeof document?document.domain&&a?m(a):(t=r("iframe"),n="java"+d+":",t.style.display="none",i.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):m(a);for(var l=s.length;l--;)delete g[c][s[l]];return g()};o[p]=!0,t.exports=Object.create||function(e,t){var a;return null!==e?(f[c]=n(e),a=new f,f[c]=null,a[p]=e):a=g(),void 0===t?a:l.f(a,t)}}),Ht=/* @__PURE__ */ve((e,t)=>{var a=_e();t.exports=!a(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),Vt=/* @__PURE__ */ve((e,t)=>{var a=at(),n=Me(),l=tt(),s=Ct(),o=Ht(),i=s("IE_PROTO"),r=Object,u=r.prototype;t.exports=o?r.getPrototypeOf:function(e){var t=l(e);if(a(t,i))return t[i];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof r?u:null}}),Ut=/* @__PURE__ */ve((e,t)=>{var a=mt();t.exports=function(e,t,n,l){return l&&l.enumerable?e[t]=n:a(e,t,n),e}}),Yt=/* @__PURE__ */ve((e,t)=>{var a,n,l,s=_e(),o=Me(),i=Fe(),r=Wt(),u=Vt(),c=Ut(),d=lt(),p=Je(),f=d("iterator"),h=!1;[].keys&&("next"in(l=[].keys())?(n=u(u(l)))!==Object.prototype&&(a=n):h=!0),!i(a)||s(function(){var e={};return a[f].call(e)!==e})?a={}:p&&(a=r(a)),o(a[f])||c(a,f,function(){return this}),t.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:h}}),Kt=/* @__PURE__ */ve((e,t)=>{var a={};a[lt()("toStringTag")]="z",t.exports="[object z]"===String(a)}),jt=/* @__PURE__ */ve((e,t)=>{var a=Kt(),n=Me(),l=Ie(),s=lt()("toStringTag"),o=Object,i="Arguments"===l(function(){return arguments}());t.exports=a?l:function(e){var t,a,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(a){}}(t=o(e),s))?a:i?l(t):"Object"===(r=l(t))&&n(t.callee)?"Arguments":r}}),Gt=/* @__PURE__ */ve((e,t)=>{var a=Kt(),n=jt();t.exports=a?{}.toString:function(){return"[object "+n(this)+"]"}}),Qt=/* @__PURE__ */ve((e,t)=>{var a=Kt(),n=ht().f,l=mt(),s=at(),o=Gt(),i=lt()("toStringTag");t.exports=function(e,t,r,u){var c=r?e:e&&e.prototype;c&&(s(c,i)||n(c,i,{configurable:!0,value:t}),u&&!a&&l(c,"toString",o))}}),qt=/* @__PURE__ */ve((e,t)=>{var a=Yt().IteratorPrototype,n=Wt(),l=Be(),s=Qt(),o=_t(),i=function(){return this};t.exports=function(e,t,r,u){var c=t+" Iterator";return e.prototype=n(a,{next:l(+!u,r)}),s(e,c,!1,!0),o[c]=i,e}}),Zt=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=Qe();t.exports=function(e,t,l){try{return a(n(Object.getOwnPropertyDescriptor(e,t)[l]))}catch(s){}}}),Jt=/* @__PURE__ */ve((e,t)=>{var a=Fe();t.exports=function(e){return a(e)||null===e}}),zt=/* @__PURE__ */ve((e,t)=>{var a=Jt(),n=String,l=TypeError;t.exports=function(e){if(a(e))return e;throw new l("Can't set "+n(e)+" as a prototype")}}),Xt=/* @__PURE__ */ve((e,t)=>{var a=Zt(),n=Fe(),l=Ee(),s=zt();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,o={};try{(e=a(Object.prototype,"__proto__","set"))(o,[]),t=o instanceof Array}catch(i){}return function(a,o){return l(a),s(o),n(a)?(t?e(a,o):a.__proto__=o,a):a}}():void 0)}),ea=/* @__PURE__ */ve((e,t)=>{var a=gt(),n=Le(),l=Je(),s=Dt(),o=Me(),i=qt(),r=Vt(),u=Xt(),c=Qt(),d=mt(),p=Ut(),f=lt(),h=_t(),m=Yt(),g=s.PROPER,w=s.CONFIGURABLE,v=m.IteratorPrototype,y=m.BUGGY_SAFARI_ITERATORS,b=f("iterator"),A="keys",k="values",_="entries",x=function(){return this};t.exports=function(e,t,s,f,m,C,S){i(s,t,f);var I,D,M,T=function(e){if(e===m&&P)return P;if(!y&&e&&e in B)return B[e];switch(e){case A:case k:case _:return function(){return new s(this,e)}}return function(){return new s(this)}},L=t+" Iterator",O=!1,B=e.prototype,$=B[b]||B["@@iterator"]||m&&B[m],P=!y&&$||T(m),E="Array"===t&&B.entries||$;if(E&&(I=r(E.call(new e)))!==Object.prototype&&I.next&&(l||r(I)===v||(u?u(I,v):o(I[b])||p(I,b,x)),c(I,L,!0,!0),l&&(h[L]=x)),g&&m===k&&$&&$.name!==k&&(!l&&w?d(B,"name",k):(O=!0,P=function(){return n($,this)})),m)if(D={values:T(k),keys:C?P:T(A),entries:T(_)},S)for(M in D)(y||O||!(M in B))&&p(B,M,D[M]);else a({target:t,proto:!0,forced:y||O},D);return l&&!S||B[b]===P||p(B,b,P,{name:m}),h[t]=P,D}}),ta=/* @__PURE__ */ve((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}}),aa=/* @__PURE__ */ve((e,t)=>{var a=Re(),n=kt(),l=_t(),s=It(),o=ht().f,i=ea(),r=ta(),u=Je(),c=Te(),d="Array Iterator",p=s.set,f=s.getterFor(d);t.exports=i(Array,"Array",function(e,t){p(this,{type:d,target:a(e),index:0,kind:t})},function(){var e=f(this),t=e.target,a=e.index++;if(!t||a>=t.length)return e.target=null,r(void 0,!0);switch(e.kind){case"keys":return r(a,!1);case"values":return r(t[a],!1)}return r([a,t[a]],!1)},"values");var h=l.Arguments=l.Array;if(n("keys"),n("values"),n("entries"),!u&&c&&"values"!==h.name)try{o(h,"name",{value:"values"})}catch(m){}}),na=/* @__PURE__ */ve(()=>{var e=gt(),t=tt(),a=Rt();e({target:"Object",stat:!0,forced:_e()(function(){a(1)})},{keys:function(e){return a(t(e))}})}),la=/* @__PURE__ */ve(()=>{}),sa=/* @__PURE__ */ve(e=>{var t=Pt(),a=Et().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(e){return t(e,a)}}),oa=/* @__PURE__ */ve((e,t)=>{var a=Se();t.exports=a([].slice)}),ia=/* @__PURE__ */ve((e,t)=>{var a=Ie(),n=Re(),l=sa().f,s=oa(),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(e){return o&&"Window"===a(e)?function(e){try{return l(e)}catch(t){return s(o)}}(e):l(n(e))}}),ra=/* @__PURE__ */ve((e,t)=>{var a=_e();t.exports=a(function(){if("function"==typeof ArrayBuffer){var e=/* @__PURE__ */new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})}),ua=/* @__PURE__ */ve((e,t)=>{var a=_e(),n=Fe(),l=Ie(),s=ra(),o=Object.isExtensible,i=a(function(){o(1)});t.exports=i||s?function(e){return!!n(e)&&(!s||"ArrayBuffer"!==l(e))&&(!o||o(e))}:o}),ca=/* @__PURE__ */ve((e,t)=>{var a=_e();t.exports=!a(function(){return Object.isExtensible(Object.preventExtensions({}))})}),da=/* @__PURE__ */ve((e,t)=>{var a=gt(),n=Se(),l=St(),s=Fe(),o=at(),i=ht().f,r=sa(),u=ia(),c=ua(),d=nt(),p=ca(),f=!1,h=d("meta"),m=0,g=function(e){i(e,h,{value:{objectID:"O"+m++,weakData:{}}})},w=t.exports={enable:function(){w.enable=function(){},f=!0;var e=r.f,t=n([].splice),l={};l[h]=1,e(l).length&&(r.f=function(a){for(var n=e(a),l=0,s=n.length;l<s;l++)if(n[l]===h){t(n,l,1);break}return n},a({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,h)){if(!c(e))return"F";if(!t)return"E";g(e)}return e[h].objectID},getWeakData:function(e,t){if(!o(e,h)){if(!c(e))return!0;if(!t)return!1;g(e)}return e[h].weakData},onFreeze:function(e){return p&&f&&c(e)&&!o(e,h)&&g(e),e}};l[h]=!0}),pa=/* @__PURE__ */ve((e,t)=>{var a=lt(),n=_t(),l=a("iterator"),s=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||s[l]===e)}}),fa=/* @__PURE__ */ve((e,t)=>{var a=jt(),n=qe(),l=Pe(),s=_t(),o=lt()("iterator");t.exports=function(e){if(!l(e))return n(e,o)||n(e,"@@iterator")||s[a(e)]}}),ha=/* @__PURE__ */ve((e,t)=>{var a=Le(),n=Qe(),l=ft(),s=Ge(),o=fa(),i=TypeError;t.exports=function(e,t){var r=arguments.length<2?o(e):t;if(n(r))return l(a(r,e));throw new i(s(e)+" is not iterable")}}),ma=/* @__PURE__ */ve((e,t)=>{var a=Le(),n=ft(),l=qe();t.exports=function(e,t,s){var o,i;n(e);try{if(!(o=l(e,"return"))){if("throw"===t)throw s;return s}o=a(o,e)}catch(r){i=!0,o=r}if("throw"===t)throw s;if(i)throw o;return n(o),s}}),ga=/* @__PURE__ */ve((e,t)=>{var a=dt(),n=Le(),l=ft(),s=Ge(),o=pa(),i=Bt(),r=He(),u=ha(),c=fa(),d=ma(),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},h=f.prototype;t.exports=function(e,t,m){var g,w,v,y,b,A,k,_=m&&m.that,x=!(!m||!m.AS_ENTRIES),C=!(!m||!m.IS_RECORD),S=!(!m||!m.IS_ITERATOR),I=!(!m||!m.INTERRUPTED),D=a(t,_),M=function(e){return g&&d(g,"normal"),new f(!0,e)},T=function(e){return x?(l(e),I?D(e[0],e[1],M):D(e[0],e[1])):I?D(e,M):D(e)};if(C)g=e.iterator;else if(S)g=e;else{if(!(w=c(e)))throw new p(s(e)+" is not iterable");if(o(w)){for(v=0,y=i(e);y>v;v++)if((b=T(e[v]))&&r(h,b))return b;return new f(!1)}g=u(e,w)}for(A=C?e.next:g.next;!(k=n(A,g)).done;){try{b=T(k.value)}catch(L){d(g,"throw",L)}if("object"==typeof b&&b&&r(h,b))return b}return new f(!1)}}),wa=/* @__PURE__ */ve((e,t)=>{var a=He(),n=TypeError;t.exports=function(e,t){if(a(t,e))return e;throw new n("Incorrect invocation")}}),va=/* @__PURE__ */ve((e,t)=>{var a=Ie();t.exports=Array.isArray||function(e){return"Array"===a(e)}}),ya=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=Me(),l=Xe(),s=a(Function.toString);n(l.inspectSource)||(l.inspectSource=function(e){return s(e)}),t.exports=l.inspectSource}),ba=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=_e(),l=Me(),s=jt(),o=We(),i=ya(),r=function(){},u=o("Reflect","construct"),c=/^\s*(?:class|function)\b/,d=a(c.exec),p=!c.test(r),f=function(e){if(!l(e))return!1;try{return u(r,[],e),!0}catch(t){return!1}},h=function(e){if(!l(e))return!1;switch(s(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!d(c,i(e))}catch(t){return!0}};h.sham=!0,t.exports=!u||n(function(){var e;return f(f.call)||!f(Object)||!f(function(){e=!0})||e})?h:f}),Aa=/* @__PURE__ */ve((e,t)=>{var a=va(),n=ba(),l=Fe(),s=lt()("species"),o=Array;t.exports=function(e){var t;return a(e)&&(t=e.constructor,(n(t)&&(t===o||a(t.prototype))||l(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?o:t}}),ka=/* @__PURE__ */ve((e,t)=>{var a=Aa();t.exports=function(e,t){return new(a(e))(0===t?0:t)}}),_a=/* @__PURE__ */ve((e,t)=>{var a=dt(),n=Se(),l=$e(),s=tt(),o=Bt(),i=ka(),r=n([].push),u=function(e){var t=1===e,n=2===e,u=3===e,c=4===e,d=6===e,p=7===e,f=5===e||d;return function(h,m,g,w){for(var v,y,b=s(h),A=l(b),k=o(A),_=a(m,g),x=0,C=w||i,S=t?C(h,k):n||p?C(h,0):void 0;k>x;x++)if((f||x in A)&&(y=_(v=A[x],x,b),e))if(t)S[x]=y;else if(y)switch(e){case 3:return!0;case 5:return v;case 6:return x;case 2:r(S,v)}else switch(e){case 4:return!1;case 7:r(S,v)}return d?-1:u||c?c:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),xa=/* @__PURE__ */ve((e,t)=>{var a=gt(),n=ke(),l=da(),s=_e(),o=mt(),i=ga(),r=wa(),u=Me(),c=Fe(),d=Pe(),p=Qt(),f=ht().f,h=_a().forEach,m=Te(),g=It(),w=g.set,v=g.getterFor;t.exports=function(e,t,g){var y,b=-1!==e.indexOf("Map"),A=-1!==e.indexOf("Weak"),k=b?"set":"add",_=n[e],x=_&&_.prototype,C={};if(m&&u(_)&&(A||x.forEach&&!s(function(){(new _).entries().next()}))){var S=(y=t(function(t,a){w(r(t,S),{type:e,collection:new _}),d(a)||i(a,t[k],{that:t,AS_ENTRIES:b})})).prototype,I=v(e);h(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(e){var t="add"===e||"set"===e;!(e in x)||A&&"clear"===e||o(S,e,function(a,n){var l=I(this).collection;if(!t&&A&&!c(a))return"get"===e&&void 0;var s=l[e](0===a?0:a,n);return t?this:s})}),A||f(S,"size",{configurable:!0,get:function(){return I(this).collection.size}})}else y=g.getConstructor(t,e,b,k),l.enable();return p(y,e,!1,!0),C[e]=y,a({global:!0,forced:!0},C),A||g.setStrong(y,e,b),y}}),Ca=/* @__PURE__ */ve((e,t)=>{var a=ht();t.exports=function(e,t,n){return a.f(e,t,n)}}),Sa=/* @__PURE__ */ve((e,t)=>{var a=Ut();t.exports=function(e,t,n){for(var l in t)n&&n.unsafe&&e[l]?e[l]=t[l]:a(e,l,t[l],n);return e}}),Ia=/* @__PURE__ */ve((e,t)=>{var a=We(),n=Ca(),l=lt(),s=Te(),o=l("species");t.exports=function(e){var t=a(e);s&&t&&!t[o]&&n(t,o,{configurable:!0,get:function(){return this}})}}),Da=/* @__PURE__ */ve((e,t)=>{var a=Wt(),n=Ca(),l=Sa(),s=dt(),o=wa(),i=Pe(),r=ga(),u=ea(),c=ta(),d=Ia(),p=Te(),f=da().fastKey,h=It(),m=h.set,g=h.getterFor;t.exports={getConstructor:function(e,t,u,c){var d=e(function(e,n){o(e,h),m(e,{type:t,index:a(null),first:null,last:null,size:0}),p||(e.size=0),i(n)||r(n,e[c],{that:e,AS_ENTRIES:u})}),h=d.prototype,w=g(t),v=function(e,t,a){var n,l,s=w(e),o=y(e,t);return o?o.value=a:(s.last=o={index:l=f(t,!0),key:t,value:a,previous:n=s.last,next:null,removed:!1},s.first||(s.first=o),n&&(n.next=o),p?s.size++:e.size++,"F"!==l&&(s.index[l]=o)),e},y=function(e,t){var a,n=w(e),l=f(t);if("F"!==l)return n.index[l];for(a=n.first;a;a=a.next)if(a.key===t)return a};return l(h,{clear:function(){for(var e=w(this),t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=null),t=t.next;e.first=e.last=null,e.index=a(null),p?e.size=0:this.size=0},delete:function(e){var t=this,a=w(t),n=y(t,e);if(n){var l=n.next,s=n.previous;delete a.index[n.index],n.removed=!0,s&&(s.next=l),l&&(l.previous=s),a.first===n&&(a.first=l),a.last===n&&(a.last=s),p?a.size--:t.size--}return!!n},forEach:function(e){for(var t,a=w(this),n=s(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:a.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),l(h,u?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),p&&n(h,"size",{configurable:!0,get:function(){return w(this).size}}),d},setStrong:function(e,t,a){var n=t+" Iterator",l=g(t),s=g(n);u(e,t,function(e,t){m(this,{type:n,target:e,state:l(e),kind:t,last:null})},function(){for(var e=s(this),t=e.kind,a=e.last;a&&a.removed;)a=a.previous;return e.target&&(e.last=a=a?a.next:e.state.first)?c("keys"===t?a.key:"values"===t?a.value:[a.key,a.value],!1):(e.target=null,c(void 0,!0))},a?"entries":"values",!a,!0),d(t)}}}),Ma=/* @__PURE__ */ve(()=>{xa()("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Da())}),Ta=/* @__PURE__ */ve(()=>{Ma()}),La=/* @__PURE__ */ve(()=>{xa()("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Da())}),Oa=/* @__PURE__ */ve(()=>{La()}),Ba=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=Ve(),l=Ie(),s=function(e){return n.slice(0,e.length)===e};t.exports=s("Bun/")?"BUN":s("Cloudflare-Workers")?"CLOUDFLARE":s("Deno/")?"DENO":s("Node.js/")?"NODE":a.Bun&&"string"==typeof Bun.version?"BUN":a.Deno&&"object"==typeof Deno.version?"DENO":"process"===l(a.process)?"NODE":a.window&&a.document?"BROWSER":"REST"}),$a=/* @__PURE__ */ve((e,t)=>{var a=Ba();t.exports="NODE"===a}),Pa=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=$a();t.exports=function(e){if(n){try{return a.process.getBuiltinModule(e)}catch(t){}try{return Function('return require("'+e+'")')()}catch(t){}}}}),Ea=/* @__PURE__ */ve((e,t)=>{var a=jt(),n=String;t.exports=function(e){if("Symbol"===a(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}}),Ra=/* @__PURE__ */ve((e,t)=>{var a=Ea();t.exports=function(e,t){return void 0===e?arguments.length<2?"":t:a(e)}}),Fa=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=_e(),l=ft(),s=Ra(),o=Error.prototype.toString,i=n(function(){if(a){var e=Object.create(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==o.call(e))return!0}return"2: 1"!==o.call({message:1,name:2})||"Error"!==o.call({})});t.exports=i?function(){var e=l(this),t=s(e.name,"Error"),a=s(e.message);return t?a?t+": "+a:t:a}:o}),Na=/* @__PURE__ */ve((e,t)=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}}),Wa=/* @__PURE__ */ve((e,t)=>{var a=Se(),n=Error,l=a("".replace),s=String(new n("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,i=o.test(s);t.exports=function(e,t){if(i&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=l(e,o,"");return e}}),Ha=/* @__PURE__ */ve(()=>{var e=gt(),t=We(),a=Pa(),n=_e(),l=Wt(),s=Be(),o=ht().f,i=Ut(),r=Ca(),u=at(),c=wa(),d=ft(),p=Fa(),f=Ra(),h=Na(),m=Wa(),g=It(),w=Te(),v=Je(),y="DOMException",b="DATA_CLONE_ERR",A=t("Error"),k=t(y)||function(){try{(new(t("MessageChannel")||a("worker_threads").MessageChannel)).port1.postMessage(/* @__PURE__ */new WeakMap)}catch(e){if(e.name===b&&25===e.code)return e.constructor}}(),_=k&&k.prototype,x=A.prototype,C=g.set,S=g.getterFor(y),I="stack"in new A(y),D=function(e){return u(h,e)&&h[e].m?h[e].c:0},M=function(){c(this,T);var e=arguments.length,t=f(e<1?void 0:arguments[0]),a=f(e<2?void 0:arguments[1],"Error"),n=D(a);if(C(this,{type:y,name:a,message:t,code:n}),w||(this.name=a,this.message=t,this.code=n),I){var l=new A(t);l.name=y,o(this,"stack",s(1,m(l.stack,1)))}},T=M.prototype=l(x),L=function(e){return{enumerable:!0,configurable:!0,get:e}},O=function(e){return L(function(){return S(this)[e]})};w&&(r(T,"code",O("code")),r(T,"message",O("message")),r(T,"name",O("name"))),o(T,"constructor",s(1,M));var B=n(function(){return!(new k instanceof A)}),$=B||n(function(){return x.toString!==p||"2: 1"!==String(new k(1,2))}),P=B||n(function(){return 25!==new k(1,"DataCloneError").code}),E=B||25!==k[b]||25!==_[b],R=v?$||P||E:B;e({global:!0,constructor:!0,forced:R},{DOMException:R?M:k});var F=t(y),N=F.prototype;for(var W in $&&(v||k===F)&&i(N,"toString",p),P&&w&&k===F&&r(N,"code",L(function(){return D(d(this).name)})),h)if(u(h,W)){var H=h[W],V=H.s,U=s(6,H.c);u(F,V)||o(F,V,U),u(N,V)||o(N,V,U)}}),Va=/* @__PURE__ */ve((e,t)=>{var a=Me(),n=Fe(),l=Xt();t.exports=function(e,t,s){var o,i;return l&&a(o=t.constructor)&&o!==s&&n(i=o.prototype)&&i!==s.prototype&&l(e,i),e}}),Ua=/* @__PURE__ */ve(()=>{var e=gt(),t=ke(),a=We(),n=Be(),l=ht().f,s=at(),o=wa(),i=Va(),r=Ra(),u=Na(),c=Wa(),d=Te(),p=Je(),f="DOMException",h=a("Error"),m=a(f),g=function(){o(this,w);var e=arguments.length,t=r(e<1?void 0:arguments[0]),a=new m(t,r(e<2?void 0:arguments[1],"Error")),s=new h(t);return s.name=f,l(a,"stack",n(1,c(s.stack,1))),i(a,this,g),a},w=g.prototype=m.prototype,v="stack"in new h(f),y="stack"in new m(1,2),b=m&&d&&Object.getOwnPropertyDescriptor(t,f),A=!(!b||b.writable&&b.configurable),k=v&&!A&&!y;e({global:!0,constructor:!0,forced:p||k},{DOMException:k?g:m});var _=a(f),x=_.prototype;if(x.constructor!==_)for(var C in p||l(x,"constructor",n(1,_)),u)if(s(u,C)){var S=u[C],I=S.s;s(_,I)||l(_,I,n(6,S.c))}}),Ya=/* @__PURE__ */ve(()=>{var e=We(),t="DOMException";Qt()(e(t),t)}),Ka=/* @__PURE__ */ve((e,t)=>{var a=Te(),n=ht(),l=Be();t.exports=function(e,t,s){a?n.f(e,t,l(0,s)):e[t]=s}}),ja=/* @__PURE__ */ve((e,t)=>{var a=TypeError;t.exports=function(e,t){if(e<t)throw new a("Not enough arguments");return e}}),Ga=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=_e(),l=a.RegExp,s=!n(function(){var e=!0;try{l(".","d")}catch(r){e=!1}var t={},a="",n=e?"dgimsy":"gimsy",s=function(e,n){Object.defineProperty(t,e,{get:function(){return a+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var i in e&&(o.hasIndices="d"),o)s(i,o[i]);return Object.getOwnPropertyDescriptor(l.prototype,"flags").get.call(t)!==n||a!==n});t.exports={correct:s}}),Qa=/* @__PURE__ */ve((e,t)=>{var a=ft();t.exports=function(){var e=a(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}}),qa=/* @__PURE__ */ve((e,t)=>{var a=Le(),n=at(),l=He(),s=Ga(),o=Qa(),i=RegExp.prototype;t.exports=s.correct?function(e){return e.flags}:function(e){return s.correct||!l(i,e)||n(e,"flags")?e.flags:a(o,e)}}),Za=/* @__PURE__ */ve((e,t)=>{t.exports=function(e,t){return 1===t?function(t,a){return t[e](a)}:function(t,a,n){return t[e](a,n)}}}),Ja=/* @__PURE__ */ve((e,t)=>{var a=We(),n=Za(),l=a("Map");t.exports={Map:l,set:n("set",2),get:n("get",1),has:n("has",1),remove:n("delete",1),proto:l.prototype}}),za=/* @__PURE__ */ve((e,t)=>{var a=We(),n=Za(),l=a("Set"),s=l.prototype;t.exports={Set:l,add:n("add",1),has:n("has",1),remove:n("delete",1),proto:s}}),Xa=/* @__PURE__ */ve((e,t)=>{var a=Le();t.exports=function(e,t,n){for(var l,s,o=n?e:e.iterator,i=e.next;!(l=a(i,o)).done;)if(void 0!==(s=t(l.value)))return s}}),en=/* @__PURE__ */ve((e,t)=>{var a=Xa();t.exports=function(e,t,n){return n?a(e.keys(),t,!0):e.forEach(t)}}),tn=/* @__PURE__ */ve((e,t)=>{var a=ke(),n=_e(),l=Ue(),s=Ba(),o=a.structuredClone;t.exports=!!o&&!n(function(){if("DENO"===s&&l>92||"NODE"===s&&l>94||"BROWSER"===s&&l>97)return!1;var e=/* @__PURE__ */new ArrayBuffer(8),t=o(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength})}),an=/* @__PURE__ */ve((e,t)=>{var a,n,l,s,o=ke(),i=Pa(),r=tn(),u=o.structuredClone,c=o.ArrayBuffer,d=o.MessageChannel,p=!1;if(r)p=function(e){u(e,{transfer:[e]})};else if(c)try{d||(a=i("worker_threads"))&&(d=a.MessageChannel),d&&(n=new d,l=new c(2),s=function(e){n.port1.postMessage(null,[e])},2===l.byteLength&&(s(l),0===l.byteLength&&(p=s)))}catch(f){}t.exports=p}),nn=/* @__PURE__ */ve((e,t)=>{var a=_e(),n=Be();t.exports=!a(function(){var e=/* @__PURE__ */new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)})}),ln=/* @__PURE__ */ve(()=>{var e,t=Je(),a=gt(),n=ke(),l=We(),s=Se(),o=_e(),i=nt(),r=Me(),u=ba(),c=Pe(),d=Fe(),p=je(),f=ga(),h=ft(),m=jt(),g=at(),w=Ka(),v=mt(),y=Bt(),b=ja(),A=qa(),k=Ja(),_=za(),x=en(),C=an(),S=nn(),I=tn(),D=n.Object,M=n.Array,T=n.Date,L=n.Error,O=n.TypeError,B=n.PerformanceMark,$=l("DOMException"),P=k.Map,E=k.has,R=k.get,F=k.set,N=_.Set,W=_.add,H=_.has,V=l("Object","keys"),U=s([].push),Y=s((!0).valueOf),K=s(1.1.valueOf),j=s("".valueOf),G=s(T.prototype.getTime),Q=i("structuredClone"),q="DataCloneError",Z="Transferring",J=function(e){return!o(function(){var t=new n.Set([7]),a=e(t),l=e(D(7));return a===t||!a.has(7)||!d(l)||7!==+l})&&e},z=function(e,t){return!o(function(){var a=new t,n=e({a:a,b:a});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===a.stack)})},X=n.structuredClone,ee=t||!z(X,L)||!z(X,$)||(e=X,!!o(function(){var t=e(new n.AggregateError([1],Q,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==Q||3!==t.cause})),te=!X&&J(function(e){return new B(Q,{detail:e}).detail}),ae=J(X)||te,ne=function(e){throw new $("Uncloneable type: "+e,q)},le=function(e,t){throw new $((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",q)},se=function(e,t){return ae||le(t),ae(e)},oe=function(e,t,a){if(E(t,e))return R(t,e);var l,s,o,i,u,c;if("SharedArrayBuffer"===(a||m(e)))l=ae?ae(e):e;else{var d=n.DataView;d||r(e.slice)||le("ArrayBuffer");try{if(r(e.slice)&&!e.resizable)l=e.slice(0);else{s=e.byteLength,o="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,l=new ArrayBuffer(s,o),i=new d(e),u=new d(l);for(c=0;c<s;c++)u.setUint8(c,i.getUint8(c))}}catch(p){throw new $("ArrayBuffer is detached",q)}}return F(t,e,l),l},ie=function(e,t){if(p(e)&&ne("Symbol"),!d(e))return e;if(t){if(E(t,e))return R(t,e)}else t=new P;var a,s,o,i,u,c,f,h,b=m(e);switch(b){case"Array":o=M(y(e));break;case"Object":o={};break;case"Map":o=new P;break;case"Set":o=new N;break;case"RegExp":o=new RegExp(e.source,A(e));break;case"Error":switch(s=e.name){case"AggregateError":o=new(l(s))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":o=new(l(s));break;case"CompileError":case"LinkError":case"RuntimeError":o=new(l("WebAssembly",s));break;default:o=new L}break;case"DOMException":o=new $(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":o=oe(e,t,b);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===b?e.byteLength:e.length,o=function(e,t,a,l,s){var o=n[t];return d(o)||le(t),new o(oe(e.buffer,s),a,l)}(e,b,e.byteOffset,c,t);break;case"DOMQuad":try{o=new DOMQuad(ie(e.p1,t),ie(e.p2,t),ie(e.p3,t),ie(e.p4,t))}catch(k){o=se(e,b)}break;case"File":if(ae)try{o=ae(e),m(o)!==b&&(o=void 0)}catch(k){}if(!o)try{o=new File([e],e.name,e)}catch(k){}o||le(b);break;case"FileList":if(i=function(){var e;try{e=new n.DataTransfer}catch(k){try{e=new n.ClipboardEvent("").clipboardData}catch(t){}}return e&&e.items&&e.files?e:null}()){for(u=0,c=y(e);u<c;u++)i.items.add(ie(e[u],t));o=i.files}else o=se(e,b);break;case"ImageData":try{o=new ImageData(ie(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(k){o=se(e,b)}break;default:if(ae)o=ae(e);else switch(b){case"BigInt":o=D(e.valueOf());break;case"Boolean":o=D(Y(e));break;case"Number":o=D(K(e));break;case"String":o=D(j(e));break;case"Date":o=new T(G(e));break;case"Blob":try{o=e.slice(0,e.size,e.type)}catch(k){le(b)}break;case"DOMPoint":case"DOMPointReadOnly":a=n[b];try{o=a.fromPoint?a.fromPoint(e):new a(e.x,e.y,e.z,e.w)}catch(k){le(b)}break;case"DOMRect":case"DOMRectReadOnly":a=n[b];try{o=a.fromRect?a.fromRect(e):new a(e.x,e.y,e.width,e.height)}catch(k){le(b)}break;case"DOMMatrix":case"DOMMatrixReadOnly":a=n[b];try{o=a.fromMatrix?a.fromMatrix(e):new a(e)}catch(k){le(b)}break;case"AudioData":case"VideoFrame":r(e.clone)||le(b);try{o=e.clone()}catch(k){ne(b)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":le(b);default:ne(b)}}switch(F(t,e,o),b){case"Array":case"Object":for(f=V(e),u=0,c=y(f);u<c;u++)h=f[u],w(o,h,ie(e[h],t));break;case"Map":e.forEach(function(e,a){F(o,ie(a,t),ie(e,t))});break;case"Set":e.forEach(function(e){W(o,ie(e,t))});break;case"Error":v(o,"message",ie(e.message,t)),g(e,"cause")&&v(o,"cause",ie(e.cause,t)),"AggregateError"===s?o.errors=ie(e.errors,t):"SuppressedError"===s&&(o.error=ie(e.error,t),o.suppressed=ie(e.suppressed,t));case"DOMException":S&&v(o,"stack",ie(e.stack,t))}return o};a({global:!0,enumerable:!0,sham:!I,forced:ee},{structuredClone:function(e){var t,a,l=b(arguments.length,1)>1&&!c(arguments[1])?h(arguments[1]):void 0,s=l?l.transfer:void 0;void 0!==s&&(a=function(e,t){if(!d(e))throw new O("Transfer option cannot be converted to a sequence");var a=[];f(e,function(e){U(a,h(e))});for(var l,s,o,i,c,p=0,g=y(a),w=new N;p<g;){if(l=a[p++],"ArrayBuffer"===(s=m(l))?H(w,l):E(t,l))throw new $("Duplicate transferable",q);if("ArrayBuffer"!==s){if(I)i=X(l,{transfer:[l]});else switch(s){case"ImageBitmap":o=n.OffscreenCanvas,u(o)||le(s,Z);try{(c=new o(l.width,l.height)).getContext("bitmaprenderer").transferFromImageBitmap(l),i=c.transferToImageBitmap()}catch(v){}break;case"AudioData":case"VideoFrame":r(l.clone)&&r(l.close)||le(s,Z);try{i=l.clone(),l.close()}catch(v){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":le(s,Z)}if(void 0===i)throw new $("This object cannot be transferred: "+s,q);F(t,l,i)}else W(w,l)}return w}(s,t=new P));var o=ie(e,t);return a&&function(e){x(e,function(e){I?ae(e,{transfer:[e]}):r(e.transfer)?e.transfer():C?C(e):le("ArrayBuffer",Z)})}(a),o}})}),sn=/* @__PURE__ */ve((e,t)=>{At(),aa(),na(),la(),Ta(),Oa(),Ha(),Ua(),Ya(),ln();var a=Ne();t.exports=a.structuredClone}),on=/* @__PURE__ */ve((e,t)=>{var a=sn();t.exports=a}),rn=/* @__PURE__ */Ae(bt(),1),un=/* @__PURE__ */Ae(on(),1);function cn(){return{$hasOwn:(e,t)=>(0,rn.default)(e,t),$structuredClone:e=>(0,un.default)(e)}}function dn(){const e=()=>{const e=window.location.hash.replace("%23","#").split("#");let t=[];for(let a=0;a<e.length;a++)e[a].length>0&&t.push(e[a]);return t},t=e=>{const t=window.getComputedStyle(e).overflowY;return("auto"===t||"scroll"===t||"overlay"===t)&&e.scrollHeight>e.clientHeight};return{$parseHashes:e,$hasHash:t=>e().includes(t),$parameterByName:(e,t)=>{t||(t=window.location.href),e=e.replace(/[[\]]/g,"\\$&");const a=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return a?a[2]?decodeURIComponent(a[2].replace(/\+/g," ")):"":null},$isScrollable:t,$findScrollableParent:e=>{let a=e.parentElement;for(;a&&a!==document.body;){if(t(a))return a;a=a.parentElement}return document.scrollingElement||document.documentElement},$maybeToggleControl:(e,t)=>{let a=e.target;a instanceof Element||(a=a?.parentElement??null),a?.closest("a")||(e.stopPropagation(),e.preventDefault(),t())}}}var{$findScrollableParent:pn}=dn(),fn={beforeMount(e,t){window.jQuery&&window.jQuery(e).on("click",function(e){e.preventDefault(),e.stopPropagation();const a=window.jQuery(t.value);if(a.length){const e=a.offset().top,t=pn(a[0]),n=window.jQuery(t).scrollTop()+20;t.scrollTo({top:e-n,behavior:"smooth"})}})}},hn={beforeMount(e,t){window.jQuery&&window.jQuery(e).attr("title",t.value).tooltip({tooltipClass:"wf-tooltip"})}},mn={mounted(e,t){gn(e,t.value)},updated(e,t){gn(e,t.value)}};function gn(e,t){e.style.visibility=t?"visible":"hidden",e.style.pointerEvents=t?"":"none",e.setAttribute("aria-hidden",t?"false":"true")}var wn={install:(e,t)=>{const a=t.wfconstants,n=t.$dataStore;n.blocking||(n.blocking=P({blocks:[],hasCountryBlock:a.plugin.has_country_block}))}},vn={install:(e,t)=>{const a=t.$dataStore;a.disclosures||(a.disclosures=P({$active:window.WordfenceMergedJSConstants.plugin.active_disclosure_state}))}},yn={install:(e,t)=>{const a=t.$dataStore;a.ip||(a.ip=P({$reversed:{}}))}},bn={install:(e,t)=>{const a=t.$dataStore,n=()=>{const e=document.getElementById("wf-live-traffic");a.livetraffic.viewportWidth=e?.clientWidth||window.innerWidth};a.livetraffic||(a.livetraffic=P({}),a.livetraffic.limit=R(20),a.livetraffic.entries=P([]),a.livetraffic.recent=P([]),a.livetraffic.resizeObserver=null,a.livetraffic.viewportWidth=R(window.innerWidth),a.livetraffic.truncationScaleAmount=s(()=>Math.floor(Math.max((a.livetraffic.viewportWidth-1160)/16,0))),a.livetraffic.urlMaxLength=s(()=>105),a.livetraffic.urlShortLength=s(()=>35+a.livetraffic.truncationScaleAmount),a.livetraffic.hostnameShortLength=s(()=>15+a.livetraffic.truncationScaleAmount),window.addEventListener("resize",n),requestAnimationFrame(()=>{n();const e=document.getElementById("wf-live-traffic");e&&window.ResizeObserver&&(a.livetraffic.resizeObserver=new window.ResizeObserver(n),a.livetraffic.resizeObserver.observe(e))}))}},An={install:(e,t)=>{const a=t.$dataStore,n=t.wfconstants;a.$options||(a.$options=P(n.options.value),a.$pendingOptions=P({}))}},kn={install:(e,t)=>{const a=t.wfconstants,n=t.$mitt,l=t.$,s=t.$dataStore,{$hasOwn:o}=cn();e.config.globalProperties.$dismissIssue=e=>{const t=s.scanner.issues.$new.findIndex(t=>t.id===e);if(t>-1)s.scanner.issues.$new.splice(t,1);else{const t=s.scanner.issues.$ignored.findIndex(t=>t.id===e);t>-1&&s.scanner.issues.$ignored.splice(t,1)}},s.scanner||(s.scanner=P({}),s.scanner.issues=P({$summary:{[a.scanner.summary.scanned_posts]:0,[a.scanner.summary.scanned_comments]:0,[a.scanner.summary.scanned_files]:0,[a.scanner.summary.scanned_plugins]:0,[a.scanner.summary.scanned_themes]:0,[a.scanner.summary.scanned_users]:0,[a.scanner.summary.scanned_urls]:0},$newCount:0,$ignoredCount:0,$new:[],$ignored:[]}),n.on("dismissIssue",e.config.globalProperties.$dismissIssue),n.on("issueCountsUpdated",e=>{s.scanner.issues.$newCount=o(e,"new")?parseInt(e.new):0,s.scanner.issues.$ignoredCount=(o(e,"ignoreC")?parseInt(e.ignoreC):0)+(o(e,"ignoreP")?parseInt(e.ignoreP):0)}),s.scanner.state=P({$scanRunning:!1,$scanFailed:!1,$scanStalled:!1,$scanStages:{[a.scanner.stage.spamvertising]:a.scanner.stage_status.pending,[a.scanner.stage.spam]:a.scanner.stage_status.pending,[a.scanner.stage.blacklist]:a.scanner.stage_status.pending,[a.scanner.stage.server]:a.scanner.stage_status.pending,[a.scanner.stage.changes]:a.scanner.stage_status.pending,[a.scanner.stage.malware]:a.scanner.stage_status.pending,[a.scanner.stage.content]:a.scanner.stage_status.pending,[a.scanner.stage.public]:a.scanner.stage_status.pending,[a.scanner.stage.password]:a.scanner.stage_status.pending,[a.scanner.stage.vulnerability]:a.scanner.stage_status.pending,[a.scanner.stage.options]:a.scanner.stage_status.pending},$lastScanStatusUpdate:Date.now(),$lastScanCompleted:""}),s.scanner.activityLog=P({$queue:[],$log:[],$updatePending:!1,$updatesPaused:!1,$lastStatusMessage:"",$lastID:0,$lastIssueTime:0,$nextUpdateAt:0,$updateInterval:!1}),window.addEventListener("focus",()=>{s.scanner?.activityLog?.$updatesPaused&&document.hasFocus()&&(s.scanner.activityLog.$updatesPaused=!1,l("body").removeClass("wordfenceLiveActivityPaused"))}))}},_n={install:(e,t)=>{const a=t.wfconstants,n=t.$dataStore,{$structuredClone:l}=cn();n.$wordfence||(n.$wordfence=P({nonce:Object.fromEntries(Object.entries(a.plugin.nonce).map(([e,t])=>[e,t.nonce])),wafData:l(a.waf.wafData),restoreWAFData:l(a.waf.wafData),nextUpdate:a.waf.nextUpdate}))}},xn={install:(e,t)=>{const a=t.$dataStore;a.$wordpress||(a.$wordpress=P({avatars:{}}))}},Cn={key:0,id:"wf-onboarding-tour-overlay"},Sn={__name:"TourOverlay",props:{show:{type:Boolean,default:!1}},setup:e=>(t,a)=>(B(),i(n,{name:"wf-fade"},{default:ie(()=>[e.show?(B(),u("div",Cn)):r("",!0)]),_:1}))};function In(){const e=b("__"),t=b("$"),a=b("$mitt"),n=b("$dataStore"),l=b("wfconstants"),s=window.wordfenceAdmin,{$hasOwn:o}=cn(),i=e=>{const t=String(e??"").replace(/^wordfence_/,"");for(const[a,s]of Object.entries(l.plugin.nonce))if(s?.actions?.includes(t))return n.$wordfence.nonce[a]??null;return null},r=(e,t)=>{if(!t)return!1;const a=String(e??"").replace(/^wordfence_/,"");for(const[s,o]of Object.entries(l.plugin.nonce))if(o?.actions?.includes(a))return n.$wordfence.nonce[s]=t,!0;return!1},u=t=>{if(t&&(t.errorMessage||t.errorMsg||t.error||t.err||t.cerrorMsg||t.downgradeErrorMsg))return t;const a=t?.responseJSON;return a&&"object"==typeof a?a:{errorMessage:t?.statusText||e("An unexpected error occurred during the request. Please try again or reload the page.")}},c=(t,n=null,l=()=>{},s=!1)=>{let o={name:"simple-confirmation-modal",title:n??e("Error"),message:d(t),options:{additionalButtons:[{title:e("Reload"),onClick:()=>{window.location.reload(!0)}}]}};s&&(o.onClosed=l),a.emit("showModal",o),s||"function"==typeof l&&l(t)},d=(t,a=!0,n="errorMessage")=>{if(t){if("string"==typeof t&&t.length>0)return t;if("object"==typeof t){const e=["errorMessage","errorMsg","error","err","cerrorMsg","downgradeErrorMsg"],a=n?[n,...e.filter(e=>e!==n)]:e;for(const n of a)if(o(t,n)&&"string"==typeof t[n]&&t[n].length>0)return t[n]}}return a?e("An unexpected error occurred during the request. Please try again or reload the page."):null};return{$ajaxNonce:i,$updateAjaxNonce:r,$ajax:(e,a,n=!1,o=!1,d=!1)=>{"string"==typeof a?a+=`${a.length>0?"&":""}action=${e}&nonce=${i(e)}`:"object"==typeof a&&a instanceof Array?(a.push({name:"action",value:e}),a.push({name:"nonce",value:i(e)})):a&&"object"==typeof a&&(a=Object.assign({},a,{action:e,nonce:i(e)})),d||s.showLoading(),t.ajax({type:"POST",url:l.plugin.url.admin_ajax,dataType:"json",data:a,success:t=>{if(d||s.removeLoading(),r(e,t?.nonce),t?.errorMessage||t?.errorMsg||t?.error||t?.err||t?.cerrorMsg||t?.downgradeErrorMsg){const e=u(t);"function"==typeof o?o(e):c(e)}else"function"==typeof n&&n(t)},error:(e,t)=>{if(d||s.removeLoading(),"abort"===t)return;const a=u(e);"function"==typeof o?o(a):c(a)}})},$genericErrorHandler:c,$ajaxErrorMessage:d}}var Dn={class:"wf-tour-template"},Mn={class:"wf-pointer-footer"},Tn={class:"wf-tour-pagination"},Ln={key:0,id:"wf-tour-previous"},On=["data-previous-slide-index"],Bn={id:"wf-tour-continue"},$n=["data-next-slide-index"],Pn={id:"wf-tour-close"},En={href:"#"},Rn={class:"wf-fa wf-fa-times-circle"},Fn={__name:"Tour",props:{show:{type:Boolean,default:!1},selectedIndex:{type:Number,default:0},slides:{type:Array,default:e=>[]}},emits:["closeTour"],setup(e,{emit:a}){const n=b("__"),l=b("$"),s=b("tourName"),{$ajax:o}=In(),d=a,{show:p,selectedIndex:h,slides:m}=Q(e),g=ee("slideElements"),w=V({currentPointer:null}),v=R(0);oe(p,e=>{e?A(v.value):w.currentPointer&&(w.currentPointer.pointer("destroy"),w.currentPointer=null)}),oe(h,e=>{v.value=e});const y=e=>e>=m.value.length-1?n("Got it"):n("Next"),A=e=>{w.currentPointer&&(w.currentPointer.pointer("destroy"),w.currentPointer=null);const t=l(m.value[e].anchor.selector),a={pointerClass:"wf-tour-pointer",buttons:(e,t)=>null,close:()=>{},content:g.value[e].innerHTML,pointerWidth:700,position:{edge:m.value[e].anchor.pointer.edge,align:m.value[e].anchor.pointer.align},open(){if(!t.length)return;const e=l(".wf-tour-pointer:visible").last().outerHeight()||0,a=t.offset().top,n=a+t.outerHeight(),s=Math.max(0,a-e-16-24),o=l(window).scrollTop(),i=o+l(window).height();(s<o||n+16>i)&&l("html, body").stop().animate({scrollTop:s},250)}};w.currentPointer=t.pointer(a).pointer("open"),l("#wf-tour-previous a").on("click",e=>{var t;e.preventDefault(),e.stopPropagation(),t=l(e.target).data("previousSlideIndex"),v.value=Math.max(0,t),A(v.value)}),l("#wf-tour-continue a").on("click",e=>{var t;e.preventDefault(),e.stopPropagation(),(t=l(e.target).data("nextSlideIndex"))>=m.value.length?k():(v.value=Math.min(m.value.length-1,t),A(v.value))}),l("#wf-tour-close a").on("click",e=>{e.preventDefault(),e.stopPropagation(),k()})},k=()=>{w.currentPointer&&(w.currentPointer.pointer("destroy"),w.currentPointer=null),o("wordfence_tourClosed",{page:s},e=>{d("closeTour")})};return(e,a)=>{const l=W("aria");return B(),u("ul",Dn,[(B(!0),u(t,null,F(J(m),(e,a)=>(B(),u("li",{key:e.title,ref_for:!0,ref_key:"slideElements",ref:g},[c("h3",null,Y(e.title),1),(B(),i(H(e.content))),c("div",Mn,[c("ul",Tn,[(B(!0),u(t,null,F(J(m),(e,t)=>(B(),u("li",{key:t,class:C({"wf-active":t===a})},"•",2))),128))]),a>0?(B(),u("div",Ln,[re((B(),u("a",{href:"#",class:"wf-onboarding-btn wf-onboarding-btn-default","data-previous-slide-index":a-1},[f(Y(J(n)("Previous")),1)],8,On)),[[l,{role:"button"}]])])):r("",!0),c("div",Bn,[re((B(),u("a",{href:"#",class:"wf-onboarding-btn wf-onboarding-btn-primary","data-next-slide-index":a+1},[f(Y(y(a)),1)],8,$n)),[[l,{role:"button"}]])])]),c("div",Pn,[re((B(),u("a",En,[re(c("i",Rn,null,512),[[l,{hidden:!0}]])])),[[l,{role:"button"}]])])]))),128))])}}},Nn={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("The Wordfence Audit Log is a premium feature that records a history of events on your site to assist in monitoring for unauthorized actions or signs of compromise. Events can include everything from user creation and editing to plugin/theme installation and updates. All data captured for relevant events is saved remotely to Wordfence Central to prevent any tampering that may interfere with post-incident analysis and response.")),1))}},Wn={__name:"AuditLogNewTour",setup(e){const t=b("__"),n=b("wfconstants"),l=R(!1),s=R(0);$("tourName",n.tour.types.auditlog),T(()=>{n.tour.new.auditlog&&(l.value=!0)});const o=[{title:t("Audit Log"),content:Nn,anchor:{selector:"#wf-audit-log",pointer:{edge:"bottom",align:"bottom"}}}],r=()=>{n.tour.new.auditlog=!1,l.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:l.value},null,8,["show"]),h(J(Fn),{show:l.value,selectedIndex:s.value,slides:o,onCloseTour:r},null,8,["show","selectedIndex"])]))}};function Hn(){const e=b("$mitt"),t=b("__");return{$modal:(t,a={})=>{e.emit("showModal",Object.assign({},{name:t},a))},$modalNotice:(t,a,n=null,l=null)=>{e.emit("showModal",{name:"simple-confirmation-modal",title:t,message:a,modalSize:n,options:l})},$modalNoticeHTML:(t,a,n=null,l=null)=>{e.emit("showModal",{name:"simple-confirmation-modal",title:t,message:a,modalSize:n,options:l,titleIsHTML:!0,messageIsHTML:!0})},$errorModal:a=>{e.emit("showModal",{name:"simple-confirmation-modal",title:t("An error occurred"),message:a})},$errorModalHTML:a=>{e.emit("showModal",{name:"simple-confirmation-modal",title:t("An error occurred"),message:a,messageIsHTML:!0})},$drawer:(t,a={})=>{e.emit("showDrawer",Object.assign({},{name:t},a))}}}function Vn(){const e=b("__"),t=b("$mitt"),a=b("$dataStore"),{$ajax:n,$genericErrorHandler:l}=In(),{$parameterByName:o}=dn(),{$hasOwn:i}=cn(),r=s(()=>(a.$pendingOptions,a.$options,e=>i(a.$pendingOptions,e)?a.$pendingOptions[e]:a.$options[e])),u=(e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;const a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(const l of a){if(!i(t,l))return!1;if(!u(e[l],t[l]))return!1}return!0};return{$setOption:(t,a,s,i,r=!1)=>{n("wordfence_saveOptions",{changes:JSON.stringify({[t]:a}),page:o("page"),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},e=>{e.success&&"function"==typeof s&&s(e)},t=>{l(t,e("Error Saving Option"),i,r)})},$resolvePendingOption:r,$updatePendingValue:(e,n,l)=>{i(a.$pendingOptions,J(e))&&u(J(a.$pendingOptions[J(e)]),J(n))||(u(J(l),J(n))?delete a.$pendingOptions[J(e)]:a.$pendingOptions[J(e)]=n,t.emit("pendingOptionChanged",{name:J(e),value:J(n)}))},$clearPendingValue:e=>{delete a.$pendingOptions[J(e)]}}}function Un(){const e=b("__"),t=b("_n"),a=b("sprintf");return{$ucfirst:e=>{const t=""+e;return 0===t.length?"":t.charAt(0).toUpperCase()+t.slice(1)},$lcfirst:e=>{const t=""+e;return 0===t.length?"":t.charAt(0).toLowerCase()+t.slice(1)},$snakeCase2CamelCase:e=>{const t=""+e;return 0===t.length?"":t.split("_").filter(e=>e.length>0).map((e,t)=>{const a=e.toLowerCase();return 0===t?a:a.charAt(0).toUpperCase()+a.slice(1)}).join("")},$camelCase2SnakeCase:e=>{const t=""+e;return 0===t.length?"":t.replace(/([a-z0-9])([A-Z])/g,"$1_$2").toLowerCase()},$snakeCase2PascalCase:e=>{const t=""+e;return 0===t.length?"":t.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("")},$timeAgo:e=>{const n=Math.floor(e/2592e3);let l=Math.floor(e/86400),s=Math.floor(e/3600),o=Math.floor(e/60);return n>0?(l-=30*n,l<=0?`${a(t("%d month","%d months",n),n)}`:`${a(t("%d month","%d months",n),n)} ${a(t("%d day","%d days",l),l)}`):l>0?(s-=24*l,s<=0?`${a(t("%d day","%d days",l),l)}`:`${a(t("%d day","%d days",l),l)} ${a(t("%d hour","%d hours",s),s)}`):s>0?(o-=60*s,o<=0?`${a(t("%d hour","%d hours",s),s)}`:`${a(t("%d hour","%d hours",s),s)} ${a(t("%d minute","%d minutes",o),o)}`):o>0?`${a(t("%d minute","%d minutes",o),o)}`:`${a(t("%d second","%d seconds",e),e)}`},$makeDuration:(a,n=!1)=>{let l=[],s=a,o=Math.floor(s/2592e3);s-=86400*o*30;let i=Math.floor(s/86400);s-=86400*i;let r=Math.floor(s/3600);s-=3600*r;let u=Math.floor(s/60);return s-=60*u,o&&(l.push(`${o} ${t("month","months",o)}`),n||(r=u=s=0)),i&&(l.push(`${i} ${t("day","days",i)}`),n||(u=s=0)),r&&(l.push(`${r} ${t("hour","hours",r)}`),n||(s=0)),u&&l.push(`${u} ${t("minute","minutes",u)}`),s&&s>=1&&l.push(`${s} ${t("second","seconds",s)}`),0===l.length&&l.push(e("less than 1 second")),l.join(" ")},$truncateText:function(e,t,a="tail"){return t=t||100,e&&e.length>t?"tail"===a?e.substring(0,Math.round(t))+"…":"…"+e.substring(e.length-Math.round(t)):e},$base64_decode:e=>{let t,a,n,l,s={},o=0,i=0,r="",u=String.fromCharCode,c=e.length;for(t=0;t<64;t++)s["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(n=0;n<c;n++)for(a=s[e.charAt(n)],o=(o<<6)+a,i+=6;i>=8;)((l=o>>>(i-=8)&255)||n<c-2)&&(r+=u(l));return r},$base64_encode:e=>{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let a,n,l,s,o,i,r,u="",c=0;for(;c<e.length;)a=e.charCodeAt(c++),n=e.charCodeAt(c++),l=e.charCodeAt(c++),s=a>>2,o=(3&a)<<4|n>>4,i=(15&n)<<2|l>>6,r=63&l,isNaN(n)?i=r=64:isNaN(l)&&(r=64),u=u+t.charAt(s)+t.charAt(o)+t.charAt(i)+t.charAt(r);return u},$addQueryArg:(e,t)=>{const a=new URL(e,"undefined"!=typeof window?window.location.origin:"http://localhost");return Object.entries(t).forEach(([e,t])=>{null==t?a.searchParams.delete(e):a.searchParams.set(e,t)}),a.toString()}}}var Yn={class:"screen-reader-text"},Kn={__name:"OpensInNewTab",setup(e){const t=b("__");return(e,a)=>(B(),u("span",Yn," ("+Y(J(t)("opens in new tab"))+")",1))}};function jn(e){return null==e}function Gn(e,t,a){const{object:n,valueProp:l,mode:s}=Q(e),o=w().proxy,i=a.iv;return{update:(e,a=!0)=>{i.value=(e=>jn(e)?"single"===s.value?{}:[]:e)(e);const r=(e=>n.value||jn(e)?e:Array.isArray(e)?e.map(e=>e[l.value]):e[l.value])(e);t.emit("change",r,o),a&&(t.emit("input",r),t.emit("update:modelValue",r))}}}function Qn(e){return m(()=>({get:e,set:()=>{}}))}function qn(e,t){const{value:a,modelValue:n,mode:l,valueProp:o}=Q(e),i=R("single"!==l.value?[]:{}),r=Qn(()=>void 0!==n.value?n.value:a.value),u=s(()=>"single"===l.value?i.value[o.value]:i.value.map(e=>e[o.value]));return{iv:i,internalValue:i,ev:r,externalValue:r,textValue:Qn(()=>"single"!==l.value?i.value.map(e=>e[o.value]).join(","):i.value[o.value]),plainValue:u}}function Zn(e,t,a){const{regex:n}=Q(e),l=w().proxy,s=a.isOpen,o=a.open,i=R(null);return oe(i,e=>{!s.value&&e&&o(),t.emit("search-change",e,l)}),{search:i,clearSearch:()=>{i.value=""},handleSearchInput:e=>{i.value=e.target.value},handleKeypress:e=>{if(n.value){let t=n.value;"string"==typeof t&&(t=new RegExp(t)),e.key.match(t)||e.preventDefault()}},handlePaste:e=>{if(n.value){let t=(e.clipboardData||window.clipboardData).getData("Text"),a=n.value;"string"==typeof a&&(a=new RegExp(a)),t.split("").every(e=>!!e.match(a))||e.preventDefault()}t.emit("paste",e,l)}}}function Jn(e,t,a){const{groupSelect:n,mode:l,groups:s,disabledProp:o}=Q(e),i=R(null),r=e=>{void 0===e||null!==e&&e[o.value]||s.value&&e&&e.group&&("single"===l.value||!n.value)||(i.value=e)};return{pointer:i,setPointer:r,clearPointer:()=>{r(null)}}}function zn(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}var Xn=(e,t)=>{if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(let l of a){if(!n.includes(l))return!1;if(!Xn(e[l],t[l]))return!1}return!0};function el(e,t,a){const{options:n,mode:l,trackBy:o,limit:i,hideSelected:r,createTag:u,createOption:c,label:d,appendNewTag:p,appendNewOption:f,multipleLabel:h,object:m,loading:g,delay:v,resolveOnLoad:y,minChars:b,filterResults:A,clearOnSearch:k,clearOnSelect:_,valueProp:x,allowAbsent:C,groupLabel:S,canDeselect:I,max:D,strict:M,closeOnSelect:T,closeOnDeselect:L,groups:O,reverse:B,infinite:$,groupOptions:P,groupHideEmpty:E,groupSelect:F,onCreate:N,disabledProp:W,searchStart:H,searchFilter:V}=Q(e),U=w().proxy,Y=a.iv,K=a.ev,j=a.search,G=a.clearSearch,q=a.update,Z=a.pointer,J=a.setPointer,z=a.clearPointer,X=a.focus,ee=a.deactivate,te=a.close,ae=a.localize,ne=R([]),le=R([]),se=R(!1),ie=R(null),re=R($.value&&-1===i.value?10:i.value),ue=s({get:()=>le.value,set:e=>le.value=e}),ce=Qn(()=>u.value||c.value||!1),de=Qn(()=>void 0!==p.value?p.value:void 0===f.value||f.value),pe=s(()=>{if(O.value){let e=me.value||[],t=[];return e.forEach(e=>{Ve(e[P.value]).forEach(a=>{t.push(Object.assign({},a,e[W.value]?{[W.value]:!0}:{}))})}),t}{let e=Ve(le.value||[]);return ne.value.length&&(e=e.concat(ne.value)),e}}),fe=s(()=>{let e=pe.value;return B.value&&(e=e.reverse()),ke.value.length&&(e=ke.value.concat(e)),He(e)}),he=s(()=>{let e=fe.value;return re.value>0&&(e=e.slice(0,re.value)),e}),me=s(()=>{if(!O.value)return[];let e=[],t=le.value||[];return ne.value.length&&e.push({[S.value]:" ",[P.value]:[...ne.value],__CREATE__:!0}),e.concat(t)}),ge=s(()=>{let e=[...me.value].map(e=>({...e}));return ke.value.length&&(e[0]&&e[0].__CREATE__?e[0][P.value]=[...ke.value,...e[0][P.value]]:e=[{[S.value]:" ",[P.value]:[...ke.value],__CREATE__:!0}].concat(e)),e}),we=s(()=>{if(!O.value)return[];let e=ge.value;return We((e||[]).map((e,t)=>{const a=Ve(e[P.value]);return{...e,index:t,group:!0,[P.value]:He(a,!1).map(t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{})),__VISIBLE__:He(a).map(t=>Object.assign({},t,e[W.value]?{[W.value]:!0}:{}))}}))}),ve=s(()=>{switch(l.value){case"single":return!jn(Y.value[x.value]);case"multiple":case"tags":return!jn(Y.value)&&Y.value.length>0}}),ye=s(()=>void 0!==h.value?h.value(Y.value,U):Y.value&&Y.value.length>1?`${Y.value.length} options selected`:"1 option selected"),be=Qn(()=>!pe.value.length&&!se.value&&!ke.value.length),Ae=Qn(()=>pe.value.length>0&&0==he.value.length&&(j.value&&O.value||!O.value)),ke=s(()=>!1!==ce.value&&j.value?-1!==Fe(j.value)?[]:[{[x.value]:j.value,[_e.value[0]]:j.value,[d.value]:j.value,__CREATE__:!0}]:[]),_e=s(()=>o.value?Array.isArray(o.value)?o.value:[o.value]:[d.value]),xe=Qn(()=>{switch(l.value){case"single":return null;case"multiple":case"tags":return[]}}),Ce=Qn(()=>g.value||se.value),Se=e=>{switch("object"!=typeof e&&(e=Re(e)),l.value){case"single":q(e);break;case"multiple":case"tags":q(Y.value.concat(e))}t.emit("select",De(e),e,U)},Ie=e=>{switch("object"!=typeof e&&(e=Re(e)),l.value){case"single":Te();break;case"tags":case"multiple":q(Array.isArray(e)?Y.value.filter(t=>-1===e.map(e=>e[x.value]).indexOf(t[x.value])):Y.value.filter(t=>t[x.value]!=e[x.value]))}t.emit("deselect",De(e),e,U)},De=e=>m.value?e:e[x.value],Me=e=>{Ie(e)},Te=()=>{q(xe.value),t.emit("clear",U)},Le=e=>{if(void 0!==e.group)return"single"!==l.value&&Ee(e[P.value])&&e[P.value].length;switch(l.value){case"single":return!jn(Y.value)&&(Y.value[x.value]==e[x.value]||"object"==typeof Y.value[x.value]&&"object"==typeof e[x.value]&&Xn(Y.value[x.value],e[x.value]));case"tags":case"multiple":return!jn(Y.value)&&-1!==Y.value.map(e=>e[x.value]).indexOf(e[x.value])}},Oe=e=>!0===e[W.value],Be=()=>!(void 0===D||-1===D.value||!ve.value&&D.value>0)&&Y.value.length>=D.value,$e=e=>{switch(e.__CREATE__&&delete(e={...e}).__CREATE__,l.value){case"single":if(e&&Le(e))return I.value&&Ie(e),void(L.value&&(z(),te()));e&&Pe(e),_.value&&G(),T.value&&(z(),te()),e&&Se(e);break;case"multiple":if(e&&Le(e))return Ie(e),void(L.value&&(z(),te()));if(Be())return void t.emit("max",U);e&&(Pe(e),Se(e)),_.value&&G(),r.value&&z(),T.value&&te();break;case"tags":if(e&&Le(e))return Ie(e),void(L.value&&(z(),te()));if(Be())return void t.emit("max",U);e&&Pe(e),_.value&&G(),e&&Se(e),r.value&&z(),T.value&&te()}T.value||X()},Pe=e=>{void 0===Re(e[x.value])&&ce.value&&(t.emit("tag",e[x.value],U),t.emit("option",e[x.value],U),t.emit("create",e[x.value],U),de.value&&Ne(e),G())},Ee=e=>void 0===e.find(e=>!Le(e)),Re=e=>pe.value[pe.value.map(e=>String(e[x.value])).indexOf(String(e))],Fe=e=>pe.value.findIndex(t=>_e.value.some(a=>(parseInt(t[a])==t[a]?parseInt(t[a]):t[a])===(parseInt(e)==e?parseInt(e):e))),Ne=e=>{ne.value.push(e)},We=e=>E.value?e.filter(e=>j.value?e.__VISIBLE__.length:e[P.value].length):e.filter(e=>!j.value||e.__VISIBLE__.length),He=(e,t=!0)=>{let a=e;if(j.value&&A.value){let e=V.value;e||(e=(e,t,a)=>_e.value.some(a=>{let n=zn(ae(e[a]),M.value);return H.value?n.startsWith(zn(t,M.value)):-1!==n.indexOf(zn(t,M.value))})),a=a.filter(t=>e(t,j.value,U))}return r.value&&t&&(a=a.filter(e=>!(e=>-1!==["tags","multiple"].indexOf(l.value)&&r.value&&Le(e))(e))),a},Ve=e=>{let t=e;var a;return a=t,"[object Object]"===Object.prototype.toString.call(a)&&(t=Object.keys(t).map(e=>{let a=t[e];return{[x.value]:e,[_e.value[0]]:a,[d.value]:a}})),t=t&&Array.isArray(t)?t.map(e=>"object"==typeof e?e:{[x.value]:e,[_e.value[0]]:e,[d.value]:e}):[],t},Ue=()=>{jn(K.value)||(Y.value=je(K.value))},Ye=e=>(se.value=!0,new Promise((t,a)=>{n.value(j.value,U).then(t=>{le.value=t||[],"function"==typeof e&&e(t),se.value=!1}).catch(e=>{le.value=[],se.value=!1}).finally(()=>{t()})})),Ke=()=>{if(ve.value)if("single"===l.value){let e=Re(Y.value[x.value]);if(void 0!==e){let t=e[d.value];Y.value[d.value]=t,m.value&&(K.value[d.value]=t)}}else Y.value.forEach((e,t)=>{let a=Re(Y.value[t][x.value]);if(void 0!==a){let e=a[d.value];Y.value[t][d.value]=e,m.value&&(K.value[t][d.value]=e)}})},je=e=>jn(e)?"single"===l.value?{}:[]:m.value?e:"single"===l.value?Re(e)||(C.value?{[d.value]:e,[x.value]:e,[_e.value[0]]:e}:{}):e.filter(e=>!!Re(e)||C.value).map(e=>Re(e)||{[d.value]:e,[x.value]:e,[_e.value[0]]:e}),Ge=()=>{ie.value=oe(j,e=>{e.length<b.value||!e&&0!==b.value||(se.value=!0,k.value&&(le.value=[]),setTimeout(()=>{e==j.value&&n.value(j.value,U).then(t=>{e!=j.value&&j.value||(le.value=t,Z.value=he.value.filter(e=>!0!==e[W.value])[0]||null,se.value=!1)}).catch(e=>{})},v.value))},{flush:"sync"})};if("single"!==l.value&&!jn(K.value)&&!Array.isArray(K.value))throw new Error(`v-model must be an array when using "${l.value}" mode`);return n&&"function"==typeof n.value?y.value?Ye(Ue):1==m.value&&Ue():(le.value=n.value,Ue()),v.value>-1&&Ge(),oe(v,(e,t)=>{ie.value&&ie.value(),e>=0&&Ge()}),oe(K,e=>{if(jn(e))q(je(e),!1);else switch(l.value){case"single":(m.value?e[x.value]!=Y.value[x.value]:e!=Y.value[x.value])&&q(je(e),!1);break;case"multiple":case"tags":(function(e,t){if(e.length!==t.length)return!1;const a=t.slice().sort();return e.slice().sort().every(function(e,t){return e===a[t]})})(m.value?e.map(e=>e[x.value]):e,Y.value.map(e=>e[x.value]))||q(je(e),!1)}},{deep:!0}),oe(n,(t,a)=>{"function"==typeof e.options?y.value&&(!a||t&&t.toString()!==a.toString())&&Ye():(le.value=e.options,Object.keys(Y.value).length||Ue(),Ke())}),oe(d,Ke),oe(i,(e,t)=>{re.value=$.value&&-1===e?10:e}),{resolvedOptions:ue,pfo:fe,fo:he,filteredOptions:he,hasSelected:ve,multipleLabelText:ye,eo:pe,extendedOptions:pe,eg:me,extendedGroups:me,fg:we,filteredGroups:we,noOptions:be,noResults:Ae,resolving:se,busy:Ce,offset:re,select:Se,deselect:Ie,remove:Me,selectAll:()=>{"single"!==l.value&&Se(he.value.filter(e=>!e.disabled&&!Le(e)))},clear:Te,isSelected:Le,isDisabled:Oe,isMax:Be,getOption:Re,handleOptionClick:e=>{if(!Oe(e))return N.value&&!Le(e)&&e.__CREATE__&&(delete(e={...e}).__CREATE__,(e=N.value(e,U))instanceof Promise)?(se.value=!0,void e.then(e=>{se.value=!1,$e(e)})):void $e(e)},handleGroupClick:e=>{if(!Oe(e)&&"single"!==l.value&&F.value){switch(l.value){case"multiple":case"tags":(e=>void 0===e.find(e=>!Le(e)&&!e[W.value]))(e[P.value])?Ie(e[P.value]):Se(e[P.value].filter(e=>-1===Y.value.map(e=>e[x.value]).indexOf(e[x.value])).filter(e=>!e[W.value]).filter((e,t)=>Y.value.length+1+t<=D.value||-1===D.value)),r.value&&Z.value&&J(we.value.filter(e=>!e[W.value])[Z.value.index])}T.value&&ee()}},handleTagRemove:(e,t)=>{0===t.button?Me(e):t.preventDefault()},refreshOptions:e=>{Ye(e)},resolveOptions:Ye,refreshLabels:Ke}}function tl(e,t,a){const{valueProp:n,showOptions:l,searchable:o,groupLabel:i,groups:r,mode:u,groupSelect:c,disabledProp:d,groupOptions:p}=Q(e),f=a.fo,h=a.fg,m=a.handleOptionClick,g=a.handleGroupClick,w=a.search,v=a.pointer,y=a.setPointer,b=a.clearPointer,A=a.multiselect,k=a.isOpen,_=s(()=>f.value.filter(e=>!e[d.value])),C=s(()=>h.value.filter(e=>!e[d.value])),S=Qn(()=>"single"!==u.value&&c.value),I=Qn(()=>v.value&&v.value.group),D=s(()=>F(v.value)),M=s(()=>{const e=I.value?v.value:F(v.value),t=C.value.map(e=>e[i.value]).indexOf(e[i.value]);let a=C.value[t-1];return void 0===a&&(a=L.value),a}),T=s(()=>{let e=C.value.map(e=>e.label).indexOf(I.value?v.value[i.value]:F(v.value)[i.value])+1;return C.value.length<=e&&(e=0),C.value[e]}),L=s(()=>[...C.value].slice(-1)[0]),O=s(()=>v.value.__VISIBLE__.filter(e=>!e[d.value])[0]),B=s(()=>{const e=D.value.__VISIBLE__.filter(e=>!e[d.value]);return e[e.map(e=>e[n.value]).indexOf(v.value[n.value])-1]}),$=s(()=>{const e=F(v.value).__VISIBLE__.filter(e=>!e[d.value]);return e[e.map(e=>e[n.value]).indexOf(v.value[n.value])+1]}),P=s(()=>[...M.value.__VISIBLE__.filter(e=>!e[d.value])].slice(-1)[0]),E=s(()=>[...L.value.__VISIBLE__.filter(e=>!e[d.value])].slice(-1)[0]),R=()=>{y(_.value[0]||null)},F=e=>C.value.find(t=>-1!==t.__VISIBLE__.map(e=>e[n.value]).indexOf(e[n.value])),N=()=>{let e=A.value.querySelector("[data-pointed]");if(!e)return;let t=e.parentElement.parentElement;r.value&&(t=I.value?e.parentElement.parentElement.parentElement:e.parentElement.parentElement.parentElement.parentElement),e.offsetTop+e.offsetHeight>t.clientHeight+t.scrollTop&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight),e.offsetTop<t.scrollTop&&(t.scrollTop=e.offsetTop)};return oe(w,e=>{o.value&&(e.length&&l.value?R():b())}),oe(k,e=>{if(e&&A&&A.value){let e=A.value.querySelectorAll("[data-selected]")[0];if(!e)return;let t=e.parentElement.parentElement;x(()=>{t.scrollTop=e.offsetTop})}}),{pointer:v,canPointGroups:S,isPointed:e=>!(!v.value||!(!e.group&&v.value[n.value]===e[n.value]||void 0!==e.group&&v.value[i.value]===e[i.value]))||void 0,setPointerFirst:R,selectPointer:()=>{v.value&&!0!==v.value[d.value]&&(I.value?g(v.value):m(v.value))},forwardPointer:()=>{if(null===v.value)y((r.value&&S.value?C.value[0].__CREATE__?_.value[0]:C.value[0]:_.value[0])||null);else if(r.value&&S.value){let e=I.value?O.value:$.value;void 0===e&&(e=T.value,e.__CREATE__&&(e=e[p.value][0])),y(e||null)}else{let e=_.value.map(e=>e[n.value]).indexOf(v.value[n.value])+1;_.value.length<=e&&(e=0),y(_.value[e]||null)}x(()=>{N()})},backwardPointer:()=>{if(null===v.value){let e=_.value[_.value.length-1];r.value&&S.value&&(e=E.value,void 0===e&&(e=L.value)),y(e||null)}else if(r.value&&S.value){let e=I.value?P.value:B.value;void 0===e&&(e=I.value?M.value:D.value,e.__CREATE__&&(e=P.value,void 0===e&&(e=M.value))),y(e||null)}else{let e=_.value.map(e=>e[n.value]).indexOf(v.value[n.value])-1;e<0&&(e=_.value.length-1),y(_.value[e]||null)}x(()=>{N()})}}}function al(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function nl(e){return e instanceof al(e).Element||e instanceof Element}function ll(e){return e instanceof al(e).HTMLElement||e instanceof HTMLElement}function sl(e){return"undefined"!=typeof ShadowRoot&&(e instanceof al(e).ShadowRoot||e instanceof ShadowRoot)}var ol=Math.max,il=Math.min,rl=Math.round;function ul(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function cl(){return!/^((?!chrome|android).)*safari/i.test(ul())}function dl(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!1);var n=e.getBoundingClientRect(),l=1,s=1;t&&ll(e)&&(l=e.offsetWidth>0&&rl(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&rl(n.height)/e.offsetHeight||1);var o=(nl(e)?al(e):window).visualViewport,i=!cl()&&a,r=(n.left+(i&&o?o.offsetLeft:0))/l,u=(n.top+(i&&o?o.offsetTop:0))/s,c=n.width/l,d=n.height/s;return{width:c,height:d,top:u,right:r+c,bottom:u+d,left:r,x:r,y:u}}function pl(e){var t=al(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function fl(e){return e?(e.nodeName||"").toLowerCase():null}function hl(e){return((nl(e)?e.ownerDocument:e.document)||window.document).documentElement}function ml(e){return dl(hl(e)).left+pl(e).scrollLeft}function gl(e){return al(e).getComputedStyle(e)}function wl(e){var t=gl(e),a=t.overflow,n=t.overflowX,l=t.overflowY;return/auto|scroll|overlay|hidden/.test(a+l+n)}function vl(e,t,a){void 0===a&&(a=!1);var n,l,s=ll(t),o=ll(t)&&function(e){var t=e.getBoundingClientRect(),a=rl(t.width)/e.offsetWidth||1,n=rl(t.height)/e.offsetHeight||1;return 1!==a||1!==n}(t),i=hl(t),r=dl(e,o,a),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!a)&&(("body"!==fl(t)||wl(i))&&(u=(n=t)!==al(n)&&ll(n)?{scrollLeft:(l=n).scrollLeft,scrollTop:l.scrollTop}:pl(n)),ll(t)?((c=dl(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ml(i))),{x:r.left+u.scrollLeft-c.x,y:r.top+u.scrollTop-c.y,width:r.width,height:r.height}}function yl(e){var t=dl(e),a=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-a)<=1&&(a=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:n}}function bl(e){return"html"===fl(e)?e:e.assignedSlot||e.parentNode||(sl(e)?e.host:null)||hl(e)}function Al(e){return["html","body","#document"].indexOf(fl(e))>=0?e.ownerDocument.body:ll(e)&&wl(e)?e:Al(bl(e))}function kl(e,t){var a;void 0===t&&(t=[]);var n=Al(e),l=n===(null==(a=e.ownerDocument)?void 0:a.body),s=al(n),o=l?[s].concat(s.visualViewport||[],wl(n)?n:[]):n,i=t.concat(o);return l?i:i.concat(kl(bl(o)))}function _l(e){return["table","td","th"].indexOf(fl(e))>=0}function xl(e){return ll(e)&&"fixed"!==gl(e).position?e.offsetParent:null}function Cl(e){for(var t=al(e),a=xl(e);a&&_l(a)&&"static"===gl(a).position;)a=xl(a);return a&&("html"===fl(a)||"body"===fl(a)&&"static"===gl(a).position)?t:a||function(e){var t=/firefox/i.test(ul());if(/Trident/i.test(ul())&&ll(e)&&"fixed"===gl(e).position)return null;var a=bl(e);for(sl(a)&&(a=a.host);ll(a)&&["html","body"].indexOf(fl(a))<0;){var n=gl(a);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return a;a=a.parentNode}return null}(e)||t}var Sl="top",Il="bottom",Dl="right",Ml="left",Tl="auto",Ll=[Sl,Il,Dl,Ml],Ol="start",Bl="end",$l="viewport",Pl="popper",El=/*#__PURE__*/Ll.reduce(function(e,t){return e.concat([t+"-"+Ol,t+"-"+Bl])},[]),Rl=/*#__PURE__*/[].concat(Ll,[Tl]).reduce(function(e,t){return e.concat([t,t+"-"+Ol,t+"-"+Bl])},[]),Fl=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Nl(e){var t=/* @__PURE__ */new Map,a=/* @__PURE__ */new Set,n=[];function l(e){a.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!a.has(e)){var n=t.get(e);n&&l(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){a.has(e.name)||l(e)}),n}function Wl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hl(e,t,a){return t===$l?Wl(function(e,t){var a=al(e),n=hl(e),l=a.visualViewport,s=n.clientWidth,o=n.clientHeight,i=0,r=0;if(l){s=l.width,o=l.height;var u=cl();(u||!u&&"fixed"===t)&&(i=l.offsetLeft,r=l.offsetTop)}return{width:s,height:o,x:i+ml(e),y:r}}(e,a)):nl(t)?function(e,t){var a=dl(e,!1,"fixed"===t);return a.top=a.top+e.clientTop,a.left=a.left+e.clientLeft,a.bottom=a.top+e.clientHeight,a.right=a.left+e.clientWidth,a.width=e.clientWidth,a.height=e.clientHeight,a.x=a.left,a.y=a.top,a}(t,a):Wl(function(e){var t,a=hl(e),n=pl(e),l=null==(t=e.ownerDocument)?void 0:t.body,s=ol(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),o=ol(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),i=-n.scrollLeft+ml(e),r=-n.scrollTop;return"rtl"===gl(l||a).direction&&(i+=ol(a.clientWidth,l?l.clientWidth:0)-s),{width:s,height:o,x:i,y:r}}(hl(e)))}function Vl(e){return e.split("-")[0]}function Ul(e){return e.split("-")[1]}function Yl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Kl(e){var t,a=e.reference,n=e.element,l=e.placement,s=l?Vl(l):null,o=l?Ul(l):null,i=a.x+a.width/2-n.width/2,r=a.y+a.height/2-n.height/2;switch(s){case Sl:t={x:i,y:a.y-n.height};break;case Il:t={x:i,y:a.y+a.height};break;case Dl:t={x:a.x+a.width,y:r};break;case Ml:t={x:a.x-n.width,y:r};break;default:t={x:a.x,y:a.y}}var u=s?Yl(s):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case Ol:t[u]=t[u]-(a[c]/2-n[c]/2);break;case Bl:t[u]=t[u]+(a[c]/2-n[c]/2)}}return t}function jl(e,t){void 0===t&&(t={});var a,n=t,l=n.placement,s=void 0===l?e.placement:l,o=n.strategy,i=void 0===o?e.strategy:o,r=n.boundary,u=void 0===r?"clippingParents":r,c=n.rootBoundary,d=void 0===c?$l:c,p=n.elementContext,f=void 0===p?Pl:p,h=n.altBoundary,m=void 0!==h&&h,g=n.padding,w=void 0===g?0:g,v=function(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}("number"!=typeof w?w:(a=w,Ll.reduce(function(e,t){return e[t]=a,e},{}))),y=f===Pl?"reference":Pl,b=e.rects.popper,A=e.elements[m?y:f],k=function(e,t,a,n){var l="clippingParents"===t?function(e){var t=kl(bl(e)),a=["absolute","fixed"].indexOf(gl(e).position)>=0&&ll(e)?Cl(e):e;return nl(a)?t.filter(function(e){return nl(e)&&function(e,t){var a=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(a&&sl(a)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}(e,a)&&"body"!==fl(e)}):[]}(e):[].concat(t),s=[].concat(l,[a]),o=s[0],i=s.reduce(function(t,a){var l=Hl(e,a,n);return t.top=ol(l.top,t.top),t.right=il(l.right,t.right),t.bottom=il(l.bottom,t.bottom),t.left=ol(l.left,t.left),t},Hl(e,o,n));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(nl(A)?A:A.contextElement||hl(e.elements.popper),u,d,i),_=dl(e.elements.reference),x=Kl({reference:_,element:b,strategy:"absolute",placement:s}),C=Wl(Object.assign({},b,x)),S=f===Pl?C:_,I={top:k.top-S.top+v.top,bottom:S.bottom-k.bottom+v.bottom,left:k.left-S.left+v.left,right:S.right-k.right+v.right},D=e.modifiersData.offset;if(f===Pl&&D){var M=D[s];Object.keys(I).forEach(function(e){var t=[Dl,Il].indexOf(e)>=0?1:-1,a=[Sl,Il].indexOf(e)>=0?"y":"x";I[e]+=M[a]*t})}return I}var Gl={placement:"bottom",modifiers:[],strategy:"absolute"};function Ql(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function ql(e){void 0===e&&(e={});var t=e,a=t.defaultModifiers,n=void 0===a?[]:a,l=t.defaultOptions,s=void 0===l?Gl:l;return function(e,t,a){void 0===a&&(a=s);var l,o,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Gl,s),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},r=[],u=!1,c={state:i,setOptions:function(a){var l="function"==typeof a?a(i.options):a;d(),i.options=Object.assign({},s,i.options,l),i.scrollParents={reference:nl(e)?kl(e):e.contextElement?kl(e.contextElement):[],popper:kl(t)};var o,u,p=function(e){var t=Nl(e);return Fl.reduce(function(e,a){return e.concat(t.filter(function(e){return e.phase===a}))},[])}((o=[].concat(n,i.options.modifiers),u=o.reduce(function(e,t){var a=e[t.name];return e[t.name]=a?Object.assign({},a,t,{options:Object.assign({},a.options,t.options),data:Object.assign({},a.data,t.data)}):t,e},{}),Object.keys(u).map(function(e){return u[e]})));return i.orderedModifiers=p.filter(function(e){return e.enabled}),i.orderedModifiers.forEach(function(e){var t=e.name,a=e.options,n=void 0===a?{}:a,l=e.effect;if("function"==typeof l){var s=l({state:i,name:t,instance:c,options:n});r.push(s||function(){})}}),c.update()},forceUpdate:function(){if(!u){var e=i.elements,t=e.reference,a=e.popper;if(Ql(t,a)){i.rects={reference:vl(t,Cl(a),"fixed"===i.options.strategy),popper:yl(a)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<i.orderedModifiers.length;n++)if(!0!==i.reset){var l=i.orderedModifiers[n],s=l.fn,o=l.options,r=void 0===o?{}:o,d=l.name;"function"==typeof s&&(i=s({state:i,options:r,name:d,instance:c})||i)}else i.reset=!1,n=-1}}},update:(l=function(){return new Promise(function(e){c.forceUpdate(),e(i)})},function(){return o||(o=new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(l())})})),o}),destroy:function(){d(),u=!0}};if(!Ql(e,t))return c;function d(){r.forEach(function(e){return e()}),r=[]}return c.setOptions(a).then(function(e){!u&&a.onFirstUpdate&&a.onFirstUpdate(e)}),c}}var Zl={passive:!0},Jl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zl(e){var t,a=e.popper,n=e.popperRect,l=e.placement,s=e.variation,o=e.offsets,i=e.position,r=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=o.x,f=void 0===p?0:p,h=o.y,m=void 0===h?0:h,g="function"==typeof c?c({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var w=o.hasOwnProperty("x"),v=o.hasOwnProperty("y"),y=Ml,b=Sl,A=window;if(u){var k=Cl(a),_="clientHeight",x="clientWidth";k===al(a)&&"static"!==gl(k=hl(a)).position&&"absolute"===i&&(_="scrollHeight",x="scrollWidth"),(l===Sl||(l===Ml||l===Dl)&&s===Bl)&&(b=Il,m-=(d&&k===A&&A.visualViewport?A.visualViewport.height:k[_])-n.height,m*=r?1:-1),l!==Ml&&(l!==Sl&&l!==Il||s!==Bl)||(y=Dl,f-=(d&&k===A&&A.visualViewport?A.visualViewport.width:k[x])-n.width,f*=r?1:-1)}var C,S=Object.assign({position:i},u&&Jl),I=!0===c?function(e,t){var a=e.x,n=e.y,l=t.devicePixelRatio||1;return{x:rl(a*l)/l||0,y:rl(n*l)/l||0}}({x:f,y:m},al(a)):{x:f,y:m};return f=I.x,m=I.y,r?Object.assign({},S,((C={})[b]=v?"0":"",C[y]=w?"0":"",C.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},S,((t={})[b]=v?m+"px":"",t[y]=w?f+"px":"",t.transform="",t))}var Xl=/*#__PURE__*/ql({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,a=e.instance,n=e.options,l=n.scroll,s=void 0===l||l,o=n.resize,i=void 0===o||o,r=al(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&u.forEach(function(e){e.addEventListener("scroll",a.update,Zl)}),i&&r.addEventListener("resize",a.update,Zl),function(){s&&u.forEach(function(e){e.removeEventListener("scroll",a.update,Zl)}),i&&r.removeEventListener("resize",a.update,Zl)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,a=e.name;t.modifiersData[a]=Kl({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,a=e.options,n=a.gpuAcceleration,l=void 0===n||n,s=a.adaptive,o=void 0===s||s,i=a.roundOffsets,r=void 0===i||i,u={placement:Vl(t.placement),variation:Ul(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:l,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zl(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:r})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zl(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var a=t.styles[e]||{},n=t.attributes[e]||{},l=t.elements[e];ll(l)&&fl(l)&&(Object.assign(l.style,a),Object.keys(n).forEach(function(e){var t=n[e];!1===t?l.removeAttribute(e):l.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,a={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,a.popper),t.styles=a,t.elements.arrow&&Object.assign(t.elements.arrow.style,a.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],l=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:a[e]).reduce(function(e,t){return e[t]="",e},{});ll(n)&&fl(n)&&(Object.assign(n.style,s),Object.keys(l).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]}]});function es(e,t,a){return ol(e,il(t,a))}var ts={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,n=e.name,l=a.mainAxis,s=void 0===l||l,o=a.altAxis,i=void 0!==o&&o,r=a.boundary,u=a.rootBoundary,c=a.altBoundary,d=a.padding,p=a.tether,f=void 0===p||p,h=a.tetherOffset,m=void 0===h?0:h,g=jl(t,{boundary:r,rootBoundary:u,padding:d,altBoundary:c}),w=Vl(t.placement),v=Ul(t.placement),y=!v,b=Yl(w),A="x"===b?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,x=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,S="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(k){if(s){var M,T="y"===b?Sl:Ml,L="y"===b?Il:Dl,O="y"===b?"height":"width",B=k[b],$=B+g[T],P=B-g[L],E=f?-x[O]/2:0,R=v===Ol?_[O]:x[O],F=v===Ol?-x[O]:-_[O],N=t.elements.arrow,W=f&&N?yl(N):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=H[T],U=H[L],Y=es(0,_[O],W[O]),K=y?_[O]/2-E-Y-V-S.mainAxis:R-Y-V-S.mainAxis,j=y?-_[O]/2+E+Y+U+S.mainAxis:F+Y+U+S.mainAxis,G=t.elements.arrow&&Cl(t.elements.arrow),Q=G?"y"===b?G.clientTop||0:G.clientLeft||0:0,q=null!=(M=null==I?void 0:I[b])?M:0,Z=B+j-q,J=es(f?il($,B+K-q-Q):$,B,f?ol(P,Z):P);k[b]=J,D[b]=J-B}if(i){var z,X="x"===b?Sl:Ml,ee="x"===b?Il:Dl,te=k[A],ae="y"===A?"height":"width",ne=te+g[X],le=te-g[ee],se=-1!==[Sl,Ml].indexOf(w),oe=null!=(z=null==I?void 0:I[A])?z:0,ie=se?ne:te-_[ae]-x[ae]-oe+S.altAxis,re=se?te+_[ae]+x[ae]-oe-S.altAxis:le,ue=f&&se?function(e,t,a){var n=es(e,t,a);return n>a?a:n}(ie,te,re):es(f?ie:ne,te,f?re:le);k[A]=ue,D[A]=ue-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]},as={left:"right",right:"left",bottom:"top",top:"bottom"};function ns(e){return e.replace(/left|right|bottom|top/g,function(e){return as[e]})}var ls={start:"end",end:"start"};function ss(e){return e.replace(/start|end/g,function(e){return ls[e]})}function os(e,t){void 0===t&&(t={});var a=t,n=a.placement,l=a.boundary,s=a.rootBoundary,o=a.padding,i=a.flipVariations,r=a.allowedAutoPlacements,u=void 0===r?Rl:r,c=Ul(n),d=c?i?El:El.filter(function(e){return Ul(e)===c}):Ll,p=d.filter(function(e){return u.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,a){return t[a]=jl(e,{placement:a,boundary:l,rootBoundary:s,padding:o})[Vl(a)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var is={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,a=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var l=a.mainAxis,s=void 0===l||l,o=a.altAxis,i=void 0===o||o,r=a.fallbackPlacements,u=a.padding,c=a.boundary,d=a.rootBoundary,p=a.altBoundary,f=a.flipVariations,h=void 0===f||f,m=a.allowedAutoPlacements,g=t.options.placement,w=Vl(g)===g,v=r||(w||!h?[ns(g)]:function(e){if(Vl(e)===Tl)return[];var t=ns(e);return[ss(e),t,ss(t)]}(g)),y=[g].concat(v).reduce(function(e,a){return e.concat(Vl(a)===Tl?os(t,{placement:a,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):a)},[]),b=t.rects.reference,A=t.rects.popper,k=/* @__PURE__ */new Map,_=!0,x=y[0],C=0;C<y.length;C++){var S=y[C],I=Vl(S),D=Ul(S)===Ol,M=[Sl,Il].indexOf(I)>=0,T=M?"width":"height",L=jl(t,{placement:S,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),O=M?D?Dl:Ml:D?Il:Sl;b[T]>A[T]&&(O=ns(O));var B=ns(O),$=[];if(s&&$.push(L[I]<=0),i&&$.push(L[O]<=0,L[B]<=0),$.every(function(e){return e})){x=S,_=!1;break}k.set(S,$)}if(_)for(var P=function(e){var t=y.find(function(t){var a=k.get(t);if(a)return a.slice(0,e).every(function(e){return e})});if(t)return x=t,"break"},E=h?3:1;E>0&&"break"!==P(E);E--);t.placement!==x&&(t.modifiersData[n]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rs(e,t,a){const{disabled:n,appendTo:l,appendToBody:s,openDirection:o}=Q(e),i=w().proxy,r=a.multiselect,u=a.dropdown,c=R(!1),d=R(null),p=R(null),f=Qn(()=>l.value||s.value),h=Qn(()=>"top"===o.value&&"bottom"===p.value||"bottom"===o.value&&"top"!==p.value?"bottom":"top"),m=()=>{if(!d.value)return;let e=parseInt(window.getComputedStyle(u.value).borderTopWidth.replace("px","")),t=parseInt(window.getComputedStyle(u.value).borderBottomWidth.replace("px",""));d.value.setOptions(a=>({...a,modifiers:[...a.modifiers,{name:"offset",options:{offset:[0,-1*("top"===h.value?e:t)]}}]})),d.value.update()},g=e=>{for(;e&&e!==document.body;){if("fixed"===getComputedStyle(e).position)return!0;e=e.parentElement}return!1};return T(()=>{f.value&&(d.value=Xl(r.value,u.value,{strategy:g(r.value)?"fixed":void 0,placement:o.value,modifiers:[ts,is,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>{e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:e}){p.value=e.placement}}]}))}),D(()=>{f.value&&d.value&&(d.value.destroy(),d.value=null)}),{popper:d,isOpen:c,open:()=>{c.value||n.value||(c.value=!0,t.emit("open",i),f.value&&x(()=>{m()}))},close:()=>{c.value&&(c.value=!1,t.emit("close",i))},placement:h,updatePopper:m}}function us(e,t,a){const{searchable:n,disabled:l,clearOnBlur:s}=Q(e),o=a.input,i=a.open,r=a.close,u=a.clearSearch,c=a.isOpen,d=a.wrapper,p=a.tags,f=R(!1),h=R(!1),m=Qn(()=>n.value||l.value?-1:0),g=()=>{n.value&&o.value.blur(),d.value.blur()},w=(e=!0)=>{l.value||(f.value=!0,e&&i())},v=()=>{f.value=!1,setTimeout(()=>{f.value||(r(),s.value&&u())},1)};return{tabindex:m,isActive:f,mouseClicked:h,blur:g,focus:()=>{n.value&&!l.value&&o.value.focus()},activate:w,deactivate:v,handleFocusIn:e=>{e.target.closest("[data-tags]")&&"INPUT"!==e.target.nodeName||e.target.closest("[data-clear]")||w(h.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),g()},handleMousedown:e=>{h.value=!0,c.value&&(e.target.isEqualNode(d.value)||e.target.isEqualNode(p.value))?setTimeout(()=>{v()},0):c.value||!document.activeElement.isEqualNode(d.value)&&!document.activeElement.isEqualNode(o.value)||w(),setTimeout(()=>{h.value=!1},0)}}}function cs(e,t,a){const{mode:n,addTagOn:l,openDirection:s,searchable:o,showOptions:i,valueProp:r,groups:u,addOptionOn:c,createTag:d,createOption:p,reverse:f}=Q(e),h=w().proxy,m=a.iv,g=a.update,v=a.deselect,y=a.search,b=a.setPointer,A=a.selectPointer,k=a.backwardPointer,_=a.forwardPointer,x=a.multiselect,C=a.wrapper,S=a.tags,I=a.isOpen,D=a.open,M=a.blur,T=a.fo,L=Qn(()=>d.value||p.value||!1),O=Qn(()=>void 0!==l.value?l.value:void 0!==c.value?c.value:["enter"]),B=()=>{"tags"===n.value&&!i.value&&L.value&&o.value&&!u.value&&b(T.value[T.value.map(e=>e[r.value]).indexOf(y.value)])};return{handleKeydown:e=>{let a,l;switch(t.emit("keydown",e,h),-1!==["ArrowLeft","ArrowRight","Enter"].indexOf(e.key)&&"tags"===n.value&&(a=[...x.value.querySelectorAll("[data-tags] > *")].filter(e=>e!==S.value),l=a.findIndex(e=>e===document.activeElement)),e.key){case"Backspace":if("single"===n.value)return;if(o.value&&-1===[null,""].indexOf(y.value))return;if(0===m.value.length)return;let t=m.value.filter(e=>!e.disabled&&!1!==e.remove);t.length&&v(t[t.length-1]);break;case"Enter":if(e.preventDefault(),229===e.keyCode)return;if(-1!==l&&void 0!==l)return g([...m.value].filter((e,t)=>t!==l)),void(l===a.length-1&&(a.length-1?a[a.length-2].focus():o.value?S.value.querySelector("input").focus():C.value.focus()));if(-1===O.value.indexOf("enter")&&L.value)return;B(),A();break;case" ":if(!L.value&&!o.value)return e.preventDefault(),B(),void A();if(!L.value)return!1;if(-1===O.value.indexOf("space")&&L.value)return;e.preventDefault(),B(),A();break;case"Tab":case";":case",":if(-1===O.value.indexOf(e.key.toLowerCase())||!L.value)return;B(),A(),e.preventDefault();break;case"Escape":M();break;case"ArrowUp":if(e.preventDefault(),!i.value)return;I.value||D(),k();break;case"ArrowDown":if(e.preventDefault(),!i.value)return;I.value||D(),_();break;case"ArrowLeft":if(o.value&&S.value&&S.value.querySelector("input").selectionStart||e.shiftKey||"tags"!==n.value||!m.value||!m.value.length)return;e.preventDefault(),-1===l?a[a.length-1].focus():l>0&&a[l-1].focus();break;case"ArrowRight":if(-1===l||e.shiftKey||"tags"!==n.value||!m.value||!m.value.length)return;e.preventDefault(),a.length>l+1?a[l+1].focus():o.value?S.value.querySelector("input").focus():o.value||C.value.focus()}},handleKeyup:e=>{t.emit("keyup",e,h)},preparePointer:B}}function ds(e,t,a){const{classes:n,disabled:l,showOptions:o,breakTags:i}=Q(e),r=a.isOpen,u=a.isPointed,c=a.isSelected,d=a.isDisabled,p=a.isActive,f=a.canPointGroups,h=a.resolving,m=a.fo,g=a.placement,w=Qn(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...n.value})),v=Qn(()=>!!(r.value&&o.value&&(!h.value||h.value&&m.value.length)));return{classList:s(()=>{const e=w.value;return{container:[e.container].concat(l.value?e.containerDisabled:[]).concat(v.value&&"top"===g.value?e.containerOpenTop:[]).concat(v.value&&"top"!==g.value?e.containerOpen:[]).concat(p.value?e.containerActive:[]),wrapper:e.wrapper,spacer:e.spacer,singleLabel:e.singleLabel,singleLabelText:e.singleLabelText,multipleLabel:e.multipleLabel,search:e.search,tags:e.tags,tag:[e.tag].concat(l.value?e.tagDisabled:[]),tagWrapper:[e.tagWrapper,i.value?e.tagWrapperBreak:null],tagDisabled:e.tagDisabled,tagRemove:e.tagRemove,tagRemoveIcon:e.tagRemoveIcon,tagsSearchWrapper:e.tagsSearchWrapper,tagsSearch:e.tagsSearch,tagsSearchCopy:e.tagsSearchCopy,placeholder:e.placeholder,caret:[e.caret].concat(r.value?e.caretOpen:[]),clear:e.clear,clearIcon:e.clearIcon,spinner:e.spinner,inifinite:e.inifinite,inifiniteSpinner:e.inifiniteSpinner,dropdown:[e.dropdown].concat("top"===g.value?e.dropdownTop:[]).concat(r.value&&o.value&&v.value?[]:e.dropdownHidden),options:[e.options].concat("top"===g.value?e.optionsTop:[]),group:e.group,groupLabel:t=>{let a=[e.groupLabel];return u(t)?a.push(c(t)?e.groupLabelSelectedPointed:e.groupLabelPointed):c(t)&&f.value?a.push(d(t)?e.groupLabelSelectedDisabled:e.groupLabelSelected):d(t)&&a.push(e.groupLabelDisabled),f.value&&a.push(e.groupLabelPointable),a},groupOptions:e.groupOptions,option:(t,a)=>{let n=[e.option];return u(t)?n.push(c(t)?e.optionSelectedPointed:e.optionPointed):c(t)?n.push(d(t)?e.optionSelectedDisabled:e.optionSelected):(d(t)||a&&d(a))&&n.push(e.optionDisabled),n},noOptions:e.noOptions,noResults:e.noResults,assist:e.assist,fakeInput:e.fakeInput}}),showDropdown:v}}function ps(e,t,a){const{limit:n,infinite:l}=Q(e),s=a.isOpen,o=a.offset,i=a.search,r=a.pfo,u=a.eo,c=R(null),d=U(null),p=Qn(()=>o.value<r.value.length),f=e=>{const{isIntersecting:t,target:a}=e[0];if(t){const e=a.offsetParent,t=e.scrollTop;o.value+=-1==n.value?10:n.value,x(()=>{e.scrollTop=t})}},h=()=>{s.value&&o.value<r.value.length?c.value.observe(d.value):!s.value&&c.value&&c.value.disconnect()};return oe(s,()=>{l.value&&h()}),oe(i,()=>{l.value&&(o.value=n.value,h())},{flush:"post"}),oe(u,()=>{l.value&&h()},{immediate:!1,flush:"post"}),T(()=>{window&&window.IntersectionObserver&&(c.value=new IntersectionObserver(f))}),{hasMore:p,infiniteLoader:d}}function fs(e,t,a){const{placeholder:n,id:l,valueProp:o,label:i,mode:r,groupLabel:u,aria:c,searchable:d}=Q(e),p=a.pointer,f=a.iv,h=a.hasSelected,m=a.multipleLabelText,g=R(null),w=Qn(()=>(l.value?l.value+"-":"")+"assist"),v=Qn(()=>(l.value?l.value+"-":"")+"multiselect-options"),y=Qn(()=>{if(p.value){let e=l.value?`${l.value}-`:"";return e+=(p.value.group?"multiselect-group":"multiselect-option")+"-",e+=p.value.group?p.value.index:p.value[o.value],e}}),b=Qn(()=>n.value),A=Qn(()=>"single"!==r.value),k=s(()=>"single"===r.value&&h.value?f.value[i.value]:"multiple"===r.value&&h.value?m.value:"tags"===r.value&&h.value?f.value.map(e=>e[i.value]).join(", "):""),_=s(()=>{let e={...c.value};return d.value&&(e["aria-labelledby"]=e["aria-labelledby"]?`${w.value} ${e["aria-labelledby"]}`:w.value,k.value&&e["aria-label"]&&(e["aria-label"]=`${k.value}, ${e["aria-label"]}`)),e});return T(()=>{if(l.value&&document&&document.querySelector){let e=document.querySelector(`[for="${l.value}"]`);g.value=e?e.innerText:null}}),{arias:_,ariaLabel:k,ariaAssist:w,ariaControls:v,ariaPlaceholder:b,ariaMultiselectable:A,ariaActiveDescendant:y,ariaOptionId:e=>`${l.value?l.value+"-":""}multiselect-option-${e[o.value]}`,ariaOptionLabel:e=>`${e}`,ariaGroupId:e=>`${l.value?l.value+"-":""}multiselect-group-${e.index}`,ariaGroupLabel:e=>`${e}`,ariaTagLabel:e=>`${e} ❎`}}function hs(e,t,a){const{locale:n,fallbackLocale:l}=Q(e);return{localize:e=>e&&"object"==typeof e?e&&e[n.value]?e[n.value]:e&&n.value&&e[n.value.toUpperCase()]?e[n.value.toUpperCase()]:e&&e[l.value]?e[l.value]:e&&l.value&&e[l.value.toUpperCase()]?e[l.value.toUpperCase()]:e&&Object.keys(e)[0]?e[Object.keys(e)[0]]:"":e}}function ms(e,t,a){return{multiselect:U(null),wrapper:U(null),tags:U(null),input:U(null),dropdown:U(null)}}var gs={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup:(e,t)=>function(e,t,a,n={}){return[ms,hs,qn,Jn,rs,Zn,Gn,us,el,ps,tl,cs,ds,fs].forEach(a=>{n={...n,...a(e,t,n)}}),n}(e,t),beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||2===this.vueVersionMs)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}},ws=["id","dir"],vs=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],ys=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],bs=["onKeyup","aria-label"],As=["onClick"],ks=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],_s=["innerHTML"],xs=["id"],Cs=["id"],Ss=["id","aria-label","aria-selected"],Is=["data-pointed","onMouseenter","onClick"],Ds=["innerHTML"],Ms=["aria-label"],Ts=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Ls=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Os=["innerHTML"],Bs=["innerHTML"],$s=["value"],Ps=["name","value"],Es=["name","value"],Rs=["id"];gs.render=function(e,n,l,s,o,d){return B(),u("div",{ref:"multiselect",class:C(e.classList.container),id:l.searchable?void 0:l.id,dir:l.rtl?"rtl":void 0,onFocusin:n[12]||(n[12]=(...t)=>e.handleFocusIn&&e.handleFocusIn(...t)),onFocusout:n[13]||(n[13]=(...t)=>e.handleFocusOut&&e.handleFocusOut(...t)),onKeyup:n[14]||(n[14]=(...t)=>e.handleKeyup&&e.handleKeyup(...t)),onKeydown:n[15]||(n[15]=(...t)=>e.handleKeydown&&e.handleKeydown(...t))},[c("div",_({class:e.classList.wrapper,onMousedown:n[9]||(n[9]=(...t)=>e.handleMousedown&&e.handleMousedown(...t)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":l.searchable?void 0:e.ariaControls,"aria-placeholder":l.searchable?void 0:e.ariaPlaceholder,"aria-expanded":l.searchable?void 0:e.isOpen,"aria-activedescendant":l.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":l.searchable?void 0:e.ariaMultiselectable,role:l.searchable?void 0:"combobox"},l.searchable?{}:e.arias),[r(" Search "),"tags"!==l.mode&&l.searchable&&!l.disabled?(B(),u("input",_({key:0,type:l.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:l.autocomplete,id:l.searchable?l.id:void 0,onInput:n[0]||(n[0]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:n[1]||(n[1]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:n[2]||(n[2]=ce((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...l.attrs,...e.arias}),null,16,ys)):r("v-if",!0),r(" Tags (with search) "),"tags"==l.mode?(B(),u("div",{key:1,class:C(e.classList.tags),"data-tags":""},[(B(!0),u(t,null,F(e.iv,(t,a,n)=>N(e.$slots,"tag",{option:t,handleTagRemove:e.handleTagRemove,disabled:l.disabled},()=>[(B(),u("span",{class:C([e.classList.tag,t.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:ue(a=>e.handleTagRemove(t,a),["enter"]),key:n,"aria-label":e.ariaTagLabel(e.localize(t[l.label]))},[c("span",{class:C(e.classList.tagWrapper)},Y(e.localize(t[l.label])),3),l.disabled||t.disabled?r("v-if",!0):(B(),u("span",{key:0,class:C(e.classList.tagRemove),onClick:ce(a=>e.handleTagRemove(t,a),["stop"])},[c("span",{class:C(e.classList.tagRemoveIcon)},null,2)],10,As))],42,bs))])),256)),c("div",{class:C(e.classList.tagsSearchWrapper),ref:"tags"},[r(" Used for measuring search width "),c("span",{class:C(e.classList.tagsSearchCopy)},Y(e.search),3),r(" Actual search input "),l.searchable&&!l.disabled?(B(),u("input",_({key:0,type:l.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:l.searchable?l.id:void 0,autocomplete:l.autocomplete,onInput:n[3]||(n[3]=(...t)=>e.handleSearchInput&&e.handleSearchInput(...t)),onKeypress:n[4]||(n[4]=(...t)=>e.handleKeypress&&e.handleKeypress(...t)),onPaste:n[5]||(n[5]=ce((...t)=>e.handlePaste&&e.handlePaste(...t),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...l.attrs,...e.arias}),null,16,ks)):r("v-if",!0)],2)],2)):r("v-if",!0),r(" Single label "),"single"==l.mode&&e.hasSelected&&!e.search&&e.iv?N(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[c("div",{class:C(e.classList.singleLabel)},[c("span",{class:C(e.classList.singleLabelText)},Y(e.localize(e.iv[l.label])),3)],2)]):r("v-if",!0),r(" Multiple label "),"multiple"==l.mode&&e.hasSelected&&!e.search?N(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[c("div",{class:C(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,_s)]):r("v-if",!0),r(" Placeholder "),!l.placeholder||e.hasSelected||e.search?r("v-if",!0):N(e.$slots,"placeholder",{key:4},()=>[c("div",{class:C(e.classList.placeholder),"aria-hidden":"true"},Y(l.placeholder),3)]),r(" Spinner "),l.loading||e.resolving?N(e.$slots,"spinner",{key:5},()=>[c("span",{class:C(e.classList.spinner),"aria-hidden":"true"},null,2)]):r("v-if",!0),r(" Clear "),e.hasSelected&&!l.disabled&&l.canClear&&!e.busy?N(e.$slots,"clear",{key:6,clear:e.clear},()=>[c("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:C(e.classList.clear),onClick:n[6]||(n[6]=(...t)=>e.clear&&e.clear(...t)),onKeyup:n[7]||(n[7]=ue((...t)=>e.clear&&e.clear(...t),["enter"]))},[c("span",{class:C(e.classList.clearIcon)},null,2)],34)]):r("v-if",!0),r(" Caret "),l.caret&&l.showOptions?N(e.$slots,"caret",{key:7,handleCaretClick:e.handleCaretClick,isOpen:e.isOpen},()=>[c("span",{class:C(e.classList.caret),onClick:n[8]||(n[8]=(...t)=>e.handleCaretClick&&e.handleCaretClick(...t)),"aria-hidden":"true"},null,2)]):r("v-if",!0)],16,vs),r(" Options "),(B(),i(a,{to:l.appendTo||"body",disabled:!l.appendToBody&&!l.appendTo},[c("div",{id:l.id?`${l.id}-dropdown`:void 0,class:C(e.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:n[10]||(n[10]=(...t)=>e.handleFocusIn&&e.handleFocusIn(...t)),onFocusout:n[11]||(n[11]=(...t)=>e.handleFocusOut&&e.handleFocusOut(...t))},[N(e.$slots,"beforelist",{options:e.fo}),c("ul",{class:C(e.classList.options),id:e.ariaControls,role:"listbox"},[l.groups?(B(!0),u(t,{key:0},F(e.fg,(a,n,s)=>(B(),u("li",{class:C(e.classList.group),key:s,id:e.ariaGroupId(a),"aria-label":e.ariaGroupLabel(e.localize(a[l.groupLabel])),"aria-selected":e.isSelected(a),role:"option"},[a.__CREATE__?r("v-if",!0):(B(),u("div",{key:0,class:C(e.classList.groupLabel(a)),"data-pointed":e.isPointed(a),onMouseenter:t=>e.setPointer(a,n),onClick:t=>e.handleGroupClick(a)},[N(e.$slots,"grouplabel",{group:a,isSelected:e.isSelected,isPointed:e.isPointed},()=>[c("span",{innerHTML:e.localize(a[l.groupLabel])},null,8,Ds)])],42,Is)),c("ul",{class:C(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(a[l.groupLabel])),role:"group"},[(B(!0),u(t,null,F(a.__VISIBLE__,(t,n,s)=>(B(),u("li",{class:C(e.classList.option(t,a)),"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,key:s,onMouseenter:a=>e.setPointer(t),onClick:a=>e.handleOptionClick(t),id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[l.label])),role:"option"},[N(e.$slots,"option",{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[c("span",null,Y(e.localize(t[l.label])),1)])],42,Ts))),128))],10,Ms)],10,Ss))),128)):(B(!0),u(t,{key:1},F(e.fo,(t,a,n)=>(B(),u("li",{class:C(e.classList.option(t)),"data-pointed":e.isPointed(t),"data-selected":e.isSelected(t)||void 0,key:n,onMouseenter:a=>e.setPointer(t),onClick:a=>e.handleOptionClick(t),id:e.ariaOptionId(t),"aria-selected":e.isSelected(t),"aria-label":e.ariaOptionLabel(e.localize(t[l.label])),role:"option"},[N(e.$slots,"option",{option:t,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[c("span",null,Y(e.localize(t[l.label])),1)])],42,Ls))),128))],10,Cs),e.noOptions?N(e.$slots,"nooptions",{key:0},()=>[c("div",{class:C(e.classList.noOptions),innerHTML:e.localize(l.noOptionsText)},null,10,Os)]):r("v-if",!0),e.noResults?N(e.$slots,"noresults",{key:1},()=>[c("div",{class:C(e.classList.noResults),innerHTML:e.localize(l.noResultsText)},null,10,Bs)]):r("v-if",!0),l.infinite&&e.hasMore?(B(),u("div",{key:2,class:C(e.classList.inifinite),ref:"infiniteLoader"},[N(e.$slots,"infinite",{},()=>[c("span",{class:C(e.classList.inifiniteSpinner)},null,2)])],2)):r("v-if",!0),N(e.$slots,"afterlist",{options:e.fo})],42,xs)],8,["to","disabled"])),r(" Hacky input element to show HTML5 required warning "),l.required?(B(),u("input",{key:0,class:C(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,$s)):r("v-if",!0),r(" Native input support "),l.nativeSupport?(B(),u(t,{key:1},["single"==l.mode?(B(),u("input",{key:0,type:"hidden",name:l.name,value:void 0!==e.plainValue?e.plainValue:""},null,8,Ps)):(B(!0),u(t,{key:1},F(e.plainValue,(e,t)=>(B(),u("input",{type:"hidden",name:`${l.name}[]`,value:e,key:t},null,8,Es))),128))],64)):r("v-if",!0),r(" Screen reader assistive text "),l.searchable&&e.hasSelected?(B(),u("div",{key:2,class:C(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},Y(e.ariaLabel),11,Rs)):r("v-if",!0),r(" Create height for empty input "),c("div",{class:C(e.classList.spacer)},null,2)],42,ws)},gs.__file="src/Multiselect.vue";var Fs={key:0,class:"wf-visible-xs-inline"},Ns={key:1,class:"wf-visible-sm-inline"},Ws={key:2,class:"wf-visible-md-inline"},Hs={key:3,class:"wf-visible-lg-inline"},Vs={__name:"ResponsiveText",props:{textClass:{type:[String,null],default:null},text:{type:String,required:!0},xs:{type:[String,null],default:null},sm:{type:[String,null],default:null},md:{type:[String,null],default:null},lg:{type:[String,null],default:null}},setup(e){const a=X(),{textClass:n,xs:l,sm:o,md:i,lg:d}=Q(e),p=s(()=>{let e=[];return n.value&&e.push(n.value),(null!==l.value||a.xs)&&e.push("wf-hidden-xs"),(null!==o.value||a.sm)&&e.push("wf-hidden-sm"),(null!==i.value||a.md)&&e.push("wf-hidden-md"),(null!==d.value||a.lg)&&e.push("wf-hidden-lg"),e});return(n,s)=>(B(),u(t,null,[c("span",{class:C(p.value)},Y(e.text),3),null!==J(l)||J(a).xs?(B(),u("span",Fs,[N(n.$slots,"xs",{},()=>[f(Y(J(l)),1)])])):r("",!0),null!==J(o)||J(a).sm?(B(),u("span",Ns,[N(n.$slots,"sm",{},()=>[f(Y(J(o)),1)])])):r("",!0),null!==J(i)||J(a).md?(B(),u("span",Ws,[N(n.$slots,"md",{},()=>[f(Y(J(i)),1)])])):r("",!0),null!==J(d)||J(a).lg?(B(),u("span",Hs,[N(n.$slots,"lg",{},()=>[f(Y(J(d)),1)])])):r("",!0)],64))}},Us={class:"wf-nav wf-nav-pills wf-nav-pills-bordered wf-nav-pills-connected"},Ys={__name:"NavPills",props:{modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:a}){const n=a,o=e,r=X(),c=s(()=>(r.default?.()??[]).map(e=>{const t=e.props?.["data-value"]??null;return{key:t??e.key??void 0,node:l(e,{onClick:e=>((e,t)=>{t.preventDefault(),t.stopPropagation(),n("update:modelValue",e)})(t,e)}),isActive:o.modelValue===t}}));return(e,a)=>(B(),u("ul",Us,[(B(!0),u(t,null,F(c.value,e=>(B(),u("li",{key:e.key,class:C(["wf-nav-pills-item",{"wf-active":e.isActive}])},[(B(),i(H(e.node)))],2))),128))]))}},Ks=["src","alt"],js={__name:"CountryBlockMap",setup(e){const t=b("__"),a=b("wfconstants");return(e,n)=>(B(),u("img",{src:J(a).assets.images.country_blocking_map,alt:J(t)("Country Blocking"),class:"wf-country-block-map"},null,8,Ks))}};function Gs(){const e=b("wfconstants"),t=b("$dataStore"),a=window.wordfenceAdmin,{$ajax:n}=In(),{$addQueryArg:l}=Un(),s=e=>a.inet_pton(e),o=e=>{if(!e)return!1;if((e=e.replace(/\s+/g,"")).match(/^(?:\d{1,3}(?:\.|$)){4}/)){const t=e.split(".");if(4!==t.length)return!1;for(let e of t)if(parseInt(e)>255)return!1;return!!s(e)}if(e.match(/^((?:[\da-f]{1,4}(?::|)){0,8})(::)?((?:[\da-f]{1,4}(?::|)){0,8})$/i)){if("::"===e)return!0;const t=e.split(":").length-1,a=e.indexOf("::");if(a>-1){const n=(0===a||a===e.length-2?9:8)-t;if(0===n)return!1;let l="";for(let e=0;e<n;e++)l+=":0000";e=(e=e.replace("::",l+":")).replace(/(?:^:|:$)/,"",e)}const n=e.split(":");let l="";for(let e of n){if(e.length>4||0===e.length)return!1;e=("0000"+e).slice(-4);const t=parseInt(e.slice(0,2),16),a=parseInt(e.slice(-2),16);if(isNaN(t)||isNaN(a))return!1;l+=String.fromCharCode(t)+String.fromCharCode(a)}return 16===l.length}return!1};return{$inet_pton:s,$inet_ntop:e=>a.inet_ntop(e),$inet_aton:e=>a.inet_aton(e),$inet_ntoa:e=>a.inet_ntoa(e),$reverseIPs:e=>{if(e.length<1)return;let a={},l=[];for(let n=0;n<e.length;n++)t.ip.$reversed[e[n]]||a[e[n]]||(a[e[n]]=!0,l.push(e[n]));n("wordfence_reverseLookup",{ips:l.join(",")},e=>{if(e.ok)for(const a in e.ips)t.ip.$reversed[a]=e.ips[a]},!1,!1)},$makeIPTrafLink:a=>l(e.plugin.url.ip_traffic,{nonce:t.$wordfence.nonce["wp-ajax"],IP:a}),$isValidIP:o,$parseIPRange:e=>{if(!e)return!1;if((e=(e=e.replace(/\s+/g,"")).replace(/[\u2013-\u2015]/g,"-"))&&/^[^-]+-[^-]+$/.test(e)){let t=1,a=!1;const n=e.split("-"),l=s(n[0]),i=s(n[1]);if(!1===l||!o(n[0])||!1===i||!o(n[1]))return!1;const r=("\0\0\0\0\0\0\0\0\0\0ÿÿ"+l).slice(-16),u=("\0\0\0\0\0\0\0\0\0\0ÿÿ"+i).slice(-16);for(let e=0;e<r.length;e++){const n=r.charCodeAt(e),l=u.charCodeAt(e);if(e<11&&l-n>0){a=!0;break}if(e<11&&l-n<0)return!1;if(t+=l-n<<8*(15-e),t<1)return!1}return{start:l,end:i,count:t,countOverflow:a}}if(e&&/^[^/]+\/\d+$/.test(e)){let t=!1;const a=e.split("/"),n=s(a[0]),l=parseInt(a[1]);if(!1===n||!o(a[0]))return!1;if("\0\0\0\0\0\0\0\0\0\0ÿÿ"===("\0\0\0\0\0\0\0\0\0\0ÿÿ"+n).slice(-16).slice(12)){if(l<1||l>32)return!1}else if(l<1||l>128)return!1;let i=Math.pow(2,53)-1;return l>=53?t=!0:i=Math.pow(2,l),{ip:n,bits:l,count:i,countOverflow:t}}return!1}}}function Qs(){const e=b("wfconstants"),{$hasOwn:t}=cn(),a=e.license.current.type,n=e.license.has_conflict,l=e.license.is_deactivated,s=e.license.is_expired,o=e.license.current.type===e.license.types.premium||e.license.current.type===e.license.types.care||e.license.current.type===e.license.types.response,i=e.license.current.type===e.license.types.care||e.license.current.type===e.license.types.response,r=e.license.current.type!==e.license.types.care&&e.license.current.type!==e.license.types.response;return{$licenseType:a,$hasConflict:n,$isDeactivated:l,$isExpired:s,$isPaid:o,$isAtLeastCare:i,$isBelowCare:r,$licenseTypeLabel:n=>(n||(n=a),t(e.license.labels,n)?e.license.labels[n]:e.license.labels.free)}}var qs={__name:"SlideTransition",setup(e){const t=e=>{e.style.height="0",e.style.overflow="hidden"},a=e=>{e.style.transition="height 250ms ease",e.style.height=e.scrollHeight+"px"},l=e=>{e.style.height="auto",e.style.overflow="",e.style.transition=""},s=e=>{e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},o=e=>{e.offsetHeight,e.style.transition="height 250ms ease",e.style.height="0"},r=e=>{e.style.height="",e.style.overflow="",e.style.transition=""};return(e,u)=>(B(),i(n,{onBeforeEnter:t,onEnter:a,onAfterEnter:l,onBeforeLeave:s,onLeave:o,onAfterLeave:r},{default:ie(()=>[N(e.$slots,"default")]),_:3}))}},Zs={class:"wf-block-list wf-block-list-vertical"},Js={class:"wf-flex-vertical wf-padding-add-top wf-padding-add-bottom"},zs={id:"wf-create-block-type",class:"wf-option"},Xs={class:"wf-block-type"},eo={class:"wf-flex-horizontal"},to={href:"#","data-value":"ip-address"},ao={href:"#","data-value":"country"},no={href:"#","data-value":"custom-pattern"},lo={id:"wf-create-block"},so={key:0},oo={id:"wf-create-block-ip-address",class:"wf-option"},io={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},ro={class:"wf-option-text wf-padding-add-top-small"},uo=["placeholder"],co={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},po={class:"wf-option-text wf-padding-add-top-small"},fo=["placeholder"],ho={key:0},mo={id:"wf-create-block-country",class:"wf-option"},go={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},wo={class:"wf-padding-add-top-small wf-form-field"},vo={class:"wf-option-checkboxes"},yo={id:"wf-block-country-login"},bo={class:"wf-ion-ios-checkmark-empty"},Ao={id:"wf-country-block-login-form-label",class:"wf-option-title"},ko={id:"wf-block-country-site"},_o={class:"wf-ion-ios-checkmark-empty"},xo={id:"wf-country-block-rest-of-site-label",class:"wf-option-title"},Co={class:"wf-padding-add-top-small wf-form-field"},So=["href"],Io={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Do={class:"wf-option-text wf-padding-add-top-small"},Mo=["onClick"],To=["onKeydown"],Lo={class:"multiselect-tag-remove"},Oo={key:2,class:"multiselect-tag"},Bo={key:1},$o={colspan:"2"},Po={class:"wf-flex-vertical"},Eo={class:"wf-no-top"},Ro={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1countryBlockUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},Fo={key:0},No={id:"wf-create-block-custom-pattern",class:"wf-option"},Wo={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Ho={class:"wf-option-text wf-padding-add-top-small"},Vo=["placeholder"],Uo={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Yo={class:"wf-option-text wf-padding-add-top-small"},Ko=["placeholder"],jo={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Go={class:"wf-option-text wf-padding-add-top-small"},Qo=["placeholder"],qo={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Zo={class:"wf-option-text wf-padding-add-top-small"},Jo=["placeholder"],zo={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},Xo={class:"wf-option-text wf-padding-add-top-small"},ei=["placeholder"],ti={key:0},ai={class:"wf-right wf-padding-add-top wf-padding-add-bottom"},ni={__name:"CreateBlock",props:{existingCountryBlock:{type:[Object,null],default:null},sorting:{type:Object,default:()=>({})}},emits:["createBlock","blockCreated","cancelCreateBlock"],setup(e,{emit:a}){const n=a,l=b("__"),o=b("sprintf"),i=b("$mitt"),d=b("wfconstants"),{$ajax:p,$ajaxErrorMessage:m}=In(),{$isValidIP:g,$parseIPRange:w}=Gs(),{$isPaid:v}=Qs(),{$modal:y,$modalNoticeHTML:A,$drawer:k}=Hn(),{$parameterByName:_}=dn(),S=e;T(()=>{I.value&&(O.ipRangeToBlock=_("wfBlockRange")),i.on("editBlock",U)}),D(()=>{i.off("editBlock",U)});const I=s(()=>!!_("wfBlockRange")),M=R(I.value?"custom-pattern":"");oe(M,e=>{$.value=!1,L.value=!1,E.value=!1,O.duration=0,O.blockReason="",O.ipToBlock="",O.ipRangeToBlock="",O.hostnameToBlock="",O.uaToBlock="",O.referrerToBlock="",O.countryBlockLoginForm=!S.existingCountryBlock||S.existingCountryBlock.blockLogin,O.countryBlockRestOfSite=!S.existingCountryBlock||S.existingCountryBlock.blockSite,O.countriesToBlock.splice(0,O.countriesToBlock.length,...S.existingCountryBlock?S.existingCountryBlock.countries:[]),"country"===e&&S.existingCountryBlock&&(L.value=!0)});const L=R(!1),O=P({duration:0,blockReason:"",ipToBlock:"",countryBlockLoginForm:!0,countryBlockRestOfSite:!0,countriesToBlock:[],ipRangeToBlock:"",hostnameToBlock:"",uaToBlock:"",referrerToBlock:""}),$=R(!1),E=R(!1),F=s(()=>E.value?O.countriesToBlock.length:10),N=s(()=>{const e=/* @__PURE__ */new Map;return O.countriesToBlock.forEach((t,a)=>e.set(t,a)),e}),H=s(()=>Math.max(0,O.countriesToBlock.length-10)),V=()=>{E.value=!0},U=e=>{switch(M.value=e.block.editType??"",L.value=!0,e.block.editType){case"ip-address":case"custom-pattern":break;case"country":O.duration=e.block.editValues.expiration,O.blockReason=e.block.editValues.reason,O.countryBlockLoginForm=e.block.editValues.blockLogin,O.countryBlockRestOfSite=e.block.editValues.blockSite,O.countriesToBlock.splice(0,O.countriesToBlock.length,...e.block.editValues.countries)}},K=s(()=>{let e=O.duration>=0&&(!!O.blockReason||"country"===M.value);return"ip-address"===M.value?e=e&&!!O.ipToBlock&&g(O.ipToBlock):"country"===M.value?e=e&&(O.countryBlockLoginForm||O.countryBlockRestOfSite)&&O.countriesToBlock.length>0:"custom-pattern"===M.value&&(e=e&&(!!O.ipRangeToBlock&&w(O.ipRangeToBlock)||!!O.hostnameToBlock||!!O.uaToBlock||!!O.referrerToBlock)),e}),j=s(()=>"ip-address"===M.value?l("Block this IP Address"):"country"===M.value?L.value?l("Update Block"):l("Block the Selected Countries"):"custom-pattern"===M.value?l("Block Visitors Matching this Pattern"):l("Save")),G=()=>{M.value="",n("cancelCreateBlock")},Q=()=>{if(!K.value)return;let e=!1;if(O.countriesToBlock.includes("US")&&(e=!0),e&&O.countryBlockRestOfSite&&!$.value)return void y("country-block-us-modal",{onClosed:()=>{$.value=!0,x(Q)}});$.value=!1;let t={type:M.value,duration:O.duration,reason:O.blockReason};"ip-address"===M.value?t.ip=O.ipToBlock:"country"===M.value?(t.reason=l("Country Blocking"),t.blockLogin=O.countryBlockLoginForm,t.blockSite=O.countryBlockRestOfSite,t.countries=[...O.countriesToBlock]):"custom-pattern"===M.value&&(t.ipRange=O.ipRangeToBlock,t.hostname=O.hostnameToBlock,t.userAgent=O.uaToBlock,t.referrer=O.referrerToBlock),p("wordfence_createBlock",Object.assign({payload:JSON.stringify(t)},S.sorting),e=>{e.success&&(n("blockCreated",e),M.value="")},e=>{A(l("Error Saving Block"),m(e))})},q=()=>{k("country-list-drawer",{model:O.countriesToBlock,onUpdate:e=>O.countriesToBlock.splice(0,O.countriesToBlock.length,...e),onSave:Q})},Z=s(()=>v&&"country"===M.value||!!M.value&&"country"!==M.value);return(e,a)=>{const n=W("aria");return B(),u("ul",Zs,[c("li",Js,[c("table",zs,[c("tr",null,[c("td",Xs,[c("div",eo,[c("p",null,[c("strong",null,Y(J(l)("Block Type"))+": ",1)]),h(J(Ys),{modelValue:M.value,"onUpdate:modelValue":a[0]||(a[0]=e=>M.value=e)},{default:ie(()=>[re((B(),u("a",to,[h(J(Vs),{text:J(l)("IP Address"),xs:J(l)("IP")},null,8,["text","xs"])])),[[n,{role:"button"}]]),re((B(),u("a",ao,[f(Y(J(l)("Country")),1)])),[[n,{role:"button"}]]),re((B(),u("a",no,[h(J(Vs),{text:J(l)("Custom Pattern"),xs:J(l)("Pattern")},null,8,["text","xs"])])),[[n,{role:"button"}]])]),_:1},8,["modelValue"])])])])]),c("div",lo,[h(J(qs),null,{default:ie(()=>["ip-address"===M.value?(B(),u("div",so,[c("table",oo,[c("tr",null,[c("th",io,[h(J(Vs),{text:J(l)("IP Address to Block"),xs:J(l)("IP")},null,8,["text","xs"])]),c("td",ro,[re(c("input",{id:"wf-block-ip",type:"text",placeholder:J(l)("Enter an IP address"),"onUpdate:modelValue":a[1]||(a[1]=e=>O.ipToBlock=e)},null,8,uo),[[le,O.ipToBlock]])])]),c("tr",null,[c("th",co,[h(J(Vs),{text:J(l)("Block Reason"),xs:J(l)("Reason")},null,8,["text","xs"]),a[13]||(a[13]=c("span",{class:"wf-red-dark"},"*",-1))]),c("td",po,[re(c("input",{id:"wf-block-reason",type:"text",placeholder:J(l)("Enter a reason"),maxlength:"50","onUpdate:modelValue":a[2]||(a[2]=e=>O.blockReason=e)},null,8,fo),[[le,O.blockReason]])])])])])):r("",!0)]),_:1}),h(J(qs),null,{default:ie(()=>["country"===M.value?(B(),u("div",ho,[c("table",mo,[J(v)?(B(),u(t,{key:0},[c("tr",null,[c("th",go,[h(J(Vs),{text:J(l)("What to Block"),xs:J(l)("Block")},null,8,["text","xs"])]),c("td",wo,[c("div",vo,[c("ul",yo,[re((B(),u("li",{class:C(["wf-option-checkbox",{"wf-checked":O.countryBlockLoginForm}]),tabindex:"0",onClick:a[3]||(a[3]=ce(e=>O.countryBlockLoginForm=!O.countryBlockLoginForm,["stop","prevent"])),onKeydown:a[4]||(a[4]=ue(ce(e=>O.countryBlockLoginForm=!O.countryBlockLoginForm,["stop","prevent"]),["space"]))},[re(c("i",bo,null,512),[[n,{hidden:!0}]])],34)),[[n,{role:"checkbox",checked:O.countryBlockLoginForm,labelledby:"wf-country-block-login-form-label"}]]),c("li",Ao,Y(J(l)("Login Form")),1)]),c("ul",ko,[re((B(),u("li",{class:C(["wf-option-checkbox",{"wf-checked":O.countryBlockRestOfSite}]),tabindex:"0",onClick:a[5]||(a[5]=ce(e=>O.countryBlockRestOfSite=!O.countryBlockRestOfSite,["stop","prevent"])),onKeydown:a[6]||(a[6]=ue(ce(e=>O.countryBlockRestOfSite=!O.countryBlockRestOfSite,["stop","prevent"]),["space"]))},[re(c("i",_o,null,512),[[n,{hidden:!0}]])],34)),[[n,{role:"checkbox",checked:O.countryBlockRestOfSite,labelledby:"wf-country-block-rest-of-site-label"}]]),c("li",xo,[h(J(Vs),{text:J(l)("Block access to the rest of the site"),xs:J(l)("Rest of site")},null,8,["text","xs"])])])])])]),c("tr",null,[a[14]||(a[14]=c("th",{class:"wf-right wf-padding-add-right wf-padding-add-top-small"},null,-1)),c("td",Co,[c("em",null,[f(Y(J(l)("If you use country blocking to block countries from accessing the entire site, it is important to review the allowed services setting to ensure that search engines and other desired services may continue to see the site regardless of a crawler's location. Additionally, ad services like Google Ads may penalize listings when a country is blocked from the entire site."))+" ",1),c("a",{href:J(d).support.url.firewall_blocking_full_site,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(l)("Learn More")),1),h(J(Kn))],8,So)])])]),c("tr",null,[c("th",Io,[h(J(Vs),{text:J(l)("Countries to Block"),xs:J(l)("Countries")},null,8,["text","xs"]),a[15]||(a[15]=c("br",null,null,-1)),re((B(),u("a",{href:"#",id:"wf-block-country-countries-popup",onClick:ce(q,["stop","prevent"])},[h(J(Vs),{text:J(l)("Pick from List"),xs:J(l)("Pick")},null,8,["text","xs"])])),[[n,{role:"button"}]])]),c("td",Do,[h(J(gs),{modelValue:O.countriesToBlock,"onUpdate:modelValue":a[7]||(a[7]=e=>O.countriesToBlock=e),mode:"tags","close-on-select":!1,searchable:!0,options:Object.entries(J(d).countries).map(([e,t])=>({value:e,label:t})),placeholder:J(l)("Hit enter to add")},{tag:ie(({option:e,handleTagRemove:t,disabled:s})=>[N.value.get(e.value)<F.value?(B(),u("span",{key:0,class:C(["multiselect-tag",{"is-disabled":s}])},[f(Y(e.label)+" ",1),s?r("",!0):(B(),u("span",{key:0,class:"multiselect-tag-remove",onClick:a=>t(e,a)},[...a[16]||(a[16]=[c("span",{class:"multiselect-tag-remove-icon"},null,-1)])],8,Mo))],2)):E.value||10!==N.value.get(e.value)?re((B(),u("span",Oo,null,512)),[[se,!1]]):re((B(),u("span",{key:1,class:"multiselect-tag multiselect-tag--more",tabindex:"0",onClick:ce(V,["stop","prevent"]),onKeydown:[ue(ce(V,["stop","prevent"]),["enter"]),ue(ce(V,["stop","prevent"]),["space"])]},[f(Y(J(o)(J(l)("+%d more"),H.value))+" ",1),re((B(),u("span",Lo,[...a[17]||(a[17]=[c("span",{class:"wf-ion-ios-arrow-right multiselect-tag-more-icon"},null,-1)])])),[[n,{hidden:!0}]])],40,To)),[[n,{role:"button"}]])]),_:1},8,["modelValue","options","placeholder"])])]),a[18]||(a[18]=c("tr",null,[c("th",{class:"wf-right wf-padding-add-right wf-padding-add-top-small"}),c("td",{class:"wf-option-text wf-padding-add-top-small"},[c("div",{id:"wf-block-country-countries-tags"})])],-1))],64)):(B(),u("tr",Bo,[c("td",$o,[c("ul",Po,[c("li",null,[c("h3",null,Y(J(l)("Put Geographic Protection In Place With Country Blocking")),1)]),c("li",null,[c("p",Eo,Y(J(l)("Wordfence country blocking is designed to stop an attack, prevent content theft, or end malicious activity that originates from a geographic region in less than 1/300,000th of a second. Blocking countries who are regularly creating failed logins, a large number of page not found errors, and are clearly engaged in malicious activity is an effective way to protect your site during an attack.")),1)]),c("li",null,[h(J(js))]),c("li",null,[c("a",Ro,[f(Y(J(l)("Upgrade to Premium")),1),h(J(Kn))])])])])]))])])):r("",!0)]),_:1}),h(J(qs),null,{default:ie(()=>["custom-pattern"===M.value?(B(),u("div",Fo,[c("table",No,[c("tr",null,[c("th",Wo,[h(J(Vs),{text:J(l)("IP Address Range"),xs:J(l)("IP Range")},null,8,["text","xs"])]),c("td",Ho,[re(c("input",{id:"wf-block-ip-range",type:"text",placeholder:J(l)("e.g., 192.168.200.200 - 192.168.200.220 or 192.168.200.0/24"),"onUpdate:modelValue":a[8]||(a[8]=e=>O.ipRangeToBlock=e)},null,8,Vo),[[le,O.ipRangeToBlock]])])]),c("tr",null,[c("th",Uo,Y(J(l)("Hostname")),1),c("td",Yo,[re(c("input",{id:"wf-block-hostname",type:"text",placeholder:J(l)("e.g., *.amazonaws.com or *.linode.com"),"onUpdate:modelValue":a[9]||(a[9]=e=>O.hostnameToBlock=e)},null,8,Ko),[[le,O.hostnameToBlock]])])]),c("tr",null,[c("th",jo,[h(J(Vs),{text:J(l)("Browser User Agent"),xs:J(l)("User Agent")},null,8,["text","xs"])]),c("td",Go,[re(c("input",{id:"wf-block-user-agent",type:"text",placeholder:J(l)("e.g., *badRobot*, *MSIE*, or *browserSuffix"),"onUpdate:modelValue":a[10]||(a[10]=e=>O.uaToBlock=e)},null,8,Qo),[[le,O.uaToBlock]])])]),c("tr",null,[c("th",qo,Y(J(l)("Referrer")),1),c("td",Zo,[re(c("input",{id:"wf-block-referrer",type:"text",placeholder:J(l)("e.g., *badwebsite.example.com*"),"onUpdate:modelValue":a[11]||(a[11]=e=>O.referrerToBlock=e)},null,8,Jo),[[le,O.referrerToBlock]])])]),c("tr",null,[c("th",zo,[h(J(Vs),{text:J(l)("Block Reason"),xs:J(l)("Reason")},null,8,["text","xs"]),a[19]||(a[19]=c("span",{class:"wf-red-dark"},"*",-1))]),c("td",Xo,[re(c("input",{id:"wf-block-reason",type:"text",placeholder:J(l)("Enter a reason"),maxlength:"50","onUpdate:modelValue":a[12]||(a[12]=e=>O.blockReason=e)},null,8,ei),[[le,O.blockReason]])])])])])):r("",!0)]),_:1})])]),h(J(qs),null,{default:ie(()=>[Z.value?(B(),u("li",ti,[c("div",ai,[re((B(),u("a",{id:"wf-block-add-cancel",class:"wf-btn wf-btn-default wf-btn-callout-subtle",href:"#",onClick:ce(G,["stop","prevent"])},[f(Y(J(l)("Cancel")),1)])),[[n,{role:"button"}]]),a[20]||(a[20]=f(" ",-1)),c("a",{id:"wf-block-add-save",class:C(["wf-btn wf-btn-primary wf-btn-callout-subtle",{"wf-disabled":!K.value}]),href:"#",onClick:ce(Q,["stop","prevent"])},[h(J(Vs),{text:j.value,xs:J(l)("Block")},null,8,["text","xs"])],2)])])):r("",!0)]),_:1})])}}};function li(e,t,a=()=>{},n={},l="change"){const o=b("$mitt"),{$isPaid:i}=Qs(),{$hasOwn:r,$structuredClone:u}=cn(),c=R("object"==typeof J(t)?u(J(t)):J(t));oe(t,e=>{d.value=!0,c.value="object"==typeof J(e)?u(J(e)):J(e),x(()=>{d.value=!1})},{deep:!0}),oe(c,(t,n)=>{d.value||a(l,{old:n,new:t,name:e})},{deep:!0});const d=R(!1);T(()=>{o.on("resetOptionControls",p),o.on("pendingOptionChanged",f)}),D(()=>{o.off("resetOptionControls",p),o.off("pendingOptionChanged",f)});const p=()=>{d.value=!0,c.value="object"==typeof J(t)?u(J(t)):J(t),x(()=>{d.value=!1})},f=t=>{t.name===J(e)&&(d.value=!0,c.value=J(t.value),x(()=>{d.value=!1}))},h=s(()=>"wf-option-"+J(e).replace(/[^a-z0-9]/gi,"-"));return{$elementID:h,$elementIDLabel:s(()=>`${h.value}-label`),$elementClasses:s(()=>{let e=[];return e.push("wf-option"),r(n,"always")&&e.push(...J(n.always)),r(n,"noVerticalSpacing")&&J(n.noVerticalSpacing)&&e.push("wf-option-no-spacing"),!i&&r(n,"premium")&&J(n.premium)&&e.push("wf-option-premium"),r(n,"disabled")&&J(n.disabled)&&e.push("wf-disabled"),r(n,"child")&&J(n.child)&&e.push("wf-child-option"),e}),$pendingValue:c}}function si(e,t=!1){const a=b("$"),n=b("$mitt"),l=b("stateKey",t),s=t=>{for(const s in e){const o=J(e[s]);t!==J(s)||(J(l)?n.emit("expandDisclosureBlock",{key:J(l),scrollTo:"#"+o}):a("#"+o).length&&a("html, body").animate({scrollTop:a("#"+o).offset().top-100},1e3))}};T(()=>{n.on("scrollToOption",s)}),D(()=>{n.off("scrollToOption",s)})}var oi,ii=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],ri=["onKeydown"],ui={key:0,class:"wf-option-title"},ci={class:"wf-flex-vertical wf-flex-align-left"},di=["id"],pi={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},fi=["href"],hi={class:"wf-fa wf-fa-question-circle-o"},mi={key:1,class:"wf-option-title"},gi=["id"],wi={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},vi=["href"],yi={class:"wf-fa wf-fa-question-circle-o"},bi={__name:"OptionToggledBooleanSwitch",props:{optionName:{type:String,required:!0},value:{default:null},enabledValue:{default:null},disabledValue:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const{$isPaid:a}=Qs(),{$maybeToggleControl:n}=dn(),l=t,s=X(),o=b("__"),i=e,{optionName:d,value:p,enabledValue:m,disabledValue:g,premium:w,disabled:v,noVerticalSpacing:y}=Q(i),{$elementID:A,$elementIDLabel:k,$elementClasses:_,$pendingValue:x}=li(d,p,l,{always:["wf-option-toggled-boolean-switch"],premium:w,disabled:v,noVerticalSpacing:y});si({[i.optionName]:A});const S=()=>{!a&&w.value||v.value||(x.value===m.value?x.value=g.value:x.value=m.value)};return(t,a)=>{const l=W("aria");return B(),u("ul",{id:J(A),class:C(J(_)),"data-option":J(d),"data-enabled-value":JSON.stringify(J(m)),"data-disabled-value":JSON.stringify(J(g)),"data-original-value":J(p)==J(m)?JSON.stringify(J(m)):JSON.stringify(J(g))},[re((B(),u("li",{class:C({"wf-boolean-switch":!0,"wf-active":J(x)==J(m)}),tabindex:"0",onClick:ce(S,["stop","prevent"]),onKeydown:ue(ce(S,["stop","prevent"]),["space"])},[...a[3]||(a[3]=[c("a",{href:"#",class:"wf-boolean-switch-handle"},null,-1)])],42,ri)),[[l,{role:"checkbox",checked:J(x)==J(m),labelledby:J(k)}]]),e.subtitle||J(s).subtitle?(B(),u("li",ui,[c("ul",ci,[c("li",null,[c("span",{id:J(k),class:"wf-option-extended-toggle",onClick:a[0]||(a[0]=e=>J(n)(e,S))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,di),J(w)?(B(),u("a",pi,Y(J(o)("Premium Feature")),1)):r("",!0),a[4]||(a[4]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",hi,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,fi)):r("",!0)]),c("li",{class:"wf-option-subtitle wf-option-extended-toggle",onClick:a[1]||(a[1]=e=>J(n)(e,S))},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",mi,[c("span",{id:J(k),class:"wf-option-extended-toggle",onClick:a[2]||(a[2]=e=>J(n)(e,S))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,gi),J(w)?(B(),u("a",wi,Y(J(o)("Premium Feature")),1)):r("",!0),a[5]||(a[5]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",yi,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,vi)):r("",!0)]))],10,ii)}}},Ai=["data-column"],ki={class:"wf-sorted-ascending wf-ion-android-arrow-dropup"},_i={class:"wf-sorted-descending wf-ion-android-arrow-dropdown"},xi={__name:"SortableColumn",props:{column:{type:String},direction:{type:Number,default:0}},emits:["changeSort"],setup(e,{emit:t}){const a=t;return(t,n)=>{const l=W("aria");return B(),u("th",{"data-column":e.column,class:C(["wf-sortable",{"wf-unsorted":0===e.direction,"wf-sorted-ascending":e.direction<0,"wf-sorted-descending":e.direction>0}]),onClick:n[0]||(n[0]=ce(t=>a("changeSort",{column:e.column,direction:e.direction<=0?1:-1}),["stop","prevent"]))},[N(t.$slots,"default"),n[1]||(n[1]=f(" ",-1)),re(c("i",ki,null,512),[[l,{hidden:!0}]]),re(c("i",_i,null,512),[[l,{hidden:!0}]])],10,Ai)}}},Ci={__name:"IndeterminateProgress",props:{size:{type:Number,default:100,required:!1}},setup:e=>(t,a)=>(B(),u("svg",{class:"wf-indeterminate-progress",viewBox:"0 0 100 100",style:I({width:e.size+"px",height:e.size+"px"})},[...a[0]||(a[0]=[p('<path d="M23.057,68.244c-0.094,-0.003 -0.188,-0.004 -0.282,-0.004c-4.751,0 -8.66,3.909 -8.66,8.659c0,4.751 3.909,8.66 8.66,8.66c0.094,0 0.188,-0.002 0.282,-0.005c2.294,0.029 4.503,-0.885 6.105,-2.527c1.634,-1.621 2.554,-3.83 2.554,-6.132c0,-2.302 -0.92,-4.511 -2.554,-6.133c-1.604,-1.639 -3.812,-2.549 -6.105,-2.518l0,0Z" style="fill-rule:nonzero;"></path><path d="M21.139,50.012c0.041,-2.559 -0.986,-5.023 -2.831,-6.797c-1.773,-1.84 -4.233,-2.862 -6.788,-2.822c-2.558,-0.043 -5.021,0.98 -6.796,2.822c-1.807,1.798 -2.824,4.244 -2.824,6.792c0,2.549 1.017,4.995 2.824,6.793c1.775,1.842 4.238,2.865 6.796,2.822c2.555,0.04 5.015,-0.983 6.788,-2.822c1.843,-1.772 2.869,-4.232 2.831,-6.788l0,0Z" style="fill-rule:nonzero;"></path><path d="M76.915,27.888c2.643,-0.005 4.814,-2.181 4.814,-4.823c0,-0.003 0,-0.007 0,-0.01c0,-0.006 0,-0.013 0,-0.02c0,-2.641 -2.173,-4.814 -4.814,-4.814c-2.641,0 -4.814,2.173 -4.814,4.814c0,1.281 0.512,2.511 1.42,3.414c0.887,0.92 2.117,1.431 3.394,1.411l0,0.028Z" style="fill-rule:nonzero;"></path><path d="M23.057,12.505c-2.816,-0.047 -5.529,1.076 -7.488,3.099c-2.015,1.949 -3.134,4.649 -3.09,7.451c-0.049,2.815 1.07,5.528 3.09,7.489c1.96,2.022 4.673,3.144 7.488,3.099c0.003,0 0.006,0 0.01,0c5.797,0 10.568,-4.771 10.568,-10.569c0,-0.006 0,-0.012 0,-0.019c0.052,-2.812 -1.068,-5.523 -3.089,-7.479c-1.958,-2.02 -4.667,-3.143 -7.479,-3.098l-0.01,0.027Z" style="fill-rule:nonzero;"></path><path d="M92.547,45.927c-1.091,-1.104 -2.58,-1.726 -4.132,-1.726c-3.187,0 -5.81,2.623 -5.81,5.81c0,3.188 2.623,5.81 5.81,5.81c3.187,0 5.81,-2.622 5.81,-5.809c0.032,-1.535 -0.576,-3.016 -1.678,-4.085Z" style="fill-rule:nonzero;"></path><path d="M76.915,70.209c-0.012,0 -0.025,0 -0.037,0c-3.714,0 -6.769,3.055 -6.769,6.769c0,3.713 3.055,6.769 6.769,6.769c3.713,0 6.769,-3.056 6.769,-6.769c0,-1.795 -0.714,-3.518 -1.983,-4.787c-1.239,-1.29 -2.96,-2.008 -4.749,-1.982l0,0Z" style="fill-rule:nonzero;"></path><path d="M49.995,80.786c-0.002,0 -0.005,0 -0.007,0c-4.225,0 -7.701,3.477 -7.701,7.701c0,4.224 3.476,7.701 7.701,7.701c4.224,0 7.7,-3.477 7.7,-7.701c0,-2.062 -0.828,-4.04 -2.298,-5.487c-1.423,-1.471 -3.394,-2.289 -5.441,-2.26l0.046,0.046Z" style="fill-rule:nonzero;"></path><path d="M49.995,0c-3.073,-0.055 -6.035,1.164 -8.18,3.366c-2.202,2.144 -3.421,5.107 -3.366,8.18c-0.053,3.07 1.166,6.029 3.366,8.171c4.499,4.454 11.852,4.454 16.351,0c2.201,-2.142 3.42,-5.101 3.366,-8.171c0.053,-3.074 -1.17,-6.037 -3.375,-8.18c-2.14,-2.197 -5.095,-3.416 -8.162,-3.366l0,0Z" style="fill-rule:nonzero;"></path>',8)])],4))},Si=/* @__PURE__ */ve((e,t)=>{!function(){var e={de_DE:{identifier:"de-DE",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d.%m.%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},en_CA:{identifier:"en-CA",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},en_US:{identifier:"en-US",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ordinalSuffixes:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%m/%d/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}},es_MX:{identifier:"es-MX",days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},fr_FR:{identifier:"fr-FR",days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avril","mai","juin","juil.","août","sept.","oct.","nov.","déc."],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},it_IT:{identifier:"it-IT",days:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],shortDays:["dom","lun","mar","mer","gio","ven","sab"],months:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],shortMonths:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},nl_NL:{identifier:"nl-NL",days:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],shortDays:["zo","ma","di","wo","do","vr","za"],months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],shortMonths:["jan","feb","mrt","apr","mei","jun","jul","aug","sep","okt","nov","dec"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},pt_BR:{identifier:"pt-BR",days:["domingo","segunda","terça","quarta","quinta","sexta","sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},ru_RU:{identifier:"ru-RU",days:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"],shortDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],shortMonths:["янв","фев","мар","апр","май","июн","июл","авг","сен","окт","ноя","дек"],AM:"AM",PM:"PM",am:"am",pm:"pm",formats:{c:"%a %d %b %Y %X",D:"%d.%m.%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},tr_TR:{identifier:"tr-TR",days:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],shortDays:["Paz","Pzt","Sal","Çrş","Prş","Cum","Cts"],months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],shortMonths:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],AM:"ÖÖ",PM:"ÖS",am:"ÖÖ",pm:"ÖS",formats:{c:"%a %d %b %Y %X %Z",D:"%d-%m-%Y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%T",x:"%D"}},zh_CN:{identifier:"zh-CN",days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],shortDays:["日","一","二","三","四","五","六"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],shortMonths:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],AM:"上午",PM:"下午",am:"上午",pm:"下午",formats:{c:"%a %d %b %Y %X %Z",D:"%d/%m/%y",F:"%Y-%m-%d",R:"%H:%M",r:"%I:%M:%S %p",T:"%H:%M:%S",v:"%e-%b-%Y",X:"%r",x:"%D"}}},a=e.en_US,n=new function t(n,p,f){var h,m=n||a,g=p||0,w=f||!1,v=0;function y(e,t,a,n){for(var u="",p=null,f=!1,h=e.length,m=!1,v=0;v<h;v++){var b=e.charCodeAt(v);if(!0!==f)37!==b?u+=e[v]:f=!0;else{if(45===b){p="";continue}if(95===b){p=" ";continue}if(48===b){p="0";continue}if(58===b){m&&d(),m=!0;continue}switch(b){case 37:u+="%";break;case 65:u+=a.days[t.getDay()];break;case 66:u+=a.months[t.getMonth()];break;case 67:u+=l(Math.floor(t.getFullYear()/100),p);break;case 68:u+=y(a.formats.D,t,a,n);break;case 70:u+=y(a.formats.F,t,a,n);break;case 72:u+=l(t.getHours(),p);break;case 73:u+=l(o(t.getHours()),p);break;case 76:u+=s(Math.floor(n%1e3));break;case 77:u+=l(t.getMinutes(),p);break;case 80:u+=t.getHours()<12?a.am:a.pm;break;case 82:u+=y(a.formats.R,t,a,n);break;case 83:u+=l(t.getSeconds(),p);break;case 84:u+=y(a.formats.T,t,a,n);break;case 85:u+=l(i(t,"sunday"),p);break;case 87:u+=l(i(t,"monday"),p);break;case 88:u+=y(a.formats.X,t,a,n);break;case 89:u+=t.getFullYear();break;case 90:u+=w&&0===g?"GMT":c(t)||"";break;case 97:u+=a.shortDays[t.getDay()];break;case 98:case 104:u+=a.shortMonths[t.getMonth()];break;case 99:u+=y(a.formats.c,t,a,n);break;case 100:u+=l(t.getDate(),p);break;case 101:u+=l(t.getDate(),null==p?" ":p);break;case 106:var A=new Date(t.getFullYear(),0,1);u+=s(k=Math.ceil((t.getTime()-A.getTime())/864e5));break;case 107:u+=l(t.getHours(),null==p?" ":p);break;case 108:u+=l(o(t.getHours()),null==p?" ":p);break;case 109:u+=l(t.getMonth()+1,p);break;case 110:u+="\n";break;case 111:var k=t.getDate();a.ordinalSuffixes?u+=String(k)+(a.ordinalSuffixes[k-1]||r(k)):u+=String(k)+r(k);break;case 112:u+=t.getHours()<12?a.AM:a.PM;break;case 114:u+=y(a.formats.r,t,a,n);break;case 115:u+=Math.floor(n/1e3);break;case 116:u+="\t";break;case 117:u+=0===(k=t.getDay())?7:k;break;case 118:u+=y(a.formats.v,t,a,n);break;case 119:u+=t.getDay();break;case 120:u+=y(a.formats.x,t,a,n);break;case 121:u+=l(t.getFullYear()%100,p);break;case 122:if(w&&0===g)u+=m?"+00:00":"+0000";else{var _,x=(_=0!==g?g/6e4:-t.getTimezoneOffset())<0?"-":"+",C=m?":":"",S=Math.floor(Math.abs(_/60)),I=Math.abs(_%60);u+=x+l(S)+C+l(I)}break;default:f&&(u+="%"),u+=e[v]}p=null,f=!1}}return u}var b=function(e,t){var a;if(t){if(a=t.getTime(),w){var n=u(t);if(u(t=new Date(a+n+g))!==n){var l=u(t);t=new Date(a+l+g)}}}else{var s=Date.now();s>v?(v=s,h=new Date(v),a=v,w&&(h=new Date(v+u(h)+g))):a=v,t=h}return y(e,t,m,a)};return b.localize=function(e){return new t(e||m,g,w)},b.localizeByIdentifier=function(t){var a=e[t];return a?b.localize(a):(d(),b)},b.timezone=function(e){var a=g,n=w,l=typeof e;return"number"!==l&&"string"!==l||(n=!0,"string"===l?a=("-"===e[0]?-1:1)*(60*parseInt(e.slice(1,3),10)+parseInt(e.slice(3,5),10))*60*1e3:"number"===l&&(a=60*e*1e3)),new t(m,a,n)},b.utc=function(){return new t(m,g,!0)},b}(a,0,!1);function l(e,t){return""===t||e>9?""+e:(null==t&&(t="0"),t+e)}function s(e){return e>99?e:e>9?"0"+e:"00"+e}function o(e){return 0===e?12:e>12?e-12:e}function i(e,t){t=t||"sunday";var a=e.getDay();"monday"===t&&(0===a?a=6:a--);var n=Date.UTC(e.getFullYear(),0,1),l=Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()),s=(Math.floor((l-n)/864e5)+7-a)/7;return Math.floor(s)}function r(e){var t=e%10,a=e%100;if(a>=11&&a<=13||0===t||t>=4)return"th";switch(t){case 1:return"st";case 2:return"nd";case 3:return"rd"}}function u(e){return 6e4*(e.getTimezoneOffset()||0)}function c(e,t){return function(e,t){if(null==t)return null;var a=e.toLocaleString(t,{timeZoneName:"short"}).match(/\s([\w]+)$/);return a&&a[1]}(e,t)||function(e){var t=e.toString().match(/\(([\w\s]+)\)/);return t&&t[1]}(e)}function d(e){"undefined"!=typeof console&&console.warn}void 0!==t?t.exports=n:(function(){return this||(0,eval)("this")}()).strftime=n,"function"!=typeof Date.now&&(Date.now=function(){return+/* @__PURE__ */new Date})}()}),Ii=/* @__PURE__ */Ae(Si()),Di={key:0,class:"wf-localized-time"},Mi={__name:"LocalizedTime",props:{timestamp:{type:Number,default:0},dateFormat:{type:String,default:"%b %-d, %Y %-I:%M %p"}},setup(e){const{timestamp:t,dateFormat:a}=Q(e),n=s(()=>{const e=/* @__PURE__ */new Date(1e3*t.value);return(0,Ii.default)(a.value,e)});return(e,a)=>J(t)>0?(B(),u("span",Di,Y(n.value),1)):r("",!0)}},Ti={class:"wf-section-title wf-section-title-with-subtitle wf-add-bottom-xs"},Li={class:"wf-center-xs wf-flex-horizontal",id:"wf-section-blocking"},Oi=["href","title"],Bi={class:"wf-fa wf-fa-gear wf-add-right-small wf-text-larger"},$i={class:"wf-section-subtitle wf-hidden-xs"},Pi=["href"],Ei={class:"wf-col-xs-12"},Ri={class:"wf-block wf-always-active"},Fi={class:"wf-block-content"},Ni={class:"wf-row"},Wi={class:"wf-col-xs-12"},Hi={class:"wf-row"},Vi={class:"wf-col-xs-12"},Ui={class:"wf-block wf-block-no-header wf-active"},Yi={key:0,class:"wf-block-banner"},Ki={class:"wf-block-content wf-padding-add-top-large wf-padding-add-bottom-large"},ji={id:"wf-block-list-controls",class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width wf-flex-grow-all wf-no-top wf-flex-align-left"},Gi={class:"wf-padding-add-bottom-xs"},Qi={class:"wf-flex-horizontal wf-flex-full-width wf-flex-grow-first wf-no-top"},qi=["placeholder","onKeydown"],Zi={class:"wf-padding-add-left-medium"},Ji=["href"],zi={class:"wf-fa wf-fa-question-circle-o"},Xi={class:"wf-right wf-center-xs"},er={class:"wf-fa wf-fa-trash"},tr=["href"],ar={class:"wf-fa wf-fa-download"},nr={class:"wf-block wf-block-no-padding wf-block-no-header wf-active wf-no-bottom"},lr={class:"wf-block-content"},sr={id:"wf-blocks-wrapper"},or={class:"wf-blocks-table-container"},ir={class:"wf-striped-table wf-blocks-table"},rr={class:"wf-blocks-columns"},ur={style:{width:"2%"},class:"wf-center"},cr={class:"wf-ion-ios-checkmark-empty"},dr={key:0,id:"wf-blocks-loading"},pr={colspan:"8",class:"wf-center wf-padding-add-top wf-padding-add-bottom"},fr={key:1,id:"wf-no-blocks"},hr={key:0,colspan:"8"},mr={key:1,colspan:"8"},gr={class:"wf-center"},wr=["onClick"],vr={class:"wf-ion-ios-checkmark-empty"},yr=["data-sort"],br=["data-sort"],Ar=["data-edit-type","data-edit-values","onClick"],kr={class:"wf-ion-edit"},_r=["data-sort"],xr=["data-sort"],Cr=["data-sort"],Sr=["data-sort"],Ir=["data-sort"],Dr={key:2},Mr={colspan:"8",class:"wf-center"},Tr={key:0,class:"wf-blocks-columns"},Lr={style:{width:"2%","text-align":"center"}},Or={class:"wf-ion-ios-checkmark-empty"},Br={__name:"Blocking",setup(e){const{$ajax:a}=In(),{$modal:n}=Hn(),{$parameterByName:l}=dn(),{$setOption:o}=Vn(),{$hasOwn:d}=cn(),{$addQueryArg:p}=Un(),m=b("__"),g=b("$mitt"),w=b("wfconstants"),v=b("$dataStore"),y=R(!0),A=R(!1),k=R(!1),_=R(null),S=R("ruleAdded"),I=R("descending"),M=R(""),L=R(""),O=P([]);T(()=>{de=new IntersectionObserver(ge,{root:null,rootMargin:"0px 0px 200px 0px"}),$.value&&(y.value=!0),x(ve)}),D(()=>{de?.disconnect(),de=null});const $=s(()=>!!l("wfBlockRange")),E=s(()=>L.value?!L.value||M.value&&L.value!==M.value?m("Change Filter"):m("Clear Filter"):m("Filter")),N=()=>{!L.value||M.value&&L.value!==M.value?L.value=M.value:L.value="",ve()},H=()=>{o("firewallEnabled",!0,()=>{window.location.reload(!0)})},V=e=>{v.blocking.hasCountryBlock=e.hasCountryBlock??!1,v.blocking.blocks.splice(0,v.blocking.blocks.length),ne.value=e.blocks.length>=ae,ye(e.blocks),x(()=>{me(),he()})},U=e=>{o("displayAutomaticBlocks",e.new,()=>{v.$options.displayAutomaticBlocks=e.new,ve()})},K=()=>{O.length&&n("bulk-unblock-modal",{count:O.length,onClosed:()=>{k.value=!0,a("wordfence_deleteBlocks",{blocks:JSON.stringify(O),sortColumn:S.value,sortDirection:I.value,blocksFilter:L.value},e=>{if(k.value=!1,O.length===v.blocking.blocks.length)ve();else{const e=v.blocking.blocks.filter(e=>!O.includes(e.id));v.blocking.blocks.splice(0,v.blocking.blocks.length,...e),x(()=>{me(),he()})}O.splice(0,O.length)})}})},j=()=>{O.length&&(k.value=!0,a("wordfence_makePermanentBlocks",{updates:JSON.stringify(O),sortColumn:S.value,sortDirection:I.value,blocksFilter:L.value},e=>{k.value=!1,e.success&&(O.splice(0,O.length),v.blocking.hasCountryBlock=e.hasCountryBlock,v.blocking.blocks.splice(0,v.blocking.blocks.length),ne.value=e.blocks.length>=ae,ye(e.blocks),x(()=>{me(),he()}))}))},G=s(()=>p(w.plugin.url.export_blocked_ips,{nonce:v.$wordfence.nonce["wp-ajax"]})),Q=s(()=>v.blocking.blocks.map(e=>O.includes(e.id)?e.id:null).filter(e=>null!==e).length===v.blocking.blocks.length),q=()=>{if(Q.value)O.splice(0,O.length);else{const e=v.blocking.blocks.map(e=>O.includes(e.id)?null:e.id).filter(e=>null!==e);O.push(...e)}},Z=e=>{S.value=e.column,I.value=e.direction>0?"descending":e.direction<0?"ascending":"",ve()},z=s(()=>!!O.length),X=s(()=>!!O.length&&v.blocking.blocks.some(e=>O.includes(e.id)&&e.expiration>0)),te=s(()=>!!v.blocking.blocks.length),ae=w.blocking.limit.per_page,ne=R(!0),oe=R(null);let de=null;const pe=ee("createBlockPanel"),fe=(e=null)=>{if(k.value||A.value||!ne.value||0===v.blocking.blocks.length)return;const t=v.blocking.blocks.length;be(a=>{const n=a?.blocks?.length??0,l=v.blocking.blocks.length-t;ne.value=n>=ae,n>0&&l<=0&&(ne.value=!1),x(me),"function"==typeof e&&e(a,l)})},he=()=>{oe.value&&oe.value.getBoundingClientRect().top<=window.innerHeight+200&&fe((e,t)=>{t>0&&x(he)})},me=()=>{de&&(de.disconnect(),oe.value&&de.observe(oe.value))},ge=e=>{e.some(e=>e.isIntersecting)&&fe()},we=(e,t)=>{const n={sortColumn:S.value,sortDirection:I.value,blocksFilter:L.value,offset:0};let l={};for(const a in n)l[a]=e&&"object"==typeof e&&d(e,a)?e[a]:n[a];k.value=!0,a("wordfence_getBlocks",l,e=>{k.value=!1,t&&t(e)})},ve=e=>{A.value=!0,ne.value=!0,O.splice(0,O.length),v.blocking.blocks.splice(0,v.blocking.blocks.length),we(e,e=>{v.blocking.hasCountryBlock=e.hasCountryBlock,ne.value=e.blocks.length>=ae,ye(e.blocks),A.value=!1,x(()=>{me(),he()})})},ye=e=>{const t=v.blocking.blocks.map(e=>e.id),a=e.filter(e=>!t.includes(e.id));a.length&&v.blocking.blocks.push(...a),_.value=v.blocking.hasCountryBlock},be=e=>{we({offset:v.blocking.blocks.length},t=>{v.blocking.hasCountryBlock=t.hasCountryBlock,ye(t.blocks),"function"==typeof e&&e(t)})},Ae=e=>{const t=e.reasonDisplay.split(/\s+/);for(const a of t)if(a.length>=50)return!0;return!1};return(e,a)=>{const n=W("aria");return B(),u(t,null,[c("div",Ti,[c("h2",Li,Y(J(m)("Blocking")),1),c("a",{href:J(w).options.url._group_blocking,class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-btn-flex",title:J(m)("Manage global blocking options.")},[re(c("i",Bi,null,512),[[n,{hidden:!0}]]),h(J(Vs),{text:J(m)("Blocking Options"),xs:J(m)("Options")},null,8,["text","xs"])],8,Oi)]),c("div",$i,[c("a",{href:J(w).support.url.firewall_blocking,target:"_blank",rel:"noopener noreferrer",class:"wf-help-link"},[h(J(Vs),{text:J(m)("Learn more about Blocking"),xs:J(m)("Learn More")},null,8,["text","xs"]),h(J(Kn))],8,Pi),a[1]||(a[1]=f()),a[2]||(a[2]=c("i",{class:"wf-fa wf-fa-external-link","aria-hidden":"true"},null,-1))]),h(J(qs),null,{default:ie(()=>[re(c("div",{ref_key:"createBlockPanel",ref:pe,class:"wf-row"},[c("div",Ei,[c("div",Ri,[c("div",Fi,[h(J(ni),{onBlockCreated:V,sorting:{sortColumn:S.value,sortDirection:I.value,blocksFilter:L.value},existingCountryBlock:_.value},null,8,["sorting","existingCountryBlock"])])])])],512),[[se,y.value]])]),_:1}),c("div",Ni,[c("div",Wi,[c("div",Hi,[c("div",Vi,[c("div",Ui,[J(v).$options.firewallEnabled?r("",!0):(B(),u("ul",Yi,[c("li",null,[c("strong",null,Y(J(m)("Note"))+":",1),f(" "+Y(J(m)('Blocking is disabled when the option "Enable Rate Limiting and Advanced Blocking" is off.')),1)]),c("li",null,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default",id:"wf-blocking-enable",onClick:ce(H,["stop","prevent"])},[f(Y(J(m)("Turn On")),1)])),[[n,{role:"button"}]])])])),c("div",Ki,[c("ul",ji,[c("li",Gi,[c("ul",Qi,[c("li",null,[re(c("input",{type:"text",placeholder:J(m)("Filter by Type, Detail, or Reason"),id:"wf-blocks-filter-field",class:"wf-input-text","onUpdate:modelValue":a[0]||(a[0]=e=>M.value=e),onKeydown:ue(ce(N,["stop","prevent"]),["enter"])},null,40,qi),[[le,M.value]])]),c("li",Zi,[re((B(),u("a",{href:"#",id:"wf-blocks-apply-filter",class:"wf-btn wf-btn-callout wf-btn-default",onClick:ce(N,["stop","prevent"])},[f(Y(E.value),1)])),[[n,{role:"button"}]]),a[3]||(a[3]=f(" ",-1)),c("a",{href:J(w).support.url.firewall_blocking_filter,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",zi,null,512),[[n,{hidden:!0}]]),h(J(Kn))],8,Ji)])]),h(J(bi),{optionName:"displayAutomaticBlocks",enabledValue:!0,disabledValue:!1,value:J(v).$options.displayAutomaticBlocks,onChange:U},{title:ie(()=>[h(J(Vs),{text:J(m)("Show Wordfence Automatic Blocks"),xs:J(m)("Show Automatic")},null,8,["text","xs"])]),_:1},8,["value"])]),c("li",Xi,[re((B(),u("a",{href:"#",id:"blocks-bulk-unblock",class:C(["wf-btn wf-btn-callout wf-btn-default",{"wf-disabled":!z.value}]),onClick:ce(K,["stop","prevent"])},[h(J(Vs),{text:J(m)("Unblock")},{xs:ie(()=>[re(c("i",er,null,512),[[n,{hidden:!0}]])]),_:1},8,["text"])],2)),[[n,{role:"button",label:J(m)("Unblock")}]]),a[4]||(a[4]=f(" ",-1)),c("a",{href:"#",id:"blocks-bulk-make-permanent",class:C(["wf-btn wf-btn-callout wf-btn-default",{"wf-disabled":!X.value}]),onClick:ce(j,["stop","prevent"])},Y(J(m)("Make Permanent")),3),a[5]||(a[5]=f(" ",-1)),re((B(),u("a",{href:G.value,id:"blocks-export-ips",class:C(["wf-btn wf-btn-callout wf-btn-default",{"wf-disabled":!te.value}])},[h(J(Vs),{text:J(m)("Export All IPs")},{xs:ie(()=>[re(c("i",ar,null,512),[[n,{hidden:!0}]])]),_:1},8,["text"])],10,tr)),[[n,{label:J(m)("Export")}]])])]),c("div",nr,[c("div",lr,[c("div",sr,[c("div",or,[c("table",ir,[c("thead",null,[c("tr",rr,[c("th",ur,[re((B(),u("div",{class:C(["wf-blocks-bulk-select wf-option-checkbox",{"wf-checked":Q.value}]),onClick:ce(q,["stop","prevent"])},[re(c("i",cr,null,512),[[n,{hidden:!0}]])],2)),[[n,{role:"checkbox",checked:Q.value,tabindex:0}]])]),h(J(xi),{column:"type",direction:"type"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Block Type")),1)]),_:1},8,["direction"]),h(J(xi),{column:"detail",direction:"detail"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Detail")),1)]),_:1},8,["direction"]),h(J(xi),{column:"ruleAdded",direction:"ruleAdded"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Rule Added")),1)]),_:1},8,["direction"]),h(J(xi),{column:"reason",direction:"reason"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Reason")),1)]),_:1},8,["direction"]),h(J(xi),{column:"expiration",direction:"expiration"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Expiration")),1)]),_:1},8,["direction"]),h(J(xi),{column:"blockCount",direction:"blockCount"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Block Count")),1)]),_:1},8,["direction"]),h(J(xi),{column:"lastAttempt",direction:"lastAttempt"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Last Attempt")),1)]),_:1},8,["direction"])])]),c("tbody",null,[A.value?(B(),u("tr",dr,[c("td",pr,[h(J(Ci),{size:50})])])):0===J(v).blocking.blocks.length?(B(),u("tr",fr,[L.value?(B(),u("td",mr,Y(J(m)("No blocks match the current filter.")),1)):(B(),u("td",hr,Y(J(m)("No blocks are currently active.")),1))])):r("",!0),(B(!0),u(t,null,F(J(v).blocking.blocks,(e,l)=>(B(),u("tr",{key:e.id,class:C(["wf-block-record",l%2==0?"even":"odd"])},[c("td",gr,[re((B(),u("div",{class:C(["wf-blocks-table-bulk-checkbox wf-option-checkbox",{"wf-checked":O.includes(e.id)}]),onClick:ce(t=>(e=>{const t=O.findIndex(t=>t===e.id);t>-1?O.splice(t,1):O.push(e.id)})(e),["stop","prevent"])},[re(c("i",vr,null,512),[[n,{hidden:!0}]])],10,wr)),[[n,{role:"checkbox",checked:O.includes(e.id),tabindex:0}]])]),c("td",{"data-column":"type","data-sort":e.typeSort},Y(e.typeDisplay),9,yr),c("td",{"data-column":"detail","data-sort":e.detailSort},[f(Y(e.detailDisplay),1),e.editable?(B(),u(t,{key:0},[a[6]||(a[6]=f(" ",-1)),re((B(),u("a",{href:"#",class:"wf-block-edit","data-edit-type":e.editType,"data-edit-values":e.editValues,onClick:ce(t=>(e=>{y.value=!0,x(()=>{pe.value&&pe.value.scrollIntoView({behavior:"smooth",block:"start"}),g.emit("editBlock",{block:e})})})(e),["stop","prevent"])},[re(c("i",kr,null,512),[[n,{hidden:!0}]])],8,Ar)),[[n,{role:"button"}]])],64)):r("",!0)],8,br),c("td",{"data-column":"ruleAdded","data-sort":e.ruleAddedSort},[h(J(Mi),{timestamp:e.ruleAdded},null,8,["timestamp"])],8,_r),c("td",{"data-column":"reason","data-sort":e.reasonSort,class:C({"wf-split-word":Ae(e)})},Y(e.reasonDisplay),11,xr),c("td",{"data-column":"expiration","data-sort":e.expirationSort},[e.expiration?(B(),i(J(Mi),{key:1,timestamp:e.expiration},null,8,["timestamp"])):(B(),u(t,{key:0},[f(Y(J(m)("Permanent")),1)],64))],8,Cr),c("td",{"data-column":"blockCount","data-sort":e.blockCountSort},Y(e.blockCountDisplay),9,Sr),c("td",{"data-column":"lastAttempt","data-sort":e.lastAttemptSort},[e.lastAttempt?(B(),i(J(Mi),{key:1,timestamp:e.lastAttempt},null,8,["timestamp"])):(B(),u(t,{key:0},[f(Y(J(m)("Never")),1)],64))],8,Ir)],2))),128)),k.value&&!A.value&&J(v).blocking.blocks.length>0?(B(),u("tr",Dr,[c("td",Mr,[h(J(Ci),{size:30})])])):r("",!0)]),c("tfoot",null,[J(v).blocking.blocks.length>5?(B(),u("tr",Tr,[c("th",Lr,[re((B(),u("div",{class:C(["wf-blocks-bulk-select wf-option-checkbox",{"wf-checked":Q.value}]),onClick:ce(q,["stop","prevent"])},[re(c("i",Or,null,512),[[n,{hidden:!0}]])],2)),[[n,{role:"checkbox",checked:Q.value,tabindex:0}]])]),h(J(xi),{column:"type",direction:"type"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Block Type")),1)]),_:1},8,["direction"]),h(J(xi),{column:"detail",direction:"detail"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Detail")),1)]),_:1},8,["direction"]),h(J(xi),{column:"ruleAdded",direction:"ruleAdded"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Rule Added")),1)]),_:1},8,["direction"]),h(J(xi),{column:"reason",direction:"reason"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Reason")),1)]),_:1},8,["direction"]),h(J(xi),{column:"expiration",direction:"expiration"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Expiration")),1)]),_:1},8,["direction"]),h(J(xi),{column:"blockCount",direction:"blockCount"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Block Count")),1)]),_:1},8,["direction"]),h(J(xi),{column:"lastAttempt",direction:"lastAttempt"===S.value?"ascending"===I.value?-1:"descending"===I.value?1:0:0,onChangeSort:Z},{default:ie(()=>[f(Y(J(m)("Last Attempt")),1)]),_:1},8,["direction"])])):r("",!0)])]),ne.value&&J(v).blocking.blocks.length>0?(B(),u("div",{key:0,ref_key:"paginationSentinel",ref:oe,"aria-hidden":"true",style:{height:"1px"}},null,512)):r("",!0)])])])])])])])])])])],64)}}},$r={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("Wordfence lets you take control of protecting your site with powerful blocking features. Block traffic based on IP, IP range, hostname, browser, or referrer. Country blocking is available for Premium customers.")),1))}},Pr={__name:"NewTour2",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("All of your blocking rules are in one central location. Choose the Block Type, then enter the details for the rule. Once it has been added, you'll see it saved as a rule for your site.")),1))}},Er={__name:"NewTour3",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("Here's where you'll see all the blocking rules you've created. You can also manage them as well as remove or modify them from this table.")),1))}},Rr={__name:"BlockingNewTour",setup(e){const t=b("__"),n=b("$"),l=b("wfconstants"),s=R(!1),o=R(0);$("tourName",l.tour.types.blocking),T(()=>{n("#blocking").hasClass("wf-active")?u("blocking"):n(window).on("wfTabChange",r)}),D(()=>{n(window).off("wfTabChange",r)});const r=(e,t)=>{u(t)},u=e=>{"blocking"===e&&l.tour.new.blocking&&(l.tour.new.blocking=!1,s.value=!0)},c=[{title:t("Blocking"),content:$r,anchor:{selector:"#wf-section-blocking",pointer:{edge:"top",align:"left"}}},{title:t("Blocking Builder"),content:Pr,anchor:{selector:"#wf-create-block-type",pointer:{edge:"right",align:"right"}}},{title:t("Manage Blocking Rules"),content:Er,anchor:{selector:"#wf-blocks-wrapper",pointer:{edge:"bottom",align:"bottom"}}}],d=()=>{l.tour.new.blocking=!1,s.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:s.value},null,8,["show"]),h(J(Fn),{show:s.value,selectedIndex:o.value,slides:c,onCloseTour:d},null,8,["show","selectedIndex"])]))}},Fr={key:0,id:"wf-cboxOverlay",class:"wf-modal"},Nr={__name:"ModalOverlay",props:{show:{type:Boolean,default:!1}},setup:e=>($("modalName","modal-overlay"),(t,a)=>(B(),i(n,{name:"wf-fade"},{default:ie(()=>[e.show?(B(),u("div",Fr)):r("",!0)]),_:1})))},Wr={id:"wf-cboxWrapper"},Hr={id:"wf-cboxContent"},Vr={id:"wf-cboxLoadedContent"},Ur={class:"wf-modal"},Yr={class:"wf-modal-header"},Kr={class:"wf-modal-header-content"},jr={class:"wf-modal-title"},Gr={class:"wf-modal-header-action"},Qr={key:0,class:"wf-padding-add-left-small wf-modal-header-action-close"},qr={class:"wf-fa wf-fa-times-circle"},Zr={class:"wf-modal-content"},Jr={key:0,class:"wf-modal-footer"},zr={class:"wf-flex-horizontal wf-flex-align-right wf-full-width"},Xr={key:0,class:"wf-modal-accessory"},eu={__name:"BaseModal",props:{modalSize:{type:[String,null],default:null,required:!1},noX:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1}},setup(e){let t=0;const a=b("modalName","modal"),n=b("$mitt"),l=X(),{modalSize:o}=Q(e),i=s(()=>{let e=[];return e.push("wf-modal"),o.value&&e.push(`wf-modal-${o.value}`),e});return T(()=>{t+=1,document.body.classList.add("wf-modal-open")}),D(()=>{t=Math.max(0,t-1),0===t&&document.body.classList.remove("wf-modal-open")}),(t,s)=>{const o=W("aria");return re((B(),u("div",{id:"wf-colorbox",class:C(i.value),tabindex:"-1"},[c("div",Wr,[c("div",Hr,[c("div",Vr,[c("div",Ur,[c("div",Yr,[c("div",Kr,[c("div",jr,[c("strong",null,[N(t.$slots,"header")])])]),c("div",Gr,[N(t.$slots,"headerAction"),e.noX?r("",!0):(B(),u("div",Qr,[re((B(),u("a",{href:"#",onClick:s[0]||(s[0]=ce(e=>J(n).emit("closeModal",J(a)),["prevent","stop"]))},[re(c("i",qr,null,512),[[o,{hidden:!0}]])])),[[o,{role:"button"}]])]))])]),c("div",Zr,[N(t.$slots,"body")]),e.noFooter?r("",!0):(B(),u("div",Jr,[c("ul",zr,[J(l).accessory?(B(),u("li",Xr,[N(t.$slots,"accessory")])):r("",!0),N(t.$slots,"secondary-buttons"),N(t.$slots,"primary-button")])]))])])])])],2)),[[o,{role:"dialog"}]])}}},tu=we(()=>{oi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]])});function au(e){const t=atob(e),a=-2&t.length,n=new Uint16Array(a/2);for(let l=0,s=0;l<a;l+=2){const e=t.charCodeAt(l),a=t.charCodeAt(l+1);n[s++]=e|a<<8}return n}var nu,lu,su,ou,iu,ru,uu,cu=we(()=>{}),du=we(()=>{cu(),nu=/* #__PURE__ */au("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")}),pu=we(()=>{cu(),lu=/* #__PURE__ */au("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")}),fu=we(()=>{!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.FLAG13=8192]="FLAG13",e[e.BRANCH_LENGTH=8064]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(su||(su={}))});function hu(e){return e>=ou.ZERO&&e<=ou.NINE}function mu(e){return e>=ou.UPPER_A&&e<=ou.UPPER_F||e>=ou.LOWER_A&&e<=ou.LOWER_F}function gu(e){return e===ou.EQUALS||function(e){return e>=ou.UPPER_A&&e<=ou.UPPER_Z||e>=ou.LOWER_A&&e<=ou.LOWER_Z||hu(e)}(e)}function wu(e,t,a,n){const l=(t&su.BRANCH_LENGTH)>>7,s=t&su.JUMP_TABLE;if(0===l)return 0!==s&&n===s?a:-1;if(s){const t=n-s;return t<0||t>=l?-1:e[a+t]-1}const o=l+1>>1;let i=0,r=l-1;for(;i<=r;){const t=i+r>>>1,l=e[a+(t>>1)]>>8*(1&t)&255;if(l<n)i=t+1;else{if(!(l>n))return e[a+o+t];r=t-1}}return-1}var vu,yu,bu,Au,ku,_u,xu=we(()=>{tu(),fu(),du(),pu(),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(ou||(ou={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(iu||(iu={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(ru||(ru={})),uu=class{decodeTree;emitCodePoint;errors;constructor(e,t,a){this.decodeTree=e,this.emitCodePoint=t,this.errors=a}state=iu.EntityStart;consumed=1;result=0;treeIndex=0;excess=1;decodeMode=ru.Strict;runConsumed=0;startEntity(e){this.decodeMode=e,this.state=iu.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case iu.EntityStart:return e.charCodeAt(t)===ou.NUM?(this.state=iu.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=iu.NamedEntity,this.stateNamedEntity(e,t));case iu.NumericStart:return this.stateNumericStart(e,t);case iu.NumericDecimal:return this.stateNumericDecimal(e,t);case iu.NumericHex:return this.stateNumericHex(e,t);case iu.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===ou.LOWER_X?(this.state=iu.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=iu.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){const a=e.charCodeAt(t);if(!hu(a)&&!mu(a))return this.emitNumericEntity(a,3);{const e=a<=ou.NINE?a-ou.ZERO:(32|a)-ou.LOWER_A+10;this.result=16*this.result+e,this.consumed++,t++}}return-1}stateNumericDecimal(e,t){for(;t<e.length;){const a=e.charCodeAt(t);if(!hu(a))return this.emitNumericEntity(a,2);this.result=10*this.result+(a-ou.ZERO),this.consumed++,t++}return-1}emitNumericEntity(e,t){if(this.consumed<=t)return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===ou.SEMI)this.consumed+=1;else if(this.decodeMode===ru.Strict)return 0;var a;return this.emitCodePoint((a=this.result)>=55296&&a<=57343||a>1114111?65533:oi.get(a)??a,this.consumed),this.errors&&(e!==ou.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:a}=this;let n=a[this.treeIndex],l=(n&su.VALUE_LENGTH)>>14;for(;t<e.length;){if(0===l&&0!==(n&su.FLAG13)){const s=(n&su.BRANCH_LENGTH)>>7;if(0===this.runConsumed){const a=n&su.JUMP_TABLE;if(e.charCodeAt(t)!==a)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<s;){if(t>=e.length)return-1;const n=this.runConsumed-1,l=a[this.treeIndex+1+(n>>1)],s=n%2==0?255&l:l>>8&255;if(e.charCodeAt(t)!==s)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(s>>1),n=a[this.treeIndex],l=(n&su.VALUE_LENGTH)>>14}if(t>=e.length)break;const s=e.charCodeAt(t);if(s===ou.SEMI&&0!==l&&0!==(n&su.FLAG13))return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);if(this.treeIndex=wu(a,n,this.treeIndex+Math.max(1,l),s),this.treeIndex<0)return 0===this.result||this.decodeMode===ru.Attribute&&(0===l||gu(s))?0:this.emitNotTerminatedNamedEntity();if(n=a[this.treeIndex],l=(n&su.VALUE_LENGTH)>>14,0!==l){if(s===ou.SEMI)return this.emitNamedEntityData(this.treeIndex,l,this.consumed+this.excess);this.decodeMode!==ru.Strict&&0===(n&su.FLAG13)&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){const{result:e,decodeTree:t}=this,a=(t[e]&su.VALUE_LENGTH)>>14;return this.emitNamedEntityData(e,a,this.consumed),this.errors?.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,a){const{decodeTree:n}=this;return this.emitCodePoint(1===t?n[e]&~(su.VALUE_LENGTH|su.FLAG13):n[e+1],a),3===t&&this.emitCodePoint(n[e+2],a),a}end(){switch(this.state){case iu.NamedEntity:return 0===this.result||this.decodeMode===ru.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case iu.NumericDecimal:return this.emitNumericEntity(0,2);case iu.NumericHex:return this.emitNumericEntity(0,3);case iu.NumericStart:return this.errors?.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case iu.EntityStart:return 0}}}});function Cu(e){return e===vu.Space||e===vu.NewLine||e===vu.Tab||e===vu.FormFeed||e===vu.CarriageReturn}function Su(e){return e===vu.Slash||e===vu.Gt||Cu(e)}var Iu,Du,Mu,Tu,Lu,Ou,Bu,$u,Pu,Eu,Ru,Fu,Nu,Wu,Hu,Vu,Uu,Yu,Ku,ju,Gu,Qu,qu,Zu,Ju,zu=we(()=>{xu(),function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(vu||(vu={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.DeclarationSequence=20]="DeclarationSequence",e[e.InSpecialComment=21]="InSpecialComment",e[e.InCommentLike=22]="InCommentLike",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.InPlainText=25]="InPlainText",e[e.InEntity=26]="InEntity"}(yu||(yu={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(bu||(bu={})),Au={Empty:new Uint8Array(0),Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,33,62]),Doctype:new Uint8Array([100,111,99,116,121,112,101]),IframeEnd:new Uint8Array([60,47,105,102,114,97,109,101]),NoembedEnd:new Uint8Array([60,47,110,111,101,109,98,101,100]),NoframesEnd:new Uint8Array([60,47,110,111,102,114,97,109,101,115]),Plaintext:new Uint8Array([60,47,112,108,97,105,110,116,101,120,116]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])},ku=new Map([[Au.IframeEnd[2],Au.IframeEnd],[Au.NoembedEnd[2],Au.NoembedEnd],[Au.Plaintext[2],Au.Plaintext],[Au.ScriptEnd[2],Au.ScriptEnd],[Au.TitleEnd[2],Au.TitleEnd],[Au.XmpEnd[2],Au.XmpEnd]]),_u=class{cbs;state=yu.Text;buffer="";sectionStart=0;index=0;entityStart=0;baseState=yu.Text;isSpecial=!1;running=!0;offset=0;xmlMode;decodeEntities;recognizeSelfClosing;entityDecoder;constructor({xmlMode:e=!1,decodeEntities:t=!0,recognizeSelfClosing:a=e},n){this.cbs=n,this.xmlMode=e,this.decodeEntities=t,this.recognizeSelfClosing=a,this.entityDecoder=new uu(e?lu:nu,(e,t)=>this.emitCodePoint(e,t))}reset(){this.state=yu.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=yu.Text,this.isSpecial=!1,this.currentSequence=Au.Empty,this.sequenceIndex=0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(e){e===vu.Lt||!this.decodeEntities&&this.fastForwardTo(vu.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=yu.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===vu.Amp&&this.startEntity()}currentSequence=Au.Empty;sequenceIndex=0;enterTagBody(){this.currentSequence===Au.Plaintext?(this.currentSequence=Au.Empty,this.state=yu.InPlainText):this.isSpecial?(this.state=yu.InSpecialTag,this.sequenceIndex=0):this.state=yu.Text}stateSpecialStartSequence(e){const t=32|e;if(this.sequenceIndex<this.currentSequence.length){if(t===this.currentSequence[this.sequenceIndex])return void this.sequenceIndex++;if(3===this.sequenceIndex){if(this.currentSequence===Au.ScriptEnd&&t===Au.StyleEnd[3])return this.currentSequence=Au.StyleEnd,void(this.sequenceIndex=4);if(this.currentSequence===Au.TitleEnd&&t===Au.TextareaEnd[3])return this.currentSequence=Au.TextareaEnd,void(this.sequenceIndex=4)}else if(4===this.sequenceIndex&&this.currentSequence===Au.NoembedEnd&&t===Au.NoframesEnd[4])return this.currentSequence=Au.NoframesEnd,void(this.sequenceIndex=5)}else if(Su(e))return this.sequenceIndex=0,this.state=yu.InTagName,void this.stateInTagName(e);this.isSpecial=!1,this.currentSequence=Au.Empty,this.sequenceIndex=0,this.state=yu.InTagName,this.stateInTagName(e)}stateCDATASequence(e){e===Au.Cdata[this.sequenceIndex]?++this.sequenceIndex===Au.Cdata.length&&(this.state=yu.InCommentLike,this.currentSequence=Au.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.xmlMode?(this.state=yu.InDeclaration,this.stateInDeclaration(e)):(this.state=yu.InSpecialComment,this.stateInSpecialComment(e)))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}emitComment(e){this.cbs.oncomment(this.sectionStart,this.index,e),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=yu.Text}stateInCommentLike(e){!this.xmlMode&&this.currentSequence===Au.CommentEnd&&this.sequenceIndex<=1&&this.index===this.sectionStart+this.sequenceIndex&&e===vu.Gt?this.emitComment(this.sequenceIndex):this.currentSequence===Au.CommentEnd&&2===this.sequenceIndex&&e===vu.Gt?this.emitComment(2):this.currentSequence===Au.CommentEnd&&this.sequenceIndex===this.currentSequence.length-1&&e!==vu.Gt?this.sequenceIndex=Number(e===vu.Dash):e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Au.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,3),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=yu.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Su(e):function(e){return e>=vu.LowerA&&e<=vu.LowerZ||e>=vu.UpperA&&e<=vu.UpperZ}(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(Su(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart<t){const e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}return this.isSpecial=!1,this.sectionStart=t+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===Au.TitleEnd||this.currentSequence===Au.TextareaEnd?this.decodeEntities&&e===vu.Amp&&this.startEntity():this.fastForwardTo(vu.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===vu.Lt)}stateBeforeTagName(e){if(e===vu.ExclamationMark)this.state=yu.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===vu.Questionmark)this.xmlMode?(this.state=yu.InProcessingInstruction,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.state=yu.InSpecialComment,this.sectionStart=this.index);else if(this.isTagStartChar(e)){this.sectionStart=this.index;const t=this.xmlMode||this.cbs.isInForeignContext?.()?void 0:ku.get(32|e);void 0===t?this.state=yu.InTagName:(this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=3,this.state=yu.SpecialStartSequence)}else e===vu.Slash?this.state=yu.BeforeClosingTagName:(this.state=yu.Text,this.stateText(e))}stateInTagName(e){Su(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=yu.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Cu(e)?this.xmlMode||(this.state=yu.InSpecialComment,this.sectionStart=this.index):e===vu.Gt?(this.state=yu.Text,this.xmlMode||(this.sectionStart=this.index+1)):(this.state=this.isTagStartChar(e)?yu.InClosingTagName:yu.InSpecialComment,this.sectionStart=this.index)}stateInClosingTagName(e){Su(e)&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=yu.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===vu.Gt||this.fastForwardTo(vu.Gt))&&(this.state=yu.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===vu.Gt?(this.cbs.onopentagend(this.index),this.enterTagBody(),this.sectionStart=this.index+1):e===vu.Slash?this.state=yu.InSelfClosingTag:Cu(e)||(this.state=yu.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){if(e===vu.Gt){if(this.cbs.onselfclosingtag(this.index),this.sectionStart=this.index+1,!this.recognizeSelfClosing)return void this.enterTagBody();this.state=yu.Text,this.isSpecial=!1,this.currentSequence=Au.Empty}else Cu(e)||(this.state=yu.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===vu.Eq||Su(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=yu.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===vu.Eq?this.state=yu.BeforeAttributeValue:e===vu.Slash||e===vu.Gt?(this.cbs.onattribend(bu.NoValue,this.sectionStart),this.sectionStart=-1,this.state=yu.BeforeAttributeName,this.stateBeforeAttributeName(e)):Cu(e)||(this.cbs.onattribend(bu.NoValue,this.sectionStart),this.state=yu.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===vu.DoubleQuote?(this.state=yu.InAttributeValueDq,this.sectionStart=this.index+1):e===vu.SingleQuote?(this.state=yu.InAttributeValueSq,this.sectionStart=this.index+1):Cu(e)||(this.sectionStart=this.index,this.state=yu.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===vu.DoubleQuote?bu.Double:bu.Single,this.index+1),this.state=yu.BeforeAttributeName):this.decodeEntities&&e===vu.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,vu.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,vu.SingleQuote)}stateInAttributeValueNoQuotes(e){Cu(e)||e===vu.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(bu.Unquoted,this.index),this.state=yu.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===vu.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===vu.OpeningSquareBracket?(this.state=yu.CDATASequence,this.sequenceIndex=0):this.xmlMode?this.state=e===vu.Dash?yu.BeforeComment:yu.InDeclaration:(32|e)===Au.Doctype[0]?(this.state=yu.DeclarationSequence,this.currentSequence=Au.Doctype,this.sequenceIndex=1):e===vu.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=yu.Text,this.sectionStart=this.index+1):e===vu.Dash?this.state=yu.BeforeComment:this.state=yu.InSpecialComment}stateDeclarationSequence(e){this.sequenceIndex===this.currentSequence.length?(this.state=yu.InDeclaration,this.stateInDeclaration(e)):(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:e===vu.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=yu.Text,this.sectionStart=this.index+1):this.state=yu.InSpecialComment}stateInDeclaration(e){(e===vu.Gt||this.fastForwardTo(vu.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=yu.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){e===vu.Questionmark?this.sequenceIndex=1:e===vu.Gt&&1===this.sequenceIndex?(this.cbs.onprocessinginstruction(this.sectionStart,this.index-1),this.sequenceIndex=0,this.state=yu.Text,this.sectionStart=this.index+1):this.sequenceIndex=Number(this.fastForwardTo(vu.Questionmark))}stateBeforeComment(e){e===vu.Dash?(this.state=yu.InCommentLike,this.currentSequence=Au.CommentEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):this.xmlMode?this.state=yu.InDeclaration:e===vu.Gt?(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=yu.Text,this.sectionStart=this.index+1):this.state=yu.InSpecialComment}stateInSpecialComment(e){(e===vu.Gt||this.fastForwardTo(vu.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=yu.Text,this.sectionStart=this.index+1)}startEntity(){this.baseState=this.state,this.state=yu.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?ru.Strict:this.baseState===yu.Text||this.baseState===yu.InSpecialTag?ru.Legacy:ru.Attribute)}stateInEntity(){const e=this.index-this.offset,t=this.entityDecoder.write(this.buffer,e);if(t>=0)this.state=this.baseState,0===t&&(this.index-=1);else{if(e<this.buffer.length&&this.buffer.charCodeAt(e)===vu.Amp)return this.state=this.baseState,void(this.index-=1);this.index=this.offset+this.buffer.length-1}}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===yu.Text||this.state===yu.InPlainText||this.state===yu.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==yu.InAttributeValueDq&&this.state!==yu.InAttributeValueSq&&this.state!==yu.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case yu.Text:this.stateText(e);break;case yu.InPlainText:this.index=this.buffer.length+this.offset-1;break;case yu.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case yu.InSpecialTag:this.stateInSpecialTag(e);break;case yu.CDATASequence:this.stateCDATASequence(e);break;case yu.DeclarationSequence:this.stateDeclarationSequence(e);break;case yu.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case yu.InAttributeName:this.stateInAttributeName(e);break;case yu.InCommentLike:this.stateInCommentLike(e);break;case yu.InSpecialComment:this.stateInSpecialComment(e);break;case yu.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case yu.InTagName:this.stateInTagName(e);break;case yu.InClosingTagName:this.stateInClosingTagName(e);break;case yu.BeforeTagName:this.stateBeforeTagName(e);break;case yu.AfterAttributeName:this.stateAfterAttributeName(e);break;case yu.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case yu.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case yu.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case yu.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case yu.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case yu.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case yu.InDeclaration:this.stateInDeclaration(e);break;case yu.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case yu.BeforeComment:this.stateBeforeComment(e);break;case yu.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case yu.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===yu.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingCommentLikeData(e){if(this.state!==yu.InCommentLike)return!1;if(this.currentSequence===Au.CdataEnd)if(this.xmlMode)this.sectionStart<e&&this.cbs.oncdata(this.sectionStart,e,0);else{const t=this.sectionStart-Au.Cdata.length-1;this.cbs.oncomment(t,e,0)}else{const t=this.xmlMode?0:Math.min(this.sequenceIndex,Au.CommentEnd.length-1);this.cbs.oncomment(this.sectionStart,e,t)}return!0}handleTrailingMarkupDeclaration(e){if(this.xmlMode)switch(this.state){case yu.InSpecialComment:case yu.BeforeComment:case yu.CDATASequence:case yu.DeclarationSequence:case yu.InDeclaration:return this.cbs.ontext(this.sectionStart,e),!0;default:return!1}switch(this.state){case yu.BeforeDeclaration:case yu.InSpecialComment:case yu.BeforeComment:case yu.CDATASequence:return this.cbs.oncomment(this.sectionStart,e,0),!0;case yu.DeclarationSequence:return this.sequenceIndex!==Au.Doctype.length&&this.cbs.oncomment(this.sectionStart,e,0),!0;case yu.InDeclaration:return!0;default:return!1}}handleTrailingData(){const e=this.buffer.length+this.offset;if(!(this.handleTrailingCommentLikeData(e)||this.handleTrailingMarkupDeclaration(e)||this.sectionStart>=e))switch(this.state){case yu.InTagName:case yu.BeforeAttributeName:case yu.BeforeAttributeValue:case yu.AfterAttributeName:case yu.InAttributeName:case yu.InAttributeValueSq:case yu.InAttributeValueDq:case yu.InAttributeValueNq:case yu.InClosingTagName:break;default:this.cbs.ontext(this.sectionStart,e)}}emitCodePoint(e,t){this.baseState!==yu.Text&&this.baseState!==yu.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.onattribentity(e)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+t,this.index=this.sectionStart-1,this.cbs.ontextentity(e,this.sectionStart))}}}),Xu=we(()=>{zu(),({fromCodePoint:Iu}=String),Du=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Mu=new Set(["p"]),Tu=new Set(["h1","h2","h3","h4","h5","h6","p"]),Lu=new Set(["thead","tbody"]),Ou=new Set(["dd","dt"]),Bu=new Set(["rt","rp"]),$u=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["a",new Set(["a"])],["li",new Set(["li"])],["p",Mu],["h1",Tu],["h2",Tu],["h3",Tu],["h4",Tu],["h5",Tu],["h6",Tu],["select",Du],["input",Du],["output",Du],["button",Du],["datalist",Du],["textarea",Du],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ou],["dt",Ou],["address",Mu],["article",Mu],["aside",Mu],["blockquote",Mu],["details",Mu],["div",Mu],["dl",Mu],["fieldset",Mu],["figcaption",Mu],["figure",Mu],["footer",Mu],["form",Mu],["header",Mu],["hr",Mu],["main",Mu],["nav",Mu],["ol",Mu],["pre",Mu],["section",Mu],["table",Mu],["ul",Mu],["rt",Bu],["rp",Bu],["tbody",Lu],["tfoot",Lu]]),Pu=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Eu=new Set(["math","svg"]),Ru=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Fu=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),function(e){e[e.None=0]="None",e[e.Svg=1]="Svg",e[e.MathML=2]="MathML"}(Nu||(Nu={})),Wu=/\s|\//,Hu=class{options;startIndex=0;endIndex=0;openTagStart=0;tagname="";attribname="";attribvalue="";attribs=null;stack=[];foreignContext;cbs;lowerCaseTagNames;lowerCaseAttributeNames;recognizeSelfClosing;htmlMode;tokenizer;buffers=[];bufferOffset=0;writeIndex=0;ended=!1;constructor(e,t={}){this.options=t,this.cbs=e??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=t.lowerCaseTags??this.htmlMode,this.lowerCaseAttributeNames=t.lowerCaseAttributeNames??this.htmlMode,this.recognizeSelfClosing=t.recognizeSelfClosing??!this.htmlMode,this.tokenizer=new(t.Tokenizer??_u)(this.options,this),this.foreignContext=[Nu.None],this.cbs.onparserinit?.(this)}ontext(e,t){const a=this.getSlice(e,t);this.endIndex=t-1,this.cbs.ontext?.(a),this.startIndex=t}ontextentity(e,t){this.endIndex=t-1,this.cbs.ontext?.(Iu(e)),this.startIndex=t}isInForeignContext(){return this.foreignContext[0]!==Nu.None}isVoidElement(e){return this.htmlMode&&Pu.has(e)}readTagName(e,t){const a=this.lowerCaseTagNames?this.getSlice(e,t).toLowerCase():this.getSlice(e,t);if(!this.lowerCaseTagNames||!this.htmlMode)return a;if(this.foreignContext[0]===Nu.Svg)return Fu.get(a)??a;if(this.foreignContext.length>1){const e=Fu.get(a);if(void 0!==e&&this.stack.includes(e))return e}return this.isInForeignContext()?a:"image"===a?"img":a}onopentagname(e,t){this.endIndex=t,this.emitOpenTag(this.readTagName(e,t))}emitOpenTag(e){if(this.openTagStart=this.startIndex,this.tagname=e,this.htmlMode&&"form"===e&&this.stack.includes("form"))return void(this.tagname="");const t=this.htmlMode&&$u.get(e);if(t)for(;this.stack.length>0&&t.has(this.stack[0]);)this.popElement(!0);this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&("svg"===e?this.foreignContext.unshift(Nu.Svg):"math"===e?this.foreignContext.unshift(Nu.MathML):Ru.has(e)&&this.foreignContext.unshift(Nu.None))),this.cbs.onopentagname?.(e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){this.startIndex=this.openTagStart,this.attribs&&(this.cbs.onopentag?.(this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){this.endIndex=t;const a=this.readTagName(e,t);if(this.isVoidElement(a))this.htmlMode&&"br"===a&&(this.cbs.onopentagname?.("br"),this.cbs.onopentag?.("br",{},!0),this.cbs.onclosetag?.("br",!1));else{const e=this.stack.indexOf(a);if(-1!==e){for(let t=0;t<e;t++)this.popElement(!0);this.popElement(!1)}else this.htmlMode&&"p"===a&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.isInForeignContext()?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}popElement(e){const t=this.stack.shift();this.htmlMode&&(Eu.has(t)||Ru.has(t))&&this.foreignContext.shift(),this.cbs.onclosetag?.(t,e)}closeCurrentTag(e){const t=this.tagname;this.endOpenTag(e),this.stack[0]===t&&this.popElement(!e)}onattribname(e,t){this.startIndex=e;const a=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?a.toLowerCase():a}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=Iu(e)}onattribend(e,t){this.endIndex=t,this.cbs.onattribute?.(this.attribname,this.attribvalue,e===bu.Double?'"':e===bu.Single?"'":e===bu.NoValue?void 0:null),this.attribs&&!Object.hasOwn(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(Wu);let a=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(a=a.toLowerCase()),a}ondeclaration(e,t){this.endIndex=t;const a=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.htmlMode?this.lowerCaseTagNames?"doctype":a.slice(0,7):this.getInstructionName(a);this.cbs.onprocessinginstruction(`!${e}`,`!${a}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const a=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(a);this.cbs.onprocessinginstruction(`?${e}`,`?${a}`)}this.startIndex=t+1}oncomment(e,t,a){this.endIndex=t,this.cbs.oncomment?.(this.getSlice(e,t-a)),this.cbs.oncommentend?.(),this.startIndex=t+1}oncdata(e,t,a){this.endIndex=t;const n=this.getSlice(e,t-a);!this.htmlMode||this.options.recognizeCDATA?(this.cbs.oncdatastart?.(),this.cbs.ontext?.(n),this.cbs.oncdataend?.()):this.isInForeignContext()?this.cbs.ontext?.(n):(this.cbs.oncomment?.(`[CDATA[${n}]]`),this.cbs.oncommentend?.()),this.startIndex=t+1}onend(){if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}this.cbs.onend?.()}reset(){this.cbs.onreset?.(),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,this.cbs.onparserinit?.(this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(Nu.None),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){if(e===t)return"";for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let a=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),a+=this.buffers[0].slice(0,t-this.bufferOffset);return a}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){this.ended?this.cbs.onerror?.(/* @__PURE__ */new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){this.ended?this.cbs.onerror?.(/* @__PURE__ */new Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}}}),ec=/* @__PURE__ */ye({CDATA:()=>Zu,Comment:()=>ju,Directive:()=>Ku,Doctype:()=>Ju,ElementType:()=>Vu,Root:()=>Uu,Script:()=>Gu,Style:()=>Qu,Tag:()=>qu,Text:()=>Yu,isTag:()=>tc});function tc(e){return e.type===Vu.Tag||e.type===Vu.Script||e.type===Vu.Style}var ac,nc,lc,sc,oc,ic,rc,uc,cc,dc=we(()=>{!function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(Vu||(Vu={})),Uu=Vu.Root,Yu=Vu.Text,Ku=Vu.Directive,ju=Vu.Comment,Gu=Vu.Script,Qu=Vu.Style,qu=Vu.Tag,Zu=Vu.CDATA,Ju=Vu.Doctype});function pc(e){return tc(e)}function fc(e){return e.type===Vu.CDATA}function hc(e){return e.type===Vu.Text}function mc(e){return e.type===Vu.Comment}function gc(e){return Object.hasOwn(e,"children")}function wc(e,t=!1){let a;if(hc(e))a=new lc(e.data);else if(mc(e))a=new sc(e.data);else if(pc(e)){const n=t?vc(e.children):[],l=new cc(e.name,{...e.attribs},n);for(const e of n)e.parent=l;null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]={...e["x-attribsPrefix"]}),a=l}else if(fc(e)){const n=t?vc(e.children):[],l=new rc(n);for(const e of n)e.parent=l;a=l}else if(function(e){return e.type===Vu.Root}(e)){const n=t?vc(e.children):[],l=new uc(n);for(const e of n)e.parent=l;e["x-mode"]&&(l["x-mode"]=e["x-mode"]),a=l}else{if(!function(e){return e.type===Vu.Directive}(e))throw new Error(`Not implemented yet: ${e.type}`);{const t=new oc(e.name,e.data);null!=e["x-name"]&&(t["x-name"]=e["x-name"],t["x-publicId"]=e["x-publicId"],t["x-systemId"]=e["x-systemId"]),a=t}}return a.startIndex=e.startIndex,a.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(a.sourceCodeLocation=e.sourceCodeLocation),a}function vc(e){const t=e.map(e=>wc(e,!0));for(let a=1;a<t.length;a++)t[a].prev=t[a-1],t[a-1].next=t[a];return t}var yc,bc,Ac=we(()=>{dc(),ac=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return wc(this,e)}},nc=class extends ac{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},lc=class extends nc{type=Vu.Text;get nodeType(){return 3}},sc=class extends nc{type=Vu.Comment;get nodeType(){return 8}},oc=class extends nc{type=Vu.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},ic=class extends ac{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},rc=class extends ic{type=Vu.CDATA;get nodeType(){return 4}},uc=class extends ic{type=Vu.Root;get nodeType(){return 9}},cc=class extends ic{name;attribs;type;constructor(e,t,a=[],n=("script"===e?Vu.Script:"style"===e?Vu.Style:Vu.Tag)){super(a),this.name=e,this.attribs=t,this.type=n}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this["x-attribsNamespace"]?.[e],prefix:this["x-attribsPrefix"]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}}),kc=we(()=>{dc(),Ac(),Ac(),yc={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},bc=class{dom=[];root=new uc(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,a){"function"==typeof t&&(a=t,t=yc),"object"==typeof e&&(t=e,e=void 0),this.callback=e??null,this.options=t??yc,this.elementCB=a??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new uc(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){const a=new cc(e,t,void 0,this.options.xmlMode?Vu.Tag:void 0);this.addNode(a),this.tagStack.push(a)}ontext(e){const{lastNode:t}=this;if(t&&t.type===Vu.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{const t=new lc(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===Vu.Comment)return void(this.lastNode.data+=e);const t=new sc(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){const e=new lc(""),t=new rc([e]);this.addNode(t),e.parent=t,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){const a=new oc(e,t);this.addNode(a)}handleCallback(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e}addNode(e){const t=this.tagStack[this.tagStack.length-1],a=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),a&&(e.prev=a,a.next=e),e.parent=t,this.lastNode=null}}});function _c(e,t,a=!0,n=Number.POSITIVE_INFINITY){return xc(e,Array.isArray(t)?t:[t],a,n)}function xc(e,t,a,n){const l=[],s=[Array.isArray(t)?t:[t]],o=[0];for(;;){if(o[0]>=s[0].length){if(1===o.length)return l;s.shift(),o.shift();continue}const t=s[0][o[0]++];if(e(t)&&(l.push(t),--n<=0))return l;a&&gc(t)&&t.children.length>0&&(o.unshift(0),s.unshift(t.children))}}function Cc(e,t,a=!0){const n=Array.isArray(t)?t:[t];for(const l of n){if(pc(l)&&e(l))return l;if(a&&gc(l)&&l.children.length>0){const t=Cc(e,l.children,!0);if(t)return t}}return null}function Sc(e,t){return(Array.isArray(t)?t:[t]).some(t=>pc(t)&&e(t)||gc(t)&&Sc(e,t.children))}function Ic(e,t){const a=[],n=[Array.isArray(t)?t:[t]],l=[0];for(;;){if(l[0]>=n[0].length){if(1===n.length)return a;n.shift(),l.shift();continue}const t=n[0][l[0]++];pc(t)&&e(t)&&a.push(t),gc(t)&&t.children.length>0&&(l.unshift(0),n.unshift(t.children))}}var Dc,Mc=we(()=>{kc()});function Tc(e,t){return"function"==typeof t?a=>pc(a)&&t(a.attribs[e]):a=>pc(a)&&a.attribs[e]===t}function Lc(e,t){return a=>e(a)||t(a)}function Oc(e){const t=Object.keys(e).map(t=>{const a=e[t];return Object.hasOwn(Dc,t)?Dc[t](a):Tc(t,a)});return 0===t.length?null:t.reduce(Lc)}function Bc(e,t){const a=Oc(e);return!a||a(t)}function $c(e,t,a,n=Number.POSITIVE_INFINITY){const l=Oc(e);return l?_c(l,t,a,n):[]}function Pc(e,t,a=!0){return Array.isArray(t)||(t=[t]),Cc(Tc("id",e),t,a)}function Ec(e,t,a=!0,n=Number.POSITIVE_INFINITY){return _c(Dc.tag_name(e),t,a,n)}function Rc(e,t,a=!0,n=Number.POSITIVE_INFINITY){return _c(Tc("class",e),t,a,n)}function Fc(e,t,a=!0,n=Number.POSITIVE_INFINITY){return _c(Dc.tag_type(e),t,a,n)}var Nc,Wc,Hc,Vc,Uc=we(()=>{kc(),Mc(),Dc={tag_name:e=>"function"==typeof e?t=>pc(t)&&e(t.name):"*"===e?pc:t=>pc(t)&&t.name===e,tag_type:e=>"function"==typeof e?t=>e(t.type):t=>t.type===e,tag_contains:e=>"function"==typeof e?t=>hc(t)&&e(t.data):t=>hc(t)&&t.data===e}});function Yc(e){let t,a=0;const{length:n}=e;for(let l=0;l<n;l++){const n=e.charCodeAt(l);if(n<128&&(!(1342177476>>>n&1)||n>=64||n<32))continue;if(void 0===t?t=e.substring(0,l):a!==l&&(t+=e.substring(a,l)),n<64){t+=Nc.get(n),a=l+1;continue}const s=Wc(e,l);t+=`&#x${s.toString(16)};`,s!==n&&l++,a=l+1}return void 0===t?e:(a<n&&(t+=e.substr(a)),t)}function Kc(e,t){return function(a){let n,l=0,s="";for(;n=e.exec(a);)l!==n.index&&(s+=a.substring(l,n.index)),s+=t.get(n[0].charCodeAt(0)),l=n.index+1;return s+a.substring(l)}}var jc,Gc,Qc,qc,Zc,Jc,zc,Xc,ed=we(()=>{Nc=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Wc="function"==typeof String.prototype.codePointAt?(e,t)=>e.codePointAt(t):(e,t)=>55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t),Hc=/* #__PURE__ */Kc(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Vc=/* #__PURE__ */Kc(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}),td=we(()=>{ed(),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(jc||(jc={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(Gc||(Gc={}))}),ad=we(()=>{Qc=new Map("altGlyph altGlyphDef altGlyphItem animateColor animateMotion animateTransform clipPath feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence foreignObject glyphRef linearGradient radialGradient textPath".split(" ").map(e=>[e.toLowerCase(),e])),qc=new Map("definitionURL attributeName attributeType baseFrequency baseProfile calcMode clipPathUnits diffuseConstant edgeMode filterUnits glyphRef gradientTransform gradientUnits kernelMatrix kernelUnitLength keyPoints keySplines keyTimes lengthAdjust limitingConeAngle markerHeight markerUnits markerWidth maskContentUnits maskUnits numOctaves pathLength patternContentUnits patternTransform patternUnits pointsAtX pointsAtY pointsAtZ preserveAlpha preserveAspectRatio primitiveUnits refX refY repeatCount repeatDur requiredExtensions requiredFeatures specularConstant specularExponent spreadMethod startOffset stdDeviation stitchTiles surfaceScale systemLanguage tableValues targetX targetY textLength viewBox viewTarget xChannelSelector yChannelSelector zoomAndPan".split(" ").map(e=>[e.toLowerCase(),e]))});function nd(e,t,a){let n="";for(let l=0;l<e.length;l++)n+=ld(e[l],t,a);return n}function ld(e,t,a){switch(e.type){case Uu:return nd(e.children,t,a);case Ku:return`<${e.data}>`;case ju:return`\x3c!--${e.data}--\x3e`;case Zu:return`<![CDATA[${e.children[0].data}]]>`;case Gu:case Qu:case qu:return function(e,t,a){"foreign"===a&&(e.name=Qc.get(e.name)??e.name,e.parent&&Xc.has(e.parent.name)&&(a=!1)),!a&&zc.has(e.name)&&(a="foreign");const{name:n,children:l}=e,s=!a&&Jc.has(n);let o=`<${n}${function(e,t,a){if(!e)return"";const n=!1===(t.encodeEntities??t.decodeEntities)?sd:a||"utf8"!==t.encodeEntities?Yc:Hc,l="foreign"===a,s=!!(t.emptyAttrs??a);let o="";for(const i in e){if(!Object.hasOwn(e,i))continue;const t=e[i],a=l?qc.get(i)??i:i;o+=s||null!=t&&""!==t?` ${a}="${n(null==t?"":String(t))}"`:` ${a}`}return o}(e.attribs,t,a)}`;return 0===l.length&&(a?!1!==t.selfClosingTags:t.selfClosingTags&&s)?o+=a?"/>":" />":(o+=">",l.length>0&&(o+=nd(l,t,a)),s||(o+=`</${n}>`)),o}(e,t,a);case Yu:{const n=e,l=n.data||"";return!1===(t.encodeEntities??t.decodeEntities)||!a&&n.parent&&Zc.has(n.parent.name)?l:a||"utf8"!==t.encodeEntities?Yc(l):Vc(l)}}}function sd(e){return e.replaceAll('"',""")}var od=we(()=>{dc(),td(),ad(),Zc=new Set("style script xmp iframe noembed noframes plaintext noscript".split(" ")),Jc=new Set("area base basefont br col command embed frame hr img input isindex keygen link meta param source track wbr".split(" ")),zc=new Set(["svg","math"]),Xc=new Set("mi mo mn ms mtext annotation-xml foreignObject desc title".split(" "))});function id(e,t){return function(e,t={}){const a="length"in e?e:[e],n=t.xmlMode??!1;let l="";for(let s=0;s<a.length;s++)l+=ld(a[s],t,n);return l}(e,t)}function rd(e,t){return gc(e)?e.children.map(e=>id(e,t)).join(""):""}function ud(e){return Array.isArray(e)?e.map(ud).join(""):pc(e)?"br"===e.name?"\n":ud(e.children):fc(e)?ud(e.children):hc(e)?e.data:""}function cd(e){return Array.isArray(e)?e.map(cd).join(""):gc(e)&&!mc(e)?cd(e.children):hc(e)?e.data:""}function dd(e){return Array.isArray(e)?e.map(dd).join(""):gc(e)&&(e.type===Vu.Tag||fc(e))?dd(e.children):hc(e)?e.data:""}var pd,fd,hd=we(()=>{od(),dc(),kc()});function md(e){const t=wd(bd,e);return t?"feed"===t.name?function(e){const t=e.children,a={type:"atom",items:Ec("entry",t).map(e=>{const{children:t}=e,a={media:gd(t)};yd(a,"id","id",t),yd(a,"title","title",t);const n=wd("link",t)?.attribs.href;n&&(a.link=n);const l=vd("summary",t)||vd("content",t);l&&(a.description=l);const s=vd("updated",t);return s&&(a.pubDate=new Date(s)),a})};yd(a,"id","id",t),yd(a,"title","title",t);const n=wd("link",t)?.attribs.href;n&&(a.link=n),yd(a,"description","subtitle",t);const l=vd("updated",t);return l&&(a.updated=new Date(l)),yd(a,"author","email",t,!0),a}(t):function(e){const t=wd("channel",e.children)?.children??[],a={type:e.name.substr(0,3),id:"",items:Ec("item",e.children).map(e=>{const{children:t}=e,a={media:gd(t)};yd(a,"id","guid",t),yd(a,"title","title",t),yd(a,"link","link",t),yd(a,"description","description",t);const n=vd("pubDate",t)||vd("dc:date",t);return n&&(a.pubDate=new Date(n)),a})};yd(a,"title","title",t),yd(a,"link","link",t),yd(a,"description","description",t);const n=vd("lastBuildDate",t);return n&&(a.updated=new Date(n)),yd(a,"author","managingEditor",t,!0),a}(t):null}function gd(e){return Ec("media:content",e).map(e=>{const{attribs:t}=e,a={medium:t.medium,isDefault:!!t.isDefault};for(const n of pd)t[n]&&(a[n]=t[n]);for(const n of fd)t[n]&&(a[n]=Number.parseInt(t[n],10));return t.expression&&(a.expression=t.expression),a})}function wd(e,t){return Ec(e,t,!0,1)[0]}function vd(e,t,a=!1){return cd(Ec(e,t,a,1)).trim()}function yd(e,t,a,n,l=!1){const s=vd(a,n,l);s&&(e[t]=s)}function bd(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}var Ad,kd=we(()=>{Uc(),hd(),pd=["url","type","lang"],fd=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"]});function _d(e){let t=e.length;for(;--t>=0;){const a=e[t];if(t>0&&e.lastIndexOf(a,t-1)>=0)e.splice(t,1);else for(let n=a.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e}function xd(e,t){const a=[],n=[];if(e===t)return 0;let l=gc(e)?e:e.parent;for(;l;)a.unshift(l),l=l.parent;for(l=gc(t)?t:t.parent;l;)n.unshift(l),l=l.parent;const s=Math.min(a.length,n.length);let o=0;for(;o<s&&a[o]===n[o];)o++;if(0===o)return Ad.DISCONNECTED;const i=a[o-1],r=i.children,u=a[o],c=n[o];return r.indexOf(u)>r.indexOf(c)?i===t?Ad.FOLLOWING|Ad.CONTAINED_BY:Ad.FOLLOWING:i===e?Ad.PRECEDING|Ad.CONTAINS:Ad.PRECEDING}function Cd(e){return(e=e.filter((e,t,a)=>!a.includes(e,t+1))).sort((e,t)=>{const a=xd(e,t);return a&Ad.PRECEDING?-1:a&Ad.FOLLOWING?1:0}),e}var Sd=we(()=>{kc(),function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(Ad||(Ad={}))});function Id(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,a=t.lastIndexOf(e);-1!==a&&t.splice(a,1)}e.next=null,e.prev=null,e.parent=null}function Dd(e,t){if(t.prev=e.prev,t.prev&&(t.prev.next=t),t.next=e.next,t.next&&(t.next.prev=t),t.parent=e.parent,t.parent){const{children:a}=t.parent,n=a.lastIndexOf(e);if(-1===n)return;a[n]=t,e.parent=null}}function Md(e,t){if(Id(t),t.next=null,t.parent=e,e.children.push(t)>1){const a=e.children[e.children.length-2];a.next=t,t.prev=a}else t.prev=null}function Td(e,t){Id(t);const{parent:a}=e,n=e.next;if(t.next=n,t.prev=e,e.next=t,t.parent=a,n){if(n.prev=t,a){const e=a.children;e.splice(e.lastIndexOf(n),0,t)}}else a&&a.children.push(t)}function Ld(e,t){if(Id(t),t.parent=e,t.prev=null,1===e.children.unshift(t))t.next=null;else{const a=e.children[1];a.prev=t,t.next=a}}function Od(e,t){Id(t);const{parent:a}=e;if(a){const n=a.children;n.splice(n.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=a,t.prev=e.prev,t.next=e,e.prev=t}var Bd=we(()=>{});function $d(e){return gc(e)?e.children:[]}function Pd(e){return e.parent||null}function Ed(e){const t=Pd(e);if(null!=t)return $d(t);const a=[e];let{prev:n,next:l}=e;for(;null!=n;)a.unshift(n),({prev:n}=n);for(;null!=l;)a.push(l),({next:l}=l);return a}function Rd(e,t){const{attribs:a}=e;return a?.[t]}function Fd(e,t){const{attribs:a}=e;return null!=a&&Object.hasOwn(a,t)&&null!=a[t]}function Nd(e){return e.name}function Wd(e){let{next:t}=e;for(;null!==t&&!pc(t);)({next:t}=t);return t}function Hd(e){let{prev:t}=e;for(;null!==t&&!pc(t);)({prev:t}=t);return t}var Vd,Ud=we(()=>{kc()}),Yd=/* @__PURE__ */ye({DocumentPosition:()=>Ad,append:()=>Td,appendChild:()=>Md,compareDocumentPosition:()=>xd,existsOne:()=>Sc,filter:()=>_c,find:()=>xc,findAll:()=>Ic,findOne:()=>Cc,getAttributeValue:()=>Rd,getChildren:()=>$d,getElementById:()=>Pc,getElements:()=>$c,getElementsByClassName:()=>Rc,getElementsByTagName:()=>Ec,getElementsByTagType:()=>Fc,getFeed:()=>md,getInnerHTML:()=>rd,getName:()=>Nd,getOuterHTML:()=>id,getParent:()=>Pd,getSiblings:()=>Ed,getText:()=>ud,hasAttrib:()=>Fd,innerText:()=>dd,nextElementSibling:()=>Wd,prepend:()=>Od,prependChild:()=>Ld,prevElementSibling:()=>Hd,removeElement:()=>Id,removeSubsets:()=>_d,replaceElement:()=>Dd,testElement:()=>Bc,textContent:()=>cd,uniqueSort:()=>Cd}),Kd=we(()=>{kd(),Sd(),Uc(),Bd(),Mc(),hd(),Ud()}),jd=/* @__PURE__ */ye({DefaultHandler:()=>bc,DomHandler:()=>bc,DomUtils:()=>Yd,ElementType:()=>ec,Parser:()=>Hu,QuoteType:()=>bu,Tokenizer:()=>_u,createDocumentStream:()=>Qd,getFeed:()=>md,parseDocument:()=>Gd,parseFeed:()=>qd});function Gd(e,t){const a=new bc(void 0,t);return new Hu(a,t).end(e),a.root}function Qd(e,t,a){const n=new bc(t=>e(t,n.root),t,a);return new Hu(n,t)}function qd(e,t=Vd){return md(Gd(e,t).children)}var Zd=we(()=>{Xu(),kc(),dc(),zu(),Kd(),Vd={xmlMode:!0}}),Jd=/* @__PURE__ */ve((e,t)=>{t.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}}),zd=/* @__PURE__ */ve(e=>{function t(e){return"[object Object]"===Object.prototype.toString.call(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isPlainObject=function(e){var a,n;return!1!==t(e)&&(void 0===(a=e.constructor)||!1!==t(n=a.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}}),Xd=/* @__PURE__ */ve((e,t)=>{var a=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function l(e,t){return!1!==t.clone&&t.isMergeableObject(e)?r((a=e,Array.isArray(a)?[]:{}),e,t):e;var a}function s(e,t,a){return e.concat(t).map(function(e){return l(e,a)})}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}(e))}function i(e,t){try{return t in e}catch(a){return!1}}function r(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||s,n.isMergeableObject=n.isMergeableObject||a,n.cloneUnlessOtherwiseSpecified=l;var u=Array.isArray(t);return u!==Array.isArray(e)?l(t,n):u?n.arrayMerge(e,t,n):function(e,t,a){var n={};return a.isMergeableObject(e)&&o(e).forEach(function(t){n[t]=l(e[t],a)}),o(t).forEach(function(s){(function(e,t){return i(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,s)||(i(e,s)&&a.isMergeableObject(t[s])?n[s]=function(e,t){if(!t.customMerge)return r;var a=t.customMerge(e);return"function"==typeof a?a:r}(s,a)(e[s],t[s],a):n[s]=l(t[s],a))}),n}(e,t,n)}r.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,a){return r(e,a,t)},{})};var u=r;t.exports=u}),ep=/* @__PURE__ */ve((e,t)=>{var a,n;a=e,n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function a(t){var a,n=t.exec(e.substring(m));if(n)return a=n[0],m+=a.length,a}for(var n,l,s,o,i,r=e.length,u=/^[ \t\n\r\u000c]+/,c=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,f=/^\d+$/,h=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,m=0,g=[];;){if(a(c),m>=r)return g;n=a(d),l=[],","===n.slice(-1)?(n=n.replace(p,""),v()):w()}function w(){for(a(u),s="",o="in descriptor";;){if(i=e.charAt(m),"in descriptor"===o)if(t(i))s&&(l.push(s),s="",o="after descriptor");else{if(","===i)return m+=1,s&&l.push(s),void v();if("("===i)s+=i,o="in parens";else{if(""===i)return s&&l.push(s),void v();s+=i}}else if("in parens"===o)if(")"===i)s+=i,o="in descriptor";else{if(""===i)return l.push(s),void v();s+=i}else if("after descriptor"===o)if(t(i));else{if(""===i)return void v();o="in descriptor",m-=1}m+=1}}function v(){var e,t,a,s,o,i,r,u,c,d=!1,p={};for(s=0;s<l.length;s++)i=(o=l[s])[o.length-1],r=o.substring(0,o.length-1),u=parseInt(r,10),c=parseFloat(r),f.test(r)&&"w"===i?((e||t)&&(d=!0),0===u?d=!0:e=u):h.test(r)&&"x"===i?((e||t||a)&&(d=!0),c<0?d=!0:t=c):f.test(r)&&"h"===i?((a||t)&&(d=!0),0===u?d=!0:a=u):d=!0;d?console&&console.log:(p.url=n,e&&(p.w=e),t&&(p.d=t),a&&(p.h=a),g.push(p))}}},"function"==typeof define&&define.amd?define([],n):"object"==typeof t&&t.exports?t.exports=n():a.parseSrcset=n()}),tp=/* @__PURE__ */ve((e,t)=>{var a=String,n=function(){return{isColorSupported:!1,reset:a,bold:a,dim:a,italic:a,underline:a,inverse:a,hidden:a,strikethrough:a,black:a,red:a,green:a,yellow:a,blue:a,magenta:a,cyan:a,white:a,gray:a,bgBlack:a,bgRed:a,bgGreen:a,bgYellow:a,bgBlue:a,bgMagenta:a,bgCyan:a,bgWhite:a,blackBright:a,redBright:a,greenBright:a,yellowBright:a,blueBright:a,magentaBright:a,cyanBright:a,whiteBright:a,bgBlackBright:a,bgRedBright:a,bgGreenBright:a,bgYellowBright:a,bgBlueBright:a,bgMagentaBright:a,bgCyanBright:a,bgWhiteBright:a}};t.exports=n(),t.exports.createColors=n}),ap=/* @__PURE__ */ve((e,t)=>{t.exports={}}),np=/* @__PURE__ */ve((e,t)=>{var a=tp(),n=ap(),l=class e extends Error{constructor(t,a,n,l,s,o){super(t),this.name="CssSyntaxError",this.reason=t,s&&(this.file=s),l&&(this.source=l),o&&(this.plugin=o),void 0!==a&&void 0!==n&&("number"==typeof a?(this.line=a,this.column=n):(this.line=a.line,this.column=a.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;null==e&&(e=a.isColorSupported);let l=e=>e,s=e=>e,o=e=>e;if(e){let{bold:e,gray:t,red:i}=a.createColors(!0);s=t=>e(i(t)),l=e=>t(e),n&&(o=e=>n(e))}let i=t.split(/\r?\n/),r=Math.max(this.line-3,0),u=Math.min(this.line+2,i.length),c=String(u).length;return i.slice(r,u).map((e,t)=>{let a=r+1+t,n=" "+(" "+a).slice(-c)+" | ";if(a===this.line){if(e.length>160){let t=20,a=Math.max(0,this.column-t),i=Math.max(this.column+t,this.endColumn+t),r=e.slice(a,i),u=l(n.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return s(">")+l(n)+o(r)+"\n "+u+s("^")}let t=l(n.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return s(">")+l(n)+o(e)+"\n "+t+s("^")}return" "+l(n)+o(e)}).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}};t.exports=l,l.default=l}),lp=/* @__PURE__ */ve((e,t)=>{var a=/(<)(\/?style\b)/gi,n=/(<)(!--)/g,l=/[\t\n\f\r "#'()/;[\\\]{}]/;function s(e){return"string"!=typeof e?e:e.includes("<")?e.replace(a,"\\3c $2").replace(n,"\\3c $2"):e}var o={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function i(e,t){let a="@"+t.name,n=t.params?e.rawValue(t,"params"):"",s=t.raws.afterName;return void 0===s?s=n?" ":"":""===s&&n&&!l.test(n[0])&&(s=" "),a+s+n}function r(e,t,a){let n=a.nodes,l=n.length-1;for(;l>0&&"comment"===n[l].type;)l-=1;let s=e.raw(a,"semicolon"),o="document"===a.type;for(let i=n.length-1;i>=0;i--){let e=n[i],a=l!==i||s;!a&&i<n.length-1&&("atrule"===e.type&&!e.nodes||"decl"===e.type&&e.prop.startsWith("--"))&&(a=!0),t.push({document:o,node:e,semicolon:a})}}function u(e,t,a,n){let l=e.raw(a,"between","beforeOpen");e.builder(s(n+l)+"{",a,"start");let o=a.nodes&&a.nodes.length,i=()=>{let t=o?e.raw(a,"after"):e.raw(a,"after","emptyBody");t&&e.builder(s(t)),e.builder("}",a,"end"),"rule"===a.type&&a.raws.ownSemicolon&&e.builder(s(a.raws.ownSemicolon),a,"end")};o?(t.push(i),r(e,t,a)):i()}var c=class e{constructor(e){this.builder=e}atrule(e,t){let a=i(this,e);if(e.nodes)this.block(e,a);else{let n=(e.raws.between||"")+(t?";":"");this.builder(s(a+n),e)}}beforeAfter(e,t){let a;a="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");let n=e.parent,l=0;for(;n&&"root"!==n.type;)l+=1,n=n.parent;if(a.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<l;e++)a+=t}return a}block(e,t){let a,n=this.raw(e,"between","beforeOpen");this.builder(s(t+n)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),a=this.raw(e,"after")):a=this.raw(e,"after","emptyBody"),a&&this.builder(s(a)),this.builder("}",e,"end")}body(t){let a=e.prototype,n=["atrule","block","body","rule","stringify"].every(e=>this[e]===a[e]),l=[];for(r(this,l,t);l.length>0;){let e=l.pop();if("function"==typeof e){e();continue}let t=e.node,a=this.raw(t,"before");a&&this.builder(e.document?a:s(a)),n&&"rule"===t.type?u(this,l,t,this.rawValue(t,"selector")):n&&"atrule"===t.type&&t.nodes?u(this,l,t,i(this,t)):this.stringify(t,e.semicolon)}}comment(e){let t=this.raw(e,"left","commentLeft"),a=this.raw(e,"right","commentRight");this.builder(s("/*"+t+e.text+a+"*/"),e)}decl(e,t){let a=e.raws,n=this.raw(e,"between","colon"),l=e.prop+n+this.rawValue(e,"value");e.important&&(l+=a.important||" !important"),t&&(l+=";"),this.builder(s(l),e)}document(e){this.body(e)}raw(e,t,a){let n;if(a||(a=t),t&&(n=e.raws[t],void 0!==n))return n;let l=e.parent;if("before"===a){if(!l||"root"===l.type&&l.first===e)return"";if(l&&"document"===l.type)return""}if(!l)return o[a];let s=e.root(),i=s.rawCache||(s.rawCache={});if(void 0!==i[a])return i[a];if("before"===a||"after"===a)return this.beforeAfter(e,a);{let l="raw"+((r=a)[0].toUpperCase()+r.slice(1));this[l]?n=this[l](s,e):s.walk(e=>{if(n=e.raws[t],void 0!==n)return!1})}var r;return void 0===n&&(n=o[a]),i[a]=n,n}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&void 0!==e.raws.after)return t=e.raws.after,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let a;return e.walkComments(e=>{if(void 0!==e.raws.before)return a=e.raws.before,a.includes("\n")&&(a=a.replace(/[^\n]+$/,"")),!1}),void 0===a?a=this.raw(t,null,"beforeDecl"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeDecl(e,t){let a;return e.walkDecls(e=>{if(void 0!==e.raws.before)return a=e.raws.before,a.includes("\n")&&(a=a.replace(/[^\n]+$/,"")),!1}),void 0===a?a=this.raw(t,null,"beforeRule"):a&&(a=a.replace(/\S/g,"")),a}rawBeforeOpen(e){let t;return e.walk(e=>{if("decl"!==e.type&&(t=e.raws.between,void 0!==t))return!1}),t}rawBeforeRule(e){let t;return e.walk(a=>{if(a.nodes&&(a.parent!==e||e.first!==a)&&void 0!==a.raws.before)return t=a.raws.before,t.includes("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(e=>{if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&0===e.nodes.length&&(t=e.raws.after,void 0!==t))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(a=>{let n=a.parent;if(n&&n!==e&&n.parent&&n.parent===e&&void 0!==a.raws.before){let e=a.raws.before.split("\n");return t=e[e.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&"decl"===e.last.type&&(t=e.raws.semicolon,void 0!==t))return!1}),t}rawValue(e,t){let a=e[t],n=e.raws[t];return n&&n.value===a?n.raw:a}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,a=e.parent&&"document"===e.parent.type;this.builder(a?t:s(t))}}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(s(e.raws.ownSemicolon),e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};t.exports=c,c.default=c}),sp=/* @__PURE__ */ve((e,t)=>{var a=lp();function n(e,t){new a(t).stringify(e)}t.exports=n,n.default=n}),op=/* @__PURE__ */ve((e,t)=>{t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")}),ip=/* @__PURE__ */ve((e,t)=>{var a=np(),n=lp(),l=sp(),{isClean:s,my:o}=op();function i(e,t){if(t&&void 0!==t.offset)return t.offset;let a=1,n=1,l=0;for(let s=0;s<e.length;s++){if(n===t.line&&a===t.column){l=s;break}"\n"===e[s]?(a=1,n+=1):a+=1}return l}var r=class e{get proxyOf(){return this}constructor(e={}){this.raws={},this[s]=!1,this[o]=!0;for(let t of Object.keys(e))if("__proto__"!==t)if("nodes"===t){this.nodes=[];for(let a of e[t])"function"==typeof a.clone&&a.parent?this.append(a.clone()):this.append(a)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=function(e){let t=new e.constructor,a=[[e,t,void 0]];for(;a.length>0;){let[e,t,n]=a.pop();for(let l in e){if(!Object.prototype.hasOwnProperty.call(e,l))continue;if("proxyCache"===l)continue;let s=e[l],o=typeof s;if("parent"===l&&"object"===o)n&&(t[l]=n);else if("source"===l)t[l]=s;else if(Array.isArray(s)){let e=[];t[l]=e;for(let n of s){let l=new n.constructor;e.push(l),a.push([n,l,t])}}else{if("object"===o&&null!==s){let e=new s.constructor;a.push([s,e,void 0]),s=e}t[l]=s}}}return t}(this);for(let a in e)t[a]=e[a];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:a,start:n}=this.rangeBy(t);return this.source.input.error(e,{column:n.column,line:n.line},{column:a.column,line:a.line},t)}return new a(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,a)=>(e[t]===a||(e[t]=a,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[s]=!0}markDirty(){if(this[s]){this[s]=!1;let e=this;for(;e=e.parent;)e[s]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,a={column:this.source.start.column,line:this.source.start.line,offset:i(t,this.source.start)};if(e.index)a=this.positionInside(e.index);else if(e.word){let n=t.slice(i(t,this.source.start),i(t,this.source.end)).indexOf(e.word);-1!==n&&(a=this.positionInside(n))}return a}positionInside(e){let t=this.source.start.column,a=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,l=i(n,this.source.start),s=l+e;for(let o=l;o<s;o++)"\n"===n[o]?(t=1,a+=1):t+=1;return{column:t,line:a,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,a={column:this.source.start.column,line:this.source.start.line,offset:i(t,this.source.start)},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:"number"==typeof this.source.end.offset?this.source.end.offset:i(t,this.source.end)+1}:{column:a.column+1,line:a.line,offset:a.offset+1};if(e.word){let l=t.slice(i(t,this.source.start),i(t,this.source.end)).indexOf(e.word);-1!==l&&(a=this.positionInside(l),n=this.positionInside(l+e.word.length))}else e.start?a={column:e.start.column,line:e.start.line,offset:i(t,e.start)}:"number"==typeof e.index&&(a=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line,offset:i(t,e.end)}:"number"==typeof e.endIndex?n=this.positionInside(e.endIndex):"number"==typeof e.index&&(n=this.positionInside(e.index+1));return(n.line<a.line||n.line===a.line&&n.column<=a.column)&&(n={column:a.column+1,line:a.line,offset:a.offset+1}),{end:n,start:a}}raw(e,t){return(new n).raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,a=!1;for(let n of e)n===this?a=!0:a?(this.parent.insertAfter(t,n),t=n):this.parent.insertBefore(t,n);a||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(t,a){let n=null==a;a=a||/* @__PURE__ */new Map;let l=[],s=[[this,l,0]];for(let i=0;i<s.length;i++){let[t,n,l]=s[i],o={};n[l]=o;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;if("parent"===i||"proxyCache"===i)continue;let n=t[i];if(Array.isArray(n)){let t=[];o[i]=t;for(let l=0;l<n.length;l++){let o=n[l];"object"==typeof o&&o.toJSON?o.toJSON===e.prototype.toJSON?s.push([o,t,l]):t[l]=o.toJSON(null,a):t[l]=o}}else if("object"==typeof n&&n.toJSON)n.toJSON===e.prototype.toJSON?s.push([n,o,i]):o[i]=n.toJSON(null,a);else if("source"===i){if(null==n)continue;let e=a.get(n.input);null==e&&(e=a.size,a.set(n.input,e)),o[i]={end:n.end,inputId:e,start:n.start}}else o[i]=n}}let o=l[0];return n&&(o.inputs=[...a.keys()].map(e=>e.toJSON())),o}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=l){e.stringify&&(e=e.stringify);let t="";return e(this,e=>{t+=e}),t}warn(e,t,a={}){let n={node:this};for(let l in a)n[l]=a[l];return e.warn(t,n)}};t.exports=r,r.default=r}),rp=/* @__PURE__ */ve((e,t)=>{var a=ip(),n=class extends a{constructor(e){super(e),this.type="comment"}};t.exports=n,n.default=n}),up=/* @__PURE__ */ve((e,t)=>{var a=ip(),n=class extends a{get variable(){return this.prop.startsWith("--")||"$"===this.prop[0]}constructor(e){e&&void 0!==e.value&&"string"!=typeof e.value&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};t.exports=n,n.default=n}),cp=/* @__PURE__ */ve((e,t)=>{var a,n,l,s,o=rp(),i=up(),r=ip(),{isClean:u,my:c}=op(),d=class e extends r{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(t){let a=[this];for(;a.length>0;){let n=a.pop();if(n===this||n.cleanRaws===e.prototype.cleanRaws){if(r.prototype.cleanRaws.call(n,t),n.nodes)for(let e of n.nodes)a.push(e)}else n.cleanRaws(t)}}each(e){if(!this.proxyOf.nodes)return;let t,a,n=this.getIterator();for(;this.indexes[n]<this.proxyOf.nodes.length&&(t=this.indexes[n],a=e(this.proxyOf.nodes[t],t),!1!==a);)this.indexes[n]+=1;return delete this.indexes[n],a}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:e[t]?"each"===t||"string"==typeof t&&t.startsWith("walk")?(...a)=>e[t](...a.map(e=>"function"==typeof e?(t,a)=>e(t.toProxy(),a):e)):"every"===t||"some"===t?a=>e[t]((e,...t)=>a(e.toProxy(),...t)):"root"===t?()=>e.root().toProxy():"nodes"===t?e.nodes.map(e=>e.toProxy()):"first"===t||"last"===t?e[t].toProxy():e[t]:e[t],set:(e,t,a)=>(e[t]===a||(e[t]=a,"name"!==t&&"params"!==t&&"selector"!==t||e.markDirty()),!0)}}index(e){return"number"==typeof e?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let a,n=this.index(e),l=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let s of l)this.proxyOf.nodes.splice(n+1,0,s);for(let s in this.indexes)a=this.indexes[s],n<a&&(this.indexes[s]=a+l.length);return this.markDirty(),this}insertBefore(e,t){let a,n=this.index(e),l=0===n&&"prepend",s=this.normalize(t,this.proxyOf.nodes[n],l).reverse();n=this.index(e);for(let o of s)this.proxyOf.nodes.splice(n,0,o);for(let o in this.indexes)a=this.indexes[o],n<=a&&(this.indexes[o]=a+s.length);return this.markDirty(),this}normalize(t,l){if("string"==typeof t)t=function(e){let t=e.slice();for(;t.length>0;){let e=t.pop();if(delete e.source,e.nodes){e.nodes=e.nodes.slice();for(let a of e.nodes)t.push(a)}}return e.slice()}(n(t).nodes);else if(void 0===t)t=[];else if(Array.isArray(t)){t=t.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if("root"===t.type&&"document"!==this.type){t=t.nodes.slice(0);for(let e of t)e.parent&&e.parent.removeChild(e,"ignore")}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new i(t)]}else if(t.selector||t.selectors)t=[new s(t)];else if(t.name)t=[new a(t)];else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new o(t)]}return t.map(t=>(t[c]||e.rebuild(t),(t=t.proxyOf).parent&&t.parent.removeChild(t),t[u]&&function(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.proxyOf.nodes)for(let a of e.proxyOf.nodes)t.push(a)}}(t),t.raws||(t.raws={}),void 0===t.raws.before&&l&&void 0!==l.raws.before&&(t.raws.before=l.raws.before.replace(/\S/g,"")),t.parent=this.proxyOf,t))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){let t;e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);for(let a in this.indexes)t=this.indexes[a],t>=e&&(this.indexes[a]=t-1);return this.markDirty(),this}replaceValues(e,t,a){return a||(a=t,t={}),this.walkDecls(n=>{t.props&&!t.props.includes(n.prop)||t.fast&&!n.value.includes(t.fast)||(n.value=n.value.replace(e,a))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){if(!this.proxyOf.nodes)return;let t=[{iterator:this.getIterator(),node:this.proxyOf}];for(;t.length>0;){let{iterator:a,node:n}=t[t.length-1],l=n.indexes[a];if(l>=n.proxyOf.nodes.length){delete n.indexes[a],t.pop();let e=t[t.length-1];e&&(e.node.indexes[e.iterator]+=1);continue}let s,o=n.proxyOf.nodes[l];try{s=e(o,l)}catch(jC){throw o.addToError(jC)}if(!1===s){for(let e of t)delete e.node.indexes[e.iterator];return!1}o.walk&&o.proxyOf.nodes?t.push({iterator:o.getIterator(),node:o}):n.indexes[a]+=1}}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((a,n)=>{if("atrule"===a.type&&e.test(a.name))return t(a,n)}):this.walk((a,n)=>{if("atrule"===a.type&&a.name===e)return t(a,n)}):(t=e,this.walk((e,a)=>{if("atrule"===e.type)return t(e,a)}))}walkComments(e){return this.walk((t,a)=>{if("comment"===t.type)return e(t,a)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((a,n)=>{if("decl"===a.type&&e.test(a.prop))return t(a,n)}):this.walk((a,n)=>{if("decl"===a.type&&a.prop===e)return t(a,n)}):(t=e,this.walk((e,a)=>{if("decl"===e.type)return t(e,a)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((a,n)=>{if("rule"===a.type&&e.test(a.selector))return t(a,n)}):this.walk((a,n)=>{if("rule"===a.type&&a.selector===e)return t(a,n)}):(t=e,this.walk((e,a)=>{if("rule"===e.type)return t(e,a)}))}};d.registerParse=e=>{n=e},d.registerRule=e=>{s=e},d.registerAtRule=e=>{a=e},d.registerRoot=e=>{l=e},t.exports=d,d.default=d,d.rebuild=e=>{let t=[e];for(;t.length>0;){let e=t.pop();if("atrule"===e.type?Object.setPrototypeOf(e,a.prototype):"rule"===e.type?Object.setPrototypeOf(e,s.prototype):"decl"===e.type?Object.setPrototypeOf(e,i.prototype):"comment"===e.type?Object.setPrototypeOf(e,o.prototype):"root"===e.type&&Object.setPrototypeOf(e,l.prototype),e[c]=!0,e.nodes)for(let a of e.nodes)t.push(a)}}}),dp=/* @__PURE__ */ve((e,t)=>{var a=cp(),n=class extends a{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};t.exports=n,n.default=n,a.registerAtRule(n)}),pp=/* @__PURE__ */ve((e,t)=>{var a,n,l=cp(),s=class extends l{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new a(new n,this,e).stringify()}};s.registerLazyResult=e=>{a=e},s.registerProcessor=e=>{n=e},t.exports=s,s.default=s}),fp=/* @__PURE__ */ve((e,t)=>{t.exports={nanoid:(e=21)=>{let t="",a=0|e;for(;a-- >0;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(a=t)=>{let n="",l=0|a;for(;l-- >0;)n+=e[Math.random()*e.length|0];return n}}}),hp=/* @__PURE__ */ve((e,t)=>{var{existsSync:a,readFileSync:n}=ap(),{dirname:l,isAbsolute:s,join:o,relative:i,sep:r}=ap(),{SourceMapConsumer:u,SourceMapGenerator:c}=ap(),d=class{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let a=t.map?t.map.prev:void 0,n=this.loadMap(t.from,a);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=l(this.mapFile)),n&&(this.text=n)}consumer(){return this.consumerCache||(this.consumerCache=new u(this.json||this.text)),this.consumerCache}decodeInline(e){let t=e.match(/^data:application\/json;charset=utf-?8,/)||e.match(/^data:application\/json,/);if(t)return decodeURIComponent(e.substr(t[0].length));let a=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(a)return n=e.substr(a[0].length),Buffer?Buffer.from(n,"base64").toString():window.atob(n);var n;let l=e.slice(22);throw l=l.slice(0,l.indexOf(",")),new Error("Unsupported source map encoding "+l)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return"object"==typeof e&&("string"==typeof e.mappings||"string"==typeof e._mappings||Array.isArray(e.sections))}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let a=e.lastIndexOf(t.pop()),n=e.indexOf("*/",a);a>-1&&n>-1&&(this.annotation=this.getAnnotationURL(e.substring(a,n)))}loadFile(e,t,o){if(!o&&!this.unsafeMap){if(!/\.map$/i.test(e))return;if(!t)return;let a=i(l(t),e);if(".."===a||a.startsWith(".."+r)||s(a))return}if(this.root=l(e),a(e))return this.mapFile=e,n(e,"utf-8").toString().trim()}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof u)return c.fromSourceMap(t).toString();if(t instanceof c)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let a=t(e);if(a){let t=this.loadFile(a,e,!0);if(!t)throw new Error("Unable to load previous source map: "+a.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=o(l(e),t));let a=this.loadFile(t,e,!1);if(a)try{this.json=JSON.parse(a.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return a}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};t.exports=d,d.default=d}),mp=/* @__PURE__ */ve((e,t)=>{var{nanoid:a}=fp(),{isAbsolute:n,resolve:l}=ap(),{SourceMapConsumer:s,SourceMapGenerator:o}=ap(),{fileURLToPath:i,pathToFileURL:r}=ap(),u=np(),c=hp(),d=ap(),p=Symbol("lineToIndexCache"),f=Boolean(s&&o),h=Boolean(l&&n);function m(e){if(e[p])return e[p];let t=e.css.split("\n"),a=new Array(t.length),n=0;for(let l=0,s=t.length;l<s;l++)a[l]=n,n+=t[l].length+1;return e[p]=a,a}var g=class{get from(){return this.file||this.id}constructor(e,t={}){if(null==e||"object"==typeof e&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),"\ufeff"===this.css[0]||""===this.css[0]?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!h||/^\w+:\/\//.test(t.from)||n(t.from)?this.file=t.from:this.file=l(t.from)),h&&f){let e=new c(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id="<input css "+a(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,a,n={}){let l,s,o,i,c;if(t&&"object"==typeof t){let e=t,n=a;if("number"==typeof e.offset){i=e.offset;let n=this.fromOffset(i);t=n.line,a=n.col}else t=e.line,a=e.column,i=this.fromLineAndColumn(t,a);if("number"==typeof n.offset){o=n.offset;let e=this.fromOffset(o);s=e.line,l=e.col}else s=n.line,l=n.column,o=this.fromLineAndColumn(n.line,n.column)}else if(a)i=this.fromLineAndColumn(t,a);else{i=t;let e=this.fromOffset(i);t=e.line,a=e.col}let d=this.origin(t,a,s,l);return c=d?new u(e,void 0===d.endLine?d.line:{column:d.column,line:d.line},void 0===d.endLine?d.column:{column:d.endColumn,line:d.endLine},d.source,d.file,n.plugin):new u(e,void 0===s?t:{column:a,line:t},void 0===s?a:{column:l,line:s},this.css,this.file,n.plugin),c.input={column:a,endColumn:l,endLine:s,endOffset:o,line:t,offset:i,source:this.css},this.file&&(r&&(c.input.url=r(this.file).toString()),c.input.file=this.file),c}fromLineAndColumn(e,t){return m(this)[e-1]+t-1}fromOffset(e){let t=m(this),a=0;if(e>=t[t.length-1])a=t.length-1;else{let n,l=t.length-2;for(;a<l;)if(n=a+(l-a>>1),e<t[n])l=n-1;else{if(!(e>=t[n+1])){a=n;break}a=n+1}}return{col:e-t[a]+1,line:a+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,a,l){if(!this.map)return!1;let s,o,u=this.map.consumer(),c=u.originalPositionFor({column:t-1,line:e});if(!c.source)return!1;if("number"==typeof a){let e=u.originalPositionFor({column:l-1,line:a});e.source&&(s=e)}o=n(c.source)?r(c.source):new URL(c.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let d={column:c.column+1,endColumn:s&&s.column+1,endLine:s&&s.line,line:c.line,url:o.toString()};if("file:"===o.protocol){if(!i)throw new Error("file: protocol is not available in this PostCSS build");d.file=i(o)}let p=u.sourceContentFor(c.source);return p&&(d.source=p),d}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])null!=this[t]&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};t.exports=g,g.default=g,d&&d.registerInput&&d.registerInput(g)}),gp=/* @__PURE__ */ve((e,t)=>{var a,n,l=cp(),s=class extends l{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,a){let n=/* @__PURE__ */new Set;for(let s of Array.isArray(e)?e:[e])s&&"object"==typeof s&&!s.parent&&s.raws&&void 0!==s.raws.before&&n.add(s.raws);let l=super.normalize(e);if(t)if("prepend"===a)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of l)n.has(s.raws)||(s.raws.before=t.raws.before);return l}removeChild(e,t){let a=this.index(e);return!t&&0===a&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[a].raws.before),super.removeChild(e)}toResult(e={}){return new a(new n,this,e).stringify()}};s.registerLazyResult=e=>{a=e},s.registerProcessor=e=>{n=e},t.exports=s,s.default=s,l.registerRoot(s)}),wp=/* @__PURE__ */ve((e,t)=>{var a={comma:e=>a.split(e,[","],!0),space:e=>a.split(e,[" ","\n","\t"]),split(e,t,a){let n=[],l="",s=!1,o=0,i=!1,r="",u=!1;for(let c of e)u?u=!1:"\\"===c?u=!0:i?c===r&&(i=!1):'"'===c||"'"===c?(i=!0,r=c):"("===c?o+=1:")"===c?o>0&&(o-=1):0===o&&t.includes(c)&&(s=!0),s?(""!==l&&n.push(l.trim()),l="",s=!1):l+=c;return(a||""!==l)&&n.push(l.trim()),n}};t.exports=a,a.default=a}),vp=/* @__PURE__ */ve((e,t)=>{var a=cp(),n=wp(),l=class extends a{get selectors(){return n.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,a=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(a)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};t.exports=l,l.default=l,a.registerRule(l)}),yp=/* @__PURE__ */ve((e,t)=>{var a=dp(),n=rp(),l=up(),s=mp(),o=hp(),i=gp(),r=vp();function u(e,t){return e.inputs?e.inputs.map(e=>{let t={...e,__proto__:s.prototype};return t.map&&(t.map={...t.map,__proto__:o.prototype}),t}):t}function c(e,t,s){let o,u={...e};if(delete u.inputs,delete u.nodes,u.source){let{inputId:e,...a}=u.source;u.source=a,null!=e&&(u.source.input=t[e])}if("root"===u.type)o=new i(u);else if("decl"===u.type)o=new l(u);else if("rule"===u.type)o=new r(u);else if("comment"===u.type)o=new n(u);else{if("atrule"!==u.type)throw new Error("Unknown node type: "+e.type);o=new a(u)}if(s){o.nodes=s;for(let e of s)e.parent=o}return o}function d(e,t){if(Array.isArray(e))return e.map(e=>d(e));let a,n=[{childIndex:0,children:[],inputs:u(e,t),json:e}];for(;n.length>0;){let e=n[n.length-1],t=e.json.nodes;if(t&&e.childIndex<t.length){let a=t[e.childIndex];e.childIndex+=1,n.push({childIndex:0,children:[],inputs:u(a,e.inputs),json:a});continue}n.pop();let l=c(e.json,e.inputs,t?e.children:void 0);n.length>0?n[n.length-1].children.push(l):a=l}return a}t.exports=d,d.default=d}),bp=/* @__PURE__ */ve((e,t)=>{var{dirname:a,relative:n,resolve:l,sep:s}=ap(),{SourceMapConsumer:o,SourceMapGenerator:i}=ap(),{pathToFileURL:r}=ap(),u=mp(),c=Boolean(o&&i),d=Boolean(a&&l&&n&&s);t.exports=class{constructor(e,t,a,n){this.stringify=e,this.mapOpts=a.map||{},this.root=t,this.opts=a,this.css=n,this.originalCSS=n,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=/* @__PURE__ */new Map,this.memoizedPaths=/* @__PURE__ */new Map,this.memoizedURLs=/* @__PURE__ */new Map}addAnnotation(){let e;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:"function"==typeof this.mapOpts.annotation?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+".map";let t="\n";this.css.includes("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t,n=this.toUrl(this.path(e.file)),l=e.root||a(e.file);!1===this.mapOpts.sourcesContent?(t=new o(e.text),t.sourcesContent&&(t.sourcesContent=null)):t=e.consumer(),this.map.applySourceMap(t,n,this.toUrl(this.path(l)))}}clearAnnotation(){if(!1!==this.mapOpts.annotation)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],"comment"===e.type&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else if(this.css){let e;for(;-1!==(e=this.css.lastIndexOf("/*#"));){let t=this.css.indexOf("*/",e+3);if(-1===t)break;for(;e>0&&"\n"===this.css[e-1];)e--;this.css=this.css.slice(0,e)+this.css.slice(t+2)}}}generate(){if(this.clearAnnotation(),d&&c&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(1===this.previous().length){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=i.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new i({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,a=1,n=1,l="<no source>",s={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,(o,i,r)=>{if(this.css+=o,i&&"end"!==r&&(s.generated.line=a,s.generated.column=n-1,i.source&&i.source.start?(s.source=this.sourcePath(i),s.original.line=i.source.start.line,s.original.column=i.source.start.column-1,this.map.addMapping(s)):(s.source=l,s.original.line=1,s.original.column=0,this.map.addMapping(s))),t=o.match(/\n/g),t?(a+=t.length,e=o.lastIndexOf("\n"),n=o.length-e):n+=o.length,i&&"start"!==r){let e=i.parent||{raws:{}};("decl"!==i.type&&("atrule"!==i.type||i.nodes)||i!==e.last||e.raws.semicolon)&&(i.source&&i.source.end?(s.source=this.sourcePath(i),s.original.line=i.source.end.line,s.original.column=i.source.end.column-1,s.generated.line=a,s.generated.column=n-2,this.map.addMapping(s)):(s.source=l,s.original.line=1,s.original.column=0,s.generated.line=a,s.generated.column=n-1,this.map.addMapping(s)))}})}isAnnotation(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(e=>e.annotation))}isInline(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;let e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(e=>e.inline))}isMap(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0}isSourcesContent(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(e=>e.withContent())}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute)return e;if(60===e.charCodeAt(0))return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let s=this.opts.to?a(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(s=a(l(s,this.mapOpts.annotation)));let o=n(s,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new u(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let a=t.source.input.from;if(a&&!e[a]){e[a]=!0;let n=this.usesFileUrls?this.toFileUrl(a):this.toUrl(this.path(a));this.map.setSourceContent(n,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(r){let t=r(e).toString();return this.memoizedFileURLs.set(e,t),t}throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;"\\"===s&&(e=e.replace(/\\/g,"/"));let a=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,a),a}}}),Ap=/* @__PURE__ */ve((e,t)=>{var a="'".charCodeAt(0),n='"'.charCodeAt(0),l="\\".charCodeAt(0),s="/".charCodeAt(0),o="\n".charCodeAt(0),i=" ".charCodeAt(0),r="\f".charCodeAt(0),u="\t".charCodeAt(0),c="\r".charCodeAt(0),d="[".charCodeAt(0),p="]".charCodeAt(0),f="(".charCodeAt(0),h=")".charCodeAt(0),m="{".charCodeAt(0),g="}".charCodeAt(0),w=";".charCodeAt(0),v="*".charCodeAt(0),y=":".charCodeAt(0),b="@".charCodeAt(0),A=/[\t\n\f\r "#'()/;[\\\]{}]/g,k=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,_=/.[\r\n"'(/\\]/,x=/[\da-f]/i;t.exports=function(e,t={}){let C,S,I,D,M,T,L,O,B,$,P=e.css.valueOf(),E=t.ignoreErrors,R=P.length,F=0,N=[],W=[],H=-1;function V(t){throw e.error("Unclosed "+t,F)}return{back:function(e){W.push(e)},endOfFile:function(){return 0===W.length&&F>=R},nextToken:function(e){if(W.length)return W.pop();if(F>=R)return;let t=!!e&&e.ignoreUnclosed;switch(C=P.charCodeAt(F),C){case o:case i:case u:case c:case r:D=F;do{D+=1,C=P.charCodeAt(D)}while(C===i||C===o||C===u||C===c||C===r);T=["space",P.slice(F,D)],F=D-1;break;case d:case p:case m:case g:case y:case w:case h:{let e=String.fromCharCode(C);T=[e,e,F];break}case f:if($=N.length?N.pop()[1]:"",B=P.charCodeAt(F+1),"url"===$&&B!==a&&B!==n&&B!==i&&B!==o&&B!==u&&B!==r&&B!==c){D=F;do{if(L=!1,D=P.indexOf(")",D+1),-1===D){if(E||t){D=F;break}V("bracket")}for(O=D;P.charCodeAt(O-1)===l;)O-=1,L=!L}while(L);T=["brackets",P.slice(F,D+1),F,D],F=D}else F<=H?T=["(","(",F]:(D=P.indexOf(")",F+1),S=P.slice(F,D+1),-1===D||_.test(S)?(H=-1===D?R:D,T=["(","(",F]):(T=["brackets",S,F,D],F=D));break;case a:case n:M=C===a?"'":'"',D=F;do{if(L=!1,D=P.indexOf(M,D+1),-1===D){if(E||t){D=F+1;break}V("string")}for(O=D;P.charCodeAt(O-1)===l;)O-=1,L=!L}while(L);T=["string",P.slice(F,D+1),F,D],F=D;break;case b:A.lastIndex=F+1,A.test(P),D=0===A.lastIndex?P.length-1:A.lastIndex-2,T=["at-word",P.slice(F,D+1),F,D],F=D;break;case l:for(D=F,I=!0;P.charCodeAt(D+1)===l;)D+=1,I=!I;if(C=P.charCodeAt(D+1),I&&C!==s&&C!==i&&C!==o&&C!==u&&C!==c&&C!==r&&(D+=1,x.test(P.charAt(D)))){for(;x.test(P.charAt(D+1));)D+=1;P.charCodeAt(D+1)===i&&(D+=1)}T=["word",P.slice(F,D+1),F,D],F=D;break;default:C===s&&P.charCodeAt(F+1)===v?(D=P.indexOf("*/",F+2)+1,0===D&&(E||t?D=P.length:V("comment")),T=["comment",P.slice(F,D+1),F,D],F=D):(k.lastIndex=F+1,k.test(P),D=0===k.lastIndex?P.length-1:k.lastIndex-2,T=["word",P.slice(F,D+1),F,D],N.push(T),F=D)}return F++,T},position:function(){return F}}}}),kp=/* @__PURE__ */ve((e,t)=>{var a=dp(),n=rp(),l=up(),s=gp(),o=vp(),i=Ap(),r={empty:!0,space:!0};function u(e,t,a){let n="";for(let l=t;l<a;l++)n+=e[l][1];return n}t.exports=class{constructor(e){this.input=e,this.root=new s,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t,n,l,s=new a;s.name=e[1].slice(1),""===s.name&&this.unnamedAtrule(s,e),this.init(s,e[2]);let o=!1,i=!1,r=[],u=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?u.push("("===t?")":"]"):"{"===t&&u.length>0?u.push("}"):t===u[u.length-1]&&u.pop(),0===u.length){if(";"===t){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}if("{"===t){i=!0;break}if("}"===t){if(r.length>0){for(l=r.length-1,n=r[l];n&&"space"===n[0];)n=r[--l];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}r.push(e)}else r.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(r),r.length?(s.raws.afterName=this.spacesAndCommentsFromStart(r),this.raw(s,"params",r),o&&(e=r[r.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),i&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let a,n=0;for(let l=t-1;l>=0&&(a=e[l],"space"===a[0]||(n+=1,2!==n));l--);throw this.input.error("Missed semicolon","word"===a[0]?a[3]+1:a[2])}colon(e){let t,a,n,l=0;for(let[s,o]of e.entries()){if(a=o,n=a[0],"("===n&&(l+=1),")"===n&&(l-=1),0===l&&":"===n){if(t){if("word"===t[0]&&"progid"===t[1])continue;return s}this.doubleColon(a)}t=a}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let a=e[1].slice(2,-2);if(a.trim()){let e=a.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}else t.text="",t.raws.left=a,t.raws.right=""}createTokenizer(){this.tokenizer=i(this.input)}decl(e,t){let a=new l;this.init(a,e[0][2]);let n=e[e.length-1];";"===n[0]&&(this.semicolon=!0,e.pop()),a.source.end=this.getPosition(n[3]||n[2]||function(e){for(let t=e.length-1;t>=0;t--){let a=e[t],n=a[3]||a[2];if(n)return n}}(e)),a.source.end.offset++;let s=0;for(;"word"!==e[s][0];)s===e.length-1&&this.unknownWord([e[s]]),s++;a.raws.before+=u(e,0,s),a.source.start=this.getPosition(e[s][2]);let o=s;for(;s<e.length;){let t=e[s][0];if(":"===t||"space"===t||"comment"===t)break;s++}a.prop=u(e,o,s);let i,r=s;for(;s<e.length&&(i=e[s],s++,":"!==i[0]);)"word"===i[0]&&/\w/.test(i[1])&&this.unknownWord([i]);a.raws.between=u(e,r,s),"_"!==a.prop[0]&&"*"!==a.prop[0]||(a.raws.before+=a.prop[0],a.prop=a.prop.slice(1));let c=s;for(;s<e.length;){let t=e[s][0];if("space"!==t&&"comment"!==t)break;s++}let d=e.slice(c,s);e=e.slice(s),this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],"!important"===i[1].toLowerCase()){a.important=!0;let t=this.stringFrom(e,l);t=this.spacesFromEnd(e)+t," !important"!==t&&(a.raws.important=t);break}if("important"===i[1].toLowerCase()){let t=e.slice(0),n="";for(let e=l;e>0;e--){let a=t[e][0];if(n.trim().startsWith("!")&&"space"!==a)break;n=t.pop()[1]+n}n.trim().startsWith("!")&&(a.important=!0,a.raws.important=n,e=t)}if("space"!==i[0]&&"comment"!==i[0])break}e.some(e=>"space"!==e[0]&&"comment"!==e[0])&&(a.raws.between+=d.map(e=>e[1]).join(""),d=[]),this.raw(a,"value",d.concat(e),t),a.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new o;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)}other(e){let t=!1,a=null,n=!1,l=null,s=[],o=e[1].startsWith("--"),i=[],r=e;for(;r;){if(a=r[0],i.push(r),"("===a||"["===a)l||(l=r),s.push("("===a?")":"]");else if(o&&n&&"{"===a)l||(l=r),s.push("}");else if(0===s.length){if(";"===a){if(n)return void this.decl(i,o);break}if("{"===a)return void this.rule(i);if("}"===a){this.tokenizer.back(i.pop()),t=!0;break}":"===a&&(n=!0)}else a===s[s.length-1]&&(s.pop(),0===s.length&&(l=null));r=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(l),t&&n){if(!o)for(;i.length&&(r=i[i.length-1][0],"space"===r||"comment"===r);)this.tokenizer.back(i.pop());this.decl(i,o)}else this.unknownWord(i)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,a,n){let l,s,o,i,u=a.length,c="",d=!0;for(let p=0;p<u;p+=1)l=a[p],s=l[0],"space"!==s||p!==u-1||n?"comment"===s?(i=a[p-1]?a[p-1][0]:"empty",o=a[p+1]?a[p+1][0]:"empty",r[i]||r[o]||","===c.slice(-1)?d=!1:c+=l[1]):c+=l[1]:d=!1;if(!d){let n=a.reduce((e,t)=>e+t[1],"");e.raws[t]={raw:n,value:c}}e[t]=c}rule(e){e.pop();let t=new o;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,a="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)a=e.pop()[1]+a;return a}spacesAndCommentsFromStart(e){let t,a="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)a+=e.shift()[1];return a}spacesFromEnd(e){let t,a="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)a=e.pop()[1]+a;return a}stringFrom(e,t){let a="";for(let n=t;n<e.length;n++)a+=e[n][1];return e.splice(t,e.length-t),a}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}}}),_p=/* @__PURE__ */ve((e,t)=>{var a=cp(),n=mp(),l=kp();function s(e,t){let a=new l(new n(e,t));try{a.parse()}catch(jC){throw jC}return a.root}t.exports=s,s.default=s,a.registerParse(s)}),xp=/* @__PURE__ */ve((e,t)=>{var a=cp(),{my:n}=op(),l=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){t.node[n]||a.rebuild(t.node);let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let a in t)this[a]=t[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};t.exports=l,l.default=l}),Cp=/* @__PURE__ */ve((e,t)=>{var a=xp(),n=class{get content(){return this.css}constructor(e,t,a){this.processor=e,this.messages=[],this.root=t,this.opts=a,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let n=new a(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>"warning"===e.type)}};t.exports=n,n.default=n}),Sp=/* @__PURE__ */ve((e,t)=>{var a={};t.exports=function(e){a[e]||(a[e]=!0,"undefined"!=typeof console&&console.warn)}}),Ip=/* @__PURE__ */ve((e,t)=>{var a=cp(),n=pp(),l=bp(),s=_p(),o=Cp(),i=gp(),r=sp(),{isClean:u,my:c}=op();Sp();var d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},f={Once:!0,postcssPlugin:!0,prepare:!0};function h(e){return"object"==typeof e&&"function"==typeof e.then}function m(e){let t=!1,a=d[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[a,a+"-"+t,0,a+"Exit",a+"Exit-"+t]:t?[a,a+"-"+t,a+"Exit",a+"Exit-"+t]:e.append?[a,0,a+"Exit"]:[a,a+"Exit"]}function g(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:m(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){let t=[e];for(;t.length>0;){let e=t.pop();if(e[u]=!1,e.nodes)for(let a of e.nodes)t.push(a)}return e}var v={},y=class e{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(t,n,l){let i;if(this.stringified=!1,this.processed=!1,"object"!=typeof n||null===n||"root"!==n.type&&"document"!==n.type)if(n instanceof e||n instanceof o)i=w(n.root),n.map&&(void 0===l.map&&(l.map={}),l.map.inline||(l.map.inline=!1),l.map.prev=n.map);else{let e=s;l.syntax&&(e=l.syntax.parse),l.parser&&(e=l.parser),e.parse&&(e=e.parse);try{i=e(n,l)}catch(r){this.processed=!0,this.error=r}i&&!i[c]&&a.rebuild(i)}else i=w(n);this.result=new o(t,i,l),this.helpers={...v,postcss:v,result:this.result},this.plugins=this.processor.plugins.map(e=>"object"==typeof e&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let a=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?a.postcssVersion:(e.plugin=a.postcssPlugin,e.setMessage())}catch(n){console&&console.error}return e}prepareVisitors(){this.listeners={};let e=(e,t,a)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,a])};for(let t of this.plugins)if("object"==typeof t)for(let a in t){if(!p[a]&&/^[A-Z]/.test(a))throw new Error(`Unknown event ${a} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f[a])if("object"==typeof t[a])for(let n in t[a])e(t,"*"===n?a:a+"-"+n.toLowerCase(),t[a][n]);else"function"==typeof t[a]&&e(t,a,t[a])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let t=0;t<this.plugins.length;t++){let a=this.plugins[t],n=this.runOnRoot(a);if(h(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];){e[u]=!0;let t=[g(e)];for(;t.length>0;){let e=this.visitTick(t);if(h(e))try{await e}catch(jC){let a=t[t.length-1].node;throw this.handleError(jC,a)}}}if(this.listeners.OnceExit)for(let[t,a]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map(e=>a(e,this.helpers));await Promise.all(t)}else await a(e,this.helpers)}catch(jC){throw this.handleError(jC)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if("object"==typeof e&&e.Once){if("document"===this.result.root.type){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return h(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if("function"==typeof e)return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let a=this.result.root.source;if(void 0===e.map&&!(a&&a.input&&a.input.map)){let e="";return t(this.result.root,t=>{e+=t}),this.result.css=e,this.result}let n=new l(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins)if(h(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[u];)e[u]=!0,this.walkSync(e);if(this.listeners.OnceExit)if("document"===e.type)for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[a,n]of e){let e;this.result.lastPlugin=a;try{e=n(t,this.helpers)}catch(jC){throw this.handleError(jC,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(h(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:a,visitors:n}=t;if("root"!==a.type&&"document"!==a.type&&!a.parent)return void e.pop();if(n.length>0&&t.visitorIndex<n.length){let[e,l]=n[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===n.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return l(a.toProxy(),this.helpers)}catch(jC){throw this.handleError(jC,a)}}if(0!==t.iterator){let n,l=t.iterator;for(;n=a.nodes[a.indexes[l]];)if(a.indexes[l]+=1,!n[u])return n[u]=!0,void e.push(g(n));t.iterator=0,delete a.indexes[l]}let l=t.events;for(;t.eventIndex<l.length;){let e=l[t.eventIndex];if(t.eventIndex+=1,0===e)return void(a.nodes&&a.nodes.length&&(a[u]=!0,t.iterator=a.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=[{eventIndex:0,events:m(e),iterator:0,node:e}];for(;t.length>0;){let e=t[t.length-1],a=e.node;if(0!==e.iterator){let n,l=e.iterator,s=!1;for(;n=a.nodes[a.indexes[l]];)if(a.indexes[l]+=1,!n[u]){n[u]=!0,t.push({eventIndex:0,events:m(n),iterator:0,node:n}),s=!0;break}if(s)continue;e.iterator=0,delete a.indexes[l]}if(e.eventIndex<e.events.length){let n=e.events[e.eventIndex];if(e.eventIndex+=1,0===n)a.nodes&&a.nodes.length&&(e.iterator=a.getIterator());else{let e=this.listeners[n];e&&this.visitSync(e,a.toProxy())&&t.pop()}continue}t.pop()}}warnings(){return this.sync().warnings()}};y.registerPostcss=e=>{v=e},t.exports=y,y.default=y,i.registerLazyResult(y),n.registerLazyResult(y)}),Dp=/* @__PURE__ */ve((e,t)=>{var a=bp(),n=_p(),l=Cp(),s=sp();Sp();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=n;try{e=t(this._css,this._opts)}catch(a){this.error=a}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,n){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=n,this._map=void 0;let o=s;this.result=new l(this._processor,void 0,this._opts),this.result.css=t;let i=this;Object.defineProperty(this.result,"root",{get:()=>i.root});let r=new a(o,void 0,this._opts,t);if(r.isMap()){let[e,t]=r.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else r.clearAnnotation(),this.result.css=r.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o}),Mp=/* @__PURE__ */ve((e,t)=>{var a=pp(),n=Ip(),l=Dp(),s=gp(),o=class{constructor(e=[]){this.version="8.5.23",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let a of e)if(!0===a.postcss?a=a():a.postcss&&(a=a.postcss),"object"==typeof a&&Array.isArray(a.plugins))t=t.concat(a.plugins);else if("object"==typeof a&&a.postcssPlugin)t.push(a);else if("function"==typeof a)t.push(a);else if("object"!=typeof a||!a.parse&&!a.stringify)throw new Error(a+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new n(this,e,t):new l(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};t.exports=o,o.default=o,s.registerProcessor(o),a.registerProcessor(o)}),Tp=/* @__PURE__ */ve((e,t)=>{var a=dp(),n=rp(),l=cp(),s=np(),o=up(),i=pp(),r=yp(),u=mp(),c=Ip(),d=wp(),p=ip(),f=_p(),h=Mp(),m=Cp(),g=gp(),w=vp(),v=sp(),y=xp();function b(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new h(e)}b.plugin=function(e,t){let a,n=!1;function l(...a){console&&console.warn&&!n&&(n=!0,process.env.LANG&&process.env.LANG.startsWith("cn"));let l=t(...a);return l.postcssPlugin=e,l.postcssVersion=(new h).version,l}return Object.defineProperty(l,"postcss",{get:()=>(a||(a=l()),a)}),l.process=function(e,t,a){return b([l(a)]).process(e,t)},l},b.stringify=v,b.parse=f,b.fromJSON=r,b.list=d,b.comment=e=>new n(e),b.atRule=e=>new a(e),b.decl=e=>new o(e),b.rule=e=>new w(e),b.root=e=>new g(e),b.document=e=>new i(e),b.CssSyntaxError=s,b.Declaration=o,b.Container=l,b.Processor=h,b.Document=i,b.Comment=n,b.Warning=y,b.AtRule=a,b.Result=m,b.Input=u,b.Rule=w,b.Root=g,b.Node=p,c.registerPostcss(b),t.exports=b,b.default=b}),Lp=/* @__PURE__ */ve((e,t)=>{var a,n;a=e,n=function(){var e=6e4,t=36e5,a="millisecond",n="second",l="minute",s="hour",o="day",i="week",r="month",u="quarter",c="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],a=e%100;return"["+e+(t[(a-20)%10]||t[a]||t[0])+"]"}},g=function(e,t,a){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(a)+e},w={s:g,z:function(e){var t=-e.utcOffset(),a=Math.abs(t),n=Math.floor(a/60),l=a%60;return(t<=0?"+":"-")+g(n,2,"0")+":"+g(l,2,"0")},m:function e(t,a){if(t.date()<a.date())return-e(a,t);var n=12*(a.year()-t.year())+(a.month()-t.month()),l=t.clone().add(n,r),s=a-l<0,o=t.clone().add(n+(s?-1:1),r);return+(-(n+(a-l)/(s?l-o:o-l))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:r,y:c,w:i,d:o,D:d,h:s,m:l,s:n,ms:a,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=m;var b="$isDayjsObject",A=function(e){return e instanceof C||!(!e||!e[b])},k=function e(t,a,n){var l;if(!t)return v;if("string"==typeof t){var s=t.toLowerCase();y[s]&&(l=s),a&&(y[s]=a,l=s);var o=t.split("-");if(!l&&o.length>1)return e(o[0])}else{var i=t.name;y[i]=t,l=i}return!n&&l&&(v=l),l||!n&&v},_=function(e,t){if(A(e))return e.clone();var a="object"==typeof t?t:{};return a.date=e,a.args=arguments,new C(a)},x=w;x.l=k,x.i=A,x.w=function(e,t){return _(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var C=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[b]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,a=e.utc;if(null===t)/* @__PURE__ */return new Date(NaN);if(x.u(t))/* @__PURE__ */return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(f);if(n){var l=n[2]-1||0,s=(n[7]||"0").substring(0,3);return a?new Date(Date.UTC(n[1],l,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)):new Date(n[1],l,n[3]||1,n[4]||0,n[5]||0,n[6]||0,s)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return x},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var a=_(e);return this.startOf(t)<=a&&a<=this.endOf(t)},g.isAfter=function(e,t){return _(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<_(e)},g.$g=function(e,t,a){return x.u(e)?this[t]:this.set(a,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var a=this,u=!!x.u(t)||t,p=x.p(e),f=function(e,t){var n=x.w(a.$u?Date.UTC(a.$y,t,e):new Date(a.$y,t,e),a);return u?n:n.endOf(o)},h=function(e,t){return x.w(a.toDate()[e].apply(a.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),a)},m=this.$W,g=this.$M,w=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case c:return u?f(1,0):f(31,11);case r:return u?f(1,g):f(0,g+1);case i:var y=this.$locale().weekStart||0,b=(m<y?m+7:m)-y;return f(u?w-b:w+(6-b),g);case o:case d:return h(v+"Hours",0);case s:return h(v+"Minutes",1);case l:return h(v+"Seconds",2);case n:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var i,u=x.p(e),p="set"+(this.$u?"UTC":""),f=(i={},i[o]=p+"Date",i[d]=p+"Date",i[r]=p+"Month",i[c]=p+"FullYear",i[s]=p+"Hours",i[l]=p+"Minutes",i[n]=p+"Seconds",i[a]=p+"Milliseconds",i)[u],h=u===o?this.$D+(t-this.$W):t;if(u===r||u===c){var m=this.clone().set(d,1);m.$d[f](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[x.p(e)]()},g.add=function(a,u){var d,p=this;a=Number(a);var f=x.p(u),h=function(e){var t=_(p);return x.w(t.date(t.date()+Math.round(e*a)),p)};if(f===r)return this.set(r,this.$M+a);if(f===c)return this.set(c,this.$y+a);if(f===o)return h(1);if(f===i)return h(7);var m=(d={},d[l]=e,d[s]=t,d[n]=1e3,d)[f]||1,g=this.$d.getTime()+a*m;return x.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,a=this.$locale();if(!this.isValid())return a.invalidDate||p;var n=e||"YYYY-MM-DDTHH:mm:ssZ",l=x.z(this),s=this.$H,o=this.$m,i=this.$M,r=a.weekdays,u=a.months,c=a.meridiem,d=function(e,a,l,s){return e&&(e[a]||e(t,n))||l[a].slice(0,s)},f=function(e){return x.s(s%12||12,e,"0")},m=c||function(e,t,a){var n=e<12?"AM":"PM";return a?n.toLowerCase():n};return n.replace(h,function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return i+1;case"MM":return x.s(i+1,2,"0");case"MMM":return d(a.monthsShort,i,u,3);case"MMMM":return d(u,i);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(a.weekdaysMin,t.$W,r,2);case"ddd":return d(a.weekdaysShort,t.$W,r,3);case"dddd":return r[t.$W];case"H":return String(s);case"HH":return x.s(s,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(s,o,!0);case"A":return m(s,o,!1);case"m":return String(o);case"mm":return x.s(o,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return l}return null}(e)||l.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,d,p){var f,h=this,m=x.p(d),g=_(a),w=(g.utcOffset()-this.utcOffset())*e,v=this-g,y=function(){return x.m(h,g)};switch(m){case c:f=y()/12;break;case r:f=y();break;case u:f=y()/3;break;case i:f=(v-w)/6048e5;break;case o:f=(v-w)/864e5;break;case s:f=v/t;break;case l:f=v/e;break;case n:f=v/1e3;break;default:f=v}return p?f:x.a(f)},g.daysInMonth=function(){return this.endOf(r).$D},g.$locale=function(){return y[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var a=this.clone(),n=k(e,t,!0);return n&&(a.$L=n),a},g.clone=function(){return x.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),S=C.prototype;return _.prototype=S,[["$ms",a],["$s",n],["$m",l],["$H",s],["$W",o],["$M",r],["$y",c],["$D",d]].forEach(function(e){S[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),_.extend=function(e,t){return e.$i||(e(t,C,_),e.$i=!0),_},_.locale=k,_.isDayjs=A,_.unix=function(e){return _(1e3*e)},_.en=y[v],_.Ls=y,_.p={},_},"object"==typeof e&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):(a="undefined"!=typeof globalThis?globalThis:a||self).dayjs=n()}),Op=/* @__PURE__ */ve((e,t)=>{var a=Lp();function n(e){for(e=e.replace(/[\x00-\x20]+/g,"");;){const t=e.indexOf("\x3c!--");if(-1===t)break;const a=e.indexOf("--\x3e",t+4);if(-1===a)break;e=e.substring(0,t)+e.substring(a+3)}return e}function l(e,t){const a=(t=t||{}).allowedSchemes||["http","https","ftp","mailto","tel","sms"],l=!1!==t.allowProtocolRelative;if("string"!=typeof e)return!1;const s=(e=n(e)).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!s)return!!e.match(/^[/\\]{2}/)&&!l;const o=s[1].toLowerCase();return-1===a.indexOf(o)}t.exports=function(e){const t={};return t.options=e||{},t.filterTag=t.options.filterTag||function(e){return(e=e.trim()).toLowerCase()},t.string=function(e,t){return"string"!=typeof e&&("number"==typeof e||"boolean"==typeof e?e+="":e=""),e=e.trim(),void 0!==t&&""===e&&(e=t),e},t.strings=function(e){return Array.isArray(e)?e.map(function(e){return t.string(e)}):[]},t.integer=function(e,t,a,n){if(void 0===t&&(t=0),"number"==typeof e)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch(jC){e=t}return"number"==typeof a&&e<a&&(e=a),"number"==typeof n&&e>n&&(e=n),e},t.padInteger=function(e,t){let a=e+"";for(;a.length<t;)a="0"+a;return a},t.float=function(e,t,a,n){if(void 0===t&&(t=0),"number"!=typeof e)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch(jC){e=t}return"number"==typeof a&&e<a&&(e=a),"number"==typeof n&&e>n&&(e=n),e},t.naughtyHref=l,t.url=function(e,a,s){return(e=t.string(e,a))===a?e:l(e=n(e))||null===(e=(o=e).match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?o:o.match(/^[^/.]+\.[^/.]+/)?(s?"https://":"http://")+o:null)?a:e;var o},t.select=function(e,a,n){if(e=t.string(e),!a||!a.length)return n;let l;return"object"==typeof a[0]?(l=a.find(function(t){return null!==t.value&&void 0!==t.value&&t.value.toString()===e}),null!=l?l.value:n):(l=a.find(function(t){return null!=t&&t.toString()===e}),void 0!==l?l:n)},t.boolean=function(e,a){return!0===e||!1!==e&&((e=t.string(e,a))===a?void 0!==e&&e:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e))},t.addBooleanFilterToCriteria=function(e,a,n,l){void 0===l&&(l=null);let s="object"==typeof e&&null!==e?e[a]:e;s=void 0===s?l:s,s=t.booleanOrNull(s),null===s||(n[a]=!!s||{$ne:!0})},t.booleanOrNull=function(e,a){return!0===e||!1===e||null===e?e:(e=t.string(e,a))===a?void 0===a?null:e:"null"===e?null:""!==(e=e.toLowerCase().charAt(0))&&"n"!==e&&"0"!==e&&"f"!==e&&("t"===e||"y"===e||"1"===e||("a"===e?null:a))},t.date=function(e,n,l){let s;function o(){return void 0===n&&(n=a().format("YYYY-MM-DD")),n}if("string"==typeof e){if(e.match(/\//)){if(s=e.split("/"),2===s.length)return(l||/* @__PURE__ */new Date).getFullYear()+"-"+t.padInteger(s[0],2)+"-"+t.padInteger(s[1],2);if(3===s.length){if(s[2]<100){const e=l||/* @__PURE__ */new Date,t=e.getFullYear()%100,a=e.getFullYear()-t;let n=parseInt(s[2])+a;n-e.getFullYear()>50&&(n-=100),s[2]=n}return t.padInteger(s[2],4)+"-"+t.padInteger(s[0],2)+"-"+t.padInteger(s[1],2)}return o()}if(e.match(/-/))return s=e.split("-"),2===s.length?(l||/* @__PURE__ */new Date).getFullYear()+"-"+t.padInteger(s[0],2)+"-"+t.padInteger(s[1],2):3===s.length?t.padInteger(s[0],4)+"-"+t.padInteger(s[1],2)+"-"+t.padInteger(s[2],2):o()}try{return null===e?o():(e=l||new Date(e),isNaN(e.getTime())?o():e.getFullYear()+"-"+t.padInteger(e.getMonth()+1,2)+"-"+t.padInteger(e.getDate(),2))}catch(jC){return o()}},t.formatDate=function(e){return a(e).format("YYYY-MM-DD")},t.time=function(e,n){const l=(e=(e=t.string(e).toLowerCase()).trim()).match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(l){let e=parseInt(l[1],10);const a=void 0!==l[3]?parseInt(l[3],10):0,n=void 0!==l[5]?parseInt(l[5],10):0;let s=l[6]?l[6].toLowerCase():l[6];return s=s&&s.charAt(0),12===e&&"a"===s?e-=12:12===e&&"p"===s||"p"===s&&(e+=12),24!==e&&"24"!==e||(e=0),t.padInteger(e,2)+":"+t.padInteger(a,2)+":"+t.padInteger(n,2)}return void 0!==n?n:a().format("HH:mm")},t.formatTime=function(e){return a(e).format("HH:mm:ss")},t.tags=function(e,a){return"string"==typeof e&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map(e=>t.string(e)).map(a||t.filterTag).filter(e=>e.length>0):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,a){const n=t.string(e,a);return n===a||n.match(t.idRegExp)?n:a},t.ids=function(e){return Array.isArray(e)?e.filter(function(e){return void 0!==t.id(e)}):[]},t},t.exports.naughtyHref=l}),Bp=/* @__PURE__ */ve((e,t)=>{var a,n=(Zd(),a=jd,ge.call(a,"module.exports")?a["module.exports"]:be(pe({},"__esModule",{value:!0}),a)),l=Jd(),{isPlainObject:s}=zd(),o=Xd(),i=ep(),{parse:r}=Tp(),{naughtyHref:u}=Op(),c=["img","audio","video","picture","svg","object","map","iframe","embed"],d=["script","style"];function p(e,t){e&&Object.keys(e).forEach(function(a){t(e[a],a)})}function f(e,t){return{}.hasOwnProperty.call(e,t)}function h(e,t){const a=[];return p(e,function(e){t(e)&&a.push(e)}),a}t.exports=g;var m=/^[^\0\t\n\f\r /<=>]+$/;function g(e,t,a){if(null==e)return"";"number"==typeof e&&(e=e.toString());let v="",y="";function b(e,t){const a=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){L.length&&(L[L.length-1].text+=a.text)},this.updateParentNodeMediaChildren=function(){L.length&&c.includes(this.tag)&&L[L.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},g.defaults,t)).parser=Object.assign({},w,t.parser);const A=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};d.forEach(function(e){A(e)&&t.allowVulnerableTags});const k=t.nonTextTags||["script","style","textarea","option","xmp"];let _,x;t.allowedAttributes&&(_={},x={},p(t.allowedAttributes,function(e,t){_[t]=[];const a=[];e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?a.push(l(e).replace(/\\\*/g,".*")):_[t].push(e)}),a.length&&(x[t]=new RegExp("^("+a.join("|")+")$"))}));const C={},S={},I={};p(t.allowedClasses,function(e,t){if(_&&(f(_,t)||(_[t]=[]),_[t].push("class")),C[t]=e,Array.isArray(e)){const a=[];C[t]=[],I[t]=[],e.forEach(function(e){"string"==typeof e&&e.indexOf("*")>=0?a.push(l(e).replace(/\\\*/g,".*")):e instanceof RegExp?I[t].push(e):C[t].push(e)}),a.length&&(S[t]=new RegExp("^("+a.join("|")+")$"))}});const D={};let M,T,L,O,B,$,P;p(t.transformTags,function(e,t){let a;"function"==typeof e?a=e:"string"==typeof e&&(a=g.simpleTransform(e)),"*"===t?M=a:D[t]=a});let E=!1;F();const R=new n.Parser({onopentag:function(e,a){if(t.onOpenTag&&t.onOpenTag(e,a),t.enforceHtmlBoundary&&"html"===e&&F(),$)return void P++;const n=new b(e,a);L.push(n);let l=!1;const u=!!n.text;let c;if(f(D,e)&&(c=D[e](e,a),n.attribs=a=c.attribs,void 0!==c.text&&(n.innerText=c.text),e!==c.tagName&&(n.name=e=c.tagName,B[T]=c.tagName)),M&&(c=M(e,a),n.attribs=a=c.attribs,e!==c.tagName&&(n.name=e=c.tagName,B[T]=c.tagName)),(!A(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(O)||null!=t.nestingLimit&&T>=t.nestingLimit)&&(l=!0,O[T]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==k.indexOf(e)&&($=!0,P=1)),T++,l){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(n.innerText&&!u){const a=N(n.innerText);t.textFilter?v+=t.textFilter(a,e):v+=a,E=!0}return}y=v,v=""}if(v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(n.innerText=""),l&&("escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode)&&t.preserveEscapedAttributes?p(a,function(e,t){v+=" "+t+'="'+N(e||"",!0)+'"'}):(!_||f(_,e)||_["*"])&&p(a,function(a,l){if(!m.test(l))return void delete n.attribs[l];if(""===a&&!t.allowedEmptyAttributes.includes(l)&&(t.nonBooleanAttributes.includes(l)||t.nonBooleanAttributes.includes("*")))return void delete n.attribs[l];let u=!1;if(!_||f(_,e)&&-1!==_[e].indexOf(l)||_["*"]&&-1!==_["*"].indexOf(l)||f(x,e)&&x[e].test(l)||x["*"]&&x["*"].test(l))u=!0;else if(_&&_[e])for(const t of _[e])if(s(t)&&t.name&&t.name===l){u=!0;let e="";if(!0===t.multiple){const n=a.split(" ");for(const a of n)-1!==t.values.indexOf(a)&&(""===e?e=a:e+=" "+a)}else t.values.indexOf(a)>=0&&(e=a);a=e}if(u){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(l)&&W(e,a))return void delete n.attribs[l];if("script"===e&&"src"===l){let e=!0;try{const n=H(a);if(t.allowedScriptHostnames||t.allowedScriptDomains){const a=(t.allowedScriptHostnames||[]).find(function(e){return e===n.url.hostname}),l=(t.allowedScriptDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=a||l}}catch(jC){e=!1}if(!e)return void delete n.attribs[l]}if("iframe"===e&&"src"===l){let e=!0;try{const n=H(a);if(n.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const a=(t.allowedIframeHostnames||[]).find(function(e){return e===n.url.hostname}),l=(t.allowedIframeDomains||[]).find(function(e){return n.url.hostname===e||n.url.hostname.endsWith(`.${e}`)});e=a||l}}catch(jC){e=!1}if(!e)return void delete n.attribs[l]}if("srcset"===l||"imagesrcset"===l)try{let e=i(a);if(e.forEach(function(e){W(l,e.url)&&(e.evil=!0)}),e=h(e,function(e){return!e.evil}),!e.length)return void delete n.attribs[l];a=h(e,function(e){return!e.evil}).map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", "),n.attribs[l]=a}catch(jC){return void delete n.attribs[l]}if("class"===l){const t=C[e],s=C["*"],i=S[e],r=I[e],u=I["*"],f=[i,S["*"]].concat(r,u).filter(function(e){return e});if(!(c=a,d=t&&s?o(t,s):t||s,p=f,a=d?(c=c.split(/\s+/)).filter(function(e){return-1!==d.indexOf(e)||p.some(function(t){return t.test(e)})}).join(" "):c).length)return void delete n.attribs[l]}if("style"===l)if(t.parseStyleAttributes)try{if(0===(a=function(e,t){if(!t)return e;const a=e.nodes[0];let n;return n=t[a.selector]&&t["*"]?o(t[a.selector],t["*"]):t[a.selector]||t["*"],n&&(e.nodes[0].nodes=a.nodes.reduce(function(e){return function(t,a){return f(e,a.prop)&&e[a.prop].some(function(e){return e.test(a.value)})&&t.push(a),t}}(n),[])),e}(r(e+" {"+a+"}",{map:!1}),t.allowedStyles).nodes[0].nodes.reduce(function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e},[]).join(";")).length)return void delete n.attribs[l]}catch(jC){return void delete n.attribs[l]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");v+=" "+l,a&&a.length?v+='="'+N(a,!0)+'"':t.allowedEmptyAttributes.includes(l)&&(v+='=""')}else delete n.attribs[l];var c,d,p}),-1!==t.selfClosing.indexOf(e))v+=" />";else if(v+=">",n.innerText&&!u){const a=N(n.innerText);t.textFilter?v+=t.textFilter(a,e):v+=a,E=!0}l&&(v=y+N(v),y=""),n.openingTagLength=v.length-n.tagPosition},ontext:function(e){if($)return;const a=L[L.length-1];let n;if(a&&(n=a.tag,e=void 0!==a.innerText?a.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||A(n))if(!n||!A(n)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==n&&"style"!==n)if(!n||!A(n)||"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"textarea"!==n&&"xmp"!==n){if(!E){const a=N(e,!1);t.textFilter?v+=t.textFilter(a,n):v+=a}}else v+="xmp"===n?e.replace(/</g,"<").replace(/>/g,">"):N(e,!1);else v+=e;else e="";L.length&&(L[L.length-1].text+=e)},onclosetag:function(e,a){if(t.onCloseTag&&t.onCloseTag(e,a),$){if(P--,P)return;$=!1}const n=L.pop();if(!n)return;if(n.tag!==e)return void L.push(n);$=!!t.enforceHtmlBoundary&&"html"===e,T--;const l=O[T];if(l){if(delete O[T],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void n.updateParentNodeText();y=v,v=""}if(B[T]&&(e=B[T],delete B[T]),t.exclusiveFilter){const e=t.exclusiveFilter(n);if("excludeTag"===e)return l&&(v=y,y=""),void(v=v.substring(0,n.tagPosition)+v.substring(n.tagPosition+n.openingTagLength));if(e)return void(v=v.substring(0,n.tagPosition))}n.updateParentNodeMediaChildren(),n.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||a&&!A(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?l&&(v=y,y=""):(v+="</"+e+">",l&&(v=y+N(v),y=""),E=!1)}},t.parser);if(R.write(e),R.end(),"escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode){const t=R.endIndex;if(null!=t&&t>=0&&t<e.length){const a=e.substring(t);v+=N(a)}else(null==t||t<0)&&e.length>0&&""===v&&(v=N(e))}return v;function F(){v="",T=0,L=[],O={},B={},$=!1,P=0}function N(e,a){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),a&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),a&&(e=e.replace(/"/g,""")),e}function W(e,a){return u(a,{allowedSchemes:f(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[],allowProtocolRelative:t.allowProtocolRelative})}function H(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let n=0;n<100;n++)t+=`/${n}`;const a=new URL(e,t);return{isRelativeUrl:a&&"relative-site"===a.hostname&&"relative:"===a.protocol,url:a}}}var w={decodeEntities:!0};g.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta","col"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite","action","formaction","data","xlink:href","poster","background","ping","longdesc","usemap","codebase","classid","archive","profile","manifest","itemid","dynsrc","lowsrc"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},g.simpleTransform=function(e,t,a){return a=void 0===a||a,t=t||{},function(n,l){let s;if(a)for(s in t)l[s]=t[s];else l=t;return{tagName:e,attribs:l}}}}),$p=/* @__PURE__ */Ae(Bp()),Pp=["innerHTML"],Ep={__name:"SafeHTML",props:{unsafeHTML:{type:String,default:""},allowedTags:{type:Array,default:()=>["b","i","em","strong","a","p","br","span","code","pre"]},allowedAttributes:{type:Object,default:()=>({a:["href","target","rel","class"],span:["class","data-tooltip","title"],strong:["class"],p:["class"],b:["class"],i:["class"],em:["class"],code:["class"],pre:["class"],"*":["style","role","aria-labelledby","aria-label"]})},allowedStyles:{type:Object,default:()=>({"*":{color:[/^#(0x)?[0-9a-f]+$/i,/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/]}})},additionalTags:{type:Array,default:()=>[]},additionalAttributes:{type:Object,default:()=>({})},additionalStyles:{type:Object,default:()=>({})}},setup(e){const{$hasOwn:t,$structuredClone:a}=cn(),{allowedTags:n,allowedAttributes:l,allowedStyles:o,additionalTags:i,additionalAttributes:r,additionalStyles:c}=Q(e),d=s(()=>f(p,i.value,r.value,c.value)),p=()=>({allowedTags:a(n.value),allowedAttributes:a(l.value),allowedStyles:a(o.value)}),f=(e,n,l,s)=>{const o=e();return o.allowedTags.push(...n),Object.keys(l).forEach(e=>{const t=o.allowedAttributes[e]??[];o.allowedAttributes[e]=[...t,...l[e]]}),Object.keys(s).forEach(e=>{const n=s[e];t(o.allowedStyles,e)?Object.keys(n).forEach(a=>{t(o.allowedStyles[e],a)||(o.allowedStyles[e][a]=[]),o.allowedStyles[e][a].push(...n[a])}):o.allowedStyles[e]=a(n)}),o};return(t,a)=>(B(),u("span",{innerHTML:J($p.default)(e.unsafeHTML,d.value)},null,8,Pp))}},Rp={class:"wf-padding-add-left-small"},Fp=["href","target","rel"],Np={__name:"ModalButton",props:{isPrimary:{default:!1},enabled:{default:!0},href:{type:[String,null],default:null,required:!1},buttonType:{type:[String,null],default:null,required:!1},target:{type:[String,null],default:null,required:!1},rel:{type:[String,null],default:null,required:!1}},emits:["click"],setup(e,{emit:t}){const a=t,{isPrimary:n,enabled:l,href:o,buttonType:i}=Q(e),r=s(()=>{let e=[];return e.push("wf-btn"),i.value?e.push(i.value):(n.value&&e.push("wf-btn-primary"),e.push("wf-btn-default")),e.push("wf-btn-callout-subtle"),l.value||e.push("wf-disabled"),e}),c=s(()=>l.value?o.value??"#":"#"),d=e=>{if(!l.value)return e.preventDefault(),void e.stopPropagation();o.value||(e.preventDefault(),e.stopPropagation(),a("click"))};return(t,a)=>{const n=W("aria");return B(),u("li",Rp,[re((B(),u("a",{href:c.value,class:C(r.value),target:e.target,rel:e.rel,onClick:d},[N(t.$slots,"default")],10,Fp)),[[n,{disabled:!J(l)}]])])}}},Wp="simple-confirmation-modal",Hp={__name:"SimpleConfirmationModal",props:{show:{type:Boolean,default:!1},title:{type:String,required:!0},titleIsHtml:{type:Boolean,default:!1},message:{type:String,required:!0},messageIsHtml:{type:Boolean,default:!1},options:{type:Object,default:()=>({})}},setup(e){const a=b("__"),l=b("$mitt");$("modalName",Wp);const{options:o}=Q(e),p=()=>{l.emit("closeModal",Wp),"function"==typeof o.value.onClosed&&o.value.onClosed()},m=s(()=>o.value.additionalButtons??[]);return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},d({"primary-button":ie(()=>[h(J(Np),{onClick:p,"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Close")),1)]),_:1})]),_:2},[e.titleIsHtml?{name:"header",fn:ie(()=>[c("strong",null,[h(J(Ep),{unsafeHTML:e.title},null,8,["unsafeHTML"])])]),key:"0"}:{name:"header",fn:ie(()=>[c("strong",null,Y(e.title),1)]),key:"1"},e.messageIsHtml?{name:"body",fn:ie(()=>[h(J(Ep),{unsafeHTML:e.message},null,8,["unsafeHTML"])]),key:"2"}:{name:"body",fn:ie(()=>[f(Y(e.message),1)]),key:"3"},m.value.length?{name:"secondary-buttons",fn:ie(()=>[(B(!0),u(t,null,F(m.value,e=>(B(),i(J(Np),{key:e.title,onClick:e.onClick,"button-type":e.type??null},{default:ie(()=>[f(Y(e.title),1)]),_:2},1032,["onClick","button-type"]))),128))]),key:"4"}:void 0]),1024)):r("",!0)]),_:1}))}},Vp="restore-defaults-modal",Up={__name:"RestoreDefaultsModal",props:{show:{type:Boolean,default:!1},section:{type:String,required:!0},sectionTitle:{type:[String,null]}},setup(e){const t=b("__"),a=b("$mitt"),l=b("sprintf"),{$ajax:o,$ajaxErrorMessage:u}=In(),{$modalNotice:d}=Hn();$("modalName",Vp);const{section:p,sectionTitle:m}=Q(e),g=s(()=>m.value?l(t("Are you sure you want to restore the default %s settings? This will undo any custom changes you have made to the options on this page."),m.value):t("Are you sure you want to restore the default settings? This will undo any custom changes you have made to the options on this page.","wordfence")),w=()=>{o("wordfence_restoreDefaults",{section:p.value},e=>{e.success&&window.location.reload(!0)},e=>{a.emit("closeModal",Vp),x(()=>d(t("Error Restoring Defaults"),u(e)))})};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Confirm Restore Defaults")),1)]),body:ie(()=>[f(Y(g.value),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",Vp)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:w,"button-type":"wf-btn-danger"},{default:ie(()=>[h(J(Vs),{text:J(t)("Restore Defaults"),xs:J(t)("Restore")},null,8,["text","xs"])]),_:1})]),_:1})):r("",!0)]),_:1}))}},Yp={__name:"OnboardingDelayModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__");$("modalName","onboarding-delay-modal");const a=()=>{window.location.reload(!0)};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Notice Dismissed")),1)]),body:ie(()=>[f(Y(J(t)("You will be reminded again in 12 hours.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:a,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Kp={__name:"OnboardingDelayErrorModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__");$("modalName","onboarding-delay-error-modal");const a=()=>{window.location.reload(!0)};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Error")),1)]),body:ie(()=>[f(Y(J(t)("An unexpected error occurred while attempting to dismiss the notice. Please try again.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:a,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},jp={key:0,class:"wf-license-in-use-warning"},Gp={__name:"OnboardingLicenseTypeSuccessModal",props:{show:{type:Boolean,default:!1},licenseType:{type:String,required:!0},showInUse:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("sprintf"),l=b("wfconstants");$("modalName","onboarding-license-type-success-modal");const o=e,d=s(()=>{switch(o.licenseType){case l.license.types.response:return t("Response License Installed");case l.license.types.care:return t("Care License Installed");case l.license.types.premium:return t("Premium License Installed")}return t("Free License Installed")}),p=s(()=>{switch(o.licenseType){case l.license.types.response:return t("Congratulations! Wordfence Response is now active on your website. Please note that some Response features are not enabled by default.");case l.license.types.care:return t("Congratulations! Wordfence Care is now active on your website. Please note that some Care features are not enabled by default.");case l.license.types.premium:return t("Congratulations! Wordfence Premium is now active on your website. Please note that some Premium features are not enabled by default.")}return t("Congratulations! Wordfence Free is now active on your website.")});return(s,o)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,noX:!0},{header:ie(()=>[c("strong",null,Y(d.value),1)]),body:ie(()=>[c("p",null,Y(p.value),1),e.showInUse?(B(),u("div",jp,[c("p",null,Y(J(t)("This key may already be used on several sites. To avoid scan scheduling issues and other problems, you should get a new key or remove it from the other sites.")),1),c("p",null,[h(J(Ep),{unsafeHTML:J(a)(J(t)('You can <a class="wf-onboarding-link" href="%s" target="_blank">get a new free license<span class="screen-reader-text">(opens in new tab)</span></a> for this site directly, or click the "Get a free license" button at the top of the Licenses page when logged in to wordfence.com if you need more than one.'),J(l).plugin.onboarding.registration_link)},null,8,["unsafeHTML"])])])):r("",!0)]),"primary-button":ie(()=>[h(J(Np),{href:J(l).plugin.url.dashboard,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Go To Dashboard")),1)]),_:1},8,["href"])]),_:1})):r("",!0)]),_:1}))}},Qp="onboarding-license-failure-modal",qp={__name:"OnboardingLicenseFailureModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt");$("modalName",Qp);const l=()=>{a.emit("closeModal",Qp)};return(a,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,noX:!0},{header:ie(()=>[c("strong",null,Y(J(t)("Error Installing License")),1)]),body:ie(()=>[c("p",null,Y(J(t)("An error occurred while installing your license key.")),1),c("p",null,[h(J(Ep),{unsafeHTML:J(t)('Please try again. If the problem persists, please <a href="https://www.wordfence.com/help/api-key" target="_blank" rel="noopener noreferrer">contact Wordfence Support<span class="screen-reader-text">(opens in new tab)</span></a>')},null,8,["unsafeHTML"])])]),"primary-button":ie(()=>[h(J(Np),{onClick:l,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Zp={__name:"CommonModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"simple-confirmation-modal":{show:!1,title:"",titleIsHTML:!1,message:"",messageIsHTML:!1,options:{},configurator:e=>{n[e.name].title=e.title,n[e.name].titleIsHTML=e.titleIsHTML??!1,n[e.name].message=e.message,n[e.name].messageIsHTML=e.messageIsHTML??!1,n[e.name].options=e.options??{}}},"restore-defaults-modal":{show:!1,section:"",sectionTitle:"",configurator:e=>{n[e.name].section=e.section,n[e.name].sectionTitle=e.sectionTitle}},"onboarding-delay-modal":{show:!1,configurator:e=>{}},"onboarding-delay-error-modal":{show:!1,configurator:e=>{}},"onboarding-license-type-success-modal":{show:!1,licenseType:"",showInUse:!1,configurator:e=>{n[e.name].licenseType=e.licenseType,n[e.name].showInUse=e.showInUse}},"onboarding-license-failure-modal":{show:!1,configurator:e=>{}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:l.value},null,8,["show"]),h(J(Hp),{show:n["simple-confirmation-modal"].show,title:n["simple-confirmation-modal"].title,titleIsHtml:n["simple-confirmation-modal"].titleIsHTML,message:n["simple-confirmation-modal"].message,messageIsHtml:n["simple-confirmation-modal"].messageIsHTML,options:n["simple-confirmation-modal"].options},null,8,["show","title","titleIsHtml","message","messageIsHtml","options"]),h(J(Up),{show:n["restore-defaults-modal"].show,section:n["restore-defaults-modal"].section,sectionTitle:n["restore-defaults-modal"].sectionTitle},null,8,["show","section","sectionTitle"]),h(J(Yp),{show:n["onboarding-delay-modal"].show},null,8,["show"]),h(J(Kp),{show:n["onboarding-delay-error-modal"].show},null,8,["show"]),h(J(Gp),{show:n["onboarding-license-type-success-modal"].show,licenseType:n["onboarding-license-type-success-modal"].licenseType,showInUse:n["onboarding-license-type-success-modal"].showInUse},null,8,["show","licenseType","showInUse"]),h(J(qp),{show:n["onboarding-license-failure-modal"].show},null,8,["show"])]))}},Jp={class:"wf-status-detail"},zp=["id"],Xp={class:"wf-status-detail-title"},ef={key:0,class:"wf-status-detail-link"},tf=["href","target","rel"],af={class:"wf-circle-tooltip-block"},nf={class:"wf-circle-tooltip-header"},lf={class:"wf-circle-tooltip-body wf-flex-vertical wf-flex-align-left wf-flex-full-width"},sf={class:"wf-flex-row"},of={class:"wf-tooltip-status-circle wf-flex-row-0"},rf=["id"],uf=["innerHTML"],cf={class:"wf-flex-row-1"},df=["href"],pf={class:"wf-flex-row-0"},ff={class:"wf-flex-row-1"},hf=["href"],mf={__name:"StatusRing",props:{percentage:{type:Number,default:0,required:!1},title:{type:String,default:""},subtitle:{type:[String,null],default:null},link:{type:[String,null],default:null},linkLabel:{type:[String,null],default:null},linkNewWindow:{type:Boolean,default:!1},activeColorOverride:{type:[String,null],default:null},inactiveColor:{type:String,default:"#ececec"},size:{type:Number,default:100,required:!1},strokeWidth:{type:Number,default:3,required:!1},statusTitle:{type:String,default:""},statusList:{type:[Array,null],default:null},helpLink:{type:String,default:""}},setup(e){const a=b("$"),l=b("__"),o=b("$mitt"),d=b("$dataStore"),{percentage:p,activeColorOverride:m,inactiveColor:g,size:w,strokeWidth:v}=Q(e),y=z(),A=ee("circle"),k=ee("circleSVG"),_=ee("inactivePath"),S=ee("activePath"),M=ee("terminator"),L=ee("tooltipContent"),O=ee("pendingOverlay"),$=ee("tooltipCircleSVG"),P=ee("tooltipInactivePath"),E=ee("tooltipActivePath"),W=ee("tooltipTerminator");T(()=>{Z(k.value,_.value,S.value,M.value),$.value&&P.value&&E.value&&W.value&&Z($.value,P.value,E.value,W.value),q(),a(A.value).tooltip({tooltipClass:"wf-circle-tooltip",position:{my:"left-40 bottom",at:"center top",using:function(e,t){a(this).removeClass("wf-tooltip-vertical-top wf-tooltip-vertical-bottom wf-tooltip-horizontal-left wf-tooltip-horizontal-right").addClass("wf-tooltip-vertical-"+t.vertical).addClass("wf-tooltip-horizontal-"+t.horizontal),a(this).css({left:e.left+"px",top:e.top+"px"})}},items:A.value,close:(e,t)=>{t.tooltip.hover(function(){a(this).stop(!0).fadeTo(400,1)},function(){a(this).fadeOut("400",()=>{a(this).remove()})})},content:()=>L.value.innerHTML}),o.on("pendingOptionChanged",V)}),D(()=>{a(A.value).tooltip("destroy"),o.off("pendingOptionChanged",V)});const H=R(!1),V=e=>{H.value=Object.keys(d.$pendingOptions).length>0},U=e=>{if(m.value)return m.value;let t="#fcb214";return e<=0?t="#ececec":e<=.5?t="#9e0000":e>=1&&(t="#16bc9b"),t},K=s(()=>Math.round(100*p.value)),j=R(0),G=s(()=>Math.round(100*j.value)+"%"),q=()=>{const e=Math.floor(w.value/2),t=e-2*v.value,n=2*t*Math.PI,l=-n*(1-p.value),s=Math.floor(1.5*v.value),o=2*s,i="m 0,-"+s+" a "+s+","+s+" 0 1 1 0,"+o+" a "+s+","+s+" 0 1 1 0,-"+o;a(S.value).animate({"stroke-dashoffset":l+"px"},{duration:500,step:l=>{const s=1+l/n,o=e-t*Math.cos(2*Math.PI*(s-.25)),r=e+t*Math.sin(2*Math.PI*(s-.25));a(M.value).attr("d","M "+o+","+r+" "+i),j.value=s},complete:()=>{j.value=p.value}}),a(E.value).attr("stroke-dashoffset",l+"px");const r=1+l/n,u=e-t*Math.cos(2*Math.PI*(r-.25)),c=e+t*Math.sin(2*Math.PI*(r-.25));a(W.value).attr("d","M "+u+","+c+" "+i)},Z=(e,t,n,l)=>{const s=Math.floor(w.value/2),o=s-2*v.value,i=2*o*Math.PI,r=-i,u=Math.floor(1.5*v.value),c=2*u,d=s-o*Math.cos(2*Math.PI*(p.value-.25)),f=s+o*Math.sin(2*Math.PI*(p.value-.25)),h="m 0,-"+u+" a "+u+","+u+" 0 1 1 0,"+c+" a "+u+","+u+" 0 1 1 0,-"+c;a(e).attr("viewBox","0 0 "+w.value+" "+w.value),a(e).css("display","block"),a(e).css("width",w.value+"px"),a(e).css("height",w.value+"px"),a(t).attr("d","M "+s+","+s+" m 0,-"+o+" a "+o+","+o+" 0 1 1 0,"+2*o+" a "+o+","+o+" 0 1 1 0,-"+2*o),a(t).attr("stroke",g.value),a(t).attr("stroke-width",v.value),a(t).attr("fill-opacity",0),a(n).attr("d","M "+s+","+s+" m 0,-"+o+" a "+o+","+o+" 0 1 1 0,"+2*o+" a "+o+","+o+" 0 1 1 0,-"+2*o),a(n).attr("stroke",U(p.value)),a(n).attr("stroke-width",v.value),a(n).attr("stroke-dasharray",i+","+i),a(n).attr("stroke-dashoffset",r),a(n).attr("fill-opacity",0),a(l).attr("d","M "+d+","+f+" "+h),a(l).attr("stroke",U(p.value)),a(l).attr("stroke-width",v.value),a(l).attr("fill","#ffffff")};return oe(p,()=>{x(()=>{Z(k.value,_.value,S.value,M.value),$.value&&P.value&&E.value&&W.value&&Z($.value,P.value,E.value,W.value),q()})}),(a,s)=>(B(),u("div",Jp,[c("div",{id:`circle-${J(y).id}`,class:"wf-status-circular",ref_key:"circle",ref:A},[(B(),u("svg",{viewBox:"0 0 100 100",style:I({width:J(w)+"px",height:J(w)+"px"}),ref_key:"circleSVG",ref:k},[c("path",{class:"wf-status-circular-inactive-path",ref_key:"inactivePath",ref:_,d:""},null,512),c("path",{class:"wf-status-circular-active-path",ref_key:"activePath",ref:S,d:""},null,512),c("path",{class:"wf-status-circular-terminator",ref_key:"terminator",ref:M,d:""},null,512)],4)),c("div",{class:"wf-status-circular-text",ref:"circleText"},Y(G.value),513),h(n,{name:"wf-fade"},{default:ie(()=>[H.value?(B(),u("div",{key:0,class:"wf-status-overlay-text",ref_key:"pendingOverlay",ref:O},[N(a.$slots,"pendingMessage",{},()=>[f(Y(J(l)("Note: Status will update when changes are saved")),1)])],512)):r("",!0)]),_:3})],8,zp),c("p",Xp,[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])]),c("p",{class:C(["wf-status-detail-subtitle",{"wf-no-bottom":!e.linkLabel}])},[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2),e.linkLabel?(B(),u("p",ef,[c("a",{href:e.link,target:e.linkNewWindow?"_blank":null,rel:e.linkNewWindow?"noopener noreferrer":null},[e.linkNewWindow?(B(),i(J(Kn),{key:0})):r("",!0),f(Y(e.linkLabel),1)],8,tf)])):r("",!0),re(c("div",{ref_key:"tooltipContent",ref:L},[N(a.$slots,"tooltip",{},()=>[c("div",af,[c("div",nf,[c("h4",null,Y(e.statusTitle),1)]),c("div",lf,[N(a.$slots,"statusExtra"),c("div",sf,[c("div",of,[c("div",{id:`tooltip-circle-${J(y).id}`,class:"wf-status-circular",ref:"tooltipCircle"},[(B(),u("svg",{viewBox:"0 0 100 100",style:I({width:J(w)+"px",height:J(w)+"px"}),ref_key:"tooltipCircleSVG",ref:$},[c("path",{class:"wf-status-circular-inactive-path",ref_key:"tooltipInactivePath",ref:P,d:""},null,512),c("path",{class:"wf-status-circular-active-path",ref_key:"tooltipActivePath",ref:E,d:""},null,512),c("path",{class:"wf-status-circular-terminator",ref_key:"tooltipTerminator",ref:W,d:""},null,512)],4)),c("div",{class:"wf-status-circular-text",ref:"tooltipCircleText"},Y(K.value)+"%",513),H.value?(B(),u("div",{key:0,class:"wf-status-overlay-text",ref:"tooltipPendingOverlay",innerHTML:O.value?.innerHTML},null,8,uf)):r("",!0)],8,rf)]),c("div",cf,[100!==K.value&&e.statusList?(B(),u(t,{key:1},[c("h4",null,Y(J(l)("How do I get to 100%?")),1),c("ul",null,[(B(!0),u(t,null,F(e.statusList,e=>(B(),u("li",{class:"wf-flex-row",key:e.title},[c("strong",pf,Y(Math.round(100*e.percentage))+"%",1),c("span",ff,Y(e.title),1)]))),128))]),c("p",null,[c("a",{target:"_blank",rel:"noopener noreferrer",href:e.helpLink},[f(Y(J(l)("How does Wordfence determine this?")),1),h(J(Kn))],8,hf)])],64)):(B(),u(t,{key:0},[c("p",null,[c("strong",null,Y(J(l)("Congratulations!")),1),f(" "+Y(J(l)("You've optimized configurations for this feature! If you want to learn more about how this score is determined, click the link below.")),1)]),c("p",null,[c("a",{target:"_blank",rel:"noopener noreferrer",href:e.helpLink},[f(Y(J(l)("How does Wordfence determine this?")),1),h(J(Kn))],8,df)])],64))])])])])])],512),[[se,!1]])]))}},gf={class:"wf-status-detail"},wf={class:"wf-status-detail-title"},vf={class:"wf-status-detail-subtitle"},yf={class:"wf-status-detail-link"},bf=["href","target","rel"],Af={__name:"StatusCritical",props:{title:{type:String},subtitle:{type:String,default:""},link:{type:[String,null],default:null},linkLabel:{type:[String,null],default:null},linkNewWindow:{type:Boolean,default:!1}},setup:e=>(t,a)=>(B(),u("div",gf,[a[0]||(a[0]=c("div",{class:"wf-status-critical"},[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 116.93 108.46"},[c("path",{d:"M115.82,96.14,65.76,4.37a8.33,8.33,0,0,0-3.06-3.2,8.24,8.24,0,0,0-8.47,0,8.34,8.34,0,0,0-3.07,3.2L1.11,96.14a7.78,7.78,0,0,0,.13,8.21,8.16,8.16,0,0,0,3,3,8.13,8.13,0,0,0,4.14,1.11H108.52a8.36,8.36,0,0,0,7.17-4.11,7.78,7.78,0,0,0,.13-8.21Zm-49-6.52a2.09,2.09,0,0,1-.62,1.53,2,2,0,0,1-1.46.62H52.21a2,2,0,0,1-1.46-.62,2.08,2.08,0,0,1-.62-1.53V77.24a2.08,2.08,0,0,1,.62-1.53,2,2,0,0,1,1.46-.62H64.72a2,2,0,0,1,1.47.62,2.09,2.09,0,0,1,.62,1.53V89.62Zm-.13-24.37A1.45,1.45,0,0,1,66,66.32a2.66,2.66,0,0,1-1.53.42H52.4a2.81,2.81,0,0,1-1.56-.42,1.25,1.25,0,0,1-.65-1.08L49.08,35.46a1.56,1.56,0,0,1,.65-1.37,2.52,2.52,0,0,1,1.56-.72H65.64a2.51,2.51,0,0,1,1.57.72,1.43,1.43,0,0,1,.65,1.24Zm0,0"})])],-1)),c("p",wf,[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])]),c("p",vf,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])]),c("p",yf,[e.linkLabel?(B(),u("a",{key:0,href:e.link,target:e.linkNewWindow?"_blank":null,rel:e.linkNewWindow?"noopener noreferrer":null},[f(Y(e.linkLabel),1),h(J(Kn))],8,bf)):r("",!0)])]))},kf={class:"wf-status-detail"},_f={class:"wf-status-detail-title"},xf={class:"wf-status-detail-subtitle"},Cf={class:"wf-status-detail-link"},Sf=["href","target","rel"],If={__name:"StatusPaymentExpiring",props:{title:{type:String},subtitle:{type:String,default:""},link:{type:[String,null],default:null},linkLabel:{type:[String,null],default:null},linkNewWindow:{type:Boolean,default:!1}},setup:e=>(t,a)=>(B(),u("div",kf,[a[0]||(a[0]=p('<div class="wf-status-payment-expiring"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 644"><g><path style="fill:none;" d="M66.3,269.5v205.4c0,2.9,1.1,5.5,3.2,7.6c2.1,2.1,4.7,3.2,7.6,3.2h413.6c8.8-72,65.8-129.1,137.8-138v-78.2\n\t\tH66.3z M196,442.4h-86.5l0-43.2H196V442.4z M369,442.4H239.3v-43.2H369V442.4z"></path><path style="fill:none;" d="M628.4,64.1c0-2.9-1.1-5.4-3.2-7.6c-2.1-2.1-4.7-3.2-7.6-3.2H77.1c-2.9,0-5.5,1.1-7.6,3.2s-3.2,4.7-3.2,7.6\n\t\tv75.7h562.1V64.1z"></path><g><path style="fill:none;" d="M617.6,53.3H77.1c-2.9,0-5.5,1.1-7.6,3.2s-3.2,4.7-3.2,7.6v75.7h562.1V64.1c0-2.9-1.1-5.4-3.2-7.6\n\t\t\tC623.1,54.3,620.5,53.3,617.6,53.3z"></path><path d="M655.8,25.9C645.2,15.3,632.5,10,617.6,10H77.1c-14.9,0-27.6,5.3-38.2,15.9C28.3,36.5,23,49.2,23,64.1v410.8\n\t\t\tc0,14.9,5.3,27.6,15.9,38.2c10.6,10.6,23.3,15.9,38.2,15.9h414.1c-1.2-7.8-1.8-15.8-1.8-23.9c0-6.5,0.4-13,1.2-19.3H77.1\n\t\t\tc-2.9,0-5.5-1.1-7.6-3.2c-2.1-2.1-3.2-4.7-3.2-7.6V269.5h562.1v78.2c6.4-0.8,12.9-1.2,19.5-1.2c8.1,0,16,0.6,23.7,1.8V64.1\n\t\t\tC671.7,49.2,666.4,36.5,655.8,25.9z M628.4,139.7H66.3V64.1c0-2.9,1.1-5.4,3.2-7.6s4.7-3.2,7.6-3.2h540.5c2.9,0,5.5,1.1,7.6,3.2\n\t\t\tc2.1,2.1,3.2,4.7,3.2,7.6V139.7z"></path><rect x="109.5" y="399.2" width="86.5" height="43.2"></rect><rect x="239.3" y="399.2" width="129.7" height="43.2"></rect></g><g><path d="M759.7,440.3c-11.5-19.8-27.2-35.4-46.9-46.9C693,381.8,671.4,376,648,376s-45,5.8-64.7,17.3\n\t\t\tc-19.8,11.5-35.4,27.2-46.9,46.9C524.8,460,519,481.6,519,505c0,23.4,5.8,45,17.3,64.7c11.5,19.8,27.2,35.4,46.9,46.9\n\t\t\tC603,628.2,624.6,634,648,634s45-5.8,64.7-17.3c19.8-11.5,35.4-27.2,46.9-46.9C771.2,550,777,528.4,777,505\n\t\t\tC777,481.6,771.2,460,759.7,440.3L759.7,440.3z M669.5,585.5c0,1.6-0.5,2.9-1.5,3.9c-1,1.1-2.2,1.6-3.7,1.6H632\n\t\t\tc-1.5,0-2.7-0.6-3.9-1.7c-1.1-1.1-1.7-2.4-1.7-3.9v-31.9c0-1.5,0.6-2.7,1.7-3.9c1.1-1.1,2.4-1.7,3.9-1.7h32.2\n\t\t\tc1.5,0,2.7,0.5,3.7,1.6c1,1.1,1.5,2.4,1.5,3.9V585.5z M669.1,527.7c-0.1,1.1-0.7,2.1-1.8,2.9c-1.1,0.8-2.4,1.3-3.9,1.3h-31.1\n\t\t\tc-1.6,0-2.9-0.4-4-1.3c-1.1-0.8-1.7-1.8-1.7-2.9l-2.9-104.3c0-1.3,0.6-2.3,1.7-3c1.1-0.9,2.5-1.3,4-1.3h36.9c1.6,0,2.9,0.5,4,1.3\n\t\t\tc1.1,0.7,1.7,1.7,1.7,3L669.1,527.7z M669.1,527.7"></path></g></g></svg></div>',1)),c("p",_f,[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])]),c("p",xf,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])]),c("p",Cf,[e.linkLabel?(B(),u("a",{key:0,href:e.link,target:e.linkNewWindow?"_blank":null,rel:e.linkNewWindow?"noopener noreferrer":null},[f(Y(e.linkLabel),1),h(J(Kn))],8,Sf)):r("",!0)])]))},Df={class:"wf-status-detail"},Mf={class:"wf-status-detail-title"},Tf={class:"wf-status-detail-subtitle"},Lf={class:"wf-status-detail-link"},Of=["href","target","rel"],Bf={__name:"StatusRenewing",props:{title:{type:String},subtitle:{type:String,default:""},link:{type:[String,null],default:null},linkLabel:{type:[String,null],default:null},linkNewWindow:{type:Boolean,default:!1}},setup:e=>(t,a)=>(B(),u("div",Df,[a[0]||(a[0]=p('<div class="wf-status-renewing"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 608"><g><path d="M374.4,332.6l9.1,9c1.2,1.2,2.7,1.9,4.5,1.9c1.8,0,3.3-0.6,4.5-1.9l9-9l48.2-48.2c1.2-1.2,1.9-2.8,1.9-4.5c0-1.8-0.6-3.3-1.9-4.5l-9.1-9c-1.2-1.2-2.7-1.9-4.5-1.9c-1.8,0-3.3,0.6-4.5,1.9L388,310.1l-19.6-19.6c-1.2-1.2-2.8-1.9-4.5-1.9c-1.8,0-3.3,0.6-4.5,1.9l-9,9c-1.2,1.2-1.9,2.8-1.9,4.5c0,1.8,0.6,3.3,1.9,4.5L374.4,332.6z"></path><path d="M767.7,304.8c-4.5-4.5-10.1-6.8-16.7-6.8l-67.6-0.3c-1-36.2-8.8-71.2-23.1-104.9c-14.4-33.7-34.2-63.2-59.7-88.7c-47.9-47.9-104.2-75.2-168.9-81.9c-64.7-6.7-126,7.6-184,43l-1.8,1.8c-2.3,2.3-3.4,5-3.4,8.4c0,3.3,1.1,6.1,3.4,8.3l52,52c3.8,3.8,8.4,4.4,13.8,1.8c24.7-10.1,39.5-15.7,44.4-16.7c32.1-7.7,63.8-7,95.3,1.8c31.5,8.9,59,25,82.3,48.3c35,35,53.5,77.3,55.4,126.9l-72.1,0c-6.6,0-12.2,2.3-16.7,6.8c-4.5,4.5-6.8,10.1-6.8,16.7c0,6.6,2.3,12.2,6.8,16.7l117,117c4.5,4.5,10.1,6.8,16.7,6.8c6.6,0,12.2-2.3,16.7-6.8l117-117c4.5-4.5,6.8-10.1,6.8-16.7C774.5,314.9,772.3,309.4,767.7,304.8z"></path><path d="M502.1,473.8c-3.8-3.8-8.5-4.4-13.8-1.8c-24.7,10.1-39.5,15.7-44.4,16.7c-32,7.7-63.8,7.1-95.3-1.8c-31.5-8.9-58.9-25-82.3-48.3c-16.9-16.9-30.1-36.3-39.5-58.2c-9.4-21.9-14.5-44.8-15.4-68.7l71.5,0c6.6,0,12.2-2.3,16.7-6.8c4.5-4.5,6.8-10.1,6.8-16.7c0-6.6-2.3-12.2-6.8-16.7l-117-117c-4.5-4.5-10.1-6.8-16.7-6.8c-6.6,0-12.2,2.3-16.7,6.8l-117,117c-4.5,4.5-6.8,10.1-6.8,16.7c0,6.6,2.3,12.2,6.8,16.7c4.5,4.5,10.1,6.8,16.7,6.8l67.4,0c0.9,36.4,8.4,71.3,22.6,104.6c14.2,33.4,34,62.7,59.4,88.1c47.7,47.7,103.8,74.9,168.3,81.4c64.5,6.5,125.7-8,183.5-43.5c0.5-0.2,1.2-0.7,2.1-1.6c2.3-2.3,3.4-5.1,3.4-8.4c0-3.3-1.1-6.1-3.4-8.4L502.1,473.8z"></path></g></svg></div>',1)),c("p",Mf,[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])]),c("p",Tf,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])]),c("p",Lf,[e.linkLabel?(B(),u("a",{key:0,href:e.link,target:e.linkNewWindow?"_blank":null,rel:e.linkNewWindow?"noopener noreferrer":null},[f(Y(e.linkLabel),1),h(J(Kn))],8,Of)):r("",!0)])]))},$f={class:"wf-row"},Pf={class:"wf-col-xs-12"},Ef={class:"wf-block wf-active wf-add-bottom"},Rf={class:"wf-block-content"},Ff={class:"wf-block-list"},Nf={key:0},Wf={class:"wf-block-list wf-block-list-horizontal"},Hf={id:"wfStatusTourMarker"},Vf={class:"wf-block-labeled-value wf-global-status wf-global-status-full-enabled"},Uf={class:"wf-block-labeled-value-label"},Yf={class:"wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-waf-coverage"},Kf={class:"wf-flex-horizontal wf-flex-full-width wf-no-top"},jf={class:"wf-tip-info-message"},Gf=["href"],Qf={key:3},qf=["href"],Zf=["href"],Jf={class:"wf-block-labeled-value-value"},zf={class:"wf-fa wf-fa-check"},Xf={class:"wf-block-labeled-value-label"},eh={key:0},th=["href"],ah=["href"],nh={__name:"DashboardHeader",props:{showProtectionActivated:{type:Boolean,default:!0},attributionTag:{type:String},firewallOptionsLink:{type:String},scanOptionsLink:{type:String}},setup(e){const a=b("__"),n=b("sprintf"),l=b("wfconstants");return(s,o)=>{const p=W("aria");return B(),u("div",$f,[c("div",Pf,[c("div",Ef,[c("div",Rf,[c("ul",Ff,[e.showProtectionActivated?(B(),u("li",Nf,[c("ul",Wf,[c("li",Hf,[c("div",Vf,[c("div",Uf,Y(J(a)("Wordfence Protection Activated")),1)])])])])):r("",!0),c("li",null,[c("ul",Yf,[c("li",null,[h(J(mf),{id:"waf-coverage",percentage:J(l).waf.overallPercentage,activeColorOverride:J(l).waf.mode===J(l).waf.modes.learning_mode?"#ececec":null,title:J(a)("Firewall"),subtitle:J(l).waf.mode===J(l).waf.modes.learning_mode?J(a)("WAF Currently in Learning Mode"):J(a)("Protection from known and emerging threats"),link:e.firewallOptionsLink,linkLabel:J(a)("Manage Firewall"),statusTitle:J(a)("Firewall Status"),statusList:J(l).waf.overallStatusList,helpLink:"https://www.wordfence.com/help/dashboard/#dashboard-status"},d({_:2},[J(l).waf.mode===J(l).waf.modes.learning_mode?{name:"statusExtra",fn:ie(()=>[c("ul",Kf,[o[0]||(o[0]=c("li",{class:"wf-tip-light-bulb"},[c("i",{class:"wf-ion-ios-lightbulb-outline"})],-1)),c("li",jf,[c("strong",null,[f(Y(J(a)("The Web Application Firewall is currently in Learning Mode."))+" ",1),c("a",{href:J(l).support.url.firewall_waf_learning_mode,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,Gf)])])])]),key:"0"}:void 0]),1032,["percentage","activeColorOverride","title","subtitle","link","linkLabel","statusTitle","statusList"])]),c("li",null,[h(J(mf),{id:"wf-scanner-type",percentage:J(l).scanner.overallPercentage,activeColorOverride:J(l).scanner.enabled?null:"#ececec",title:J(a)("Scan"),subtitle:J(a)("Detection of security issues"),link:e.scanOptionsLink,linkLabel:J(a)("Manage Scan"),statusTitle:J(a)("Scan Status"),statusList:J(l).scanner.overallStatusList,helpLink:"https://www.wordfence.com/help/dashboard/#dashboard-status"},null,8,["percentage","activeColorOverride","title","subtitle","link","linkLabel","statusTitle","statusList"])]),c("li",null,[J(l).license.has_conflict?(B(),i(J(Af),{key:0,id:"wf-premium-alert",title:J(a)("Premium License Conflict"),subtitle:J(a)("License already in use"),link:"https://www.wordfence.com/gnl1manageConflict/manage-wordfence-api-keys/",linkLabel:J(a)("Reset License"),linkNewWindow:!0},null,8,["title","subtitle","linkLabel"])):J(l).license.is_expired?(B(),i(J(Af),{key:1,id:"wf-premium-alert",title:J(a)("Premium Protection Disabled"),subtitle:J(a)("License is expired"),link:"https://www.wordfence.com/gnl1renewExpired/manage-wordfence-api-keys/",linkLabel:J(a)("Renew License"),linkNewWindow:!0},null,8,["title","subtitle","linkLabel"])):J(l).license.is_deactivated?(B(),i(J(Af),{key:2,id:"wf-premium-alert",title:J(a)("Premium Protection Disabled")},{subtitle:ie(()=>[h(J(Ep),{unsafeHTML:J(a)('The license you were using has been removed from your account. Please reach out to <a href="mailto:billing@wordfence.com">billing@wordfence.com</a> or create a Premium support case at <a href="https://support.wordfence.com/support/tickets" target="_blank">https://support.wordfence.com/support/tickets<span class="screen-reader-text"> (opens in new tab)</span></a> for more information. Our staff is happy to help.')},null,8,["unsafeHTML"])]),_:1},8,["title"])):J(l).license.current.type===J(l).license.types.free?(B(),u("div",Qf,[c("h3",null,Y(J(a)("Premium Protection Disabled")),1),c("p",null,Y(J(a)("As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by additional firewall rules and malware signatures. Upgrade to Premium today to improve your protection.")),1),c("p",null,[c("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:`https://www.wordfence.com/gnl1${e.attributionTag}Upgrade/products/wordfence-premium/`,target:"_blank",rel:"noopener noreferrer"},Y(J(a)("Upgrade to Premium")),9,qf),o[1]||(o[1]=f(" ",-1)),c("a",{class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:`https://www.wordfence.com/gnl1${e.attributionTag}Learn/products/pricing/`,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,Zf)])])):J(l).license.current.exp_days<30&&!J(l).license.current.autorenew_enabled?(B(),i(J(Af),{key:4,id:"wf-premium-alert",title:J(n)(J(a)("%s License Expiring"),J(l).license.labels[J(l).license.current.type]??J(l).license.labels.premium),subtitle:J(a)("Auto-renew is disabled"),link:"https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/",linkLabel:J(a)("Renew License"),linkNewWindow:!0},null,8,["title","subtitle","linkLabel"])):J(l).license.current.exp_days<30?(B(),u(t,{key:5},[J(l).license.current.payment_method_expiring||J(l).license.current.payment_method_expired||J(l).license.current.payment_method_missing||J(l).license.current.payment_method_hold?(B(),i(J(If),{key:0,id:"wf-premium-alert",link:"https://www.wordfence.com/gnl1renewExpiring/manage-wordfence-api-keys/",linkLabel:J(a)("Update Payment Method"),linkNewWindow:!0},{title:ie(()=>[J(l).license.current.payment_method_expiring?(B(),u(t,{key:0},[f(Y(J(a)("Payment Method Expiring")),1)],64)):J(l).license.current.payment_method_expired?(B(),u(t,{key:1},[f(Y(J(a)("Payment Method Expired")),1)],64)):J(l).license.current.payment_method_missing?(B(),u(t,{key:2},[f(Y(J(a)("Payment Method Missing")),1)],64)):J(l).license.current.payment_method_hold?(B(),u(t,{key:3},[f(Y(J(a)("Payment Method Invalid")),1)],64)):r("",!0)]),subtitle:ie(()=>[J(l).license.current.next_renew<=0?(B(),u(t,{key:0},[f(Y(J(a)("License renews today")),1)],64)):1===J(l).license.current.next_renew?(B(),u(t,{key:1},[f(Y(J(a)("License renews tomorrow")),1)],64)):(B(),u(t,{key:2},[f(Y(J(n)(J(a)("License renews in %d days"),J(l).license.current.next_renew)),1)],64))]),_:1},8,["linkLabel"])):(B(),i(J(Bf),{key:1,id:"wf-premium-alert",title:J(n)(J(a)("%s License Expiring"),J(l).license.labels[J(l).license.current.type]??J(l).license.labels.premium),link:"https://www.wordfence.com/gnl1reviewExpiring/manage-wordfence-api-keys/",linkLabel:J(a)("Review Payment Method"),linkNewWindow:!0},{subtitle:ie(()=>[J(l).license.current.next_renew<=0?(B(),u(t,{key:0},[f(Y(J(a)("License renews today")),1)],64)):1===J(l).license.current.next_renew?(B(),u(t,{key:1},[f(Y(J(a)("License renews tomorrow")),1)],64)):(B(),u(t,{key:2},[f(Y(J(n)(J(a)("License renews in %d days"),J(l).license.current.next_renew)),1)],64))]),_:1},8,["title","linkLabel"]))],64)):J(l).license.current.minimum_premium?(B(),u("div",{key:6,class:C(["wf-block-labeled-value","wf-protection-status",`wf-protection-status-${J(l).waf.ruleMode}`])},[c("div",Jf,[re(c("i",zf,null,512),[[p,{hidden:!0}]])]),c("div",Xf,Y(J(n)(J(a)("%s Enabled"),J(l).license.labels[J(l).license.current.type]??J(l).license.labels.premium)),1),J(l).license.current.below_response?(B(),u("p",eh,[J(l).license.current.below_care?(B(),u("a",{key:0,href:`https://www.wordfence.com/gnl1${e.attributionTag}LearnCareResponse/products/pricing/`},Y(J(a)("Learn about Wordfence Care and Wordfence Response")),9,th)):(B(),u("a",{key:1,href:`https://www.wordfence.com/gnl1${e.attributionTag}LearnResponse/products/wordfence-response/`},Y(J(a)("Learn about Wordfence Response")),9,ah))])):r("",!0)],2)):r("",!0)])])])])])])])])}}},lh="disconnect-central-confirmation-modal",sh={__name:"DisconnectCentralConfirmationModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt"),{$ajax:l}=In(),{$modalNotice:s}=Hn();$("modalName",lh);const o=()=>{l("wordfence_wfcentral_disconnect",{},e=>{e&&e.success&&e.message&&e.title?s(e.title,e.message,null,{onClosed:u}):u()})},u=()=>{window.location.reload(!0)};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Confirm Disconnect")),1)]),body:ie(()=>[f(Y(J(t)("Are you sure you want to disconnect your site from Wordfence Central?")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",lh)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:o,"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Disconnect")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},oh={key:0},ih="live-traffic-migration-modal",rh={__name:"LiveTrafficMigrationModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt"),l=b("wfconstants"),{$ajax:s}=In();$("modalName",ih);const o=()=>{s("wordfence_switchLiveTrafficSecurityOnlyChoice",{choice:"yes"}),a.emit("closeModal",ih)},d=()=>{s("wordfence_switchLiveTrafficSecurityOnlyChoice",{choice:"no"}),a.emit("closeModal",ih)};return(a,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Recommended Settings Change")),1)]),body:ie(()=>[c("p",null,Y(J(t)("Greetings! The default configuration for Wordfence Live Traffic has changed. The new default saves only logins and blocked requests, while this site is currently recording all traffic. Would you like to change to the new default?")),1),J(l).livetraffic.limit.identical?r("",!0):(B(),u("p",oh,Y(J(t)("Rate limiting based on type of request (human vs crawler) may be less accurate because this prevents loading the extra JavaScript used for that identification.")),1))]),"primary-button":ie(()=>[h(J(Np),{onClick:o,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Yes Please")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{href:J(l).support.url.notice_switch_live_traffic,target:"_blank",rel:"noopener noreferrer"},{default:ie(()=>[f(Y(J(t)("Learn More")),1)]),_:1},8,["href"]),h(J(Np),{onClick:d},{default:ie(()=>[f(Y(J(t)("No Thanks")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},uh={__name:"DashboardModals",setup(e){const t=b("$mitt"),a=b("wfconstants"),n=b("$dataStore"),{$hasOwn:l}=cn(),o=P({"disconnect-central-confirmation-modal":{show:!1,configurator:e=>{}},"live-traffic-migration-modal":{show:!1,configurator:e=>{}}}),i=s(()=>Object.values(o).some(e=>e.show));T(()=>{t.on("showModal",r),t.on("closeModal",c),!a.livetraffic.recording.record_all||a.livetraffic.recording.host_setting||n.$options.switchLiveTrafficSecurityOnlyChoice||x(()=>{t.emit("showModal",{name:"live-traffic-migration-modal"})})}),D(()=>{t.off("showModal",r),t.off("closeModal",c)});const r=e=>{for(const t of Object.keys(o))t!==e.name&&o[t].show&&(o[t].show=!1);l(o,e.name)&&(o[e.name].configurator(e),o[e.name].show=!0)},c=e=>{l(o,e)&&(o[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:i.value},null,8,["show"]),h(J(sh),{show:o["disconnect-central-confirmation-modal"].show},null,8,["show"]),h(J(rh),{show:o["live-traffic-migration-modal"].show},null,8,["show"])]))}},ch={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("The Wordfence Dashboard provides valuable insights into the current state of your site's security. You'll find useful data summarized here as well as important status updates and notifications.")),1))}},dh={__name:"NewTour2",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("Each feature contains a status that reminds you what's enabled, disabled or needs attention. The Notifications section will highlight actions you need to take.")),1))}},ph={__name:"NewTour3",setup(e){const a=b("__");return(e,n)=>(B(),u(t,null,[n[0]||(n[0]=c("p",{class:"wf-center"},[c("svg",{viewBox:"0 0 100.11 100.11",class:"wf-icon"},[c("path",{d:"M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"})])],-1)),c("p",null,Y(J(a)("You'll find this icon throughout the plugin. Clicking it will show you the options and features for each section of Wordfence. From the dashboard, you can find the Global Options for Wordfence such as alerts, automatic updates, and managing your site's Premium License.")),1)],64))}},fh={__name:"DashboardNewTour",setup(e){const t=b("__"),n=b("wfconstants"),l=R(!1),s=R(0);$("tourName",n.tour.types.dashboard),T(()=>{n.tour.new.dashboard&&(l.value=!0)});const o=[{title:t("This is your Dashboard"),content:ch,anchor:{selector:"#wfStatusTourMarker",pointer:{edge:"top",align:"left"}}},{title:t("Easily Monitor Your Wordfence Protection"),content:dh,anchor:{selector:"#waf-coverage",pointer:{edge:"top",align:"left"}}},{title:t("Global Wordfence Options"),content:ph,anchor:{selector:"#wf-dashboard-option-options",pointer:{edge:"right",align:"right"}}}],r=()=>{n.tour.new.dashboard=!1,l.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:l.value},null,8,["show"]),h(J(Fn),{show:l.value,selectedIndex:s.value,slides:o,onCloseTour:r},null,8,["show","selectedIndex"])]))}};function hh(){const e=b("$dataStore"),{$ajax:t}=In(),a=t=>e.disclosures.$active.includes(t),n=(e,a)=>{t("wordfence_saveDisclosureState",{name:e,state:a},()=>{})};return{$isDisclosureActive:a,$setDisclosureActive:(t,l)=>{a(t)!==l&&(l?e.disclosures.$active.push(t):e.disclosures.$active.splice(e.disclosures.$active.indexOf(t),1),n(t,l))},$saveDisclosureState:n}}var mh={class:"wf-block-header-action"},gh=["tabindex"],wh={__name:"BlockDisclosureControl",emits:["toggleDisclosure"],setup(e,{emit:t}){const{$isDisclosureActive:a}=hh(),n=t,l=b("$dataStore"),s=b("stateKey"),o=b("tabIndex",0),i=R(!1);return T(()=>{i.value=a(s)}),oe(()=>l.disclosures.$active,()=>i.value=a(s),{deep:!0}),(e,t)=>{const a=W("aria");return B(),u("div",mh,[re(c("div",{class:"wf-block-header-action-disclosure",tabindex:J(o),onClick:t[0]||(t[0]=ce(e=>n("toggleDisclosure"),["stop","prevent"])),onKeydown:t[1]||(t[1]=ue(ce(e=>n("toggleDisclosure"),["stop","prevent"]),["space"]))},null,40,gh),[[a,{role:"checkbox",checked:i.value}]])])}}},vh=["id","data-persistence-key"],yh={class:"wf-block-header-content"},bh={class:"wf-block-title"},Ah={key:0,class:"wf-text-small"},kh={class:"wf-block-content wf-clearfix"},_h={__name:"DisclosureBlock",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0}},emits:["toggleDisclosure"],setup(e,{emit:t}){const{$isDisclosureActive:a,$setDisclosureActive:n}=hh(),l=t,o=X(),d=b("$"),p=b("$mitt"),m=b("$dataStore"),{stateKey:g,collapseable:w,disabled:v,tabIndex:y}=Q(e);$("stateKey",g),$("collapseable",w),$("disabled",v),$("tabIndex",y);const A=ee("blockElement"),k=R(a(g.value)||!w.value);T(()=>{p.on("expandDisclosureBlock",_)}),D(()=>{p.off("expandDisclosureBlock",_)});const _=e=>{const t=e.key??null,a=e.scrollTo??!1,s=e.onComplete??(()=>{});t===g.value&&(k.value||(n(g.value,!0),l("toggleDisclosure")),x(()=>{!1!==a&&(!0===a&&A.value?d("html, body").animate({scrollTop:d(A.value).offset().top-100},1e3):!0!==a&&d(a).length&&d("html, body").animate({scrollTop:d(a).offset().top-100},1e3)),s()}))};oe(()=>m.disclosures.$active,()=>k.value=a(g.value)||!w.value,{deep:!0});const S=s(()=>{let e=[];return e.push("wf-block"),!k.value&&w.value||e.push("wf-active"),v.value&&e.push("wf-disabled"),e}),I=()=>{w.value&&(v.value||(n(g.value,!k.value),l("toggleDisclosure")))},M=e=>{w.value&&(v.value||e.target&&"A"===e.target.nodeName&&e.target.href||I())};return(e,t)=>(B(),u("div",{id:J(g),class:C(S.value),"data-persistence-key":J(g),ref_key:"blockElement",ref:A},[c("div",{class:C({"wf-block-header":!0,"wf-clickable":J(w)}),onClick:M},[c("div",yh,[c("div",bh,[c("strong",null,[N(e.$slots,"title")]),J(o).subtitle?(B(),u("span",Ah,[t[0]||(t[0]=f(" ",-1)),N(e.$slots,"subtitle")])):r("",!0)]),J(w)?(B(),i(J(wh),{key:0,onToggleDisclosure:I})):r("",!0)])],2),h(J(qs),null,{default:ie(()=>[re(c("div",kh,[N(e.$slots,"default")],512),[[se,k.value||!J(w)]])]),_:3})],10,vh))}},xh={class:"wf-block-list"},Ch={class:"wf-flex-vertical wf-flex-full-width wf-add-top wf-add-bottom"},Sh=["data-original-text-value"],Ih={class:"wf-option-title"},Dh=["href"],Mh={class:"wf-fa wf-fa-question-circle-o"},Th={class:"wf-option-text wf-option-full-width wf-no-right"},Lh={class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width"},Oh={class:"wf-right wf-flex-vertical-xs wf-flex-align-left wf-left-xs wf-padding-add-top-xs",id:"wf-license-controls"},Bh={key:1,href:"https://www.wordfence.com/gnl1optMngKysReset/licenses/",target:"_blank",rel:"noopener noreferrer",class:"wf-btn wf-btn-primary wf-btn-callout-subtle"},$h={key:2,href:"https://www.wordfence.com/gnl1optMngKys/licenses/",target:"_blank",rel:"noopener noreferrer"},Ph={href:"https://www.wordfence.com/gnl1optUpgrade/products/pricing/",target:"_blank",rel:"noopener noreferrer",class:"wf-btn wf-btn-primary wf-btn-callout-subtle"},Eh={key:0},Rh={__name:"OptionsGroupLicense",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("sprintf"),l=b("$mitt"),s=b("wfconstants"),o=b("$dataStore"),{$hasConflict:d,$isDeactivated:p,$isExpired:m,$isPaid:g,$licenseTypeLabel:w}=Qs(),{$modal:v}=Hn(),{$updatePendingValue:y,$clearPendingValue:A,$setOption:k}=Vn(),{stateKey:_,collapseable:x}=Q(e),C=R(J(o.$options.apiKey));oe(C,e=>{y("apiKey",e,o.$options.apiKey)}),T(()=>{l.on("resetOptionControls",S)}),D(()=>{l.off("resetOptionControls",S)});const S=()=>{C.value=J(o.$options.apiKey)},I=()=>{A("apiKey"),k("apiKey",C.value,()=>{window.location.reload(!0)},()=>{window.location.reload()},!0)},M=()=>{v("options-downgrade-license-modal")};return si({apiKey:"wf-option-apiKey"},_),(e,l)=>{const v=W("aria");return B(),i(J(_h),{stateKey:J(_),collapseable:J(x)},{title:ie(()=>[f(Y(J(a)("Wordfence License")),1)]),default:ie(()=>[c("ul",xh,[c("li",null,[c("ul",Ch,[c("li",null,[c("strong",null,Y(J(a)("Your Wordfence License")),1)]),c("li",null,[c("ul",{id:"wf-option-apiKey",class:"wf-option wf-option-text wf-option-flex-width","data-text-option":"apiKey","data-original-text-value":J(o).$options.apiKey},[c("li",Ih,[f(Y(J(a)("License Key"))+" ",1),c("a",{href:J(s).support.url.dashboard_option_api_key,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Mh,null,512),[[v,{hidden:!0}]]),h(J(Kn))],8,Dh)]),c("li",Th,[re(c("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=e=>C.value=e),onInput:l[1]||(l[1]=e=>C.value=e.target.value.replace(/[^0-9a-fA-F]+/g,"")),onFocus:l[2]||(l[2]=e=>e.target.select()),id:"wf-license-input"},null,544),[[le,C.value]])])],8,Sh)]),c("li",null,[c("ul",Lh,[c("li",null,[c("strong",null,Y(J(a)("License Status"))+":",1),l[3]||(l[3]=f(" ",-1)),J(d)?(B(),u(t,{key:0},[f(Y(J(a)("License already in use")),1)],64)):J(m)?(B(),u(t,{key:1},[f(Y(J(n)(J(a)("%s License Expired"),J(w)())),1)],64)):J(p)?(B(),u(t,{key:2},[f(Y(J(a)("Premium License Deactivated")),1)],64)):(B(),u(t,{key:3},[f(Y(J(n)(J(a)("%s License Active"),J(w)())),1)],64))]),c("li",Oh,[C.value!=J(o).$options.apiKey?re((B(),u("a",{key:0,href:"#",class:"wf-btn wf-btn-primary wf-btn-callout-subtle",id:"wf-install-license",onClick:ce(I,["stop","prevent"])},[f(Y(J(a)("Install License")),1)])),[[v,{role:"button"}]]):(B(),u(t,{key:1},[J(g)||J(d)?re((B(),u("a",{key:0,href:"#",class:"wf-downgrade-license",onClick:ce(M,["stop","prevent"])},[f(Y(J(a)("Reset site to a free license")),1)])),[[v,{role:"button"}]]):r("",!0),J(d)?(B(),u("a",Bh,[f(Y(J(a)("Reset License")),1),h(J(Kn))])):J(g)?(B(),u("a",$h,[f(Y(J(a)("Click here to manage your Wordfence licenses")),1),h(J(Kn))])):(B(),u(t,{key:3},[J(p)?re((B(),u("a",{key:0,href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-downgrade-license",onClick:ce(M,["stop","prevent"])},[f(Y(J(a)("Remove Invalid License")),1)])),[[v,{role:"button"}]]):r("",!0),l[4]||(l[4]=f(" ",-1)),c("a",Ph,[f(Y(J(a)("Upgrade to Premium")),1),h(J(Kn))])],64))],64))])])]),J(p)?(B(),u("li",Eh,[c("p",null,[h(J(Ep),{unsafeHTML:J(a)('This was a premium license key, but it is no longer valid, so premium features are disabled. You can either remove the invalid key and continue using Wordfence\'s free features, or enter a new premium key to upgrade. If you have questions, contact <a href="mailto:billing@wordfence.com">billing@wordfence.com</a>.'),allowedTags:["a"],allowedAttributes:{a:["href"]}},null,8,["unsafeHTML"])])])):r("",!0)])])])]),_:1},8,["stateKey","collapseable"])}}},Fh=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],Nh={key:0,class:"wf-option-premium-lock"},Wh=["onKeydown"],Hh={class:"wf-ion-ios-checkmark-empty"},Vh={key:2,class:"wf-option-title"},Uh={class:"wf-flex-vertical wf-flex-align-left"},Yh=["id"],Kh={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},jh=["href"],Gh={class:"wf-fa wf-fa-question-circle-o"},Qh={key:3,class:"wf-option-title"},qh=["id"],Zh={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},Jh=["href"],zh={class:"wf-fa wf-fa-question-circle-o"},Xh={__name:"OptionToggled",props:{optionName:{type:String,required:!0},value:{default:null},enabledValue:{default:null},disabledValue:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change"],setup(e,{emit:t}){const a=t,n=X(),{$isPaid:l}=Qs(),{$maybeToggleControl:s}=dn(),o=b("__"),i=e,{optionName:d,value:p,enabledValue:m,disabledValue:g,premium:w,disabled:v,noVerticalSpacing:y,alignment:A}=Q(i),{$elementID:k,$elementIDLabel:_,$elementClasses:x,$pendingValue:S}=li(d,p,a,{always:["wf-option-toggled"],premium:w,disabled:v,noVerticalSpacing:y,alignment:A});si({[i.optionName]:k});const I=()=>{!l&&w.value||v.value||(S.value===m.value?S.value=g.value:S.value=m.value)};return(t,a)=>{const i=W("aria");return B(),u("ul",{id:J(k),class:C(J(x)),"data-option":J(d),"data-enabled-value":J(m),"data-disabled-value":J(g),"data-original-value":J(p)==J(m)?J(m):J(g)},[!J(l)&&J(w)?(B(),u("li",Nh)):re((B(),u("li",{key:1,class:C({"wf-option-checkbox":!0,"wf-checked":J(S)==J(m)}),tabindex:"0",onClick:ce(I,["stop","prevent"]),onKeydown:ue(ce(I,["stop","prevent"]),["space"])},[re(c("i",Hh,null,512),[[i,{hidden:!0}]])],42,Wh)),[[i,{role:"checkbox",checked:J(S)==J(m),labelledby:J(_)}]]),e.subtitle||J(n).subtitle?(B(),u("li",Vh,[c("ul",Uh,[c("li",null,[c("span",{id:J(_),class:"wf-option-extended-toggle",onClick:a[0]||(a[0]=e=>J(s)(e,I))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Yh),J(w)?(B(),u("a",Kh,Y(J(o)("Premium Feature")),1)):r("",!0),a[3]||(a[3]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Gh,null,512),[[i,{hidden:!0}]]),h(J(Kn))],8,jh)):r("",!0)]),c("li",{class:"wf-option-subtitle wf-option-extended-toggle",onClick:a[1]||(a[1]=e=>J(s)(e,I))},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",Qh,[c("span",{id:J(_),class:"wf-option-extended-toggle",onClick:a[2]||(a[2]=e=>J(s)(e,I))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,qh),J(w)?(B(),u("a",Zh,Y(J(o)("Premium Feature")),1)):r("",!0),a[4]||(a[4]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",zh,null,512),[[i,{hidden:!0}]]),h(J(Kn))],8,Jh)):r("",!0)]))],10,Fh)}}},em={class:"wf-block-list"},tm={__name:"OptionsGroupViewCustomization",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("$dataStore"),{$updatePendingValue:l}=Vn(),{stateKey:s,collapseable:o}=Q(e);T(()=>{a.on("resetOptionControls",r)}),D(()=>{a.off("resetOptionControls",r)});const r=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(s),collapseable:J(o)},{title:ie(()=>[f(Y(J(t)("View Customization")),1)]),default:ie(()=>[c("ul",em,[c("li",null,[h(J(Xh),{optionName:"displayTopLevelOptions",value:J(n).$options.displayTopLevelOptions,enabledValue:!0,disabledValue:!1,title:J(t)('Display "All Options" menu item'),onChange:a[0]||(a[0]=e=>J(l)("displayTopLevelOptions",e.new,J(n).$options.displayTopLevelOptions))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"displayTopLevelBlocking",value:J(n).$options.displayTopLevelBlocking,enabledValue:!0,disabledValue:!1,title:J(t)('Display "Blocking" menu item'),onChange:a[1]||(a[1]=e=>J(l)("displayTopLevelBlocking",e.new,J(n).$options.displayTopLevelBlocking))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"displayTopLevelLiveTraffic",value:J(n).$options.displayTopLevelLiveTraffic,enabledValue:!0,disabledValue:!1,title:J(t)('Display "Live Traffic" menu item'),onChange:a[2]||(a[2]=e=>J(l)("displayTopLevelLiveTraffic",e.new,J(n).$options.displayTopLevelLiveTraffic))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"displayTopLevelAuditLog",value:J(n).$options.displayTopLevelAuditLog,enabledValue:!0,disabledValue:!1,title:J(t)('Display "Audit Log" menu item'),onChange:a[3]||(a[3]=e=>J(l)("displayTopLevelAuditLog",e.new,J(n).$options.displayTopLevelAuditLog))},null,8,["value","title"])])])]),_:1},8,["stateKey","collapseable"]))}},am=["id","data-option-name","data-original-value"],nm={key:0,class:"wf-option-spacer"},lm={class:"wf-option-content"},sm={key:0,class:"wf-option-title"},om={class:"wf-flex-vertical wf-flex-align-left"},im=["id"],rm={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},um=["href"],cm={class:"wf-fa wf-fa-question-circle-o"},dm={class:"wf-option-subtitle"},pm={key:1,class:"wf-option-title"},fm=["id"],hm={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},mm=["href"],gm={class:"wf-fa wf-fa-question-circle-o"},wm={class:"wf-option-text"},vm=["placeholder","disabled","aria-labelledby"],ym={__name:"OptionTextField",props:{optionName:{type:String,required:!0},value:{default:null},placeholder:{type:[String,null],default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const{$isPaid:a}=Qs(),n=t,l=X(),s=b("__"),o=e,{value:i,optionName:d,premium:p,disabled:m,noSpacer:g,noVerticalSpacing:w}=Q(o),{$elementID:v,$elementIDLabel:y,$elementClasses:k,$pendingValue:_}=li(d,i,n,{always:["wf-option-text"],premium:p,disabled:m,noVerticalSpacing:w});return si({[o.optionName]:v}),(t,n)=>{const o=W("aria");return B(),u("ul",{id:J(v),class:C(J(k)),"data-option-name":J(d),"data-original-value":JSON.stringify(J(i))},[J(g)?r("",!0):(B(),u("li",nm)),c("li",lm,[c("ul",null,[e.subtitle||J(l).subtitle?(B(),u("li",sm,[c("ul",om,[c("li",null,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,im),J(p)?(B(),u("a",rm,Y(J(s)("Premium Feature")),1)):r("",!0),n[1]||(n[1]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",cm,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,um)):r("",!0)]),c("li",dm,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",pm,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,fm),J(p)?(B(),u("a",hm,Y(J(s)("Premium Feature")),1)):r("",!0),n[2]||(n[2]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",gm,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,mm)):r("",!0)])),c("li",wm,[re(c("input",{type:"text",placeholder:e.placeholder,disabled:J(m)||!J(a)&&J(p),"aria-labelledby":J(y),"onUpdate:modelValue":n[0]||(n[0]=e=>A(_)?_.value=e:null)},null,8,vm),[[le,J(_)]])])])])],10,am)}}},bm={class:"wf-flex-vertical wf-flex-full-width"},Am=["id","data-original-value"],km={class:"wf-option-content"},_m={class:"wf-flex-vertical wf-flex-align-left"},xm={class:"wf-option-title"},Cm=["href"],Sm={class:"wf-fa wf-fa-question-circle-o"},Im={class:"wf-flex-vertical wf-flex-align-left"},Dm={class:"wf-padding-add-left"},Mm={class:"wf-flex-vertical wf-flex-align-left"},Tm=["value","id"],Lm=["for"],Om={key:0},Bm={class:"wf-option-howgetips-details wf-padding-add-top-small"},$m={class:"wf-left"},Pm={id:"howGetIPs-preview-all"},Em={key:1},Rm={class:"wf-left"},Fm={id:"howGetIPs-preview-single"},Nm={class:"wf-left"},Wm={key:0,id:"howGetIPs-trusted-proxies"},Hm=["id","data-original-value"],Vm={class:"wf-option-content"},Um={class:"wf-option-title"},Ym={class:"wf-flex-vertical wf-flex-align-left"},Km={class:"wf-option-subtitle"},jm={class:"wf-option-textarea"},Gm={key:0,id:"howGetIPs-trusted-proxy-preset"},Qm=["id","data-original-value"],qm={class:"wf-option-content"},Zm={class:"wf-option-title"},Jm={class:"wf-flex-vertical wf-flex-align-left"},zm=["id"],Xm={class:"wf-option-subtitle"},eg={class:"wf-option-select"},tg=["disabled","aria-labelledby"],ag={class:"wf-option-select-option",value:""},ng=["value"],lg={__name:"HowGetIPs",emits:["change","changeTrustedProxies","changeTrustedProxyPreset"],setup(e,{emit:a}){const{$ajax:n}=In(),l=a,o=b("__"),i=b("$mitt"),d=b("wfconstants"),p=b("$dataStore");T(()=>{i.on("resetOptionControls",m)}),D(()=>{i.off("resetOptionControls",m),clearTimeout(G.value)});const m=()=>{U.value=!1,x(j)},{$elementID:g,$elementClasses:w,$pendingValue:v}=li("howGetIPs",p.$options.howGetIPs,l,{always:["wf-option-howgetips"]}),{$elementID:y,$elementClasses:k,$pendingValue:_}=li("howGetIPs_trusted_proxies",p.$options.howGetIPs_trusted_proxies,l,{always:["wf-option-textarea"]},"changeTrustedProxies"),{$elementID:S,$elementIDLabel:I,$elementClasses:M,$pendingValue:L}=li("howGetIPs_trusted_proxy_preset",p.$options.howGetIPs_trusted_proxy_preset,l,{always:["wf-option-select"]},"changeTrustedProxyPreset");si({howGetIPs:g,howGetIPs_trusted_proxies:y,howGetIPs_trusted_proxy_preset:S});const O=[{value:"",label:o("Let Wordfence use the most secure method to get visitor IP addresses. Prevents spoofing and works with most sites."),recommended:!0},{value:"REMOTE_ADDR",label:o("Use PHP's built in REMOTE_ADDR and don't use anything else. Very secure if this is compatible with your site.")},{value:"HTTP_X_FORWARDED_FOR",label:o("Use the X-Forwarded-For HTTP header. Only use if you have a front-end proxy or spoofing may result.")},{value:"HTTP_X_REAL_IP",label:o("Use the X-Real-IP HTTP header. Only use if you have a front-end proxy or spoofing may result.")},{value:"HTTP_CF_CONNECTING_IP",label:o('Use the Cloudflare "CF-Connecting-IP" HTTP header to get a visitor IP. Only use if you\'re using Cloudflare.')}],$=e=>`${J(g)}-${e.value.replace(/[^a-z0-9]/gi,"-")}`,E=R(d.plugin.ip.current),N=P(d.plugin.ip.preview),H=P(d.plugin.ip.proxy_presets),V=s(()=>{let e=Object.keys(H);return e.sort((e,t)=>e.localeCompare(t)),e}),U=R(!1),K=R(0),j=()=>{const e=++K.value;n("wordfence_updateIPPreview",{howGetIPs:J(v),howGetIPs_trusted_proxies:J(_),howGetIPs_trusted_proxy_preset:J(L)},t=>{e===K.value&&t&&t.ok&&(E.value=t.ip,N.splice(0,N.length,...t.ipAll))})};oe(v,j);const G=R(0);return oe(_,()=>{clearTimeout(G.value),G.value=setTimeout(j,1e3)}),oe(L,j),(e,a)=>{const n=W("aria");return B(),u("ul",bm,[c("li",null,[c("ul",{id:J(g),class:C(J(w)),"data-option-name":"howGetIPs","data-original-value":J(p).$options.howGetIPs},[a[4]||(a[4]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",km,[c("ul",_m,[c("li",xm,[f(Y(J(o)("How does Wordfence get IPs"))+" ",1),c("a",{href:J(d).support.url.dashboard_option_how_get_ips,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Sm,null,512),[[n,{hidden:!0}]]),h(J(Kn))],8,Cm)]),c("li",null,[c("ul",Im,[c("li",Dm,[re((B(),u("ul",Mm,[(B(),u(t,null,F(O,e=>c("li",{class:"wf-padding-add-top-small",key:$(e)},[re(c("input",{type:"radio",class:"wf-option-radio",name:"wf-howgetIPs",value:e.value,id:$(e),"onUpdate:modelValue":a[0]||(a[0]=e=>A(v)?v.value=e:null)},null,8,Tm),[[ae,J(v)]]),c("label",{for:$(e),class:"wf-plain"},[f(" "+Y(e.label),1),e.recommended?(B(),u("strong",Om," "+Y(J(o)("(recommended)")),1)):r("",!0)],8,Lm)])),64))])),[[n,{role:"radiogroup"}]])]),c("li",Bm,[c("div",$m,[f(Y(J(o)("Detected IP(s)"))+": ",1),c("span",Pm,[(B(!0),u(t,null,F(N,(e,a)=>(B(),u(t,{key:a},[a>0?(B(),u(t,{key:0},[f(", ")],64)):r("",!0),e.selected?(B(),u("strong",Em,Y(e.ip),1)):(B(),u(t,{key:2},[f(Y(e.ip),1)],64))],64))),128))])]),c("div",Rm,[f(Y(J(o)("Your IP with this setting"))+": ",1),c("span",Fm,Y(E.value),1)]),c("div",Nm,[re((B(),u("a",{href:"#",id:"howGetIPs-trusted-proxies-show",onClick:a[1]||(a[1]=ce(e=>U.value=!U.value,["stop","prevent"]))},[f("+ "+Y(J(o)("Edit trusted proxies")),1)])),[[n,{role:"button"}]])])])])])])])],10,Am)]),h(J(qs),null,{default:ie(()=>[U.value?(B(),u("li",Wm,[c("ul",{id:J(y),class:C(J(k)),"data-option-name":"howGetIPs_trusted_proxies","data-original-value":J(p).$options.howGetIPs_trusted_proxies},[a[5]||(a[5]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",Vm,[c("ul",null,[c("li",Um,[c("ul",Ym,[c("li",null,Y(J(o)("Trusted Proxies")),1),c("li",Km,Y(J(o)("These IPs (or CIDR ranges) will be ignored when determining the requesting IP via the X-Forwarded-For HTTP header. Enter one IP or CIDR range per line.")),1)])]),c("li",jm,[re(c("textarea",{spellcheck:"false",autocapitalize:"none",autocomplete:"off",name:"howGetIPs_trusted_proxies","onUpdate:modelValue":a[2]||(a[2]=e=>A(_)?_.value=e:null)},null,512),[[le,J(_)]])])])])],10,Hm)])):r("",!0)]),_:1}),h(J(qs),null,{default:ie(()=>[U.value?(B(),u("li",Gm,[c("ul",{id:J(S),class:C(J(M)),"data-option-name":"howGetIPs_trusted_proxy_preset","data-original-value":J(p).$options.howGetIPs_trusted_proxy_preset},[a[6]||(a[6]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",qm,[c("ul",null,[c("li",Zm,[c("ul",Jm,[c("li",null,[c("span",{id:J(I)},Y(J(o)("Trusted Proxy Preset")),9,zm)]),c("li",Xm,Y(J(o)("In addition to the above list, the IPs (or CIDR ranges) in the selected preset will be ignored when determining the requesting IP via the X-Forwarded-For HTTP header.")),1)])]),c("li",eg,[re(c("select",{disabled:!V.value.length,"aria-labelledby":J(I),"onUpdate:modelValue":a[3]||(a[3]=e=>A(L)?L.value=e:null)},[c("option",ag,Y(J(o)("None")),1),(B(!0),u(t,null,F(V.value,e=>(B(),u("option",{class:"wf-option-select-option",key:e,value:e},Y(H[e].name),9,ng))),128))],8,tg),[[ne,J(L)]])])])])],10,Qm)])):r("",!0)]),_:1})])}}},sg={class:"wf-block-list"},og={class:"wf-red-dark"},ig=["href"],rg={__name:"OptionsGroupGeneral",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn();return(o,d)=>(B(),i(J(_h),{stateKey:e.stateKey,collapseable:e.collapseable},{title:ie(()=>[f(Y(J(a)("General Wordfence Options")),1)]),default:ie(()=>[c("ul",sg,[c("li",null,[h(J(Xh),{optionName:"autoUpdate",value:J(l).$options.autoUpdate,enabledValue:!0,disabledValue:!1,title:J(a)("Update Wordfence automatically when a new version is released?"),helpLink:J(n).support.url.dashboard_option_automatic_update,onChange:d[0]||(d[0]=e=>J(s)("autoUpdate",e.new,J(l).$options.autoUpdate))},{subtitle:ie(()=>[f(Y(J(a)("Automatically updates Wordfence to the newest version within 24 hours of a new release."))+" ",1),!J(l).$options.other_bypassLitespeedNoabort&&"1"!==J(n).plugin.server.env.noabort&&/litespeed/i.test(J(n).plugin.server.software)?(B(),u(t,{key:0},[d[12]||(d[12]=c("br",null,null,-1)),d[13]||(d[13]=c("br",null,null,-1)),c("span",og,Y(J(a)("Warning"))+": "+Y(J(a)('You are running the LiteSpeed web server and Wordfence can\'t determine whether "noabort" is set. Please verify that the environmental variable "noabort" is set for the local site, or the server\'s global External Application Abort is set to "No Abort".')),1),d[14]||(d[14]=c("br",null,null,-1)),c("a",{href:J(n).support.url.dashboard_option_litespeed_warning,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Please read this article in our FAQ to make an important change that will ensure your site stability during an update.")),1),h(J(Kn))],8,ig)],64)):r("",!0)]),_:1},8,["value","title","helpLink"])]),c("li",null,[h(J(ym),{optionName:"alertEmails",value:J(l).$options.alertEmails,title:J(a)("Where to email alerts"),placeholder:J(a)("Separate multiple addresses with commas"),helpLink:J(n).support.url.dashboard_option_alert_emails,onChange:d[1]||(d[1]=e=>J(s)("alertEmails",e.new,J(l).$options.alertEmails))},null,8,["value","title","placeholder","helpLink"])]),c("li",null,[h(J(lg),{onChange:d[2]||(d[2]=e=>J(s)("howGetIPs",e.new,J(l).$options.howGetIPs)),onChangeTrustedProxies:d[3]||(d[3]=e=>J(s)("howGetIPs_trusted_proxies",e.new,J(l).$options.howGetIPs_trusted_proxies)),onChangeTrustedProxyPreset:d[4]||(d[4]=e=>J(s)("howGetIPs_trusted_proxy_preset",e.new,J(l).$options.howGetIPs_trusted_proxy_preset))})]),c("li",null,[h(J(Xh),{optionName:"enableRemoteIpLookup",value:J(l).$options.enableRemoteIpLookup,enabledValue:!0,disabledValue:!1,title:J(a)("Look up visitor IP locations via Wordfence servers"),subtitle:J(a)("If this option is disabled, Wordfence can look up countries for visitor IP addresses using a local database, but cannot look up regions or cities"),helpLink:J(n).support.url.general_remote_ip_lookup,onChange:d[5]||(d[5]=e=>J(s)("enableRemoteIpLookup",e.new,J(l).$options.enableRemoteIpLookup))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_hideWPVersion",value:J(l).$options.other_hideWPVersion,enabledValue:!0,disabledValue:!1,title:J(a)("Hide WordPress version"),helpLink:J(n).support.url.dashboard_option_hide_version,onChange:d[6]||(d[6]=e=>J(s)("other_hideWPVersion",e.new,J(l).$options.other_hideWPVersion))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"disableCodeExecutionUploads",value:J(l).$options.disableCodeExecutionUploads,enabledValue:!0,disabledValue:!1,title:J(a)("Disable Code Execution for Uploads directory"),helpLink:J(n).support.url.dashboard_option_disable_uploads_execution,onChange:d[7]||(d[7]=e=>J(s)("disableCodeExecutionUploads",e.new,J(l).$options.disableCodeExecutionUploads))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"liveActivityPauseEnabled",value:J(l).$options.liveActivityPauseEnabled,enabledValue:!0,disabledValue:!1,title:J(a)("Pause live updates when window loses focus"),helpLink:J(n).support.url.dashboard_option_pause_live_updates,onChange:d[8]||(d[8]=e=>J(s)("liveActivityPauseEnabled",e.new,J(l).$options.liveActivityPauseEnabled))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(ym),{optionName:"actUpdateInterval",value:J(l).$options.actUpdateInterval,title:J(a)("Update interval in seconds"),placeholder:J(a)("Setting higher will reduce browser traffic but slow scan starts, live traffic & status updates."),helpLink:J(n).support.url.dashboard_option_update_interval,onChange:d[9]||(d[9]=e=>J(s)("actUpdateInterval",e.new,J(l).$options.actUpdateInterval))},null,8,["value","title","placeholder","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_bypassLitespeedNoabort",value:J(l).$options.other_bypassLitespeedNoabort,enabledValue:!0,disabledValue:!1,title:J(a)('Bypass the LiteSpeed "noabort" check'),helpLink:J(n).support.url.dashboard_option_bypass_litespeed_check,onChange:d[10]||(d[10]=e=>J(s)("other_bypassLitespeedNoabort",e.new,J(l).$options.other_bypassLitespeedNoabort))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"deleteTablesOnDeact",value:J(l).$options.deleteTablesOnDeact,enabledValue:!0,disabledValue:!1,title:J(a)("Delete Wordfence tables and data on deactivation"),subtitle:J(a)("Note: This does not include Login Security settings and tables. An option to delete those must be selected separately on the Login Security settings page."),helpLink:J(n).support.url.dashboard_option_delete_deactivation,onChange:d[11]||(d[11]=e=>J(s)("deleteTablesOnDeact",e.new,J(l).$options.deleteTablesOnDeact))},null,8,["value","title","subtitle","helpLink"])])])]),_:1},8,["stateKey","collapseable"]))}},ug={class:"wf-block-list"},cg={key:1},dg={class:"wf-option"},pg={class:"wf-flex-vertical wf-flex-align-left"},fg={class:"wf-no-top"},hg={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1dashboardUpgrade/wordfence-signup/#premium-order-form",target:"_blank",rel:"noopener noreferrer"},mg={class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:"https://www.wordfence.com/gnl1dashboardLearn/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},gg={__name:"OptionsGroupDashboard",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("$mitt"),l=b("$dataStore"),{$isPaid:s}=Qs(),{$updatePendingValue:o}=Vn(),{stateKey:d,collapseable:p}=Q(e);T(()=>{n.on("resetOptionControls",m)}),D(()=>{n.off("resetOptionControls",m)});const m=()=>{};return(e,n)=>(B(),i(J(_h),{stateKey:J(d),collapseable:J(p)},{title:ie(()=>[f(Y(J(a)("Dashboard Notification Options")),1)]),default:ie(()=>[c("ul",ug,[c("li",null,[h(J(Xh),{optionName:"notification_updatesNeeded",value:J(l).$options.notification_updatesNeeded,enabledValue:!0,disabledValue:!1,title:J(a)("Updates Needed (Plugin, Theme, or Core)"),onChange:n[0]||(n[0]=e=>J(o)("notification_updatesNeeded",e.new,J(l).$options.notification_updatesNeeded))},null,8,["value","title"])]),J(s)?(B(),u(t,{key:0},[c("li",null,[h(J(Xh),{optionName:"notification_securityAlerts",value:J(l).$options.notification_securityAlerts,enabledValue:!0,disabledValue:!1,title:J(a)("Security Alerts"),premium:!0,onChange:n[1]||(n[1]=e=>J(o)("notification_securityAlerts",e.new,J(l).$options.notification_securityAlerts))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"notification_promotions",value:J(l).$options.notification_promotions,enabledValue:!0,disabledValue:!1,title:J(a)("Promotions"),premium:!0,onChange:n[2]||(n[2]=e=>J(o)("notification_promotions",e.new,J(l).$options.notification_promotions))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"notification_blogHighlights",value:J(l).$options.notification_blogHighlights,enabledValue:!0,disabledValue:!1,title:J(a)("Blog Highlights"),premium:!0,onChange:n[3]||(n[3]=e=>J(o)("notification_blogHighlights",e.new,J(l).$options.notification_blogHighlights))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"notification_productUpdates",value:J(l).$options.notification_productUpdates,enabledValue:!0,disabledValue:!1,title:J(a)("Product Updates"),premium:!0,onChange:n[4]||(n[4]=e=>J(o)("notification_productUpdates",e.new,J(l).$options.notification_productUpdates))},null,8,["value","title"])])],64)):r("",!0),c("li",null,[h(J(Xh),{optionName:"notification_scanStatus",value:J(l).$options.notification_scanStatus,enabledValue:!0,disabledValue:!1,title:J(a)("Scan Status"),onChange:n[5]||(n[5]=e=>J(o)("notification_scanStatus",e.new,J(l).$options.notification_scanStatus))},null,8,["value","title"])]),J(s)?r("",!0):(B(),u("li",cg,[c("ul",dg,[n[7]||(n[7]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",pg,[c("p",null,Y(J(a)("Dashboard notifications will also be displayed for Security Alerts, Promotions, Blog Highlights, and Product Updates.These notifications can be disabled by upgrading to a premium license.")),1),c("p",fg,[c("a",hg,Y(J(a)("Upgrade to Premium")),1),n[6]||(n[6]=f(" ",-1)),c("a",mg,[f(Y(J(a)("Learn More")),1),h(J(Kn))])])])])]))])]),_:1},8,["stateKey","collapseable"]))}},wg={class:"wf-flex-vertical wf-flex-full-width"},vg=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],yg={key:0,class:"wf-option-premium-lock"},bg=["onKeydown"],Ag={class:"wf-ion-ios-checkmark-empty"},kg={key:2,class:"wf-option-title"},_g={class:"wf-flex-vertical wf-flex-align-left"},xg=["id"],Cg={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},Sg=["href"],Ig={class:"wf-fa wf-fa-question-circle-o"},Dg={key:3,class:"wf-option-title"},Mg=["id"],Tg={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},Lg=["href"],Og={class:"wf-fa wf-fa-question-circle-o"},Bg={class:"wf-option-sub"},$g=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],Pg={key:0,class:"wf-option-premium-lock"},Eg=["onKeydown"],Rg={class:"wf-ion-ios-checkmark-empty"},Fg={class:"wf-option-title"},Ng=["id"],Wg={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},Hg=["href"],Vg={class:"wf-fa wf-fa-question-circle-o"},Ug={__name:"OptionToggledChild",props:{optionName:{type:String,required:!0},value:{default:null},enabledValue:{default:null},disabledValue:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},childOptionName:{type:String},childValue:{default:null},childEnabledValue:{default:null},childDisabledValue:{default:null},childTitle:{type:[String,null],default:null},childHelpLink:{type:[String,null],default:null},childPremium:{type:Boolean,default:!1},childDisabled:{type:Boolean,default:!1}},emits:["change","changeChild"],setup(e,{emit:t}){const a=t,n=X(),{$isPaid:l}=Qs(),{$maybeToggleControl:s}=dn(),o=b("__"),i=e,{optionName:d,value:p,enabledValue:m,disabledValue:g,premium:w,disabled:v,noVerticalSpacing:y,alignment:A,childOptionName:k,childValue:_,childEnabledValue:x,childDisabledValue:S,childPremium:I,childDisabled:D}=Q(i),{$elementID:M,$elementIDLabel:T,$elementClasses:L,$pendingValue:O}=li(d,p,a,{always:["wf-option-toggled"],premium:w,disabled:v,noVerticalSpacing:y,alignment:A}),{$elementID:$,$elementIDLabel:P,$elementClasses:E,$pendingValue:R}=li(k,_,a,{always:["wf-option-toggled"],premium:I,disabled:D},"changeChild");si({[i.optionName]:M,[i.childOptionName]:$});const F=()=>{!l&&w.value||v.value||(O.value===m.value?O.value=g.value:O.value=m.value)},H=()=>{!l&&I.value||D.value||(R.value===x.value?R.value=S.value:R.value=x.value)};return(t,a)=>{const i=W("aria");return B(),u("ul",wg,[c("li",null,[c("ul",{id:J(M),class:C(J(L)),"data-option":J(d),"data-enabled-value":J(m),"data-disabled-value":J(g),"data-original-value":J(p)===J(m)?J(m):J(g)},[!J(l)&&J(w)?(B(),u("li",yg)):re((B(),u("li",{key:1,class:C(["wf-option-checkbox",{"wf-checked":J(O)===J(m)}]),tabindex:"0",onClick:ce(F,["stop","prevent"]),onKeydown:ue(ce(F,["stop","prevent"]),["space"])},[re(c("i",Ag,null,512),[[i,{hidden:!0}]])],42,bg)),[[i,{role:"checkbox",checked:J(O)===J(m),labelledby:J(T)}]]),e.subtitle||J(n).subtitle?(B(),u("li",kg,[c("ul",_g,[c("li",null,[c("span",{id:J(T),class:"wf-option-extended-toggle",onClick:a[0]||(a[0]=e=>J(s)(e,F))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,xg),J(w)?(B(),u("a",Cg,Y(J(o)("Premium Feature")),1)):r("",!0),a[4]||(a[4]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Ig,null,512),[[i,{hidden:!0}]]),h(J(Kn))],8,Sg)):r("",!0)]),c("li",{class:"wf-option-subtitle wf-option-extended-toggle",onClick:a[1]||(a[1]=e=>J(s)(e,F))},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",Dg,[c("span",{id:J(T),class:"wf-option-extended-toggle",onClick:a[2]||(a[2]=e=>J(s)(e,F))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Mg),J(w)?(B(),u("a",Tg,Y(J(o)("Premium Feature")),1)):r("",!0),a[5]||(a[5]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Og,null,512),[[i,{hidden:!0}]]),h(J(Kn))],8,Lg)):r("",!0)]))],10,vg)]),c("li",Bg,[c("ul",{id:J($),class:C(J(E)),"data-option":J(k),"data-enabled-value":J(x),"data-disabled-value":J(S),"data-original-value":J(_)===J(x)?J(x):J(S)},[!J(l)&&J(I)?(B(),u("li",Pg)):re((B(),u("li",{key:1,class:C(["wf-option-checkbox",{"wf-checked":J(R)===J(x)}]),tabindex:"0",onClick:ce(H,["stop","prevent"]),onKeydown:ue(ce(H,["stop","prevent"]),["space"])},[re(c("i",Rg,null,512),[[i,{hidden:!0}]])],42,Eg)),[[i,{role:"checkbox",checked:J(R)===J(x),labelledby:J(P)}]]),c("li",Fg,[c("span",{id:J(P),class:"wf-option-extended-toggle",onClick:a[3]||(a[3]=e=>J(s)(e,H))},[N(t.$slots,"childTitle",{},()=>[f(Y(e.childTitle),1)])],8,Ng),J(I)?(B(),u("a",Wg,Y(J(o)("Premium Feature")),1)):r("",!0),a[6]||(a[6]=f()),e.childHelpLink?(B(),u("a",{key:1,href:e.childHelpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",Vg,null,512),[[i,{hidden:!0}]]),h(J(Kn))],8,Hg)):r("",!0)])],10,$g)])])}}},Yg=["data-toggle-option","data-enabled-toggle-value","data-disabled-toggle-value","data-original-toggle-value","data-select-option","data-original-select-value"],Kg={key:0,class:"wf-option-premium-lock"},jg=["id","onKeydown"],Gg={class:"wf-ion-ios-checkmark-empty"},Qg={class:"wf-option-content"},qg=["id"],Zg={class:"wf-option-title"},Jg=["id"],zg={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},Xg=["href"],ew={class:"wf-fa wf-fa-question-circle-o"},tw={class:"wf-option-select wf-padding-add-top-xs-small"},aw={__name:"OptionToggledSelect",props:{optionName:{type:String,required:!0},value:{default:null},enabledValue:{default:null},disabledValue:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},selectOptionName:{type:String},selectValue:{default:null},selectOptions:{type:Array,default:()=>[]},selectTitle:{type:[String,null],default:null},selectHelpLink:{type:[String,null],default:null},selectPremium:{type:Boolean,default:!1},selectDisabled:{type:Boolean,default:!1}},emits:["change","changeSelect"],setup(e,{emit:t}){const a=t,{$isPaid:n}=Qs(),{$maybeToggleControl:l}=dn(),s=b("__"),o=e,{optionName:i,value:d,enabledValue:p,disabledValue:m,premium:g,disabled:w,noVerticalSpacing:v,alignment:y,selectOptionName:k,selectValue:_,selectOptions:x,selectPremium:S,selectDisabled:I}=Q(o),{$elementID:D,$elementClasses:M,$pendingValue:T}=li(i,d,a,{always:["wf-option-toggled-select"],premium:g,disabled:w,noVerticalSpacing:v,alignment:y}),{$elementID:L,$elementIDLabel:O,$pendingValue:$}=li(k,_,a,{always:["wf-option-select"],premium:S,disabled:I},"changeSelect");si({[o.optionName]:D,[o.selectOptionName]:L});const P=()=>{!n&&g.value||w.value||(T.value===p.value?T.value=m.value:T.value=p.value)};return(t,a)=>{const o=W("aria");return B(),u("ul",{class:C(J(M)),"data-toggle-option":J(i),"data-enabled-toggle-value":J(p),"data-disabled-toggle-value":J(m),"data-original-toggle-value":J(d)===J(p)?J(p):J(m),"data-select-option":J(k),"data-original-select-value":J(_)},[!J(n)&&J(g)?(B(),u("li",Kg)):re((B(),u("li",{key:1,id:J(D),class:C(["wf-option-checkbox",{"wf-checked":J(T)===J(p)}]),tabindex:"0",onClick:ce(P,["stop","prevent"]),onKeydown:ue(ce(P,["stop","prevent"]),["space"])},[re(c("i",Gg,null,512),[[o,{hidden:!0}]])],42,jg)),[[o,{role:"checkbox",checked:J(T)===J(p)}]]),c("li",Qg,[c("ul",{id:J(L)},[c("li",Zg,[c("span",{id:J(O),class:"wf-option-extended-toggle",onClick:a[0]||(a[0]=e=>J(l)(e,P))},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Jg),J(g)?(B(),u("a",zg,Y(J(s)("Premium Feature")),1)):r("",!0),a[2]||(a[2]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",ew,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,Xg)):r("",!0)]),c("li",tw,[h(J(gs),{disabled:J(T)!==J(p)||!J(n)&&J(g),"aria-labelledby":J(O),modelValue:J($),"onUpdate:modelValue":a[1]||(a[1]=e=>A($)?$.value=e:null),options:J(x),canClear:!1},null,8,["disabled","aria-labelledby","modelValue","options"])])],8,qg)])],10,Yg)}}},nw={class:"wf-block-list"},lw={__name:"OptionsGroupAlert",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("wfconstants"),n=b("$dataStore"),{$updatePendingValue:l}=Vn();return(s,o)=>(B(),i(J(_h),{stateKey:e.stateKey,collapseable:e.collapseable},{title:ie(()=>[f(Y(J(t)("Email Alert Preferences")),1)]),default:ie(()=>[c("ul",nw,[c("li",null,[h(J(Xh),{optionName:"alertOn_update",value:J(n).$options.alertOn_update,enabledValue:!0,disabledValue:!1,title:J(t)("Email me when Wordfence is automatically updated"),subtitle:J(t)("If you have automatic updates enabled (see above), you'll get an email when an update occurs."),onChange:o[0]||(o[0]=e=>J(l)("alertOn_update",e.new,J(n).$options.alertOn_update))},null,8,["value","title","subtitle"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_wordfenceDeactivated",value:J(n).$options.alertOn_wordfenceDeactivated,enabledValue:!0,disabledValue:!1,title:J(t)("Email me if Wordfence is deactivated"),onChange:o[1]||(o[1]=e=>J(l)("alertOn_wordfenceDeactivated",e.new,J(n).$options.alertOn_wordfenceDeactivated))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_wafDeactivated",value:J(n).$options.alertOn_wafDeactivated,enabledValue:!0,disabledValue:!1,title:J(t)("Email me if the Wordfence Web Application Firewall is turned off"),onChange:o[2]||(o[2]=e=>J(l)("alertOn_wafDeactivated",e.new,J(n).$options.alertOn_wafDeactivated))},null,8,["value","title"])]),c("li",null,[h(J(aw),{optionName:"alertOn_scanIssues",value:J(n).$options.alertOn_scanIssues,enabledValue:!0,disabledValue:!1,title:J(t)("Alert me with scan results of this severity level or greater:"),helpLink:J(a).support.url.scan_option_alert_threshold,onChange:o[3]||(o[3]=e=>J(l)("alertOn_scanIssues",e.new,J(n).$options.alertOn_scanIssues)),selectOptionName:"alertOn_severityLevel",selectOptions:[{value:J(a).scanner.severity.critical,label:J(t)("Critical")},{value:J(a).scanner.severity.high,label:J(t)("High")},{value:J(a).scanner.severity.medium,label:J(t)("Medium")},{value:J(a).scanner.severity.low,label:J(t)("Low")}],selectValue:J(n).$options.alertOn_severityLevel,onChangeSelect:o[4]||(o[4]=e=>J(l)("alertOn_severityLevel",e.new,J(n).$options.alertOn_severityLevel))},null,8,["value","title","helpLink","selectOptions","selectValue"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_block",value:J(n).$options.alertOn_block,enabledValue:!0,disabledValue:!1,title:J(t)("Alert when an IP address is blocked"),onChange:o[5]||(o[5]=e=>J(l)("alertOn_block",e.new,J(n).$options.alertOn_block))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_loginLockout",value:J(n).$options.alertOn_loginLockout,enabledValue:!0,disabledValue:!1,title:J(t)("Alert when someone is locked out from login"),onChange:o[6]||(o[6]=e=>J(l)("alertOn_loginLockout",e.new,J(n).$options.alertOn_loginLockout))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_breachLogin",value:J(n).$options.alertOn_breachLogin,enabledValue:!0,disabledValue:!1,title:J(t)("Alert when someone is blocked from logging in for using a password found in a breach"),onChange:o[7]||(o[7]=e=>J(l)("alertOn_breachLogin",e.new,J(n).$options.alertOn_breachLogin))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"alertOn_lostPasswdForm",value:J(n).$options.alertOn_lostPasswdForm,enabledValue:!0,disabledValue:!1,title:J(t)('Alert when the "lost password" form is used for a valid user'),onChange:o[8]||(o[8]=e=>J(l)("alertOn_lostPasswdForm",e.new,J(n).$options.alertOn_lostPasswdForm))},null,8,["value","title"])]),c("li",null,[h(J(Ug),{optionName:"alertOn_adminLogin",value:J(n).$options.alertOn_adminLogin,enabledValue:!0,disabledValue:!1,title:J(t)("Alert me when someone with administrator access signs in"),onChange:o[9]||(o[9]=e=>J(l)("alertOn_adminLogin",e.new,J(n).$options.alertOn_adminLogin)),childOptionName:"alertOn_firstAdminLoginOnly",childValue:J(n).$options.alertOn_firstAdminLoginOnly,childEnabledValue:!0,childDisabledValue:!1,childTitle:J(t)("Only alert me when that administrator signs in from a new device"),onChangeChild:o[10]||(o[10]=e=>J(l)("alertOn_firstAdminLoginOnly",e.new,J(n).$options.alertOn_firstAdminLoginOnly))},null,8,["value","title","childValue","childTitle"])]),c("li",null,[h(J(Ug),{optionName:"alertOn_nonAdminLogin",value:J(n).$options.alertOn_nonAdminLogin,enabledValue:!0,disabledValue:!1,title:J(t)("Alert me when a non-admin user signs in"),onChange:o[11]||(o[11]=e=>J(l)("alertOn_nonAdminLogin",e.new,J(n).$options.alertOn_nonAdminLogin)),childOptionName:"alertOn_firstNonAdminLoginOnly",childValue:J(n).$options.alertOn_firstNonAdminLoginOnly,childEnabledValue:!0,childDisabledValue:!1,childTitle:J(t)("Only alert me when that user signs in from a new device"),onChangeChild:o[12]||(o[12]=e=>J(l)("alertOn_firstNonAdminLoginOnly",e.new,J(n).$options.alertOn_firstNonAdminLoginOnly))},null,8,["value","title","childValue","childTitle"])]),c("li",null,[h(J(Xh),{optionName:"wafAlertOnAttacks",value:J(n).$options.wafAlertOnAttacks,enabledValue:!0,disabledValue:!1,title:J(t)("Alert me when there's a large increase in attacks detected on my site"),onChange:o[13]||(o[13]=e=>J(l)("wafAlertOnAttacks",e.new,J(n).$options.wafAlertOnAttacks))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"alert_maxHourly",value:J(n).$options.alert_maxHourly,title:J(t)("Maximum email alerts to send per hour"),subtitle:J(t)("0 means unlimited alerts will be sent.","wordfence"),onChange:o[14]||(o[14]=e=>J(l)("alert_maxHourly",e.new,J(n).$options.alert_maxHourly))},null,8,["value","title","subtitle"])])])]),_:1},8,["stateKey","collapseable"]))}},sw=["id","data-option-name","data-original-value"],ow={key:0,class:"wf-option-spacer"},iw={class:"wf-option-content"},rw={class:"wf-flex-vertical wf-flex-align-left"},uw=["id"],cw={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},dw=["href"],pw={class:"wf-fa wf-fa-question-circle-o"},fw={class:"wf-option-subtitle"},hw=["id"],mw={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},gw=["href"],ww={class:"wf-fa wf-fa-question-circle-o"},vw={class:"wf-option-textarea"},yw={key:0,class:"wf-flex-vertical wf-flex-align-left wf-flex-full-width"},bw=["disabled","aria-labelledby"],Aw={class:"wf-option-subtitle"},kw=["disabled","aria-labelledby"],_w={__name:"OptionTextArea",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},alignTitle:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},subtitlePosition:{type:String,default:"title"},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const{$isPaid:a}=Qs(),n=t,l=X(),s=b("__"),o=e,{value:i,optionName:d,premium:p,disabled:m,noSpacer:g,noVerticalSpacing:w}=Q(o),{$elementID:v,$elementIDLabel:y,$elementClasses:k,$pendingValue:_}=li(d,i,n,{always:["wf-option-textarea"],premium:p,disabled:m,noVerticalSpacing:w});return si({[o.optionName]:v}),(t,n)=>{const o=W("aria");return B(),u("ul",{id:J(v),class:C(J(k)),"data-option-name":J(d),"data-original-value":JSON.stringify(J(i))},[J(g)?r("",!0):(B(),u("li",ow)),c("li",iw,[c("ul",null,[(e.subtitle||J(l).subtitle)&&"title"===e.subtitlePosition?(B(),u("li",{key:0,class:C(["wf-option-title",{"wf-option-title-top":"top"===e.alignTitle,"wf-option-title-bottom":"bottom"===e.alignTitle}])},[c("ul",rw,[c("li",null,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,uw),J(p)?(B(),u("a",cw,Y(J(s)("Premium Feature")),1)):r("",!0),n[2]||(n[2]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",pw,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,dw)):r("",!0)]),c("li",fw,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])],2)):(B(),u("li",{key:1,class:C(["wf-option-title",{"wf-option-title-top":"top"===e.alignTitle,"wf-option-title-bottom":"bottom"===e.alignTitle}])},[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,hw),J(p)?(B(),u("a",mw,Y(J(s)("Premium Feature")),1)):r("",!0),n[3]||(n[3]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",ww,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,gw)):r("",!0)],2)),c("li",vw,[(e.subtitle||J(l).subtitle)&&"value"===e.subtitlePosition?(B(),u("ul",yw,[c("li",null,[re(c("textarea",{disabled:J(m)||!J(a)&&J(p),"aria-labelledby":J(y),"onUpdate:modelValue":n[0]||(n[0]=e=>A(_)?_.value=e:null)},null,8,bw),[[le,J(_)]])]),c("li",Aw,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])):re((B(),u("textarea",{key:1,disabled:J(m)||!J(a)&&J(p),"aria-labelledby":J(y),"onUpdate:modelValue":n[1]||(n[1]=e=>A(_)?_.value=e:null)},null,8,kw)),[[le,J(_)]])])])])],10,sw)}}},xw={class:"wf-block-list"},Cw={__name:"OptionsGroupEmailSummary",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("$dataStore"),{$updatePendingValue:l}=Vn(),{stateKey:s,collapseable:o}=Q(e);T(()=>{a.on("resetOptionControls",r)}),D(()=>{a.off("resetOptionControls",r)});const r=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(s),collapseable:J(o)},{title:ie(()=>[f(Y(J(t)("Activity Report")),1)]),default:ie(()=>[c("ul",xw,[c("li",null,[h(J(aw),{optionName:"email_summary_enabled",value:J(n).$options.email_summary_enabled,enabledValue:!0,disabledValue:!1,title:J(t)("Enable email summary"),onChange:a[0]||(a[0]=e=>J(l)("email_summary_enabled",e.new,J(n).$options.email_summary_enabled)),selectOptionName:"email_summary_interval",selectOptions:[{value:"daily",label:J(t)("Once a day")},{value:"weekly",label:J(t)("Once a week")},{value:"monthly",label:J(t)("Once a month")}],selectValue:J(n).$options.email_summary_interval,onChangeSelect:a[1]||(a[1]=e=>J(l)("email_summary_interval",e.new,J(n).$options.email_summary_interval))},null,8,["value","title","selectOptions","selectValue"])]),c("li",null,[h(J(_w),{optionName:"email_summary_excluded_directories",value:J(n).$options.email_summary_excluded_directories,title:J(t)("List of directories to exclude from recently modified file list"),onChange:a[2]||(a[2]=e=>J(l)("email_summary_excluded_directories",e.new,J(n).$options.email_summary_excluded_directories))},null,8,["value","title"])]),c("li",null,[h(J(Xh),{optionName:"email_summary_dashboard_widget_enabled",value:J(n).$options.email_summary_dashboard_widget_enabled,enabledValue:!0,disabledValue:!1,title:J(t)("Enable activity report widget on the WordPress dashboard"),onChange:a[3]||(a[3]=e=>J(l)("email_summary_dashboard_widget_enabled",e.new,J(n).$options.email_summary_dashboard_widget_enabled))},null,8,["value","title"])])])]),_:1},8,["stateKey","collapseable"]))}},Sw={id:"wf-dashboard-options",class:"wf-fixed-tab-content"},Iw={class:"wf-section-title"},Dw={class:"wf-center-xs"},Mw={class:"wf-hidden-xs"},Tw=["href"],Lw={class:"wf-fa wf-fa-external-link"},Ow={class:"wf-row"},Bw={class:"wf-col-xs-12"},$w={class:"wf-block wf-always-active"},Pw={class:"wf-block-header"},Ew={class:"wf-block-header-content"},Rw={class:"wf-block-title"},Fw={class:"wf-block-content"},Nw={class:"wf-block-list"},Ww={class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width wf-add-top wf-add-bottom"},Hw={class:"wf-right wf-left-xs wf-padding-add-top-xs-small"},Vw=["href"],Uw={__name:"DashboardOptions",setup(e){const t=b("__"),a=b("wfconstants"),n=window.wordfenceAdmin;return T(()=>{document.title=t("Wordfence Global Options")+" ‹ "+n.basePageName}),(e,n)=>{const l=W("aria");return B(),u("div",Sw,[c("div",Iw,[n[1]||(n[1]=c("div",{class:"wordfence-lock-icon wordfence-icon32 wf-hidden-xs"},null,-1)),c("h2",Dw,Y(J(t)("Wordfence Global Options")),1),c("span",Mw,[c("a",{href:J(a).support.url.dashboard_options,target:"_blank",rel:"noopener noreferrer",class:"wf-help-link"},[h(J(Vs),{text:J(t)("Learn more about Global Options"),xs:J(t)("Learn More")},null,8,["text","xs"]),h(J(Kn))],8,Tw),n[0]||(n[0]=f()),re(c("i",Lw,null,512),[[l,{hidden:!0}]])])]),h(J(nh),{showProtectionActivated:!1,attributionTag:"dashboardOptions",firewallOptionsLink:J(a).plugin.url.waf_options_from_dashboard_options,scanOptionsLink:J(a).plugin.url.scan_options_from_dashboard_options},null,8,["firewallOptionsLink","scanOptionsLink"]),h(J(Rh),{stateKey:"global-options-license"}),h(J(tm),{stateKey:"global-options-view-customization"}),h(J(rg),{stateKey:"global-options-general"}),h(J(gg),{stateKey:"global-options-dashboard"}),h(J(lw),{stateKey:"global-options-alert"}),h(J(Cw),{stateKey:"global-options-email-summary"}),c("div",Ow,[c("div",Bw,[c("div",$w,[c("div",Pw,[c("div",Ew,[c("div",Rw,[c("strong",null,Y(J(t)("Import/Export Options")),1)])])]),c("div",Fw,[c("ul",Nw,[c("li",null,[c("ul",Ww,[c("li",null,Y(J(t)("Importing and exporting of options has moved to the Tools page")),1),c("li",Hw,[c("a",{href:J(a).plugin.url.import_export_redirect,class:"wf-btn wf-btn-primary wf-btn-callout-subtle",id:"wf-export-options"},Y(J(t)("Import/Export Options")),9,Vw)])])])])])])])])])}}};function Yw(){return{$hasOwn:(e,t)=>(0,rn.default)(e,t),$structuredClone:e=>(0,un.default)(e)}}var Kw=["innerHTML"],jw={__name:"SafeHTML",props:{unsafeHTML:{type:String,default:""},allowedTags:{type:Array,default:()=>["b","i","em","strong","a","br","span","code","pre"]},allowedAttributes:{type:Object,default:()=>({a:["href","target","rel","class"],span:["class","data-tooltip","title"],strong:["class"],b:["class"],i:["class"],em:["class"],code:["class"],pre:["class"],"*":["style"]})},allowedStyles:{type:Object,default:()=>({"*":{color:[/^#(0x)?[0-9a-f]+$/i,/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/]}})},additionalTags:{type:Array,default:()=>[]},additionalAttributes:{type:Object,default:()=>({})},additionalStyles:{type:Object,default:()=>({})}},setup(e){const{$hasOwn:t,$structuredClone:a}=Yw(),{allowedTags:n,allowedAttributes:l,allowedStyles:o,additionalTags:i,additionalAttributes:r,additionalStyles:c}=Q(e),d=s(()=>f(p,i.value,r.value,c.value)),p=()=>({allowedTags:a(n.value),allowedAttributes:a(l.value),allowedStyles:a(o.value)}),f=(e,n,l,s)=>{const o=e();return o.allowedTags.push(...n),Object.keys(l).forEach(e=>{const t=o.allowedAttributes[e]??[];o.allowedAttributes[e]=[...t,...l[e]]}),Object.keys(s).forEach(e=>{const n=s[e];t(o.allowedStyles,e)?Object.keys(n).forEach(a=>{t(o.allowedStyles[e],a)||(o.allowedStyles[e][a]=[]),o.allowedStyles[e][a].push(...n[a])}):o.allowedStyles[e]=a(n)}),o};return(t,a)=>(B(),u("span",{innerHTML:J($p.default)(e.unsafeHTML,d.value)},null,8,Kw))}},Gw={class:"wf-block-list"},Qw={class:"wf-diagnostics-item-label"},qw={class:"wf-right"},Zw={key:1},Jw={key:0},zw=["onClick"],Xw={key:0,class:"wf-pre wf-split-word",style:{"max-width":"600px"}},ev={key:1},tv={__name:"DiagnosticsBlock",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0},title:{type:String,required:!0},subtitle:{type:[String,null],default:null},hasFailingTest:{type:Boolean,default:!1},results:{type:Array,default:()=>[]}},setup(e){const a=b("__"),l=P({});return(s,o)=>{const p=W("nl2br"),m=W("aria");return B(),i(J(_h),{stateKey:e.stateKey,collapseable:e.collapseable,class:C({"wf-diagnostic-fail":e.hasFailingTest})},d({title:ie(()=>[f(Y(e.title),1)]),default:ie(()=>[c("ul",Gw,[(B(!0),u(t,null,F(e.results,e=>(B(),u("li",{key:e.name},[c("div",Qw,[e.label?.raw?(B(),i(J(jw),{key:0,unsafeHTML:e.label.value},null,8,["unsafeHTML"])):(B(),i(J(jw),{key:1,unsafeHTML:e.label,allowedTags:["code","strong","em","a","span"]},null,8,["unsafeHTML"]))]),c("div",qw,[c("div",{class:C({"wf-result-info":e.infoOnly,"wf-result-success":!e.infoOnly&&e.test,"wf-result-warn":!e.infoOnly&&!e.test&&e.warn,"wf-result-error":!e.infoOnly&&!e.test&&!e.warn})},[e.message.escaped?(B(),i(J(jw),{key:0,unsafeHTML:e.message.escaped},null,8,["unsafeHTML"])):re((B(),u("span",Zw,null,512)),[[p,e.message]])],2),e.detail?(B(),u(t,{key:0},[h(n,{name:"wf-fade"},{default:ie(()=>[l[e.name]?r("",!0):(B(),u("p",Jw,[re((B(),u("a",{href:"#",onClick:ce(t=>{return a=e.name,void(l[a]=!0);var a},["stop","prevent"])},[f(Y(J(a)("View Additional Detail")),1)],8,zw)),[[m,{role:"button"}]])]))]),_:2},1024),h(n,{name:"wf-fade"},{default:ie(()=>[l[e.name]?(B(),u("pre",Xw,[e.detail.escaped?(B(),i(J(jw),{key:0,unsafeHTML:e.detail.escaped},null,8,["unsafeHTML"])):re((B(),u("span",ev,null,512)),[[p,e.detail]])])):r("",!0)]),_:2},1024)],64)):r("",!0)])]))),128))])]),_:2},[e.subtitle?{name:"subtitle",fn:ie(()=>[f(Y(e.subtitle),1)]),key:"0"}:void 0]),1032,["stateKey","collapseable","class"])}}},av=["href"],nv=["value"],lv=["value"],sv={__name:"DiagnosticsClearCentralConnectionData",setup(e){const t=b("__"),a=b("wfconstants"),{$ajax:n}=In(),{$modalNotice:l}=Hn(),s=()=>{n("wordfence_wfcentral_disconnect",{force:!0},e=>{e.success&&l(t("Successfully removed data"),t("All associated Wordfence Central connection data has been cleared."))})},o=()=>{n("wordfence_wfcentral_disconnect",{local:!0},e=>{e.success&&l(t("Successfully removed data"),t("All associated Wordfence Central connection data has been cleared."))})};return(e,n)=>(B(),u("span",null,[f(Y(J(t)("Clear all Wordfence Central connection data"))+" ",1),c("a",{href:J(a).support.url.diagnostics_remove_central_data,target:"_blank",rel:"noopener noreferrer",class:"wfhelp wf-inline-help"},[h(J(Kn))],8,av),c("input",{class:"wf-btn wf-btn-default wf-btn-sm",type:"button",value:J(t)("Clear All Connection Data"),onClick:ce(s,["stop","prevent"])},null,8,nv),c("input",{class:"wf-btn wf-btn-default wf-btn-sm",type:"button",value:J(t)("Clear Local Connection Data"),onClick:ce(o,["stop","prevent"])},null,8,lv)]))}},ov={id:"sendByEmailForm",class:"wf-block wf-active"},iv={class:"wf-block-header"},rv={class:"wf-block-header-content"},uv={class:"wf-block-title"},cv={class:"wf-block-content wf-clearfix"},dv={class:"wf-block-list"},pv={style:{width:"40%"}},fv={style:{width:"40%"}},hv=["disabled"],mv={__name:"DiagnosticsSendReportEmail",setup(e){const t=b("__"),{$ajax:a}=In(),{$modalNotice:n}=Hn(),l=R("wftest@wordfence.com"),o=s(()=>/^[^@]+@[^@]+$/.test(l.value)),i=R(""),r=()=>{a("wordfence_sendDiagnostic",{email:l.value,ticket:i.value},e=>{e.result?n(t("Email Diagnostic Report"),t("Diagnostic report has been sent successfully.")):n(t("Error"),t("There was an error while sending the email."))},e=>{n(t("Error"),t("There was an error while sending the email."))})};return(e,a)=>(B(),u("div",ov,[c("div",iv,[c("div",rv,[c("div",uv,[c("strong",null,Y(J(t)("Send Report by Email")),1)])])]),c("div",cv,[c("ul",dv,[c("li",null,[c("div",null,Y(J(t)("Email address"))+":",1),c("div",pv,[c("p",null,[re(c("input",{class:"wf-input-text",type:"email",id:"_email","onUpdate:modelValue":a[0]||(a[0]=e=>l.value=e),required:""},null,512),[[le,l.value]])])])]),c("li",null,[c("div",null,Y(J(t)("Ticket Number/Forum Username"))+":",1),c("div",fv,[c("p",null,[re(c("input",{class:"wf-input-text",type:"text",id:"_ticketnumber","onUpdate:modelValue":a[1]||(a[1]=e=>i.value=e),required:""},null,512),[[le,i.value]])])])]),c("li",null,[c("p",null,[c("input",{class:"wf-btn wf-btn-primary",type:"button",id:"doSendEmail",value:"Send",onClick:ce(r,["stop","prevent"]),disabled:!o.value},null,8,hv)])])])])]))}},gv={class:"wf-diagnostics-wrapper wf-add-bottom"},wv={class:"wf-flex-horizontal wf-flex-vertical-xs"},vv={class:"wf-flex-row-1"},yv=["href"],bv={class:"wf-flex-row-0 wf-padding-add-left"},Av={class:"wf-add-bottom wf-add-top"},kv={class:"wf-nowrap"},_v=["value"],xv=["value"],Cv=["value"],Sv={__name:"DiagnosticsHeader",setup(e){const t=b("$"),a=b("__"),n=b("wfconstants"),l=b("$dataStore"),s=window.wordfenceAdmin,{$addQueryArg:o}=Un(),d=R(!1),p=()=>{s.showLoading();const e=window.open(o(n.plugin.url.export_diagnostics,{nonce:l.$wordfence.nonce["wp-ajax"]}));e?e.onbeforeunload=()=>{s.removeLoading()}:s.removeLoading()},m=()=>{t("#wf-diagnostics").find(".wf-block").each(function(){const e=t(this);e.hasClass("wf-active")||e.find(".wf-block-header").trigger("click")})};return(e,t)=>(B(),u("div",gv,[c("div",wv,[c("div",vv,[f(Y(J(a)("This page shows information that can be used for troubleshooting conflicts, configuration issues, or compatibility with other plugins, themes, or a host's environment. Failing tests are not always a sign of something that you need to fix, but can help the Wordfence team when troubleshooting a problem.")),1),t[1]||(t[1]=c("br",null,null,-1)),c("a",{href:J(n).support.url.diagnostics,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,yv)]),c("div",bv,[c("div",Av,[c("span",kv,[c("input",{class:"wf-btn wf-btn-primary wf-btn-sm",type:"submit",id:"exportDiagnostics",value:J(a)("Export"),onClick:ce(p,["stop","prevent"])},null,8,_v),d.value?r("",!0):(B(),u("input",{key:0,class:"wf-btn wf-btn-primary wf-btn-sm",type:"submit",id:"sendByEmail",value:J(a)("Send Report"),onClick:t[0]||(t[0]=ce(e=>d.value=!0,["stop","prevent"]))},null,8,xv)),c("input",{class:"wf-btn wf-btn-default wf-btn-sm",type:"button",id:"expandAllDiagnostics",value:J(a)("Expand All"),onClick:ce(m,["stop","prevent"])},null,8,Cv)])])])]),d.value?(B(),i(J(mv),{key:0})):r("",!0)]))}},Iv="diagnostics-test-email-confirmation-modal",Dv={__name:"DiagnosticsTestEmailConfirmationModal",props:{show:{type:Boolean,default:!1},message:{type:String,required:!0}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",Iv),(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Test Email Sent")),1)]),body:ie(()=>[f(Y(J(t)("Your test email was sent to the requested email address. The result we received from the WordPress wp_mail() function was:"))+" ",1),c("code",null,Y(e.message),1),s[1]||(s[1]=c("br",null,null,-1)),s[2]||(s[2]=c("br",null,null,-1)),f(Y(J(t)("A 'True' result means WordPress thinks the mail was sent without errors. A 'False' result means that WordPress encountered an error sending your mail. Note that it's possible to get a 'True' response with an error elsewhere in your mail system that may cause emails to not be delivered.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",Iv)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Mv={__name:"DiagnosticsModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"diagnostics-test-email-confirmation-modal":{show:!1,message:"",configurator:e=>{n[e.name].message=e.message}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:l.value},null,8,["show"]),h(J(Dv),{show:n["diagnostics-test-email-confirmation-modal"].show,message:n["diagnostics-test-email-confirmation-modal"].message},null,8,["show","message"])]))}},Tv=["href"],Lv=["value","disabled"],Ov={__name:"DiagnosticsSendTestActivityReport",setup(e){const t=b("__"),a=b("wfconstants"),{$ajax:n}=In(),{$modalNotice:l}=Hn(),o=R(""),i=s(()=>/^[^@]+@[^@]+$/.test(o.value)),r=()=>{n("wordfence_email_summary_email_address_debug",{email:o.value},e=>{e.result&&l(t("Test Activity Report"),e.result)})};return(e,n)=>(B(),u("span",null,[f(Y(J(t)("Send a test activity report email:"))+" ",1),c("a",{href:J(a).support.url.diagnostics_test_activity_report,target:"_blank",rel:"noopener noreferrer",class:"wfhelp wf-inline-help"},[h(J(Kn))],8,Tv),re(c("input",{type:"email",value:"",size:"20",maxlength:"255","onUpdate:modelValue":n[0]||(n[0]=e=>o.value=e)},null,512),[[le,o.value]]),c("input",{class:"wf-btn wf-btn-default wf-btn-sm",type:"button",value:J(t)("Send Test Activity Report"),onClick:ce(r,["prevent","stop"]),disabled:!i.value},null,8,Lv)]))}},Bv=["href"],$v=["value","disabled"],Pv={__name:"DiagnosticsSendTestEmail",setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),{$ajax:l}=In(),o=R(""),i=s(()=>/^[^@]+@[^@]+$/.test(o.value)),r=()=>{l("wordfence_sendTestEmail",{email:o.value},e=>{e.result&&a.emit("showModal",{name:"diagnostics-test-email-confirmation-modal",message:e.result})})};return(e,a)=>(B(),u("span",null,[f(Y(J(t)("Send a test email from this WordPress server to an email address:"))+" ",1),c("a",{href:J(n).support.url.diagnostics_test_email,target:"_blank",rel:"noopener noreferrer",class:"wfhelp wf-inline-help"},[h(J(Kn))],8,Bv),re(c("input",{type:"email",value:"",size:"20",maxlength:"255","onUpdate:modelValue":a[0]||(a[0]=e=>o.value=e)},null,512),[[le,o.value]]),c("input",{class:"wf-btn wf-btn-default wf-btn-sm",type:"button",value:J(t)("Send Test Email"),onClick:ce(r,["prevent","stop"]),disabled:!i.value},null,8,$v)]))}},Ev={__name:"SettingsButtons",props:{section:{type:String,required:!0},sectionTitle:{type:[String,null]}},setup(e){const a=b("$"),n=b("__"),l=b("$mitt"),s=b("$dataStore"),{$ajax:o,$genericErrorHandler:i}=In(),{$parameterByName:r}=dn(),{section:c,sectionTitle:d}=Q(e);D(()=>{a(window).off("beforeunload",m)});const p=()=>{l.emit("showModal",{name:"restore-defaults-modal",section:c.value,sectionTitle:d.value})},m=e=>{if(Object.keys(s.$pendingOptions).length){(e=e||window.event).preventDefault();const t=n("You have unsaved changes to your options. If you leave this page, those changes will be lost.");return e&&(e.returnValue=t),t}};oe(()=>s.$pendingOptions,e=>{Object.keys(e).length?a(window).on("beforeunload",m):a(window).off("beforeunload",m)},{deep:!0});const g=()=>{Object.keys(s.$pendingOptions).forEach(e=>delete s.$pendingOptions[e]),l.emit("resetOptionControls")},w=()=>{if(!Object.keys(s.$pendingOptions).length)return;let e=Object.assign({},s.$pendingOptions);o("wordfence_saveOptions",{changes:JSON.stringify(e),page:r("page"),timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone},e=>{e.success&&(Object.keys(s.$pendingOptions).forEach(e=>delete s.$pendingOptions[e]),a(window).off("beforeunload",m),e.redirect?window.location.href=e.redirect:window.location.reload(!0))},e=>{i(e,n("Error Saving Options"))})};return(e,a)=>{const l=W("aria");return B(),u(t,null,[re((B(),u("a",{id:"wf-restore-defaults",class:"wf-btn wf-btn-default wf-btn-callout-subtle",href:"#",onClick:ce(p,["stop","prevent"])},[h(J(Vs),{text:J(n)("Restore Defaults"),xs:J(n)("Restore")},null,8,["text","xs"])])),[[l,{role:"button"}]]),a[0]||(a[0]=f(" ",-1)),re((B(),u("a",{id:"wf-cancel-changes",class:C(["wf-btn wf-btn-default wf-btn-callout-subtle",{"wf-disabled":0===Object.keys(J(s).$pendingOptions).length}]),href:"#",onClick:ce(g,["stop","prevent"])},[h(J(Vs),{text:J(n)("Cancel Changes"),xs:J(n)("Cancel")},null,8,["text","xs"])],2)),[[l,{role:"button"}]]),a[1]||(a[1]=f(" ",-1)),re((B(),u("a",{id:"wf-save-changes",class:C(["wf-btn wf-btn-primary wf-btn-callout-subtle",{"wf-disabled":0===Object.keys(J(s).$pendingOptions).length}]),href:"#",onClick:ce(w,["stop","prevent"])},[h(J(Vs),{text:J(n)("Save Changes"),xs:J(n)("Save")},null,8,["text","xs"])],2)),[[l,{role:"button"}]])],64)}}},Rv={__name:"DiagnosticsSettingsButtons",setup(e){const t=b("__"),a=b("wfconstants");return(e,n)=>(B(),u("p",null,[h(J(Ev),{section:J(a).options.section.diagnostics,sectionTitle:J(t)("Diagnostics")},null,8,["section","sectionTitle"])]))}},Fv={class:"wf-modal",id:"wf-country-selector"},Nv={class:"wf-modal-header"},Wv={class:"wf-modal-header-content"},Hv={class:"wf-modal-title"},Vv={class:"wf-modal-header-action wf-right-xs"},Uv={class:"wf-modal-content"},Yv={class:"wf-country-selector-controls"},Kv={class:"wf-country-selector-section-options"},jv=["data-letter"],Gv={class:"wf-country-selector-outer-wrapper"},Qv={class:"wf-country-selector-inner-wrapper"},qv={class:"wf-country-selector-options"},Zv=["id","data-letter"],Jv=["id","data-country","onClick"],zv=["onClick"],Xv={class:"wf-modal-footer"},ey={class:"wf-flex-horizontal wf-flex-full-width"},ty={id:"wf-country-selector-count"},ay={class:"wf-right"},ny={__name:"CountryList",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue","closeDrawer","saveCountryBlock"],setup(e,{emit:a}){const n=b("__"),l=b("_n"),o=b("sprintf"),i=b("wfconstants"),r=a,d=e,p=s(()=>{let e=Object.entries(i.countries).map(([e,t])=>t.substring(0,1).toUpperCase());return e=e.filter((t,a)=>e.indexOf(t)===a),e}),h=s(()=>{let e=[];for(const[t,a]of Object.entries(i.countries)){const n=a.substring(0,1).toUpperCase();let l=e.findIndex(e=>e.letter===n);-1===l&&(e.push({letter:n,countries:[]}),l=e.length-1),e[l].countries.push({code:t,name:a})}return e}),m=e=>{const t=d.modelValue.findIndex(t=>t===e);let a=[...d.modelValue];t>-1?a.splice(t,1):a.push(e),r("update:modelValue",a)},g=()=>{r("update:modelValue",[])},w=()=>{r("update:modelValue",Object.keys(i.countries))},v=()=>{r("closeDrawer")},y=()=>{r("saveCountryBlock"),r("closeDrawer")};return(a,s)=>{const i=W("aria"),r=W("scroll-to");return B(),u("div",Fv,[c("div",Nv,[c("div",Wv,[c("div",Hv,Y(J(n)("Select Countries to Block from List")),1)]),c("div",Vv,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-btn-sm wf-countries-shortcut",id:"wf-country-selector-block-all","data-shortcut":"select",onClick:ce(w,["stop","prevent"])},[f(Y(J(n)("Block All")),1)])),[[i,{role:"button"}]]),s[0]||(s[0]=c("span",{class:"wf-hidden-xs"}," ",-1)),c("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-btn-sm wf-countries-shortcut",id:"wf-country-selector-unblock-all","data-shortcut":"deselect",onClick:ce(g,["stop","prevent"])},Y(J(n)("Unblock All")),1)])]),c("div",Uv,[c("ul",Yv,[c("li",null,[c("ul",Kv,[(B(!0),u(t,null,F(p.value,e=>(B(),u("li",{key:e},[re((B(),u("a",{href:"#","data-letter":e.toLowerCase()},[f(Y(e),1)],8,jv)),[[i,{role:"button"}],[r,`#wf-country-section-${e.toLowerCase()}`]])]))),128))])])]),c("div",Gv,[c("div",Qv,[c("div",qv,[(B(!0),u(t,null,F(h.value,a=>(B(),u("ul",{class:"wf-blocked-countries",id:`wf-country-section-${a.letter.toLowerCase()}`,"data-letter":a.letter,key:a.letter},[(B(!0),u(t,null,F(a.countries,t=>(B(),u("li",{key:t.code,id:`wf-country-option-${t.code.toLowerCase()}`,class:C({"wf-active":e.modelValue.includes(t.code)}),"data-country":t.code,onClick:ce(e=>m(t.code),["stop","prevent"])},[re((B(),u("a",{href:"#",onClick:ce(e=>m(t.code),["stop","prevent"])},[f(Y(t.name),1)],8,zv)),[[i,{role:"button"}]])],10,Jv))),128))],8,Zv))),128))])])])]),c("div",Xv,[c("ul",ey,[c("li",ty,Y(J(o)(J(l)("%d Country Selected","%d Countries Selected",e.modelValue.length),e.modelValue.length)),1),c("li",ay,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",id:"wf-country-selector-cancel",onClick:ce(v,["stop","prevent"])},[f(Y(J(n)("Back")),1)])),[[i,{role:"button"}]]),s[1]||(s[1]=f(" ",-1)),c("a",{href:"#",class:"wf-btn wf-btn-primary wf-btn-callout-subtle",id:"wf-country-selector-confirm",onClick:ce(y,["stop","prevent"])},Y(J(n)("Save")),1)])])])])}}},ly=["id"],sy={__name:"Drawer",props:{showDrawer:{type:Boolean,default:!1},id:{type:[String,null],default:null}},emits:["closeDrawer"],setup(e,{emit:a}){const l=a;return(a,s)=>(B(),u(t,null,[h(n,{name:"wf-drawer-overlay"},{default:ie(()=>[!1!==e.showDrawer?(B(),u("div",{key:0,class:"wf-drawer-overlay",onClick:s[0]||(s[0]=ce(e=>l("closeDrawer"),["stop","prevent"]))})):r("",!0)]),_:1}),h(n,{name:"wf-drawer"},{default:ie(()=>[!1!==e.showDrawer?(B(),u("div",{key:0,id:e.id,class:"wf-drawer"},[N(a.$slots,"default"),c("span",{class:"wf-drawer-close wf-ion-android-close",onClick:s[1]||(s[1]=ce(e=>l("closeDrawer"),["stop","prevent"]))})],8,ly)):r("",!0)]),_:3})],64))}},oy={__name:"FirewallDrawers",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"country-list-drawer":{show:!1,model:!1,onUpdate:()=>{},onSave:()=>{},configurator:e=>{n[e.name].model=e.model??!1,n[e.name].onUpdate=e.onUpdate??(()=>{}),n[e.name].onSave=e.onSave??(()=>{})}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showDrawer",o),t.on("closeDrawer",u)}),D(()=>{t.off("showDrawer",o),t.off("closeDrawer",u)});const o=e=>{a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},u=e=>{a(n,e)&&(n[e].show=!1)},c=()=>{Object.keys(n).forEach(e=>{n[e].show=!1})};return(e,t)=>(B(),i(J(sy),{showDrawer:l.value,onCloseDrawer:c},{default:ie(()=>[n["country-list-drawer"].show?(B(),i(J(ny),{key:0,modelValue:n["country-list-drawer"].model,"onUpdate:modelValue":[t[0]||(t[0]=e=>n["country-list-drawer"].model=e),n["country-list-drawer"].onUpdate],onCloseDrawer:t[1]||(t[1]=e=>u("country-list-drawer")),onSaveCountryBlock:n["country-list-drawer"].onSave},null,8,["modelValue","onUpdate:modelValue","onSaveCountryBlock"])):r("",!0)]),_:1},8,["showDrawer"]))}},iy={class:"wf-row"},ry={class:"wf-col-xs-12"},uy={class:"wf-block wf-active"},cy={class:"wf-block-content"},dy={class:"wf-block-list"},py={key:0},fy={class:"wf-block-list wf-block-list-horizontal"},hy={key:0},my={class:"wf-block-labeled-value wf-waf-status wf-waf-status-full-enabled"},gy={class:"wf-block-labeled-value-label"},wy={key:0,class:"wf-waf-status-disabled"},vy={class:"wf-block-labeled-value-value"},yy={class:"wf-fa wf-fa-check"},by={class:"wf-block-labeled-value-label"},Ay={key:1},ky={key:0},_y={key:1},xy={class:"wf-fa wf-fa-lightbulb-o wf-tip"},Cy=["href"],Sy=["href"],Iy={key:0},Dy={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/#premium-order-form",target:"_blank",rel:"noopener noreferrer"},My={class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:"https://www.wordfence.com/gnl1wafLearn/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},Ty={class:"wf-block-labeled-value-value"},Ly={class:"wf-fa wf-fa-check"},Oy={class:"wf-block-labeled-value-label"},By={class:"wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-waf-coverage"},$y={class:"wf-flex-horizontal wf-flex-full-width wf-no-top"},Py={class:"wf-tip-info-message"},Ey=["href"],Ry={class:"wf-flex-horizontal wf-flex-full-width wf-no-top"},Fy={class:"wf-tip-info-message"},Ny=["href"],Wy={__name:"FirewallHeader",props:{showFirewallStatus:{type:Boolean,default:!0},showOptionsLinks:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("wfconstants"),{$setOption:l}=Vn(),s=()=>{l("wafStatus",n.waf.modes.enabled,()=>{window.location.reload(!0)})};return(l,o)=>{const i=W("aria");return B(),u("div",iy,[c("div",ry,[c("div",uy,[c("div",cy,[c("ul",dy,[e.showFirewallStatus?(B(),u("li",py,[c("ul",fy,[J(n).waf.mode===J(n).waf.modes.enabled&&J(n).waf.ruleMode===J(n).waf.ruleModes.premium?(B(),u("li",hy,[c("div",my,[c("div",gy,[J(n).license.current.type===J(n).license.types.response?(B(),u(t,{key:0},[f(Y(J(a)("Wordfence Firewall & Response License Enabled")),1)],64)):J(n).license.current.type===J(n).license.types.care?(B(),u(t,{key:1},[f(Y(J(a)("Wordfence Firewall & Care License Enabled")),1)],64)):(B(),u(t,{key:2},[f(Y(J(a)("Wordfence Firewall & Premium Enabled")),1)],64))])])])):(B(),u(t,{key:1},[c("li",null,[J(n).waf.mode===J(n).waf.modes.disabled?(B(),u("div",wy,[c("h3",null,Y(J(a)("Wordfence Firewall Deactivated")),1),c("p",null,Y(J(a)("The Wordfence Web Application Firewall is a PHP-based, application-level firewall that filters out malicious requests to your site. It is designed to run at the beginning of WordPress' initialization to filter any attacks before plugins or themes can run any potentially vulnerable code.")),1),c("p",null,[re((B(),u("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"#",id:"waf-top-enable-firewall",onClick:ce(s,["stop","prevent"])},[f(Y(J(a)("Enable Firewall")),1)])),[[i,{role:"button"}]])])])):(B(),u(t,{key:1},[J(n).waf.mode===J(n).waf.modes.enabled?(B(),u("div",{key:0,class:C(["wf-block-labeled-value","wf-waf-status",`wf-waf-status-${J(n).waf.mode}`])},[c("div",vy,[re(c("i",yy,null,512),[[i,{hidden:!0}]])]),c("div",by,Y(J(a)("Wordfence Firewall Activated")),1)],2)):J(n).waf.mode===J(n).waf.modes.learning_mode?(B(),u("div",Ay,[!0===J(n).waf.learning_mode?(B(),u("h3",ky,Y(J(a)("Learning Mode Enabled")),1)):(B(),u("h3",_y,[f(Y(J(a)("Learning Mode Until"))+": ",1),h(J(Mi),{timestamp:J(n).waf.learning_mode,dateFormat:"%b %-d, %Y"},null,8,["timestamp"])])),c("p",null,[re(c("i",xy,null,512),[[i,{hidden:!0}]]),f(" "+Y(J(a)("When you first install the Wordfence Web Application Firewall, it will be in learning mode. This allows Wordfence to learn about your site so that we can understand how to protect it and how to allow normal visitors through the firewall. We recommend you let Wordfence learn for a week before you enable the firewall.")),1)]),c("p",null,[c("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:J(n).plugin.url.basic_waf_options},Y(J(a)("Manage Firewall")),9,Cy),o[0]||(o[0]=f(" ",-1)),c("a",{class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:J(n).support.url.firewall_waf,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,Sy)])])):r("",!0)],64))]),c("li",null,[J(n).waf.ruleMode===J(n).waf.ruleModes.community?(B(),u("div",Iy,[c("h3",null,Y(J(a)("Premium Protection Disabled")),1),c("p",null,Y(J(a)("As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by additional firewall rules and malware signatures. Upgrade to Premium today to improve your protection.")),1),c("p",null,[c("a",Dy,Y(J(a)("Upgrade to Premium")),1),o[1]||(o[1]=f(" ",-1)),c("a",My,[f(Y(J(a)("Learn More")),1),h(J(Kn))])])])):(B(),u("div",{key:1,class:C(["wf-block-labeled-value","wf-protection-status",`wf-protection-status-${J(n).waf.ruleMode}`])},[c("div",Ty,[re(c("i",Ly,null,512),[[i,{hidden:!0}]])]),c("div",Oy,Y(J(a)("Premium Protection Enabled")),1)],2))])],64))])])):r("",!0),c("li",null,[c("ul",By,[c("li",null,[h(J(mf),{id:"waf-coverage",percentage:J(n).waf.statusPercentage,activeColorOverride:J(n).waf.mode===J(n).waf.modes.learning_mode?"#ececec":null,title:J(a)("Web Application Firewall"),subtitle:J(n).waf.mode===J(n).waf.modes.learning_mode?J(a)("Currently in Learning Mode"):J(a)("Stops Complex Attacks"),link:J(n).plugin.url.waf_options,linkLabel:e.showOptionsLinks?J(a)("Manage WAF"):null,statusTitle:J(a)("Web Application Firewall Status"),statusList:J(n).waf.statusList,helpLink:J(n).support.url.firewall_waf_status_overall},d({_:2},[J(n).waf.mode===J(n).waf.modes.learning_mode?{name:"statusExtra",fn:ie(()=>[c("ul",$y,[o[2]||(o[2]=c("li",{class:"wf-tip-light-bulb"},[c("i",{class:"wf-ion-ios-lightbulb-outline"})],-1)),c("li",Py,[c("strong",null,[f(Y(J(a)("The Web Application Firewall is currently in Learning Mode."))+" ",1),c("a",{href:J(n).support.url.firewall_waf_learning_mode,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,Ey)])])])]),key:"0"}:void 0]),1032,["percentage","activeColorOverride","title","subtitle","link","linkLabel","statusTitle","statusList","helpLink"])]),c("li",null,[h(J(mf),{id:"waf-rules",percentage:J(n).waf.ruleStatusPercentage,activeColorOverride:J(n).waf.mode===J(n).waf.modes.learning_mode?"#ececec":null,title:J(a)("Firewall Rules")+": "+(J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(a)("Premium"):J(a)("Community")),subtitle:J(n).waf.mode===J(n).waf.modes.learning_mode?J(a)("Currently in Learning Mode"):J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(a)("Rules updated in real-time"):J(a)("Rule updates delayed by 30 days"),link:J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(n).plugin.url.advanced_waf_options:"https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/",linkLabel:e.showOptionsLinks?J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(a)("Manage Firewall Rules"):J(a)("Upgrade to Premium"):null,linkNewWindow:!(J(n).waf.ruleMode===J(n).waf.ruleModes.premium),statusTitle:J(a)("Firewall Rules Status"),statusList:J(n).waf.rulesStatusList,helpLink:J(n).support.url.firewall_waf_status_rules},d({_:2},[J(n).waf.mode===J(n).waf.modes.learning_mode?{name:"statusExtra",fn:ie(()=>[c("ul",Ry,[o[3]||(o[3]=c("li",{class:"wf-tip-light-bulb"},[c("i",{class:"wf-ion-ios-lightbulb-outline"})],-1)),c("li",Fy,[c("strong",null,[f(Y(J(a)("The Web Application Firewall is currently in Learning Mode."))+" ",1),c("a",{href:J(n).support.url.firewall_waf_learning_mode,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,Ny)])])])]),key:"0"}:void 0]),1032,["percentage","activeColorOverride","title","subtitle","link","linkLabel","linkNewWindow","statusTitle","statusList","helpLink"])]),c("li",null,[h(J(mf),{id:"waf-blacklist",percentage:J(n).waf.blacklistStatusPercentage,activeColorOverride:J(n).waf.mode===J(n).waf.modes.learning_mode?"#ececec":null,title:J(a)("Real-Time IP Blocklist")+": "+(J(n).waf.blacklistMode===J(n).waf.blacklistModes.enabled?J(a)("Enabled"):J(a)("Disabled")),subtitle:J(a)("Blocks requests from known malicious IPs"),link:J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(n).plugin.url.basic_waf_options:"https://www.wordfence.com/gnl1wafUpgrade/wordfence-signup/",linkLabel:e.showOptionsLinks?J(n).waf.ruleMode===J(n).waf.ruleModes.premium?J(a)("Manage Real-Time IP Blocklist"):J(a)("Upgrade to Premium"):null,linkNewWindow:!(J(n).waf.ruleMode===J(n).waf.ruleModes.premium),statusTitle:J(a)("Blocklist Status"),statusList:J(n).waf.blacklistStatusList,helpLink:J(n).support.url.firewall_waf_status_blacklist},null,8,["percentage","activeColorOverride","title","subtitle","link","linkLabel","linkNewWindow","statusTitle","statusList","helpLink"])]),c("li",null,[h(J(mf),{id:"waf-brute",percentage:J(n).waf.bruteForceStatusPercentage,title:J(a)("Brute Force Protection")+(J(n).waf.bruteForceStatusPercentage>0?"":": "+J(a)("Disabled")),subtitle:J(a)("Stops Password Guessing Attacks"),link:J(n).plugin.url.bruteforce_options,linkLabel:e.showOptionsLinks?J(a)("Manage Brute Force Protection"):null,statusTitle:J(a)("Brute Force Protection Status"),statusList:J(n).waf.bruteForceStatusList,helpLink:J(n).support.url.firewall_waf_status_brute_force},null,8,["percentage","title","subtitle","link","linkLabel","statusTitle","statusList","helpLink"])])])])])])])])])}}},Hy="country-block-us-modal",Vy={__name:"CountryBlockUSModal",props:{show:{type:Boolean,default:!1},onClosed:{default:!1}},setup(e){const t=b("__"),a=b("$mitt"),l=b("wfconstants");$("modalName",Hy);const s=e,o=()=>{a.emit("closeModal",Hy),"function"==typeof s.onClosed&&s.onClosed()};return(s,u)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("U.S. Blocked")),1)]),body:ie(()=>[f(Y(J(t)("For most sites, we recommend allowing access from the United States, where Google and other benign crawlers are generally located. Many well-known crawlers also have locations in Europe, so be careful when blocking other countries, especially if you have not seen significant attacks from them.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:u[0]||(u[0]=e=>J(a).emit("closeModal",Hy)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:o,"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Continue")),1)]),_:1}),h(J(Np),{href:J(l).support.url.firewall_blocking_full_site,target:"_blank",rel:"noopener noreferrer"},{default:ie(()=>[f(Y(J(t)("Learn More")),1)]),_:1},8,["href"])]),_:1})):r("",!0)]),_:1}))}},Uy="bulk-unblock-modal",Yy={__name:"BulkUnblockModal",props:{show:{type:Boolean,default:!1},count:{type:Number,default:0},onClosed:{default:!1}},setup(e){const t=b("__"),a=b("sprintf"),l=b("$mitt");$("modalName",Uy);const s=e,o=()=>{l.emit("closeModal",Uy),"function"==typeof s.onClosed&&s.onClosed()};return(s,u)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Unblocking")),1)]),body:ie(()=>[f(Y(1===e.count?J(t)("Are you sure you want to stop blocking the selected IP, range, or country?"):J(a)(J(t)("Are you sure you want to stop blocking the %d selected IPs, ranges, and countries?"),e.count)),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:u[0]||(u[0]=e=>J(l).emit("closeModal",Uy)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:o,"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Unblock")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Ky={key:0},jy={class:"wf-pre"},Gy={id:"wf-waf-include-prepend",class:"wf-switch"},Qy={class:"wf-notice"},qy={key:2},Zy={key:3},Jy={key:4,class:"wf-notice wf-nginx-waf-config"},zy={key:5,class:"wf-manual-waf-config"},Xy={key:6,class:"wf-notice wf-nginx-unit-waf-config wf-waf-install-blocked"},eb={class:"wf-waf-backups"},tb={key:0},ab={class:"wf-waf-backup-file-list"},nb=["data-backup-index","href","onClick"],lb={class:"wf-waf-download-instructions"},sb="install-waf-modal",ob={__name:"InstallWAFModal",props:{show:{type:Boolean,default:!1}},setup(e){const a=b("__"),l=b("$mitt"),o=b("sprintf"),d=b("wfconstants"),p=b("$dataStore"),{$ajax:m,$ajaxErrorMessage:g}=In(),{$modal:w,$errorModal:v}=Hn(),{$addQueryArg:y}=Un();$("modalName",sb);const A=e,k=()=>d.options.controls.waf_optimization_options.reduce((e,t)=>t.recommended?t.value:e,"manual"),_=()=>{m("wordfence_installAutoPrepend",{serverConfiguration:D.value,currentAutoPrepend:I.value},e=>{S("wordfence_installAutoPrepend",e)},e=>{S("wordfence_installAutoPrepend",e)})},S=(e,t)=>{t.needsCredentials?(l.emit("closeModal",sb),x(()=>w("install-waf-file-credentials-modal",{filesystemCredentialsHTML:t.html,formURL:t.formURL,onCredentialsSubmit:S,ajaxAction:e}))):t.credentialsFailed?(l.emit("closeModal",sb),x(()=>w("install-waf-filesystem-error-modal",{credentialsErrors:t.credentialsErrors}))):t.installationFailed?(l.emit("closeModal",sb),x(()=>w("install-waf-failed-modal",{errorMessage:t.error}))):t.ok?(l.emit("closeModal",sb),"show-install-success"===t.postInstallAction?w("install-waf-success-modal",t.postInstallActionData):"show-manual-install"===t.postInstallAction&&w("install-waf-manual-modal",t.postInstallActionData)):(e=>{l.emit("closeModal",sb),x(()=>v(g(e)))})(t)},I=R("include"),D=R(k()),M=P({});oe(D,()=>{Object.keys(M).forEach(e=>{delete M[e]})}),oe(()=>A.show,e=>{e&&(D.value=k(),Object.keys(M).forEach(e=>{delete M[e]}),I.value="include")});const T=s(()=>{const e=d.options.controls.waf_optimization_options.findIndex(e=>e.value===D.value);return e>-1?d.options.controls.waf_optimization_options[e].backup:[]}),L=s(()=>Object.keys(M).length>=T.value.length),O=e=>y(d.plugin.url.install_waf_download_backup_base,{downloadBackup:!0,backupIndex:e,serverConfiguration:D.value,wfnonce:p.$wordfence.nonce.install_waf_auto_prepend});return(l,s)=>{const p=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(a)("Optimize Wordfence Firewall")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{unsafeHTML:J(o)(J(a)('If you cannot complete the setup process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(d).support.url.firewall_waf_install_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[!J(d).plugin.server.php.auto_prepend_file||J(d).plugin.server.host.is_wp_engine||J(d).plugin.server.host.is_pressable||J(d).plugin.server.host.is_flywheel?(B(),u("p",Ky,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(a)("To make your site as secure as possible, the Wordfence Web Application Firewall is designed to run via a PHP setting called <code>auto_prepend_file</code>, which ensures it runs before any potentially vulnerable code runs.")},null,8,["unsafeHTML"])])):(B(),u(t,{key:1},[c("p",null,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(a)("To make your site as secure as possible, the Wordfence Web Application Firewall is designed to run via a PHP setting called <code>auto_prepend_file</code>, which ensures it runs before any potentially vulnerable code runs.")},null,8,["unsafeHTML"]),f(" "+Y(J(a)("This PHP setting is currently in use, and is including this file:")),1)]),c("pre",jy,Y(J(d).plugin.server.php.auto_prepend_file),1),c("p",null,[h(J(Ep),{unsafeHTML:J(a)('If you don\'t recognize this file, please <a href="https://wordpress.org/support/plugin/wordfence" target="_blank" rel="noopener noreferrer">contact us on the WordPress support forums<span class="screen-reader-text"> (opens in new tab)</span></a> before proceeding.')},null,8,["unsafeHTML"])]),c("p",null,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(a)("You can proceed with the installation and we will include this from within our <code>wordfence-waf.php</code> file which should maintain compatibility with your site, or you can opt to override the existing PHP setting.")},null,8,["unsafeHTML"])]),c("ul",Gy,[c("li",{class:C({"wf-active":"include"===I.value}),"data-option-value":"include",onClick:s[0]||(s[0]=ce(e=>I.value="include",["stop","prevent"]))},Y(J(a)("Include")),3),c("li",{class:C({"wf-active":"override"===I.value}),"data-option-value":"override",onClick:s[1]||(s[1]=ce(e=>I.value="override",["stop","prevent"]))},Y(J(a)("Override")),3)])],64)),c("div",Qy,[c("strong",null,Y(J(a)("NOTE"))+":",1),f(" "+Y(J(a)("If you have separate WordPress installations with Wordfence installed within a subdirectory of this site, it is recommended that you perform the Firewall installation procedure on those sites before this one.")),1)]),J(d).options.controls.waf_optimization_options.reduce((e,t)=>e||t.recommended,!1)?(B(),u("p",Zy,Y(J(a)("We've preselected your server configuration based on our tests, but if you know your web server's configuration, please select it now. You can also choose \"Manual Configuration\" for alternate installation details.")),1)):(B(),u("p",qy,Y(J(a)("If you know your web server's configuration, please select it from the list below.")),1)),h(J(gs),{modelValue:D.value,"onUpdate:modelValue":s[2]||(s[2]=e=>D.value=e),canClear:!1,options:J(d).options.controls.waf_optimization_options.map(e=>Object.assign({},e,{label:e.label+(e.recommended?" "+J(a)("(recommended based on our tests)"):"")}))},null,8,["modelValue","options"]),"nginx"===D.value?(B(),u("div",Jy,[h(J(Ep),{unsafeHTML:J(o)(J(a)('Part of the Firewall configuration procedure for NGINX depends on creating a <code>%1$s</code> file in the root of your WordPress installation. This file can contain sensitive information and public access to it should be restricted. We have <a href="%2$s" target="_blank" rel="noreferrer noopener">instructions on our documentation site<span class="screen-reader-text"> (opens in new tab)</span></a> on what directives to put in your nginx.conf to fix this.'),J(d).plugin.server.php.user_ini,J(d).support.url.firewall_waf_install_nginx)},null,8,["unsafeHTML"])])):"manual"===D.value?(B(),u("div",zy,[c("p",null,Y(J(a)("If you are using a web server not listed in the dropdown or if file permissions prevent the installer from completing successfully, you will need to perform the change manually. Click Continue below to create the required file and view manual installation instructions.")),1)])):"nginx-unit"===D.value?(B(),u("div",Xy,Y(J(a)("Firewall optimization is not currently supported on NGINX Unit")),1)):r("",!0),c("div",eb,[T.value.length?(B(),u("p",tb,Y(J(a)("Please download a backup of the following files before we make the necessary changes:")),1)):r("",!0),c("ul",ab,[(B(!0),u(t,null,F(T.value,(e,t)=>(B(),u("li",{key:e},[re((B(),u("a",{class:"wf-btn wf-btn-default wf-waf-backup-download","data-backup-index":t,href:O(t),onClick:e=>M[t]=!0},[f(Y(J(o)(J(a)("Download %s"),e)),1)],8,nb)),[[p,{role:"button"}]])]))),128))])])]),"primary-button":ie(()=>[h(J(Np),{onClick:_,"is-primary":!0,enabled:L.value&&"nginx-unit"!==D.value},{default:ie(()=>[f(Y(J(a)("Continue")),1)]),_:1},8,["enabled"])]),accessory:ie(()=>[c("span",lb,Y(J(a)("Once you have downloaded the files, click Continue to complete the setup.")),1)]),_:1})):r("",!0)]),_:1})}}},ib={key:0},rb={key:1},ub={__name:"InstallWAFSuccessModal",props:{show:{type:Boolean,default:!1},active:{type:Boolean,default:!0}},setup(e){const t=b("__");$("modalName","install-waf-success-modal");const a=()=>{window.location.reload(!0)};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Installation Successful")),1)]),body:ie(()=>[e.active?(B(),u("p",ib,Y(J(t)("Nice work! The firewall is now optimized.")),1)):(B(),u("p",rb,Y(J(t)("The changes have not yet taken effect. If you are using LiteSpeed or IIS as your web server or CGI/FastCGI interface, you may need to wait a few minutes for the changes to take effect since the configuration files are sometimes cached. You also may need to select a different server configuration in order to complete this step, but wait for a few minutes before trying. You can try refreshing this page.")),1))]),"primary-button":ie(()=>[h(J(Np),{onClick:a,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},cb={class:"wf-flex-row"},db={key:0,class:"wf-pre"},pb=["value"],fb={class:"wf-fa wf-fa-copy"},hb={key:0},mb={__name:"CopyableText",props:{text:{type:String,required:!0},multiline:{type:Boolean,default:!1}},setup(e){const t=b("__"),{text:a}=Q(e),n=R(!1),l=ee("textField"),s=()=>{l.value&&l.value.select()},o=()=>{navigator.clipboard?navigator.clipboard.writeText(a.value):(l.value.focus(),s(),document.execCommand("copy")),n.value=!0,setTimeout(()=>{n.value=!1},1e3)};return(i,d)=>{const p=W("aria");return B(),u("div",cb,[e.multiline?(B(),u("pre",db,Y(J(a)),1)):(B(),u("input",{key:1,type:"text",value:J(a),onClick:ce(s,["stop","prevent"]),ref_key:"textField",ref:l,class:"wf-flex-row-1"},null,8,pb)),re((B(),u("a",{onClick:ce(o,["stop","prevent"]),class:"wf-btn wf-flex-row-0"},[re(c("i",fb,null,512),[[p,{hidden:!0}]]),n.value?(B(),u("span",hb," Copied!")):r("",!0)])),[[p,{role:"button",label:J(t)("Copy"),tabindex:0}]])])}}},gb="install-waf-manual-modal",wb={__name:"InstallWAFManualModal",props:{show:{type:Boolean,default:!1},autoPrependPath:{default:""}},setup(e){const t=b("__"),a=b("$mitt"),l=b("sprintf"),o=b("wfconstants");$("modalName",gb);const u=e,d=s(()=>`auto_prepend_file = '${u.autoPrependPath}'`);return(s,u)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Manual Installation Instructions")),1)]),body:ie(()=>[c("p",null,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(t)("The required file has been created. You'll need to insert the following code into your <code>php.ini</code> to finish installation:")},null,8,["unsafeHTML"])]),h(J(mb),{text:d.value,multiline:!0},null,8,["text"]),c("p",null,[h(J(Ep),{unsafeHTML:J(l)(J(t)('You can find more details on alternative setup steps, including installation on SiteGround or for multiple sites sharing a single php.ini, <a href="%s" target="_blank" rel="noopener noreferrer">in our documentation<span class="screen-reader-text"> (opens in new tab)</span></a>.'),J(o).support.url.firewall_waf_install_manually)},null,8,["unsafeHTML"])])]),"primary-button":ie(()=>[h(J(Np),{onClick:u[0]||(u[0]=e=>J(a).emit("closeModal",gb)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},vb={__name:"FilesystemCredentialsHTML",props:{unsafeHTML:{type:String,default:""},requiredFormURL:{type:String,required:!0}},setup(e){const t=e,a=s(()=>["form","div","h1","h2","p","label","span","input","fieldset","legend","button"]),n=s(()=>({form:[{name:"action",values:[t.requiredFormURL]},{name:"method",values:["post"]}],label:["for"],input:["name",{name:"type",values:["text","password","radio","submit","hidden"]},"aria-*","placeholder","value","disabled","spellcheck"],button:["data-js-action","type"],"*":["id","class"]}));return(t,l)=>(B(),i(J(Ep),{allowedTags:a.value,allowedAttributes:n.value,unsafeHTML:e.unsafeHTML},null,8,["allowedTags","allowedAttributes","unsafeHTML"]))}},yb="install-waf-file-credentials-modal",bb={__name:"InstallWAFFileCredentialsModal",props:{show:{type:Boolean,default:!1},filesystemCredentialsHTML:{type:String,default:""},formURL:{type:String,default:""},onCredentialsSubmit:{default:()=>{}},ajaxAction:{type:String,default:""}},setup(e){const t=b("$"),a=b("__"),l=b("$mitt"),s=b("sprintf"),o=b("wfconstants");$("modalName",yb);const{$ajax:u}=In(),{filesystemCredentialsHTML:d,onCredentialsSubmit:p,ajaxAction:m}=Q(e);oe(d,()=>{x(()=>{const e=t("#request-filesystem-credentials-form").closest("form");e.length&&(e.find('input[type="submit"]').attr("type","hidden"),e.off("submit").on("submit",e=>{e.preventDefault(),e.stopPropagation(),g()}))})},{immediate:!0});const g=()=>{const e=t("#request-filesystem-credentials-form").closest("form");u(m.value,e.serialize(),e=>{x(()=>p.value(m.value,e))}),l.emit("closeModal",yb)};return(t,l)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(a)("Filesystem Credentials Required")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{unsafeHTML:J(s)(J(a)('If you cannot complete the setup process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(o).support.url.firewall_waf_install_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[h(J(vb),{requiredFormURL:e.formURL,unsafeHTML:J(d)},null,8,["requiredFormURL","unsafeHTML"])]),"primary-button":ie(()=>[h(J(Np),{onClick:g,"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Continue")),1)]),_:1})]),accessory:ie(()=>[f(Y(J(a)("Once you have entered credentials, click Continue to complete the setup.")),1)]),_:1})):r("",!0)]),_:1}))}},Ab="install-waf-filesystem-error-modal",kb={__name:"InstallWAFFilesystemErrorModal",props:{show:{type:Boolean,default:!1},credentialsErrors:{type:Array,default:()=>[]}},setup(e){const a=b("__"),l=b("$mitt"),s=b("sprintf"),o=b("wfconstants");return $("modalName",Ab),(d,p)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(a)("Filesystem Permission Error")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{unsafeHTML:J(s)(J(a)('If you cannot complete the setup process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(o).support.url.firewall_waf_install_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[(B(!0),u(t,null,F(e.credentialsErrors,e=>(B(),u("p",{key:e},Y(e),1))),128))]),"primary-button":ie(()=>[h(J(Np),{onClick:p[0]||(p[0]=e=>J(l).emit("closeModal",Ab)),"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Cancel")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},_b="install-waf-failed-modal",xb={__name:"InstallWAFFailedModal",props:{show:{type:Boolean,default:!1},errorMessage:{type:String,default:""}},setup(e){const t=b("__"),a=b("$mitt"),l=b("sprintf"),s=b("wfconstants");return $("modalName",_b),(o,u)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Unable to Install")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{unsafeHTML:J(l)(J(t)('If you cannot complete the setup process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(s).support.url.firewall_waf_install_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[c("p",null,Y(e.errorMessage),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:u[0]||(u[0]=e=>J(a).emit("closeModal",_b)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Cb={class:"wf-error"},Sb="uninstall-waf-failed-modal",Ib={__name:"UninstallWAFFailedModal",props:{show:{type:Boolean,default:!1},errorMessage:{type:String,default:""}},setup(e){const t=b("__"),a=b("$mitt"),l=b("sprintf"),s=b("wfconstants");return $("modalName",Sb),(o,u)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Unable to Uninstall")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{allowedTags:["a","span"],unsafeHTML:J(l)(J(t)('If you cannot complete the uninstall process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(s).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[c("p",Cb,[h(J(Ep),{unsafeHTML:e.errorMessage},null,8,["unsafeHTML"])]),c("p",null,Y(J(t)("If this is your first attempt, please try again.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:u[0]||(u[0]=e=>J(a).emit("closeModal",Sb)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Db={key:0},Mb={key:1},Tb={key:2},Lb={__name:"UninstallWAFSuccessModal",props:{show:{type:Boolean,default:!1},active:{type:Boolean,default:!0},isSubdirectoryInstall:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("wfconstants");$("modalName","uninstall-waf-success-modal");const{$parameterByName:l}=dn(),s=()=>{l("wf_deactivate")?window.location.href=a.plugin.url.deactivate:window.location.reload(!0)};return(a,l)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Uninstallation Complete")),1)]),body:ie(()=>[e.active||e.isSubdirectoryInstall?e.active?(B(),u("p",Tb,Y(J(t)("The changes have not yet taken effect. If you are using LiteSpeed or IIS as your web server or CGI/FastCGI interface, you may need to wait a few minutes for the changes to take effect since the configuration files are sometimes cached. You also may need to select a different server configuration in order to complete this step, but wait for a few minutes before trying. You can try refreshing this page.")),1)):(B(),u("p",Mb,Y(J(t)("Uninstallation from this site was successful! The Wordfence Firewall is still active because it is installed in another WordPress installation.")),1)):(B(),u("p",Db,Y(J(t)("Uninstallation was successful!")),1))]),"primary-button":ie(()=>[h(J(Np),{onClick:s,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Ob={key:0},Bb={class:"wf-flex-horizontal"},$b={class:"wf-padding-add-left"},Pb="uninstall-waf-waiting-modal",Eb={__name:"UninstallWAFWaitingModal",props:{show:{type:Boolean,default:!1},hasPreviousAutoPrepend:{type:Boolean,default:!1},timeUntil:{type:Number,default:0},refreshPayload:{type:Object,default:()=>({})},onUninstallComplete:{default:()=>{}}},setup(e){const t=b("__"),a=b("$mitt"),l=b("sprintf"),s=b("wfconstants"),{$ajax:o}=In(),{$modal:d}=Hn(),{$makeDuration:p}=Un();$("modalName",Pb);const{show:m,timeUntil:g,refreshPayload:w,onUninstallComplete:v}=Q(e),y=R(0),A=R(!1);oe(m,(e,t)=>{if(e!==t)return e?void k():(clearTimeout(y.value),void(A.value=!1))});const k=()=>{clearTimeout(y.value),y.value=setTimeout(()=>{A.value=!0,o("wordfence_uninstallAutoPrepend",Object.assign({iniModified:!0},w.value),e=>{e.uninstallationWaiting?(d(Pb,{hasPreviousAutoPrepend:e.hasPreviousAutoPrepend,timeUntil:e.timeout,refreshPayload:e.refreshPayload,onUninstallComplete:v.value}),k()):(a.emit("closeModal",Pb),v.value("wordfence_uninstallAutoPrepend",e))})},1e3*(g.value+10))};return(o,d)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[J(m)?(B(),i(J(eu),{key:0,noX:!0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Waiting for Changes")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{allowedTags:["a","span"],unsafeHTML:J(l)(J(t)('If you cannot complete the uninstall process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(s).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[c("p",null,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(t)("The <code>auto_prepend_file</code> setting has been successfully removed from <code>.htaccess</code> and <code>.user.ini</code>. Once this change takes effect, Extended Protection Mode will be disabled.")},null,8,["unsafeHTML"])]),e.hasPreviousAutoPrepend?(B(),u("p",Ob,[h(J(Ep),{allowedTags:["code"],unsafeHTML:J(t)("Any previous value for <code>auto_prepend_file</code> will need to be re-enabled manually if still needed.")},null,8,["unsafeHTML"])])):r("",!0),c("ul",Bb,[c("li",null,[h(J(Ci),{size:32})]),c("li",$b,Y(J(l)(J(t)("Waiting for it to take effect. This may take up to %s."),J(p)(J(g)))),1)])]),"primary-button":ie(()=>[h(J(Np),{onClick:d[0]||(d[0]=e=>J(a).emit("closeModal",Pb)),"is-primary":!0,enabled:A.value},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1},8,["enabled"])]),_:1})):r("",!0)]),_:1}))}},Rb="uninstall-waf-file-credentials-modal",Fb={__name:"UninstallWAFFileCredentialsModal",props:{show:{type:Boolean,default:!1},filesystemCredentialsHTML:{type:String,default:""},formURL:{type:String,default:""},onCredentialsSubmit:{default:()=>{}},ajaxAction:{type:String,default:""}},setup(e){const t=b("$"),a=b("__"),l=b("$mitt"),s=b("sprintf"),o=b("wfconstants");$("modalName",Rb);const{$ajax:u}=In(),{filesystemCredentialsHTML:d,onCredentialsSubmit:p,ajaxAction:m}=Q(e);oe(d,()=>{x(()=>{const e=t("#request-filesystem-credentials-form").closest("form");e.length&&(e.find('input[type="submit"]').attr("type","hidden"),e.off("submit").on("submit",e=>{e.preventDefault(),e.stopPropagation(),g()}))})},{immediate:!0});const g=()=>{const e=t("#request-filesystem-credentials-form").closest("form");u(m.value,e.serialize(),e=>{x(()=>p.value(m.value,e))}),l.emit("closeModal",Rb)};return(t,l)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(a)("Filesystem Credentials Required")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{allowedTags:["a","span"],unsafeHTML:J(s)(J(a)('If you cannot complete the uninstall process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(o).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[h(J(vb),{requiredFormURL:e.formURL,unsafeHTML:J(d)},null,8,["requiredFormURL","unsafeHTML"])]),"primary-button":ie(()=>[h(J(Np),{onClick:g,"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Continue")),1)]),_:1})]),accessory:ie(()=>[f(Y(J(a)("Once you have entered credentials, click Continue to complete the removal.")),1)]),_:1})):r("",!0)]),_:1}))}},Nb="uninstall-waf-filesystem-error-modal",Wb={__name:"UninstallWAFFilesystemErrorModal",props:{show:{type:Boolean,default:!1},credentialsErrors:{type:Array,default:()=>[]}},setup(e){const a=b("__"),l=b("$mitt"),s=b("sprintf"),o=b("wfconstants");return $("modalName",Nb),(d,p)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(a)("Filesystem Permission Error")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{allowedTags:["a","span"],unsafeHTML:J(s)(J(a)('If you cannot complete the uninstall process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(o).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[(B(!0),u(t,null,F(e.credentialsErrors,e=>(B(),u("p",{key:e},Y(e),1))),128))]),"primary-button":ie(()=>[h(J(Np),{onClick:p[0]||(p[0]=e=>J(l).emit("closeModal",Nb)),"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Cancel")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},Hb={class:"wf-pre"},Vb={key:0},Ub={key:0},Yb={key:1},Kb={class:"wf-waf-backups"},jb={key:0},Gb={class:"wf-waf-backup-file-list"},Qb=["data-backup-index","href","onClick"],qb={key:0,class:"wf-waf-download-instructions"},Zb="uninstall-waf-modal",Jb={__name:"UninstallWAFModal",props:{show:{type:Boolean,default:!1}},setup(e){const a=b("__"),l=b("$mitt"),o=b("sprintf"),d=b("wfconstants"),p=b("$dataStore"),{$ajax:m,$ajaxErrorMessage:g}=In(),{$modal:w,$errorModal:v}=Hn(),{$addQueryArg:y}=Un();$("modalName",Zb);const A=e,k=()=>d.options.controls.waf_optimization_options.reduce((e,t)=>t.recommended?t.value:e,"manual"),_=()=>{d.waf.autoPrependRefersToWAF&&m("wordfence_uninstallAutoPrepend",{serverConfiguration:S.value},e=>{C("wordfence_uninstallAutoPrepend",e)},e=>{C("wordfence_uninstallAutoPrepend",e)})},C=(e,t)=>{t.needsCredentials?(l.emit("closeModal",Zb),x(()=>w("uninstall-waf-file-credentials-modal",{filesystemCredentialsHTML:t.html,formURL:t.formURL,onCredentialsSubmit:C,ajaxAction:e}))):t.credentialsFailed?(l.emit("closeModal",Zb),x(()=>w("uninstall-waf-filesystem-error-modal",{credentialsErrors:t.credentialsErrors}))):t.uninstallationFailed?(l.emit("closeModal",Zb),x(()=>w("uninstall-waf-failed-modal",{errorMessage:t.errorMsg}))):t.uninstallationWaiting?(l.emit("closeModal",Zb),x(()=>w("uninstall-waf-waiting-modal",{hasPreviousAutoPrepend:t.hasPreviousAutoPrepend,timeUntil:t.timeout,refreshPayload:t.refreshPayload,onUninstallComplete:C}))):t.ok?(l.emit("closeModal",Zb),w("uninstall-waf-success-modal",{active:t.active,isSubdirectoryInstall:t.subdirectory})):(e=>{l.emit("closeModal",Zb),x(()=>v(g(e)))})(t)},S=R(k()),I=P({});oe(S,()=>{Object.keys(I).forEach(e=>{delete I[e]})}),oe(()=>A.show,e=>{e&&(S.value=k(),Object.keys(I).forEach(e=>{delete I[e]}))});const D=s(()=>{const e=d.options.controls.waf_optimization_options.findIndex(e=>e.value===S.value);return e>-1?d.options.controls.waf_optimization_options[e].backup:[]}),M=s(()=>Object.keys(I).length>=D.value.length),T=e=>y(d.plugin.url.uninstall_waf_download_backup_base,{downloadBackup:!0,backupIndex:e,serverConfiguration:S.value,wfnonce:p.$wordfence.nonce.uninstall_waf_auto_prepend}),L=s(()=>d.plugin.server.host.is_wp_engine||d.plugin.server.host.is_pressable||d.plugin.server.host.is_flywheel?d.waf.bootstrapPath:d.plugin.server.php.auto_prepend_file);return(l,s)=>{const p=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(a)("Uninstall Wordfence Firewall")),1)]),headerAction:ie(()=>[c("div",null,[h(J(Ep),{unsafeHTML:J(o)(J(a)('If you cannot complete the uninstall process, <a href="%s" target="_blank" rel="noopener noreferrer">click here for help<span class="screen-reader-text"> (opens in new tab)</span></a>'),J(d).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])])]),body:ie(()=>[c("p",null,[h(J(Ep),{unsafeHTML:J(a)("Extended Protection Mode of the Wordfence Web Application Firewall uses the PHP ini setting called <code>auto_prepend_file</code> in order to ensure it runs before any potentially vulnerable code runs. This PHP setting currently refers to the Wordfence file at:")},null,8,["unsafeHTML"])]),c("pre",Hb,Y(L.value),1),J(d).waf.autoPrependRefersToWAF?(B(),u(t,{key:1},[c("p",null,[h(J(Ep),{unsafeHTML:J(a)("Before this file can be deleted, the configuration for the <code>auto_prepend_file</code> setting needs to be removed.")},null,8,["unsafeHTML"])]),J(d).options.controls.waf_optimization_options.reduce((e,t)=>e||t.recommended,!1)?(B(),u("p",Yb,Y(J(a)("We've preselected your server configuration based on our tests, but if you know your web server's configuration, please select it now.")),1)):(B(),u("p",Ub,Y(J(a)("If you know your web server's configuration, please select it from the list below.")),1)),h(J(gs),{modelValue:S.value,"onUpdate:modelValue":s[0]||(s[0]=e=>S.value=e),canClear:!1,options:J(d).options.controls.waf_optimization_options.map(e=>Object.assign({},e,{label:e.label+(e.recommended?" "+J(a)("(recommended based on our tests)"):"")}))},null,8,["modelValue","options"]),c("div",Kb,[D.value.length?(B(),u("p",jb,Y(J(a)("Please download a backup of the following files before we make the necessary changes:")),1)):r("",!0),c("ul",Gb,[(B(!0),u(t,null,F(D.value,(e,t)=>(B(),u("li",{key:e},[re((B(),u("a",{class:"wf-btn wf-btn-default wf-waf-backup-download","data-backup-index":t,href:T(t),onClick:e=>I[t]=!0},[f(Y(J(o)(J(a)("Download %s"),e)),1)],8,Qb)),[[p,{role:"button"}]])]))),128))])])],64)):(B(),u("p",Vb,[h(J(Ep),{unsafeHTML:J(o)(J(a)('Automatic uninstallation cannot be completed, but you may still be able to <a href="%s" target="_blank" rel="noopener noreferrer">manually uninstall extended protection<span class="screen-reader-text"> (opens in new tab)</span></a>.'),J(d).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])]))]),"primary-button":ie(()=>[J(d).waf.autoPrependRefersToWAF?(B(),i(J(Np),{key:0,onClick:_,"is-primary":!0,enabled:M.value},{default:ie(()=>[f(Y(J(a)("Continue")),1)]),_:1},8,["enabled"])):r("",!0)]),accessory:ie(()=>[J(d).waf.autoPrependRefersToWAF?(B(),u("span",qb,Y(J(a)("Once you have downloaded the files, click Continue to complete uninstallation.")),1)):r("",!0)]),_:1})):r("",!0)]),_:1})}}},zb={__name:"FirewallModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"country-block-us-modal":{show:!1,onClosed:!1,configurator:e=>{n[e.name].onClosed=e.onClosed??!1}},"bulk-unblock-modal":{show:!1,count:0,onClosed:!1,configurator:e=>{n[e.name].count=e.count??0,n[e.name].onClosed=e.onClosed??!1}},"install-waf-modal":{show:!1,configurator:()=>{}},"install-waf-success-modal":{show:!1,active:!1,configurator:e=>{n[e.name].active=e.active??!1}},"install-waf-manual-modal":{show:!1,autoPrependPath:"",configurator:e=>{n[e.name].autoPrependPath=e.autoPrependPath??""}},"install-waf-file-credentials-modal":{show:!1,filesystemCredentialsHTML:"",formURL:"",onCredentialsSubmit:()=>{},ajaxAction:"",configurator:e=>{n[e.name].filesystemCredentialsHTML=e.filesystemCredentialsHTML??"",n[e.name].formURL=e.formURL??"",n[e.name].onCredentialsSubmit=e.onCredentialsSubmit??(()=>{}),n[e.name].ajaxAction=e.ajaxAction??""}},"install-waf-filesystem-error-modal":{show:!1,credentialsErrors:[],configurator:e=>{n[e.name].credentialsErrors=e.credentialsErrors??[]}},"install-waf-failed-modal":{show:!1,errorMessage:"",configurator:e=>{n[e.name].errorMessage=e.errorMessage??""}},"uninstall-waf-modal":{show:!1,configurator:()=>{}},"uninstall-waf-success-modal":{show:!1,active:!1,isSubdirectoryInstall:!1,configurator:e=>{n[e.name].active=e.active??!1,n[e.name].isSubdirectoryInstall=e.isSubdirectoryInstall??!1}},"uninstall-waf-file-credentials-modal":{show:!1,filesystemCredentialsHTML:"",formURL:"",onCredentialsSubmit:()=>{},ajaxAction:"",configurator:e=>{n[e.name].filesystemCredentialsHTML=e.filesystemCredentialsHTML??"",n[e.name].formURL=e.formURL??"",n[e.name].onCredentialsSubmit=e.onCredentialsSubmit??(()=>{}),n[e.name].ajaxAction=e.ajaxAction??""}},"uninstall-waf-filesystem-error-modal":{show:!1,credentialsErrors:[],configurator:e=>{n[e.name].credentialsErrors=e.credentialsErrors??[]}},"uninstall-waf-waiting-modal":{show:!1,hasPreviousAutoPrepend:!1,timeUntil:0,refreshPayload:{},onUninstallComplete:()=>{},configurator:e=>{n[e.name].hasPreviousAutoPrepend=e.hasPreviousAutoPrepend??!1,n[e.name].timeUntil=e.timeUntil??0,n[e.name].refreshPayload=e.refreshPayload??{},n[e.name].onUninstallComplete=e.onUninstallComplete??(()=>{})}},"uninstall-waf-failed-modal":{show:!1,errorMessage:"",configurator:e=>{n[e.name].errorMessage=e.errorMessage??""}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:l.value},null,8,["show"]),h(J(Vy),{show:n["country-block-us-modal"].show,onClosed:n["country-block-us-modal"].onClosed},null,8,["show","onClosed"]),h(J(Yy),{show:n["bulk-unblock-modal"].show,count:n["bulk-unblock-modal"].count,onClosed:n["bulk-unblock-modal"].onClosed},null,8,["show","count","onClosed"]),h(J(ob),{show:n["install-waf-modal"].show},null,8,["show"]),h(J(ub),{show:n["install-waf-success-modal"].show,active:n["install-waf-success-modal"].active},null,8,["show","active"]),h(J(wb),{show:n["install-waf-manual-modal"].show,autoPrependPath:n["install-waf-manual-modal"].autoPrependPath},null,8,["show","autoPrependPath"]),h(J(bb),{show:n["install-waf-file-credentials-modal"].show,filesystemCredentialsHTML:n["install-waf-file-credentials-modal"].filesystemCredentialsHTML,formURL:n["install-waf-file-credentials-modal"].formURL,onCredentialsSubmit:n["install-waf-file-credentials-modal"].onCredentialsSubmit,ajaxAction:n["install-waf-file-credentials-modal"].ajaxAction},null,8,["show","filesystemCredentialsHTML","formURL","onCredentialsSubmit","ajaxAction"]),h(J(kb),{show:n["install-waf-filesystem-error-modal"].show,credentialsErrors:n["install-waf-filesystem-error-modal"].credentialsErrors},null,8,["show","credentialsErrors"]),h(J(xb),{show:n["install-waf-failed-modal"].show,errorMessage:n["install-waf-failed-modal"].errorMessage},null,8,["show","errorMessage"]),h(J(Jb),{show:n["uninstall-waf-modal"].show},null,8,["show"]),h(J(Fb),{show:n["uninstall-waf-file-credentials-modal"].show,filesystemCredentialsHTML:n["uninstall-waf-file-credentials-modal"].filesystemCredentialsHTML,formURL:n["uninstall-waf-file-credentials-modal"].formURL,onCredentialsSubmit:n["uninstall-waf-file-credentials-modal"].onCredentialsSubmit,ajaxAction:n["uninstall-waf-file-credentials-modal"].ajaxAction},null,8,["show","filesystemCredentialsHTML","formURL","onCredentialsSubmit","ajaxAction"]),h(J(Wb),{show:n["uninstall-waf-filesystem-error-modal"].show,credentialsErrors:n["uninstall-waf-filesystem-error-modal"].credentialsErrors},null,8,["show","credentialsErrors"]),h(J(Eb),{show:n["uninstall-waf-waiting-modal"].show,hasPreviousAutoPrepend:n["uninstall-waf-waiting-modal"].hasPreviousAutoPrepend,timeUntil:n["uninstall-waf-waiting-modal"].timeUntil,refreshPayload:n["uninstall-waf-waiting-modal"].refreshPayload,onUninstallComplete:n["uninstall-waf-waiting-modal"].onUninstallComplete},null,8,["show","hasPreviousAutoPrepend","timeUntil","refreshPayload","onUninstallComplete"]),h(J(Lb),{show:n["uninstall-waf-success-modal"].show,active:n["uninstall-waf-success-modal"].active,isSubdirectoryInstall:n["uninstall-waf-success-modal"].isSubdirectoryInstall},null,8,["show","active","isSubdirectoryInstall"]),h(J(Ib),{show:n["uninstall-waf-failed-modal"].show,errorMessage:n["uninstall-waf-failed-modal"].errorMessage},null,8,["show","errorMessage"])]))}},Xb={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("This is where you can monitor the work Wordfence is doing to protect your site and also where you can manage the options to optimize the firewall's configuration.")),1))}},eA={__name:"NewTour2",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("The Wordfence Web Application Firewall blocks known and emerging attacks using firewall rules. When you first install the WAF, it will be in learning mode. This allows Wordfence to learn about your site so that we can understand how to protect it and how to allow normal visitors through the firewall. We recommend you let Wordfence learn for a week before you enable the firewall.")),1))}},tA={__name:"NewTour3",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("Wordfence protects your site from password-guessing attacks by locking out attackers and helping you avoid weak passwords.")),1))}},aA={__name:"NewTour4",setup(e){const a=b("__");return(e,n)=>(B(),u(t,null,[n[0]||(n[0]=c("p",{class:"wf-center"},[c("svg",{viewBox:"0 0 100.11 100.11",class:"wf-icon"},[c("path",{d:"M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"})])],-1)),c("p",null,Y(J(a)("Set up the way you want the firewall to protect your site including the web application firewall, brute force protection, rate limiting, and blocking.")),1)],64))}},nA={__name:"FirewallNewTour",setup(e){const t=b("__"),n=b("$"),l=b("wfconstants"),s=R(!1),o=R(0);$("tourName",l.tour.types.firewall),T(()=>{n("#waf").hasClass("wf-active")?u("waf"):n(window).on("wfTabChange",r)}),D(()=>{n(window).off("wfTabChange",r)});const r=(e,t)=>{u(t)},u=e=>{"waf"===e&&l.tour.new.firewall&&(l.tour.new.firewall=!1,s.value=!0)},c=[{title:t("The Wordfence firewall protects your sites from attackers"),content:Xb,anchor:{selector:"#wf-section-firewall",pointer:{edge:"top",align:"left"}}},{title:t("Web Application Firewall (WAF)"),content:eA,anchor:{selector:"#waf-coverage",pointer:{edge:"top",align:"left"}}},{title:t("Brute Force Protection"),content:tA,anchor:{selector:"#waf-brute",pointer:{edge:"right",align:"right"}}},{title:t("Firewall Options"),content:aA,anchor:{selector:"#waf-option-all-options",pointer:{edge:"right",align:"right"}}}],d=()=>{l.tour.new.firewall=!1,s.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:s.value},null,8,["show"]),h(J(Fn),{show:s.value,selectedIndex:o.value,slides:c,onCloseTour:d},null,8,["show","selectedIndex"])]))}},lA="undefined"!=typeof window&&"undefined"!=typeof document,sA=("undefined"!=typeof WorkerGlobalScope&&(globalThis,WorkerGlobalScope),Object.prototype.toString),oA=()=>{},iA=/* @__PURE__ */rA();function rA(){var e,t,a;return lA&&!!(null===(e=window)||void 0===e||null===(e=e.navigator)||void 0===e?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||(null===(t=window)||void 0===t||null===(t=t.navigator)||void 0===t?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null===(a=window)||void 0===a?void 0:a.navigator.userAgent))}function uA(e){return Array.isArray(e)?e:[e]}function cA(e){const t=Object.create(null);return a=>t[a]||(t[a]=e(a))}var dA=/\B([A-Z])/g,pA=(cA(e=>e.replace(dA,"-$1").toLowerCase()),/-(\w)/g);cA(e=>e.replace(pA,(e,t)=>t?t.toUpperCase():""));var fA=lA?window:void 0;function hA(e){var t;const a=q(e);return null!==(t=null==a?void 0:a.$el)&&void 0!==t?t:a}function mA(...e){const t=s(()=>{const t=uA(q(e[0])).filter(e=>null!=e);return t.every(e=>"string"!=typeof e)?t:void 0});return a=([e,t,a,n],l,s)=>{if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||!(null==a?void 0:a.length))return;const o=(i=n,"[object Object]"===sA.call(i)?{...n}:n);var i;const r=e.flatMap(e=>t.flatMap(t=>a.map(a=>((e,t,a,n)=>(e.addEventListener(t,a,n),()=>e.removeEventListener(t,a,n)))(e,t,a,o))));s(()=>{r.forEach(e=>e())})},n={flush:"post"},oe(()=>{var a,n;return[null!==(a=null===(n=t.value)||void 0===n?void 0:n.map(e=>hA(e)))&&void 0!==a?a:[fA].filter(e=>null!=e),uA(q(t.value?e[1]:e[0])),uA(J(t.value?e[2]:e[1])),q(t.value?e[3]:e[2])]},a,{...n,immediate:!0});var a,n}lA&&window.document,lA&&window.navigator,lA&&window.location;var gA=!1;Number.POSITIVE_INFINITY;var wA=Math.min,vA=Math.max,yA=Math.round,bA=Math.floor,AA=e=>({x:e,y:e}),kA={left:"right",right:"left",bottom:"top",top:"bottom"},_A={start:"end",end:"start"};function xA(e,t,a){return vA(e,wA(t,a))}function CA(e,t){return"function"==typeof e?e(t):e}function SA(e){return e.split("-")[0]}function IA(e){return e.split("-")[1]}function DA(e){return"x"===e?"y":"x"}function MA(e){return"y"===e?"height":"width"}var TA=/*#__PURE__*/new Set(["top","bottom"]);function LA(e){return TA.has(SA(e))?"y":"x"}function OA(e){return DA(LA(e))}function BA(e){return e.replace(/start|end/g,e=>_A[e])}var $A=["left","right"],PA=["right","left"],EA=["top","bottom"],RA=["bottom","top"];function FA(e){return e.replace(/left|right|bottom|top/g,e=>kA[e])}function NA(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function WA(e){const{x:t,y:a,width:n,height:l}=e;return{width:n,height:l,top:a,left:t,right:t+n,bottom:a+l,x:t,y:a}}function HA(e,t,a){let{reference:n,floating:l}=e;const s=LA(t),o=OA(t),i=MA(o),r=SA(t),u="y"===s,c=n.x+n.width/2-l.width/2,d=n.y+n.height/2-l.height/2,p=n[i]/2-l[i]/2;let f;switch(r){case"top":f={x:c,y:n.y-l.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-l.width,y:d};break;default:f={x:n.x,y:n.y}}switch(IA(t)){case"start":f[o]-=p*(a&&u?-1:1);break;case"end":f[o]+=p*(a&&u?-1:1)}return f}async function VA(e,t){var a;void 0===t&&(t={});const{x:n,y:l,platform:s,rects:o,elements:i,strategy:r}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=CA(t,e),h=NA(f),m=i[p?"floating"===d?"reference":"floating":d],g=WA(await s.getClippingRect({element:null==(a=await(null==s.isElement?void 0:s.isElement(m)))||a?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(i.floating)),boundary:u,rootBoundary:c,strategy:r})),w="floating"===d?{x:n,y:l,width:o.floating.width,height:o.floating.height}:o.reference,v=await(null==s.getOffsetParent?void 0:s.getOffsetParent(i.floating)),y=await(null==s.isElement?void 0:s.isElement(v))&&await(null==s.getScale?void 0:s.getScale(v))||{x:1,y:1},b=WA(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:w,offsetParent:v,strategy:r}):w);return{top:(g.top-b.top+h.top)/y.y,bottom:(b.bottom-g.bottom+h.bottom)/y.y,left:(g.left-b.left+h.left)/y.x,right:(b.right-g.right+h.right)/y.x}}var UA=/*#__PURE__*/new Set(["left","top"]);function YA(){return"undefined"!=typeof window}function KA(e){return QA(e)?(e.nodeName||"").toLowerCase():"#document"}function jA(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function GA(e){var t;return null==(t=(QA(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function QA(e){return!!YA()&&(e instanceof Node||e instanceof jA(e).Node)}function qA(e){return!!YA()&&(e instanceof Element||e instanceof jA(e).Element)}function ZA(e){return!!YA()&&(e instanceof HTMLElement||e instanceof jA(e).HTMLElement)}function JA(e){return!(!YA()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jA(e).ShadowRoot)}var zA=/*#__PURE__*/new Set(["inline","contents"]);function XA(e){const{overflow:t,overflowX:a,overflowY:n,display:l}=dk(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+a)&&!zA.has(l)}var ek=/*#__PURE__*/new Set(["table","td","th"]);function tk(e){return ek.has(KA(e))}var ak=[":popover-open",":modal"];function nk(e){return ak.some(t=>{try{return e.matches(t)}catch(a){return!1}})}var lk=["transform","translate","scale","rotate","perspective"],sk=["transform","translate","scale","rotate","perspective","filter"],ok=["paint","layout","strict","content"];function ik(e){const t=rk(),a=qA(e)?dk(e):e;return lk.some(e=>!!a[e]&&"none"!==a[e])||!!a.containerType&&"normal"!==a.containerType||!t&&!!a.backdropFilter&&"none"!==a.backdropFilter||!t&&!!a.filter&&"none"!==a.filter||sk.some(e=>(a.willChange||"").includes(e))||ok.some(e=>(a.contain||"").includes(e))}function rk(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}var uk=/*#__PURE__*/new Set(["html","body","#document"]);function ck(e){return uk.has(KA(e))}function dk(e){return jA(e).getComputedStyle(e)}function pk(e){return qA(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function fk(e){if("html"===KA(e))return e;const t=e.assignedSlot||e.parentNode||JA(e)&&e.host||GA(e);return JA(t)?t.host:t}function hk(e){const t=fk(e);return ck(t)?e.ownerDocument?e.ownerDocument.body:e.body:ZA(t)&&XA(t)?t:hk(t)}function mk(e,t,a){var n;void 0===t&&(t=[]),void 0===a&&(a=!0);const l=hk(e),s=l===(null==(n=e.ownerDocument)?void 0:n.body),o=jA(l);if(s){const e=gk(o);return t.concat(o,o.visualViewport||[],XA(l)?l:[],e&&a?mk(e):[])}return t.concat(l,mk(l,[],a))}function gk(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wk(e){const t=dk(e);let a=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const l=ZA(e),s=l?e.offsetWidth:a,o=l?e.offsetHeight:n,i=yA(a)!==s||yA(n)!==o;return i&&(a=s,n=o),{width:a,height:n,$:i}}function vk(e){return qA(e)?e:e.contextElement}function yk(e){const t=vk(e);if(!ZA(t))return AA(1);const a=t.getBoundingClientRect(),{width:n,height:l,$:s}=wk(t);let o=(s?yA(a.width):a.width)/n,i=(s?yA(a.height):a.height)/l;return o&&Number.isFinite(o)||(o=1),i&&Number.isFinite(i)||(i=1),{x:o,y:i}}var bk=/*#__PURE__*/AA(0);function Ak(e){const t=jA(e);return rk()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bk}function kk(e,t,a,n){void 0===t&&(t=!1),void 0===a&&(a=!1);const l=e.getBoundingClientRect(),s=vk(e);let o=AA(1);t&&(n?qA(n)&&(o=yk(n)):o=yk(e));const i=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==jA(e))&&t}(s,a,n)?Ak(s):AA(0);let r=(l.left+i.x)/o.x,u=(l.top+i.y)/o.y,c=l.width/o.x,d=l.height/o.y;if(s){const e=jA(s),t=n&&qA(n)?jA(n):n;let a=e,l=gk(a);for(;l&&n&&t!==a;){const e=yk(l),t=l.getBoundingClientRect(),n=dk(l),s=t.left+(l.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(l.clientTop+parseFloat(n.paddingTop))*e.y;r*=e.x,u*=e.y,c*=e.x,d*=e.y,r+=s,u+=o,a=jA(l),l=gk(a)}}return WA({width:c,height:d,x:r,y:u})}function _k(e,t){const a=pk(e).scrollLeft;return t?t.left+a:kk(GA(e)).left+a}function xk(e,t){const a=e.getBoundingClientRect();return{x:a.left+t.scrollLeft-_k(e,a),y:a.top+t.scrollTop}}var Ck=/*#__PURE__*/new Set(["absolute","fixed"]);function Sk(e,t,a){let n;if("viewport"===t)n=function(e,t){const a=jA(e),n=GA(e),l=a.visualViewport;let s=n.clientWidth,o=n.clientHeight,i=0,r=0;if(l){s=l.width,o=l.height;const e=rk();(!e||e&&"fixed"===t)&&(i=l.offsetLeft,r=l.offsetTop)}const u=_k(n);if(u<=0){const e=n.ownerDocument,t=e.body,a=getComputedStyle(t),l="CSS1Compat"===e.compatMode&&parseFloat(a.marginLeft)+parseFloat(a.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-l);o<=25&&(s-=o)}else u<=25&&(s+=u);return{width:s,height:o,x:i,y:r}}(e,a);else if("document"===t)n=function(e){const t=GA(e),a=pk(e),n=e.ownerDocument.body,l=vA(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=vA(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let o=-a.scrollLeft+_k(e);const i=-a.scrollTop;return"rtl"===dk(n).direction&&(o+=vA(t.clientWidth,n.clientWidth)-l),{width:l,height:s,x:o,y:i}}(GA(e));else if(qA(t))n=function(e,t){const a=kk(e,!0,"fixed"===t),n=a.top+e.clientTop,l=a.left+e.clientLeft,s=ZA(e)?yk(e):AA(1);return{width:e.clientWidth*s.x,height:e.clientHeight*s.y,x:l*s.x,y:n*s.y}}(t,a);else{const a=Ak(e);n={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return WA(n)}function Ik(e,t){const a=fk(e);return!(a===t||!qA(a)||ck(a))&&("fixed"===dk(a).position||Ik(a,t))}function Dk(e,t){const a=t.get(e);if(a)return a;let n=mk(e,[],!1).filter(e=>qA(e)&&"body"!==KA(e)),l=null;const s="fixed"===dk(e).position;let o=s?fk(e):e;for(;qA(o)&&!ck(o);){const t=dk(o),a=ik(o);a||"fixed"!==t.position||(l=null),(s?!a&&!l:!a&&"static"===t.position&&l&&Ck.has(l.position)||XA(o)&&!a&&Ik(e,o))?n=n.filter(e=>e!==o):l=t,o=fk(o)}return t.set(e,n),n}function Mk(e,t,a){const n=ZA(t),l=GA(t),s="fixed"===a,o=kk(e,!0,s,t);let i={scrollLeft:0,scrollTop:0};const r=AA(0);function u(){r.x=_k(l)}if(n||!n&&!s)if(("body"!==KA(t)||XA(l))&&(i=pk(t)),n){const e=kk(t,!0,s,t);r.x=e.x+t.clientLeft,r.y=e.y+t.clientTop}else l&&u();s&&!n&&l&&u();const c=!l||n||s?AA(0):xk(l,i);return{x:o.left+i.scrollLeft-r.x-c.x,y:o.top+i.scrollTop-r.y-c.y,width:o.width,height:o.height}}function Tk(e){return"static"===dk(e).position}function Lk(e,t){if(!ZA(e)||"fixed"===dk(e).position)return null;if(t)return t(e);let a=e.offsetParent;return GA(e)===a&&(a=a.ownerDocument.body),a}function Ok(e,t){const a=jA(e);if(nk(e))return a;if(!ZA(e)){let t=fk(e);for(;t&&!ck(t);){if(qA(t)&&!Tk(t))return t;t=fk(t)}return a}let n=Lk(e,t);for(;n&&tk(n)&&Tk(n);)n=Lk(n,t);return n&&ck(n)&&Tk(n)&&!ik(n)?a:n||function(e){let t=fk(e);for(;ZA(t)&&!ck(t);){if(ik(t))return t;if(nk(t))return null;t=fk(t)}return null}(e)||a}var Bk={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:a,offsetParent:n,strategy:l}=e;const s="fixed"===l,o=GA(n),i=!!t&&nk(t.floating);if(n===o||i&&s)return a;let r={scrollLeft:0,scrollTop:0},u=AA(1);const c=AA(0),d=ZA(n);if((d||!d&&!s)&&(("body"!==KA(n)||XA(o))&&(r=pk(n)),ZA(n))){const e=kk(n);u=yk(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}const p=!o||d||s?AA(0):xk(o,r);return{width:a.width*u.x,height:a.height*u.y,x:a.x*u.x-r.scrollLeft*u.x+c.x+p.x,y:a.y*u.y-r.scrollTop*u.y+c.y+p.y}},getDocumentElement:GA,getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:n,strategy:l}=e;const s=[..."clippingAncestors"===a?nk(t)?[]:Dk(t,this._c):[].concat(a),n],o=s[0],i=s.reduce((e,a)=>{const n=Sk(t,a,l);return e.top=vA(n.top,e.top),e.right=wA(n.right,e.right),e.bottom=wA(n.bottom,e.bottom),e.left=vA(n.left,e.left),e},Sk(t,o,l));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Ok,getElementRects:async function(e){const t=this.getOffsetParent||Ok,a=this.getDimensions,n=await a(e.floating);return{reference:Mk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:a}=wk(e);return{width:t,height:a}},getScale:yk,isElement:qA,isRTL:function(e){return"rtl"===dk(e).direction}};function $k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pk(e,t,a,n){void 0===n&&(n={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:o="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:r=!1}=n,u=vk(e),c=l||s?[...u?mk(u):[],...mk(t)]:[];c.forEach(e=>{l&&e.addEventListener("scroll",a,{passive:!0}),s&&e.addEventListener("resize",a)});const d=u&&i?function(e,t){let a,n=null;const l=GA(e);function s(){var e;clearTimeout(a),null==(e=n)||e.disconnect(),n=null}return function o(i,r){void 0===i&&(i=!1),void 0===r&&(r=1),s();const u=e.getBoundingClientRect(),{left:c,top:d,width:p,height:f}=u;if(i||t(),!p||!f)return;const h={rootMargin:-bA(d)+"px "+-bA(l.clientWidth-(c+p))+"px "+-bA(l.clientHeight-(d+f))+"px "+-bA(c)+"px",threshold:vA(0,wA(1,r))||1};let m=!0;function g(t){const n=t[0].intersectionRatio;if(n!==r){if(!m)return o();n?o(!1,n):a=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==n||$k(u,e.getBoundingClientRect())||o(),m=!1}try{n=new IntersectionObserver(g,{...h,root:l.ownerDocument})}catch(w){n=new IntersectionObserver(g,h)}n.observe(e)}(!0),s}(u,a):null;let p,f=-1,h=null;o&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),a()}),u&&!r&&h.observe(u),h.observe(t));let m=r?kk(e):null;return r&&function t(){const n=kk(e);m&&!$k(m,n)&&a(),m=n,p=requestAnimationFrame(t)}(),a(),()=>{var e;c.forEach(e=>{l&&e.removeEventListener("scroll",a),s&&e.removeEventListener("resize",a)}),d?.(),null==(e=h)||e.disconnect(),h=null,r&&cancelAnimationFrame(p)}}var Ek=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var a,n;const{x:l,y:s,placement:o,middlewareData:i}=t,r=await async function(e,t){const{placement:a,platform:n,elements:l}=e,s=await(null==n.isRTL?void 0:n.isRTL(l.floating)),o=SA(a),i=IA(a),r="y"===LA(a),u=UA.has(o)?-1:1,c=s&&r?-1:1,d=CA(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&"number"==typeof h&&(f="end"===i?-1*h:h),r?{x:f*c,y:p*u}:{x:p*u,y:f*c}}(t,e);return o===(null==(a=i.offset)?void 0:a.placement)&&null!=(n=i.arrow)&&n.alignmentOffset?{}:{x:l+r.x,y:s+r.y,data:{...r,placement:o}}}}},Rk=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:n,placement:l}=t,{mainAxis:s=!0,crossAxis:o=!1,limiter:i={fn:e=>{let{x:t,y:a}=e;return{x:t,y:a}}},...r}=CA(e,t),u={x:a,y:n},c=await VA(t,r),d=LA(SA(l)),p=DA(d);let f=u[p],h=u[d];if(s){const e="y"===p?"bottom":"right";f=xA(f+c["y"===p?"top":"left"],f,f-c[e])}if(o){const e="y"===d?"bottom":"right";h=xA(h+c["y"===d?"top":"left"],h,h-c[e])}const m=i.fn({...t,[p]:f,[d]:h});return{...m,data:{x:m.x-a,y:m.y-n,enabled:{[p]:s,[d]:o}}}}}},Fk=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var a,n;const{placement:l,middlewareData:s,rects:o,initialPlacement:i,platform:r,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=CA(e,t);if(null!=(a=s.arrow)&&a.alignmentOffset)return{};const w=SA(l),v=LA(i),y=SA(i)===i,b=await(null==r.isRTL?void 0:r.isRTL(u.floating)),A=p||(y||!m?[FA(i)]:function(e){const t=FA(e);return[BA(e),t,BA(t)]}(i)),k="none"!==h;!p&&k&&A.push(...function(e,t,a,n){const l=IA(e);let s=function(e,t,a){switch(e){case"top":case"bottom":return a?t?PA:$A:t?$A:PA;case"left":case"right":return t?EA:RA;default:return[]}}(SA(e),"start"===a,n);return l&&(s=s.map(e=>e+"-"+l),t&&(s=s.concat(s.map(BA)))),s}(i,m,h,b));const _=[i,...A],x=await VA(t,g),C=[];let S=(null==(n=s.flip)?void 0:n.overflows)||[];if(c&&C.push(x[w]),d){const e=function(e,t,a){void 0===a&&(a=!1);const n=IA(e),l=OA(e),s=MA(l);let o="x"===l?n===(a?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[s]>t.floating[s]&&(o=FA(o)),[o,FA(o)]}(l,o,b);C.push(x[e[0]],x[e[1]])}if(S=[...S,{placement:l,overflows:C}],!C.every(e=>e<=0)){var I,D;const e=((null==(I=s.flip)?void 0:I.index)||0)+1,t=_[e];if(t&&("alignment"!==d||v===LA(t)||S.every(e=>LA(e.placement)!==v||e.overflows[0]>0)))return{data:{index:e,overflows:S},reset:{placement:t}};let a=null==(D=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:D.placement;if(!a)switch(f){case"bestFit":{var M;const e=null==(M=S.filter(e=>{if(k){const t=LA(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:M[0];e&&(a=e);break}case"initialPlacement":a=i}if(l!==a)return{reset:{placement:a}}}return{}}}},Nk=/* @__PURE__ */ye({Vue:()=>e,Vue2:()=>{},del:()=>Uk,install:()=>Hk,isVue2:()=>!1,isVue3:()=>!0,set:()=>Vk});import*as Wk from"vue";function Hk(){}function Vk(e,t,a){return Array.isArray(e)?(e.length=Math.max(e.length,t),e.splice(t,1,a),a):(e[t]=a,a)}function Uk(e,t){Array.isArray(e)?e.splice(t,1):delete e[t]}function Yk(e){if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el;return QA(t)&&"#comment"===KA(t)?null:t}return e}function Kk(e){return"function"==typeof e?e():(0,Nk.unref)(e)}function jk(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gk(e,t){const a=jk(e);return Math.round(t*a)/a}be(Nk,Wk,"default"),Math.pow(10,8);var Qk=6048e5,qk=Symbol.for("constructDateFrom");function Zk(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&qk in e?e[qk](t):e instanceof Date?new e.constructor(t):new Date(t)}function Jk(e,t){return Zk(t||e,e)}function zk(e,t,a){const n=Jk(e,a?.in);return isNaN(t)?Zk(a?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function Xk(e,t,a){const n=Jk(e,a?.in);if(isNaN(t))return Zk(a?.in||e,NaN);if(!t)return n;const l=n.getDate(),s=Zk(a?.in||e,n.getTime());return s.setMonth(n.getMonth()+t+1,0),l>=s.getDate()?s:(n.setFullYear(s.getFullYear(),s.getMonth(),l),n)}function e_(e,t,a){const{years:n=0,months:l=0,weeks:s=0,days:o=0,hours:i=0,minutes:r=0,seconds:u=0}=t,c=Jk(e,a?.in),d=l||n?Xk(c,l+12*n):c,p=o||s?zk(d,o+7*s):d,f=1e3*(u+60*(r+60*i));return Zk(a?.in||e,+p+f)}var t_={};function a_(){return t_}function n_(e,t){const a=a_(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=Jk(e,t?.in),s=l.getDay(),o=(s<n?7:0)+s-n;return l.setDate(l.getDate()-o),l.setHours(0,0,0,0),l}function l_(e,t){return n_(e,{...t,weekStartsOn:1})}function s_(e,t){const a=Jk(e,t?.in),n=a.getFullYear(),l=Zk(a,0);l.setFullYear(n+1,0,4),l.setHours(0,0,0,0);const s=l_(l),o=Zk(a,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const i=l_(o);return a.getTime()>=s.getTime()?n+1:a.getTime()>=i.getTime()?n:n-1}function o_(e){const t=Jk(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function i_(e,...t){const a=Zk.bind(null,e||t.find(e=>"object"==typeof e));return t.map(a)}function r_(e,t){const a=Jk(e,t?.in);return a.setHours(0,0,0,0),a}function u_(e,t,a){const[n,l]=i_(a?.in,e,t),s=r_(n),o=r_(l),i=+s-o_(s),r=+o-o_(o);return Math.round((i-r)/864e5)}function c_(e,t,a){return Xk(e,3*t,a)}function d_(e,t,a){return Xk(e,12*t,a)}function p_(e,t){const a=+Jk(e)-+Jk(t);return a<0?-1:a>0?1:a}function f_(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function h_(e){return!(!f_(e)&&"number"!=typeof e||isNaN(+Jk(e)))}function m_(e,t){const a=Jk(e,t?.in);return Math.trunc(a.getMonth()/3)+1}function g_(e,t){const[a,n]=i_(e,t.start,t.end);return{start:a,end:n}}function w_(e,t){const{start:a,end:n}=g_(t?.in,e);let l=+a>+n;const s=l?+a:+n,o=l?n:a;o.setHours(0,0,0,0);let i=t?.step??1;if(!i)return[];i<0&&(i=-i,l=!l);const r=[];for(;+o<=s;)r.push(Zk(a,o)),o.setDate(o.getDate()+i),o.setHours(0,0,0,0);return l?r.reverse():r}function v_(e,t){const a=Jk(e,t?.in),n=a.getMonth(),l=n-n%3;return a.setMonth(l,1),a.setHours(0,0,0,0),a}function y_(e,t){const a=Jk(e,t?.in),n=a.getFullYear();return a.setFullYear(n+1,0,0),a.setHours(23,59,59,999),a}function b_(e,t){const a=Jk(e,t?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function A_(e,t){const a=a_(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0,l=Jk(e,t?.in),s=l.getDay(),o=6+(s<n?-7:0)-(s-n);return l.setDate(l.getDate()+o),l.setHours(23,59,59,999),l}function k_(e,t){const a=Jk(e,t?.in),n=a.getMonth(),l=n-n%3+3;return a.setMonth(l,0),a.setHours(23,59,59,999),a}var __={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function x_(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var C_={date:x_({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:x_({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:x_({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},S_={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function I_(e){return(t,a)=>{let n;if("formatting"===(a?.context?String(a.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,l=a?.width?String(a.width):t;n=e.formattingValues[l]||e.formattingValues[t]}else{const t=e.defaultWidth,l=a?.width?String(a.width):e.defaultWidth;n=e.values[l]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function D_(e){return(t,a={})=>{const n=a.width,l=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(l);if(!s)return null;const o=s[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],r=Array.isArray(i)?function(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}(i,e=>e.test(o)):function(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}(i,e=>e.test(o));let u;return u=e.valueCallback?e.valueCallback(r):r,u=a.valueCallback?a.valueCallback(u):u,{value:u,rest:t.slice(o.length)}}}var M_,T_={code:"en-US",formatDistance:(e,t,a)=>{let n;const l=__[e];return n="string"==typeof l?l:1===t?l.one:l.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n},formatLong:C_,formatRelative:(e,t,a,n)=>S_[e],localize:{ordinalNumber:(e,t)=>{const a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:I_({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:I_({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:I_({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:I_({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:I_({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(M_={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const a=e.match(M_.matchPattern);if(!a)return null;const n=a[0],l=e.match(M_.parsePattern);if(!l)return null;let s=M_.valueCallback?M_.valueCallback(l[0]):l[0];return s=t.valueCallback?t.valueCallback(s):s,{value:s,rest:e.slice(n.length)}}),era:D_({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:D_({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:D_({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:D_({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:D_({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function L_(e,t){const a=Jk(e,t?.in),n=+l_(a)-+function(e,t){const a=s_(e,t),n=Zk(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),l_(n)}(a);return Math.round(n/Qk)+1}function O_(e,t){const a=Jk(e,t?.in),n=a.getFullYear(),l=a_(),s=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,o=Zk(t?.in||e,0);o.setFullYear(n+1,0,s),o.setHours(0,0,0,0);const i=n_(o,t),r=Zk(t?.in||e,0);r.setFullYear(n,0,s),r.setHours(0,0,0,0);const u=n_(r,t);return+a>=+i?n+1:+a>=+u?n:n-1}function B_(e,t){const a=Jk(e,t?.in),n=+n_(a,t)-+function(e,t){const a=a_(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=O_(e,t),s=Zk(t?.in||e,0);return s.setFullYear(l,0,n),s.setHours(0,0,0,0),n_(s,t)}(a,t);return Math.round(n/Qk)+1}function $_(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}var P_={y(e,t){const a=e.getFullYear(),n=a>0?a:1-a;return $_("yy"===t?n%100:n,t.length)},M(e,t){const a=e.getMonth();return"M"===t?String(a+1):$_(a+1,2)},d:(e,t)=>$_(e.getDate(),t.length),a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];default:return"am"===a?"a.m.":"p.m."}},h:(e,t)=>$_(e.getHours()%12||12,t.length),H:(e,t)=>$_(e.getHours(),t.length),m:(e,t)=>$_(e.getMinutes(),t.length),s:(e,t)=>$_(e.getSeconds(),t.length),S(e,t){const a=t.length,n=e.getMilliseconds();return $_(Math.trunc(n*Math.pow(10,a-3)),t.length)}},E_={G:function(e,t,a){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(n,{width:"abbreviated"});case"GGGGG":return a.era(n,{width:"narrow"});default:return a.era(n,{width:"wide"})}},y:function(e,t,a){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return a.ordinalNumber(n,{unit:"year"})}return P_.y(e,t)},Y:function(e,t,a,n){const l=O_(e,n),s=l>0?l:1-l;return"YY"===t?$_(s%100,2):"Yo"===t?a.ordinalNumber(s,{unit:"year"}):$_(s,t.length)},R:function(e,t){return $_(s_(e),t.length)},u:function(e,t){return $_(e.getFullYear(),t.length)},Q:function(e,t,a){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return $_(n,2);case"Qo":return a.ordinalNumber(n,{unit:"quarter"});case"QQQ":return a.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(n,{width:"narrow",context:"formatting"});default:return a.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,a){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return $_(n,2);case"qo":return a.ordinalNumber(n,{unit:"quarter"});case"qqq":return a.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(n,{width:"narrow",context:"standalone"});default:return a.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,a){const n=e.getMonth();switch(t){case"M":case"MM":return P_.M(e,t);case"Mo":return a.ordinalNumber(n+1,{unit:"month"});case"MMM":return a.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(n,{width:"narrow",context:"formatting"});default:return a.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,a){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return $_(n+1,2);case"Lo":return a.ordinalNumber(n+1,{unit:"month"});case"LLL":return a.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(n,{width:"narrow",context:"standalone"});default:return a.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,a,n){const l=B_(e,n);return"wo"===t?a.ordinalNumber(l,{unit:"week"}):$_(l,t.length)},I:function(e,t,a){const n=L_(e);return"Io"===t?a.ordinalNumber(n,{unit:"week"}):$_(n,t.length)},d:function(e,t,a){return"do"===t?a.ordinalNumber(e.getDate(),{unit:"date"}):P_.d(e,t)},D:function(e,t,a){const n=function(e){const t=Jk(e,void 0);return u_(t,b_(t))+1}(e);return"Do"===t?a.ordinalNumber(n,{unit:"dayOfYear"}):$_(n,t.length)},E:function(e,t,a){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,a,n){const l=e.getDay(),s=(l-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return $_(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(l,{width:"short",context:"formatting"});default:return a.day(l,{width:"wide",context:"formatting"})}},c:function(e,t,a,n){const l=e.getDay(),s=(l-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return $_(s,t.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(l,{width:"narrow",context:"standalone"});case"cccccc":return a.day(l,{width:"short",context:"standalone"});default:return a.day(l,{width:"wide",context:"standalone"})}},i:function(e,t,a){const n=e.getDay(),l=0===n?7:n;switch(t){case"i":return String(l);case"ii":return $_(l,t.length);case"io":return a.ordinalNumber(l,{unit:"day"});case"iii":return a.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(n,{width:"short",context:"formatting"});default:return a.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,a){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(n,{width:"narrow",context:"formatting"});default:return a.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,a){const n=e.getHours();let l;switch(l=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(l,{width:"narrow",context:"formatting"});default:return a.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,t,a){const n=e.getHours();let l;switch(l=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return a.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(l,{width:"narrow",context:"formatting"});default:return a.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,t,a){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),a.ordinalNumber(t,{unit:"hour"})}return P_.h(e,t)},H:function(e,t,a){return"Ho"===t?a.ordinalNumber(e.getHours(),{unit:"hour"}):P_.H(e,t)},K:function(e,t,a){const n=e.getHours()%12;return"Ko"===t?a.ordinalNumber(n,{unit:"hour"}):$_(n,t.length)},k:function(e,t,a){let n=e.getHours();return 0===n&&(n=24),"ko"===t?a.ordinalNumber(n,{unit:"hour"}):$_(n,t.length)},m:function(e,t,a){return"mo"===t?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):P_.m(e,t)},s:function(e,t,a){return"so"===t?a.ordinalNumber(e.getSeconds(),{unit:"second"}):P_.s(e,t)},S:function(e,t){return P_.S(e,t)},X:function(e,t,a){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return F_(n);case"XXXX":case"XX":return N_(n);default:return N_(n,":")}},x:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"x":return F_(n);case"xxxx":case"xx":return N_(n);default:return N_(n,":")}},O:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+R_(n,":");default:return"GMT"+N_(n,":")}},z:function(e,t,a){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+R_(n,":");default:return"GMT"+N_(n,":")}},t:function(e,t,a){return $_(Math.trunc(+e/1e3),t.length)},T:function(e,t,a){return $_(+e,t.length)}};function R_(e,t=""){const a=e>0?"-":"+",n=Math.abs(e),l=Math.trunc(n/60),s=n%60;return 0===s?a+String(l):a+String(l)+t+$_(s,2)}function F_(e,t){return e%60==0?(e>0?"-":"+")+$_(Math.abs(e)/60,2):N_(e,t)}function N_(e,t=""){const a=e>0?"-":"+",n=Math.abs(e);return a+$_(Math.trunc(n/60),2)+t+$_(n%60,2)}var W_=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},H_=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},V_={p:H_,P:(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],n=a[1],l=a[2];if(!l)return W_(e,t);let s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"})}return s.replace("{{date}}",W_(n,t)).replace("{{time}}",H_(l,t))}},U_=/^D+$/,Y_=/^Y+$/,K_=["D","DD","YY","YYYY"];function j_(e){return U_.test(e)}function G_(e){return Y_.test(e)}function Q_(e,t,a){const n=function(e,t,a){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,a);if(K_.includes(e))throw new RangeError(n)}var q_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Z_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,J_=/^'([^]*?)'?$/,z_=/''/g,X_=/[a-zA-Z]/;function ex(e,t,a){const n=a_(),l=a?.locale??n.locale??T_,s=a?.firstWeekContainsDate??a?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Jk(e,a?.in);if(!h_(i))throw new RangeError("Invalid time value");let r=t.match(Z_).map(e=>{const t=e[0];return"p"===t||"P"===t?(0,V_[t])(e,l.formatLong):e}).join("").match(q_).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:tx(e)};if(E_[t])return{isToken:!0,value:e};if(t.match(X_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});l.localize.preprocessor&&(r=l.localize.preprocessor(i,r));const u={firstWeekContainsDate:s,weekStartsOn:o,locale:l};return r.map(n=>{if(!n.isToken)return n.value;const s=n.value;return(!a?.useAdditionalWeekYearTokens&&G_(s)||!a?.useAdditionalDayOfYearTokens&&j_(s))&&Q_(s,t,String(e)),(0,E_[s[0]])(i,s,l.localize,u)}).join("")}function tx(e){const t=e.match(J_);return t?t[1].replace(z_,"'"):e}function ax(e,t){return Jk(e,t?.in).getHours()}function nx(e,t){return Jk(e,t?.in).getMinutes()}function lx(e,t){return Jk(e,t?.in).getMonth()}function sx(e){return Jk(e).getSeconds()}function ox(e,t){return Jk(e,t?.in).getFullYear()}function ix(e,t){return+Jk(e)>+Jk(t)}function rx(e,t){return+Jk(e)<+Jk(t)}function ux(e,t){return+Jk(e)===+Jk(t)}var cx=class{subPriority=0;validate(e,t){return!0}},dx=class extends cx{constructor(e,t,a,n,l){super(),this.value=e,this.validateValue=t,this.setValue=a,this.priority=n,l&&(this.subPriority=l)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,a){return this.setValue(e,t,this.value,a)}},px=class extends cx{priority=10;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>Zk(t,e))}set(e,t){return t.timestampIsSet?e:Zk(e,function(e,t){const a=function(e){return"function"==typeof e&&e.prototype?.constructor===e}(t)?new t(0):Zk(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}(e,this.context))}},fx=class{run(e,t,a,n){const l=this.parse(e,t,a,n);return l?{setter:new dx(l.value,this.validate,this.set,this.priority,this.subPriority),rest:l.rest}:null}validate(e,t,a){return!0}},hx=/^(1[0-2]|0?\d)/,mx=/^(3[0-1]|[0-2]?\d)/,gx=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,wx=/^(5[0-3]|[0-4]?\d)/,vx=/^(2[0-3]|[0-1]?\d)/,yx=/^(2[0-4]|[0-1]?\d)/,bx=/^(1[0-1]|0?\d)/,Ax=/^(1[0-2]|0?\d)/,kx=/^[0-5]?\d/,_x=/^[0-5]?\d/,xx=/^\d/,Cx=/^\d{1,2}/,Sx=/^\d{1,3}/,Ix=/^\d{1,4}/,Dx=/^-?\d+/,Mx=/^-?\d/,Tx=/^-?\d{1,2}/,Lx=/^-?\d{1,3}/,Ox=/^-?\d{1,4}/,Bx=/^([+-])(\d{2})(\d{2})?|Z/,$x=/^([+-])(\d{2})(\d{2})|Z/,Px=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ex=/^([+-])(\d{2}):(\d{2})|Z/,Rx=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Fx(e,t){return e?{value:t(e.value),rest:e.rest}:e}function Nx(e,t){const a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function Wx(e,t){const a=t.match(e);return a?"Z"===a[0]?{value:0,rest:t.slice(1)}:{value:("+"===a[1]?1:-1)*(36e5*(a[2]?parseInt(a[2],10):0)+6e4*(a[3]?parseInt(a[3],10):0)+1e3*(a[5]?parseInt(a[5],10):0)),rest:t.slice(a[0].length)}:null}function Hx(e){return Nx(Dx,e)}function Vx(e,t){switch(e){case 1:return Nx(xx,t);case 2:return Nx(Cx,t);case 3:return Nx(Sx,t);case 4:return Nx(Ix,t);default:return Nx(new RegExp("^\\d{1,"+e+"}"),t)}}function Ux(e,t){switch(e){case 1:return Nx(Mx,t);case 2:return Nx(Tx,t);case 3:return Nx(Lx,t);case 4:return Nx(Ox,t);default:return Nx(new RegExp("^-?\\d{1,"+e+"}"),t)}}function Yx(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Kx(e,t){const a=t>0,n=a?t:1-t;let l;if(n<=50)l=e||100;else{const t=n+50;l=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return a?l:1-l}function jx(e){return e%400==0||e%4==0&&e%100!=0}var Gx=[31,28,31,30,31,30,31,31,30,31,30,31],Qx=[31,29,31,30,31,30,31,31,30,31,30,31];function qx(e,t,a){const n=a_(),l=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=Jk(e,a?.in),o=s.getDay(),i=7-l;return zk(s,t<0||t>6?t-(o+i)%7:((t%7+7)%7+i)%7-(o+i)%7,a)}var Zx={G:new class extends fx{priority=140;parse(e,t,a){switch(t){case"G":case"GG":case"GGG":return a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"});case"GGGGG":return a.era(e,{width:"narrow"});default:return a.era(e,{width:"wide"})||a.era(e,{width:"abbreviated"})||a.era(e,{width:"narrow"})}}set(e,t,a){return t.era=a,e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]},y:new class extends fx{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,a){const n=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return Fx(Vx(4,e),n);case"yo":return Fx(a.ordinalNumber(e,{unit:"year"}),n);default:return Fx(Vx(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a){const n=e.getFullYear();if(a.isTwoDigitYear){const t=Kx(a.year,n);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const l="era"in t&&1!==t.era?1-a.year:a.year;return e.setFullYear(l,0,1),e.setHours(0,0,0,0),e}},Y:new class extends fx{priority=130;parse(e,t,a){const n=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return Fx(Vx(4,e),n);case"Yo":return Fx(a.ordinalNumber(e,{unit:"year"}),n);default:return Fx(Vx(t.length,e),n)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,a,n){const l=O_(e,n);if(a.isTwoDigitYear){const t=Kx(a.year,l);return e.setFullYear(t,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),n_(e,n)}const s="era"in t&&1!==t.era?1-a.year:a.year;return e.setFullYear(s,0,n.firstWeekContainsDate),e.setHours(0,0,0,0),n_(e,n)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:new class extends fx{priority=130;parse(e,t){return Ux("R"===t?4:t.length,e)}set(e,t,a){const n=Zk(e,0);return n.setFullYear(a,0,4),n.setHours(0,0,0,0),l_(n)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:new class extends fx{priority=130;parse(e,t){return Ux("u"===t?4:t.length,e)}set(e,t,a){return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]},Q:new class extends fx{priority=120;parse(e,t,a){switch(t){case"Q":case"QQ":return Vx(t.length,e);case"Qo":return a.ordinalNumber(e,{unit:"quarter"});case"QQQ":return a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(e,{width:"narrow",context:"formatting"});default:return a.quarter(e,{width:"wide",context:"formatting"})||a.quarter(e,{width:"abbreviated",context:"formatting"})||a.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth(3*(a-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:new class extends fx{priority=120;parse(e,t,a){switch(t){case"q":case"qq":return Vx(t.length,e);case"qo":return a.ordinalNumber(e,{unit:"quarter"});case"qqq":return a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(e,{width:"narrow",context:"standalone"});default:return a.quarter(e,{width:"wide",context:"standalone"})||a.quarter(e,{width:"abbreviated",context:"standalone"})||a.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,a){return e.setMonth(3*(a-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:new class extends fx{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,a){const n=e=>e-1;switch(t){case"M":return Fx(Nx(hx,e),n);case"MM":return Fx(Vx(2,e),n);case"Mo":return Fx(a.ordinalNumber(e,{unit:"month"}),n);case"MMM":return a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(e,{width:"narrow",context:"formatting"});default:return a.month(e,{width:"wide",context:"formatting"})||a.month(e,{width:"abbreviated",context:"formatting"})||a.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}},L:new class extends fx{priority=110;parse(e,t,a){const n=e=>e-1;switch(t){case"L":return Fx(Nx(hx,e),n);case"LL":return Fx(Vx(2,e),n);case"Lo":return Fx(a.ordinalNumber(e,{unit:"month"}),n);case"LLL":return a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(e,{width:"narrow",context:"standalone"});default:return a.month(e,{width:"wide",context:"standalone"})||a.month(e,{width:"abbreviated",context:"standalone"})||a.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.setMonth(a,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:new class extends fx{priority=100;parse(e,t,a){switch(t){case"w":return Nx(wx,e);case"wo":return a.ordinalNumber(e,{unit:"week"});default:return Vx(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a,n){return n_(function(e,t,a){const n=Jk(e,a?.in),l=B_(n,a)-t;return n.setDate(n.getDate()-7*l),Jk(n,a?.in)}(e,a,n),n)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:new class extends fx{priority=100;parse(e,t,a){switch(t){case"I":return Nx(wx,e);case"Io":return a.ordinalNumber(e,{unit:"week"});default:return Vx(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,a){return l_(function(e,t,a){const n=Jk(e,a?.in),l=L_(n,a)-t;return n.setDate(n.getDate()-7*l),n}(e,a))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:new class extends fx{priority=90;subPriority=1;parse(e,t,a){switch(t){case"d":return Nx(mx,e);case"do":return a.ordinalNumber(e,{unit:"date"});default:return Vx(t.length,e)}}validate(e,t){const a=jx(e.getFullYear()),n=e.getMonth();return a?t>=1&&t<=Qx[n]:t>=1&&t<=Gx[n]}set(e,t,a){return e.setDate(a),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:new class extends fx{priority=90;subpriority=1;parse(e,t,a){switch(t){case"D":case"DD":return Nx(gx,e);case"Do":return a.ordinalNumber(e,{unit:"date"});default:return Vx(t.length,e)}}validate(e,t){return jx(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,a){return e.setMonth(0,a),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:new class extends fx{priority=90;parse(e,t,a){switch(t){case"E":case"EE":case"EEE":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,n){return(e=qx(e,a,n)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]},e:new class extends fx{priority=90;parse(e,t,a,n){const l=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return Fx(Vx(t.length,e),l);case"eo":return Fx(a.ordinalNumber(e,{unit:"day"}),l);case"eee":return a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});case"eeeee":return a.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"});default:return a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,n){return(e=qx(e,a,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:new class extends fx{priority=90;parse(e,t,a,n){const l=e=>{const t=7*Math.floor((e-1)/7);return(e+n.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return Fx(Vx(t.length,e),l);case"co":return Fx(a.ordinalNumber(e,{unit:"day"}),l);case"ccc":return a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});case"ccccc":return a.day(e,{width:"narrow",context:"standalone"});case"cccccc":return a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"});default:return a.day(e,{width:"wide",context:"standalone"})||a.day(e,{width:"abbreviated",context:"standalone"})||a.day(e,{width:"short",context:"standalone"})||a.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,a,n){return(e=qx(e,a,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:new class extends fx{priority=90;parse(e,t,a){const n=e=>0===e?7:e;switch(t){case"i":case"ii":return Vx(t.length,e);case"io":return a.ordinalNumber(e,{unit:"day"});case"iii":return Fx(a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),n);case"iiiii":return Fx(a.day(e,{width:"narrow",context:"formatting"}),n);case"iiiiii":return Fx(a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),n);default:return Fx(a.day(e,{width:"wide",context:"formatting"})||a.day(e,{width:"abbreviated",context:"formatting"})||a.day(e,{width:"short",context:"formatting"})||a.day(e,{width:"narrow",context:"formatting"}),n)}}validate(e,t){return t>=1&&t<=7}set(e,t,a){return(e=function(e,t,a){const n=Jk(e,a?.in);return zk(n,t-function(e,t){const a=Jk(e,t?.in).getDay();return 0===a?7:a}(n,a),a)}(e,a)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:new class extends fx{priority=80;parse(e,t,a){switch(t){case"a":case"aa":case"aaa":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(e,{width:"narrow",context:"formatting"});default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Yx(a),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]},b:new class extends fx{priority=80;parse(e,t,a){switch(t){case"b":case"bb":case"bbb":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(e,{width:"narrow",context:"formatting"});default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Yx(a),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]},B:new class extends fx{priority=80;parse(e,t,a){switch(t){case"B":case"BB":case"BBB":return a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(e,{width:"narrow",context:"formatting"});default:return a.dayPeriod(e,{width:"wide",context:"formatting"})||a.dayPeriod(e,{width:"abbreviated",context:"formatting"})||a.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,a){return e.setHours(Yx(a),0,0,0),e}incompatibleTokens=["a","b","t","T"]},h:new class extends fx{priority=70;parse(e,t,a){switch(t){case"h":return Nx(Ax,e);case"ho":return a.ordinalNumber(e,{unit:"hour"});default:return Vx(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,a){const n=e.getHours()>=12;return n&&a<12?e.setHours(a+12,0,0,0):n||12!==a?e.setHours(a,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]},H:new class extends fx{priority=70;parse(e,t,a){switch(t){case"H":return Nx(vx,e);case"Ho":return a.ordinalNumber(e,{unit:"hour"});default:return Vx(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,a){return e.setHours(a,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]},K:new class extends fx{priority=70;parse(e,t,a){switch(t){case"K":return Nx(bx,e);case"Ko":return a.ordinalNumber(e,{unit:"hour"});default:return Vx(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,a){return e.getHours()>=12&&a<12?e.setHours(a+12,0,0,0):e.setHours(a,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]},k:new class extends fx{priority=70;parse(e,t,a){switch(t){case"k":return Nx(yx,e);case"ko":return a.ordinalNumber(e,{unit:"hour"});default:return Vx(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,a){const n=a<=24?a%24:a;return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]},m:new class extends fx{priority=60;parse(e,t,a){switch(t){case"m":return Nx(kx,e);case"mo":return a.ordinalNumber(e,{unit:"minute"});default:return Vx(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setMinutes(a,0,0),e}incompatibleTokens=["t","T"]},s:new class extends fx{priority=50;parse(e,t,a){switch(t){case"s":return Nx(_x,e);case"so":return a.ordinalNumber(e,{unit:"second"});default:return Vx(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,a){return e.setSeconds(a,0),e}incompatibleTokens=["t","T"]},S:new class extends fx{priority=30;parse(e,t){return Fx(Vx(t.length,e),e=>Math.trunc(e*Math.pow(10,3-t.length)))}set(e,t,a){return e.setMilliseconds(a),e}incompatibleTokens=["t","T"]},X:new class extends fx{priority=10;parse(e,t){switch(t){case"X":return Wx(Bx,e);case"XX":return Wx($x,e);case"XXXX":return Wx(Px,e);case"XXXXX":return Wx(Rx,e);default:return Wx(Ex,e)}}set(e,t,a){return t.timestampIsSet?e:Zk(e,e.getTime()-o_(e)-a)}incompatibleTokens=["t","T","x"]},x:new class extends fx{priority=10;parse(e,t){switch(t){case"x":return Wx(Bx,e);case"xx":return Wx($x,e);case"xxxx":return Wx(Px,e);case"xxxxx":return Wx(Rx,e);default:return Wx(Ex,e)}}set(e,t,a){return t.timestampIsSet?e:Zk(e,e.getTime()-o_(e)-a)}incompatibleTokens=["t","T","X"]},t:new class extends fx{priority=40;parse(e){return Hx(e)}set(e,t,a){return[Zk(e,1e3*a),{timestampIsSet:!0}]}incompatibleTokens="*"},T:new class extends fx{priority=20;parse(e){return Hx(e)}set(e,t,a){return[Zk(e,a),{timestampIsSet:!0}]}incompatibleTokens="*"}},Jx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zx=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Xx=/^'([^]*?)'?$/,eC=/''/g,tC=/\S/,aC=/[a-zA-Z]/;function nC(e,t,a,n){const l=()=>Zk(n?.in||a,NaN),s=Object.assign({},a_()),o=n?.locale??s.locale??T_,i=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,r=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(!t)return e?l():Jk(a,n?.in);const u={firstWeekContainsDate:i,weekStartsOn:r,locale:o},c=[new px(n?.in,a)],d=t.match(zx).map(e=>{const t=e[0];return t in V_?(0,V_[t])(e,o.formatLong):e}).join("").match(Jx),p=[];for(let g of d){!n?.useAdditionalWeekYearTokens&&G_(g)&&Q_(g,t,e),!n?.useAdditionalDayOfYearTokens&&j_(g)&&Q_(g,t,e);const a=g[0],s=Zx[a];if(s){const{incompatibleTokens:t}=s;if(Array.isArray(t)){const e=p.find(e=>t.includes(e.token)||e.token===a);if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${g}\` at the same time`)}else if("*"===s.incompatibleTokens&&p.length>0)throw new RangeError(`The format string mustn't contain \`${g}\` and any other token at the same time`);p.push({token:a,fullToken:g});const n=s.run(e,g,o.match,u);if(!n)return l();c.push(n.setter),e=n.rest}else{if(a.match(aC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if("''"===g?g="'":"'"===a&&(g=lC(g)),0!==e.indexOf(g))return l();e=e.slice(g.length)}}if(e.length>0&&tC.test(e))return l();const f=c.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,a)=>a.indexOf(e)===t).map(e=>c.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]);let h=Jk(a,n?.in);if(isNaN(+h))return l();const m={};for(const g of f){if(!g.validate(h,u))return l();const e=g.set(h,m,u);Array.isArray(e)?(h=e[0],Object.assign(m,e[1])):h=e}return h}function lC(e){return e.match(Xx)[1].replace(eC,"'")}function sC(e,t,a){const[n,l]=i_(a?.in,e,t);return+v_(n)===+v_(l)}function oC(e,t,a){return zk(e,-t,a)}function iC(e,t,a){const n=Jk(e,a?.in),l=n.getFullYear(),s=n.getDate(),o=Zk(a?.in||e,0);o.setFullYear(l,t,15),o.setHours(0,0,0,0);const i=function(e){const t=Jk(e,void 0),a=t.getFullYear(),n=t.getMonth(),l=Zk(t,0);return l.setFullYear(a,n+1,0),l.setHours(0,0,0,0),l.getDate()}(o);return n.setMonth(t,Math.min(s,i)),n}function rC(e,t,a){let n=Jk(e,a?.in);return isNaN(+n)?Zk(a?.in||e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=iC(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)}function uC(e,t,a){const n=Jk(e,a?.in);return isNaN(+n)?Zk(a?.in||e,NaN):(n.setFullYear(t),n)}function cC(e,t,a){return Xk(e,-t,a)}function dC(e,t,a){return d_(e,-t,a)}var pC={},fC={};function hC(e,t){try{const a=(pC[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];return a in fC?fC[a]:gC(a,a.split(":"))}catch{if(e in fC)return fC[e];const t=e?.match(mC);return t?gC(e,t.slice(1)):NaN}}var mC=/([+-]\d\d):?(\d\d)?/;function gC(e,t){const a=+(t[0]||0),n=+(t[1]||0),l=+(t[2]||0)/60;return fC[e]=60*a+n>0?60*a+n+l:60*a-n-l}var wC=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=/* @__PURE__ */new Date,isNaN(hC(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),bC(this),yC(this)):this.setTime(Date.now())}static tz(t,...a){return a.length?new e(...a,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){const e=-hC(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),yC(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},vC=/^(get|set)(?!UTC)/;function yC(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(60*-hC(e.timeZone,e)))}function bC(e){const t=hC(e.timeZone,e),a=t>0?Math.floor(t):Math.ceil(t),n=/* @__PURE__ */new Date(+e);n.setUTCHours(n.getUTCHours()-1);const l=-/* @__PURE__ */new Date(+e).getTimezoneOffset(),s=l- -/* @__PURE__ */new Date(+n).getTimezoneOffset(),o=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();s&&o&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+s);const i=l-a;i&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+i);const r=/* @__PURE__ */new Date(+e);r.setUTCSeconds(0);const u=l>0?r.getSeconds():(r.getSeconds()-60)%60,c=Math.round(-60*hC(e.timeZone,e))%60;(c||u)&&(e.internal.setUTCSeconds(e.internal.getUTCSeconds()+c),Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+c+u));const d=hC(e.timeZone,e),p=d>0?Math.floor(d):Math.ceil(d),f=-/* @__PURE__ */new Date(+e).getTimezoneOffset()-p-i;if(p!==a&&f){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+f);const t=hC(e.timeZone,e),a=p-(t>0?Math.floor(t):Math.ceil(t));a&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+a),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a))}}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!vC.test(e))return;const t=e.replace(vC,"$1UTC");wC.prototype[t]&&(e.startsWith("get")?wC.prototype[e]=function(){return this.internal[t]()}:(wC.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),bC(e),+this},wC.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),yC(this),+this}))});var AC=class e extends wC{static tz(t,...a){return a.length?new e(...a,t):new e(Date.now(),t)}toISOString(){const[e,t,a]=this.tzComponents(),n=`${e}${t}:${a}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,a,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${a} ${t} ${n}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,a,n]=this.tzComponents();return`${e} GMT${t}${a}${n} (${function(e,t,a="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:a}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(t){return new e(+this,t)}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}};function kC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M29.333 8c0-2.208-1.792-4-4-4h-18.667c-2.208 0-4 1.792-4 4v18.667c0 2.208 1.792 4 4 4h18.667c2.208 0 4-1.792 4-4v-18.667zM26.667 8v18.667c0 0.736-0.597 1.333-1.333 1.333 0 0-18.667 0-18.667 0-0.736 0-1.333-0.597-1.333-1.333 0 0 0-18.667 0-18.667 0-0.736 0.597-1.333 1.333-1.333 0 0 18.667 0 18.667 0 0.736 0 1.333 0.597 1.333 1.333z"}),y("path",{d:"M20 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),y("path",{d:"M9.333 2.667v5.333c0 0.736 0.597 1.333 1.333 1.333s1.333-0.597 1.333-1.333v-5.333c0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"}),y("path",{d:"M4 14.667h24c0.736 0 1.333-0.597 1.333-1.333s-0.597-1.333-1.333-1.333h-24c-0.736 0-1.333 0.597-1.333 1.333s0.597 1.333 1.333 1.333z"})])}function _C(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M23.057 7.057l-16 16c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l16-16c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0z"}),y("path",{d:"M7.057 8.943l16 16c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885l-16-16c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}function xC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M20.943 23.057l-7.057-7.057c0 0 7.057-7.057 7.057-7.057 0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-8 8c-0.521 0.521-0.521 1.365 0 1.885l8 8c0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function CC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M12.943 24.943l8-8c0.521-0.521 0.521-1.365 0-1.885l-8-8c-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885l7.057 7.057c0 0-7.057 7.057-7.057 7.057-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0z"})])}function SC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M16 1.333c-8.095 0-14.667 6.572-14.667 14.667s6.572 14.667 14.667 14.667c8.095 0 14.667-6.572 14.667-14.667s-6.572-14.667-14.667-14.667zM16 4c6.623 0 12 5.377 12 12s-5.377 12-12 12c-6.623 0-12-5.377-12-12s5.377-12 12-12z"}),y("path",{d:"M14.667 8v8c0 0.505 0.285 0.967 0.737 1.193l5.333 2.667c0.658 0.329 1.46 0.062 1.789-0.596s0.062-1.46-0.596-1.789l-4.596-2.298c0 0 0-7.176 0-7.176 0-0.736-0.597-1.333-1.333-1.333s-1.333 0.597-1.333 1.333z"})])}function IC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M24.943 19.057l-8-8c-0.521-0.521-1.365-0.521-1.885 0l-8 8c-0.52 0.52-0.52 1.365 0 1.885s1.365 0.52 1.885 0l7.057-7.057c0 0 7.057 7.057 7.057 7.057 0.52 0.52 1.365 0.52 1.885 0s0.52-1.365 0-1.885z"})])}function DC(){return y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor","aria-hidden":"true",class:"dp__icon",role:"img"},[y("path",{d:"M7.057 12.943l8 8c0.521 0.521 1.365 0.521 1.885 0l8-8c0.52-0.52 0.52-1.365 0-1.885s-1.365-0.52-1.885 0l-7.057 7.057c0 0-7.057-7.057-7.057-7.057-0.52-0.52-1.365-0.52-1.885 0s-0.52 1.365 0 1.885z"})])}var MC=Symbol("ContextKey"),TC=()=>{const e=b(MC);if(!e)throw new Error("Can't use context");return e},LC=/* @__PURE__ */(e=>(e.month="month",e.year="year",e))(LC||{}),OC=/* @__PURE__ */(e=>(e.header="header",e.calendar="calendar",e.timePicker="timePicker",e))(OC||{}),BC=/* @__PURE__ */(e=>(e.month="month",e.year="year",e.calendar="calendar",e.time="time",e.minutes="minutes",e.hours="hours",e.seconds="seconds",e))(BC||{}),$C=["timestamp","date","iso"],PC=/* @__PURE__ */(e=>(e.up="up",e.down="down",e.left="left",e.right="right",e))(PC||{}),EC=/* @__PURE__ */(e=>(e.arrowUp="ArrowUp",e.arrowDown="ArrowDown",e.arrowLeft="ArrowLeft",e.arrowRight="ArrowRight",e.enter="Enter",e.space=" ",e.esc="Escape",e.tab="Tab",e.home="Home",e.end="End",e.pageUp="PageUp",e.pageDown="PageDown",e))(EC||{}),RC=/* @__PURE__ */(e=>(e.MONTH_AND_YEAR="MM-yyyy",e.YEAR="yyyy",e.DATE="dd-MM-yyyy",e))(RC||{}),FC=/* @__PURE__ */(e=>(e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday",e))(FC||{}),NC=()=>{const{checkPartialRangeValue:e,checkRangeEnabled:t,isValidDate:a}=VC(),{convertType:n,errorMapper:l}=pS(),{getDate:s,rootEmit:o,state:i,rootProps:r,inputValue:u,defaults:{textInput:c,range:d,multiDates:p,timeConfig:f,formats:h},modelValue:m,updateTime:g}=TC(),{setTime:w,getWeekFromDate:v}=fS(),{formatSelectedDate:y,formatForTextInput:b}=mS();oe(m,(e,t)=>{o("internal-model-change",m.value),JSON.stringify(t??{})!==JSON.stringify(e??{})&&g()},{deep:!0}),oe(d,(e,t)=>{e.enabled!==t.enabled&&(m.value=null)}),oe(()=>h.value.input,()=>{C()});const A=e=>e?r.modelType?I(e):{hours:ax(e),minutes:nx(e),seconds:f.value.enableSeconds?sx(e):0}:null,k=e=>r.modelType?I(e):{month:lx(e),year:ox(e)},_=(e,t)=>"string"!=typeof e&&"number"!=typeof e||!r.modelType?t:S(e),x=()=>{const t=m.value;return[I(t[0]),t[1]?I(t[1]):e(d.value.partialRange)]},C=()=>{u.value=m.value?p.value.enabled?m.value.map(e=>y(e)).join("; "):c.value.enabled?b():y(m.value):""},S=e=>r.modelType?$C.includes(r.modelType)?s(e):"format"===r.modelType&&"string"==typeof h.value.input?nC(e,h.value.input,s(),{locale:r.locale}):nC(e,r.modelType,s(),{locale:r.locale}):s(e),I=e=>e?r.modelType?"timestamp"===r.modelType?+e:"iso"===r.modelType?e.toISOString():"format"===r.modelType&&"string"==typeof h.value.input?y(e):y(e,r.modelType):e:null,D=e=>{o("update:model-value",e)},M=e=>D(n((e=>Array.isArray(m.value)?p.value.enabled?m.value.map(t=>e(t)):[e(m.value[0]),m.value[1]?e(m.value[1]):null]:e(n(m.value)))(e)));return{checkBeforeEmit:()=>!!m.value&&(d.value.enabled?d.value.partialRange?m.value.length>=1:2===m.value.length:!!m.value),parseExternalModelValue:o=>{if(i.isTextInputDate)return;const c=(a=>!a||Array.isArray(a)&&!a.length?null:r.timePicker?(e=>Array.isArray(e)?[_(e[0],w(e[0])),_(e[1],w(e[1]))]:_(e,w(e)))(n(a)):r.monthPicker?(a=>{const n=rC(s(),{date:1});return Array.isArray(a)?p.value.enabled?a.map(e=>_(e,rC(n,{month:+e.month,year:+e.year}))):t(()=>[_(a[0],rC(n,{month:+a[0].month,year:+a[0].year})),_(a[1],a[1]?rC(n,{month:+a[1].month,year:+a[1].year}):e(d.value.partialRange))],d.value.enabled):_(a,rC(n,{month:+a.month,year:+a.year}))})(n(a)):r.yearPicker?(a=>Array.isArray(a)?p.value.enabled?a.map(e=>_(e,uC(s(),e))):t(()=>[uC(s(),a[0]),a[1]?uC(s(),a[1]):e(d.value.partialRange)],d.value.enabled):uC(s(),+a))(n(a)):p.value.enabled?(e=>{if(Array.isArray(e))return e.map(e=>S(e));throw new Error(l.dateArr("multi-dates"))})(n(a)):r.weekPicker?(e=>{if(Array.isArray(e)&&d.value.enabled){const t=e[0],a=e[1];return[s(Array.isArray(t)?t[0]:null),Array.isArray(a)&&a.length?s(a[0]):null]}return s(e[0])})(n(a)):(a=>r.modelAuto?Array.isArray(a)?[S(a[0]),S(a[1])]:r.autoApply?[S(a)]:[S(a),null]:Array.isArray(a)?t(()=>a[1]?[S(a[0]),a[1]?S(a[1]):e(d.value.partialRange)]:[S(a[0])],d.value.enabled):S(a))(n(a)))(o);a(n(c))?(m.value=n(c),C()):(m.value=null,u.value="")},formatInputValue:C,emitModelValue:()=>(C(),r.monthPicker?M(k):r.timePicker?M(A):r.yearPicker?M(ox):r.weekPicker?o("update:model-value",(()=>{if(Array.isArray(m.value)){const e=v(m.value[0],r.weekStart),t=m.value[1]?v(m.value[1],r.weekStart):[];return[e.map(e=>s(e)),t.map(e=>s(e))]}return v(m.value,r.weekStart).map(e=>s(e))})()):D(((a=!1)=>(a||Array.isArray(m.value)&&d.value.enabled&&1===m.value.length&&m.value.push(e(d.value.partialRange)),r.modelAuto?Array.isArray(m.value)?m.value[1]?x():I(n(m.value[0])):[]:p.value.enabled?(m.value||[]).map(e=>I(e)):Array.isArray(m.value)?t(()=>x(),d.value.enabled):I(n(m.value))))()))}},WC=()=>{const{defaults:{transitions:e}}=TC(),t=s(()=>t=>e.value?t?e.value.open:e.value.close:""),a=s(()=>t=>e.value?t?e.value.menuAppearTop:e.value.menuAppearBottom:"");return{transitionName:t,showTransition:!!e.value,menuTransition:a}},HC=e=>{const{today:t,time:a,modelValue:n,defaults:{range:l}}=TC(),{setTimeModelValue:s}=pS();oe(l,(e,o)=>{e.enabled!==o.enabled&&s(a,n.value,t,l.value.enabled)},{deep:!0}),oe(n,(t,a)=>{e&&JSON.stringify(t??{})!==JSON.stringify(a??{})&&e()},{deep:!0})},VC=()=>{const{defaults:{safeDates:e,range:t,multiDates:a,filters:n,timeConfig:l},rootProps:o,getDate:i}=TC(),{getMapKeyType:r,getMapDate:u,errorMapper:c,convertType:d}=pS(),{isDateBefore:p,isDateAfter:f,isDateEqual:h,resetDate:m,getDaysInBetween:g,setTimeValue:w,getTimeObj:v,setTime:y}=fS(),b=t=>{if(!t)return!1;const a=(t=>!!e.value.maxDate&&(o.yearPicker?ox(t)>ox(e.value.maxDate):f(t,e.value.maxDate)))(t),l=(t=>!!e.value.minDate&&(o.yearPicker?ox(t)<ox(e.value.minDate):p(t,e.value.minDate)))(t),s=(t=>!!e.value.disabledDates&&("function"==typeof e.value.disabledDates?e.value.disabledDates(i(t)):!!u(t,e.value.disabledDates)))(t),r=n.value.months.map(e=>+e).includes(lx(t)),c=!!n.value.weekDays?.length&&n.value.weekDays.some(e=>+e===Jk(t,void 0).getDay()),d=_(t),h=ox(t),m=h<+o.yearRange[0]||h>+o.yearRange[1];return!(a||l||s||r||m||c||d)},A=(t,a)=>p(...O(e.value.minDate,t,a))||h(...O(e.value.minDate,t,a)),k=(t,a)=>f(...O(e.value.maxDate,t,a))||h(...O(e.value.maxDate,t,a)),_=t=>!(!Array.isArray(e.value.allowedDates)||e.value.allowedDates.length)||!!e.value.allowedDates&&!u(t,e.value.allowedDates,r(o.monthPicker,o.yearPicker)),x=e=>!b(e),C=e=>{if(e){const t=ox(e);return t>=+o.yearRange[0]&&t<=o.yearRange[1]}return!0},S=(e,t,a)=>!!t&&e.find(e=>+e.hours===ax(t)&&"*"===e.minutes||+e.minutes===nx(t)&&+e.hours===ax(t))&&a,I=(e,t)=>o.disabledTimes?Array.isArray(o.disabledTimes)?((e,t)=>{const a=Array.isArray(t)?t:[t];return Array.isArray(o.disabledTimes)?Array.isArray(o.disabledTimes[0])?((e,t,a)=>{const[n,l]=e,[s,o]=t;return!S(n,s,a)&&!S(l,o,a)&&a})(o.disabledTimes,a,e):!a.some(t=>S(o.disabledTimes,t,e)):e})(t,e):((e,t)=>{const a=Array.isArray(t)?[v(t[0]),t[1]?v(t[1]):void 0]:v(t),n=!o.disabledTimes(a);return e&&n})(t,e):t,D=t=>{let a=!0;if(!t||!l.value.enableTimePicker||o.monthPicker||o.yearPicker||l.value.ignoreTimeValidation)return!0;const n=e.value.minDate||e.value.maxDate?t:(e=>Array.isArray(e)?[e[0]?w(e[0]):null,e[1]?w(e[1]):null]:w(e))(t);return(o.maxTime||e.value.maxDate)&&(a=$(o.maxTime,e.value.maxDate,"max",d(n),a)),(o.minTime||e.value.minDate)&&(a=$(o.minTime,e.value.minDate,"min",d(n),a)),I(t,a)},M=t=>{if(!o.monthPicker)return!0;let a=!0;const n=i(m(t));if(e.value.minDate&&e.value.maxDate){const t=i(m(e.value.minDate)),a=i(m(e.value.maxDate));return f(n,t)&&p(n,a)||h(n,t)||h(n,a)}if(e.value.minDate){const t=i(m(e.value.minDate));a=f(n,t)||h(n,t)}if(e.value.maxDate){const t=i(m(e.value.maxDate));a=p(n,t)||h(n,t)}return a},T=s(()=>e=>!(l.value.enableTimePicker&&!l.value.ignoreTimeValidation)||D(e)),L=s(()=>e=>!o.monthPicker||(Array.isArray(e)&&(t.value.enabled||a.value.enabled)?!e.filter(e=>!M(e)).length:M(e))),O=(e,t,a)=>[rC(i(e),{date:1}),rC(i(),{month:t,year:a,date:1})],B=(e,t,a,n)=>{if(!e)return!0;if(n){const n={seconds:0,milliseconds:0};return("max"===a?rx(e,t):ix(e,t))||ux(rC(e,n),rC(t,n))}return"max"===a?e.getTime()<=t.getTime():e.getTime()>=t.getTime()},$=(e,t,a,n,l)=>{if(Array.isArray(n)){const s=P(e,n[0],t),o=P(e,n[1],t);return B(n[0],s,a,!!t)&&B(n[1],o,a,!!t)&&l}return B(n,P(e,n,t),a,!!t)&&l},P=(e,t,a)=>e?y(e,t):i(a??t);return{isDisabled:x,validateDate:b,validateMonthYearInRange:(t,a,n,l)=>{let s=!1;return l&&(e.value.minDate||e.value.maxDate)?e.value.minDate&&e.value.maxDate?s=((t,a,n)=>{let l=!1;return e.value.maxDate&&n&&k(t,a)&&(l=!0),e.value.minDate&&!n&&A(t,a)&&(l=!0),l})(t,a,n):(e.value.minDate&&A(t,a)||e.value.maxDate&&k(t,a))&&(s=!0):s=!0,s},isDateRangeAllowed:e=>!t.value.noDisabledRange||!w_({start:e[0],end:e[1]}).some(e=>x(e)),checkMinMaxRange:(e,a,n=0)=>{if(((e,a)=>!!(Array.isArray(e)&&e[a]&&(t.value.maxRange||t.value.minRange)&&C(e[a])))(a,n)&&C(e)){const l=u_(e,a[n]),s=g(a[n],e),o=1===s.length?0:s.filter(e=>x(e)).length,i=Math.abs(l)-(t.value.minMaxRawRange?0:o);if(t.value.minRange&&t.value.maxRange)return i>=+t.value.minRange&&i<=+t.value.maxRange;if(t.value.minRange)return i>=+t.value.minRange;if(t.value.maxRange)return i<=+t.value.maxRange}return!0},isValidTime:D,validateMonthYear:(t,a,n)=>{if(!a||n&&!e.value.maxDate||!n&&!e.value.minDate)return!1;const l=n?Xk(t,1):cC(t,1),s=[lx(l),ox(l)];return n?!k(...s):!A(...s)},validateMinDate:A,validateMaxDate:k,isValidDate:e=>Array.isArray(e)?h_(e[0])&&(!e[1]||h_(e[1])):!!e&&h_(e),checkPartialRangeValue:e=>{if(e)return null;throw new Error(c.prop("partial-range"))},checkRangeEnabled:(e,t)=>{if(t)return e();throw new Error(c.prop("range"))},checkMinMaxValue:(e,t,a)=>{const n=null!=a,l=null!=t;if(!n&&!l)return!1;const s=+a,o=+t;return n&&l?+e>s||+e<o:n?+e>s:!!l&&+e<o},isTimeValid:T,isMonthValid:L}};function UC(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}function YC(e){return(t,a)=>{let n;if("formatting"===(a?.context?String(a.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,l=a?.width?String(a.width):t;n=e.formattingValues[l]||e.formattingValues[t]}else{const t=e.defaultWidth,l=a?.width?String(a.width):e.defaultWidth;n=e.values[l]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}function KC(e){return(t,a={})=>{const n=a.width,l=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],s=t.match(l);if(!s)return null;const o=s[0],i=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],r=Array.isArray(i)?function(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}(i,e=>e.test(o)):function(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}(i,e=>e.test(o));let u;return u=e.valueCallback?e.valueCallback(r):r,u=a.valueCallback?a.valueCallback(u):u,{value:u,rest:t.slice(o.length)}}}var jC,GC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},QC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qC={ordinalNumber:(e,t)=>{const a=Number(e),n=a%100;if(n>20||n<10)switch(n%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},era:YC({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:YC({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:YC({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:YC({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:YC({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},ZC={ordinalNumber:(jC={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const a=e.match(jC.matchPattern);if(!a)return null;const n=a[0],l=e.match(jC.parsePattern);if(!l)return null;let s=jC.valueCallback?jC.valueCallback(l[0]):l[0];return s=t.valueCallback?t.valueCallback(s):s,{value:s,rest:e.slice(n.length)}}),era:KC({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:KC({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:KC({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:KC({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:KC({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},JC={code:"en-US",formatDistance:(e,t,a)=>{let n;const l=GC[e];return n="string"==typeof l?l:1===t?l.one:l.other.replace("{{count}}",t.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+n:n+" ago":n},formatLong:{date:UC({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UC({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:UC({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:(e,t,a,n)=>QC[e],localize:qC,match:ZC,options:{weekStartsOn:0,firstWeekContainsDate:1}},zC={noDisabledRange:!1,showLastInRange:!0,minMaxRawRange:!1,partialRange:!0,disableTimeRangeValidation:!1,maxRange:void 0,minRange:void 0,autoRange:void 0,fixedStart:!1,fixedEnd:!1,autoSwitchStartEnd:!0},XC={allowStopPropagation:!0,closeOnScroll:!1,modeHeight:255,allowPreventDefault:!1,closeOnClearValue:!0,closeOnAutoApply:!0,noSwipe:!1,keepActionRow:!1,onClickOutside:void 0,tabOutClosesMenu:!0,arrowLeft:void 0,keepViewOnOffsetClick:!1,timeArrowHoldThreshold:0,shadowDom:!1,mobileBreakpoint:600,setDateOnMenuClose:!1,escClose:!0,spaceConfirm:!0,monthChangeOnArrows:!0,monthChangeOnScroll:!0},eS={enterSubmit:!0,tabSubmit:!0,openMenu:"open",selectOnFocus:!1,rangeSeparator:" - ",escClose:!0,format:void 0,maskFormat:void 0,applyOnBlur:!1,separators:void 0},tS={dates:[],years:[],months:[],quarters:[],weeks:[],weekdays:[],options:{highlightDisabled:!1}},aS={showSelect:!0,showCancel:!0,showNow:!1,showPreview:!0,selectBtnLabel:"Select",cancelBtnLabel:"Cancel",nowBtnLabel:"Now",nowBtnRound:void 0},nS={toggleOverlay:"Toggle overlay",menu:"Datepicker menu",input:"Datepicker input",openTimePicker:"Open time picker",closeTimePicker:"Close time Picker",incrementValue:e=>`Increment ${e}`,decrementValue:e=>`Decrement ${e}`,openTpOverlay:e=>`Open ${e} overlay`,amPmButton:"Switch AM/PM mode",openYearsOverlay:"Open years overlay",openMonthsOverlay:"Open months overlay",nextMonth:"Next month",prevMonth:"Previous month",nextYear:"Next year",prevYear:"Previous year",day:void 0,weekDay:void 0,clearInput:"Clear value",calendarIcon:"Calendar icon",timePicker:"Time picker",monthPicker:e=>"Month picker"+(e?" overlay":""),yearPicker:e=>"Year picker"+(e?" overlay":""),timeOverlay:e=>`${e} overlay`},lS={menuAppearTop:"dp-menu-appear-top",menuAppearBottom:"dp-menu-appear-bottom",open:"dp-slide-down",close:"dp-slide-up",next:"calendar-next",previous:"calendar-prev",vNext:"dp-slide-up",vPrevious:"dp-slide-down"},sS={weekDays:[],months:[],years:[],times:{hours:[],minutes:[],seconds:[]}},oS={month:"LLL",year:"yyyy",weekDay:"EEEEEE",quarter:"MMMM",day:"d",input:void 0,preview:void 0},iS={enableTimePicker:!0,ignoreTimeValidation:!1,enableSeconds:!1,enableMinutes:!0,is24:!0,noHoursOverlay:!1,noMinutesOverlay:!1,noSecondsOverlay:!1,hoursGridIncrement:1,minutesGridIncrement:5,secondsGridIncrement:5,hoursIncrement:1,minutesIncrement:1,secondsIncrement:1,timePickerInline:!1,startTime:void 0},rS={flowStep:0,menuWrapRef:null,collapse:!1},uS={weekStart:FC.Monday,yearRange:()=>[1900,2100],ui:()=>({}),locale:()=>JC,dark:!1,transitions:!0,hideNavigation:()=>[],vertical:!1,hideMonthYearSelect:!1,disableYearSelect:!1,autoApply:!1,disabledDates:()=>[],hideOffsetDates:!1,noToday:!1,markers:()=>[],presetDates:()=>[],preventMinMaxNavigation:!1,reverseYears:!1,weekPicker:!1,arrowNavigation:!1,monthPicker:!1,yearPicker:!1,quarterPicker:!1,timePicker:!1,modelAuto:!1,multiDates:!1,range:!1,inline:!1,sixWeeks:!1,focusStartDate:!1,yearFirst:!1,loading:!1,centered:!1},cS={name:void 0,required:!1,autocomplete:"off",state:void 0,clearable:!0,alwaysClearable:!1,hideInputIcon:!1,id:void 0,inputmode:"none"},dS={type:"local",hideOnOffsetDates:!1,label:"W"},pS=()=>{const e=(e,t)=>ex(e,t??RC.DATE),t=(e,t,a,n,l)=>{const s={hours:ax,minutes:nx,seconds:sx};if(!t)return n?[s[e](a),s[e](a)]:s[e](a);if(Array.isArray(t)&&n){const n=t[0]??a,o=t[1];return[s[e](n),o?s[e](o):l[e][1]??s[e](a)]}return Array.isArray(t)&&!n?s[e](t[t.length-1]??a):s[e](t)};return{getMapKey:e,getMapKeyType:(e,t)=>e?RC.MONTH_AND_YEAR:t?RC.YEAR:RC.DATE,getMapDate:(t,a,n)=>a.get(e(t,n)),convertType:e=>e,getNumVal:e=>0===e?e:!e||Number.isNaN(+e)?null:+e,findNextFocusableElement:(e,t)=>{let a=[...document.querySelectorAll(["a[href]","area[href]","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","[tabindex]:not([tabindex='-1'])","[data-datepicker-instance]"].join(", "))];a=a.filter(t=>!e.contains(t)||"datepicker-instance"in t.dataset);const n=a.indexOf(e);if(n>=0&&(t?n-1>=0:n+1<=a.length))return a[n+(t?-1:1)]},padZero:e=>String(e).padStart(2,"0"),getElWithin:(e,t)=>e?.querySelector(`[data-dp-element="${t}"]`),checkStopPropagation:(e,t,a=!1)=>{e&&t.allowStopPropagation&&(a&&e.stopImmediatePropagation(),e.stopPropagation())},checkKeyDown:(e,t,a=!1,n)=>e.key===EC.enter||e.key===EC.space?(a&&e.preventDefault(),t()):n?n(e):void 0,handleEventPropagation:(e,t)=>{t.allowStopPropagation&&e.stopPropagation(),t.allowPreventDefault&&e.preventDefault()},findFocusableEl:e=>{if(e)return[...e.querySelectorAll("input, button, select, textarea, a[href]")][0]},isTouchDevice:()=>"ontouchstart"in globalThis||navigator.maxTouchPoints>0,hoursToAmPmHours:e=>[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2,3,4,5,6,7,8,9,10,11][e],getGroupedList:e=>{const t=[],a=e=>e.filter(e=>!!e);for(let n=0;n<e.length;n+=3){const l=[e[n],e[n+1],e[n+2]];t.push(a(l))}return t},setTimeModelValue:(e,a,n,l)=>{e.hours=t("hours",a,n,l,e),e.minutes=t("minutes",a,n,l,e),e.seconds=t("seconds",a,n,l,e)},getTimeObjFromCurrent:(e,t,a)=>{const n={hours:ax(e),minutes:nx(e),seconds:a?sx(e):0};return Object.assign(n,t)},errorMapper:{prop:e=>`"${e}" prop must be enabled!`,dateArr:e=>`You need to use array as "model-value" binding in order to support "${e}"`}}},fS=()=>{const{getDate:e}=TC(),{getMapDate:t,getGroupedList:a}=pS(),n=(t,a)=>{if(!t)return e();const n=rC(e(t),{hours:0,minutes:0,seconds:0,milliseconds:0});return a?function(e){const t=Jk(e,void 0);return t.setDate(1),t.setHours(0,0,0,0),t}(n):n},l=(e,t)=>!(!e||!t)&&rx(n(e),n(t)),s=(e,t)=>!(!e||!t)&&ix(n(e),n(t)),o=e=>({hours:ax(e),minutes:nx(e),seconds:sx(e)});return{resetDateTime:n,groupListAndMap:(e,t)=>a(e).map(e=>e.map(e=>{const{active:a,disabled:n,isBetween:l,highlighted:s}=t(e);return{...e,active:a,disabled:n,className:{dp__overlay_cell_active:a,dp__overlay_cell:!a,dp__overlay_cell_disabled:n,dp__overlay_cell_pad:!0,dp__overlay_cell_active_disabled:n&&a,dp__cell_in_between:l,"dp--highlighted":s}}})),setTime:(t,a)=>{const n=e(a);return rC(n,{hours:+(t.hours??ax(n)),minutes:+(t.minutes??nx(n)),seconds:+(t.seconds??sx(n)),milliseconds:0})},getWeekFromDate:(e,t)=>[n_(e,{weekStartsOn:+t}),A_(e,{weekStartsOn:+t})],isDateAfter:s,isDateBefore:l,isDateBetween:(e,t,a)=>e?.[0]&&e?.[1]?s(a,e[0])&&l(a,e[1]):!(!e?.[0]||!t)&&(s(a,e[0])&&l(a,t)||l(a,e[0])&&s(a,t)),isDateEqual:(e,t)=>!(!e||!t)&&ux(n(e),n(t)),getDaysInBetween:(e,t)=>w_({start:s(e,t)?t:e,end:s(t,e)?t:e}),getCellId:e=>`dp-${ex(e,"yyyy-MM-dd")}`,resetDate:t=>n(rC(e(t),{date:1})),getMinMonth:(t,a)=>{if(a){const n=ox(e(a));if(n>t)return 12;if(n===t)return lx(e(a))}},getMaxMonth:(t,a)=>{if(a){const n=ox(e(a));return n<t?-1:n===t?lx(e(a)):void 0}},getYearFromDate:t=>{if(t)return ox(e(t))},getTimeObj:o,setTimeValue:t=>rC(e(),o(t)),sanitizeTime:(e,t,a)=>t&&(a||0===a)?Object.fromEntries(["hours","minutes","seconds"].map(n=>n===t?[n,a]:[n,Number.isNaN(+e[n])?void 0:+e[n]])):{hours:Number.isNaN(+e.hours)?void 0:+e.hours,minutes:Number.isNaN(+e.minutes)?void 0:+e.minutes,seconds:Number.isNaN(+(e.seconds??""))?void 0:+e.seconds},getBeforeAndAfterInRange:(e,t)=>({before:oC(n(t),e),after:zk(n(t),e)}),isModelAuto:e=>!!Array.isArray(e)&&!!e[0]&&!!e[1],matchDate:(a,n)=>!a||!!n&&(n instanceof Map?!!t(a,n):n(e(a))),checkHighlightMonth:(e,t,a)=>"function"==typeof e?e({month:t,year:a}):e.months.some(e=>e.month===t&&e.year===a),checkHighlightYear:(e,t)=>"function"==typeof e?e(t):e.years.includes(t)}},hS=()=>{const{defaults:{config:e}}=TC(),t=R(0);T(()=>{a(),globalThis.addEventListener("resize",a,{passive:!0})}),O(()=>{globalThis.removeEventListener("resize",a)});const a=()=>{t.value=globalThis.document.documentElement.clientWidth};return{isMobile:s(()=>t.value<=e.value.mobileBreakpoint||void 0)}},mS=()=>{const{getDate:e,state:t,modelValue:a,rootProps:n,defaults:{formats:l,textInput:s}}=TC(),o=e=>ex(e,l.value.quarter,{locale:n.locale}),i=(e,t,a)=>{const o=a?l.value.preview:l.value.input;if(!e)return"";if("function"==typeof o)return o(e);const i=t??o,r={locale:n.locale};return Array.isArray(e)?`${ex(e[0],i,r)}${n.modelAuto&&!e[1]?"":s.value.rangeSeparator}${e[1]?ex(e[1],i,r):""}`:ex(e,i,r)};return{formatYear:t=>ex(uC(e(),t),l.value.year,{locale:n.locale}),formatMonth:t=>ex(iC(e(),t),l.value.month,{locale:n.locale}),formatWeekDay:e=>ex(e,l.value.weekDay,{locale:n.locale}),formatQuarter:o,formatSelectedDate:i,formatForTextInput:()=>t.isInputFocused&&a.value?Array.isArray(a.value)?(()=>{const e=e=>ex(e,s.value.format);return Array.isArray(a.value)?`${e(a.value[0])} ${s.value.rangeSeparator} ${a.value[1]?e(a.value[1]):""}`:""})():ex(a.value,s.value.format):i(a.value),formatPreview:e=>i(e,void 0,!0),formatQuarterText:(e,t)=>[e,t].map(e=>o(e)).join("-"),formatDay:e=>ex(e,l.value.day,{locale:n.locale})}},gS=()=>{const{rootProps:e}=TC(),{formatYear:t,formatMonth:a}=mS();return{getMonths:()=>[0,1,2,3,4,5,6,7,8,9,10,11].map(e=>({text:a(e),value:e})),getYears:()=>{const a=[];for(let n=+e.yearRange[0];n<=+e.yearRange[1];n++)a.push({value:+n,text:t(n)});return e.reverseYears?a.reverse():a},isOutOfYearRange:t=>t<+e.yearRange[0]||t>+e.yearRange[1]}},wS=/* @__PURE__ */(e=>(e.Input="input",e.DatePicker="date-picker",e.Calendar="calendar",e.DatePickerHeader="date-picker-header",e.Menu="menu",e.ActionRow="action-row",e.TimePicker="time-picker",e.TimeInput="time-input",e.PassTrough="pass-trough",e.MonthPicker="month-picker",e.YearMode="year-mode",e.QuarterPicker="quarter-picker",e.YearPicker="year-picker",e))(wS||{}),vS=["time-input","time-picker","pass-trough"],yS=[{name:"trigger",use:["input"]},{name:"input-icon",use:["input"]},{name:"clear-icon",use:["input"]},{name:"dp-input",use:["input"]},{name:"clock-icon",use:["time-picker","time-input","pass-trough"]},{name:"arrow-left",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-right",use:["date-picker-header","pass-trough","year-mode"]},{name:"arrow-up",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"arrow-down",use:["time-picker","time-input","date-picker-header","pass-trough"]},{name:"calendar-icon",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"day",use:["calendar","pass-trough"]},{name:"month-overlay-value",use:["date-picker-header","pass-trough","month-picker"]},{name:"year-overlay-value",use:["date-picker-header","pass-trough","year-mode","year-picker"]},{name:"year-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay",use:["date-picker-header","pass-trough"]},{name:"month-overlay-header",use:["date-picker-header","pass-trough"]},{name:"year-overlay-header",use:["date-picker-header","pass-trough"]},{name:"hours-overlay-value",use:vS},{name:"hours-overlay-header",use:vS},{name:"minutes-overlay-value",use:vS},{name:"minutes-overlay-header",use:vS},{name:"seconds-overlay-value",use:vS},{name:"seconds-overlay-header",use:vS},{name:"hours",use:["time-input","time-picker","pass-trough"]},{name:"minutes",use:["time-input","time-picker","pass-trough"]},{name:"seconds",use:["time-input","time-picker","pass-trough"]},{name:"month",use:["date-picker-header","time-picker","pass-trough"]},{name:"year",use:["date-picker-header","time-picker","pass-trough","year-mode"]},{name:"action-buttons",use:["action-row"]},{name:"action-preview",use:["action-row"]},{name:"calendar-header",use:["calendar","pass-trough"]},{name:"marker-tooltip",use:["calendar","pass-trough"]},{name:"action-extra",use:["menu"]},{name:"time-picker-overlay",use:["time-picker","time-picker","pass-trough"]},{name:"am-pm-button",use:["time-picker","time-input","pass-trough"]},{name:"left-sidebar",use:["menu"]},{name:"right-sidebar",use:["menu"]},{name:"month-year",use:["date-picker-header","pass-trough","month-picker","year-picker"]},{name:"time-picker",use:["date-picker","pass-trough"]},{name:"action-row",use:["action-row"]},{name:"marker",use:["calendar","pass-trough"]},{name:"quarter",use:["quarter-picker","pass-trough"]},{name:"top-extra",use:["date-picker-header","pass-trough","month-picker","quarter-picker","year-picker"]},{name:"tp-inline-arrow-up",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"tp-inline-arrow-down",use:["date-picker","time-input","time-picker","pass-trough"]},{name:"arrow",use:["menu"]},{name:"menu-header",use:["menu"]}],bS=(e,t)=>yS.filter(a=>e[a.name]&&a.use.includes(t)).map(e=>e.name),AS=(e,t)=>yS.map(e=>e.name).concat(t?.filter(e=>e.slot).map(e=>e.slot)??[]).filter(t=>!!e[t]),kS={key:1,class:"dp__input_wrap"},_S=["id","name","inputmode","placeholder","disabled","readonly","required","value","autocomplete","aria-label","aria-disabled","aria-invalid"],xS={key:1,class:"dp--clear-btn"},CS=["aria-label"],SS=/* @__PURE__ */g({__name:"DatepickerInput",props:{isMenuOpen:{type:Boolean,default:!1}},emits:["clear","open","set-input-date","close","select-date","set-empty-date","toggle","focus","blur","real-blur"],setup(e,{expose:t,emit:a}){const n=a,l=e,{rootEmit:o,inputValue:d,rootProps:p,defaults:{textInput:f,ariaLabels:m,inline:g,config:w,range:v,multiDates:y,ui:b,inputAttrs:A}}=TC(),{checkMinMaxRange:k,isValidDate:_}=VC(),{parseFreeInput:S,textPasted:I,createMaskedValue:D,applyMaxValues:M}=(()=>{const{getDate:e,rootProps:t,defaults:{textInput:a,startTime:n,timeConfig:l}}=TC(),{getTimeObjFromCurrent:o}=pS(),i=R(!1),r=s(()=>Array.isArray(n.value)?n.value[0]:n.value??o(e(),{},l.value.enableSeconds)),u=(a,n,l)=>{const s=nC(a,((e,t)=>{const a=/[^a-zA-Z]+/g,n=/\D+/g,l=t.split(n),s=e.split(a),o=e.match(a)||[],i=t.match(n)||[];let r="";for(let u=0;u<l.length&&u<s.length;u++){u>0&&i[u-1]&&(r+=o[u-1]||i[u-1]);const e=l[u]?.length;r+=s[u]?.slice(0,e)}return r})(n,a),e(),{locale:t.locale});return h_(s)&&f_(s)?l||i.value?s:rC(s,{hours:+r.value.hours,minutes:+r.value.minutes,seconds:+(r.value.seconds??0),milliseconds:0}):null};return{textPasted:i,parseFreeInput:(e,t)=>{if("string"==typeof a.value.pattern)return u(e,a.value.pattern,t);if(Array.isArray(a.value.pattern)){let n=null;for(const l of a.value.pattern)if(n=u(e,l,t),n)break;return n}return"function"==typeof a.value.pattern?a.value.pattern(e):null},applyMaxValues:(e,t)=>{const a={MM:12,DD:31,hh:23,mm:59,ss:59};let n="",l=0;for(let s=0;s<t.length;s++){const o=t[s],i=o.length,r=e.slice(l,l+i);if(!r)break;if(r.length<i)n+=r;else{let e=Number.parseInt(r,10);a[o]&&e>a[o]&&(e=a[o]),n+=e.toString().padStart(i,"0").slice(0,i)}l+=i}return n},createMaskedValue:(e,t)=>{const a=/(YYYY|MM|DD|hh|mm|ss)/g,n=[...t.matchAll(a)].map(e=>e[0]),l=t.replace(a,"|").split("|").filter(Boolean),s=n.map(e=>e.length);let o="",i=0;for(let r=0;r<n.length;r++){const t=s[r],a=e.slice(i,i+t);if(!a)break;o+=a,a.length===t&&l[r]&&(o+=l[r]),i+=t}return o}}})(),{checkKeyDown:T,checkStopPropagation:L}=pS(),{boolHtmlAttribute:O}={boolHtmlAttribute:e=>!!e||void 0},$=ee("dp-input"),P=R(null),E=R(!1),F=s(()=>({dp__pointer:!p.disabled&&!p.readonly&&!f.value.enabled,dp__disabled:p.disabled,dp__input_readonly:!f.value.enabled,dp__input:!0,dp__input_not_clearable:!A.value.clearable,dp__input_icon_pad:!A.value.hideInputIcon,dp__input_valid:"boolean"==typeof A.value.state&&A.value.state,dp__input_invalid:"boolean"==typeof A.value.state&&!A.value.state,dp__input_focus:E.value||l.isMenuOpen,dp__input_reg:!f.value.enabled,...b.value.input})),W=()=>{I.value=!0},H=e=>{v.value.enabled?(e=>{const[t,a]=(e=>{if(f.value.separators?.length){const t=new RegExp(f.value.separators.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"));return e.split(t)}return e.split(f.value.rangeSeparator)})(e);if(t){const e=S(t.trim(),d.value),n=a?S(a.trim(),d.value):void 0;if(ix(e,n))return;const l=e&&n?[e,n]:[e];k(n,l,0)&&(P.value=e?l:null)}})(e):y.value.enabled?P.value=e.split(";").map(e=>S(e.trim())).filter(e=>!!e):P.value=S(e,d.value)},V=e=>{const t="string"==typeof e?e:e.target?.value,a=f?.value?.maskFormat;let s=t;if("string"==typeof a){const e=[...a.matchAll(/(YYYY|MM|DD|hh|mm|ss)/g)].map(e=>e[0]);s=D(M(t.replace(/\D/g,""),e),a)}""===s?(n("set-input-date",null),A&&p.autoApply&&(n("set-empty-date"),P.value=null)):(f.value.openMenu&&!l.isMenuOpen&&n("open"),H(s),n("set-input-date",P.value)),I.value=!1,d.value=s,o("text-input",e,P.value)},U=e=>{f.value.enabled?(H(e.target.value),f.value.enterSubmit&&_(P.value)&&""!==d.value?(n("set-input-date",P.value,!0),P.value=null):f.value.enterSubmit&&""===d.value&&(P.value=null,n("clear"))):j(e)},Y=(e,t)=>{f.value.enabled&&f.value.tabSubmit&&!t&&H(e.target.value),f.value.tabSubmit&&_(P.value)&&""!==d.value?(n("set-input-date",P.value,!0,!0),P.value=null):f.value.tabSubmit&&""===d.value&&(P.value=null,n("clear"))},K=()=>{E.value=!0,n("focus"),x().then(()=>{f.value.enabled&&f.value.selectOnFocus&&$.value?.select()})},j=e=>{if(L(e,w.value,!0),f.value.enabled&&f.value.openMenu&&!g.value.input){if("open"===f.value.openMenu&&!l.isMenuOpen)return n("open");if("toggle"===f.value.openMenu)return n("toggle")}else f.value.enabled||n("toggle")},G=()=>{n("real-blur"),E.value=!1,(!l.isMenuOpen||g.value.enabled&&g.value.input)&&n("blur"),(p.autoApply&&f.value.enabled&&P.value&&!l.isMenuOpen||f.value.applyOnBlur)&&(n("set-input-date",P.value),n("select-date"),P.value=null)},Q=e=>{L(e,w.value,!0),n("clear")},q=e=>{if("Tab"===e.key&&Y(e),"Enter"===e.key&&U(e),"Escape"===e.key&&f.value.escClose&&n("close"),!f.value.enabled){if("Tab"===e.code)return;e.preventDefault()}},Z=e=>{e.key===EC.tab&&Y(e,!0)};return t({focusInput:()=>{$.value?.focus({preventScroll:!0})},setParsedDate:e=>{P.value=e}}),(t,a)=>(B(),u("div",{onClick:j},[t.$slots["dp-input"]||J(g).enabled?r("",!0):N(t.$slots,"trigger",{key:0}),t.$slots.trigger||J(g).enabled&&!J(g).input?r("",!0):(B(),u("div",kS,[!t.$slots.trigger&&(!J(g).enabled||J(g).enabled&&J(g).input)?N(t.$slots,"dp-input",{key:0,value:J(d),isMenuOpen:e.isMenuOpen,onInput:V,onEnter:U,onTab:Y,onClear:Q,onBlur:G,onKeypress:q,onPaste:W,onFocus:K,openMenu:()=>t.$emit("open"),closeMenu:()=>t.$emit("close"),toggleMenu:()=>t.$emit("toggle")},()=>[c("input",{id:J(A).id,ref:"dp-input","data-test-id":"dp-input",name:J(A).name,class:C(F.value),inputmode:J(A).inputmode,placeholder:J(p).placeholder,disabled:J(O)(J(p).disabled),readonly:J(O)(J(p).readonly),required:J(O)(J(A).required),value:J(d),autocomplete:J(A).autocomplete,"aria-label":J(m).input,"aria-disabled":J(p).disabled||void 0,"aria-invalid":!1===J(A).state||void 0,onInput:V,onBlur:G,onFocus:K,onKeypress:q,onKeydown:a[0]||(a[0]=e=>q(e)),onPaste:W,onInvalid:a[1]||(a[1]=e=>J(o)("invalid",e))},null,42,_S)]):r("",!0),c("div",{onClick:a[4]||(a[4]=e=>n("toggle"))},[t.$slots["input-icon"]&&!J(A).hideInputIcon?(B(),u("span",{key:0,class:"dp__input_icon",onClick:a[2]||(a[2]=e=>n("toggle"))},[N(t.$slots,"input-icon")])):r("",!0),t.$slots["input-icon"]||J(A).hideInputIcon||t.$slots["dp-input"]?r("",!0):(B(),i(J(kC),{key:1,"aria-label":J(m)?.calendarIcon,class:"dp__input_icon dp__input_icons",onClick:a[3]||(a[3]=e=>n("toggle"))},null,8,["aria-label"]))]),t.$slots["clear-icon"]&&(J(A).alwaysClearable||J(d)&&J(A).clearable&&!J(p).disabled&&!J(p).readonly)?(B(),u("span",xS,[N(t.$slots,"clear-icon",{clear:Q})])):r("",!0),!t.$slots["clear-icon"]&&(J(A).alwaysClearable||J(A).clearable&&J(d)&&!J(p).disabled&&!J(p).readonly)?(B(),u("button",{key:2,"aria-label":J(m)?.clearInput,class:"dp--clear-btn",type:"button","data-test-id":"clear-input-value-btn",onKeydown:a[5]||(a[5]=e=>J(T)(e,()=>Q(e),!0,Z)),onClick:a[6]||(a[6]=ce(e=>Q(e),["prevent"]))},[h(J(_C),{class:"dp__input_icons"})],40,CS)):r("",!0)]))]))}}),IS={ref:"action-row",class:"dp__action_row"},DS=["title"],MS={ref:"action-buttons-container",class:"dp__action_buttons","data-dp-element":"action-row"},TS=["disabled"],LS=/* @__PURE__ */g({__name:"ActionRow",props:{menuMount:{type:Boolean,default:!1},calendarWidth:{default:0}},emits:["close-picker","select-date","select-now"],setup(e,{emit:a}){const n=a,l=e,{rootEmit:o,rootProps:i,modelValue:d,defaults:{actionRow:p,multiCalendars:h,inline:m,range:g,multiDates:w,formats:v}}=TC(),{isTimeValid:y,isMonthValid:b}=VC(),{formatPreview:A}=mS(),{checkKeyDown:k,convertType:x}=pS(),{boolHtmlAttribute:C}={boolHtmlAttribute:e=>!!e||void 0},D=ee("action-buttons-container"),M=ee("action-row"),L=R(!1),$=R({});T(()=>{P(),globalThis.addEventListener("resize",P)}),O(()=>{globalThis.removeEventListener("resize",P)});const P=()=>{L.value=!1,setTimeout(()=>{const e=D.value?.getBoundingClientRect(),t=M.value?.getBoundingClientRect();e&&t&&($.value.maxWidth=t.width-e.width-20+"px"),L.value=!0},0)},E=s(()=>!(g.value.enabled&&!g.value.partialRange&&d.value)||2===d.value.length),F=s(()=>!y.value(d.value)||!b.value(d.value)||!E.value),W=s(()=>d.value&&l.menuMount?"string"==typeof v.value.preview?Array.isArray(d.value)?2===d.value.length&&d.value[1]?(()=>{const e=d.value;return h.value.count>0?`${A(e[0])} - ${A(e[1])}`:[A(e[0]),A(e[1])]})():w.value.enabled?d.value.map(e=>`${A(e)}`):i.modelAuto?`${A(d.value[0])}`:`${A(d.value[0])} -`:A(d.value):(()=>{const e=v.value.preview;return i.timePicker||i.monthPicker,e(x(d.value))})():""),H=s(()=>Array.isArray(W.value)?W.value.join(w.value.enabled?"; ":" - "):W.value),V=()=>{y.value(d.value)&&b.value(d.value)&&E.value?n("select-date"):o("invalid-select")};return(e,a)=>(B(),u("div",IS,[e.$slots["action-row"]?N(e.$slots,"action-row",S(_({key:0},{modelValue:J(d),disabled:F.value,selectDate:()=>e.$emit("select-date"),closePicker:()=>e.$emit("close-picker")}))):(B(),u(t,{key:1},[J(p).showPreview?(B(),u("div",{key:0,class:"dp__selection_preview",title:H.value||void 0,style:I($.value)},[e.$slots["action-preview"]&&L.value?N(e.$slots,"action-preview",{key:0,value:J(d),formatValue:H.value}):r("",!0),!e.$slots["action-preview"]&&L.value?(B(),u(t,{key:1},[f(Y(H.value),1)],64)):r("",!0)],12,DS)):r("",!0),c("div",MS,[e.$slots["action-buttons"]?N(e.$slots,"action-buttons",{key:0,value:J(d),selectDate:V,selectionDisabled:F.value}):r("",!0),e.$slots["action-buttons"]?r("",!0):(B(),u(t,{key:1},[!J(m).enabled&&J(p).showCancel?(B(),u("button",{key:0,ref:"cancel-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:a[0]||(a[0]=t=>e.$emit("close-picker")),onKeydown:a[1]||(a[1]=t=>J(k)(t,()=>e.$emit("close-picker")))},Y(J(p).cancelBtnLabel),545)):r("",!0),J(p).showNow?(B(),u("button",{key:1,type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_cancel",onClick:a[2]||(a[2]=t=>e.$emit("select-now")),onKeydown:a[3]||(a[3]=t=>J(k)(t,()=>e.$emit("select-now")))},Y(J(p).nowBtnLabel),33)):r("",!0),J(p).showSelect?(B(),u("button",{key:2,ref:"select-btn",type:"button","data-dp-action-element":"0",class:"dp__action_button dp__action_select",disabled:J(C)(F.value),"data-test-id":"select-button",onKeydown:a[4]||(a[4]=e=>J(k)(e,()=>V())),onClick:V},Y(J(p).selectBtnLabel),41,TS)):r("",!0)],64))],512)],64))],512))}}),OS=()=>{const{rootProps:e,defaults:{multiCalendars:t}}=TC();return{hideNavigationButtons:s(()=>t=>e.hideNavigation?.includes(t)),showLeftIcon:s(()=>e=>!t.value.count||!!t.value.solo||0===e),showRightIcon:s(()=>e=>!t.value.count||!!t.value.solo||e===t.value.count-1)}},BS=["role","aria-label","tabindex"],$S={class:"dp__selection_grid_header"},PS=["aria-selected","aria-disabled","data-dp-action-element","data-dp-element-active","data-test-id","onClick","onKeydown","onMouseover"],ES=["aria-label","data-dp-action-element"],RS=/* @__PURE__ */g({__name:"SelectionOverlay",props:{items:{},type:{},useRelative:{type:Boolean},height:{},overlayLabel:{},isLast:{type:Boolean},level:{}},emits:["selected","toggle","reset-flow","hover-value"],setup(e,{emit:a}){const n=a,l=e,{setState:o,defaults:{ariaLabels:i,config:d}}=TC(),{hideNavigationButtons:p}=OS(),{handleEventPropagation:h,checkKeyDown:m}=pS(),g=ee("toggle-button"),w=ee("overlay-container"),v=ee("grid-wrap"),y=R(!1),b=R(null),A=R(),k=R(0);M(()=>{b.value=null}),T(async()=>{await x(),P(),o("arrowNavigationLevel",l.level??1)}),O(()=>{o("arrowNavigationLevel",(l.level??1)-1)});const _=s(()=>({dp__overlay:!0,"dp--overlay-absolute":!l.useRelative,"dp--overlay-relative":l.useRelative})),S=s(()=>l.useRelative?{height:`${l.height}px`,width:"var(--dp-menu-min-width)"}:void 0),D=s(()=>({dp__overlay_col:!0})),L=s(()=>({dp__btn:!0,dp__button:!0,dp__overlay_action:!0,dp__over_action_scroll:y.value,dp__button_bottom:l.isLast})),$=s(()=>({dp__overlay_container:!0,dp__container_flex:l.items?.length<=6,dp__container_block:l.items?.length>6}));oe(()=>l.items,()=>P(!1),{deep:!0});const P=(e=!0)=>{x().then(()=>{const t=document.querySelector(`[data-dp-element-active="${l.level??1}"]`),a=hA(v),n=hA(g),s=hA(w),o=n?n.getBoundingClientRect().height:0;a&&(a.getBoundingClientRect().height?k.value=a.getBoundingClientRect().height-o:k.value=d.value.modeHeight-o),t&&s&&e&&(s.scrollTop=t.offsetTop-s.offsetTop-(k.value/2-t.getBoundingClientRect().height)-o)})},E=e=>{e.disabled||n("selected",e.value)},W=()=>{n("toggle"),n("reset-flow")},H=e=>{if(e.key===EC.esc)return(e=>{d.value.escClose&&(W(),h(e,d.value))})(e)},V=e=>{if(e.key===EC.enter)return W()};return(a,l)=>(B(),u("div",{ref:"grid-wrap",class:C(_.value),style:I(S.value),role:e.useRelative?void 0:"dialog","aria-label":e.overlayLabel,tabindex:e.useRelative?void 0:"0",onKeydown:H,onClick:l[0]||(l[0]=ce(()=>{},["prevent"]))},[c("div",{ref:"overlay-container",class:C($.value),style:I({"--dp-overlay-height":`${k.value}px`}),role:"grid"},[c("div",$S,[N(a.$slots,"header")]),N(a.$slots,"overlay",{},()=>[(B(!0),u(t,null,F(e.items,(l,s)=>(B(),u("div",{key:s,class:C(["dp__overlay_row",{dp__flex_row:e.items.length>=3}]),role:"row"},[(B(!0),u(t,null,F(l,t=>(B(),u("div",{key:t.value,role:"gridcell",class:C(D.value),"aria-selected":t.active||void 0,"aria-disabled":t.disabled||void 0,"data-dp-action-element":e.level??1,"data-dp-element-active":t.active?e.level??1:void 0,tabindex:"0","data-test-id":t.text,onClick:ce(e=>E(t),["prevent"]),onKeydown:e=>J(m)(e,()=>E(t),!0),onMouseover:e=>(e=>{A.value=e,n("hover-value",e)})(t.value)},[c("div",{class:C(t.className)},[N(a.$slots,"item",{item:t},()=>[f(Y(t.text),1)])],2)],42,PS))),128))],2))),128))])],6),a.$slots["button-icon"]?re((B(),u("button",{key:0,ref:"toggle-button",type:"button","aria-label":J(i)?.toggleOverlay,class:C(L.value),tabindex:"0","data-dp-action-element":e.level??1,onClick:W,onKeydown:V},[N(a.$slots,"button-icon")],42,ES)),[[se,!J(p)(e.type)]]):r("",!0)],46,BS))}}),FS=["data-dp-mobile"],NS=/* @__PURE__ */g({__name:"InstanceWrap",props:{stretch:{type:Boolean},collapse:{type:Boolean}},setup(e){const{defaults:{multiCalendars:t}}=TC(),{isMobile:a}=hS(),n=s(()=>t.value.count>0?[...new Array(t.value.count).keys()]:[0]);return(l,s)=>(B(),u("div",{class:C({dp__menu_inner:!e.stretch,"dp--menu--inner-stretched":e.stretch,dp__flex_display:J(t).count>0,"dp--flex-display-collapsed":e.collapse}),"data-dp-mobile":J(a)},[N(l.$slots,"default",{instances:n.value,wrapClass:{dp__instance_calendar:J(t).count>0}})],10,FS))}}),WS=["data-dp-element","aria-label","aria-disabled"],HS=/* @__PURE__ */g({__name:"ArrowBtn",props:{ariaLabel:{},elName:{},disabled:{type:Boolean}},emits:["activate","set-ref"],setup(e,{emit:t}){const{checkKeyDown:a}=pS(),n=t;return(t,l)=>(B(),u("button",{ref:"arrow-btn",type:"button","data-dp-element":e.elName,"data-dp-action-element":"0",class:"dp__btn dp--arrow-btn-nav",tabindex:"0","aria-label":e.ariaLabel,"aria-disabled":e.disabled||void 0,onClick:l[0]||(l[0]=e=>n("activate")),onKeydown:l[1]||(l[1]=e=>J(a)(e,()=>n("activate"),!0))},[c("span",{class:C(["dp__inner_nav",{dp__inner_nav_disabled:e.disabled}])},[N(t.$slots,"default")],2)],40,WS))}}),VS=["aria-label","data-test-id"],US=/* @__PURE__ */g({__name:"YearModePicker",props:{items:{},instance:{},year:{},showYearPicker:{type:Boolean,default:!1},isDisabled:{}},emits:["handle-year","year-select","toggle-year-picker"],setup(e,{emit:a}){const l=a,o=e,{showRightIcon:p,showLeftIcon:m}=OS(),{rootProps:g,defaults:{config:w,ariaLabels:v,ui:y}}=TC(),{showTransition:b,transitionName:A}=WC(),{formatYear:k}=mS(),{boolHtmlAttribute:_}={boolHtmlAttribute:e=>!!e||void 0},x=R(!1),S=s(()=>k(o.year)),I=(e=!1,t)=>{x.value=!x.value,l("toggle-year-picker",{flow:e,show:t})},D=(e=!1)=>{l("handle-year",e)};return(a,s)=>(B(),u(t,null,[c("div",{class:C(["dp--year-mode-picker",{"dp--hidden-el":x.value}])},[J(m)(e.instance)?(B(),i(HS,{key:0,ref:"mpPrevIconRef","aria-label":J(v)?.prevYear,disabled:J(_)(e.isDisabled(!1)),class:C(J(y)?.navBtnPrev),onActivate:s[0]||(s[0]=e=>D(!1))},{default:ie(()=>[a.$slots["arrow-left"]?N(a.$slots,"arrow-left",{key:0}):r("",!0),a.$slots["arrow-left"]?r("",!0):(B(),i(J(xC),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r("",!0),c("button",{ref:"mpYearButtonRef",class:"dp__btn dp--year-select",type:"button","aria-label":`${e.year}-${J(v)?.openYearsOverlay}`,"data-test-id":`year-mode-btn-${e.instance}`,"data-dp-action-element":"0",onClick:s[1]||(s[1]=()=>I(!1)),onKeydown:s[2]||(s[2]=ue(ce(()=>I(!1),["prevent"]),["enter"]))},[a.$slots.year?N(a.$slots,"year",{key:0,text:S.value,value:e.year}):r("",!0),a.$slots.year?r("",!0):(B(),u(t,{key:1},[f(Y(e.year),1)],64))],40,VS),J(p)(e.instance)?(B(),i(HS,{key:1,ref:"mpNextIconRef","aria-label":J(v)?.nextYear,disabled:J(_)(e.isDisabled(!0)),class:C(J(y)?.navBtnNext),onActivate:s[3]||(s[3]=e=>D(!0))},{default:ie(()=>[a.$slots["arrow-right"]?N(a.$slots,"arrow-right",{key:0}):r("",!0),a.$slots["arrow-right"]?r("",!0):(B(),i(J(CC),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r("",!0)],2),h(n,{name:J(A)(e.showYearPicker),css:J(b)},{default:ie(()=>[e.showYearPicker?(B(),i(RS,{key:0,items:e.items,config:J(w),"is-last":J(g).autoApply&&!J(w).keepActionRow,"overlay-label":J(v)?.yearPicker?.(!0),type:"year",onToggle:I,onSelected:s[4]||(s[4]=e=>(e=>{x.value=!1,l("year-select",e)})(e))},d({"button-icon":ie(()=>[a.$slots["calendar-icon"]?N(a.$slots,"calendar-icon",{key:0}):r("",!0),a.$slots["calendar-icon"]?r("",!0):(B(),i(J(kC),{key:1}))]),_:2},[a.$slots["year-overlay-value"]?{name:"item",fn:ie(({item:e})=>[N(a.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1032,["items","config","is-last","overlay-label"])):r("",!0)]),_:3},8,["name","css"])],64))}}),YS=e=>{const{getDate:t,rootEmit:a,state:n,month:l,year:o,modelValue:i,calendars:r,rootProps:u,defaults:{multiCalendars:c,range:d,safeDates:p,filters:f,highlight:h}}=TC(),{resetDate:m,getYearFromDate:g,checkHighlightYear:w,groupListAndMap:v}=fS(),{getYears:y}=gS(),{validateMonthYear:b,checkMinMaxValue:A}=VC(),k=R([!1]),_=s(()=>y()),x=s(()=>(e,a)=>{const n=rC(m(t()),{month:l.value(e),year:o.value(e)});return b(a?y_(n):b_(n),u.preventMinMaxNavigation,a)}),C=()=>Array.isArray(i.value)&&c.value.solo&&i.value[1],S=()=>{for(let e=0;e<c.value.count;e++)if(0===e)r.value[e]=r.value[0];else if(e===c.value.count-1&&C())r.value[e]={month:lx(i.value[1]),year:ox(i.value[1])};else{const a=rC(t(),r.value[e-1]);r.value[e]={month:lx(a),year:ox(d_(a,1))}}},I=e=>u.focusStartDate||c.value.solo?e[0]:e[1]?((e,t)=>{const a=function(e,t,a){const[n,l]=i_(a?.in,e,t),s=p_(n,l),o=Math.abs(function(e,t){const[a,n]=i_(void 0,e,t);return a.getFullYear()-n.getFullYear()}(n,l));n.setFullYear(1584),l.setFullYear(1584);const i=s*(o-+(p_(n,l)===-s));return 0===i?0:i}(t,e);return d.value.showLastInRange&&a>1?t:e})(e[0],e[1]):e[0],D=()=>{(()=>{if(i.value){const e=Array.isArray(i.value)?I(i.value):i.value;r.value[0]={month:lx(e),year:ox(e)}}})(),c.value.count&&S()};oe(i,(e,t)=>{n.isTextInputDate&&JSON.stringify(e??{})!==JSON.stringify(t??{})&&D()}),T(()=>{D()});const M=(e,n)=>{r.value[n].year=e,a("update-month-year",{instance:n,year:e,month:r.value[n].month}),c.value.count&&!c.value.solo&&(e=>{if(!e)return S();const a=rC(t(),r.value[e]);r.value[0].year=ox(dC(a,c.value.count-1)),S()})(n)},L=s(()=>e=>v(_.value,t=>({active:o.value(e)===t.value,disabled:A(t.value,g(p.value.minDate),g(p.value.maxDate))||f.value.years?.includes(o.value(e)),highlighted:w(h.value,t.value)}))),O=(t,n=!1,l)=>{n||e("reset-flow"),k.value[t]=void 0===l?!k.value[t]:l,k.value[t]?a("overlay-toggle",{open:!0,overlay:BC.year}):a("overlay-toggle",{open:!1,overlay:BC.year})};return{isDisabled:x,groupedYears:L,showYearPicker:k,selectYear:M,setStartDate:()=>{u.startDate&&(i.value&&u.focusStartDate||!i.value)&&M(ox(t(u.startDate)),0)},toggleYearPicker:O,handleYearSelect:(e,t)=>{M(e,t),O(t)},handleYear:(e,t=!1)=>{x.value(e,t)||M(t?o.value(e)+1:o.value(e)-1,e)}}},KS=()=>{const{isDateAfter:e,isDateBefore:t,isDateEqual:a}=fS(),{getDate:n,rootEmit:l,rootProps:s,modelValue:o,defaults:{range:i}}=TC();return{getRangeWithFixedDate:n=>Array.isArray(o.value)&&(2===o.value.length||1===o.value.length&&i.value.partialRange)?i.value.fixedStart&&(e(n,o.value[0])||a(n,o.value[0]))?[o.value[0],n]:i.value.fixedEnd&&(t(n,o.value[1])||a(n,o.value[1]))?[n,o.value[1]]:(l("invalid-fixed-range",n),o.value):[],setPresetDate:e=>{Array.isArray(e.value)&&e.value.length<=2&&i.value.enabled?o.value=e.value.map(e=>n(e)):Array.isArray(e.value)||(o.value=n(e.value))},checkRangeAutoApply:(e,t,a)=>{i&&(e[0]&&e[1]&&s.autoApply&&t("auto-apply",a),e[0]&&!e[1]&&(s.modelAuto||i.value.partialRange)&&s.autoApply&&t("auto-apply",a))},setMonthOrYearRange:e=>{let a=o.value?o.value.slice():[];return 2===a.length&&null!==a[1]&&(a=[]),a.length?(t(e,a[0])?a.unshift(e):a[1]=e,l("range-end",e)):(a=[e],l("range-start",e)),a},handleMultiDatesSelect:(e,t)=>{if(o.value&&Array.isArray(o.value))if(o.value.some(t=>a(e,t))){const t=o.value.filter(t=>!a(t,e));o.value=t.length?t:null}else(t&&+t>o.value.length||!t)&&o.value.push(e);else o.value=[e]}}},jS=/* @__PURE__ */g({__name:"MonthPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply","update-flow-step","mount"],setup(e,{expose:a,emit:n}){const l=n,o=X(),{rootProps:c,defaults:{config:p}}=TC(),f=bS(o,wS.YearMode);T(()=>{l("mount")});const{groupedMonths:m,groupedYears:g,year:w,isDisabled:v,showYearPicker:y,modelValue:b,presetDate:A,setHoverDate:k,selectMonth:S,selectYear:I,toggleYearPicker:D,handleYearSelect:M,handleYear:L,getModelMonthYear:O}=((e,t)=>{const{getDate:a,rootEmit:n,state:l,calendars:o,year:i,modelValue:r,rootProps:u,defaults:{range:c,highlight:d,safeDates:p,filters:f,multiDates:h}}=TC();HC(()=>{l.isTextInputDate&&E(ox(a(u.startDate)),0)});const{checkMinMaxRange:m,checkMinMaxValue:g}=VC(),{isDateBetween:w,resetDateTime:v,resetDate:y,getMinMonth:b,getMaxMonth:A,checkHighlightMonth:k,groupListAndMap:_}=fS(),{checkRangeAutoApply:C,getRangeWithFixedDate:S,handleMultiDatesSelect:I,setMonthOrYearRange:D,setPresetDate:M}=KS(),{padZero:L}=pS(),{getMonths:O,isOutOfYearRange:B}=gS(),$=s(()=>O()),P=R(null),{selectYear:E,groupedYears:F,showYearPicker:N,toggleYearPicker:W,handleYearSelect:H,handleYear:V,isDisabled:U,setStartDate:Y}=YS(t);T(()=>{Y()});const K=e=>e?{month:lx(e),year:ox(e)}:{month:null,year:null},j=()=>r.value?Array.isArray(r.value)?r.value.map(e=>K(e)):K(r.value):K(),G=(e,t)=>{const a=o.value[e],n=j();return Array.isArray(n)?n.some(e=>e.year===a?.year&&e.month===t):a?.year===n.year&&t===n.month},Q=(e,t,a)=>{const n=j();return!!Array.isArray(n)&&i.value(t)===n[a]?.year&&e===n[a]?.month},q=(e,t)=>{if(c.value.enabled){const n=j();if(Array.isArray(r.value)&&Array.isArray(n)){const n=Q(e,t,0)||Q(e,t,1),l=rC(y(a()),{month:e,year:i.value(t)});return w(r.value,P.value,l)&&!n}return!1}return!1},Z=s(()=>e=>_($.value,t=>({active:G(e,t.value),disabled:g(t.value,b(i.value(e),p.value.minDate),A(i.value(e),p.value.maxDate))||X(p.value.disabledDates,i.value(e),t.value)||f.value.months?.includes(t.value)||!ee(p.value.allowedDates,i.value(e),t.value)||B(i.value(e)),isBetween:q(t.value,e),highlighted:k(d.value,t.value,i.value(e))}))),J=(e,t)=>rC(y(a()),{month:e,year:i.value(t)}),z=(e,t,a)=>{let l=a;if(!l&&0!==l){const t=j();l=Array.isArray(t)?t[e].month:t.month}n("update-month-year",{instance:e,year:t,month:l})},X=(e,t,n)=>{if(e instanceof Map){const a=`${L(n+1)}-${t}`;return!!e.size&&e.has(a)}return"function"==typeof e&&e(v(rC(a(),{month:n,year:t}),!0))},ee=(e,t,a)=>{if(e instanceof Map){const n=`${L(a+1)}-${t}`;return!e.size||e.has(n)}return!0};return{groupedMonths:Z,groupedYears:F,year:i,isDisabled:U,showYearPicker:N,modelValue:r,toggleYearPicker:W,handleYearSelect:H,handleYear:V,presetDate:e=>{M({value:e}),t("auto-apply")},setHoverDate:(e,t)=>{P.value=J(e,t)},selectMonth:(e,n)=>(o.value[n].month=e,z(n,o.value[n].year,e),h.value.enabled?((e,a)=>{I(J(e,a),h.value.limit),t("auto-apply",!0)})(e,n):c.value.enabled?((e,a)=>{const n=J(e,a);c.value.fixedEnd||c.value.fixedStart?r.value=S(n):r.value?m(n,r.value)&&(r.value=D(J(e,a))):r.value=[J(e,a)],x().then(()=>{C(r.value,t,r.value.length<2)})})(e,n):((e,n)=>{r.value=rC(r.value?r.value:y(a()),{month:e,year:i.value(n)}),t("auto-apply"),t("update-flow-step")})(e,n)),selectYear:(e,t)=>{E(e,t),z(t,e,null)},getModelMonthYear:j}})(0,l);return a({getSidebarProps:()=>({modelValue:b,year:w,getModelMonthYear:O,selectMonth:S,selectYear:I,handleYear:L}),presetDate:A,toggleYearPicker:e=>D(0,e)}),(a,n)=>(B(),i(NS,{collapse:e.collapse,stretch:""},{default:ie(({instances:n,wrapClass:l})=>[(B(!0),u(t,null,F(n,t=>(B(),u("div",{key:t,class:C(l)},[a.$slots["top-extra"]?N(a.$slots,"top-extra",{key:0,value:J(b)}):r("",!0),N(a.$slots,"month-year",_({ref_for:!0},{year:J(w),months:J(m)(t),years:J(g)(t),selectMonth:J(S),selectYear:J(I),instance:t}),()=>[h(RS,{items:J(m)(t),"is-last":J(c).autoApply&&!J(p).keepActionRow,height:J(p).modeHeight,"no-overlay-focus":!(!e.noOverlayFocus&&!J(c).textInput),"use-relative":"",level:0,type:"month",onSelected:e=>J(S)(e,t),onHoverValue:e=>J(k)(e,t)},d({header:ie(()=>[h(US,{items:J(g)(t),instance:t,"show-year-picker":J(y)[t],year:J(w)(t),"is-disabled":e=>J(v)(t,e),onHandleYear:e=>J(L)(t,e),onYearSelect:e=>J(M)(e,t),onToggleYearPicker:e=>J(D)(t,e?.flow,e?.show)},d({_:2},[F(J(f),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,_({ref_for:!0},t))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),_:2},[a.$slots["month-overlay-value"]?{name:"item",fn:ie(({item:e})=>[N(a.$slots,"month-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","onSelected","onHoverValue"])])],2))),128))]),_:3},8,["collapse"]))}}),GS=/* @__PURE__ */g({__name:"YearPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(e,{expose:t,emit:a}){const n=a,{modelValue:l,defaults:{config:o},rootProps:c}=TC(),{groupedYears:p,focusYear:f,selectYear:h,setHoverValue:m}=((e,t)=>{const{rootEmit:a,getDate:n,state:l,modelValue:o,rootProps:i,defaults:{highlight:r,multiDates:u,filters:c,range:d,safeDates:p}}=TC(),{getYears:f}=gS(),{isDateBetween:h,resetDate:m,resetDateTime:g,getYearFromDate:w,checkHighlightYear:v,groupListAndMap:y}=fS(),{checkRangeAutoApply:b,setMonthOrYearRange:A}=KS(),{checkMinMaxValue:k,checkMinMaxRange:_}=VC();HC(()=>{l.isTextInputDate&&(S.value=ox(n(i.startDate)))});const C=R(null),S=R();T(()=>{i.startDate&&(o.value&&i.focusStartDate||!o.value)&&(S.value=ox(n(i.startDate)))});const I=e=>!(!d.value.enabled||!Array.isArray(o.value))&&h(o.value,C.value,O(e)),D=e=>!p.value.allowedDates?.size||p.value.allowedDates.has(`${e}`),M=e=>p.value.disabledDates instanceof Map?!!p.value.disabledDates.size&&p.value.disabledDates.has(`${e}`):"function"!=typeof p.value.disabledDates||p.value.disabledDates(uC(g(b_(n())),e)),L=s(()=>y(f(),e=>{const t=(e=>Array.isArray(o.value)?o.value.some(t=>ox(t)===e):!!o.value&&ox(o.value)===e)(e.value);return{active:t,disabled:k(e.value,w(p.value.minDate),w(p.value.maxDate))||c.value.years.includes(e.value)||!D(e.value)||M(e.value),isBetween:I(e.value)&&!t,highlighted:v(r.value,e.value)}})),O=e=>uC(m(b_(n())),e);return{groupedYears:L,focusYear:S,setHoverValue:e=>{C.value=uC(m(n()),e)},selectYear:e=>{if(a("update-month-year",{instance:0,year:e,month:NaN}),u.value.enabled)return o.value?Array.isArray(o.value)&&((o.value?.map(e=>ox(e))).includes(e)?o.value=o.value.filter(t=>ox(t)!==e):o.value.push(uC(g(n()),e))):o.value=[uC(g(b_(n())),e)],t("auto-apply",!0);d.value.enabled?_(O(e),o.value)&&(o.value=A(O(e)),x().then(()=>{b(o.value,t,o.value.length<2)})):(o.value=O(e),t("auto-apply"))}}})(0,n);return t({getSidebarProps:()=>({modelValue:l,selectYear:h})}),(t,a)=>(B(),u("div",null,[t.$slots["top-extra"]?N(t.$slots,"top-extra",{key:0,value:J(l)}):r("",!0),t.$slots["month-year"]?N(t.$slots,"month-year",S(_({key:1},{years:J(p),selectYear:J(h)}))):(B(),i(RS,{key:2,items:J(p),"is-last":J(c).autoApply&&!J(o).keepActionRow,height:J(o).modeHeight,"no-overlay-focus":!(!e.noOverlayFocus&&!J(c).textInput),"focus-value":J(f),type:"year","use-relative":"",onSelected:J(h),onHoverValue:J(m)},d({_:2},[t.$slots["year-overlay-value"]?{name:"item",fn:ie(({item:e})=>[N(t.$slots,"year-overlay-value",{text:e.text,value:e.value})]),key:"0"}:void 0]),1032,["items","is-last","height","no-overlay-focus","focus-value","onSelected","onHoverValue"]))]))}}),QS={key:0,class:"dp__time_input"},qS=["data-compact","data-collapsed"],ZS=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],JS=["aria-label","disabled","data-dp-action-element","data-test-id","onKeydown","onClick"],zS=["data-test-id","aria-label","data-dp-action-element","onKeydown","onClick","onMousedown"],XS={key:0},eI=["aria-label","data-dp-action-element","data-compact"],tI=/* @__PURE__ */g({__name:"TimeInput",props:{hours:{},minutes:{},seconds:{},order:{},closeTimePickerBtn:{},disabledTimesConfig:{},validateTime:{}},emits:["update:hours","update:minutes","update:seconds","overlay-opened","overlay-closed","set-hours","set-minutes","reset-flow","mounted"],setup(e,{expose:a,emit:l}){const o=l,p=e,{getDate:m,rootEmit:g,rootProps:w,defaults:{ariaLabels:v,filters:y,config:b,range:A,multiCalendars:k,timeConfig:_}}=TC(),{checkKeyDown:x,hoursToAmPmHours:S}=pS(),{boolHtmlAttribute:I}={boolHtmlAttribute:e=>!!e||void 0},{sanitizeTime:D,groupListAndMap:M}=fS(),{transitionName:L,showTransition:O}=WC(),$=P({hours:!1,minutes:!1,seconds:!1}),E=R("AM"),W=R(null),V=R(),U=R(!1);T(()=>{o("mounted")});const K=e=>rC(m(),{hours:e.hours,minutes:e.minutes,seconds:_.value.enableSeconds?e.seconds:0,milliseconds:0}),j=s(()=>w.timePicker||_.value.timePickerInline?0:1),G=s(()=>e=>re(e,p[e])||q(e,p[e])),Q=s(()=>({hours:p.hours,minutes:p.minutes,seconds:p.seconds})),q=(e,t)=>!(!A.value.enabled||A.value.disableTimeRangeValidation||p.validateTime(e,t)),Z=(e,t)=>{if(A.value.enabled&&!A.value.disableTimeRangeValidation){const a=t?+_.value[`${e}Increment`]:-+_.value[`${e}Increment`],n=p[e]+a;return!p.validateTime(e,n)}return!1},z=s(()=>e=>!de(+p[e]+ +_.value[`${e}Increment`],e)||Z(e,!0)),X=s(()=>e=>!de(+p[e]-+_.value[`${e}Increment`],e)||Z(e,!1)),ee=(e,t)=>e_(rC(m(),e),t),te=(e,t)=>function(e,t,a){const{years:n=0,months:l=0,weeks:s=0,days:o=0,hours:i=0,minutes:r=0,seconds:u=0}=t;return Zk(e,+oC(cC(e,l+12*n,a),o+7*s,a)-1e3*(u+60*(r+60*i)))}(rC(m(),e),t),ae=s(()=>({dp__time_col:!0,dp__time_col_block:!_.value.timePickerInline,dp__time_col_reg_block:!_.value.enableSeconds&&_.value.is24&&!_.value.timePickerInline,dp__time_col_reg_inline:!_.value.enableSeconds&&_.value.is24&&_.value.timePickerInline,dp__time_col_reg_with_button:!_.value.enableSeconds&&!_.value.is24,dp__time_col_sec:_.value.enableSeconds&&_.value.is24,dp__time_col_sec_with_button:_.value.enableSeconds&&!_.value.is24})),ne=s(()=>_.value.timePickerInline&&A.value.enabled&&!k.value.count),le=s(()=>{const e=[{type:"hours"}];return _.value.enableMinutes&&e.push({type:"",separator:!0},{type:"minutes"}),_.value.enableSeconds&&e.push({type:"",separator:!0},{type:"seconds"}),e}),se=s(()=>le.value.filter(e=>!e.separator)),oe=s(()=>e=>{if("hours"===e){const e=ge(+p.hours);return{text:e<10?`0${e}`:`${e}`,value:e}}return{text:p[e]<10?`0${p[e]}`:`${p[e]}`,value:p[e]}}),re=(e,t)=>{if(!p.disabledTimesConfig)return!1;const a=p.disabledTimesConfig(p.order,"hours"===e?t:void 0);return!a[e]||!!a[e]?.includes(t)},ue=(e,t)=>"hours"!==t||"AM"===E.value?e:e+12,ce=e=>{const t=_.value.is24?24:12,a="hours"===e?t:60,n=+_.value[`${e}GridIncrement`],l=[];for(let s="hours"!==e||_.value.is24?0:n;s<a;s+=n)l.push({value:_.value.is24?s:ue(s,e),text:s<10?`0${s}`:`${s}`});return"hours"===e&&!_.value.is24&&l.unshift({value:"PM"===E.value?12:0,text:"12"}),M(l,t=>({active:!1,disabled:y.value.times[e].includes(t.value)||!de(t.value,e)||re(e,t.value)||q(e,t.value)}))},de=(e,t)=>{const a=w.minTime?K(D(w.minTime)):null,n=w.maxTime?K(D(w.maxTime)):null,l=K(D(Q.value,t,"minutes"===t||"seconds"===t?(e=>e>=0?e:59)(e):(e=>e>=0?e:23)(e)));return a&&n?(rx(l,n)||ux(l,n))&&(ix(l,a)||ux(l,a)):a?ix(l,a)||ux(l,a):!n||rx(l,n)||ux(l,n)},pe=e=>_.value[`no${e[0].toUpperCase()+e.slice(1)}Overlay`],fe=e=>{pe(e)||($[e]=!$[e],$[e]?(U.value=!0,o("overlay-opened",e)):(U.value=!1,o("overlay-closed",e)))},he=()=>{V.value&&clearTimeout(V.value)},me=(e,t=!0,a)=>{const n=t?ee:te,l=t?+_.value[`${e}Increment`]:-+_.value[`${e}Increment`];de(+p[e]+l,e)&&o(`update:${e}`,(e=>"hours"===e?ax:"minutes"===e?nx:sx)(e)(n({[e]:+p[e]},{[e]:+_.value[`${e}Increment`]}))),!a?.keyboard&&b.value.timeArrowHoldThreshold&&(V.value=setTimeout(()=>{me(e,t)},b.value.timeArrowHoldThreshold))},ge=e=>_.value.is24?e:(E.value=e>=12?"PM":"AM",S(e)),we=()=>{"PM"===E.value?(E.value="AM",o("update:hours",p.hours-12)):(E.value="PM",o("update:hours",p.hours+12)),g("am-pm-change",E.value)};return a({openChildCmp:e=>{$[e]=!0}}),(e,a)=>J(w).disabled?r("",!0):(B(),u("div",QS,[(B(!0),u(t,null,F(le.value,(n,l)=>(B(),u("div",{key:l,class:C(ae.value),"data-compact":ne.value&&!J(_).enableSeconds,"data-collapsed":ne.value&&J(_).enableSeconds},[n.separator?(B(),u(t,{key:0},[U.value?r("",!0):(B(),u(t,{key:0},[f(":")],64))],64)):(B(),u(t,{key:1},[c("button",{type:"button",class:C({dp__btn:!0,dp__inc_dec_button:!J(_).timePickerInline,dp__inc_dec_button_inline:J(_).timePickerInline,dp__tp_inline_btn_top:J(_).timePickerInline,dp__inc_dec_button_disabled:z.value(n.type),"dp--hidden-el":U.value}),"data-test-id":`${n.type}-time-inc-btn-${p.order}`,"aria-label":J(v)?.incrementValue(n.type),tabindex:"0","data-dp-action-element":j.value,onKeydown:e=>J(x)(e,()=>me(n.type,!0,{keyboard:!0}),!0),onClick:e=>J(b).timeArrowHoldThreshold?void 0:me(n.type,!0),onMousedown:e=>J(b).timeArrowHoldThreshold?me(n.type,!0):void 0,onMouseup:he},[J(_).timePickerInline?N(e.$slots,"tp-inline-arrow-up",{key:1},()=>[a[2]||(a[2]=c("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),a[3]||(a[3]=c("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):N(e.$slots,"arrow-up",{key:0},()=>[h(J(IC))])],42,ZS),c("button",{type:"button","aria-label":`${oe.value(n.type).text}-${J(v)?.openTpOverlay(n.type)}`,class:C({dp__time_display:!0,dp__time_display_block:!J(_).timePickerInline,dp__time_display_inline:J(_).timePickerInline,"dp--time-invalid":G.value(n.type),"dp--time-overlay-btn":!G.value(n.type),"dp--hidden-el":U.value}),disabled:J(I)(pe(n.type)),tabindex:"0","data-dp-action-element":j.value,"data-test-id":`${n.type}-toggle-overlay-btn-${p.order}`,onKeydown:e=>J(x)(e,()=>fe(n.type),!0),onClick:e=>fe(n.type)},[N(e.$slots,n.type,{text:oe.value(n.type).text,value:oe.value(n.type).value},()=>[f(Y(oe.value(n.type).text),1)])],42,JS),c("button",{type:"button",class:C({dp__btn:!0,dp__inc_dec_button:!J(_).timePickerInline,dp__inc_dec_button_inline:J(_).timePickerInline,dp__tp_inline_btn_bottom:J(_).timePickerInline,dp__inc_dec_button_disabled:X.value(n.type),"dp--hidden-el":U.value}),"data-test-id":`${n.type}-time-dec-btn-${p.order}`,"aria-label":J(v)?.decrementValue(n.type),tabindex:"0","data-dp-action-element":j.value,onKeydown:e=>J(x)(e,()=>me(n.type,!1,{keyboard:!0}),!0),onClick:e=>J(b).timeArrowHoldThreshold?void 0:me(n.type,!1),onMousedown:e=>J(b).timeArrowHoldThreshold?me(n.type,!1):void 0,onMouseup:he},[J(_).timePickerInline?N(e.$slots,"tp-inline-arrow-down",{key:1},()=>[a[4]||(a[4]=c("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_l"},null,-1)),a[5]||(a[5]=c("span",{class:"dp__tp_inline_btn_bar dp__tp_btn_in_r"},null,-1))]):N(e.$slots,"arrow-down",{key:0},()=>[h(J(DC))])],42,zS)],64))],10,qS))),128)),J(_).is24?r("",!0):(B(),u("div",XS,[N(e.$slots,"am-pm-button",{toggle:we,value:E.value},()=>[c("button",{ref_key:"amPmButton",ref:W,type:"button",class:"dp__pm_am_button",role:"button","aria-label":J(v)?.amPmButton,tabindex:"0","data-dp-action-element":j.value,"data-compact":ne.value,onClick:we,onKeydown:a[0]||(a[0]=e=>J(x)(e,()=>we(),!0))},Y(E.value),41,eI)])])),(B(!0),u(t,null,F(se.value,(t,l)=>(B(),i(n,{key:l,name:J(L)($[t.type]),css:J(O)},{default:ie(()=>[$[t.type]?(B(),i(RS,{key:0,items:ce(t.type),"is-last":J(w).autoApply&&!J(b).keepActionRow,type:t.type,"aria-labels":J(v),level:J(_).timePickerInline||J(w).timePicker?1:2,"overlay-label":J(v).timeOverlay?.(t.type),onSelected:e=>((e,t)=>(fe(e),o(`update:${e}`,t)))(t.type,e),onToggle:e=>fe(t.type),onResetFlow:a[1]||(a[1]=t=>e.$emit("reset-flow"))},d({"button-icon":ie(()=>[N(e.$slots,"clock-icon",{},()=>[e.$slots["clock-icon"]?r("",!0):(B(),i(H(J(_).timePickerInline?J(kC):J(SC)),{key:0}))])]),_:2},[e.$slots[`${t.type}-overlay-value`]?{name:"item",fn:ie(({item:a})=>[N(e.$slots,`${t.type}-overlay-value`,{text:a.text,value:a.value})]),key:"0"}:void 0,e.$slots[`${t.type}-overlay-header`]?{name:"header",fn:ie(()=>[N(e.$slots,`${t.type}-overlay-header`,{toggle:()=>fe(t.type)})]),key:"1"}:void 0]),1032,["items","is-last","type","aria-labels","level","overlay-label","onSelected","onToggle"])):r("",!0)]),_:2},1032,["name","css"]))),128))]))}}),aI=["data-dp-mobile"],nI=["aria-label","tabindex"],lI=["role","aria-label","tabindex"],sI=["aria-label"],oI=/* @__PURE__ */g({__name:"TimePicker",props:{hours:{},minutes:{},seconds:{},disabledTimesConfig:{type:[Function,null]},noOverlayFocus:{type:Boolean},validateTime:{type:Function}},emits:["update:hours","update:minutes","update:seconds","mount","reset-flow"],setup(e,{expose:a,emit:l}){const o=l,p=e,{rootEmit:f,setState:m,modelValue:g,rootProps:w,defaults:{ariaLabels:v,textInput:y,config:b,range:A,timeConfig:k}}=TC(),{isModelAuto:S}=fS(),{checkKeyDown:D,findFocusableEl:M}=pS(),{transitionName:L,showTransition:O}=WC(),{hideNavigationButtons:$}=OS(),{isMobile:P}=hS(),E=X(),W=ee("overlay"),H=ee("close-tp-btn"),V=ee("tp-input"),U=R(!1);T(()=>{o("mount")});const Y=s(()=>!A.value.enabled||!w.modelAuto||S(g.value)),K=R(!1),j=e=>({hours:Array.isArray(p.hours)?p.hours[e]:p.hours,minutes:Array.isArray(p.minutes)?p.minutes[e]:p.minutes,seconds:Array.isArray(p.seconds)?p.seconds[e]:p.seconds}),G=s(()=>{const e=[];if(A.value.enabled)for(let t=0;t<2;t++)e.push(j(t));else e.push(j(0));return e}),Q=(e,t=!1,a="")=>{t||o("reset-flow"),K.value=e,m("arrowNavigationLevel",e?1:0),f("overlay-toggle",{open:e,overlay:BC.time}),x(()=>{""!==a&&V.value?.[0]&&V.value[0].openChildCmp(a)})},q=s(()=>({dp__btn:!0,dp__button:!0,dp__button_bottom:w.autoApply&&!b.value.keepActionRow})),Z=bS(E,wS.TimeInput),z=(e,t,a)=>A.value.enabled?0===t?[e,G.value[1][a]]:[G.value[0][a],e]:e,te=e=>{o("update:hours",e)},ae=e=>{o("update:minutes",e)},ne=e=>{o("update:seconds",e)},le=()=>{if(W.value&&!y.value.enabled&&!p.noOverlayFocus){const e=M(W.value);e&&e.focus({preventScroll:!0})}},oe=e=>{U.value=!1,f("overlay-toggle",{open:!1,overlay:e})},ue=e=>{U.value=!0,f("overlay-toggle",{open:!0,overlay:e})};return a({toggleTimePicker:Q}),(a,l)=>(B(),u("div",{class:"dp--tp-wrap","data-dp-mobile":J(P)},[J(w).timePicker||J(k).timePickerInline?r("",!0):re((B(),u("button",{key:0,ref:"open-tp-btn",type:"button","data-dp-action-element":"0",class:C({...q.value,"dp--hidden-el":K.value}),"aria-label":J(v)?.openTimePicker,tabindex:e.noOverlayFocus?void 0:0,"data-test-id":"open-time-picker-btn",onKeydown:l[0]||(l[0]=e=>J(D)(e,()=>Q(!0))),onClick:l[1]||(l[1]=e=>Q(!0))},[N(a.$slots,"clock-icon",{},()=>[h(J(SC))])],42,nI)),[[se,!J($)("time")]]),h(n,{name:J(L)(K.value),css:J(O)&&!J(k).timePickerInline},{default:ie(()=>[K.value||J(w).timePicker||J(k).timePickerInline?(B(),u("div",{key:0,ref:"overlay",role:J(k).timePickerInline?void 0:"dialog",class:C({dp__overlay:!J(k).timePickerInline,"dp--overlay-absolute":!J(w).timePicker&&!J(k).timePickerInline,"dp--overlay-relative":J(w).timePicker}),style:I(J(w).timePicker?{height:`${J(b).modeHeight}px`}:void 0),"aria-label":J(v)?.timePicker,tabindex:J(k).timePickerInline?void 0:0},[c("div",{class:C(J(k).timePickerInline?"dp__time_picker_inline_container":"dp__overlay_container dp__container_flex dp__time_picker_overlay_container"),style:{display:"flex"}},[N(a.$slots,"time-picker-overlay",{hours:e.hours,minutes:e.minutes,seconds:e.seconds,setHours:te,setMinutes:ae,setSeconds:ne},()=>[c("div",{class:C(J(k).timePickerInline?"dp__flex":"dp__overlay_row dp__flex_row")},[(B(!0),u(t,null,F(G.value,(t,n)=>re((B(),i(tI,_({key:n},{ref_for:!0},{order:n,hours:t.hours,minutes:t.minutes,seconds:t.seconds,closeTimePickerBtn:H.value,disabledTimesConfig:e.disabledTimesConfig,disabled:0===n?J(A).fixedStart:J(A).fixedEnd},{ref_for:!0,ref:"tp-input","validate-time":(t,a)=>e.validateTime(t,z(a,n,t)),"onUpdate:hours":e=>te(z(e,n,"hours")),"onUpdate:minutes":e=>ae(z(e,n,"minutes")),"onUpdate:seconds":e=>ne(z(e,n,"seconds")),onMounted:le,onOverlayClosed:oe,onOverlayOpened:ue}),d({_:2},[F(J(Z),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,_({ref_for:!0},t))])}))]),1040,["validate-time","onUpdate:hours","onUpdate:minutes","onUpdate:seconds"])),[[se,0===n||Y.value]])),128))],2)]),J(w).timePicker||J(k).timePickerInline?r("",!0):re((B(),u("button",{key:0,ref:"close-tp-btn","data-dp-action-element":"1",type:"button",class:C({...q.value,"dp--hidden-el":U.value}),"aria-label":J(v)?.closeTimePicker,tabindex:"0",onKeydown:l[2]||(l[2]=e=>J(D)(e,()=>Q(!1))),onClick:l[3]||(l[3]=e=>Q(!1))},[N(a.$slots,"calendar-icon",{},()=>[h(J(kC))])],42,sI)),[[se,!J($)("time")]])],2)],14,lI)):r("",!0)]),_:3},8,["name","css"])],8,aI))}}),iI=e=>{const{getDate:t,modelValue:a,time:n,rootProps:l,defaults:{range:o,timeConfig:i}}=TC(),{isDateEqual:r,setTime:u}=fS(),c=(e,t)=>Array.isArray(n[e])?n[e][t]:n[e],d=e=>i.value.enableSeconds?Array.isArray(n.seconds)?n.seconds[e]:n.seconds:0,p=(e,t)=>{n[e]=t},f=s(()=>l.modelAuto&&o.value.enabled?!!Array.isArray(a.value)&&a.value.length>1:o.value.enabled),h=(e,t)=>{const l=Object.fromEntries(Object.keys(n).map(a=>a===e?[a,t]:[a,n[a]].slice()));if(f.value&&!o.value.disableTimeRangeValidation){const e=e=>a.value?u({hours:l.hours[e],minutes:l.minutes[e],seconds:l.seconds[e]},a.value[e]):null,t=e=>function(e){const t=Jk(e,void 0);return t.setMilliseconds(0),t}(a.value[e]);return!(r(e(0),e(1))&&(ix(e(0),t(1))||rx(e(1),t(0))))}return!0},m=(t,a)=>{h(t,a)&&(p(t,a),e&&e())},g=e=>{m("hours",e)},w=e=>{m("minutes",e)},v=e=>{m("seconds",e)};return{assignTime:p,updateHours:g,updateMinutes:w,updateSeconds:v,getSetDateTime:(e,a)=>e?u(void 0!==a?{hours:c("hours",a),minutes:c("minutes",a),seconds:d(a)}:{hours:n.hours,minutes:n.minutes,seconds:d()},e):function(e,t){const a=Jk(e,void 0);return a.setSeconds(t),a}(t(),d(a)),updateTimeValues:(e,t)=>{g(e.hours),w(e.minutes),v(e.seconds),a.value&&t(a.value)},getSecondsValue:d,assignStartTime:e=>{if(e){const t=Array.isArray(e),a=t?[+e[0].hours,+e[1].hours]:+e.hours,n=t?[+e[0].minutes,+e[1].minutes]:+e.minutes,l=t?[+(e[0].seconds??0),+(e[1].seconds??0)]:+(e.seconds??0);p("hours",a),p("minutes",n),i.value.enableSeconds&&p("seconds",l)}},validateTime:h,disabledTimesConfig:s(()=>(e,t)=>{if(Array.isArray(l.disabledTimes)){const{disabledArr:a,hours:s}=((e,t)=>{const a={hours:Array.isArray(n.hours)?n.hours[e]:n.hours,disabledArr:[]};return(t||0===t)&&(a.hours=t),Array.isArray(l.disabledTimes)&&(a.disabledArr=o.value.enabled&&Array.isArray(l.disabledTimes[e])?l.disabledTimes[e]:l.disabledTimes),a})(e,t),i=a.filter(e=>+e.hours===s);return"*"===i[0]?.minutes?{hours:[s],minutes:void 0,seconds:void 0}:{hours:[],minutes:i?.map(e=>+e.minutes)??[],seconds:i?.map(e=>e.seconds?+e.seconds:void 0)??[]}}return{hours:[],minutes:[],seconds:[]}})}},rI=/* @__PURE__ */g({__name:"TimePickerSolo",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["time-update","mount","reset-flow","update-flow-step"],setup(e,{expose:t,emit:a}){const n=a,l=bS(X(),wS.TimePicker),s=ee("time-input"),{time:o,modelValue:r,disabledTimesConfig:u,updateTime:p,validateTime:f}=(e=>{const{getDate:t,time:a,modelValue:n,state:l,defaults:{startTime:s,range:o,timeConfig:i}}=TC(),{getTimeObj:r}=fS();HC(()=>{l.isTextInputDate&&v()});const{updateTimeValues:u,getSetDateTime:c,assignTime:d,assignStartTime:p,disabledTimesConfig:f,validateTime:h}=iI(function(){e("update-flow-step")}),m=e=>{const{hours:t,minutes:a,seconds:n}=e;return{hours:+t,minutes:+a,seconds:n?+n:0}},g=()=>{if(i.value.startTime){if(Array.isArray(i.value.startTime)){const e=m(i.value.startTime[0]),a=m(i.value.startTime[1]);return[rC(t(),e),rC(t(),a)]}const e=m(i.value.startTime);return rC(t(),e)}return o.value.enabled?[null,null]:null},w=(e,t,a)=>{d("hours",e),d("minutes",t),d("seconds",i.value.enableSeconds?a:0)},v=()=>{const[e,a]=(e=>Array.isArray(e)?[r(t(e[0])),r(t(e[1]))]:[r(e??t())])(n.value);return o.value.enabled?w([e.hours,a.hours],[e.minutes,a.minutes],[e.seconds,a.seconds]):w(e.hours,e.minutes,e.seconds)};T(()=>(p(s.value),n.value?v():(()=>{if(o.value.enabled){const[e,t]=g();n.value=[c(e,0),c(t,1)]}else n.value=c(g())})()));const y=()=>{Array.isArray(n.value)?n.value=n.value.map((e,t)=>e&&c(e,t)):n.value=c(n.value),e("time-update")};return{modelValue:n,time:a,disabledTimesConfig:f,validateTime:h,updateTime:e=>{u(e,y)}}})(n);return T(()=>{n("mount")}),t({getSidebarProps:()=>({modelValue:r,time:o,updateTime:p}),toggleTimePicker:(e,t=!1,a="")=>{s.value?.toggleTimePicker(e,t,a)}}),(e,t)=>(B(),i(NS,{"multi-calendars":0,stretch:""},{default:ie(({wrapClass:a})=>[c("div",{class:C(a)},[h(oI,_({ref:"time-input"},e.$props,{hours:J(o).hours,minutes:J(o).minutes,seconds:J(o).seconds,"disabled-times-config":J(u),"validate-time":J(f),"onUpdate:hours":t[0]||(t[0]=e=>J(p)({hours:e,minutes:J(o).minutes,seconds:J(o).seconds})),"onUpdate:minutes":t[1]||(t[1]=e=>J(p)({hours:J(o).hours,minutes:e,seconds:J(o).seconds})),"onUpdate:seconds":t[2]||(t[2]=e=>J(p)({hours:J(o).hours,minutes:J(o).minutes,seconds:e})),onResetFlow:t[3]||(t[3]=t=>e.$emit("reset-flow"))}),d({_:2},[F(J(l),(t,a)=>({name:t,fn:ie(a=>[N(e.$slots,t,S(v(a)))])}))]),1040,["hours","minutes","seconds","disabled-times-config","validate-time"])],2)]),_:3}))}}),uI={class:"dp--header-wrap"},cI={key:0,class:"dp__month_year_wrap"},dI={key:0},pI={class:"dp__month_year_wrap"},fI=["data-dp-element","aria-label","data-test-id","onClick","onKeydown"],hI=/* @__PURE__ */g({__name:"DpHeader",props:{month:{},year:{},instance:{},years:{},months:{},menuWrapRef:{}},emits:["mount","reset-flow","update-month-year"],setup(e,{expose:a,emit:l}){const o=l,p=e,{rootEmit:m,rootProps:g,modelValue:w,defaults:{ariaLabels:y,filters:b,config:A,highlight:k,safeDates:x,ui:I}}=TC(),{transitionName:D,showTransition:M}=WC(),{showLeftIcon:L,showRightIcon:O}=OS(),{handleMonthYearChange:$,isDisabled:P,updateMonthYear:E}=((e,t)=>{const{getDate:a,rootProps:n,defaults:{filters:l}}=TC(),{validateMonthYearInRange:o,validateMonthYear:i}=VC(),r=(e,t)=>{let a=e;return l.value.months.includes(lx(a))?(a=t?Xk(e,1):cC(e,1),r(a,t)):a},u=(e,t)=>{let a=e;return l.value.years.includes(ox(a))?(a=t?d_(e,1):dC(e,1),u(a,t)):a},c=(e,a,n=!1)=>{t("update-month-year",{month:e,year:a,fromNav:n})};return{handleMonthYearChange:(t,s=!1)=>{const i=rC(a(),{month:e.month,year:e.year});let d=t?Xk(i,1):cC(i,1);n.disableYearSelect&&(d=uC(d,e.year));let p=lx(d),f=ox(d);l.value.months.includes(p)&&(d=r(d,t),p=lx(d),f=ox(d)),l.value.years.includes(f)&&(d=u(d,t),f=ox(d)),o(p,f,t,n.preventMinMaxNavigation)&&c(p,f,s)},isDisabled:s(()=>t=>i(rC(a(),{month:e.month,year:e.year}),n.preventMinMaxNavigation,t)),updateMonthYear:c}})(p,o),{getMaxMonth:W,getMinMonth:V,getYearFromDate:U,groupListAndMap:K,checkHighlightYear:j,checkHighlightMonth:G}=fS(),{checkKeyDown:Q}=pS(),{formatYear:q}=mS(),{checkMinMaxValue:Z}=VC(),{boolHtmlAttribute:z}={boolHtmlAttribute:e=>!!e||void 0},X=R(!1),ee=R(!1),te=R(!1);T(()=>{o("mount")});const ae=e=>({get:()=>p[e],set:t=>{const a=e===LC.month?LC.year:LC.month;o("update-month-year",{[e]:t,[a]:p[a]}),e===LC.month?de(!0):pe(!0)}}),ne=s(ae(LC.month)),le=s(ae(LC.year)),se=s(()=>e=>({month:p.month,year:p.year,items:e===LC.month?p.months:p.years,instance:p.instance,updateMonthYear:E,toggle:e===LC.month?de:pe})),oe=s(()=>p.months.find(e=>e.value===p.month)||{text:"",value:0}),re=s(()=>K(p.months,e=>({active:p.month===e.value,disabled:Z(e.value,V(p.year,x.value.minDate),W(p.year,x.value.maxDate))||b.value.months.includes(e.value),highlighted:G(k.value,e.value,p.year)}))),ue=s(()=>K(p.years,e=>({active:p.year===e.value,disabled:Z(e.value,U(x.value.minDate),U(x.value.maxDate))||b.value.years.includes(e.value),highlighted:j(k.value,e.value)}))),ce=(e,t,a)=>{e.value=void 0===a?!e.value:a,e.value?(te.value=!0,m("overlay-toggle",{open:!0,overlay:t})):(te.value=!1,m("overlay-toggle",{open:!1,overlay:t}))},de=(e=!1,t)=>{fe(e),ce(X,BC.month,t)},pe=(e=!1,t)=>{fe(e),ce(ee,BC.year,t)},fe=e=>{e||o("reset-flow")},he=s(()=>[{type:LC.month,index:1,toggle:de,modelValue:ne.value,updateModelValue:e=>ne.value=e,text:oe.value.text,showSelectionGrid:X.value,items:re.value,ariaLabel:y.value?.openMonthsOverlay,overlayLabel:y.value.monthPicker?.(!0)??void 0},{type:LC.year,index:2,toggle:pe,modelValue:le.value,updateModelValue:e=>le.value=e,text:q(p.year),showSelectionGrid:ee.value,items:ue.value,ariaLabel:y.value?.openYearsOverlay,overlayLabel:y.value.yearPicker?.(!0)??void 0}]),me=s(()=>g.disableYearSelect?[he.value[0]]:g.yearFirst?[...he.value].reverse():he.value);return a({toggleMonthPicker:de,toggleYearPicker:pe,handleMonthYearChange:$}),(a,l)=>(B(),u("div",uI,[a.$slots["month-year"]?(B(),u("div",cI,[N(a.$slots,"month-year",S(v({month:e.month,year:e.year,months:e.months,years:e.years,updateMonthYear:J(E),handleMonthYearChange:J($),instance:e.instance,isDisabled:J(P)})))])):(B(),u(t,{key:1},[a.$slots["top-extra"]?(B(),u("div",dI,[N(a.$slots,"top-extra",{value:J(w)})])):r("",!0),c("div",pI,[J(L)(e.instance)&&!J(g).vertical?(B(),i(HS,{key:0,"aria-label":J(y)?.prevMonth,disabled:J(z)(J(P)(!1)),class:C(J(I)?.navBtnPrev),"el-name":"action-prev",onActivate:l[0]||(l[0]=e=>J($)(!1,!0))},{default:ie(()=>[a.$slots["arrow-left"]?N(a.$slots,"arrow-left",{key:0}):r("",!0),a.$slots["arrow-left"]?r("",!0):(B(),i(J(xC),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r("",!0),c("div",{class:C(["dp__month_year_wrap",{dp__year_disable_select:J(g).disableYearSelect}])},[(B(!0),u(t,null,F(me.value,l=>(B(),u(t,{key:l.type},[c("button",{type:"button","data-dp-element":`overlay-${l.type}`,class:C(["dp__btn dp__month_year_select",{"dp--hidden-el":te.value}]),"aria-label":`${l.text}-${l.ariaLabel}`,"data-test-id":`${l.type}-toggle-overlay-${e.instance}`,tabindex:"0","data-dp-action-element":"0",onClick:e=>l.toggle(!1),onKeydown:e=>J(Q)(e,()=>l.toggle(),!0)},[a.$slots[l.type]?N(a.$slots,l.type,{key:0,text:l.text,value:p[l.type]}):r("",!0),a.$slots[l.type]?r("",!0):(B(),u(t,{key:1},[f(Y(l.text),1)],64))],42,fI),h(n,{name:J(D)(l.showSelectionGrid),css:J(M)},{default:ie(()=>[l.showSelectionGrid?(B(),i(RS,{key:0,items:l.items,"is-last":J(g).autoApply&&!J(A).keepActionRow,"skip-button-ref":!1,type:l.type,"header-refs":[],"menu-wrap-ref":e.menuWrapRef,"overlay-label":l.overlayLabel,onSelected:l.updateModelValue,onToggle:l.toggle},d({"button-icon":ie(()=>[a.$slots["calendar-icon"]?N(a.$slots,"calendar-icon",{key:0}):r("",!0),a.$slots["calendar-icon"]?r("",!0):(B(),i(J(kC),{key:1}))]),_:2},[a.$slots[`${l.type}-overlay-value`]?{name:"item",fn:ie(({item:e})=>[N(a.$slots,`${l.type}-overlay-value`,{text:e.text,value:e.value})]),key:"0"}:void 0,a.$slots[`${l.type}-overlay`]?{name:"overlay",fn:ie(()=>[N(a.$slots,`${l.type}-overlay`,_({ref_for:!0},se.value(l.type)))]),key:"1"}:void 0,a.$slots[`${l.type}-overlay-header`]?{name:"header",fn:ie(()=>[N(a.$slots,`${l.type}-overlay-header`,{toggle:l.toggle})]),key:"2"}:void 0]),1032,["items","is-last","type","menu-wrap-ref","overlay-label","onSelected","onToggle"])):r("",!0)]),_:2},1032,["name","css"])],64))),128))],2),J(L)(e.instance)&&J(g).vertical?(B(),i(HS,{key:1,"aria-label":J(y)?.prevMonth,"el-name":"action-prev",disabled:J(z)(J(P)(!1)),class:C(J(I)?.navBtnPrev),onActivate:l[1]||(l[1]=e=>J($)(!1,!0))},{default:ie(()=>[a.$slots["arrow-up"]?N(a.$slots,"arrow-up",{key:0}):r("",!0),a.$slots["arrow-up"]?r("",!0):(B(),i(J(IC),{key:1}))]),_:3},8,["aria-label","disabled","class"])):r("",!0),J(O)(e.instance)?(B(),i(HS,{key:2,ref:"rightIcon","el-name":"action-next",disabled:J(z)(J(P)(!0)),"aria-label":J(y)?.nextMonth,class:C(J(I)?.navBtnNext),onActivate:l[2]||(l[2]=e=>J($)(!0,!0))},{default:ie(()=>[a.$slots[J(g).vertical?"arrow-down":"arrow-right"]?N(a.$slots,J(g).vertical?"arrow-down":"arrow-right",{key:0}):r("",!0),a.$slots[J(g).vertical?"arrow-down":"arrow-right"]?r("",!0):(B(),i(H(J(g).vertical?J(DC):J(CC)),{key:1}))]),_:3},8,["disabled","aria-label","class"])):r("",!0)])],64))]))}}),mI={class:"dp__calendar_header",role:"row"},gI={key:0,class:"dp__calendar_header_item",role:"gridcell"},wI=["aria-label"],vI={key:0,class:"dp__calendar_item dp__week_num",role:"gridcell"},yI={class:"dp__cell_inner"},bI=["id","aria-selected","aria-disabled","aria-label","tabindex","data-test-id","data-dp-element-active","onClick","onTouchend","onKeydown","onMouseenter","onMouseleave","onMousedown"],AI=/* @__PURE__ */g({__name:"DpCalendar",props:{instance:{},mappedDates:{},month:{},year:{}},emits:["mount","select-date","set-hover-date","handle-scroll","handle-swipe"],setup(e,{expose:a,emit:l}){const o=l,i=e,{getDate:d,rootEmit:p,rootProps:m,defaults:{transitions:g,config:w,ariaLabels:v,multiCalendars:y,weekNumbers:b,multiDates:A,ui:k}}=TC(),{isDateAfter:_,isDateEqual:S,resetDateTime:D,getCellId:M}=fS(),{checkKeyDown:L,checkStopPropagation:$,isTouchDevice:E}=pS(),{formatWeekDay:W}=mS(),H=ee("calendar-wrap"),V=ee("active-tooltip"),K=R([]),j=R(null),G=R(!0),Q=R(!1),q=R(""),Z=R({bottom:"",left:"",transform:""}),z=R({left:"50%"});!function(e,t={}){const{threshold:a=50,onSwipe:n,onSwipeEnd:l,onSwipeStart:o,passive:i=!0}=t,r=P({x:0,y:0}),u=P({x:0,y:0}),c=s(()=>r.x-u.x),d=s(()=>r.y-u.y),{max:p,abs:f}=Math,h=s(()=>p(f(c.value),f(d.value))>=a),m=U(!1),g=s(()=>h.value?f(c.value)>f(d.value)?c.value>0?"left":"right":d.value>0?"up":"down":"none"),w=e=>[e.touches[0].clientX,e.touches[0].clientY],v=(e,t)=>{u.x=e,u.y=t},y={passive:i,capture:!i},b=[mA(e,"touchstart",e=>{if(1!==e.touches.length)return;const[t,a]=w(e);((e,t)=>{r.x=e,r.y=t})(t,a),v(t,a),null==o||o(e)},y),mA(e,"touchmove",e=>{if(1!==e.touches.length)return;const[t,a]=w(e);v(t,a),y.capture&&!y.passive&&Math.abs(c.value)>Math.abs(d.value)&&e.preventDefault(),!m.value&&h.value&&(m.value=!0),m.value&&(null==n||n(e))},y),mA(e,["touchend","touchcancel"],e=>{m.value&&(null==l||l(e,g.value)),m.value=!1},y)]}(H,{onSwipeEnd:(e,t)=>{w.value.noSwipe||(m.vertical?("up"===t||"down"===t)&&o("handle-swipe","up"===t?"left":"right"):("left"===t||"right"===t)&&o("handle-swipe","right"===t?"left":"right"))}});const X=s(()=>m.calendar?m.calendar(i.mappedDates):i.mappedDates),te=s(()=>m.dayNames?Array.isArray(m.dayNames)?m.dayNames:m.dayNames():me());T(()=>{o("mount",{cmp:"calendar",dayRefs:K.value}),w.value.monthChangeOnScroll&&H.value&&H.value.addEventListener("wheel",ue,{passive:!1})}),O(()=>{w.value.monthChangeOnScroll&&H.value&&H.value.removeEventListener("wheel",ue)});const ae=e=>e?m.vertical?"vNext":"next":m.vertical?"vPrevious":"previous",ne=s(()=>({...k.value.calendar})),le=s(()=>e=>{const t=(e=>({type:"dot",...e}))(e);return{dp__marker_dot:"dot"===t.type,dp__marker_line:"line"===t.type}}),se=s(()=>e=>S(e,j.value)),oe=s(()=>({dp__calendar:!0,dp__calendar_next:y.value.count>0&&0!==i.instance})),re=s(()=>e=>!m.hideOffsetDates||e.current),ue=e=>{w.value.monthChangeOnScroll&&(e.preventDefault(),o("handle-scroll",e))},de=e=>b.value?"local"===b.value.type?B_(e.value,{weekStartsOn:+m.weekStart,locale:m.locale}):"iso"===b.value.type?L_(e.value):"function"==typeof b.value.type?b.value.type(e.value):"":"",pe=e=>{const t=e[0];return b.value?.hideOnOffsetDates?e.some(e=>e.current)?de(t):"":de(t)},fe=(e,t,a=!0)=>{!a&&E()||(!A.value.enabled||w.value.allowPreventDefault)&&($(e,w.value),o("select-date",t))},he=e=>{$(e,w.value)},me=()=>{const e=d();return w_({start:n_(e,{locale:m.locale,weekStartsOn:+m.weekStart}),end:A_(e,{locale:m.locale,weekStartsOn:+m.weekStart})}).map(e=>W(e))};return a({triggerTransition:(e,t)=>{if(m.transitions){const a=D(rC(d(),{month:i.month,year:i.year}));q.value=_(D(rC(d(),{month:e,year:t})),a)?g.value[ae(!0)]:g.value[ae(!1)],G.value=!1,x(()=>{G.value=!0})}}}),(e,a)=>(B(),u("div",{class:C(oe.value)},[c("div",{ref:"calendar-wrap",class:C(ne.value),role:"grid"},[c("div",mI,[J(b)?(B(),u("div",gI,Y(J(b).label),1)):r("",!0),(B(!0),u(t,null,F(te.value,(t,a)=>(B(),u("div",{key:a,class:"dp__calendar_header_item",role:"gridcell","data-test-id":"calendar-header","aria-label":J(v)?.weekDay?.(a)},[N(e.$slots,"calendar-header",{day:t,index:a},()=>[f(Y(t),1)])],8,wI))),128))]),a[2]||(a[2]=c("div",{class:"dp__calendar_header_separator"},null,-1)),h(n,{name:q.value,css:!!J(g)},{default:ie(()=>[G.value?(B(),u("div",{key:0,class:"dp__calendar",role:"rowgroup",onMouseleave:a[1]||(a[1]=e=>Q.value=!1)},[(B(!0),u(t,null,F(X.value,(n,l)=>(B(),u("div",{key:l,class:"dp__calendar_row",role:"row"},[J(b)?(B(),u("div",vI,[c("div",yI,Y(pe(n.days)),1)])):r("",!0),(B(!0),u(t,null,F(n.days,(n,s)=>(B(),u("div",{id:J(M)(n.value),ref_for:!0,ref:e=>((e,t,a)=>{e&&(Array.isArray(K.value[t])?K.value[t][a]=e:K.value[t]=[e])})(e,l,s),key:s+l,role:"gridcell",class:"dp__calendar_item","aria-selected":(n.classData.dp__active_date||n.classData.dp__range_start||n.classData.dp__range_end)??void 0,"aria-disabled":n.classData.dp__cell_disabled||void 0,"aria-label":J(v)?.day?.(n),tabindex:!n.current&&J(m).hideOffsetDates?void 0:0,"data-test-id":J(M)(n.value),"data-dp-element-active":n.classData.dp__active_date?0:void 0,"data-dp-action-element":"0",onClick:ce(e=>fe(e,n),["prevent"]),onTouchend:e=>fe(e,n,!1),onKeydown:t=>J(L)(t,()=>e.$emit("select-date",n)),onMouseenter:e=>(async(e,t,a)=>{if(Q.value&&A.value.enabled&&A.value.dragSelect)return o("select-date",e);if(o("set-hover-date",e),e.marker?.tooltip?.length){if(m.hideOffsetDates&&!e.current)return;await(async(e,t,a)=>{const n=hA(K.value?.[t]?.[a]);n&&(e.marker?.customPosition&&e.marker?.tooltip?.length?Z.value=e.marker.customPosition(n):await(async(e,t)=>{const{width:a,height:n}=e.getBoundingClientRect();j.value=t.value;let l={left:a/2+"px"},s=-50;if(await x(),V.value?.[0]){const{left:e,width:t}=V.value[0].getBoundingClientRect();e<0&&(l={left:"0"},s=0,z.value.left=a/2+"px"),globalThis.innerWidth<e+t&&(l={right:"0"},s=0,z.value.left=t-a/2+"px")}Z.value={bottom:`${n}px`,...l,transform:`translateX(${s}%)`}})(n,e),p("tooltip-open",e.marker))})(e,t,a)}})(n,l,s),onMouseleave:e=>(e=>{j.value&&(j.value=null,Z.value=structuredClone({bottom:"",left:"",transform:""}),p("tooltip-close",e.marker))})(n),onMousedown:e=>(e=>{A.value.enabled&&A.value.dragSelect?(Q.value=!0,o("select-date",e)):A.value.enabled&&o("select-date",e)})(n),onMouseup:a[0]||(a[0]=e=>Q.value=!1)},[c("div",{class:C(["dp__cell_inner",n.classData])},[e.$slots.day&&re.value(n)?N(e.$slots,"day",{key:0,day:+n.text,date:n.value}):r("",!0),e.$slots.day?r("",!0):(B(),u(t,{key:1},[f(Y(n.text),1)],64)),n.marker&&re.value(n)?N(e.$slots,"marker",{key:2,marker:n.marker,day:+n.text,date:n.value},()=>[c("div",{class:C(le.value(n.marker)),style:I(n.marker.color?{backgroundColor:n.marker.color}:{})},null,6)]):r("",!0),se.value(n.value)?(B(),u("div",{key:3,ref_for:!0,ref:"active-tooltip",class:"dp__marker_tooltip",style:I(Z.value)},[n.marker?.tooltip?(B(),u("div",{key:0,class:"dp__tooltip_content",onClick:he},[(B(!0),u(t,null,F(n.marker.tooltip,(t,a)=>(B(),u("div",{key:a,class:"dp__tooltip_text"},[N(e.$slots,"marker-tooltip",{tooltip:t,day:n.value},()=>[c("div",{class:"dp__tooltip_mark",style:I(t.color?{backgroundColor:t.color}:{})},null,4),c("div",null,Y(t.text),1)])]))),128)),c("div",{class:"dp__arrow_bottom_tp",style:I(z.value)},null,4)])):r("",!0)],4)):r("",!0)],2)],40,bI))),128))]))),128))],32)):r("",!0)]),_:3},8,["name","css"])],2)],2))}}),kI=(e,t,a,n)=>{const l=R([]),o=R(/* @__PURE__ */new Date),i=R(),{getDate:r,rootEmit:u,calendars:c,month:d,year:p,time:f,modelValue:h,rootProps:m,today:g,state:w,defaults:{multiCalendars:v,startTime:y,range:b,config:A,safeDates:k,multiDates:_,timeConfig:C,flow:S}}=TC(),{validateMonthYearInRange:I,isDisabled:D,isDateRangeAllowed:M,checkMinMaxRange:L}=VC(),{updateTimeValues:O,getSetDateTime:B,assignTime:$,assignStartTime:P,validateTime:E,disabledTimesConfig:F}=iI(n),{formatDay:N}=mS(),{resetDateTime:W,setTime:H,isDateBefore:V,isDateEqual:U,getDaysInBetween:Y}=fS(),{checkRangeAutoApply:K,getRangeWithFixedDate:j,handleMultiDatesSelect:G,setPresetDate:Q}=KS(),{getMapDate:q}=pS();HC(()=>ee(w.isTextInputDate));const Z=(e,t,a,n=!1)=>{(e=>!(A.value.keepViewOnOffsetClick&&!e&&i.value))(n)&&(c.value[e]??=c.value[e]={month:0,year:0},c.value[e].month=t??c.value[e]?.month,c.value[e].year=a??c.value[e]?.year)},J=()=>{m.autoApply&&t("select-date")},z=()=>{y.value&&P(y.value)};T(()=>{h.value||(re(),z()),ee(!0),m.focusStartDate&&m.startDate&&re()});const X=s(()=>!(S.value?.steps?.length&&!S.value?.partial)||e.flowStep===S.value.steps.length),ee=(e=!1)=>h.value?Array.isArray(h.value)?(l.value=h.value,le(e)):ne(h.value,e):v.value.count&&e&&!m.startDate?ae(r(),e):void 0,te=e=>{const t=Xk(e,1);return{month:lx(t),year:ox(t)}},ae=(e=r(),t=!1)=>{if((!v.value.count||!v.value.static||t)&&Z(0,lx(e),ox(e)),v.value.count&&(!h.value||Array.isArray(h.value)&&b.value.enabled&&lx(h.value[0])===lx(h.value[1]??h.value[0])||!v.value.solo)&&(!v.value.solo||t))for(let a=1;a<v.value.count;a++){const e=e_(rC(r(),{month:d.value(a-1),year:p.value(a-1)}),{months:1});c.value[a]={month:lx(e),year:ox(e)}}},ne=(e,t)=>{ae(e),$("hours",ax(e)),$("minutes",nx(e)),$("seconds",sx(e)),v.value.count&&t&&ie()},le=e=>{((e,t)=>{if((b.value.enabled||m.weekPicker)&&!_.value.enabled)return((e,t)=>{e[1]&&b.value.showLastInRange?ae(e[(e=>{if(v.value.count){if(v.value.solo)return 0;const t=lx(e[0]),a=lx(e[1]);return Math.abs(a-t)<v.value.count?0:1}return 1})(e)],t):ae(e[0],t);const a=(t,a)=>[t(e[0]),e?.[1]?t(e[1]):f[a][1]];$("hours",a(ax,"hours")),$("minutes",a(nx,"minutes")),$("seconds",a(sx,"seconds"))})(e,t);if(_.value.enabled&&t){const a=e[e.length-1];ne(a,t)}})(h.value,e),v.value.count&&v.value.solo&&ie()},se=(e,t)=>{const n=rC(r(),{month:d.value(t),year:p.value(t)}),l=e<0?Xk(n,1):cC(n,1);I(lx(l),ox(l),e<0,m.preventMinMaxNavigation)&&(Z(t,lx(l),ox(l)),u("update-month-year",{instance:t,month:lx(l),year:ox(l)}),v.value.count&&!v.value.solo&&oe(t),a())},oe=e=>{for(let t=e-1;t>=0;t--){const e=cC(rC(r(),{month:d.value(t+1),year:p.value(t+1)}),1);Z(t,lx(e),ox(e))}for(let t=e+1;t<=v.value.count-1;t++){const e=Xk(rC(r(),{month:d.value(t-1),year:p.value(t-1)}),1);Z(t,lx(e),ox(e))}},ie=()=>{if(Array.isArray(h.value)&&2===h.value.length){const e=r(r(h.value[1]??Xk(h.value[0],1))),[t,a]=[lx(h.value[0]),ox(h.value[0])],[n,l]=[lx(h.value[1]),ox(h.value[1])];(t!==n||t===n&&a!==l)&&v.value.solo&&Z(1,lx(e),ox(e))}else h.value&&!Array.isArray(h.value)&&(Z(0,lx(h.value),ox(h.value)),ae(r()))},re=()=>{m.startDate&&(Z(0,lx(r(m.startDate)),ox(r(m.startDate))),v.value.count&&oe(0))},ue=(e,t)=>{se("right"===e?-1:1,t)},ce=(e,t)=>{const a=r(e),n=[];for(let l=0;l<7;l++){const e=zk(a,l),s=lx(e)!==t;n.push({text:m.hideOffsetDates&&s?"":N(e),value:e,current:!s,classData:{}})}return n},de=e=>!!b.value.noDisabledRange&&Y(l.value[0],e).some(e=>D(e)),pe=(e,t)=>(l.value=h.value?h.value.slice().filter(e=>!!e):[],2===l.value.length&&!b.value.fixedStart&&!b.value.fixedEnd&&(l.value=[]),b.value.autoRange?((e,t)=>{const a=[r(e.value),zk(r(e.value),+b.value.autoRange)];M(a)?(t&&(e=>{if(Z(0,lx(r(e)),ox(r(e))),v.value.count>0)for(let t=1;t<v.value.count;t++){const a=te(rC(r(e),{year:p.value(t-1),month:d.value(t-1)}));Z(t,a.month,a.year)}})(e.value),l.value=a):u("invalid-date",e.value)})(e,t):b.value.fixedStart||b.value.fixedEnd?(e=>{if(de(e.value)||!L(e.value,h.value,b.value.fixedStart?0:1))return u("invalid-date",e.value);l.value=j(r(e.value))})(e):void(l.value[0]?L(r(e.value),h.value)&&!de(e.value)?V(r(e.value),r(l.value[0]))?b.value.autoSwitchStartEnd?(l.value.unshift(r(e.value)),u("range-end",l.value[0])):(l.value[0]=r(e.value),u("range-start",l.value[0])):(l.value[1]=r(e.value),u("range-end",l.value[1])):u("invalid-date",e.value):(l.value[0]=r(e.value),u("range-start",l.value[0])))),fe=(e=!0)=>C.value.enableSeconds?Array.isArray(f.seconds)?e?f.seconds[0]:f.seconds[1]:f.seconds:0,he=e=>{l.value[e]=H({hours:f.hours[e],minutes:f.minutes[e],seconds:fe(1!==e)},l.value[e])},me=()=>{if(Array.isArray(h.value))if(_.value.enabled){const e=ge();h.value[h.value.length-1]=B(e)}else h.value=h.value.map((e,t)=>e&&B(e,t));else h.value=B(h.value);t("time-update")},ge=()=>Array.isArray(h.value)&&h.value.length?h.value[h.value.length-1]:null;return{calendars:c,modelValue:h,month:d,year:p,time:f,disabledTimesConfig:F,today:g,validateTime:E,getCalendarDays:(e,t)=>{const a=[],n=r(new Date(t,e)),l=r(new Date(t,e+1,0)),s=m.weekStart,o=n_(n,{weekStartsOn:s}),i=t=>{const n=ce(t,e);a.push({days:n}),a[a.length-1].days.some(e=>U(r(e.value),W(l)))||i(zk(t,7))};return i(o),((e,t,a,n)=>{if(m.sixWeeks&&e.length<6){const l=6-e.length,[s,o]=((e,t)=>{switch(!0===m.sixWeeks?"append":m.sixWeeks){case"prepend":return[!0,!1];case"center":return[0==e,!0];case"fair":return[0==e||t>e,!0];default:return[!1,!1]}})((t.getDay()+7-n)%7,6-(a.getDay()+7-n)%7);for(let a=1;a<=l;a++)if(o?!!(a%2)==s:s){const a=e[0].days[0],n=ce(zk(a.value,-7),lx(t));e.unshift({days:n})}else{const a=e[e.length-1],n=a.days[a.days.length-1],l=ce(zk(n.value,1),lx(t));e.push({days:l})}}return e})(a,n,l,s)},getMarker:e=>{if(k.value.markers)return q(e.value,k.value.markers)},handleScroll:(e,t)=>{if(A.value.monthChangeOnScroll){const a=Date.now()-o.value.getTime(),n=Math.abs(e.deltaY);let l=500;n>1&&(l=100),n>100&&(l=0),a>l&&(o.value=/* @__PURE__ */new Date,se("inverse"===A.value.monthChangeOnScroll?e.deltaY:-e.deltaY,t))}},handleSwipe:ue,handleArrow:(e,t,a=!1)=>{A.value.monthChangeOnArrows&&m.vertical===a&&ue(e,t)},selectDate:(a,s=!1)=>D(a.value)||!a.current&&m.hideOffsetDates?u("invalid-date",a.value):(i.value=structuredClone(a),b.value.enabled?void(Array.isArray(f.hours)&&Array.isArray(f.minutes)&&!_.value.enabled&&(pe(a,s),l.value.length&&(l.value[0]&&!l.value[1]?he(0):(he(0),he(1),n()),l.value[0]&&l.value[1]&&+l.value?.[0]>+l.value?.[1]&&(l.value.reverse(),u("range-start",l.value[0]),u("range-end",l.value[1])),h.value=l.value.slice(),K(l.value,t,!!(l.value.length<2||S.value?.steps.length)&&e.flowStep!==S.value?.steps?.length)))):(a=>{const l=H({hours:f.hours,minutes:f.minutes,seconds:fe()},r(a.value));u("date-click",l),_.value.enabled?G(l,_.value.limit):h.value=l,n(),x().then(()=>{m.autoApply&&X.value&&t("auto-apply",!!S.value?.partial&&e.flowStep!==S.value?.steps?.length)})})(a)),updateMonthYear:(t,l)=>{Z(t,l.month,l.year,!0),v.value.count&&!v.value.solo&&oe(t),u("update-month-year",{instance:t,month:l.month,year:l.year}),a(v.value.solo?t:void 0);const s=S.value?.steps?.length?S.value.steps[e.flowStep]:void 0;!l.fromNav&&(s===BC.month||s===BC.year)&&n()},presetDate:e=>{Q({value:e}),J(),m.multiCalendars&&x().then(()=>ee(!0))},selectCurrentDate:()=>{const e=(()=>{let e=r();return m.actionRow?.nowBtnRound&&(e=function(e,t){const a=t?.nearestTo??1;if(a<1||a>30)return Zk(e,NaN);const n=Jk(e,t?.in),l=n.getSeconds()/60,s=n.getMilliseconds()/1e3/60,o=n.getMinutes()+l+s,i=(r=t?.roundingMethod??"round",e=>{const t=(r?Math[r]:Math.trunc)(e);return 0===t?0:t})(o/a)*a;var r;return n.setMinutes(i,0,0),n}(e,{roundingMethod:m.actionRow.nowBtnRound.rounding??"ceil",nearestTo:m.actionRow.nowBtnRound.roundTo??15})),e})();b.value.enabled||_.value.enabled?h.value&&Array.isArray(h.value)&&h.value[0]?_.value.enabled?h.value=[...h.value,e]:h.value=V(e,h.value[0])?[e,h.value[0]]:[h.value[0],e]:h.value=[e]:h.value=e,J()},updateTime:e=>{const t=(e=>{let t="";if(b.value.enabled&&Array.isArray(h.value))for(const a of Object.keys(e)){const n=e[a];Array.isArray(n)&&(f[a][0]!==n[0]&&(t="range-start"),f[a][1]!==n[1]&&(t="range-start"))}return t})(e);O(e,me),t&&u(t,h.value["range-start"===t?0:1])},assignMonthAndYear:ae,setStartTime:z}},_I={key:0},xI=/* @__PURE__ */g({__name:"DatePicker",props:/* @__PURE__ */k({flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},rS),emits:["mount","update-flow-step","reset-flow","focus-menu","select-date","time-update","auto-apply"],setup(e,{expose:a,emit:n}){const l=n,{month:o,year:c,modelValue:p,time:f,disabledTimesConfig:m,today:g,validateTime:w,getCalendarDays:y,getMarker:b,handleArrow:A,handleScroll:k,handleSwipe:x,selectDate:I,updateMonthYear:D,presetDate:M,selectCurrentDate:T,updateTime:L,assignMonthAndYear:O,setStartTime:$}=kI(e,l,function(e){e||0===e?z.value?.[e]?.triggerTransition(o.value(e),c.value(e)):z.value?.forEach((e,t)=>e?.triggerTransition(o.value(t),c.value(t)))},function(){l("update-flow-step")}),P=X(),{setHoverDate:E,getDayClassData:W,clearHoverDate:H}=(()=>{const{isModelAuto:e,matchDate:t,isDateAfter:a,isDateBefore:n,isDateBetween:l,isDateEqual:s,getWeekFromDate:o,getBeforeAndAfterInRange:i}=fS(),{getDate:r,today:u,rootProps:c,defaults:{multiCalendars:d,multiDates:p,ui:f,highlight:h,safeDates:m,range:g},modelValue:w}=TC(),{isDisabled:v}=VC(),y=R(null),b=(e,t=!0)=>(g.value.enabled||c.weekPicker)&&Array.isArray(w.value)&&2===w.value.length?!(c.hideOffsetDates&&!e.current)&&s(r(e.value),w.value[t?0:1]):!!g.value.enabled&&(((e,t)=>{const a=w.value&&Array.isArray(w.value)&&w.value?t?w.value[0]||null:w.value[1]:null;return s(r(e.value),a)})(e,t)&&(e=>{const t=Array.isArray(w.value)?w.value[0]:null;return!e||!n(y.value,t)})(t)||s(e.value,Array.isArray(w.value)?w.value[0]:null)&&(e=>!(Array.isArray(w.value)&&g.value.enabled&&w.value[0]&&y.value)||(e?a(y.value,w.value[0]):n(y.value,w.value[0])))(t)),A=(e,t)=>{if(Array.isArray(w.value)&&w.value[0]&&1===w.value.length){const l=s(e.value,y.value);return t?a(w.value[0],e.value)&&l:n(w.value[0],e.value)&&l}return!1},k=e=>!(!w.value||c.hideOffsetDates&&!e.current)&&(g.value.enabled?!(!c.modelAuto||!Array.isArray(w.value))&&s(e.value,w.value[0]??u):p.value.enabled&&Array.isArray(w.value)?w.value.some(t=>s(t,e.value)):s(e.value,w.value?w.value:u)),_=e=>{if(g.value.autoRange||c.weekPicker){if(y.value){if(c.hideOffsetDates&&!e.current)return!1;const t=zk(y.value,+g.value.autoRange),a=o(r(y.value),c.weekStart);return c.weekPicker?s(a[1],r(e.value)):s(t,r(e.value))}return!1}return!1},x=e=>{if(g.value.autoRange||c.weekPicker){if(y.value){const t=zk(y.value,+g.value.autoRange);if(c.hideOffsetDates&&!e.current)return!1;const l=o(r(y.value),c.weekStart);return c.weekPicker?a(e.value,l[0])&&n(e.value,l[1]):a(e.value,y.value)&&n(e.value,t)}return!1}return!1},C=e=>{if(g.value.autoRange||c.weekPicker){if(y.value){if(c.hideOffsetDates&&!e.current)return!1;const t=o(r(y.value),c.weekStart);return c.weekPicker?s(t[0],e.value):s(y.value,e.value)}return!1}return!1},S=()=>!c.modelAuto||e(w.value),I=e=>{if(c.weekPicker)return!1;const t=!g.value.enabled||!b(e)&&!b(e,!1);return!v(e.value)&&!k(e)&&!(!e.current&&c.hideOffsetDates)&&t},D=e=>g.value.enabled?!!c.modelAuto&&!(!c.modelAuto||!Array.isArray(w.value)||!w.value[0])&&k(e):k(e),M=e=>!!h.value&&t(e.value,m.value.highlight),T=e=>{const t=v(e.value);return t&&("function"==typeof h.value?!h.value(e.value,t):!h.value.options.highlightDisabled)},L=e=>"function"==typeof h.value?h.value(e.value):h.value.weekdays?.includes(e.value.getDay()),O=e=>!(!g.value.enabled&&!c.weekPicker||d.value.count>0&&!e.current||!S()||!e.current&&c.hideOffsetDates||k(e))&&(e=>l(w.value,y.value,e.value))(e),B=e=>{if(Array.isArray(w.value)&&1===w.value.length){const{before:t,after:a}=i(+g.value.maxRange,w.value[0]);return rx(e.value,t)||ix(e.value,a)}return!1},$=e=>{if(Array.isArray(w.value)&&1===w.value.length){const{before:t,after:a}=i(+g.value.minRange,w.value[0]);return l([t,a],w.value[0],e.value)}return!1},P=e=>!(!g.value.enabled||!g.value.maxRange&&!g.value.minRange)&&(g.value.maxRange&&g.value.minRange?B(e)||$(e):g.value.maxRange?B(e):$(e)),E=e=>{const{isRangeStart:t,isRangeEnd:l}=N(e),o=!!g.value.enabled&&(t||l);return{dp__cell_offset:!e.current,dp__pointer:!(c.disabled||!e.current&&c.hideOffsetDates||v(e.value)||P(e)),dp__cell_disabled:v(e.value)||P(e),dp__cell_highlight:!T(e)&&(M(e)||L(e))&&!D(e)&&!o&&!C(e)&&!(O(e)&&c.weekPicker)&&!l,dp__cell_highlight_active:!T(e)&&(M(e)||L(e))&&D(e),dp__today:!c.noToday&&s(e.value,u)&&e.current,"dp--past":n(e.value,u),"dp--future":a(e.value,u)}},F=e=>({dp__active_date:D(e),dp__date_hover:I(e)}),N=e=>({isRangeStart:d.value.count>0?e.current&&b(e)&&S():b(e)&&S(),isRangeEnd:d.value.count>0?e.current&&b(e,!1)&&S():b(e,!1)&&S()}),W=e=>g.value.enabled&&(g.value.fixedStart||g.value.fixedEnd)&&Array.isArray(w.value)&&2===w.value.length,H=(e,t,a,n)=>!(!W(w.value)||!y.value)&&(t?g.value.fixedEnd&&s(e.value,y.value)&&rx(e.value,w.value[0])&&!a:g.value.fixedStart&&s(e.value,y.value)&&ix(e.value,w.value[1])&&!n),V=(e,t)=>!(!W(w.value)||!y.value)&&(t?g.value.fixedEnd&&ix(e.value,y.value)&&rx(e.value,w.value[0]):g.value.fixedStart&&rx(e.value,y.value)&&ix(e.value,w.value[1])),U=e=>{const{isRangeStart:t,isRangeEnd:a}=N(e);return{dp__range_start:t,dp__range_end:a,dp__range_between:O(e),dp__date_hover:s(e.value,y.value)&&!t&&!a&&!c.weekPicker,dp__date_hover_start:A(e,!0)||H(e,!0,t,a),dp__date_hover_end:A(e,!1)||H(e,!1,t,a),"dp--extended-fixed-start":V(e,!0),"dp--extended-fixed-end":V(e,!1)}},Y=e=>({...U(e),dp__cell_auto_range:x(e),dp__cell_auto_range_start:C(e),dp__cell_auto_range_end:_(e)}),K=e=>g.value.enabled?g.value.autoRange?Y(e):c.modelAuto?{...F(e),...U(e)}:c.weekPicker?(e=>{if(w.value&&Array.isArray(w.value)){const t=o(w.value[0],c.weekStart),l=w.value[1]?o(w.value[1],c.weekStart):[];return{...Y(e),dp__range_start:s(t[0],e.value)||s(l[0],e.value),dp__range_end:s(t[1],e.value)||s(l[1],e.value),dp__range_between_week:a(e.value,t[0])&&n(e.value,t[1])||a(e.value,l[0])&&n(e.value,l[1]),dp__range_between:a(e.value,t[1])&&n(e.value,l[0])}}return{...Y(e)}})(e):U(e):c.weekPicker?(e=>{if(w.value&&!Array.isArray(w.value)){const t=o(w.value,c.weekStart);return{...Y(e),dp__range_start:s(t[0],e.value),dp__range_end:s(t[1],e.value),dp__range_between_week:a(e.value,t[0])&&n(e.value,t[1])}}return{...Y(e)}})(e):F(e);return{setHoverDate:e=>{!e.current&&c.hideOffsetDates||(y.value=e.value)},clearHoverDate:()=>{y.value=null},getDayClassData:e=>c.hideOffsetDates&&!e.current?{}:{...E(e),...K(e),[f.value.dayClass?f.value.dayClass(e.value,w.value):""]:!0,...f.value.calendarCell}}})(),{getDate:V,rootEmit:U,rootProps:Y,defaults:{multiCalendars:K,timeConfig:j}}=TC(),{getYears:G,getMonths:Q}=gS(),{getCellId:q}=fS(),Z=ee("calendar-header"),z=ee("calendar"),te=ee("time-picker"),ae=bS(P,wS.Calendar),ne=bS(P,wS.DatePickerHeader),le=bS(P,wS.TimePicker),se=e=>{l("mount",e)};oe(K,(e,t)=>{e.count-t.count>0&&O()},{deep:!0});const re=s(()=>e=>y(o.value(e),c.value(e)).map(e=>({...e,days:e.days.map(e=>(e.marker=b(e),e.classData=W(e),e))}))),ue=e=>{U("overlay-toggle",{open:!1,overlay:e}),l("focus-menu")};return a({clearHoverDate:H,presetDate:M,selectCurrentDate:T,handleArrow:A,updateMonthYear:D,setStartTime:$,toggleMonthPicker:(e,t,a=0)=>{Z.value?.[a]?.toggleMonthPicker(e,t)},toggleYearPicker:(e,t,a=0)=>{Z.value?.[a]?.toggleYearPicker(e,t)},toggleTimePicker:(e,t,a)=>{te.value?.toggleTimePicker(e,t,a)},getSidebarProps:()=>({modelValue:p,month:o,year:c,time:f,updateTime:L,updateMonthYear:D,selectDate:I,presetDate:M}),changeMonth:e=>{Z.value?.[0]?.handleMonthYearChange(e,!0)},changeYear:e=>{D(0,{month:o.value(0),year:c.value(0)+(e?1:-1),fromNav:!0})},selectWeekDate:(e,t)=>{if(!Y.range){const a=p.value?p.value:g,n=t?V(t):a,l=e?n_(n,{weekStartsOn:1}):A_(n,{weekStartsOn:1});I({value:l,current:lx(n)===o.value(0),text:"",classData:{}}),document.getElementById(q(l))?.focus()}}}),(a,n)=>(B(),u(t,null,[h(NS,{collapse:e.collapse},{default:ie(({instances:l,wrapClass:s})=>[(B(!0),u(t,null,F(l,t=>(B(),u("div",{key:t,class:C(s)},[J(Y).hideMonthYearSelect?r("",!0):(B(),i(hI,{key:0,ref_for:!0,ref:"calendar-header",months:J(Q)(),years:J(G)(),month:J(o)(t),year:J(c)(t),instance:t,"menu-wrap-ref":e.menuWrapRef,onMount:n[0]||(n[0]=e=>se(J(OC).header)),onResetFlow:n[1]||(n[1]=e=>a.$emit("reset-flow")),onUpdateMonthYear:e=>J(D)(t,e),onOverlayClosed:ue},d({_:2},[F(J(ne),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,_({ref_for:!0},t))])}))]),1032,["months","years","month","year","instance","menu-wrap-ref","onUpdateMonthYear"])),h(AI,{ref_for:!0,ref:"calendar","mapped-dates":re.value(t),instance:t,month:J(o)(t),year:J(c)(t),onSelectDate:e=>J(I)(e,1!==t),onSetHoverDate:n[2]||(n[2]=e=>J(E)(e)),onHandleScroll:e=>J(k)(e,t),onHandleSwipe:e=>J(x)(e,t),onMount:n[3]||(n[3]=e=>se(J(OC).calendar))},d({_:2},[F(J(ae),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,_({ref_for:!0},t))])}))]),1032,["mapped-dates","instance","month","year","onSelectDate","onHandleScroll","onHandleSwipe"])],2))),128))]),_:3},8,["collapse"]),J(j).enableTimePicker?(B(),u("div",_I,[N(a.$slots,"time-picker",S(v({time:J(f),updateTime:J(L)})),()=>[h(oI,{ref:"time-picker",hours:J(f).hours,minutes:J(f).minutes,seconds:J(f).seconds,"disabled-times-config":J(m),"validate-time":J(w),"no-overlay-focus":e.noOverlayFocus,onMount:n[4]||(n[4]=e=>se(J(OC).timePicker)),"onUpdate:hours":n[5]||(n[5]=e=>J(L)({hours:e,minutes:J(f).minutes,seconds:J(f).seconds})),"onUpdate:minutes":n[6]||(n[6]=e=>J(L)({hours:J(f).hours,minutes:e,seconds:J(f).seconds})),"onUpdate:seconds":n[7]||(n[7]=e=>J(L)({hours:J(f).hours,minutes:J(f).minutes,seconds:e})),onResetFlow:n[8]||(n[8]=e=>a.$emit("reset-flow"))},d({_:2},[F(J(le),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,S(v(t)))])}))]),1032,["hours","minutes","seconds","disabled-times-config","validate-time","no-overlay-focus"])])])):r("",!0)],64))}}),CI=(e,t)=>{const{getDate:a,modelValue:n,year:l,calendars:o,defaults:{highlight:i,range:r,multiDates:u}}=TC(),{isDateBetween:c,isDateEqual:d}=fS(),{checkRangeAutoApply:p,handleMultiDatesSelect:f,setMonthOrYearRange:h}=KS();HC();const{isDisabled:m}=VC(),{formatQuarterText:g}=mS(),{selectYear:w,groupedYears:v,showYearPicker:y,isDisabled:b,toggleYearPicker:A,handleYearSelect:k,handleYear:_,setStartDate:x}=YS(t),C=R();T(()=>{x()});const S=s(()=>e=>!!n.value&&(Array.isArray(n.value)?n.value.some(t=>sC(e,t)):sC(n.value,e))),I=s(()=>e=>{const t=rC(a(),{year:l.value(e)});return function(e,t){const{start:a,end:n}=g_(t?.in,e);let l=+a>+n;const s=l?+v_(a):+v_(n);let o=v_(l?n:a),i=1;if(!i)return[];i<0&&(i=-i,l=!l);const r=[];for(;+o<=s;)r.push(Zk(a,o)),o=c_(o,i);return l?r.reverse():r}({start:b_(t),end:y_(t)}).map(e=>{const t=v_(e),a=k_(e),l=m(e),s=(e=>{if(r.value.enabled){if(Array.isArray(n.value)){const t=d(e,n.value[0])||d(e,n.value[1]);return c(n.value,C.value,e)&&!t}return!1}return!1})(t),o=(e=>"function"==typeof i.value?i.value({quarter:m_(e),year:ox(e)}):i.value.quarters.some(t=>((e,t)=>e.quarter===m_(t)&&e.year===ox(t))(t,e)))(t);return{text:g(t,a),value:t,active:S.value(t),highlighted:o,disabled:l,isBetween:s}})});return{groupedYears:v,year:l,isDisabled:b,quarters:I,showYearPicker:y,modelValue:n,selectYear:w,toggleYearPicker:A,handleYearSelect:k,handleYear:_,setHoverDate:e=>{C.value=e},selectQuarter:(e,a,l)=>{if(!l)return o.value[a].month=lx(k_(e)),u.value.enabled?(e=>{f(e,u.value.limit),t("auto-apply",!0)})(e):r.value.enabled?(e=>{n.value=h(e),p(n.value,t,n.value.length<2)})(e):(e=>{n.value=e,t("auto-apply")})(e)}}},SI={class:"dp--quarter-items"},II=["data-test-id","disabled","onClick","onMouseover"],DI=/* @__PURE__ */g({__name:"QuarterPicker",props:{flowStep:{},collapse:{type:Boolean},menuWrapRef:{},noOverlayFocus:{type:Boolean}},emits:["reset-flow","auto-apply"],setup(e,{expose:a,emit:n}){const l=n,{defaults:{config:s}}=TC(),o=X(),{boolHtmlAttribute:p}={boolHtmlAttribute:e=>!!e||void 0},m=bS(o,wS.YearMode),{groupedYears:g,year:w,isDisabled:v,quarters:y,modelValue:b,showYearPicker:A,setHoverDate:k,selectQuarter:x,toggleYearPicker:S,handleYearSelect:D,handleYear:M}=CI(0,l);return a({getSidebarProps:()=>({modelValue:b,year:w,selectQuarter:x,handleYearSelect:D,handleYear:M})}),(a,n)=>(B(),i(NS,{collapse:e.collapse,stretch:""},{default:ie(({instances:e,wrapClass:n})=>[(B(!0),u(t,null,F(e,e=>(B(),u("div",{key:e,class:C(n)},[c("div",{class:"dp-quarter-picker-wrap",style:I({minHeight:`${J(s).modeHeight}px`})},[a.$slots["top-extra"]?N(a.$slots,"top-extra",{key:0,value:J(b)}):r("",!0),c("div",null,[h(US,{items:J(g)(e),instance:e,"show-year-picker":J(A)[e],year:J(w)(e),"is-disabled":t=>J(v)(e,t),onHandleYear:t=>J(M)(e,t),onYearSelect:t=>J(D)(t,e),onToggleYearPicker:t=>J(S)(e,t?.flow,t?.show)},d({_:2},[F(J(m),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,_({ref_for:!0},t))])}))]),1032,["items","instance","show-year-picker","year","is-disabled","onHandleYear","onYearSelect","onToggleYearPicker"])]),c("div",SI,[(B(!0),u(t,null,F(J(y)(e),(t,n)=>(B(),u("div",{key:n},[c("button",{type:"button",class:C(["dp--qr-btn",{"dp--qr-btn-active":t.active,"dp--qr-btn-between":t.isBetween,"dp--qr-btn-disabled":t.disabled,"dp--highlighted":t.highlighted}]),"data-dp-action-element":"0","data-test-id":t.value,disabled:J(p)(t.disabled),onClick:a=>J(x)(t.value,e,t.disabled),onMouseover:e=>J(k)(t.value)},[N(a.$slots,"quarter",{value:t.value,text:t.text},()=>[f(Y(t.text),1)])],42,II)]))),128))])],4)],2))),128))]),_:3},8,["collapse"]))}}),MI=["id","tabindex","role","aria-label"],TI={key:0,class:"dp--menu-load-container"},LI={key:1,class:"dp--menu-header"},OI=["data-dp-mobile"],BI={key:0,class:"dp__sidebar_left"},$I=["data-dp-mobile"],PI=["data-test-id","data-dp-mobile","onClick","onKeydown"],EI={class:"dp__instance_calendar"},RI={key:2,class:"dp__sidebar_right"},FI={key:2,class:"dp__action_extra"},NI=/* @__PURE__ */g({__name:"DatepickerMenu",props:{collapse:{type:Boolean},noOverlayFocus:{type:Boolean},getInputRect:{type:Function}},emits:["close-picker","select-date","auto-apply","time-update","menu-blur"],setup(e,{expose:a,emit:n}){const l=n,o=X(),{state:p,rootProps:f,defaults:{textInput:h,inline:m,config:g,ui:w,ariaLabels:y},setState:b}=TC(),{isMobile:A}=hS(),{handleEventPropagation:k,getElWithin:_,checkStopPropagation:D,checkKeyDown:M}=pS();(()=>{const{rootProps:e,state:t}=TC(),a=s(()=>t.arrowNavigationLevel),n=R(-1),l=R(-1);oe(a,(e,t)=>{w(0===e&&t>0)});const o=R([]),i=R(/* @__PURE__ */new Map),r=()=>{const e=Array.from(document.querySelectorAll(`[data-dp-action-element="${a.value}"]`)),t=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map;for(const a of e){const e=a.getBoundingClientRect(),l=e.top,s=e.left;t.has(l)||t.set(l,[]),t.get(l).push(a),n.set(a,{row:l,col:s})}o.value=Array.from(t.entries()).sort((e,t)=>e[0]-t[0]).map(([e,t])=>u(t,n)),i.value=n},u=(e,t)=>e.sort((e,a)=>{const n=t.get(e),l=t.get(a);return n.col-l.col}),c=(e,t)=>{0===a.value&&(n.value=e,l.value=t)},d=e=>{if(![EC.arrowUp,EC.arrowDown,EC.arrowLeft,EC.arrowRight].includes(e.key))return;r(),e.preventDefault();const t=document.activeElement;if(!t?.hasAttribute("data-dp-action-element"))return;let a=-1,n=-1;for(let l=0;l<o.value.length;l++){const e=o.value[l].indexOf(t);if(-1!==e){a=l,n=e;break}}if(-1!==a)switch(e.key){case EC.arrowLeft:return p(a,n);case EC.arrowRight:return f(a,n);case EC.arrowUp:return h(a,n);case EC.arrowDown:return m(a,n);default:return}},p=(e,t)=>{if(t>0){const a=o.value[e][t-1];c(e,t-1),a&&a.focus()}},f=(e,t)=>{if(t<o.value[e].length-1){const a=o.value[e][t+1];c(e,t+1),a&&a.focus()}},h=(e,t)=>{if(e>0){const a=o.value[e-1],n=Math.min(t,a.length-1),l=a[n];c(e-1,n),l&&l.focus()}},m=(e,t)=>{if(e<o.value.length-1){const a=o.value[e+1],n=Math.min(t,a.length-1),l=a[n];c(e+1,n),l&&l.focus()}},g=e=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.focus({preventScroll:!0})})})},w=e=>{if(e)return void x().then(()=>{r();const e=o.value[n.value]?.[l.value];e&&g(e)});const t=document.querySelector(`[data-dp-element-active="${a.value}"]`);if(t&&!e)g(t);else{const e=document.querySelector(`[data-dp-action-element="${a.value}"]`);e&&g(e)}};T(()=>{e.arrowNavigation&&(w(!1),document.addEventListener("keydown",d))}),O(()=>{e.arrowNavigation&&document.removeEventListener("keydown",d)})})();const L=ee("inner-menu"),$=ee("dp-menu"),E=ee("dyn-cmp"),W=R(0),V=R(!1),U=R(!1),{flowStep:K,updateFlowStep:j,childMount:G,resetFlow:Q,handleFlow:Z}=(e=>{const{rootEmit:t,rootProps:a,defaults:{timeConfig:n,flow:l}}=TC(),o=R(0),i=P({[OC.timePicker]:!n.value.enableTimePicker||a.timePicker||a.monthPicker,[OC.calendar]:!1,[OC.header]:!1}),r=s(()=>a.monthPicker||a.timePicker),u=()=>{o.value=-1},c=(t,a,...n)=>{l.value?.steps[o.value]===t&&e.value&&e.value[a]?.(...n)},d=(e=0)=>{e&&(o.value+=e),c(BC.month,"toggleMonthPicker",!0),c(BC.year,"toggleYearPicker",!0),c(BC.calendar,"toggleTimePicker",!1,!0),c(BC.time,"toggleTimePicker",!0,!0);const t=l.value?.steps[o.value];(t===BC.hours||t===BC.minutes||t===BC.seconds)&&c(t,"toggleTimePicker",!0,!0,t)};return{childMount:e=>{if(l.value?.steps?.length){if(!e&&r.value)return d();i[e]=!0,Object.keys(i).filter(e=>!i[e]).length||d()}},updateFlowStep:()=>{l.value?.steps?.length&&-1!==o.value&&(o.value+=1,t("flow-step",o.value),d()),l.value?.steps?.length===o.value&&x().then(()=>u())},resetFlow:u,handleFlow:d,flowStep:o}})(E),z=e=>{U.value=!0,g.value.allowPreventDefault&&e.preventDefault(),D(e,g.value,!0)};T(()=>{V.value=!0,te(),globalThis.addEventListener("resize",te);const e=hA($);e&&!h.value.enabled&&!m.value.enabled&&b("menuFocused",!0),e&&(e.addEventListener("pointerdown",z),e.addEventListener("mousedown",z)),document.addEventListener("mousedown",ye)}),O(()=>{globalThis.removeEventListener("resize",te),document.removeEventListener("mousedown",ye);const e=hA($);e&&(e.removeEventListener("pointerdown",z),e.removeEventListener("mousedown",z))});const te=()=>{const e=hA(L);e&&(W.value=e.getBoundingClientRect().width)},ae=s(()=>f.monthPicker?jS:f.yearPicker?GS:f.timePicker?rI:f.quarterPicker?DI:xI),ne=()=>{const e=hA($);e&&e.focus({preventScroll:!0})},le=s(()=>E.value?.getSidebarProps()||{}),se=bS(o,wS.ActionRow),re=bS(o,wS.PassTrough),ue=s(()=>({dp__menu_disabled:f.disabled,dp__menu_readonly:f.readonly,"dp-menu-loading":f.loading})),de=s(()=>({dp__menu:!0,dp__menu_index:!m.value.enabled,dp__relative:m.value.enabled,...w.value.menu})),pe=e=>{D(e,g.value,!0)},fe=(e,...t)=>{E.value?.[e]&&E.value?.[e](...t)},he=()=>{fe("selectCurrentDate")},me=e=>{fe("presetDate",q(e))},ge=()=>{fe("clearHoverDate")},we=(e,t)=>{e.preventDefault(),(e=>{f.arrowNavigation||(e===PC.left||e===PC.up?fe("handleArrow",PC.left,0,e===PC.up):fe("handleArrow",PC.right,0,e===PC.down))})(t)},ve=e=>{if((e=>{b("shiftKeyInMenu",e.shiftKey),!f.hideMonthYearSelect&&e.code===EC.tab&&e.target.classList.contains("dp__menu")&&p.shiftKeyInMenu&&(e.preventDefault(),D(e,g.value,!0),l("close-picker"))})(e),e.key===EC.home||e.key===EC.end)return fe("selectWeekDate",e.key===EC.home,e.target.getAttribute("id"));switch((e.key===EC.pageUp||e.key===EC.pageDown)&&(e.shiftKey?(fe("changeYear",e.key===EC.pageUp),_($.value,"overlay-year")?.focus()):(fe("changeMonth",e.key===EC.pageUp),_($.value,e.key===EC.pageUp?"action-prev":"action-next")?.focus()),e.target.getAttribute("id")&&$.value?.focus({preventScroll:!0})),e.key){case EC.esc:return(e=>{g.value.escClose&&(l("close-picker"),k(e,g.value))})(e);case EC.arrowLeft:return we(e,PC.left);case EC.arrowRight:return we(e,PC.right);case EC.arrowUp:return we(e,PC.up);case EC.arrowDown:return we(e,PC.down);default:return}},ye=e=>{m.value.enabled&&!m.value.input&&!$.value?.contains(e.target)&&U.value&&(U.value=!1,l("menu-blur"))};return a({updateMonthYear:(e,t)=>{fe("updateMonthYear",e,t)},switchView:(e,t=0)=>"month"===e?E.value?.toggleMonthPicker(!1,!0,t):"year"===e?E.value?.toggleYearPicker(!1,!0,t):"time"===e?E.value?.toggleTimePicker(!0,!1):(e=>{E.value?.toggleTimePicker(!1,!1),E.value?.toggleMonthPicker(!1,!1,e),E.value?.toggleYearPicker(!1,!1,e)})(t),onValueCleared:()=>{E.value?.setStartTime?.()},handleFlow:Z}),(a,n)=>(B(),u("div",{id:J(f).menuId,ref:"dp-menu",tabindex:J(m).enabled?void 0:"0",role:J(m).enabled?void 0:"dialog","aria-label":J(y)?.menu,class:C(de.value),onMouseleave:ge,onClick:pe,onKeydown:ve},[(J(f).disabled||J(f).readonly)&&J(m).enabled||J(f).loading?(B(),u("div",{key:0,class:C(ue.value)},[J(f).loading?(B(),u("div",TI,[...n[5]||(n[5]=[c("span",{class:"dp--menu-loader"},null,-1)])])):r("",!0)],2)):r("",!0),a.$slots["menu-header"]?(B(),u("div",LI,[N(a.$slots,"menu-header")])):r("",!0),N(a.$slots,"arrow"),c("div",{ref:"inner-menu",class:C({dp__menu_content_wrapper:J(f).presetDates?.length||!!a.$slots["left-sidebar"]||!!a.$slots["right-sidebar"],"dp--menu-content-wrapper-collapsed":e.collapse&&(J(f).presetDates?.length||!!a.$slots["left-sidebar"]||!!a.$slots["right-sidebar"])}),"data-dp-mobile":J(A),style:I({"--dp-menu-width":`${W.value}px`})},[a.$slots["left-sidebar"]?(B(),u("div",BI,[N(a.$slots,"left-sidebar",S(v(le.value)))])):r("",!0),J(f).presetDates.length?(B(),u("div",{key:1,class:C({"dp--preset-dates-collapsed":e.collapse,"dp--preset-dates":!0}),"data-dp-mobile":J(A)},[(B(!0),u(t,null,F(J(f).presetDates,(n,l)=>(B(),u(t,{key:l},[n.slot?N(a.$slots,n.slot,{key:0,presetDate:me,label:n.label,value:n.value}):(B(),u("button",{key:1,type:"button",style:I(n.style||{}),class:C(["dp__btn dp--preset-range",{"dp--preset-range-collapsed":e.collapse}]),"data-test-id":n.testId??void 0,"data-dp-mobile":J(A),onClick:ce(e=>me(n.value),["prevent"]),onKeydown:e=>J(M)(e,()=>me(n.value),!0)},Y(n.label),47,PI))],64))),128))],10,$I)):r("",!0),c("div",EI,[(B(),i(H(ae.value),{ref:"dyn-cmp","flow-step":J(K),collapse:e.collapse,"no-overlay-focus":e.noOverlayFocus,"menu-wrap-ref":$.value,onMount:J(G),onUpdateFlowStep:J(j),onResetFlow:J(Q),onFocusMenu:ne,onSelectDate:n[0]||(n[0]=e=>a.$emit("select-date")),onAutoApply:n[1]||(n[1]=e=>a.$emit("auto-apply",e)),onTimeUpdate:n[2]||(n[2]=e=>a.$emit("time-update"))},d({_:2},[F(J(re),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,S(v({...t})))])}))]),1064,["flow-step","collapse","no-overlay-focus","menu-wrap-ref","onMount","onUpdateFlowStep","onResetFlow"]))]),a.$slots["right-sidebar"]?(B(),u("div",RI,[N(a.$slots,"right-sidebar",S(v(le.value)))])):r("",!0)],14,OI),a.$slots["action-extra"]?(B(),u("div",FI,[a.$slots["action-extra"]?N(a.$slots,"action-extra",{key:0,selectCurrentDate:he}):r("",!0)])):r("",!0),!J(f).autoApply||J(g).keepActionRow?(B(),i(LS,{key:3,"menu-mount":V.value,"calendar-width":W.value,onClosePicker:n[3]||(n[3]=e=>a.$emit("close-picker")),onSelectDate:n[4]||(n[4]=e=>a.$emit("select-date")),onSelectNow:he},d({_:2},[F(J(se),(e,t)=>({name:e,fn:ie(t=>[N(a.$slots,e,S(v(t)))])}))]),1032,["menu-mount","calendar-width"])):r("",!0)],42,MI))}}),WI=["data-dp-mobile"],HI=/* @__PURE__ */g({__name:"VueDatePicker",setup(e,{expose:t}){const{rootEmit:l,setState:o,inputValue:p,modelValue:f,rootProps:m,defaults:{inline:g,config:w,textInput:y,range:b,multiDates:A,teleport:k,floatingConfig:_}}=TC(),{validateDate:D,isValidTime:M}=VC(),{menuTransition:L,showTransition:$}=WC(),{isMobile:P}=hS(),{findNextFocusableElement:E,getNumVal:W}=pS(),H=X(),V=R(!1),U=R(g.value.enabled||m.centered),Y=G(m,"modelValue"),K=G(m,"timezone"),j=ee("dp-menu-wrap"),Q=ee("dp-menu"),Z=ee("input-cmp"),z=ee("picker-wrapper"),te=ee("menu-arrow"),ae=R(!1),ne=R(!1),le=R(!1),se=R(!0),{floatingStyles:re,middlewareData:ue,placement:ce,y:de}=function(e,t,a){void 0===a&&(a={});const n=a.whileElementsMounted,l=(0,Nk.computed)(()=>{var e;return null==(e=Kk(a.open))||e}),s=(0,Nk.computed)(()=>Kk(a.middleware)),o=(0,Nk.computed)(()=>{var e;return null!=(e=Kk(a.placement))?e:"bottom"}),i=(0,Nk.computed)(()=>{var e;return null!=(e=Kk(a.strategy))?e:"absolute"}),r=(0,Nk.computed)(()=>{var e;return null==(e=Kk(a.transform))||e}),u=(0,Nk.computed)(()=>Yk(e.value)),c=(0,Nk.computed)(()=>Yk(t.value)),d=(0,Nk.ref)(0),p=(0,Nk.ref)(0),f=(0,Nk.ref)(i.value),h=(0,Nk.ref)(o.value),m=(0,Nk.shallowRef)({}),g=(0,Nk.ref)(!1),w=(0,Nk.computed)(()=>{const e={position:f.value,left:"0",top:"0"};if(!c.value)return e;const t=Gk(c.value,d.value),a=Gk(c.value,p.value);return r.value?{...e,transform:"translate("+t+"px, "+a+"px)",...jk(c.value)>=1.5&&{willChange:"transform"}}:{position:f.value,left:t+"px",top:a+"px"}});let v;function y(){if(null==u.value||null==c.value)return;const e=l.value;((e,t,a)=>{const n=/* @__PURE__ */new Map,l={platform:Bk,...a},s={...l.platform,_c:n};return(async(e,t,a)=>{const{placement:n="bottom",strategy:l="absolute",middleware:s=[],platform:o}=a,i=s.filter(Boolean),r=await(null==o.isRTL?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:l}),{x:c,y:d}=HA(u,n,r),p=n,f={},h=0;for(let m=0;m<i.length;m++){const{name:a,fn:s}=i[m],{x:g,y:w,data:v,reset:y}=await s({x:c,y:d,initialPlacement:n,placement:p,strategy:l,middlewareData:f,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=w?w:d,f={...f,[a]:{...f[a],...v}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(u=!0===y.rects?await o.getElementRects({reference:e,floating:t,strategy:l}):y.rects),({x:c,y:d}=HA(u,p,r))),m=-1)}return{x:c,y:d,placement:p,strategy:l,middlewareData:f}})(e,t,{...l,platform:s})})(u.value,c.value,{middleware:s.value,placement:o.value,strategy:i.value}).then(t=>{d.value=t.x,p.value=t.y,f.value=t.strategy,h.value=t.placement,m.value=t.middlewareData,g.value=!1!==e})}function b(){"function"==typeof v&&(v(),v=void 0)}return(0,Nk.watch)([s,o,i,l],y,{flush:"sync"}),(0,Nk.watch)([u,c],function(){b(),void 0!==n?null==u.value||null==c.value||(v=n(u.value,c.value,y)):y()},{flush:"sync"}),(0,Nk.watch)(l,function(){l.value||(g.value=!1)},{flush:"sync"}),(0,Nk.getCurrentScope)()&&(0,Nk.onScopeDispose)(b),{x:(0,Nk.shallowReadonly)(d),y:(0,Nk.shallowReadonly)(p),strategy:(0,Nk.shallowReadonly)(f),placement:(0,Nk.shallowReadonly)(h),middlewareData:(0,Nk.shallowReadonly)(m),isPositioned:(0,Nk.shallowReadonly)(g),floatingStyles:w,update:y}}(Z,j,{strategy:_.value.strategy,placement:_.value.placement,middleware:(pe=[Ek(_.value.offset)],_.value.arrow&&pe.push({name:"arrow",options:fe={element:!0===_.value.arrow?te:_.value.arrow},fn(e){const t=Yk(Kk(fe.element));return null==t?{}:(e=>({name:"arrow",options:e,async fn(t){const{x:a,y:n,placement:l,rects:s,platform:o,elements:i,middlewareData:r}=t,{element:u,padding:c=0}=CA(e,t)||{};if(null==u)return{};const d=NA(c),p={x:a,y:n},f=OA(l),h=MA(f),m=await o.getDimensions(u),g="y"===f,w=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",b=s.reference[h]+s.reference[f]-p[f]-s.floating[h],A=p[f]-s.reference[f],k=await(null==o.getOffsetParent?void 0:o.getOffsetParent(u));let _=k?k[y]:0;_&&await(null==o.isElement?void 0:o.isElement(k))||(_=i.floating[y]||s.floating[h]);const x=b/2-A/2,C=_/2-m[h]/2-1,S=wA(d[w],C),I=wA(d[v],C),D=S,M=_-m[h]-I,T=_/2-m[h]/2+x,L=xA(D,T,M),O=!r.arrow&&null!=IA(l)&&T!==L&&s.reference[h]/2-(T<D?S:I)-m[h]/2<0,B=O?T<D?T-D:T-M:0;return{[f]:p[f]+B,data:{[f]:L,centerOffset:T-L-B,...O&&{alignmentOffset:B}},reset:O}}}))({element:t,padding:fe.padding}).fn(e)}}),_.value.flip&&pe.push(Fk("object"==typeof _.value.flip?_.value.flip:{})),_.value.shift&&pe.push(Rk("object"==typeof _.value.shift?_.value.shift:{})),pe),whileElementsMounted:Pk});var pe,fe;T(()=>{ge(m.modelValue),x().then(()=>{g.value.enabled||globalThis.addEventListener("resize",xe)}),g.value.enabled&&(V.value=!0),globalThis.addEventListener("keyup",Ce),globalThis.addEventListener("keydown",Se)}),O(()=>{g.value.enabled||globalThis.removeEventListener("resize",xe),globalThis.removeEventListener("keyup",Ce),globalThis.removeEventListener("keydown",Se)});const he=AS(H,m.presetDates),me=bS(H,wS.Input);oe([Y,K],()=>{ge(Y.value)},{deep:!0}),oe([ce,de],()=>{!g.value.enabled&&!m.centered&&se.value&&(U.value=!1,x().then(()=>{se.value=!1,U.value=!0}))});const{parseExternalModelValue:ge,emitModelValue:we,formatInputValue:ve,checkBeforeEmit:ye}=NC(),be=s(()=>({dp__main:!0,dp__theme_dark:m.dark,dp__theme_light:!m.dark,dp__flex_display:g.value.enabled,"dp--flex-display-collapsed":le.value,dp__flex_display_with_input:g.value.input})),Ae=s(()=>m.dark?"dp__theme_dark":"dp__theme_light"),ke=s(()=>g.value.enabled&&(m.timePicker||m.monthPicker||m.yearPicker||m.quarterPicker)),_e=()=>Z.value?.$el?.getBoundingClientRect()??{width:0,left:0,right:0},xe=()=>{const e=Q.value?.$el.getBoundingClientRect().width??0;le.value=document.body.offsetWidth<=e},Ce=e=>{"Tab"===e.key&&!g.value.enabled&&!m.teleport&&w.value.tabOutClosesMenu&&(z.value.contains(document.activeElement)||Pe()),ne.value=e.shiftKey},Se=e=>{ne.value=e.shiftKey},Ie=()=>{!m.disabled&&!m.readonly&&(se.value=!0,V.value=!0,V.value&&l("open"),V.value||$e(),ge(m.modelValue))},De=()=>{p.value="",$e(),Q.value?.onValueCleared(),Z.value?.setParsedDate(null),l("update:model-value",null),l("cleared"),w.value.closeOnClearValue&&Pe()},Me=()=>{const e=f.value;return!(e&&(Array.isArray(e)||!D(e)))||!!Array.isArray(e)&&(!!(A.value.enabled||2===e.length&&D(e[0])&&D(e[1]))||!(!b.value.partialRange||m.timePicker)&&D(e[0]))},Te=()=>{ye()&&Me()?(we(),Pe()):l("invalid-select")},Le=e=>{Oe(),we(),w.value.closeOnAutoApply&&!e&&Pe()},Oe=()=>{Z.value&&y.value.enabled&&Z.value.setParsedDate(f.value)},Be=(e=!1)=>{m.autoApply&&M(f.value)&&Me()&&(b.value.enabled&&Array.isArray(f.value)?(b.value.partialRange||2===f.value.length)&&Le(e):Le(e))},$e=()=>{y.value.enabled||(f.value=null)},Pe=(e=!1)=>{se.value=!0,e&&f.value&&w.value.setDateOnMenuClose&&Te(),g.value.enabled||(V.value&&(V.value=!1,o("menuFocused",!1),o("shiftKeyInMenu",!1),l("closed"),p.value&&ge(Y.value)),$e(),l("blur"))},Ee=(e,t,a=!1)=>{if(!e)return void(f.value=null);const n=Array.isArray(e)?e.every(e=>D(e)):D(e),s=M(e);n&&s?(o("isTextInputDate",!0),f.value=e,t?(ae.value=a,Te(),l("text-submit")):m.autoApply&&Be(!0),x().then(()=>{o("isTextInputDate",!1)})):l("invalid-date",e)},Re=()=>{m.autoApply&&M(f.value)&&we(),Oe()},Fe=()=>V.value?Pe():Ie(),Ne=()=>{y.value.enabled&&(o("isInputFocused",!0),ve()),l("focus")},We=()=>{y.value.enabled&&(o("isInputFocused",!1),ge(m.modelValue),ae.value&&E(z.value,ne.value)?.focus()),l("blur")};return function(e,t,a={}){const{window:n=fA,ignore:l=[],capture:s=!0,detectIframe:o=!1,controls:i=!1}=a;if(!n)return i?{stop:oA,cancel:oA,trigger:oA}:oA;if(iA&&!gA){gA=!0;const e={passive:!0};Array.from(n.document.body.children).forEach(t=>t.addEventListener("click",oA,e)),n.document.documentElement.addEventListener("click",oA,e)}let r=!0;const u=e=>q(l).some(t=>{if("string"==typeof t)return Array.from(n.document.querySelectorAll(t)).some(t=>t===e.target||e.composedPath().includes(t));{const a=hA(t);return a&&(e.target===a||e.composedPath().includes(a))}}),c=a=>{const n=hA(e);null!=a.target&&(n instanceof Element||!function(e){const t=q(e);return t&&16===t.$.subTree.shapeFlag}(e)||!function(e,t){const a=q(e),n=a.$.subTree&&a.$.subTree.children;return!(null==n||!Array.isArray(n))&&n.some(e=>e.el===t.target||t.composedPath().includes(e.el))}(e,a))&&n&&n!==a.target&&!a.composedPath().includes(n)&&("detail"in a&&0===a.detail&&(r=!u(a)),r?t(a):r=!0)};let d=!1;const p=[mA(n,"click",e=>{d||(d=!0,setTimeout(()=>{d=!1},0),c(e))},{passive:!0,capture:s}),mA(n,"pointerdown",t=>{const a=hA(e);r=!u(t)&&!(!a||t.composedPath().includes(a))},{passive:!0}),o&&mA(n,"blur",a=>{setTimeout(()=>{var l;const s=hA(e);"IFRAME"!==(null===(l=n.document.activeElement)||void 0===l?void 0:l.tagName)||(null==s?void 0:s.contains(n.document.activeElement))||t(a)},0)},{passive:!0})].filter(Boolean),f=()=>p.forEach(e=>e())}(j,e=>((e,t)=>{if(V.value)return w.value.onClickOutside?w.value.onClickOutside(e,t):Pe(!0)})(Me,e),{ignore:[Z]}),t({closeMenu:Pe,selectDate:Te,clearValue:De,openMenu:Ie,onScroll:()=>{V.value&&w.value.closeOnScroll&&Pe()},formatInputValue:ve,updateInternalModelValue:e=>{f.value=e},setMonthYear:(e,t)=>{Q.value&&Q.value.updateMonthYear(t??0,{month:W(e.month),year:W(e.year)})},parseModel:e=>{ge(e??m.modelValue)},switchView:(e,t)=>{Q.value?.switchView(e,t)},toggleMenu:Fe,handleFlow:(e=0)=>{Q.value?.handleFlow(e)},getDpWrapMenuRef:()=>j,dpMenuRef:()=>Q,dpWrapMenuRef:()=>j,inputRef:()=>Z}),(e,t)=>(B(),u("div",{ref:"picker-wrapper",class:C(be.value),"data-datepicker-instance":"","data-dp-mobile":J(P)},[h(SS,{ref:"input-cmp","is-menu-open":V.value,onClear:De,onOpen:Ie,onSetInputDate:Ee,onSetEmptyDate:J(we),onSelectDate:Te,onToggle:Fe,onClose:Pe,onFocus:Ne,onBlur:We,onRealBlur:t[0]||(t[0]=e=>J(o)("isInputFocused",!1))},d({_:2},[F(J(me),(t,a)=>({name:t,fn:ie(a=>[N(e.$slots,t,S(v(a)))])}))]),1032,["is-menu-open","onSetEmptyDate"]),h(a,{to:J(k),disabled:!J(k)},{default:ie(()=>[c("div",{ref:"dp-menu-wrap",class:C({"dp--menu-wrapper":!J(g).enabled,dp__outer_menu_wrap:!0,"dp--centered":J(m).centered}),style:I(J(g).enabled||J(m).centered?void 0:J(re))},[h(n,{name:J(L)(J(ce).startsWith("top")),css:J($)&&!J(g).enabled&&!J(m).centered&&U.value},{default:ie(()=>[V.value&&U.value?(B(),i(NI,{key:0,ref:"dp-menu",class:C({[Ae.value]:!0}),"no-overlay-focus":ke.value,collapse:le.value,"get-input-rect":_e,onClosePicker:Pe,onSelectDate:Te,onAutoApply:Be,onTimeUpdate:Re,onMenuBlur:t[1]||(t[1]=e=>J(l)("blur"))},d({_:2},[F(J(he),(t,a)=>({name:t,fn:ie(a=>[N(e.$slots,t,S(v({...a})))])})),J(g).enabled||J(m).centered||!0!==J(_).arrow?void 0:{name:"arrow",fn:ie(()=>[c("div",{ref:"menu-arrow",class:C({dp__arrow_top:"bottom"===J(ce),dp__arrow_bottom:"top"===J(ce)}),style:I({left:null!=J(ue).arrow?.x?`${J(ue).arrow.x}px`:"",top:null!=J(ue).arrow?.y?`${J(ue).arrow.y}px`:""})},null,6)]),key:"0"}]),1032,["class","no-overlay-focus","collapse"])):r("",!0)]),_:3},8,["name","css"])],6)]),_:3},8,["to","disabled"])],10,WI))}}),VI=/* @__PURE__ */g({__name:"VueDatePickerRoot",props:/* @__PURE__ */k({multiCalendars:{type:[Boolean,Number,String,Object]},modelValue:{},modelType:{},dark:{type:Boolean},transitions:{type:[Boolean,Object]},ariaLabels:{},hideNavigation:{},timezone:{},vertical:{type:Boolean},hideMonthYearSelect:{type:Boolean},disableYearSelect:{type:Boolean},yearRange:{},autoApply:{type:Boolean},disabledDates:{type:[Array,Function]},startDate:{},hideOffsetDates:{type:Boolean},noToday:{type:Boolean},allowedDates:{},markers:{},presetDates:{},flow:{},preventMinMaxNavigation:{type:Boolean},reverseYears:{type:Boolean},weekPicker:{type:Boolean},filters:{},arrowNavigation:{type:Boolean},highlight:{type:[Function,Object]},teleport:{type:[String,Boolean]},centered:{type:Boolean},locale:{},weekStart:{},weekNumbers:{type:[Boolean,Object]},dayNames:{type:[Function,Array]},monthPicker:{type:Boolean},yearPicker:{type:Boolean},modelAuto:{type:Boolean},formats:{},multiDates:{type:[Boolean,Object]},minDate:{},maxDate:{},minTime:{},maxTime:{},inputAttrs:{},timeConfig:{},placeholder:{},timePicker:{type:Boolean},range:{type:[Boolean,Object]},menuId:{},disabled:{type:Boolean},readonly:{type:Boolean},inline:{type:[Boolean,Object]},textInput:{type:[Boolean,Object]},sixWeeks:{type:[Boolean,String]},actionRow:{},focusStartDate:{type:Boolean},disabledTimes:{type:[Function,Array]},calendar:{type:Function},config:{},quarterPicker:{type:Boolean},yearFirst:{type:Boolean},loading:{type:Boolean},ui:{},floating:{}},uS),emits:["update:model-value","internal-model-change","text-submit","text-input","open","closed","focus","blur","cleared","flow-step","update-month-year","invalid-select","invalid-fixed-range","invalid-date","tooltip-open","tooltip-close","am-pm-change","range-start","range-end","date-click","overlay-toggle","invalid"],setup(e,{expose:t,emit:a}){const n=e;((e,t)=>{const{setTimeModelValue:a}=pS(),n=(e=>{const{getMapKey:t,getMapKeyType:a,getTimeObjFromCurrent:n}=pS();function l(t,a){let n;return n=e.timezone?new AC(t??/* @__PURE__ */new Date,e.timezone):t?new Date(t):/* @__PURE__ */new Date,a?rC(n,{hours:0,minutes:0,seconds:0,milliseconds:0}):n}const o=()=>{const e=M.value.enableSeconds?":ss":"",t=M.value.enableMinutes?":mm":"";return M.value.is24?`HH${t}${e}`:`hh${t}${e} aa`},i=()=>e.monthPicker?"MM/yyyy":e.timePicker?o():e.weekPicker?("iso"===k.value?.type?"II":"ww")+"-RR":e.yearPicker?"yyyy":e.quarterPicker?"QQQ/yyyy":M.value.enableTimePicker?`MM/dd/yyyy, ${o()}`:"MM/dd/yyyy",r=e=>n(l(),e,M.value.enableSeconds),u=e=>e?"boolean"==typeof e?e?2:0:Math.max(+e,2):0,c=n=>{const s=a(e.monthPicker,e.yearPicker);return new Map(n.map(e=>{const a=l(e,d.value);return[t(a,s),a]}))},d=s(()=>e.monthPicker||e.yearPicker||e.quarterPicker),p=s(()=>{const t="object"==typeof e.multiCalendars&&e.multiCalendars,a={static:!0,solo:!1};if(!e.multiCalendars)return{...a,count:u(!1)};const n=t?e.multiCalendars:{},l=u(t?n.count??!0:e.multiCalendars);return Object.assign(a,n,{count:l})}),f=s(()=>C.value.enabled?M.value.startTime&&Array.isArray(M.value.startTime)?[r(M.value.startTime[0]),r(M.value.startTime[1])]:null:M.value.startTime&&!Array.isArray(M.value.startTime)?r(M.value.startTime):null),h=s(()=>({...nS,...e.ariaLabels})),m=s(()=>({...sS,...e.filters})),g=s(()=>"boolean"==typeof e.transitions?!!e.transitions&&lS:{...lS,...e.transitions}),w=s(()=>({...aS,...e.actionRow})),v=s(()=>"object"==typeof e.textInput?{...eS,...e.textInput,format:"string"==typeof e.textInput.format?e.textInput.format:I.value.input,pattern:e.textInput.format??I.value.input,enabled:!0}:{...eS,format:I.value.input,pattern:I.value.input,enabled:e.textInput}),y=s(()=>{const t={input:!1};return"object"==typeof e.inline?{...t,...e.inline,enabled:!0}:{enabled:e.inline,...t}}),b=s(()=>({...XC,...e.config})),A=s(()=>"function"==typeof e.highlight?e.highlight:{...tS,...e.highlight}),k=s(()=>"object"==typeof e.weekNumbers?{type:e.weekNumbers?.type??dS.type,hideOnOffsetDates:e.weekNumbers?.hideOnOffsetDates??dS.hideOnOffsetDates,label:e.weekNumbers.label??dS.label}:e.weekNumbers?dS:void 0),_=s(()=>"boolean"==typeof e.multiDates?{enabled:e.multiDates,dragSelect:!0,limit:null}:{enabled:!!e.multiDates,limit:e.multiDates?.limit?+e.multiDates.limit:null,dragSelect:e.multiDates?.dragSelect??!0}),x=s(()=>({minDate:e.minDate?l(e.minDate):null,maxDate:e.maxDate?l(e.maxDate):null,disabledDates:Array.isArray(e.disabledDates)?c(e.disabledDates):e.disabledDates,allowedDates:Array.isArray(e.allowedDates)?c(e.allowedDates):null,highlight:"object"==typeof A.value&&Array.isArray(A.value.dates)?c(A.value.dates):A.value,markers:e.markers?.length?new Map(e.markers.map(e=>[t(l(e.date),RC.DATE),e])):null})),C=s(()=>"object"==typeof e.range?{enabled:!0,...zC,...e.range}:{enabled:e.range,...zC}),S=s(()=>({...Object.fromEntries(Object.keys(e.ui).map(t=>{const a=t,n=e.ui[a];return"dayClass"===a?[a,e.ui[a]]:[t,"string"==typeof e.ui[a]?{[n]:!0}:Object.fromEntries(n.map(e=>[e,!0]))]}))})),I=s(()=>({...oS,...e.formats,input:e.formats?.input??i(),preview:e.formats?.preview??i()})),D=s(()=>{if(e.teleport)return"string"==typeof e.teleport?e.teleport:"boolean"==typeof e.teleport?"body":e.teleport}),M=s(()=>({...iS,...e.timeConfig}));return{transitions:g,multiCalendars:p,startTime:f,ariaLabels:h,filters:m,actionRow:w,textInput:v,inline:y,config:b,highlight:A,weekNumbers:k,range:C,safeDates:x,multiDates:_,ui:S,formats:I,teleport:D,timeConfig:M,flow:s(()=>{if(e.flow)return{steps:[],partial:!1,...e.flow}}),inputAttrs:s(()=>{const t=v.value.enabled?"text":"none";return e.inputAttrs?{...cS,inputmode:t,...e.inputAttrs}:{...cS,inputmode:t}}),floatingConfig:s(()=>({offset:e.floating?.offset??10,arrow:e.floating?.arrow??!0,strategy:e.floating?.strategy??void 0,placement:e.floating?.placement??void 0,flip:e.floating?.flip??!0,shift:e.floating?.shift??!0})),getDate:l}})(e),l=R(null),o=P({menuFocused:!1,shiftKeyInMenu:!1,isInputFocused:!1,isTextInputDate:!1,arrowNavigationLevel:0}),i=n.getDate(/* @__PURE__ */new Date),r=R(""),u=R([{month:lx(i),year:ox(i)}]),c=P({hours:0,minutes:0,seconds:0});a(c,null,i,n.range.value.enabled);const d=s({get:()=>l.value,set:e=>{l.value=e}}),p=s(()=>e=>u.value[e]?u.value[e].month:0),f=s(()=>e=>u.value[e]?u.value[e].year:0);$(MC,{rootProps:e,defaults:n,modelValue:d,state:E(o),rootEmit:t,calendars:u,month:p,year:f,time:c,today:i,inputValue:r,setState:(e,t)=>{o[e]=t},updateTime:()=>{a(c,d.value,i,n.range.value.enabled)},getDate:n.getDate})})(n,a);const l=AS(X(),n.presetDates);return t((e=>({openMenu:()=>e.value?.openMenu(),closeMenu:()=>e.value?.closeMenu(),selectDate:()=>e.value?.selectDate(),clearValue:()=>e.value?.clearValue(),formatInputValue:()=>e.value?.formatInputValue(),updateInternalModelValue:t=>e.value?.updateInternalModelValue(t),setMonthYear:(t,a)=>e.value?.setMonthYear(t,a),parseModel:()=>e.value?.parseModel(),switchView:(t,a)=>e.value?.switchView(t,a),handleFlow:()=>e.value?.handleFlow(),toggleMenu:()=>e.value?.toggleMenu(),dpMenuRef:()=>e.value?.dpMenuRef(),dpWrapMenuRef:()=>e.value?.dpWrapMenuRef(),inputRef:()=>e.value?.inputRef()}))(ee("date-picker"))),(e,t)=>(B(),i(HI,{ref:"date-picker"},d({_:2},[F(J(l),(t,a)=>({name:t,fn:ie(a=>[N(e.$slots,t,S(v(a)))])}))]),1536))}}),UI={class:"wf-block-list wf-block-list-horizontal"},YI={id:"wf-option-wafStatus",class:"wf-flex-vertical wf-flex-align-left wf-flex-full-width"},KI={key:0,class:"wf-no-top"},jI={class:"wf-no-top"},GI={key:0,id:"wafStatus-enabled-description",class:"wafStatus-description"},QI={key:1,id:"wafStatus-learning-mode-description",class:"wafStatus-description"},qI=["href"],ZI={key:2,id:"wafStatus-disabled-description",class:"wafStatus-description"},JI={class:"wf-no-top wf-add-bottom"},zI={key:0,id:"waf-learning-mode-grace-period",class:"wf-add-bottom"},XI={class:"wf-ion-ios-checkmark-empty"},eD={id:"wf-option-protectionMode",class:"wf-flex-vertical wf-flex-align-left"},tD={class:"wf-no-top"},aD={class:"wf-no-top"},nD={class:"wf-no-top"},lD={class:"wf-no-top"},sD={id:"wf-option-disableWAFBlacklistBlocking",class:"wf-flex-vertical wf-flex-align-left"},oD={class:"wf-no-top"},iD={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1blacklistUpgrade/wordfence-signup/#premium-order-form",target:"_blank",rel:"noopener noreferrer"},rD={class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:"https://www.wordfence.com/gnl1blacklistLearn/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},uD={key:1,class:"wf-no-top"},cD={class:"wf-no-top"},dD={class:"wf-option wf-option-switch wf-padding-add-bottom"},pD={class:"wf-switch"},fD={__name:"OptionsGroupBasicFirewall",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("$"),n=b("__"),l=b("sprintf"),o=b("$mitt"),d=b("wfconstants"),p=b("$dataStore"),{$modal:m}=Hn(),{$parseHashes:g}=dn(),{$updatePendingValue:w}=Vn(),{stateKey:v,collapseable:y}=Q(e);T(()=>{o.on("resetOptionControls",k),_(),a(window).on("hashchange",_)}),D(()=>{o.off("resetOptionControls",k),a(window).off("hashchange",_)});const k=()=>{},_=()=>{if(window.location.hash){const e=g();for(const t of e)"configureAutoPrepend"===t?(history.replaceState("",document.title,window.location.pathname+window.location.search),x(()=>$())):"removeAutoPrepend"===t&&(history.replaceState("",document.title,window.location.pathname+window.location.search),x(()=>$(!1)))}},{$pendingValue:S}=li("wafStatus",p.$options.wafStatus);oe(S,e=>{w("wafStatus",e,p.$options.wafStatus)},{deep:!0});const{$pendingValue:I}=li("learningModeGracePeriodEnabled",p.$options.learningModeGracePeriodEnabled);oe(I,e=>{w("learningModeGracePeriodEnabled",e,p.$options.learningModeGracePeriodEnabled)},{deep:!0});const M=s(()=>{const e=String(p.$options.learningModeGracePeriod??"").trim();if(!e)return null;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;const t=new Date(e);if(Number.isNaN(t.getTime()))return null;const a=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Intl.DateTimeFormat("en-US",{timeZone:a,year:"numeric",month:"2-digit",day:"2-digit"}).formatToParts(t),l=n.find(e=>"year"===e.type)?.value,s=n.find(e=>"month"===e.type)?.value,o=n.find(e=>"day"===e.type)?.value;return l&&s&&o?`${l}-${s}-${o}`:null}),{$pendingValue:L}=li("learningModeGracePeriod",M);oe(L,e=>{w("learningModeGracePeriod",e,M.value)},{deep:!0});const{$pendingValue:O}=li("disableWAFBlacklistBlocking",p.$options.disableWAFBlacklistBlocking);oe(O,e=>{w("disableWAFBlacklistBlocking",e,p.$options.disableWAFBlacklistBlocking)},{deep:!0}),si({wafStatus:"wf-option-wafStatus",learningModeGracePeriodEnabled:"wf-option-wafStatus",learningModeGracePeriod:"wf-option-wafStatus",protectionMode:"wf-option-protectionMode",disableWAFBlacklistBlocking:"wf-option-disableWAFBlacklistBlocking"},v);const $=(e=!0)=>{m(e?"install-waf-modal":"uninstall-waf-modal")};return(e,a)=>{const s=W("aria");return B(),i(J(_h),{stateKey:J(v),collapseable:J(y)},{title:ie(()=>[f(Y(J(n)("Basic Firewall Options")),1)]),default:ie(()=>[c("ul",UI,[c("li",YI,[c("h3",null,Y(J(n)("Web Application Firewall Status")),1),J(d).waf.is_subdirectory?(B(),u("p",KI,[f(Y(J(n)("You are currently running the Wordfence Web Application Firewall from another WordPress installation."))+" ",1),h(J(Ep),{unsafeHTML:J(l)(J(n)('Please <a href="%s">click here</a> to configure the Firewall to run correctly on this site.'),J(d).plugin.url.configure_waf)},null,8,["unsafeHTML"])])):(B(),u(t,{key:1},[c("p",jI,[J(d).waf.mode===J(d).waf.modes.enabled?(B(),u("span",GI,[c("strong",null,Y(J(n)("Enabled and Protecting"))+":",1),f(" "+Y(J(n)("In this mode, the Wordfence Web Application Firewall is actively blocking requests matching known attack patterns and is actively protecting your site from attackers.")),1)])):J(d).waf.mode===J(d).waf.modes.learning_mode?(B(),u("span",QI,[c("strong",null,Y(J(n)("Learning Mode"))+":",1),f(" "+Y(J(n)("When you first install the Wordfence Web Application Firewall, it will be in learning mode. This allows Wordfence to learn about your site so that we can understand how to protect it and how to allow normal visitors through the firewall. We recommend you let Wordfence learn for a week before you enable the firewall."))+" ",1),c("a",{href:J(d).support.url.firewall_waf_learning_mode,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(n)("Learn More")),1),h(J(Kn))],8,qI)])):(B(),u("span",ZI,[c("strong",null,Y(J(n)("Disabled"))+":",1),f(" "+Y(J(n)("In this mode, the Wordfence Web Application Firewall is functionally turned off and does not run any of its rules or analyze the request in any way.")),1)]))]),c("p",JI,[h(J(gs),{modelValue:J(S),"onUpdate:modelValue":a[0]||(a[0]=e=>A(S)?S.value=e:null),disabled:!J(d).waf.enabled,options:[{value:J(d).waf.modes.enabled,label:J(n)("Enabled and Protecting")},{value:J(d).waf.modes.learning_mode,label:J(n)("Learning Mode")},{value:J(d).waf.modes.disabled,label:J(n)("Disabled")}],canClear:!1},null,8,["modelValue","disabled","options"])]),h(J(qs),null,{default:ie(()=>[J(S)===J(d).waf.modes.learning_mode?(B(),u("div",zI,[re((B(),u("div",{class:C(["waf-learning-mode wf-option-checkbox",{"wf-checked":J(I)}]),onClick:a[1]||(a[1]=ce(e=>I.value=!J(I),["stop","prevent"]))},[re(c("i",XI,null,512),[[s,{hidden:!0}]])],2)),[[s,{role:"checkbox",checked:J(I),tabindex:0}]]),c("span",null,Y(J(n)("Automatically enable on")),1),h(J(VI),{disabled:!J(I),id:"wf-filter-date-range",modelValue:J(L),"onUpdate:modelValue":a[2]||(a[2]=e=>A(L)?L.value=e:null),"model-type":"yyyy-MM-dd",timeConfig:{enableTimePicker:!1},"min-date":/* @__PURE__ */new Date,teleport:!0,"auto-apply":!0,canClear:!1,placeholder:J(n)("Enabled until...")},null,8,["disabled","modelValue","min-date","placeholder"])])):r("",!0)]),_:1})],64))]),c("li",eD,[c("h3",null,Y(J(n)("Protection Level")),1),J(d).waf.is_extended&&!J(d).waf.is_subdirectory?(B(),u(t,{key:0},[c("p",tD,[c("strong",null,Y(J(n)("Extended Protection"))+":",1),f(" "+Y(J(n)("All PHP requests will be processed by the firewall prior to running.")),1)]),c("p",null,[h(J(Ep),{unsafeHTML:J(l)(J(n)('If you\'re moving to a new host or a new installation location, you may need to temporarily disable extended protection to avoid any file not found errors. Use this action to remove the configuration changes that enable extended protection mode or you can <a href="%s" target="_blank" rel="noopener noreferrer">remove them manually<span class="screen-reader-text"> (opens in new tab)</span></a>.'),J(d).support.url.firewall_waf_remove_manually)},null,8,["unsafeHTML"])]),c("p",aD,[re((B(),u("a",{class:"wf-btn wf-btn-default",href:"#",id:"wf-waf-uninstall",onClick:a[3]||(a[3]=ce(e=>$(!1),["stop","prevent"]))},[f(Y(J(n)("Remove Extended Protection")),1)])),[[s,{role:"button"}]])])],64)):J(d).waf.is_subdirectory?(B(),u(t,{key:1},[c("p",nD,[c("strong",null,Y(J(n)("Existing WAF Installation Detected"))+":",1),f(" "+Y(J(n)("You are currently running the Wordfence Web Application Firewall from another WordPress installation. Please configure the firewall to run correctly on this site.")),1)]),c("p",null,[re((B(),u("a",{class:"wf-btn wf-btn-primary",href:"#",id:"wf-waf-install",onClick:ce($,["stop","prevent"])},[f(Y(J(n)("Optimize the Wordfence Firewall")),1)])),[[s,{role:"button"}]])])],64)):(B(),u(t,{key:2},[c("p",lD,[c("strong",null,Y(J(n)("Basic WordPress Protection"))+":",1),f(" "+Y(J(n)("The plugin will load as a regular plugin after WordPress has been loaded, and while it can block many malicious requests, some vulnerable plugins or WordPress itself may run vulnerable code before all plugins are loaded.")),1)]),c("p",null,[re((B(),u("a",{class:"wf-btn wf-btn-primary",href:"#",id:"wf-waf-install",onClick:ce($,["stop","prevent"])},[f(Y(J(n)("Optimize the Wordfence Firewall")),1)])),[[s,{role:"button"}]])])],64))]),c("li",sD,[c("h3",null,Y(J(n)("Real-Time IP Blocklist")),1),J(d).waf.is_premium_rules?J(d).waf.is_subdirectory?(B(),u("p",uD,[h(J(Ep),{unsafeHTML:J(l)(J(n)('You are currently running the Wordfence Web Application Firewall from another WordPress installation. Please <a href="%s">click here</a> to configure the Firewall to run correctly on this site.'),J(d).plugin.url.configure_waf)},null,8,["unsafeHTML"])])):(B(),u(t,{key:2},[c("p",cD,Y(J(n)("This feature blocks all traffic from IPs with a high volume of recent malicious activity using Wordfence's real-time blocklist.")),1),c("div",dD,[re((B(),u("ul",pD,[re((B(),u("li",{class:C({"wf-active":J(O)}),tabindex:"0",onClick:a[4]||(a[4]=ce(e=>O.value=!0,["stop","prevent"]))},[f(Y(J(n)("Disabled")),1)],2)),[[s,{role:"radio",checked:J(O)}]]),re((B(),u("li",{class:C({"wf-active":!J(O)}),tabindex:"0",onClick:a[5]||(a[5]=ce(e=>O.value=!1,["stop","prevent"]))},[f(Y(J(n)("Enabled")),1)],2)),[[s,{role:"radio",checked:!J(O)}]])])),[[s,{role:"radiogroup"}]])])],64)):(B(),u(t,{key:0},[c("p",oD,[c("strong",null,Y(J(n)("Premium Feature"))+":",1),f(" "+Y(J(n)("This feature blocks all traffic from IPs with a high volume of recent malicious activity using Wordfence's real-time blocklist.")),1)]),c("p",null,[c("a",iD,[f(Y(J(n)("Upgrade to Premium")),1),h(J(Kn))]),a[6]||(a[6]=f(" ",-1)),c("a",rD,[f(Y(J(n)("Learn More")),1),h(J(Kn))])])],64))])])]),_:1},8,["stateKey","collapseable"])}}},hD=["id"],mD={key:0,class:"wf-option-spacer"},gD={class:"wf-option-content"},wD={class:"wf-option-title"},vD=["id"],yD={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},bD=["href"],AD={class:"wf-fa wf-fa-question-circle-o"},kD={class:"wf-option-checkboxes"},_D=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],xD=["onClick","onKeydown"],CD={class:"wf-ion-ios-checkmark-empty"},SD=["id","onClick"],ID={__name:"OptionToggledMultiple",props:{optionName:{type:String,required:!0},title:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},options:{type:Array,default:()=>[]}},emits:["change"],setup(e,{emit:a}){const n=a,{$isPaid:l}=Qs(),s=b("__"),{optionName:o,noSpacer:i,noVerticalSpacing:d,alignment:p,options:m}=Q(e),{$elementID:g,$elementIDLabel:w,$elementClasses:v}=li(o,null,n,{always:["wf-option-toggled-multiple"],noVerticalSpacing:d,alignment:p});si(Object.assign({},...m.value.map(e=>({[e.name]:g}))));let y={};for(const t of m.value){const{$pendingValue:e}=li(t.name,t.value,n,{});y[t.id]=e}const A=e=>{!l&&e.premium||e.disabled||(y[e.id].value===e.enabledValue?y[e.id].value=e.disabledValue:y[e.id].value=e.enabledValue)};return(a,n)=>{const l=W("aria");return B(),u("ul",{id:J(g),class:C(J(v))},[J(i)?r("",!0):(B(),u("li",mD)),c("li",gD,[c("ul",null,[c("li",wD,[c("span",{id:J(w)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,vD),n[0]||(n[0]=f()),a.premium?(B(),u("a",yD,Y(J(s)("Premium Feature")),1)):r("",!0),n[1]||(n[1]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",AD,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,bD)):r("",!0)]),c("li",kD,[(B(!0),u(t,null,F(J(m),e=>(B(),u("ul",{key:e.id,id:J(g)+"-"+e.id,"data-option":e.name,"data-enabled-value":e.enabledValue,"data-disabled-value":e.disabledValue,"data-original-value":e.value==e.enabledValue?e.enabledValue:e.disabledValue},[re((B(),u("li",{class:C(["wf-option-checkbox",{"wf-checked":J(y)[e.id].value==e.enabledValue}]),tabindex:"0",onClick:ce(t=>A(e),["stop","prevent"]),onKeydown:ue(ce(t=>A(e),["stop","prevent"]),["space"])},[re(c("i",CD,null,512),[[l,{hidden:!0}]])],42,xD)),[[l,{role:"checkbox",checked:J(y)[e.id].value==e.enabledValue,labelledby:`${J(g)}-${e.id}-label`}]]),c("li",{id:J(g)+"-"+e.id+"-label",class:"wf-option-title wf-option-extended-toggle",onClick:ce(t=>A(e),["stop","prevent"])},Y(e.title),9,SD)],8,_D))),128))])])])],10,hD)}}},DD={class:"wf-block-list"},MD={id:"wf-option-wafRules",class:"wf-option wf-flex-vertical wf-flex-align-left"},TD={class:"wf-option-title"},LD=["href"],OD={class:"wf-fa wf-fa-question-circle-o"},BD={class:"wf-option-subtitle"},$D={id:"waf-rules-wrapper",class:"wf-add-top"},PD={class:"wf-striped-table"},ED=["data-rule-id","data-original-value"],RD={style:{"text-align":"center"}},FD=["onClick","onKeydown"],ND={key:0},WD={colspan:"4"},HD={key:0,id:"waf-show-all-rules"},VD={class:"wf-center",colspan:"4"},UD={key:0,id:"waf-rules-manual-update"},YD={class:"wf-option wf-option-footer wf-padding-no-bottom"},KD={class:"wf-padding-add-top-xs-small"},jD={id:"waf-rules-next-update"},GD={__name:"OptionsGroupAdvancedFirewall",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("sprintf"),l=b("$mitt"),o=b("wfconstants"),d=b("$dataStore"),{$updatePendingValue:p}=Vn(),{$hasOwn:m,$structuredClone:g}=cn(),{$wafUpdateRules:w}=function(){const e=b("__"),t=b("$mitt"),a=b("$dataStore"),{$ajax:n}=In();return{$wafUpdateRules:()=>{n("wordfence_updateWAFRules",{},n=>{a.$wordfence.wafData=n,a.$wordfence.restoreWAFData.rules=n.rules,a.$wordfence.restoreWAFData.rulesLastUpdated=n.rulesLastUpdated,a.$wordfence.wafData.updated?a.$wordfence.wafData.isPaid?t.emit("showModal",{name:"simple-confirmation-modal",title:e("Rules Updated"),message:e("Your rules have been updated successfully.")}):t.emit("showModal",{name:"simple-confirmation-modal",title:e("Rules Updated"),message:e('Your rules have been updated successfully. You are currently using the free version of Wordfence. Upgrade to Wordfence premium to have your rules updated automatically as new threats emerge. <a href="https://www.wordfence.com/wafUpdateRules1/wordfence-signup/">Click here to purchase a premium license</a>. <em>Note: Your rules will still update every 30 days as a free user.</em>'),messageIsHTML:!0}):"ratelimit"===a.$wordfence.wafData.failure?t.emit("showModal",{name:"simple-confirmation-modal",title:e("Rule Update Failed"),message:e("No rules were updated. Your website has reached the maximum number of rule update requests. Please try again later.")}):"unreachable"===a.$wordfence.wafData.failure?t.emit("showModal",{name:"simple-confirmation-modal",title:e("Rule Update Failed"),message:e("No rules were updated. Please verify your website can reach the Wordfence servers.")}):t.emit("showModal",{name:"simple-confirmation-modal",title:e("Rule Update Failed"),message:e("No rules were updated. Please verify you have permissions to write to the /wp-content/wflogs directory.")})})}}}(),{stateKey:v,collapseable:y}=Q(e);T(()=>{l.on("resetOptionControls",A)}),D(()=>{l.off("resetOptionControls",A)});const A=()=>{},k=R(!1),_=s(()=>Object.keys(d.$wordfence.wafData.rules).length),x=s(()=>{const e=Object.entries(d.$wordfence.wafData.rules).map(([e,t])=>({...t,ruleID:t.ruleID??e}));return k.value?e:e.slice(0,10)}),S=e=>{if(o.waf.is_subdirectory)return;const t=m(d.$pendingOptions,"wafRules")?g(j(J(d.$pendingOptions.wafRules))):{};m(t,e.ruleID)?delete t[e.ruleID]:t[e.ruleID]=!!d.$wordfence.wafData.disabledRules[e.ruleID],0===Object.keys(t).length?(delete d.$pendingOptions.wafRules,l.emit("pendingOptionChanged",{name:"wafRules",value:{}})):(d.$pendingOptions.wafRules=t,l.emit("pendingOptionChanged",{name:"wafRules",value:g(j(J(d.$pendingOptions.wafRules)))}))},I=s(()=>(d.$pendingOptions.wafRules,d.$wordfence.wafData,e=>m(d.$pendingOptions,"wafRules")&&m(d.$pendingOptions.wafRules,e)?d.$pendingOptions.wafRules[e]:!d.$wordfence.wafData.disabledRules[e]));return si({wafRules:"wf-option-wafRules"},v),(e,l)=>{const s=W("aria");return B(),i(J(_h),{stateKey:J(v),collapseable:J(y)},{title:ie(()=>[f(Y(J(a)("Advanced Firewall Options")),1)]),default:ie(()=>[c("ul",DD,[c("li",null,[h(J(Xh),{optionName:"disableWAFIPBlocking",value:J(d).$options.disableWAFIPBlocking,enabledValue:!0,disabledValue:!1,title:J(a)("Delay IP and Country blocking until after WordPress and plugins have loaded (only process firewall rules early)"),subtitle:J(o).waf.is_subdirectory?J(a)("You are currently running the WAF from another WordPress installation. This option can be changed once you configure the firewall to run correctly on this site."):null,helpLink:J(o).support.url.firewall_waf_option_delay_blocking,disabled:J(o).waf.is_subdirectory,onChange:l[0]||(l[0]=e=>J(p)("disableWAFIPBlocking",e.new,J(d).$options.disableWAFIPBlocking))},null,8,["value","title","subtitle","helpLink","disabled"])]),c("li",null,[h(J(_w),{optionName:"whitelisted",value:J(d).$options.whitelisted,title:J(a)("Allowlisted IP addresses that bypass all rules"),alignTitle:"top",subtitlePosition:"value",helpLink:J(o).support.url.firewall_waf_option_whitelisted_ips,onChange:l[1]||(l[1]=e=>J(p)("whitelisted",e.new,J(d).$options.whitelisted))},{subtitle:ie(()=>[f(Y(J(a)("Allowlisted IPs must be separated by commas or placed on separate lines. You can specify ranges using the following formats: 127.0.0.1/24, 127.0.0.[1-100], or 127.0.0.1-127.0.1.100.")),1),l[7]||(l[7]=c("br",null,null,-1)),h(J(Ep),{allowedTags:["a","span"],allowedAttributes:{a:["href","target","rel"],span:["class"]},unsafeHTML:J(n)(J(a)('Wordfence automatically allowlists <a href="%s" target="_blank" rel="noopener noreferrer">private networks<span class="screen-reader-text"> (opens in new tab)</span></a> because these are not routable on the public Internet.'),"http://en.wikipedia.org/wiki/Private_network")},null,8,["unsafeHTML"])]),_:1},8,["value","title","helpLink"])]),c("li",null,[h(J(ID),{optionName:"whitelistedServices",title:J(a)("Allowlisted services"),options:J(o).options.controls.whitelisted_services_options,helpLink:J(o).support.url.firewall_waf_option_whitelisted_services,onChange:l[2]||(l[2]=e=>J(p)(e.name,e.new,J(d).$options[e.name]))},null,8,["title","options","helpLink"])]),c("li",null,[h(J(_w),{optionName:"bannedURLs",value:J(d).$options.bannedURLs,title:J(a)("Immediately block IPs that access these URLs"),alignTitle:"top",subtitle:J(a)('Separate multiple URLs with commas or place them on separate lines. Asterisks are wildcards, but use with care. If you see an attacker repeatedly probing your site for a known vulnerability you can use this to immediately block them. All URLs must start with a "/" without quotes and must be relative. e.g. /badURLone/, /bannedPage.html, /dont-access/this/URL/, /starts/with-*'),subtitlePosition:"value",helpLink:J(o).support.url.firewall_waf_option_immediately_block_urls,onChange:l[3]||(l[3]=e=>J(p)("bannedURLs",e.new,J(d).$options.bannedURLs))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(_w),{optionName:"wafAlertWhitelist",value:J(d).$options.wafAlertWhitelist,title:J(a)("Ignored IP addresses for Wordfence Web Application Firewall alerting"),alignTitle:"top",subtitle:J(a)("Ignored IPs must be separated by commas or placed on separate lines. These addresses will be ignored from any alerts about increased attacks and can be used to ignore things like standalone website security scanners."),subtitlePosition:"value",helpLink:J(o).support.url.firewall_waf_ignored_alert_ips,onChange:l[4]||(l[4]=e=>J(p)("wafAlertWhitelist",e.new,J(d).$options.wafAlertWhitelist))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[c("ul",MD,[c("li",TD,[c("strong",null,Y(J(a)("Rules")),1),l[8]||(l[8]=f()),c("a",{href:J(o).support.url.firewall_waf_rules,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",OD,null,512),[[s,{hidden:!0}]]),h(J(Kn))],8,LD)]),c("li",BD,[J(o).waf.is_subdirectory?(B(),u(t,{key:0},[f(Y(J(a)("You are currently running the WAF from another WordPress installation. These rules can be disabled or enabled once you configure the firewall to run correctly on this site.")),1)],64)):r("",!0)]),c("li",$D,[c("table",PD,[c("thead",null,[c("tr",null,[l[9]||(l[9]=c("th",{style:{width:"5%"}},null,-1)),c("th",null,Y(J(a)("Category")),1),c("th",null,Y(J(a)("Description")),1)])]),c("tbody",null,[(B(!0),u(t,null,F(x.value,e=>(B(),u("tr",{key:e.ruleID,"data-rule-id":e.ruleID,"data-original-value":!J(d).$wordfence.wafData.disabledRules[e.ruleID]},[c("td",RD,[c("div",{class:C(["wf-rule-toggle wf-boolean-switch",{"wf-active":I.value(e.ruleID),"wf-disabled":J(o).waf.is_subdirectory}]),onClick:ce(t=>S(e),["stop","prevent"]),onKeydown:ue(ce(t=>S(e),["stop","prevent"]),["space"])},[...l[10]||(l[10]=[c("a",{href:"#",class:"wf-boolean-switch-handle"},null,-1)])],42,FD)]),c("td",null,Y(e.category),1),c("td",null,Y(e.description),1)],8,ED))),128)),0===_.value?(B(),u("tr",ND,[c("td",WD,Y(J(a)("No rules currently set.")),1)])):r("",!0)]),c("tfoot",null,[_.value>10&&!k.value?(B(),u("tr",HD,[c("td",VD,[re((B(),u("a",{href:"#",id:"waf-show-all-rules-button",onClick:l[5]||(l[5]=ce(e=>k.value=!0,["stop","prevent"]))},[f(Y(J(a)("SHOW ALL RULES")),1)])),[[s,{role:"button"}]])])])):r("",!0)])])]),J(o).waf.is_subdirectory?r("",!0):(B(),u("li",UD,[c("ul",YD,[c("li",null,[re((B(),u("a",{class:"wf-btn wf-btn-default waf-rules-refresh",href:"#",onClick:l[6]||(l[6]=ce((...e)=>J(w)&&J(w)(...e),["stop","prevent"]))},[f(Y(J(a)("Manually Refresh Rules")),1)])),[[s,{role:"button"}]]),l[11]||(l[11]=f(" ",-1))]),c("li",KD,[c("em",jD,[f(Y(J(a)("Next Update Check"))+": ",1),h(J(Mi),{timestamp:J(d).$wordfence.nextUpdate},null,8,["timestamp"])])])])]))])])])]),_:1},8,["stateKey","collapseable"])}}},QD=["id","data-option-name","data-original-value"],qD={key:0,class:"wf-option-spacer"},ZD={class:"wf-option-content"},JD={key:0,class:"wf-option-title"},zD={class:"wf-flex-vertical wf-flex-align-left"},XD=["id"],eM={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},tM=["href"],aM={class:"wf-fa wf-fa-question-circle-o"},nM={class:"wf-option-subtitle"},lM={key:1,class:"wf-option-title"},sM=["id"],oM={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},iM=["href"],rM={class:"wf-fa wf-fa-question-circle-o"},uM=["data-option-value","onClick","onKeydown"],cM={__name:"OptionSwitch",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},states:{type:Array,default:()=>[]},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change"],setup(e,{emit:a}){const{$isPaid:n}=Qs(),{$hasOwn:l}=cn(),s=a,o=X(),d=b("__"),p=e,{optionName:m,value:g,premium:w,disabled:v,noSpacer:y,noVerticalSpacing:A,alignment:k}=Q(p),{$elementID:_,$elementIDLabel:x,$elementClasses:S,$pendingValue:I}=li(m,g,s,{always:["wf-option-switch"],premium:w,disabled:v,noVerticalSpacing:A,alignment:k});si({[p.optionName]:_});const D=e=>{e.disabled||v.value||w.value&&!n||(I.value=e.value)};return(a,s)=>{const p=W("aria");return B(),u("ul",{id:J(_),class:C(J(S)),"data-option-name":J(m),"data-original-value":J(g)},[J(y)?r("",!0):(B(),u("li",qD)),c("li",ZD,[c("ul",null,[e.subtitle||J(o).subtitle?(B(),u("li",JD,[c("ul",zD,[c("li",null,[c("span",{id:J(x)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,XD),J(w)?(B(),u("a",eM,Y(J(d)("Premium Feature")),1)):r("",!0),s[0]||(s[0]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",aM,null,512),[[p,{hidden:!0}]]),h(J(Kn))],8,tM)):r("",!0)]),c("li",nM,[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",lM,[c("span",{id:J(x)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,sM),J(w)?(B(),u("a",oM,Y(J(d)("Premium Feature")),1)):r("",!0),s[1]||(s[1]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",rM,null,512),[[p,{hidden:!0}]]),h(J(Kn))],8,iM)):r("",!0)])),c("li",{class:C({"wf-option-switch":!0,"wf-padding-add-top-xs-small":!0,"wf-right":"right"===J(k)})},[re((B(),u("ul",{class:C({"wf-switch":!0,"wf-disabled":!J(n)&&J(w)})},[(B(!0),u(t,null,F(e.states,e=>re((B(),u("li",{key:e.label,class:C({"wf-active":e.value==J(I),"wf-disabled":!!e.disabled}),"data-option-value":e.value,tabindex:"0",onClick:ce(t=>D(e),["stop","prevent"]),onKeydown:ue(ce(t=>D(e),["stop","prevent"]),["space"])},[e.labelIsHTML?(B(),i(J(Ep),{key:0,unsafeHTML:e.label},null,8,["unsafeHTML"])):J(l)(e,"xs")?(B(),i(J(Vs),{key:1,text:e.label,xs:e.xs},null,8,["text","xs"])):(B(),u(t,{key:2},[f(Y(e.label),1)],64))],42,uM)),[[p,{role:"radio",checked:e.value==J(I),disabled:!!e.disabled||J(v)||!J(n)&&J(w)}]])),128))],2)),[[p,{role:"radiogroup",labelledby:J(x)}]])],2)])])],10,QD)}}},dM=["data-option","data-original-value"],pM={key:0,class:"wf-option-spacer"},fM={class:"wf-option-content"},hM=["id"],mM={class:"wf-option-title"},gM=["id"],wM={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},vM=["href"],yM={class:"wf-fa wf-fa-question-circle-o"},bM={class:"wf-option-select wf-padding-add-top-xs-small"},AM={__name:"OptionSelect",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},selectOptions:{type:Array,default:()=>[]}},emits:["change","changeSelect"],setup(e,{emit:t}){const a=t,{$isPaid:n}=Qs(),l=b("__"),s=e,{optionName:o,value:i,premium:d,disabled:p,noSpacer:m,noVerticalSpacing:g,alignment:w,selectOptions:v}=Q(s),{$elementID:y,$elementIDLabel:k,$elementClasses:_,$pendingValue:x}=li(o,i,a,{always:["wf-option-select"],premium:d,disabled:p,noVerticalSpacing:g,alignment:w});return si({[s.optionName]:y}),(t,a)=>{const s=W("aria");return B(),u("ul",{class:C(J(_)),"data-option":J(o),"data-original-value":J(i)},[J(m)?r("",!0):(B(),u("li",pM)),c("li",fM,[c("ul",{id:J(y)},[c("li",mM,[c("span",{id:J(k)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,gM),J(d)?(B(),u("a",wM,Y(J(l)("Premium Feature")),1)):r("",!0),a[1]||(a[1]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",yM,null,512),[[s,{hidden:!0}]]),h(J(Kn))],8,vM)):r("",!0)]),c("li",bM,[h(J(gs),{disabled:!J(n)&&J(d),"aria-labelledby":J(k),modelValue:J(x),"onUpdate:modelValue":a[0]||(a[0]=e=>A(x)?x.value=e:null),options:J(v),canClear:!1},null,8,["disabled","aria-labelledby","modelValue","options"])])],8,hM)])],10,dM)}}},kM={class:"wf-option wf-option-label"},_M={key:0,class:"wf-option-spacer"},xM={class:"wf-option-content"},CM={key:0,class:"wf-option-title"},SM={class:"wf-flex-vertical wf-flex-align-left"},IM=["href"],DM={class:"wf-fa wf-fa-question-circle-o"},MM={class:"wf-option-subtitle"},TM={key:1,class:"wf-option-title"},LM=["href"],OM={class:"wf-fa wf-fa-question-circle-o"},BM={__name:"OptionLabel",props:{title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},noSpacer:{type:Boolean,default:!1}},setup(e){const t=X();return(a,n)=>{const l=W("aria");return B(),u("ul",kM,[e.noSpacer?r("",!0):(B(),u("li",_M)),c("li",xM,[c("ul",null,[e.subtitle||J(t).subtitle?(B(),u("li",CM,[c("ul",SM,[c("li",null,[N(a.$slots,"title",{},()=>[c("strong",null,Y(e.title),1)]),n[0]||(n[0]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",DM,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,IM)):r("",!0)]),c("li",MM,[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",TM,[N(a.$slots,"title",{},()=>[c("strong",null,Y(e.title),1)]),n[1]||(n[1]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",OM,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,LM)):r("",!0)]))])])])}}},$M=["id","data-option-name","data-original-value"],PM={key:0,class:"wf-option-spacer"},EM={class:"wf-option-content"},RM={key:0,class:"wf-option-title"},FM={class:"wf-flex-vertical wf-flex-align-left"},NM=["id"],WM={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},HM=["href"],VM={class:"wf-fa wf-fa-question-circle-o"},UM={class:"wf-option-subtitle"},YM={key:1,class:"wf-option-title"},KM=["id"],jM={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},GM=["href"],QM={class:"wf-fa wf-fa-question-circle-o"},qM={__name:"OptionToken",props:{optionName:{type:String,required:!0},value:{default:null},placeholder:{type:[String,null],default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const{$isPaid:a}=Qs(),n=t,l=X(),s=b("__"),o=e,{value:i,optionName:d,premium:p,disabled:m,noSpacer:g,noVerticalSpacing:w}=Q(o),{$elementID:v,$elementIDLabel:y,$elementClasses:k,$pendingValue:_}=li(d,i,n,{always:["wf-option-token"],premium:p,disabled:m,noVerticalSpacing:w});return si({[o.optionName]:v}),(t,n)=>{const o=W("aria");return B(),u("ul",{id:J(v),class:C(J(k)),"data-option-name":J(d),"data-original-value":JSON.stringify(J(i))},[J(g)?r("",!0):(B(),u("li",PM)),c("li",EM,[c("ul",null,[e.subtitle||J(l).subtitle?(B(),u("li",RM,[c("ul",FM,[c("li",null,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,NM),J(p)?(B(),u("a",WM,Y(J(s)("Premium Feature")),1)):r("",!0),n[1]||(n[1]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",VM,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,HM)):r("",!0)]),c("li",UM,[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])])])):(B(),u("li",YM,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,KM),J(p)?(B(),u("a",jM,Y(J(s)("Premium Feature")),1)):r("",!0),n[2]||(n[2]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",QM,null,512),[[o,{hidden:!0}]]),h(J(Kn))],8,GM)):r("",!0)])),h(J(gs),{modelValue:J(_),"onUpdate:modelValue":n[0]||(n[0]=e=>A(_)?_.value=e:null),mode:"tags","close-on-select":!1,searchable:!0,"create-option":!0,"allow-absent":!0,options:[],placeholder:e.placeholder,disabled:J(m)||!J(a)&&J(p),"aria-labelledby":J(y)},null,8,["modelValue","placeholder","disabled","aria-labelledby"])])])],10,$M)}}},ZM={class:"wf-block-list"},JM={__name:"OptionsGroupBruteForce",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn(),{$makeDuration:o}=Un(),{stateKey:r,collapseable:u}=Q(e);T(()=>{a.on("resetOptionControls",d)}),D(()=>{a.off("resetOptionControls",d)});const d=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(r),collapseable:J(u)},{title:ie(()=>[f(Y(J(t)("Brute Force Protection")),1)]),default:ie(()=>[c("ul",ZM,[c("li",null,[h(J(cM),{optionName:"loginSecurityEnabled",value:J(l).$options.loginSecurityEnabled,subtitle:J(t)('This option enables all "Brute Force Protection" options, including strong password enforcement and invalid login throttling. You can modify individual options below.'),states:[{value:!1,label:J(t)("Off")},{value:!0,label:J(t)("On")}],helpLink:J(n).support.url.firewall_waf_option_enable_login_security,alignment:"right",onChange:a[0]||(a[0]=e=>J(s)("loginSecurityEnabled",e.new,J(l).$options.loginSecurityEnabled))},{title:ie(()=>[c("strong",null,Y(J(t)("Enable brute force protection")),1)]),_:1},8,["value","subtitle","states","helpLink"])]),c("li",null,[h(J(AM),{optionName:"loginSec_maxFailures",value:J(l).$options.loginSec_maxFailures,title:J(t)("Lock out after how many login failures"),helpLink:J(n).support.url.firewall_waf_option_lock_out_failure_count,onChange:a[1]||(a[1]=e=>J(s)("loginSec_maxFailures",e.new,J(l).$options.loginSec_maxFailures)),selectOptions:[2,3,4,5,6,7,8,9,10,20,30,40,50,100,200,500].map(e=>({value:e,label:`${e}`}))},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(AM),{optionName:"loginSec_maxForgotPasswd",value:J(l).$options.loginSec_maxForgotPasswd,title:J(t)("Lock out after how many forgot password attempts"),helpLink:J(n).support.url.firewall_waf_option_lock_out_forgot_password_count,onChange:a[2]||(a[2]=e=>J(s)("loginSec_maxForgotPasswd",e.new,J(l).$options.loginSec_maxForgotPasswd)),selectOptions:[1,2,3,4,5,6,7,8,9,10,20,30,40,50,100,200,500].map(e=>({value:e,label:`${e}`}))},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(AM),{optionName:"loginSec_countFailMins",value:J(l).$options.loginSec_countFailMins,title:J(t)("Count failures over what time period"),helpLink:J(n).support.url.firewall_waf_option_count_time_period,onChange:a[3]||(a[3]=e=>J(s)("loginSec_countFailMins",e.new,J(l).$options.loginSec_countFailMins)),selectOptions:[5,10,30,60,120,240,360,720,1440].map(e=>({value:e,label:J(o)(60*e)}))},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(AM),{optionName:"loginSec_lockoutMins",value:J(l).$options.loginSec_lockoutMins,title:J(t)("Amount of time a user is locked out"),helpLink:J(n).support.url.firewall_waf_option_lockout_duration,onChange:a[4]||(a[4]=e=>J(s)("loginSec_lockoutMins",e.new,J(l).$options.loginSec_lockoutMins)),selectOptions:[5,10,30,60,120,240,360,720,1440,2880,7200,14400,28800,43200,86400].map(e=>({value:e,label:J(o)(60*e)}))},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(Xh),{optionName:"loginSec_lockInvalidUsers",value:J(l).$options.loginSec_lockInvalidUsers,enabledValue:!0,disabledValue:!1,title:J(t)("Immediately lock out invalid usernames"),helpLink:J(n).support.url.firewall_waf_option_immediately_lock_out_invalid_users,onChange:a[5]||(a[5]=e=>J(s)("loginSec_lockInvalidUsers",e.new,J(l).$options.loginSec_lockInvalidUsers))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(qM),{optionName:"loginSec_userBlacklist",value:J(l).$options.loginSec_userBlacklist,title:J(t)("Immediately block the IP of users who try to sign in as these usernames"),subtitle:J(t)("Hit enter to add a username"),helpLink:J(n).support.url.firewall_waf_option_immediately_block_users,onChange:a[6]||(a[6]=e=>J(s)("loginSec_userBlacklist",e.new,J(l).$options.loginSec_userBlacklist))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(aw),{optionName:"loginSec_breachPasswds_enabled",value:J(l).$options.loginSec_breachPasswds_enabled,enabledValue:!0,disabledValue:!1,title:J(t)("Prevent the use of passwords leaked in data breaches"),helpLink:J(n).support.url.firewall_waf_option_prevent_breach_passwords,onChange:a[7]||(a[7]=e=>J(s)("loginSec_breachPasswds_enabled",e.new,J(l).$options.loginSec_breachPasswds_enabled)),selectOptionName:"loginSec_breachPasswds",selectOptions:[{value:"admins",label:J(t)("For admins only")},{value:"pubs",label:J(t)('For all users with "publish posts" capability')}],selectValue:J(l).$options.loginSec_breachPasswds,onChangeSelect:a[8]||(a[8]=e=>J(s)("loginSec_breachPasswds",e.new,J(l).$options.loginSec_breachPasswds))},null,8,["value","title","helpLink","selectOptions","selectValue"])]),c("li",null,[h(J(BM),{title:J(t)("Additional Options"),noSpacer:!0},null,8,["title"])]),c("li",null,[h(J(aw),{optionName:"loginSec_strongPasswds_enabled",value:J(l).$options.loginSec_strongPasswds_enabled,enabledValue:!0,disabledValue:!1,title:J(t)("Enforce strong passwords"),helpLink:J(n).support.url.firewall_waf_option_enforce_strong_passwords,onChange:a[9]||(a[9]=e=>J(s)("loginSec_strongPasswds_enabled",e.new,J(l).$options.loginSec_strongPasswds_enabled)),selectOptionName:"loginSec_strongPasswds",selectOptions:[{value:"pubs",label:J(t)("Force admins and publishers to use strong passwords (recommended)")},{value:"all",label:J(t)("Force all members to use strong passwords")}],selectValue:J(l).$options.loginSec_strongPasswds,onChangeSelect:a[10]||(a[10]=e=>J(s)("loginSec_strongPasswds",e.new,J(l).$options.loginSec_strongPasswds))},null,8,["value","title","helpLink","selectOptions","selectValue"])]),c("li",null,[h(J(Xh),{optionName:"loginSec_maskLoginErrors",value:J(l).$options.loginSec_maskLoginErrors,enabledValue:!0,disabledValue:!1,title:J(t)("Don't let WordPress reveal valid users in login errors"),helpLink:J(n).support.url.firewall_waf_option_mask_login_errors,onChange:a[11]||(a[11]=e=>J(s)("loginSec_maskLoginErrors",e.new,J(l).$options.loginSec_maskLoginErrors))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"loginSec_blockAdminReg",value:J(l).$options.loginSec_blockAdminReg,enabledValue:!0,disabledValue:!1,title:J(t)("Prevent users registering 'admin' username if it doesn't exist"),helpLink:J(n).support.url.firewall_waf_option_prevent_admin_registration,onChange:a[12]||(a[12]=e=>J(s)("loginSec_blockAdminReg",e.new,J(l).$options.loginSec_blockAdminReg))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"loginSec_disableAuthorScan",value:J(l).$options.loginSec_disableAuthorScan,enabledValue:!0,disabledValue:!1,title:J(t)("Prevent discovery of usernames through '/?author=N' scans, the oEmbed API, the WordPress REST API, and WordPress XML Sitemaps"),helpLink:J(n).support.url.firewall_waf_option_prevent_author_scan,onChange:a[13]||(a[13]=e=>J(s)("loginSec_disableAuthorScan",e.new,J(l).$options.loginSec_disableAuthorScan))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"loginSec_disableApplicationPasswords",value:J(l).$options.loginSec_disableApplicationPasswords,enabledValue:!0,disabledValue:!1,title:J(t)("Disable WordPress application passwords"),helpLink:J(n).support.url.firewall_waf_option_disable_application_passwords,onChange:a[14]||(a[14]=e=>J(s)("loginSec_disableApplicationPasswords",e.new,J(l).$options.loginSec_disableApplicationPasswords))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_blockBadPOST",value:J(l).$options.other_blockBadPOST,enabledValue:!0,disabledValue:!1,title:J(t)("Block IPs who send POST requests with blank User-Agent and Referer"),subtitle:J(t)("If you use external services that may send POST requests without these headers, do not use this option, as they will be blocked."),helpLink:J(n).support.url.firewall_waf_option_block_bad_post,onChange:a[15]||(a[15]=e=>J(s)("other_blockBadPOST",e.new,J(l).$options.other_blockBadPOST))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(_w),{optionName:"blockCustomText",value:J(l).$options.blockCustomText,title:J(t)("Custom text shown on block pages"),alignTitle:"top",subtitle:J(t)("HTML tags will be stripped prior to output and line breaks will be converted into the appropriate tags."),subtitlePosition:"value",helpLink:J(n).support.url.firewall_waf_option_custom_block_text,onChange:a[16]||(a[16]=e=>J(s)("blockCustomText",e.new,J(l).$options.blockCustomText))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_pwStrengthOnUpdate",value:J(l).$options.other_pwStrengthOnUpdate,enabledValue:!0,disabledValue:!1,title:J(t)("Check password strength on profile update"),helpLink:J(n).support.url.firewall_waf_option_check_password,onChange:a[17]||(a[17]=e=>J(s)("other_pwStrengthOnUpdate",e.new,J(l).$options.other_pwStrengthOnUpdate))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_WFNet",value:J(l).$options.other_WFNet,enabledValue:!0,disabledValue:!1,title:J(t)("Participate in the Real-Time Wordfence Security Network"),helpLink:J(n).support.url.firewall_waf_option_participate_wfsn,onChange:a[18]||(a[18]=e=>J(s)("other_WFNet",e.new,J(l).$options.other_WFNet))},null,8,["value","title","helpLink"])])])]),_:1},8,["stateKey","collapseable"]))}},zM=["data-rate-option","data-rate-original-value","data-action-option","data-action-original-value"],XM={key:0,class:"wf-option-spacer"},eT={class:"wf-option-content"},tT={class:"wf-option-title"},aT=["id"],nT={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},lT=["href"],sT={class:"wf-fa wf-fa-question-circle-o"},oT={class:"wf-option-select wf-left-xs wf-padding-add-top-xs-small wf-nowrap wf-flex-vertical wf-flex-align-right"},iT={class:"wf-flex-horizontal wf-flex-align-right"},rT={class:"wf-rate-limit-rate"},uT={class:"wf-padding-add-left-small wf-padding-add-right-small wf-padding-add-top-xs-small wf-padding-add-bottom-xs-small wf-inline-block-xs"},cT={class:"wf-rate-limit-action"},dT={key:0,class:"wf-rate-limit-warning"},pT={class:"wf-inline-notice"},fT={class:"wf-fa wf-fa-exclamation-triangle"},hT={__name:"OptionRateLimit",props:{optionName:{type:String,required:!0},value:{default:null},lowValue:{type:Number,default:60},title:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},premium:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},actionOptionName:{type:String,required:!0},actionValue:{default:null}},emits:["change","changeAction"],setup(e,{emit:t}){const a=t,{$isPaid:n}=Qs(),l=b("__"),o=b("sprintf"),{optionName:i,value:d,lowValue:p,premium:m,disabled:g,noSpacer:w,noVerticalSpacing:v,alignment:y,actionOptionName:k,actionValue:_}=Q(e),{$elementID:x,$elementIDLabel:S,$elementClasses:I,$pendingValue:D}=li(i,d,a,{always:["wf-option-rate-limit"],premium:m,disabled:g,noVerticalSpacing:v,alignment:y}),{$elementID:M,$pendingValue:T}=li(k,_,a,{},"changeAction"),L=s(()=>[{value:"DISABLED",label:l("Unlimited")},{value:1920,label:o(l("%d per minute"),1920)},{value:960,label:o(l("%d per minute"),960)},{value:480,label:o(l("%d per minute"),480)},{value:240,label:o(l("%d per minute"),240)},{value:120,label:o(l("%d per minute"),120)},{value:60,label:o(l("%d per minute"),60)},{value:30,label:o(l("%d per minute"),30)},{value:15,label:o(l("%d per minute"),15)},{value:10,label:o(l("%d per minute"),10)},{value:5,label:o(l("%d per minute"),5)},{value:4,label:o(l("%d per minute"),4)},{value:3,label:o(l("%d per minute"),3)},{value:2,label:o(l("%d per minute"),2)},{value:1,label:o(l("%d per minute"),1)}]),O=s(()=>[{value:"throttle",label:l("throttle it")},{value:"block",label:l("block it")}]);return(t,a)=>{const s=W("aria");return B(),u("ul",{class:C(J(I)),"data-rate-option":J(i),"data-rate-original-value":J(d),"data-action-option":J(k),"data-action-original-value":J(_)},[J(w)?r("",!0):(B(),u("li",XM)),c("li",eT,[c("ul",null,[c("li",tT,[c("span",{id:J(S)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,aT),J(m)?(B(),u("a",nT,Y(J(l)("Premium Feature")),1)):r("",!0),a[2]||(a[2]=f()),e.helpLink?(B(),u("a",{key:1,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",sT,null,512),[[s,{hidden:!0}]]),h(J(Kn))],8,lT)):r("",!0)]),c("li",oT,[c("div",iT,[c("div",rT,[h(J(gs),{id:J(x),disabled:!J(n)&&J(m),"aria-labelledby":J(S),modelValue:J(D),"onUpdate:modelValue":a[0]||(a[0]=e=>A(D)?D.value=e:null),options:L.value,canClear:!1},null,8,["id","disabled","aria-labelledby","modelValue","options"])]),c("span",uT,Y(J(l)("then")),1),c("div",cT,[h(J(gs),{id:J(M),disabled:!J(n)&&J(m),"aria-labelledby":J(S),modelValue:J(T),"onUpdate:modelValue":a[1]||(a[1]=e=>A(T)?T.value=e:null),options:O.value,canClear:!1},null,8,["id","disabled","aria-labelledby","modelValue","options"])])]),J(D)<J(p)?(B(),u("div",dT,[c("div",pT,[re(c("i",fT,null,512),[[s,{hidden:!0}]]),c("span",null,Y(J(l)("Very strict. May cause false positives.")),1)])])):r("",!0)])])])],10,zM)}}},mT={class:"wf-block-list"},gT={__name:"OptionsGroupRateLimiting",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:o}=Vn(),{$makeDuration:r}=Un(),{stateKey:u,collapseable:d}=Q(e);T(()=>{a.on("resetOptionControls",p)}),D(()=>{a.off("resetOptionControls",p)});const p=()=>{},m=s(()=>{const e=[60,300,1800,3600,7200,21600,43200,86400,172800,432e3,864e3,2592e3];let t=[];for(const a of e)t.push({value:a,label:r(a)});return t});return(e,a)=>(B(),i(J(_h),{stateKey:J(u),collapseable:J(d)},{title:ie(()=>[f(Y(J(t)("Rate Limiting")),1)]),default:ie(()=>[c("ul",mT,[c("li",null,[h(J(cM),{optionName:"firewallEnabled",value:J(l).$options.firewallEnabled,title:J(t)("Enable Rate Limiting and Advanced Blocking"),subtitle:J(t)('NOTE: This checkbox enables ALL blocking/throttling functions including IP, country and advanced blocking, and the "Rate Limiting Rules" below.'),states:[{value:!1,label:J(t)("Off")},{value:!0,label:J(t)("On")}],helpLink:J(n).support.url.firewall_waf_option_enable_advanced_blocking,noSpacer:!0,alignment:"right",onChange:a[0]||(a[0]=e=>J(o)("firewallEnabled",e.new,J(l).$options.firewallEnabled))},{title:ie(()=>[c("strong",null,Y(J(t)("Enable Rate Limiting and Advanced Blocking")),1)]),_:1},8,["value","title","subtitle","states","helpLink"])]),c("li",null,[h(J(AM),{optionName:"neverBlockBG",value:J(l).$options.neverBlockBG,title:J(t)("How should we treat Google's crawlers"),helpLink:J(n).support.url.firewall_waf_option_google_action,noSpacer:!0,onChange:a[1]||(a[1]=e=>J(o)("neverBlockBG",e.new,J(l).$options.neverBlockBG)),selectOptions:[{value:"neverBlockVerified",label:J(t)("Verified Google crawlers will not be rate-limited")},{value:"neverBlockUA",label:J(t)("Anyone claiming to be Google will not be rate-limited")},{value:"treatAsOtherCrawlers",label:J(t)("Treat Google like any other Crawler")}]},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(hT),{optionName:"maxGlobalRequests",value:J(l).$options.maxGlobalRequests,lowValue:120,onChange:a[2]||(a[2]=e=>J(o)("maxGlobalRequests",e.new,J(l).$options.maxGlobalRequests)),actionOptionName:"maxGlobalRequests_action",actionValue:J(l).$options.maxGlobalRequests_action,onChangeAction:a[3]||(a[3]=e=>J(o)("maxGlobalRequests_action",e.new,J(l).$options.maxGlobalRequests_action)),title:J(t)("If anyone's requests exceed"),helpLink:J(n).support.url.firewall_waf_option_rate_limit_any,noSpacer:!0},null,8,["value","actionValue","title","helpLink"])]),c("li",null,[h(J(hT),{optionName:"maxRequestsCrawlers",value:J(l).$options.maxRequestsCrawlers,lowValue:120,onChange:a[4]||(a[4]=e=>J(o)("maxRequestsCrawlers",e.new,J(l).$options.maxRequestsCrawlers)),actionOptionName:"maxRequestsCrawlers_action",actionValue:J(l).$options.maxRequestsCrawlers_action,onChangeAction:a[5]||(a[5]=e=>J(o)("maxRequestsCrawlers_action",e.new,J(l).$options.maxRequestsCrawlers_action)),title:J(t)("If a crawler's page views exceed"),helpLink:J(n).support.url.firewall_waf_option_rate_limit_crawler,noSpacer:!0},null,8,["value","actionValue","title","helpLink"])]),c("li",null,[h(J(hT),{optionName:"max404Crawlers",value:J(l).$options.max404Crawlers,lowValue:60,onChange:a[6]||(a[6]=e=>J(o)("max404Crawlers",e.new,J(l).$options.max404Crawlers)),actionOptionName:"max404Crawlers_action",actionValue:J(l).$options.max404Crawlers_action,onChangeAction:a[7]||(a[7]=e=>J(o)("max404Crawlers_action",e.new,J(l).$options.max404Crawlers_action)),title:J(t)("If a crawler's pages not found (404s) exceed"),helpLink:J(n).support.url.firewall_waf_option_rate_limit_crawler_404,noSpacer:!0},null,8,["value","actionValue","title","helpLink"])]),c("li",null,[h(J(hT),{optionName:"maxRequestsHumans",value:J(l).$options.maxRequestsHumans,lowValue:120,onChange:a[8]||(a[8]=e=>J(o)("maxRequestsHumans",e.new,J(l).$options.maxRequestsHumans)),actionOptionName:"maxRequestsHumans_action",actionValue:J(l).$options.maxRequestsHumans_action,onChangeAction:a[9]||(a[9]=e=>J(o)("maxRequestsHumans_action",e.new,J(l).$options.maxRequestsHumans_action)),title:J(t)("If a human's page views exceed"),helpLink:J(n).support.url.firewall_waf_option_rate_limit_human,noSpacer:!0},null,8,["value","actionValue","title","helpLink"])]),c("li",null,[h(J(hT),{optionName:"max404Humans",value:J(l).$options.max404Humans,lowValue:60,onChange:a[10]||(a[10]=e=>J(o)("max404Humans",e.new,J(l).$options.max404Humans)),actionOptionName:"max404Humans_action",actionValue:J(l).$options.max404Humans_action,onChangeAction:a[11]||(a[11]=e=>J(o)("max404Humans_action",e.new,J(l).$options.max404Humans_action)),title:J(t)("If a human's pages not found (404s) exceed"),helpLink:J(n).support.url.firewall_waf_option_rate_limit_human_404,noSpacer:!0},null,8,["value","actionValue","title","helpLink"])]),c("li",null,[h(J(AM),{optionName:"blockedTime",value:J(l).$options.blockedTime,title:J(t)("How long is an IP address blocked when it breaks a rule"),helpLink:J(n).support.url.firewall_waf_option_automatic_block_duration,noSpacer:!0,onChange:a[12]||(a[12]=e=>J(o)("blockedTime",e.new,J(l).$options.blockedTime)),selectOptions:m.value},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(_w),{optionName:"allowed404s",value:J(l).$options.allowed404s,title:J(t)("Allowlisted 404 URLs"),subtitle:J(t)("These URL patterns will be excluded from the throttling rules used to limit crawlers."),helpLink:J(n).support.url.firewall_waf_option_whitelisted_404,noSpacer:!0,onChange:a[13]||(a[13]=e=>J(o)("allowed404s",e.new,J(l).$options.allowed404s))},null,8,["value","title","subtitle","helpLink"])])])]),_:1},8,["stateKey","collapseable"]))}},wT={class:"wf-block-list"},vT={key:0},yT={id:"wf-option-wafWhitelist",class:"wf-option wf-flex-vertical wf-flex-full-width"},bT=["href"],AT={class:"wf-fa wf-fa-question-circle-o"},kT={id:"whitelist-form"},_T={class:"wf-form-inline"},xT={class:"wf-form-group"},CT=["placeholder"],ST={class:"wf-form-group"},IT={class:"wf-form-group"},DT=["placeholder"],MT={id:"whitelist-table-controls",class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width"},TT={class:"wf-right wf-left-xs wf-padding-add-top-xs-small"},LT={class:"wf-select-group wf-flex-vertical-xs wf-flex-full-width"},OT=["placeholder"],BT={id:"waf-whitelisted-urls-wrapper"},$T={class:"whitelist-table-container"},PT={class:"wf-striped-table whitelist-table"},ET={style:{width:"2%","text-align":"center"}},RT=["onKeydown"],FT={class:"wf-ion-ios-checkmark-empty"},NT={style:{width:"5%"}},WT={style:{"text-align":"center"}},HT=["onClick","onKeydown"],VT={class:"wf-ion-ios-checkmark-empty"},UT={style:{"text-align":"center"}},YT=["onClick","onKeydown"],KT={class:"wf-ion-ios-checkmark-empty"},jT={"data-column":"url"},GT={class:"whitelist-display"},QT={"data-column":"param"},qT={class:"whitelist-display"},ZT={"data-column":"source"},JT={"data-column":"user"},zT={"data-column":"ip"},XT={key:0},eL={colspan:"8"},tL={key:0},aL={style:{width:"2%","text-align":"center"}},nL=["onKeydown"],lL={class:"wf-ion-ios-checkmark-empty"},sL={style:{width:"5%"}},oL={__name:"OptionsGroupWhitelisted",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("sprintf"),l=b("$mitt"),o=b("wfconstants"),d=b("$dataStore"),{$modalNotice:p}=Hn(),{$updatePendingValue:m}=Vn(),{$hasOwn:g,$structuredClone:w}=cn(),{$base64_decode:v,$base64_encode:y}=Un(),{stateKey:A,collapseable:k}=Q(e);T(()=>{l.on("resetOptionControls",_)}),D(()=>{l.off("resetOptionControls",_)});const _=()=>{x.splice(0,x.length,...w(J(d.$wordfence.wafData.whitelistedURLParams))),te.value=!1;for(const e of Object.keys(N))delete N[e]},x=P(w(J(d.$wordfence.wafData.whitelistedURLParams))),{$pendingValue:S}=li("whitelistedURLParams",{delete:{},enabled:{},add:{}});oe(S,e=>{m("whitelistedURLParams",e,{delete:{},enabled:{},add:{}})},{deep:!0});const I=R(""),M=R("request.body"),L=R(""),O=s(()=>0!==I.value.length&&0!==L.value.length),$=()=>{if(0!==I.value.length&&0!==L.value.length){const e=y(M.value+"["+L.value+"]"),t=y(I.value),n=t+"|"+e;if(x.findIndex(e=>n===E(e))>-1)return void p(a("Allowlist Entry Exists"),a("An allowlist entry for this URL and parameter already exists."));const l={data:{description:a("Allowlisted via Firewall Options page"),source:"waf-options",disabled:!1,ip:o.plugin.ip.current,timestamp:Math.round(Date.now()/1e3),userID:o.plugin.user.id,username:o.plugin.user.username},paramKey:e,path:t,ruleID:["all"],adding:!0};S.value.add[n]=l,x.push(l),I.value="",L.value=""}},E=e=>`${e.path}|${e.paramKey}`,N=P({}),H=s(()=>{let e={};return Object.keys(N).forEach(t=>{V.value.findIndex(e=>t===E(e))>-1&&(e[t]=!0)}),e}),V=s(()=>x.filter(ae)),U=s(()=>{if(0===V.value.length||Object.keys(H.value).length!==V.value.length)return!1;for(const e of V.value){const t=E(e);if(!g(N,t)||!N[t])return!1}return!0}),K=()=>{if(U.value)for(const e of V.value){const t=E(e);delete N[t]}else Object.assign(N,Object.fromEntries(V.value.map(e=>[E(e),!0])))},j=e=>{g(N,e)?delete N[e]:N[e]=!0},G=()=>{Object.keys(H.value).forEach(e=>{const t=x.findIndex(t=>e===E(t));t>-1&&(g(S.value.add,e)?delete S.value.add[e]:S.value.delete[e]=!0,x.splice(t,1))});for(const e in H.value)delete N[e]},q=(e,t)=>{const a=x.findIndex(t=>e===E(t));a>-1&&(x[a].adding?S.value.add[e].data.disabled=t:S.value.enabled[e]=!t,x[a].data.disabled=t)},Z=()=>{Object.keys(H.value).forEach(e=>{q(e,!1)})},z=()=>{Object.keys(H.value).forEach(e=>{q(e,!0)})},X=R("url"),ee=R(""),te=R(!1),ae=e=>{if(!te.value)return!0;const t=e?.data??{},a=String(v(e.path)??""),n=String(v(e.paramKey)??""),l=String(t.description??""),s=String(t.username??t.userID??""),o=String(t.ip??""),i=String(ee.value??"");switch(X.value){case"url":return a.indexOf(i)>-1;case"param":return n.indexOf(i)>-1;case"source":return l.indexOf(i)>-1;case"user":return s.indexOf(i)>-1;case"ip":return o.indexOf(i)>-1}return!1};return si({wafWhitelist:"wf-option-wafWhitelist"},A),(e,l)=>{const s=W("aria");return B(),i(J(_h),{stateKey:J(A),collapseable:J(k)},{title:ie(()=>[f(Y(J(a)("Allowlisted URLs")),1)]),default:ie(()=>[c("ul",wT,[J(o).waf.is_subdirectory?(B(),u("li",vT,[c("p",null,[h(J(Ep),{unsafeHTML:J(n)(J(a)('You are currently running the Wordfence Web Application Firewall from another WordPress installation. Please <a href="%s">click here</a> to configure the Firewall to run correctly on this site.'),J(o).plugin.url.configure_waf)},null,8,["unsafeHTML"])])])):(B(),u(t,{key:1},[c("li",null,[c("ul",yT,[c("li",null,[c("strong",null,Y(J(a)("Add Allowlisted URL/Param")),1),l[7]||(l[7]=f()),c("a",{href:J(o).support.url.firewall_waf_whitelist,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",AT,null,512),[[s,{hidden:!0}]]),h(J(Kn))],8,bT),f(" "+Y(J(a)("The URL/parameters in this table will not be tested by the firewall. They are typically added while the firewall is in Learning Mode or by an admin who identifies a particular action/request is a false positive.")),1)]),c("li",kT,[c("div",_T,[c("div",xT,[re(c("input",{class:"wf-form-control",type:"text",name:"whitelistURL",id:"whitelistURL",placeholder:J(a)("URL"),"onUpdate:modelValue":l[0]||(l[0]=e=>I.value=e)},null,8,CT),[[le,I.value]])]),c("div",ST,[h(J(gs),{modelValue:M.value,"onUpdate:modelValue":l[1]||(l[1]=e=>M.value=e),options:[{value:"request.body",label:`${J(a)("Param Type")}: ${J(a)("POST Body")}`},{value:"request.cookies",label:`${J(a)("Param Type")}: ${J(a)("Cookie")}`},{value:"request.fileNames",label:`${J(a)("Param Type")}: ${J(a)("File Name")}`},{value:"request.headers",label:`${J(a)("Param Type")}: ${J(a)("Header")}`},{value:"request.queryString",label:`${J(a)("Param Type")}: ${J(a)("Query String")}`}],canClear:!1},null,8,["modelValue","options"])]),c("div",IT,[re(c("input",{class:"wf-form-control",type:"text",name:"whitelistParamName",id:"whitelistParamName",placeholder:J(a)("Param Name"),"onUpdate:modelValue":l[2]||(l[2]=e=>L.value=e)},null,8,DT),[[le,L.value]])]),re((B(),u("a",{href:"#",class:C(["wf-btn wf-btn-callout wf-btn-primary",{"wf-disabled":!O.value}]),id:"waf-whitelisted-urls-add",onClick:ce($,["stop","prevent"])},[f(Y(J(a)("Add")),1)],2)),[[s,{role:"button"}]])])]),l[11]||(l[11]=c("li",null,[c("hr",{id:"whitelist-form-separator"})],-1)),c("li",MT,[c("div",null,[re((B(),u("a",{href:"#",id:"whitelist-bulk-delete",class:"wf-btn wf-btn-callout wf-btn-default",onClick:ce(G,["stop","prevent"])},[f(Y(J(a)("Delete")),1)])),[[s,{role:"button"}]]),l[8]||(l[8]=f(" ",-1)),re((B(),u("a",{href:"#",id:"whitelist-bulk-enable",class:"wf-btn wf-btn-callout wf-btn-default",onClick:ce(Z,["stop","prevent"])},[f(Y(J(a)("Enable")),1)])),[[s,{role:"button"}]]),l[9]||(l[9]=f(" ",-1)),re((B(),u("a",{href:"#",id:"whitelist-bulk-disable",class:"wf-btn wf-btn-callout wf-btn-default",onClick:ce(z,["stop","prevent"])},[f(Y(J(a)("Disable")),1)])),[[s,{role:"button"}]])]),c("div",TT,[c("div",LT,[h(J(gs),{modelValue:X.value,"onUpdate:modelValue":l[3]||(l[3]=e=>X.value=e),options:[{value:"url",label:`${J(a)("Filter By")}: ${J(a)("URL")}`},{value:"param",label:`${J(a)("Filter By")}: ${J(a)("Param")}`},{value:"source",label:`${J(a)("Filter By")}: ${J(a)("Source")}`},{value:"user",label:`${J(a)("Filter By")}: ${J(a)("User")}`},{value:"ip",label:`${J(a)("Filter By")}: ${J(a)("IP")}`}],canClear:!1},null,8,["modelValue","options"]),re(c("input",{type:"text",class:"wf-form-control",placeholder:J(a)("Filter Value"),name:"filterValue","onUpdate:modelValue":l[4]||(l[4]=e=>ee.value=e)},null,8,OT),[[le,ee.value]]),c("div",null,[l[10]||(l[10]=c("span",{class:"wf-hidden-xs"}," ",-1)),re((B(),u("a",{href:"#",id:"whitelist-apply-filter",class:"wf-btn wf-btn-callout wf-btn-default",onClick:l[5]||(l[5]=ce(e=>te.value=!te.value,["stop","prevent"]))},[te.value?(B(),u(t,{key:1},[f(Y(J(a)("Clear Filter")),1)],64)):(B(),u(t,{key:0},[f(Y(J(a)("Filter")),1)],64))])),[[s,{role:"button"}]])])])])]),c("li",null,[c("div",BT,[c("div",$T,[c("table",PT,[c("thead",null,[c("tr",null,[c("th",ET,[re((B(),u("div",{class:C(["wf-whitelist-bulk-select wf-option-checkbox",{"wf-checked":U.value}]),tabindex:"0",onClick:ce(K,["stop","prevent"]),onKeydown:ue(ce(K,["stop","prevent"]),["space"])},[re(c("i",FT,null,512),[[s,{hidden:!0}]])],42,RT)),[[s,{role:"checkbox",checked:U.value,label:J(a)("Select/deselect all")}]])]),c("th",NT,Y(J(a)("Enabled")),1),c("th",null,Y(J(a)("URL")),1),c("th",null,Y(J(a)("Param")),1),c("th",null,Y(J(a)("Created")),1),c("th",null,Y(J(a)("Source")),1),c("th",null,Y(J(a)("User")),1),c("th",null,Y(J(a)("IP")),1)])]),c("tbody",null,[(B(!0),u(t,null,F(x,(e,l)=>re((B(),u("tr",{key:E(e)},[c("td",WT,[re((B(),u("div",{class:C(["wf-whitelist-table-bulk-checkbox wf-option-checkbox",{"wf-checked":N[E(e)]}]),tabindex:"0",onClick:ce(t=>j(E(e)),["stop","prevent"]),onKeydown:ue(ce(t=>j(E(e)),["stop","prevent"]),["space"])},[re(c("i",VT,null,512),[[s,{hidden:!0}]])],42,HT)),[[s,{role:"checkbox",checked:N[E(e)],label:J(n)(J(a)("Select row %d"),l)}]])]),c("td",UT,[re((B(),u("div",{class:C(["wf-whitelist-item-enabled wf-option-checkbox",{"wf-checked":!e.data.disabled}]),tabindex:"0",onClick:ce(t=>q(E(e),!e.data.disabled),["stop","prevent"]),onKeydown:ue(ce(t=>q(E(e),!e.data.disabled),["stop","prevent"]),["space"])},[re(c("i",KT,null,512),[[s,{hidden:!0}]])],42,YT)),[[s,{role:"checkbox",checked:!e.data.disabled,label:J(n)(J(a)("Toggle row %d"),l)}]])]),c("td",jT,[c("span",GT,Y(J(v)(e.path)),1)]),c("td",QT,[c("span",qT,Y(J(v)(e.paramKey)),1)]),c("td",null,[e.data?.timestamp?(B(),i(J(Mi),{key:0,timestamp:e.data.timestamp},null,8,["timestamp"])):(B(),u(t,{key:1},[f("-")],64))]),c("td",ZT,[e.data?.description?(B(),u(t,{key:0},[f(Y(e.data.description),1)],64)):(B(),u(t,{key:1},[f("-")],64))]),c("td",JT,[e.data?.userID?(B(),u(t,{key:0},[e.data?.username?(B(),u(t,{key:0},[f(Y(e.data.username),1)],64)):(B(),u(t,{key:1},[f(Y(e.data.userID),1)],64))],64)):(B(),u(t,{key:1},[f("-")],64))]),c("td",zT,[e.data?.ip?(B(),u(t,{key:0},[f(Y(e.data.ip),1)],64)):(B(),u(t,{key:1},[f("-")],64))])])),[[se,ae(e)]])),128)),0===x.length?(B(),u("tr",XT,[c("td",eL,Y(J(a)("No allowlisted URLs currently set.")),1)])):r("",!0)]),x.length>5?(B(),u("tfoot",tL,[c("tr",null,[c("th",aL,[re((B(),u("div",{class:C(["wf-whitelist-bulk-select wf-option-checkbox",{"wf-checked":U.value}]),tabindex:"0",onClick:ce(K,["stop","prevent"]),onKeydown:ue(ce(K,["stop","prevent"]),["space"])},[re(c("i",lL,null,512),[[s,{hidden:!0}]])],42,nL)),[[s,{role:"checkbox",checked:U.value,label:J(a)("Select/deselect all")}]])]),c("th",sL,Y(J(a)("Enabled")),1),c("th",null,Y(J(a)("URL")),1),c("th",null,Y(J(a)("Param")),1),c("th",null,Y(J(a)("Created")),1),c("th",null,Y(J(a)("Source")),1),c("th",null,Y(J(a)("User")),1),c("th",null,Y(J(a)("IP")),1)])])):r("",!0)])])])])])]),c("li",null,[h(J(ID),{optionName:"ajaxWatcherDisabled",title:J(a)("Allowlisted services"),options:[{id:"ajaxWatcherDisabled_front",name:"ajaxWatcherDisabled_front",enabledValue:!1,disabledValue:!0,value:J(d).$options.ajaxWatcherDisabled_front,title:J(a)("Front-end Website")},{id:"ajaxWatcherDisabled_admin",name:"ajaxWatcherDisabled_admin",enabledValue:!1,disabledValue:!0,value:J(d).$options.ajaxWatcherDisabled_admin,title:J(a)("Admin Panel")}],helpLink:J(o).support.url.firewall_waf_option_monitor_ajax,noSpacer:!0,onChange:l[6]||(l[6]=e=>J(m)(e.name,e.new,J(d).$options[e.name]))},{title:ie(()=>[c("strong",null,Y(J(a)("Monitor background requests from an administrator's web browser for false positives")),1)]),_:1},8,["title","options","helpLink"])])],64))])]),_:1},8,["stateKey","collapseable"])}}},iL={id:"waf-options",class:"wf-fixed-tab-content"},rL={class:"wf-section-title"},uL={class:"wf-center-xs"},cL={class:"wf-hidden-xs"},dL=["href"],pL={class:"wf-fa wf-fa-external-link"},fL={__name:"FirewallOptions",setup(e){const t=b("__"),a=b("wfconstants"),n=window.wordfenceAdmin;return T(()=>{document.title=t("Firewall Options")+" ‹ "+n.basePageName}),(e,n)=>{const l=W("aria");return B(),u("div",iL,[c("div",rL,[n[1]||(n[1]=c("div",{class:"wordfence-lock-icon wordfence-icon32 wf-hidden-xs"},null,-1)),c("h2",uL,Y(J(t)("Firewall Options")),1),c("span",cL,[c("a",{href:J(a).support.url.firewall_waf,target:"_blank",rel:"noopener noreferrer",class:"wf-help-link"},[h(J(Vs),{text:J(t)("Learn more about the Firewall"),xs:J(t)("Learn More")},null,8,["text","xs"]),h(J(Kn))],8,dL),n[0]||(n[0]=f()),re(c("i",pL,null,512),[[l,{hidden:!0}]])])]),h(J(Wy),{showFirewallStatus:!1,showOptionsLinks:!1}),h(J(fD),{stateKey:"waf-options-basic",collapseable:!1}),h(J(GD),{stateKey:"waf-options-advanced"}),h(J(JM),{stateKey:"waf-options-bruteforce"}),h(J(gT),{stateKey:"waf-options-ratelimiting"}),h(J(oL),{stateKey:"waf-options-whitelisted"})])}}},hL={key:0,id:"wf-toupp-required-overlay"},mL={key:0,id:"wf-toupp-required-message-wrapper"},gL={id:"wf-toupp-required-message-inner"},wL={id:"wf-toupp-required-message-content"},vL={key:0,id:"wf-gdpr-banner"},yL={key:0},bL="gdpr-accept-modal",AL={__name:"GDPRBanner",props:{wantsDisableOverlay:{type:Boolean,default:!0}},setup(e){$("modalName",bL);const a=b("__"),l=b("sprintf"),o=b("$mitt"),{$ajax:d}=In(),{$isPaid:p}=Qs(),{wantsDisableOverlay:m}=Q(e),g=R(!1),w=R(!0),v=R(!1);T(()=>{o.on("showModal",y),o.on("closeModal",A),g.value=m.value}),D(()=>{o.off("showModal",y),o.off("closeModal",A)});const y=e=>{e.name===bL?v.value=!0:v.value&&(v.value=!1)},A=e=>{e===bL&&(v.value=!1)},k=s(()=>l(a('We have updated our policies. To continue using Wordfence, you will need to read and agree to the <a href="%1$s" target="_blank" rel="noopener noreferrer">Wordfence License Terms and Conditions<span class="screen-reader-text"> (opens in new tab)</span></a>, the <a href="%2$s" rel="noopener noreferrer" target="_blank">Services Subscription Agreement<span class="screen-reader-text"> (opens in new tab)</span></a>, and <a href="%3$s" target="_blank" rel="noopener noreferrer">Terms of Service<span class="screen-reader-text"> (opens in new tab)</span></a>, and read and acknowledge the <a href="%4$s" target="_blank" rel="noopener noreferrer">Wordfence Privacy Policy<span class="screen-reader-text"> (opens in new tab)</span></a>.'),"https://www.wordfence.com/license-terms-and-conditions/","https://www.wordfence.com/services-subscription-agreement","https://www.wordfence.com/terms-of-service/","https://www.wordfence.com/privacy-policy/")),_=s(()=>l(a('You can log in to <a href="%s" target="_blank" rel="noopener noreferrer">wordfence.com<span class="screen-reader-text"> (opens in new tab)</span></a> to accept the updated terms and privacy policy for all of your license keys at once.'),"https://www.wordfence.com/")),x=()=>{d("wordfence_recordTOUPP",{},function(e){}),g.value=!1,v.value=!1,w.value=!1};return(e,l)=>{const s=W("aria");return B(),u(t,null,[h(n,{name:"wf-fade"},{default:ie(()=>[g.value?(B(),u("div",hL)):r("",!0)]),_:1}),h(n,{name:"wf-modal"},{default:ie(()=>[g.value?(B(),u("div",mL,[c("div",gL,[c("div",wL,[c("p",null,Y(J(a)("We have updated our policies. To continue using Wordfence, you will need to read and agree to the Wordfence License Terms and Conditions, the Services Subscription Agreement, and Terms of Service, and read and acknowledge the Wordfence Privacy Policy by clicking Review.")),1),c("p",null,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default",onClick:l[0]||(l[0]=ce(e=>v.value=!0,["stop","prevent"]))},[f(Y(J(a)("Review")),1)])),[[s,{role:"button"}]])])])])])):r("",!0)]),_:1}),h(J(qs),null,{default:ie(()=>[w.value?(B(),u("ul",vL,[c("li",null,Y(J(a)("Wordfence's terms of service and privacy policy have changed")),1),c("li",null,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default",id:"wf-gdpr-review",onClick:l[1]||(l[1]=ce(e=>v.value=!0,["stop","prevent"]))},[f(Y(J(a)("Review")),1)])),[[s,{role:"button"}]])])])):r("",!0)]),_:1}),c("div",null,[h(J(Nr),{show:v.value},null,8,["show"]),h(n,{name:"wf-modal"},{default:ie(()=>[v.value?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(a)("Terms of Use and Privacy Policy")),1)]),body:ie(()=>[c("p",null,[h(J(Ep),{unsafeHTML:k.value,allowedTags:["a","span"],allowedAttributes:{a:["href","target","rel"],span:["class"]}},null,8,["unsafeHTML"])]),J(p)?(B(),u("p",yL,[h(J(Ep),{unsafeHTML:_.value,allowedTags:["a","span"],allowedAttributes:{a:["href","target","rel"],span:["class"]}},null,8,["unsafeHTML"])])):r("",!0)]),"primary-button":ie(()=>[h(J(Np),{onClick:x,"is-primary":!0},{default:ie(()=>[f(Y(J(a)("Agree")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{href:"https://www.wordfence.com/help/general-data-protection-regulation/#agreement-to-new-terms-and-privacy-policies",target:"_blank",rel:"noopener noreferrer"},{default:ie(()=>[f(Y(J(a)("Learn More")),1),h(J(Kn))]),_:1})]),_:1})):r("",!0)]),_:1})])],64)}}},kL={class:"wf-notice wf-error"},_L={key:0},xL={key:0},CL={key:1},SL={key:0},IL={key:1},DL={key:2},ML={key:0},TL={key:3},LL={__name:"GlobalError",props:{errorMessage:{type:[String,null],default:null,required:!1},errorDetails:{type:[Object,null],default:null,required:!1}},setup:e=>(a,n)=>(B(),u("div",kL,[n[2]||(n[2]=c("p",null,[c("strong",null,"ERROR:"),f(" An error was encountered that prevents showing this interface. Please "),c("a",{href:"https://www.wordfence.com/help/",target:"_blank",rel:"noopener noreferrer"},"contact Wordfence support"),f(" for help.")],-1)),e.errorMessage||e.errorDetails?(B(),u("div",_L,[n[1]||(n[1]=c("p",null,[c("strong",null,"Details:")],-1)),e.errorMessage?(B(),u("p",xL,Y(e.errorMessage),1)):r("",!0),e.errorDetails?(B(),u("ul",CL,[e.errorDetails.code?(B(),u("li",SL,"Code: "+Y(e.errorDetails.code),1)):r("",!0),e.errorDetails.message?(B(),u("li",IL,"Message: "+Y(e.errorDetails.message),1)):r("",!0),e.errorDetails.file?(B(),u("li",DL,[f("File: "+Y(e.errorDetails.file),1),e.errorDetails.line?(B(),u("span",ML,":"+Y(e.errorDetails.line),1)):r("",!0)])):r("",!0),e.errorDetails.trace?(B(),u("li",TL,[n[0]||(n[0]=f("Trace: ",-1)),c("ol",null,[(B(!0),u(t,null,F(e.errorDetails.trace,(e,t)=>(B(),u("li",{key:t},Y(e.function)+" ("+Y(e.file)+":"+Y(e.line)+")",1))),128))])])):r("",!0)])):r("",!0)])):r("",!0)]))};function OL(){const e=b("$dataStore"),{$ajax:t}=In();return{$avatarLookup:a=>{if(a.length<1)return;let n={},l=[];for(let e=0;e<a.length;e++)n[a[e]]||(n[a[e]]=!0,l.push(a[e]));t("wordfence_avatarLookup",{ids:l.join(",")},t=>{if(t.ok)for(const a in t.avatars)e.$wordpress.avatars[a]=t.avatars[a]},!1,!1)}}}var BL={class:"wf-block wf-block-transparent wf-active"},$L={class:"wf-block-content"},PL={class:"wf-block-left-right wf-hidden-xs"},EL={class:"wf-left"},RL={class:"wf-flex-horizontal"},FL={key:0},NL=["href"],WL={class:"wf-ion-chevron-left wf-back-icon"},HL=["href"],VL=["href"],UL={class:"wf-ion-chevron-left wf-back-icon"},YL=["href"],KL={class:"wf-center"},jL={key:0,class:"wordfence-lock-icon wordfence-icon32 wf-no-top wf-hidden-xs"},GL={key:0,class:"wf-right"},QL={class:"wf-block-left-center-right wf-hidden-sm wf-hidden-md wf-hidden-lg"},qL={class:"wf-left"},ZL={class:"wf-flex-horizontal"},JL={key:0},zL=["href"],XL={class:"wf-ion-chevron-left wf-back-icon"},eO=["href"],tO={class:"wf-center"},aO={key:0,class:"wordfence-lock-icon wordfence-icon32"},nO={key:0,class:"wf-right"},lO=["data-restore-defaults-section"],sO={__name:"SettingsControlBlock",props:{section:{type:String,default:""},sectionTitle:{type:[String,null]},accessoryMode:{type:String,default:"breadcrumbs"},backLinkBreadcrumbs:{type:Array,default:()=>[]},backLink:{type:[String,null],default:null},backLinkLabel:{type:[String,null],default:null},backLinkLabelXS:{type:[String,null],default:null},suppressControls:{type:Boolean,default:!1},suppressLogo:{type:Boolean,default:()=>!window.matchMedia("only screen and (max-width: 615px)").matches},logoPosition:{type:String,default:"center"}},setup(e){const a=b("$"),n=b("__"),l=b("$mitt"),s=b("wfconstants"),o=R(""),i=()=>{a.wfMobileMenu({menuItems:[{title:n("Save Changes"),primary:!0,disabled:a("#wf-save-changes").hasClass("wf-disabled"),action:()=>document.getElementById("wf-save-changes")?.click()},{title:n("Cancel Changes"),primary:!1,disabled:a("#wf-cancel-changes").hasClass("wf-disabled"),action:()=>document.getElementById("wf-cancel-changes")?.click()},{title:n("Restore Defaults"),primary:!1,disabled:a("#wf-restore-defaults").hasClass("wf-disabled"),action:()=>document.getElementById("wf-restore-defaults")?.click()}]})};return oe(o,e=>{(e??"").length&&x(()=>{l.emit("scrollToOption",o.value),o.value=""})}),(a,l)=>{const d=W("aria");return B(),u("div",BL,[c("div",$L,[c("ul",PL,[c("li",EL,[c("ul",RL,[e.suppressLogo||"left"!==e.logoPosition?r("",!0):(B(),u("li",FL,[...l[2]||(l[2]=[c("div",{class:"wordfence-lock-icon wordfence-icon32 wf-no-top wf-no-right wf-hidden-xs"},null,-1)])])),"breadcrumbs"===e.accessoryMode?(B(),u("li",{key:1,class:C(["wf-flex-horizontal",{"wf-padding-add-left":!e.suppressLogo}])},[e.backLinkBreadcrumbs.length?(B(!0),u(t,{key:0},F(e.backLinkBreadcrumbs,(a,n)=>(B(),u(t,{key:a.url},[c("a",{href:a.url,class:"wf-back-link-chevron"},[re(c("i",WL,null,512),[[d,{hidden:!0}]])],8,NL),n<e.backLinkBreadcrumbs.length-1?(B(),u("a",{key:0,href:a.url,class:"wf-back-link"},Y(a.label),9,HL)):(B(),u(t,{key:1},[f(Y(a.label),1)],64))],64))),128)):e.backLink?(B(),u(t,{key:1},[c("a",{href:e.backLink,class:"wf-back-link-chevron"},[re(c("i",UL,null,512),[[d,{hidden:!0}]])],8,VL),c("a",{href:e.backLink,class:"wf-back-link"},[h(J(Vs),{text:e.backLinkLabel,xs:e.backLinkLabelXS},null,8,["text","xs"])],8,YL)],64)):r("",!0)],2)):"search"===e.accessoryMode?(B(),u("li",{key:2,class:C(["wf-all-options-search",{"wf-padding-add-left":!e.suppressLogo}])},[h(J(gs),{modelValue:o.value,"onUpdate:modelValue":l[0]||(l[0]=e=>o.value=e),searchable:!0,options:J(s).options.index,placeholder:J(n)("Search All Options")},null,8,["modelValue","options","placeholder"])],2)):r("",!0)])]),c("li",KL,[e.suppressLogo||"center"!==e.logoPosition?r("",!0):(B(),u("div",jL))]),e.suppressControls?r("",!0):(B(),u("li",GL,[h(J(Ev),{section:e.section,sectionTitle:e.sectionTitle},null,8,["section","sectionTitle"])]))]),c("ul",QL,[c("li",qL,[c("ul",ZL,[e.suppressLogo||"left"!==e.logoPosition?r("",!0):(B(),u("li",JL,[...l[3]||(l[3]=[c("div",{class:"wordfence-lock-icon wordfence-icon32"},null,-1)])])),"breadcrumbs"===e.accessoryMode?(B(),u(t,{key:1},[e.backLink?(B(),u(t,{key:0},[c("a",{href:e.backLink,class:"wf-back-link-chevron"},[re(c("i",XL,null,512),[[d,{hidden:!0}]])],8,zL),c("a",{href:e.backLink,class:"wf-back-link"},[h(J(Vs),{text:e.backLinkLabel,xs:e.backLinkLabelXS},null,8,["text","xs"])],8,eO)],64)):r("",!0)],64)):"search"===e.accessoryMode?(B(),u("li",{key:2,class:C(["wf-all-options-search",{"wf-padding-add-left":!e.suppressLogo}])},[h(J(gs),{modelValue:o.value,"onUpdate:modelValue":l[1]||(l[1]=e=>o.value=e),searchable:!0,options:J(s).options.index,placeholder:J(n)("Search All Options")},null,8,["modelValue","options","placeholder"])],2)):r("",!0)])]),c("li",tO,[e.suppressLogo||"center"!==e.logoPosition?r("",!0):(B(),u("div",aO))]),e.suppressControls?r("",!0):(B(),u("li",nO,[re((B(),u("a",{id:"wf-mobile-controls",href:"#","data-restore-defaults-section":e.section,onClick:ce(i,["stop","prevent"])},[...l[4]||(l[4]=[f("•••",-1)])],8,lO)),[[d,{role:"button"}]])]))])])])}}},oO={class:"wf-row"},iO={class:"wf-col-xs-12"},rO={class:"wf-block-list"},uO={key:0},cO={__name:"OptionsGroupLiveTraffic",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0},showControls:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0},hideShowMenuItem:{type:Boolean,default:!1}},setup(e){const a=b("__"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn();return(o,d)=>(B(),i(J(_h),{stateKey:e.stateKey,collapseable:e.collapseable,disabled:e.disabled,tabIndex:e.tabIndex},{title:ie(()=>[f(Y(J(a)("Live Traffic Options")),1)]),default:ie(()=>[e.showControls?(B(),u(t,{key:0},[c("p",null,[h(J(Ep),{allowedTags:["b","strong"],unsafeHTML:J(a)('These options let you choose which traffic to log and to ignore certain types of visitors, based on their level of access, usernames, IP address, or browser type. If you run a high-traffic website where it is not feasible to see your visitors in real-time, simply change the <strong>Traffic logging mode</strong> to "Security Only."')},null,8,["unsafeHTML"])]),c("div",oO,[c("div",iO,[h(J(sO),{suppressLogo:!0,section:J(n).options.section.livetraffic,sectionTitle:J(a)("Live Traffic")},null,8,["section","sectionTitle"])])])],64)):r("",!0),c("ul",rO,[c("li",null,[h(J(cM),{optionName:"liveTrafficEnabled",value:J(l).$options.liveTrafficEnabled,title:J(a)("Traffic logging mode"),states:[{value:!1,label:J(a)("Security Only")},{value:!0,label:J(a)("All Traffic")}],helpLink:J(n).support.url.tools_live_traffic_option_enable,alignment:"right",onChange:d[0]||(d[0]=e=>J(s)("liveTrafficEnabled",e.new,J(l).$options.liveTrafficEnabled))},null,8,["value","title","states","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"liveTraf_ignorePublishers",value:J(l).$options.liveTraf_ignorePublishers,enabledValue:!0,disabledValue:!1,title:J(a)("Don't log signed-in users with publishing access"),onChange:d[1]||(d[1]=e=>J(s)("liveTraf_ignorePublishers",e.new,J(l).$options.liveTraf_ignorePublishers))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"liveTraf_ignoreUsers",value:J(l).$options.liveTraf_ignoreUsers,title:J(a)("List of comma separated usernames to ignore"),onChange:d[2]||(d[2]=e=>J(s)("liveTraf_ignoreUsers",e.new,J(l).$options.liveTraf_ignoreUsers))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"liveTraf_ignoreIPs",value:J(l).$options.liveTraf_ignoreIPs,title:J(a)("List of comma separated IP addresses to ignore"),onChange:d[3]||(d[3]=e=>J(s)("liveTraf_ignoreIPs",e.new,J(l).$options.liveTraf_ignoreIPs))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"liveTraf_ignoreUA",value:J(l).$options.liveTraf_ignoreUA,title:J(a)("Browser user-agent to ignore"),onChange:d[4]||(d[4]=e=>J(s)("liveTraf_ignoreUA",e.new,J(l).$options.liveTraf_ignoreUA))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"liveTraf_maxRows",value:J(l).$options.liveTraf_maxRows,title:J(a)("Amount of Live Traffic data to store (number of rows)"),onChange:d[5]||(d[5]=e=>J(s)("liveTraf_maxRows",e.new,J(l).$options.liveTraf_maxRows))},null,8,["value","title"])]),c("li",null,[h(J(ym),{optionName:"liveTraf_maxAge",value:J(l).$options.liveTraf_maxAge,title:J(a)("Maximum days to keep Live Traffic data (1-30 days)"),onChange:d[6]||(d[6]=e=>J(s)("liveTraf_maxAge",e.new,J(l).$options.liveTraf_maxAge))},null,8,["value","title"])]),e.hideShowMenuItem?r("",!0):(B(),u("li",uO,[h(J(Xh),{optionName:"displayTopLevelLiveTraffic",value:J(l).$options.displayTopLevelLiveTraffic,enabledValue:!0,disabledValue:!1,title:J(a)("Display Live Traffic menu option"),onChange:d[7]||(d[7]=e=>J(s)("displayTopLevelLiveTraffic",e.new,J(l).$options.displayTopLevelLiveTraffic))},null,8,["value","title"])]))])]),_:1},8,["stateKey","collapseable","disabled","tabIndex"]))}},dO={key:0,class:"wf-localized-time-ago"},pO={__name:"TimeAgo",props:{timestamp:{type:Number,default:0},dateSwitchThreshold:{type:Number,default:0},dateFormat:{type:String,default:"%b %-d, %Y %-I:%M %p"}},setup(e){const{$timeAgo:t}=Un(),a=b("__"),n=b("sprintf"),l=b("$dataStore"),{timestamp:o,dateSwitchThreshold:i,dateFormat:c}=Q(e),d=s(()=>l.time.serverMicrotime<=o.value?a("just now"):i.value>0&&l.time.serverMicrotime-o.value>i.value?p.value:n(a("%s ago"),t(l.time.serverMicrotime-o.value))),p=s(()=>{const e=/* @__PURE__ */new Date(1e3*o.value);return(0,Ii.default)(c.value,e)});return(e,t)=>J(o)>0?(B(),u("span",dO,Y(d.value),1)):r("",!0)}},fO={class:"wf-live-traffic-activity-detail-wrapper"},hO={class:"wf-live-traffic-activity-type"},mO={class:"wf-live-traffic-activity-detail"},gO={key:0,class:"wfAvatar"},wO=["href"],vO={key:0},yO=["title"],bO=["href"],AO=["href"],kO=["href","title"],_O={class:"screen-reader-text"},xO=["href","title"],CO=["href","title"],SO={key:0},IO={class:"wf-split-word"},DO={class:"wf-live-traffic-actions"},MO=["title"],TO=["href"],LO={__name:"LiveTrafficEntryDetails",props:{entry:{type:Object,required:!0}},setup(e){const a=b("__"),n=b("sprintf"),l=b("wfconstants"),o=b("$dataStore"),i=b("unblockIPHandler",()=>{}),d=b("blockIPHandler",()=>{}),p=b("unblockNetworkHandler",()=>{}),m=b("showWhoisHandler",()=>{}),g=b("showRecentTrafficHandler",()=>{}),w=b("whitelistWAFParamHandler",()=>{}),{$makeIPTrafLink:v}=Gs(),{$truncateText:y,$base64_decode:A,$addQueryArg:k}=Un(),{entry:_}=Q(e),x=s(()=>y(_.value.URL,105)),S=s(()=>!!_.value.loc),I=s(()=>"loginFailValidUsername"===_.value.action||"loginFailInvalidUsername"===_.value.action||"loginFailPasskey"===_.value.action||"loginFailPasskeyRequired"===_.value.action),D=s(()=>"loginOK"===_.value.action||"loginPasskeyOK"===_.value.action),M=s(()=>_.value.loc?_.value.loc:{}),T=s(()=>{let e="";switch(_.value.action){case"lockedOut":return a("locked out from logging in");case"blocked:waf-always":case"blocked:wordfence":case"blocked:wfsnrepeat":return e=_.value.actionDescription,0===e?.toLowerCase().indexOf("block")?"b"+e.substring(1):n(a("blocked for %s"),e);case"blocked:wfsn":return a("blocked by the Wordfence Security Network");case"blocked:waf":{const t=_.value.actionData;if("object"==typeof t){const l=t.paramKey?A(t.paramKey):null,s=t.paramValue?A(t.paramValue):null,o=null!==l&&l.match(/([a-z0-9_]+\.[a-z0-9_]+)(?:\[(.+?)\](.*))?/i);if(e=_.value.actionDescription,o)switch(o[1]){case"request.queryString":e=n(a("%1$s in query string: %2$s"),_.value.actionDescription,o[2]+"="+y(encodeURIComponent(s)));break;case"request.body":e=n(a("%1$s in POST body: %2$s"),_.value.actionDescription,o[2]+"="+y(encodeURIComponent(s)));break;case"request.cookie":e=n(a("%1$s in cookie: %2$s"),_.value.actionDescription,o[2]+"="+y(encodeURIComponent(s)));break;case"request.fileNames":e=n(a("%1$s in file: %2$s"),_.value.actionDescription,o[2]+"="+y(encodeURIComponent(s)))}return e?n(a("blocked by firewall for %s"),e):"blocked"===t.failedRules?a("blocked by real-time IP blocklist"):a("blocked by firewall")}return n(a("blocked by firewall for %s"),_.value.actionDescription)}case"cbl:redirect":return e=_.value.actionDescription,e}return e}),L=s(()=>{let e=[];return e.push("wf-live-traffic-type-icon"),403===_.value.statusCode||503===_.value.statusCode?(e.push("wf-icon-blocked "),e.push("wf-ion-android-cancel")):404===_.value.statusCode||I.value?(e.push("wf-icon-warning"),e.push("wf-ion-alert-circled")):_.value.jsRun?(e.push("wf-icon-human"),e.push("wf-ion-ios-person")):e.push("wf-ion-bug"),e}),O=s(()=>{let e=a("Bot");return"loginFailPasskeyRequired"===_.value.action?e=a("Blocked Login"):I.value?e=a("Failed Login"):403===_.value.statusCode||503===_.value.statusCode?e=a("Blocked"):404===_.value.statusCode?e=a("404 Not Found"):302===_.value.statusCode?e=a("Redirected"):_.value.jsRun&&(e=a("Human")),n(a("Type: %s"),e)}),$=s(()=>{let e=[];return e.push("wf-flag"),e.push(`wf-flag-${M.value.countryCode?.toLowerCase()}`),e}),P=s(()=>(M.value.city?`${M.value.city}, `:"")+(M.value.region?`${M.value.region}, `:"")+(M.value.countryName??"")),E=()=>{i(_.value.IP)},R=()=>{p(_.value.ipRangeID)},F=()=>{d(_.value.IP)},N=()=>{m(_)},H=()=>{g(_)},V=s(()=>k(l.plugin.url.waf_debug_base,{nonce:o.$wordfence.nonce["wp-ajax"]}));return(e,s)=>{const i=W("aria");return B(),u("div",fO,[c("div",hO,[c("div",{class:C(L.value)},null,2),c("div",null,Y(O.value),1)]),c("div",mO,[c("h2",null,Y(J(a)("Activity Detail")),1),c("div",null,[D.value||I.value||!J(_).user?r("",!0):(B(),u(t,{key:0},[J(o).$wordpress.avatars[J(_).user.ID]?(B(),u("span",gO,[h(J(Ep),{unsafeHTML:J(o).$wordpress.avatars[J(_).user.ID],allowedTags:["img"],allowedAttributes:{img:["src","alt","srcset","class","height","width","loading","fetchpriority","decoding"]}},null,8,["unsafeHTML"])])):r("",!0),c("a",{href:J(_).user.editLink,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(_).user.display_name),1),h(J(Kn))],8,wO)],64)),S.value?(B(),u(t,{key:1},[D.value||I.value||!J(_).user?r("",!0):(B(),u("span",vO," in")),c("span",{class:C($.value),title:M.value.countryName},null,10,yO),c("a",{href:`http://maps.google.com/maps?q=${M.value.lat},${M.value.lon}&z=6`,target:"_blank",rel:"noopener noreferrer"},[f(Y(P.value),1),h(J(Kn))],8,bO)],64)):(B(),u(t,{key:2},[f(Y(J(a)("An unknown location at IP"))+" ",1),c("a",{href:J(v)(J(_).IP),target:"_blank",rel:"noopener noreferrer"},[f(Y(J(_).IP),1),h(J(Kn))],8,AO)],64)),J(_).referer?(B(),u(t,{key:3},[J(_).extReferer?(B(),u(t,{key:0},[f(" "+Y(J(a)("arrived from"))+" ",1),c("a",{href:J(_).referer,title:J(_).referer,target:"_blank",rel:"noopener noreferrer",class:"wf-split-word-xs"},[f(Y(J(y)(J(_).referer,100)),1),c("span",_O," ("+Y(J(a)("opens in new tab"))+")",1)],8,kO)],64)):(B(),u(t,{key:1},[f(" "+Y(J(a)("left"))+" ",1),c("a",{href:J(_).referer,title:J(_).referer,target:"_blank",rel:"noopener noreferrer",class:"wf-split-word-xs"},[f(Y(J(y)(J(_).referer,100)),1),h(J(Kn))],8,xO)],64))],64)):r("",!0),404===J(_).statusCode?(B(),u(t,{key:4},[s[1]||(s[1]=f(" ",-1)),h(J(Ep),{allowedTags:["span"],unsafeHTML:J(a)('and tried to access a <span class="wf-error-text">non-existent page</span>')},null,8,["unsafeHTML"])],64)):200!==J(_).statusCode||J(_).action?301!==J(_).statusCode&&302!==J(_).statusCode||J(_).action?(301===J(_).statusCode||302===J(_).statusCode)&&J(_).action&&T.value?(B(),u(t,{key:7},[f(" "+Y(J(a)("and was"))+" "+Y(T.value)+" "+Y(J(a)("at")),1)],64)):403!==J(_).statusCode&&503!==J(_).statusCode||I.value?"loginOK"===J(_).action?(B(),u(t,{key:9},[s[2]||(s[2]=f(" ",-1)),h(J(Ep),{allowedTags:["strong","b"],unsafeHTML:J(n)(J(a)('and logged in successfully as "<strong>%s</strong>".'),J(_).username)},null,8,["unsafeHTML"])],64)):"loginPasskeyOK"===J(_).action?(B(),u(t,{key:10},[s[3]||(s[3]=f(" ",-1)),h(J(Ep),{allowedTags:["strong","b"],unsafeHTML:J(n)(J(a)('and logged in successfully with a passkey as "<strong>%s</strong>".'),J(_).username)},null,8,["unsafeHTML"])],64)):"logout"===J(_).action?(B(),u(t,{key:11},[f(" "+Y(J(a)("and logged out successfully.")),1)],64)):"lostPassword"===J(_).action?(B(),u(t,{key:12},[f(" "+Y(J(a)("and requested a password reset.")),1)],64)):"loginFailValidUsername"===J(_).action?(B(),u(t,{key:13},[s[4]||(s[4]=f(" ",-1)),h(J(Ep),{allowedTags:["span","strong","b"],unsafeHTML:J(n)(J(a)('and attempted a <span class="wf-error-text">failed login</span> as "<strong>%s</strong>".'),J(_).username)},null,8,["unsafeHTML"])],64)):"loginFailInvalidUsername"===J(_).action?(B(),u(t,{key:14},[s[5]||(s[5]=f(" ",-1)),h(J(Ep),{allowedTags:["span","strong","b"],unsafeHTML:J(n)(J(a)('and attempted a <span class="wf-error-text">failed login</span> using an invalid username "<strong>%s</strong>".'),J(_).username)},null,8,["unsafeHTML"])],64)):"loginFailPasskey"===J(_).action&&J(_).username?(B(),u(t,{key:15},[s[6]||(s[6]=f(" ",-1)),h(J(Ep),{allowedTags:["span","strong","b"],unsafeHTML:J(n)(J(a)('and attempted a <span class="wf-error-text">failed passkey login</span> as "<strong>%s</strong>".'),J(_).username)},null,8,["unsafeHTML"])],64)):"loginFailPasskey"===J(_).action?(B(),u(t,{key:16},[s[7]||(s[7]=f(" ",-1)),h(J(Ep),{allowedTags:["span"],unsafeHTML:J(a)('and attempted a <span class="wf-error-text">failed passkey login</span>.')},null,8,["unsafeHTML"])],64)):"loginFailPasskeyRequired"===J(_).action?(B(),u(t,{key:17},[s[8]||(s[8]=f(" ",-1)),h(J(Ep),{allowedTags:["span","strong","b"],unsafeHTML:J(n)(J(a)('and attempted a <span class="wf-error-text">blocked username/password login</span> as "<strong>%s</strong>" because a passkey is required.'),J(_).username)},null,8,["unsafeHTML"])],64)):"user:passwordReset"===J(_).action?(B(),u(t,{key:18},[f(" "+Y(J(a)("and changed their password.")),1)],64)):r("",!0):(B(),u(t,{key:8},[f(" "+Y(J(a)("and was"))+" "+Y(T.value)+" "+Y(J(a)("at")),1)],64)):(B(),u(t,{key:6},[f(" "+Y(J(a)("and was redirected when visiting")),1)],64)):(B(),u(t,{key:5},[f(" "+Y(J(a)("and visited")),1)],64)),s[9]||(s[9]=f(" ",-1)),c("a",{class:"wf-lt-url wf-split-word-xs",href:J(_).URL,title:J(_).URL,target:"_blank",rel:"noopener noreferrer"},[f(Y(x.value),1),h(J(Kn))],8,CO)]),c("div",null,[h(J(Mi),{timestamp:J(_).ctime,dateFormat:"%b %-d, %Y %-I:%M:%S %p"},null,8,["timestamp"]),s[10]||(s[10]=f(" (",-1)),h(J(pO),{timestamp:J(_).ctime},null,8,["timestamp"]),s[11]||(s[11]=f(")",-1))]),c("div",null,[c("strong",null,Y(J(a)("IP"))+":",1),f(" "+Y(J(_).IP)+" ",1),J(o).ip.$reversed[J(_).IP]?(B(),u(t,{key:0},[s[12]||(s[12]=f(" ",-1)),c("strong",null,Y(J(a)("Hostname"))+":",1),f(" "+Y(J(o).ip.$reversed[J(_).IP]),1)],64)):r("",!0),J(_).blocked?(B(),u(t,{key:1},[s[13]||(s[13]=f(" ",-1)),re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-block-ip-btn wf-add-right-small",onClick:ce(E,["stop","prevent"])},[f(Y(J(a)("Unblock IP")),1)])),[[i,{role:"button",tabindex:0}]])],64)):J(_).rangeBlocked?(B(),u(t,{key:2},[s[14]||(s[14]=f(" ",-1)),re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-block-ip-btn wf-add-right-small",onClick:ce(R,["stop","prevent"])},[f(Y(J(a)("Unblock range")),1)])),[[i,{role:"button",tabindex:0}]])],64)):(B(),u(t,{key:3},[s[15]||(s[15]=f(" ",-1)),re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-block-ip-btn wf-add-right-small",onClick:ce(F,["stop","prevent"])},[f(Y(J(a)("Block IP")),1)])),[[i,{role:"button",tabindex:0}]])],64))]),[403,503,404].includes(J(_).statusCode)||I.value?(B(),u("div",SO,[c("strong",null,Y(J(a)("Human/Bot"))+":",1),s[16]||(s[16]=f()),J(_).jsRun?(B(),u(t,{key:0},[f(Y(J(a)("Human")),1)],64)):(B(),u(t,{key:1},[f(Y(J(a)("Bot")),1)],64))])):r("",!0),c("div",IO,Y(J(_).UA),1),c("div",DO,[J(_).blocked?re((B(),u("a",{key:0,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(E,["stop","prevent"])},[f(Y(J(a)("Unblock IP")),1)])),[[i,{role:"button",tabindex:0}]]):J(_).rangeBlocked?re((B(),u("a",{key:1,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(R,["stop","prevent"])},[f(Y(J(a)("Unblock range")),1)])),[[i,{role:"button",tabindex:0}]]):re((B(),u("a",{key:2,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(F,["stop","prevent"])},[f(Y(J(a)("Block IP")),1)])),[[i,{role:"button",tabindex:0}]]),re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(N,["stop","prevent"]),target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Run Whois")),1),h(J(Kn))])),[[i,{role:"button",tabindex:0}]]),re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(H,["stop","prevent"]),target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{text:J(a)("See recent traffic"),xs:J(a)("Recent")},null,8,["text","xs"])])),[[i,{role:"button",tabindex:0}]]),"blocked:waf"===J(_).action&&J(_).actionData?.path&&J(_).actionData?.paramKey&&J(_).actionData?.failedRules?(B(),u(t,{key:3},[re((B(),u("a",{class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:s[0]||(s[0]=ce(e=>{return t=J(_).actionData?.path,a=J(_).actionData?.paramKey,n=J(_).actionData?.failedRules,void w(t,a,n);var t,a,n},["stop","prevent"])),title:J(a)("If this is a false positive, you can exclude this parameter from being filtered by the firewall")},[f(Y(J(a)("Add Param to Firewall Allowlist")),1)],8,MO)),[[i,{role:"button",tabindex:0}]]),J(l).waf.debug?(B(),u("a",{key:0,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",href:`${V.value}&hitid=${J(_).id}`,target:"_blank",rel:"noopener noreferrer"},Y(J(a)("Debug this Request")),9,TO)):r("",!0)],64)):r("",!0)])])])}}},OO={class:"wf-center"},BO={class:"wf-nowrap"},$O={class:"wf-lt-location"},PO=["title"],EO={class:"wf-lt-location-text"},RO={key:0,class:"wf-lt-location-primary"},FO={class:"wf-lt-location-country"},NO={class:"wf-lt-location-text"},WO={class:"wf-lt-location-country"},HO=["title"],VO={class:"wf-nowrap"},UO={class:"wf-lt-time-value"},YO={class:"wf-lt-time-date"},KO={class:"wf-lt-time-clock"},jO=["title"],GO=["title"],QO=["title"],qO=["id"],ZO={key:1,class:"wf-flex-row wf-padding-add-top wf-padding-add-bottom"},JO={class:"wf-flex-row-1"},zO={key:0},XO=["title"],eB=["href"],tB={key:1},aB=["href"],nB=["href"],lB={key:0,class:"wfReverseLookup"},sB={key:1},oB={key:2},iB={key:3},rB={key:4},uB={key:5},cB={key:6,class:"wf-add-top-small"},dB={class:"wf-flex-row-0 wf-padding-add-left"},pB={__name:"LiveTrafficEntry",props:{entry:{type:Object,required:!0},groupBy:{type:[String,null],default:null},entryIndex:{type:Number},highlighted:{type:Boolean,default:!1}},setup(e){const a=b("__"),n=b("_n"),l=b("sprintf"),o=b("$dataStore"),i=b("unblockIPHandler",()=>{}),d=b("blockIPHandler",()=>{}),p=b("unblockNetworkHandler",()=>{}),{$makeIPTrafLink:m}=Gs(),{$hasOwn:g}=cn(),{$truncateText:w,$base64_decode:v}=Un(),{entry:y,groupBy:A}=Q(e),k=R(!1),_=s(()=>w(y.value.URL,o.livetraffic.urlMaxLength)),x=s(()=>{if(y.value.URL)try{const e=new URL(y.value.URL);return e.host!==location.host?w(y.value.URL,o.livetraffic.urlShortLength):w(e.pathname+(e.search?e.search:""),o.livetraffic.urlShortLength)}catch{}return""}),S=s(()=>w(o.ip.$reversed[y.value.IP],o.livetraffic.hostnameShortLength,"head")),I=s(()=>y.value.IP.length>16?y.value.IP.substring(0,16)+"…":y.value.IP),D=s(()=>!!y.value.loc),M=s(()=>y.value.loc?y.value.loc:{}),T=s(()=>{if("action"===A.value)switch(y.value.action){case"lockedOut":return a("Locked out from logging in");case"blocked:waf-always":return a("Blocked by the Wordfence Application Firewall and plugin settings");case"blocked:wordfence":return a("Blocked by Wordfence plugin settings");case"blocked:wfsnrepeat":case"blocked:wfsn":return a("Blocked by the Wordfence Security Network");case"blocked:waf":return a("Blocked by the Wordfence Web Application Firewall");case"cbl:redirect":return a("Redirected by Country Blocking bypass URL");default:return a("Blocked by Wordfence")}let e="";switch(y.value.action){case"lockedOut":return a("locked out from logging in");case"blocked:waf-always":case"blocked:wordfence":case"blocked:wfsnrepeat":return e=y.value.actionDescription,0===e?.toLowerCase().indexOf("block")?"b"+e.substring(1):l(a("blocked for %s"),e);case"blocked:wfsn":return a("blocked by the Wordfence Security Network");case"blocked:waf":{const t=y.value.actionData;if("object"==typeof t){const n=t.paramKey?v(t.paramKey):null,s=t.paramValue?v(t.paramValue):null,o=null!==n&&n.match(/([a-z0-9_]+\.[a-z0-9_]+)(?:\[(.+?)\](.*))?/i);if(e=y.value.actionDescription,o)switch(o[1]){case"request.queryString":e=l(a("%1$s in query string: %2$s"),y.value.actionDescription,o[2]+"="+w(encodeURIComponent(s)));break;case"request.body":e=l(a("%1$s in POST body: %2$s"),y.value.actionDescription,o[2]+"="+w(encodeURIComponent(s)));break;case"request.cookie":e=l(a("%1$s in cookie: %2$s"),y.value.actionDescription,o[2]+"="+w(encodeURIComponent(s)));break;case"request.fileNames":e=l(a("%1$s in file: %2$s"),y.value.actionDescription,o[2]+"="+w(encodeURIComponent(s)))}return e?l(a("blocked by firewall for %s"),e):"blocked"===t.failedRules?a("blocked by real-time IP blocklist"):a("blocked by firewall")}return l(a("blocked by firewall for %s"),y.value.actionDescription)}case"cbl:redirect":return e=y.value.actionDescription,e}return e}),L=s(()=>{let e=[];return e.push("wf-live-traffic-hit-type"),403===y.value.statusCode||503===y.value.statusCode?e.push("wfActionBlocked"):404===y.value.statusCode&&e.push("wf404"),y.value.jsRun&&e.push("wfHuman"),y.value.actionData?.learningMode&&e.push("wfWAFLearningMode"),"loginFailValidUsername"!==y.value.action&&"loginFailInvalidUsername"!==y.value.action&&"loginFailPasskey"!==y.value.action&&"loginFailPasskeyRequired"!==y.value.action||e.push("wfFailedLogin"),e}),O=s(()=>{let e=[];return e.push("wf-flag"),e.push(`wf-flag-${M.value.countryCode?.toLowerCase()}`),e}),$=s(()=>(M.value.city?`${M.value.city}, `:"")+(M.value.region?`${M.value.region}, `:"")+(M.value.countryName??"")),P=s(()=>[M.value.city,M.value.region].filter(e=>!!e).join(", ")),E=s(()=>M.value.countryName??a("Unspecified")),F=()=>{i(y.value.IP)},N=()=>{p(y.value.ipRangeID)},H=()=>{d(y.value.IP)};return(s,i)=>{const d=W("aria");return"none"===J(A)?(B(),u(t,{key:0},[c("tr",{class:C({"wf-summary-row":!0,odd:e.entryIndex%2==1,even:e.entryIndex%2==0,"wf-details-open":k.value,highlighted:e.highlighted}),onClick:i[0]||(i[0]=ce(e=>k.value=!k.value,["stop","prevent"]))},[c("td",OO,[c("span",{class:C(L.value)},null,2)]),c("td",BO,[c("div",$O,[D.value?(B(),u(t,{key:0},[c("span",{class:C(O.value),title:M.value.countryName},null,10,PO),c("span",EO,[P.value?(B(),u("span",RO,Y(P.value),1)):r("",!0),c("span",FO,Y(E.value),1)])],64)):(B(),u(t,{key:1},[i[1]||(i[1]=c("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 64.22 64.37",class:"wf-flag wf-flag-unspecified"},[c("path",{d:"M64,28.21a30.32,30.32,0,0,0-5.8-14.73A31.6,31.6,0,0,0,37.43.56C35.7.26,33.94.18,32.2,0h-.35C30.22.18,28.58.3,27,.55A32.14,32.14,0,0,0,.2,35.61,31.4,31.4,0,0,0,10.4,55.87a31.24,31.24,0,0,0,25,8.33,30.5,30.5,0,0,0,18.94-8.79C62,47.94,65.15,38.8,64,28.21ZM57.21,44.68a23.94,23.94,0,0,1-2.3-5.08c-.66-2.45-2.27-.08-2.4,1.52s-1.2,2.8-3.33.4-2.54-1.87-3.2-1.87-1.87,1.6-1.6,9.07c.19,5.33,2.29,6.18,3.67,6.56a27.16,27.16,0,0,1-8.78,4A27.55,27.55,0,0,1,7.85,45.13C2.27,34.4,5,22.26,10.67,15.57c.15,1.21.3,2.29.43,3.37a27.63,27.63,0,0,1-.52,8.79,4.39,4.39,0,0,0,.08,1.94,1.3,1.3,0,0,0,.94.76c.27,0,.75-.41.86-.73a8.27,8.27,0,0,0,.27-1.86c0-.44,0-.89.07-1.58a10.67,10.67,0,0,1,1.06.86c.7.7,1.4,1.4,2,2.15a2.11,2.11,0,0,1,.56,1.21,3.44,3.44,0,0,0,.83,2.13,12.21,12.21,0,0,1,1.07,2.57c.14.37.17.78.33,1.13a2,2,0,0,0,1.8,1.32c1,.07,1.32.44,1.46,1.43l-.74.08c-1.17.11-1.75.65-1.71,1.83a8.43,8.43,0,0,0,2.69,6c.48.45,1,.87,1.46,1.33a3.35,3.35,0,0,1,.92,3.75,12.18,12.18,0,0,0-.69,2.09,6,6,0,0,0,.06,2.23c.18.75.1,2.37.86,2.24,1.36-.24,2.14,0,2.25-1.49a1.22,1.22,0,0,0-.08-.6c-.4-1.42,1.42-5.47,2.52-6.2a27.11,27.11,0,0,0,2.73-2,3.6,3.6,0,0,0,1.26-4,3.22,3.22,0,0,1,1.14-3.59,4.54,4.54,0,0,0,1.71-3.65c-.08-1.53-1.07-2.63-2.37-2.47a9.21,9.21,0,0,0-1.87.59,20.62,20.62,0,0,1-2.72.9c-1.31.23-2.11-.62-2.69-1.66-.47-.83-.63-.9-1.44-.38s-1.37.89-2.08,1.28S22,35.58,21.45,35a5.79,5.79,0,0,0-1.24-.88c-.31-.19-.73-.24-1-.48s-.8-.8-.75-1.15a1.69,1.69,0,0,1,.95-1.1,14.36,14.36,0,0,1,2.29-.51,7.33,7.33,0,0,0,1.22-.33c.52-.21.5-.56.1-.89a3.26,3.26,0,0,0-.69-.37l-3.52-1.39a4.74,4.74,0,0,1-.84-.43c-.74-.49-.83-1-.16-1.61,2.64-2.33,5.72-3,8.45.08.84,1,1.42,2.16,2.22,3.16a12.5,12.5,0,0,0,2.15,2.15,1.62,1.62,0,0,0,1.44.09,1.15,1.15,0,0,0,.29-1.56,8.43,8.43,0,0,0-.86-1.41,5.16,5.16,0,0,1,1.59-7.52,4.38,4.38,0,0,0,2.53-2.58c-.58.16-1,.26-1.42.39-2.3.71-.7-1,.36-1.31.65-.18-.58-.67-.58-.67s.82-.28,1.69-.65a6.85,6.85,0,0,0,1.7-.94,3.79,3.79,0,0,0,.66-1.17l-.16-.18-1.83.24c-1,.11-1.27-.09-1.37-1.14a1,1,0,0,0-1.48-.73c-.45.25-.85.61-1.29.9-1,.66-1.78.39-2.19-.75-.23-.68-.57-.81-1.19-.42-.31.18-.58.47-.89.64a11.53,11.53,0,0,1-1.62.79c-.55.19-1.21.33-1.58-.27a1.25,1.25,0,0,1,.46-1.68A14.78,14.78,0,0,1,27,10c1-.56,2.07-1,3-1.65a1.78,1.78,0,0,0,.79-2.07.88.88,0,0,0-1.37-.65c-.56.28-1.06.72-1.63,1a2.81,2.81,0,0,1-1.41.08c-.17,0-.35-.49-.35-.76s.31-.43.51-.46c1.4-.22,2.81-.41,4.22-.57a.76.76,0,0,1,.58.25,6.84,6.84,0,0,0,3.6,2.15c1.15.34,1.31.18,1.47-1,1.48-.34,3-1,4.46-.09A14.4,14.4,0,0,1,43.14,8c.18.17.07.7,0,1s-.36.87-.48,1.33a1.2,1.2,0,0,0,1.26,1.56c.29,0,.57-.07.86-.08.85,0,1.14.28,1.07,1.13-.11,1.21.09,1.35,1.31,1.15a2.07,2.07,0,0,1,1.67.64c1.14.86,2,.54,2.33-.86,0-.16,0-.32.06-.47.14-.63.49-.79.92-.35.9,1,1.74,2,2.66,3a3,3,0,0,0-.8,3.07,5.19,5.19,0,0,1-.55,3.27A24.63,24.63,0,0,0,52.2,25.5c-.45,1.57.06,2.3,1.66,2.65s1.78.64,1.84,2.14a4.85,4.85,0,0,0,2.92,4.35c.4.19.82.34,1.23.51a25.22,25.22,0,0,1-2.64,9.53Z"})],-1)),c("span",NO,[c("span",WO,Y(E.value),1)])],64))])]),c("td",null,[c("span",{class:"wf-lt-url",title:J(y).URL},Y(x.value),9,HO)]),c("td",VO,[c("div",UO,[c("div",YO,[h(J(Mi),{timestamp:J(y).ctime,dateFormat:"%b %-d, %Y"},null,8,["timestamp"])]),c("div",KO,[h(J(Mi),{timestamp:J(y).ctime,dateFormat:"%-I:%M:%S %p"},null,8,["timestamp"])])])]),c("td",null,[c("span",{title:J(y).IP},Y(I.value),9,jO)]),c("td",null,[J(o).ip.$reversed[J(y).IP]?(B(),u("span",{key:0,title:J(o).ip.$reversed[J(y).IP]},Y(S.value),9,GO)):(B(),u("span",{key:1,title:J(y).IP},Y(I.value),9,QO))]),c("td",null,Y(J(y).statusCode),1),i[2]||(i[2]=c("td",{class:"wf-live-traffic-show-details"},[c("span",{class:"wf-ion-eye"}),c("span",{class:"wf-ion-eye-disabled"})],-1))],2),c("tr",{class:C({"wf-details-row":!0,odd:e.entryIndex%2==1,even:e.entryIndex%2==0,"wf-details-visible":k.value,"wf-details-hidden":!k.value,highlighted:e.highlighted})},[c("td",{id:`wfActEvent_${J(y).id}`,colspan:"8",class:"wf-live-traffic-details"},[h(J(LO),{entry:J(y)},null,8,["entry"])],8,qO)],2)],64)):(B(),u("li",ZO,[c("div",JO,["ip"===J(A)?(B(),u(t,{key:0},[D.value?(B(),u("div",zO,[c("span",{class:C(O.value),title:M.value.countryName},null,10,XO),c("a",{href:`http://maps.google.com/maps?q=${M.value.lat},${M.value.lon}&z=6`,target:"_blank",rel:"noopener noreferrer"},[f(Y($.value),1),h(J(Kn))],8,eB)])):(B(),u("div",tB,[f(Y(J(a)("An unknown location at IP"))+" ",1),c("a",{href:J(m)(J(y).IP),target:"_blank",rel:"noopener noreferrer"},[f(Y(J(y).IP),1),h(J(Kn))],8,aB)])),c("div",null,[c("strong",null,Y(J(a)("IP"))+":",1),i[3]||(i[3]=f()),c("a",{href:J(m)(J(y).IP),target:"_blank",rel:"noopener noreferrer"},[f(Y(J(y).IP),1),h(J(Kn))],8,nB)]),c("div",null,[J(g)(J(o).ip.$reversed,J(y).IP)?(B(),u("span",lB,[c("strong",null,Y(J(a)("Hostname"))+":",1),f(" "+Y(J(o).ip.$reversed[J(y).IP]),1)])):r("",!0)])],64)):"type"===J(A)?(B(),u("div",sB,[c("strong",null,Y(J(a)("Type"))+":",1),J(y).jsRun?(B(),u(t,{key:0},[f(Y(J(a)("Human")),1)],64)):(B(),u(t,{key:1},[f(Y(J(a)("Bot")),1)],64))])):"user_login"===J(A)?(B(),u("div",oB,[c("strong",null,Y(J(a)("Username"))+":",1),f(" "+Y(J(y).username),1)])):"statusCode"===J(A)?(B(),u("div",iB,[c("strong",null,Y(J(a)("HTTP Response Code"))+":",1),f(" "+Y(J(y).statusCode),1)])):"action"===J(A)?(B(),u("div",rB,[c("strong",null,Y(J(a)("Firewall Response"))+":",1),f(" "+Y(T.value),1)])):"url"===J(A)?(B(),u("div",uB,[c("strong",null,Y(J(a)("URL"))+":",1),f(" "+Y(_.value),1)])):r("",!0),c("div",null,[c("strong",null,Y(J(a)("Last Hit"))+":",1),i[4]||(i[4]=f()),h(J(pO),{timestamp:J(y).ctime},null,8,["timestamp"])]),"ip"===J(A)?(B(),u("div",cB,[J(y).blocked?re((B(),u("a",{key:0,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(F,["stop","prevent"])},[f(Y(J(a)("Unblock IP")),1)])),[[d,{role:"button",tabindex:0}]]):J(y).rangeBlocked?re((B(),u("a",{key:1,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(N,["stop","prevent"])},[f(Y(J(a)("Unblock range")),1)])),[[d,{role:"button",tabindex:0}]]):re((B(),u("a",{key:2,class:"wf-btn wf-btn-default wf-btn-sm wf-add-right-small",onClick:ce(H,["stop","prevent"])},[f(Y(J(a)("Block IP")),1)])),[[d,{role:"button",tabindex:0}]])])):r("",!0)]),c("div",dB,Y(J(l)(J(n)("%d hit","%d hits",J(y).hitCount),J(y).hitCount)),1)]))}}},fB={class:"wf-no-top"},hB={key:1,class:"wf-error-text"},mB={__name:"WhoisResponse",props:{whoisResponse:{type:[Object,null],default:null}},setup(e){const a=b("__"),n=b("_n"),l=b("$"),o=b("sprintf"),{$inet_aton:r,$inet_ntoa:d}=Gs(),{whoisResponse:p}=Q(e),f=/(.*?)(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} - \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|[a-f0-9:.]{3,} - [a-f0-9:.]{3,}).*$/i,h=/(.*?)(\d{1,3})\.(\d{1,3})\.?(\d{0,3})\.?(\d{0,3})\/(\d{1,3}).*$/i,m=s(()=>p.value&&p.value.rawdata&&p.value.rawdata.length>0),g=(e,t,l,s,i)=>{const u=l.split(/\s*-\s*/);let c=NaN;if(u[0].indexOf(":")<0){const e=r(u[0]);c=r(u[1])-e+1}return`<div class="wf-flex-row"><a class="wf-btn wf-btn-default wf-flex-row-0" href="${"admin.php?page=WordfenceWAF&wfBlockRange="+encodeURIComponent(l)+"#top#blocking"}">`+a("Block This Network")+`</a><span class='wf-flex-row-1 wf-padding-add-left'>${i}${-1===i.indexOf(l)?"("+l+")":""}`+(c?"<br>["+o(n("%d address in this network","%d addresses in this network",c),c)+"]":"")+"</span></div>"},w=(e,t,l,s,i,u,c,p,f)=>{i=i.length>0?i:"0",u=u.length>0?u:"0";const h=r([l,s,i,u].join("."));if(c=parseInt(c,10),!isNaN(h)&&c>0&&c<32){let e=h;for(let a=32,n=1;a>=c;a--,n*=2)e|=n;e>>>=0;const t=d(h)+" - "+d(e),l=e-h+1;return`<div class="wf-flex-row"><a class="wf-btn wf-btn-default wf-flex-row-0" href="${"admin.php?page=WordfenceWAF&wfBlockRange="+encodeURIComponent(t)+"#top#blocking"}">`+a("Block This Network")+`</a><span class='wf-flex-row-1 wf-padding-add-left'>${f}${-1===f.indexOf(t)?"("+t+")":""}`+(l?"<br>["+o(n("%d address in this network","%d addresses in this network",l),l)+"]":"")+"</span></div>"}return e},v=e=>{let t=l("<div />").text(e).html();return t=t.replace(/([a-zA-Z0-9\-._+]+@[a-zA-Z0-9\-._]+)/,'<a href="mailto:$1">$1</a>'),t=t.replace(/(https?:\/\/[a-zA-Z0-9\-._+/?&=#%:@;]+)/,'<a target="_blank" rel="noopener noreferrer" href="$1">$1</a>'),f.test(t)?t=t.replace(f,g):h.test(t)?t=t.replace(h,w):t+="<br>",t.replace(/<\/div><br ?\/?>/g,"</div>")};return(e,n)=>(B(),u(t,null,[c("h4",fB,Y(J(a)("WHOIS LOOKUP")),1),m.value?(B(!0),u(t,{key:0},F(J(p).rawdata,e=>(B(),i(J(Ep),{unsafeHTML:v(e),key:e,allowedTags:["div","br","a","span"],allowedAttributes:{div:["class"],a:["href","target","rel","class"],span:["class"]}},null,8,["unsafeHTML"]))),128)):(B(),u("span",hB,Y(J(a)("Sorry, but no data for that IP or domain was found.")),1))],64))}},gB={class:"wf-no-top"},wB={key:0,class:"wf-recent-traffic-table"},vB={key:0},yB=["href"],bB={key:0,class:"wf-error-text"},AB={key:1},kB={key:1},_B=["href"],xB={key:2},CB=["href"],SB={key:0,class:"wfAvatar"},IB={key:3},DB=["title"],MB={key:1,class:"wf-error-text"},TB={__name:"LiveTrafficRecentTraffic",props:{recentTrafficResponse:{type:[Object,null],default:null}},setup(e){const a=b("__"),n=b("$dataStore"),{$avatarLookup:l}=OL(),{recentTrafficResponse:s}=Q(e);oe(s,e=>{null!==e&&e.result&&l(e.result.filter(e=>!!e.user).map(e=>e.user.ID))},{deep:!0});const o=e=>{let t=[];return t.push("wf-flag"),t.push(`wf-flag-${e.countryCode?.toLowerCase()}`),t};return(e,l)=>(B(),u(t,null,[c("h4",gB,Y(J(a)("Recent Activity")),1),J(s)&&J(s).result?(B(),u("table",wB,[(B(!0),u(t,null,F(J(s).result,e=>{return B(),u(t,{key:e.ctime},[c("tr",null,[c("th",null,Y(J(a)("Time"))+":",1),c("td",null,[h(J(Mi),{timestamp:e.ctime},null,8,["timestamp"]),l[0]||(l[0]=f(" (",-1)),h(J(pO),{timestamp:e.ctime},null,8,["timestamp"]),l[1]||(l[1]=f(")",-1))])]),e.timeSinceLastHit?(B(),u("tr",vB,[c("th",null,Y(J(a)("Seconds since last hit"))+":",1),c("td",null,Y(e.timeSinceLastHit),1)])):r("",!0),c("tr",null,[c("th",null,Y(J(a)("URL"))+":",1),c("td",null,[c("a",{href:e.URL,target:"_blank",rel:"noopener noreferrer"},[f(Y(e.URL),1),h(J(Kn))],8,yB)])]),c("tr",null,[c("th",null,Y(J(a)("Type"))+":",1),c("td",null,[404===e.statusCode?(B(),u("span",bB,Y(J(a)("Page not found")),1)):"hit"===e.type?(B(),u("span",AB,Y(J(a)("Normal request")),1)):r("",!0)])]),e.referer?(B(),u("tr",kB,[c("th",null,Y(J(a)("Referrer"))+":",1),c("td",null,[c("a",{href:e.referer,target:"_blank",rel:"noopener noreferrer"},[f(Y(e.referer),1),h(J(Kn))],8,_B)])])):r("",!0),c("tr",null,[c("th",null,Y(J(a)("User Agent"))+":",1),c("td",null,Y(e.UA),1)]),e.user?(B(),u("tr",xB,[c("th",null,Y(J(a)("User"))+":",1),c("td",null,[c("a",{href:e.user.editLink,target:"_blank",rel:"noopener noreferrer"},[J(n).$wordpress.avatars[e.user.ID]?(B(),u("span",SB,[h(J(Ep),{unsafeHTML:J(n).$wordpress.avatars[e.user.ID],allowedTags:["img"],allowedAttributes:{img:["src","alt","srcset","class","height","width","loading","fetchpriority","decoding"]}},null,8,["unsafeHTML"])])):r("",!0),f(" "+Y(e.user.display_name),1),h(J(Kn))],8,CB)])])):r("",!0),e.loc?(B(),u("tr",IB,[c("th",null,Y(J(a)("Location"))+":",1),c("td",null,[c("span",{class:C(o(e.loc)),title:e.loc.countryName},null,10,DB),f(" "+Y((s=e.loc,(s.city?`${s.city}, `:"")+(s.region?`${s.region}, `:"")+(s.countryName??""))),1)])])):r("",!0),l[2]||(l[2]=c("tr",{class:"wf-recent-traffic-table-row-border"},[c("td",{colspan:"2"},[c("div")])],-1))],64);var s}),128))])):(B(),u("span",MB,Y(J(s)?.errorMsg),1))],64))}},LB={class:"wf-section-title"},OB=["href"],BB={class:"wf-fa wf-fa-external-link"},$B={key:0,id:"wfLiveTrafficOverlayAnchor"},PB={key:1,id:"wfLiveTrafficDisabledMessage"},EB={class:"wf-limited-width"},RB={class:"wf-limited-width"},FB={id:"wf-live-traffic-options",class:"wf-row"},NB={class:"wf-col-xs-12"},WB={class:"wf-limited-width"},HB={key:0,id:"wordfenceLiveActivitySecurityOnly"},VB={key:0},UB=["href"],YB={key:1,id:"wordfenceLiveActivityAll"},KB={key:0},jB=["href"],GB={class:"wf-col-xs-12"},QB={class:"wf-block wf-active"},qB={class:"wf-block-content"},ZB={class:"wf-container-fluid"},JB={class:"wf-row"},zB={class:"wf-col-xs-12"},XB={class:"wfHuman"},e$={class:"wfBot"},t$={class:"wfNotice"},a$={class:"wfBlocked"},n$={class:"wf-row wf-add-bottom-small"},l$={class:"wf-col-xs-12",id:"wf-live-traffic-legend-wrapper"},s$={class:"wf-live-traffic-controls"},o$={class:"wf-live-traffic-filter"},i$={class:"wf-padding-no-left"},r$=["value"],u$={for:"wf-live-traffic-filter-show-advanced"},c$={class:"wf-live-traffic-show-expanded"},d$={key:0,id:"wf-lt-advanced-filters"},p$={class:"wf-live-traffic-filter-detail"},f$={class:"wf-live-traffic-filter-item"},h$={class:"wf-live-traffic-filter-item-parameters"},m$=["onUpdate:modelValue"],g$={value:""},w$=["value"],v$={key:0},y$=["onUpdate:modelValue"],b$=["value"],A$={class:"wf-lt-advanced-filters-value-cell"},k$=["onUpdate:modelValue"],_$=["value"],x$=["onUpdate:modelValue"],C$={key:2,class:"wf-option wf-option-switch"},S$={class:"wf-option-content wf-add-right-large"},I$={class:"wf-option-switch"},D$={class:"wf-switch"},M$=["onClick","onKeydown"],T$=["onClick","onKeydown"],L$=["onClick"],O$={class:"wf-ion-trash-a"},B$={class:"wf-pad-small"},$$={key:0,class:"wf-notice wf-info"},P$={class:"wf-form wf-form-horizontal"},E$={class:"wf-form-group"},R$={for:"wf-live-traffic-from",class:"wf-col-sm-2"},F$={class:"wf-col-sm-10"},N$={class:"wf-form-group"},W$={for:"wf-live-traffic-group-by",class:"wf-col-sm-2"},H$={class:"wf-col-sm-10"},V$=["value"],U$={id:"wf-live-traffic-filtering-bar"},Y$={class:"wf-row"},K$={class:"wf-col-xs-12"},j$={key:0,id:"wf-live-traffic-group-by",class:"wf-block"},G$={class:"wf-filtered-traffic wf-block-list","data-bind":"foreach: listings"},Q$={key:1,id:"wf-live-traffic-no-group-by"},q$={class:"wf-striped-table"},Z$={id:"wf-lt-listings",class:"wf-filtered-traffic"},J$={key:2,class:"wf-live-traffic-none"},z$={class:"wf-live-traffic-util-overlay-header"},X$={class:"wf-live-traffic-util-overlay-body"},eP={__name:"LiveTraffic",setup(e){const a=b("__"),n=b("$"),l=b("wfconstants"),o=b("$dataStore"),d=window.wordfenceAdmin,{$ajax:p,$ajaxErrorMessage:m}=In(),{$reverseIPs:g}=Gs(),{$errorModal:w}=Hn(),{$setOption:v}=Vn(),{$hasOwn:y}=cn(),{$avatarLookup:A}=OL(),k=R(!1),_=R(!1),S=R(!1),I=R("all"),M=P([{id:"all",label:a("All Hits"),filter:[]},{id:"humans",label:a("Humans"),filter:[{param:"type",value:"human",operator:"="}]},{id:"users",label:a("Registered Users"),filter:[{param:"userID",value:0,operator:"!="}]},{id:"crawlers",label:a("Crawlers"),filter:[{param:"type",value:"bot",operator:"="}]},{id:"google",label:a("Google Crawlers"),filter:[{param:"isGoogle",value:!0,operator:"="}]},{id:"404s",label:a("Pages Not Found"),filter:[{param:"statusCode",value:404,operator:"="}]},{id:"logins",label:a("Logins and Logouts"),filter:[{param:"action",value:"login",operator:"contains"},{param:"action",value:"logout",operator:"contains"}]},{id:"lockedOut",label:a("Locked Out"),filter:[{param:"action",value:"lockedOut",operator:"="}]},{id:"blocked",label:a("Blocked"),filter:[{param:"action",value:"blocked",operator:"contains"}]},{id:"blocked:waf",label:a("Blocked By Firewall"),filter:[{param:"action",value:"blocked:waf",operator:"="}]}]),L=R(!1),O=P([]),E=P([{value:"=",label:"=",default:!0},{value:"!=",label:"≠"},{value:"contains",label:a("contains")},{value:"match",label:a("matches")},{value:"!contains",label:a("does not contain")},{value:"!match",label:a("does not match")}]),N=P([{param:"type",label:a("Type"),type:"enum",default:"human",options:[{value:"human",label:a("Human")},{value:"bot",label:a("Bot")}]},{param:"user_login",label:a("Username"),type:"text",default:""},{param:"userID",label:a("User ID"),type:"text",default:""},{param:"isGoogle",label:a("Google Bot"),type:"bool",default:!0},{param:"ip",label:a("IP"),type:"text",default:""},{param:"ua",label:a("User Agent"),type:"text",default:""},{param:"referer",label:a("Referer"),type:"text",default:""},{param:"url",label:a("URL"),type:"text",default:""},{param:"statusCode",label:a("HTTP Response Code"),type:"text",default:""},{param:"action.firewall",label:a("Request Response"),type:"enum",default:"",options:[{value:"",label:a("OK"),allowed:["=","!="]},{value:"lockedOut",label:a("Locked Out"),allowed:["=","!="]},{value:"blocked:*",label:a("Blocked"),allowed:["match","!match"]},{value:"blocked:waf",label:a("Blocked (WAF)"),allowed:["=","!="]},{value:"blocked:wfsn*",label:a("Blocked (Brute Force)"),allowed:["match","!match"]}]},{param:"action.login",label:a("Logins"),type:"enum",default:"loginOK",options:[{value:"loginOK",label:a("Logged In")},{value:"loginPasskeyOK",label:a("Logged In: Passkey")},{value:"loginFail",label:a("Failed Login")},{value:"loginFailInvalidUsername",label:a("Failed Login: Invalid Username")},{value:"loginFailValidUsername",label:a("Failed Login: Valid Username")},{value:"loginFailPasskey",label:a("Failed Login: Passkey")},{value:"loginFailPasskeyRequired",label:a("Blocked Login: Passkey Required")}]},{param:"action.other",label:a("Security Event"),type:"text",default:""}]),H=R("none"),V=P([{param:"none",value:a("None")},{param:"type",value:a("Type")},{param:"user_login",value:a("Username")},{param:"statusCode",value:a("HTTP Response Code")},{param:"action",value:a("Firewall Response"),type:"enum",options:["ok","throttled","lockedOut","blocked","blocked:waf"]},{param:"ip",value:a("IP")},{param:"url",value:a("URL")}]),U=R(),K=e=>{const t=N.findIndex(t=>t.param===e);return t>-1?N[t]:null},j=e=>{const t=N.findIndex(t=>t.param===e);return t>-1?N[t].options:[]},G=e=>{const t=K(e?.param);if(!t)return E;let a=Array.isArray(t.allowed)?t.allowed:null;if("enum"===t.type){const n=j(t.param).find(t=>t.value===e.value);n&&Array.isArray(n.allowed)&&(a=n.allowed)}if(!a||0===a.length)return E;const n=E.filter(e=>a.includes(e.value));return n.length?n:E},Q=e=>{const t=G(e),a=K(e?.param);return a?.operator&&t.some(e=>e.value===a.operator)?a.operator:t[0]?.value??"="};let q=0;const Z=()=>{O.push({id:++q,param:"",value:"",operator:"="})};oe(I,e=>{x(xe)}),oe(H,e=>{x(xe)}),oe(O,e=>{x(_e)},{deep:!0}),oe(U,e=>{x(_e)},{deep:!0});const z=/* @__PURE__ */new WeakMap;oe(O,e=>{e.forEach(e=>{const t=z.get(e);if(void 0!==t){if(e.param!==t){const t=K(e.param);e.operator=Q(e),e.value=t?.default??""}G(e).some(t=>t.value===e.operator)||(e.operator=Q(e)),z.set(e,e.param)}else z.set(e,e.param)})},{deep:!0});const X=s(()=>O.some(e=>"action.firewall"===e.param&&""===e.value)),ee=s(()=>X.value&&!l.livetraffic.recording.record_all),ae=R(!1),se=R(0),de=R(!0),pe=R(null);let fe=null;const he=(e=null)=>{if(ae.value||!de.value||0===o.livetraffic.entries.length)return;const t=o.livetraffic.entries.length;ae.value=!0,Ie(a=>{const n=o.livetraffic.entries.length-t;de.value=a.length>0,a.length>0&&n<=0&&(de.value=!1),ae.value=!1,x(ge),"function"==typeof e&&e(a,n)},()=>{ae.value=!1})},me=()=>{(()=>{const e=n("div#wf-live-traffic-group-by:visible");if(e.length)return e[0].getBoundingClientRect().bottom<=window.innerHeight+200;const t=n("#wf-lt-listings").children().filter(":visible").last();return!!t.length&&t[0].getBoundingClientRect().bottom<=window.innerHeight+200})()&&he((e,t)=>{t>0&&x(me)})},ge=()=>{fe&&pe.value&&(fe.disconnect(),fe.observe(pe.value))},we=e=>{e.some(e=>e.isIntersecting)&&he()};T(()=>{document.title=a("Live Traffic")+" ‹ "+d.basePageName,n(window).on("scroll",Ae),fe=new IntersectionObserver(we,{root:null,rootMargin:"0px 0px 200px 0px"}),o.livetraffic.updateTick&&(clearInterval(o.livetraffic.updateTick),o.livetraffic.updateTick=!1),o.livetraffic.updateTick=setInterval(ye,l.plugin.update_interval),x(xe)}),D(()=>{n(window).off("scroll",Ae),fe?.disconnect(),fe=null,o.livetraffic.updateTick&&(clearInterval(o.livetraffic.updateTick),o.livetraffic.updateTick=!1),se.value&&(clearTimeout(se.value),se.value=0)});const ve=R(!1),ye=(e=!1)=>{e||!(ve.value||!document.hasFocus()&&o.$options.liveActivityPauseEnabled)?(n("body").hasClass("wordfenceLiveActivityPaused")&&n("body").removeClass("wordfenceLiveActivityPaused"),o.mode!==l.plugin.mode.livetraffic.active||se.value||(ve.value=!0,ke({since:Ce.value},e=>{Se(e),ve.value=!1}))):n("body").hasClass("wordfenceLiveActivityPaused")||ve.value||n("body").addClass("wordfenceLiveActivityPaused")},be=R(!1),Ae=()=>{const e=n("#wf-live-traffic-legend-wrapper"),t=n("#wpadminbar"),a=n("#wf-lt-listings"),s=n("div#wf-live-traffic-group-by"),i=a.children().filter(":visible").first();be.value=o.isSmallScreen?e.offset().top<n(window).scrollTop()+10:e.offset().top<n(window).scrollTop()+t.outerHeight()+10,i.length>0&&i.offset().top+i.height()<n(window).scrollTop()+t.outerHeight()+20||s.filter(":visible").length>0?o.mode!==l.plugin.mode.livetraffic.paused&&(o.mode=l.plugin.mode.livetraffic.paused):o.mode!==l.plugin.mode.livetraffic.active&&(o.mode=l.plugin.mode.livetraffic.active)},ke=(e,t,a=null)=>{let n=(()=>{let e={};return M.filter(e=>e.id===I.value).forEach(t=>{t.filter.forEach(t=>{y(e,"param")||(e.param=[],e.value=[],e.operator=[]),e.param.push(t.param),e.value.push(t.value),e.operator.push(t.operator)})}),O.forEach(t=>{N.findIndex(e=>e.param===t.param)<0||E.findIndex(e=>e.value===t.operator)<0||(y(e,"param")||(e.param=[],e.value=[],e.operator=[]),e.param.push(t.param.replace(/\..+/g,"")),e.value.push(t.value),e.operator.push(t.operator))}),e.groupby=H.value,null!==U.value&&Array.isArray(U.value)&&U.value[0]&&(e.startDate=Math.floor(U.value[0].getTime()/1e3)),null!==U.value&&Array.isArray(U.value)&&U.value[1]&&(e.endDate=Math.floor(U.value[1].getTime()/1e3)),e})();const l={since:null,limit:o.livetraffic.limit.value,offset:0};for(const s in l)n[s]=e&&"object"==typeof e&&y(e,s)?e[s]:l[s];p("wordfence_loadLiveTraffic",n,e=>{e?.serverMicrotime&&(o.time.serverMicrotime=e?.serverMicrotime),e&&e.success?"function"==typeof t&&t(e.data,e):"function"==typeof a&&a(e)},e=>{"function"==typeof a&&a(e)},!0)},_e=e=>{se.value&&clearTimeout(se.value),se.value=setTimeout(xe,2e3,e)},xe=e=>{se.value&&(clearTimeout(se.value),se.value=0),ae.value=!0,de.value=!0,o.livetraffic.entries.splice(0,o.livetraffic.entries.length),ke(e,e=>{"none"!==H.value?o.mode=l.plugin.mode.livetraffic.paused:o.mode=l.plugin.mode.livetraffic.active,Se(e),de.value=e.length>0,ae.value=!1,x(()=>{ge(),me()})},()=>{ae.value=!1})},Ce=s(()=>o.livetraffic.entries.length?o.livetraffic.entries[0].ctime:0),Se=e=>{const t=o.livetraffic.entries.map(e=>e.id),a=e.filter(e=>!t.includes(e.id));a.length&&(o.livetraffic.entries.push(...a),o.livetraffic.entries.sort((e,t)=>e.ctime>t.ctime?-1:e.ctime<t.ctime?1:e.id>t.id?-1:e.id<t.id?1:0),g(a.map(e=>e.IP)),A(a.map(e=>e.userID))),o.livetraffic.recent.splice(0,o.livetraffic.recent.length,...a.map(e=>e.id))},Ie=(e,t=null)=>{ke({offset:o.livetraffic.entries.length},t=>{Se(t),"function"==typeof e&&e(t)},t)},De=e=>{v("liveTraf_displayExpandedRecords",e.new,()=>{o.$options.liveTraf_displayExpandedRecords=e.new})},Me=e=>{let t={id:0,ctime:0,IP:"",jsRun:!1,statusCode:200,isGoogle:!1,userID:0,URL:"",referer:"",UA:"",loc:!1,type:"",blocked:!1,rangeBlocked:!1,ipRangeID:-1,extReferer:null,browser:null,user:null,hitCount:0,username:"",action:"",actionDescription:null,actionData:null};for(const a in t)y(e,a)&&(t[a]=e[a]);return t};$("unblockIPHandler",e=>{p("wordfence_unblockIP",{IP:e},t=>{t.ok&&o.livetraffic.entries.forEach((t,a)=>{t.IP===e&&(o.livetraffic.entries[a].blocked=!1)})})}),$("blockIPHandler",e=>{p("wordfence_blockIP",{IP:e,reason:a("Manual block by administrator")},t=>{t.ok&&o.livetraffic.entries.forEach((t,a)=>{t.IP===e&&(o.livetraffic.entries[a].blocked=!0)})},e=>{w(m(e))})}),$("unblockNetworkHandler",e=>{p("wordfence_unblockRange",{id:e},t=>{t.ok&&o.livetraffic.entries.forEach((t,a)=>{t.ipRangeID===e&&(o.livetraffic.entries[a].blocked=!1,o.livetraffic.entries[a].ipRangeID=-1)})})}),$("showWhoisHandler",e=>{const t=++Te.value;_.value=!1,S.value=!1,p("wordfence_whois",{val:J(e).IP},a=>{t===Te.value&&(_.value=a.result?a.result:null,k.value=J(e))})}),$("showRecentTrafficHandler",e=>{const t=++Te.value;_.value=!1,S.value=!1,p("wordfence_recentTraffic",{ip:J(e).IP},a=>{t===Te.value&&(S.value=a,k.value=J(e))})}),$("whitelistWAFParamHandler",(e,t,a)=>{p("wordfence_whitelistWAFParamKey",{path:e,paramKey:t,failedRules:a},()=>{})});const Te=R(0),Le=()=>{k.value=!1};return(e,n)=>{const s=W("aria"),d=W("visible");return B(),u(t,null,[c("div",LB,[c("h2",null,Y(J(a)("Live Traffic")),1),c("span",null,[c("a",{href:J(l).support.url.tools_live_traffic,target:"_blank",rel:"noopener noreferrer",class:"wf-help-link"},[h(J(Vs),{text:J(a)("Learn more about Live Traffic"),xs:J(a)("Learn More")},null,8,["text","xs"]),h(J(Kn))],8,OB),n[4]||(n[4]=f()),re(c("i",BB,null,512),[[s,{hidden:!0}]])])]),J(o).$options.liveActivityPauseEnabled?(B(),u("div",$B)):r("",!0),J(o).$options.liveActivityPauseEnabled?(B(),u("div",PB,[c("h2",null,[f(Y(J(a)("Live Updates Paused")),1),n[5]||(n[5]=c("br",null,null,-1)),c("small",null,Y(J(a)("Click inside window to resume")),1)])])):r("",!0),c("p",EB,Y(J(a)("Wordfence Live Traffic shows you what is happening on your site in real-time, including user logins, hack attempts, and requests that were blocked by the Wordfence Firewall. You can choose to log security-related traffic only or all traffic. Traffic is logged directly on the server, which means it includes visits that don't execute JavaScript. Google and other JavaScript-based analytics packages typically only show visits from browsers that are operated by a human, while Live Traffic can show visits from crawlers like Google and Bing.")),1),n[12]||(n[12]=c("div",{class:"wordfenceModeElem",id:"wordfenceMode_liveTraffic"},null,-1)),c("div",RB,[c("div",FB,[c("div",NB,[h(J(cO),{stateKey:"live-traffic-options",showControls:!0})])])]),c("div",WB,[J(l).livetraffic.recording.record_all?(B(),u("div",YB,[c("p",null,[c("strong",null,[f(Y(J(a)("Traffic logging mode: All traffic")),1),J(l).livetraffic.recording.host_setting?(B(),u("span",KB,[f(" ("+Y(J(a)("host setting"))+" ",1),c("a",{href:J(l).support.url.tools_live_traffic_option_enable,class:"wfhelp",target:"_blank",rel:"noopener noreferrer"},[h(J(Kn))],8,jB),n[8]||(n[8]=f(")",-1))])):r("",!0),n[9]||(n[9]=f(".",-1))]),f(" "+Y(J(a)("Regular traffic and security-related traffic will appear below.")),1)])])):(B(),u("div",HB,[c("p",null,[c("strong",null,[f(Y(J(a)("Traffic logging mode: Security-related traffic only")),1),J(l).livetraffic.recording.host_setting?(B(),u("span",VB,[f(" ("+Y(J(a)("host setting"))+" ",1),c("a",{href:J(l).support.url.tools_live_traffic_option_enable,class:"wfhelp",target:"_blank",rel:"noopener noreferrer"},[h(J(Kn))],8,UB),n[6]||(n[6]=f(")",-1))])):r("",!0),n[7]||(n[7]=f(".",-1))]),f(" "+Y(J(a)("Login and firewall activity will appear below.")),1)])]))]),c("div",{id:"wf-live-traffic",class:C({"wf-row":!0,"wf-live-traffic-display-expanded":J(o).$options.liveTraf_displayExpandedRecords})},[c("div",GB,[c("div",QB,[c("div",qB,[c("div",ZB,[c("div",JB,[c("div",zB,[c("div",{id:"wf-live-traffic-legend",class:C({sticky:be.value})},[c("ul",null,[c("li",XB,Y(J(a)("Human")),1),c("li",e$,Y(J(a)("Bot")),1),c("li",t$,Y(J(a)("Warning")),1),c("li",a$,Y(J(a)("Blocked")),1)])],2),c("div",n$,[c("div",l$,[c("ul",s$,[c("li",o$,[c("div",i$,[re(c("select",{id:"wf-lt-preset-filters","onUpdate:modelValue":n[0]||(n[0]=e=>I.value=e)},[(B(!0),u(t,null,F(M,e=>(B(),u("option",{key:e.id,value:e.id},Y(e.label),9,r$))),128))],512),[[ne,I.value]])]),n[10]||(n[10]=f(" ",-1)),re(c("input",{id:"wf-live-traffic-filter-show-advanced",class:"wf-option-checkbox",type:"checkbox","onUpdate:modelValue":n[1]||(n[1]=e=>L.value=e)},null,512),[[te,L.value]]),c("label",u$,Y(J(a)("Show Advanced Filters")),1)]),c("li",c$,[h(J(bi),{optionName:"liveTraf_displayExpandedRecords",title:J(a)("Expand All Results"),enabledValue:!0,disabledValue:!1,value:J(o).$options.liveTraf_displayExpandedRecords,onChange:De},null,8,["title","value"])])]),h(J(qs),null,{default:ie(()=>[L.value?(B(),u("div",d$,[c("div",p$,[c("div",null,[(B(!0),u(t,null,F(O,(e,n)=>(B(),u("div",{key:e.id},[c("div",f$,[c("div",h$,[c("div",null,[re(c("select",{class:"wf-lt-advanced-filters-param","onUpdate:modelValue":e=>O[n].param=e},[c("option",g$,Y(J(a)("Filter...")),1),(B(!0),u(t,null,F(N,e=>(B(),u("option",{key:e.param,value:e.param},Y(e.label),9,w$))),128))],8,m$),[[ne,O[n].param]])]),K(e.param)?(B(),u(t,{key:0},["bool"!==K(e.param).type?(B(),u("div",v$,[re(c("select",{class:"wf-lt-advanced-filters-operator","onUpdate:modelValue":e=>O[n].operator=e},[(B(!0),u(t,null,F(G(O[n]),e=>(B(),u("option",{key:e.value,value:e.value},Y(e.label),9,b$))),128))],8,y$),[[ne,O[n].operator]])])):r("",!0),c("div",A$,["enum"===K(e.param).type?re((B(),u("select",{key:0,"onUpdate:modelValue":e=>O[n].value=e},[(B(!0),u(t,null,F(j(e.param),e=>(B(),u("option",{key:e.value,value:e.value},Y(e.label),9,_$))),128))],8,k$)),[[ne,O[n].value]]):"text"===K(e.param).type?re((B(),u("input",{key:1,type:"text","onUpdate:modelValue":e=>O[n].value=e},null,8,x$)),[[le,O[n].value]]):"bool"===K(e.param).type?(B(),u("ul",C$,[c("li",S$,[c("ul",null,[c("li",I$,[re((B(),u("ul",D$,[re((B(),u("li",{class:C({"wf-active":O[n].value,"wf-center":!0}),tabindex:"0",onClick:ce(e=>O[n].value=!0,["stop","prevent"]),onKeydown:ue(ce(e=>O[n].value=!0,["stop","prevent"]),["space"])},[f(Y(J(a)("Yes")),1)],42,M$)),[[s,{role:"radio",checked:O[n].value}]]),re((B(),u("li",{class:C({"wf-active":!O[n].value,"wf-center":!0}),tabindex:"0",onClick:ce(e=>O[n].value=!1,["stop","prevent"]),onKeydown:ue(ce(e=>O[n].value=!1,["stop","prevent"]),["space"])},[f(Y(J(a)("No")),1)],42,T$)),[[s,{role:"radio",checked:!O[n].value}]])])),[[s,{role:"radiogroup",label:K(O[n].param).label}]])])])])])):r("",!0)])],64)):r("",!0)]),c("div",null,[re((B(),u("a",{href:"#",onClick:ce(e=>(e=>{O.splice(e,1)})(n),["stop","prevent"]),class:"wf-live-traffic-filter-remove"},[re(c("i",O$,null,512),[[s,{hidden:!0}]])],8,L$)),[[s,{role:"button",label:J(a)("Delete")}]])])])]))),128)),c("div",null,[c("div",B$,[c("button",{type:"button",class:"wf-btn wf-btn-default",onClick:ce(Z,["stop","prevent"])},Y(J(a)("Add Filter")),1)]),ee.value?(B(),u("div",$$,[c("strong",null,Y(J(a)("NOTE"))+":",1),f(" "+Y(J(a)("Live Traffic is currently configured to show only security-related traffic. Filtering to show allowed traffic may not have any results.")),1)])):r("",!0)])]),c("div",P$,[c("div",E$,[c("label",R$,Y(J(a)("Date Range"))+": ",1),c("div",F$,[h(J(VI),{id:"wf-filter-date-range",modelValue:U.value,"onUpdate:modelValue":n[2]||(n[2]=e=>U.value=e),timeConfig:{enableTimePicker:!0,timePickerInline:!0},teleport:!0,"auto-apply":!0,range:!0,"multi-calendars":!0},null,8,["modelValue"])])]),c("div",N$,[c("label",W$,Y(J(a)("Group By"))+": ",1),c("div",H$,[re(c("select",{id:"wf-live-traffic-group-by",class:"wf-lt-advanced-filters-groupby","onUpdate:modelValue":n[3]||(n[3]=e=>H.value=e)},[(B(!0),u(t,null,F(V,e=>(B(),u("option",{key:e.param,value:e.param},Y(e.value),9,V$))),128))],512),[[ne,H.value]])])])])]),re((B(),u("div",U$,[...n[11]||(n[11]=[c("div",{id:"wf-live-traffic-filtering-bar-pill"},null,-1)])])),[[d,se.value]])])):r("",!0)]),_:1})])]),c("div",Y$,[c("div",K$,["none"!==H.value?(B(),u("div",j$,[c("ul",G$,[(B(!0),u(t,null,F(J(o).livetraffic.entries,(e,t)=>(B(),i(J(pB),{entry:Me(e),entryIndex:t,groupBy:H.value,key:e.id},null,8,["entry","entryIndex","groupBy"]))),128))])])):(B(),u("div",Q$,[c("table",q$,[c("thead",null,[c("tr",null,[c("th",null,Y(J(a)("Type")),1),c("th",null,Y(J(a)("Location")),1),c("th",null,Y(J(a)("Page Visited")),1),c("th",null,Y(J(a)("Time")),1),c("th",null,Y(J(a)("IP Address")),1),c("th",null,Y(J(a)("Hostname")),1),c("th",null,Y(J(a)("Response")),1),c("th",null,Y(J(a)("View")),1)])]),c("tbody",Z$,[(B(!0),u(t,null,F(J(o).livetraffic.entries,(e,t)=>(B(),i(J(pB),{entry:e,entryIndex:t,groupBy:H.value,highlighted:J(o).livetraffic.recent.includes(e.id),key:e.id},null,8,["entry","entryIndex","groupBy","highlighted"]))),128))])])])),0===J(o).livetraffic.entries.length?(B(),u("div",J$,Y(J(a)("No requests to report yet.")),1)):(B(),u("div",{key:3,ref_key:"paginationSentinel",ref:pe,"aria-hidden":"true",style:{height:"1px"}},null,512))])])])])])])])])],2),h(J(sy),{showDrawer:!!k.value,onCloseDrawer:Le,id:"wf-live-traffic-drawer"},{default:ie(()=>[c("div",z$,[h(J(LO),{entry:k.value},null,8,["entry"])]),c("div",X$,[!1!==_.value?(B(),i(J(mB),{key:0,whoisResponse:_.value},null,8,["whoisResponse"])):!1!==S.value?(B(),i(J(TB),{key:1,recentTrafficResponse:S.value},null,8,["recentTrafficResponse"])):r("",!0)])]),_:1},8,["showDrawer"])],64)}}},tP={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("Live traffic defaults to a summary view of all security-related traffic. Details are viewable by clicking anywhere within the summary record. To switch to the expanded view, click the Expand All Records switch.")),1))}},aP={__name:"LiveTrafficNewTour",setup(e){const t=b("__"),n=b("wfconstants"),l=R(!1),s=R(0);$("tourName",n.tour.types.livetraffic),T(()=>{n.tour.new.livetraffic&&(l.value=!0)});const o=[{title:t("Live Traffic"),content:tP,anchor:{selector:"#wf-live-traffic",pointer:{edge:"bottom",align:"bottom"}}}],r=()=>{n.tour.new.livetraffic=!1,l.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:l.value},null,8,["show"]),h(J(Fn),{show:l.value,selectedIndex:s.value,slides:o,onCloseTour:r},null,8,["show","selectedIndex"])]))}},nP=["href"],lP={__name:"NewTour1",setup(e){const a=b("__"),n=b("wfconstants");return(e,l)=>(B(),u(t,null,[c("p",null,Y(J(a)("We are excited to announce the release of a completely rebuilt two-factor authentication (2FA) feature within Wordfence. 2FA is an important layer of security that protects you from password guessing and credential stuffing attacks. Previously a Premium-only feature, it is now available for sites running the free version of Wordfence. You are now able to enable 2FA for any role, we’ve added a number of important security features, and we’ve significantly improved the admin interface.")),1),c("p",null,[c("a",{href:J(n).support.url.module_login_security_2fa,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Learn More")),1),h(J(Kn))],8,nP)])],64))}},sP={__name:"NewTour2",setup(e){const t=b("__");return(e,a)=>(B(),u("div",null,[c("p",null,Y(J(t)("Two-factor authentication now has its own IP allowlist. If necessary, you can allow specific IP addresses or ranges to skip 2FA when logging in.")),1)]))}},oP=["href"],iP={__name:"NewTour3",setup(e){const t=b("__"),a=b("wfconstants");return(e,n)=>(B(),u("div",null,[c("p",null,Y(J(t)("Wordfence now includes the option to enable Google reCaptcha v3 on your WordPress login and registration pages. This adds a powerful new layer of protection against password guessing and credential stuffing attacks from bots without slowing down real users.")),1),c("p",null,[c("a",{href:J(a).support.url.module_login_security_captcha,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(t)("Learn More")),1),h(J(Kn))],8,oP)])]))}},rP={__name:"LoginSecurityNewTour",setup(e){const t=b("__"),n=b("$"),l=b("wfconstants"),s=R(!1),o=R(0);$("tourName",l.tour.types.loginsecurity),T(()=>{n("#settings").hasClass("wfls-active")?u("settings"):n(window).on("wfls-tab-change",r)}),D(()=>{n(window).off("wfls-tab-change",r)});const r=(e,t)=>{u(t)},u=e=>{"settings"===e&&l.tour.new.loginsecurity&&(l.tour.new.loginsecurity=!1,s.value=!0)},c=[{title:t("Introducing the New Wordfence 2FA"),content:lP,anchor:{selector:"#wfls-tab-manage",pointer:{edge:"top",align:"left"}}},{title:t("Individual Allowlisting"),content:sP,anchor:{selector:"#wfls-option-whitelisted",pointer:{edge:"bottom",align:"right"}}},{title:t("New Login Page Captcha Feature"),content:iP,anchor:{selector:"#wfls-option-enable-auth-captcha",pointer:{edge:"bottom",align:"left"}}}],d=()=>{l.tour.new.loginsecurity=!1,s.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:s.value},null,8,["show"]),h(J(Fn),{show:s.value,selectedIndex:o.value,slides:c,onCloseTour:d},null,8,["show","selectedIndex"])]))}},uP={class:"wf-onboarding-registration-prompt"},cP={key:0,class:"wf-onboarding-install-new wf-onboarding-install-type"},dP=["href"],pP=["data-attempt","data-option-value-emails","data-option-value-license"],fP={class:"wf-onboarding-form-group"},hP={for:"wf-onboarding-email-input"},mP=["title"],gP={class:"wf-onboarding-form-group"},wP={for:"wf-onboarding-license-input"},vP={key:0,class:"wf-onboarding-form-group wf-onboarding-consent-group"},yP={id:"wf-onboarding-subscription-options-label"},bP={class:"wf-onboarding-subscription-options"},AP={class:"wf-switch"},kP={key:0,class:"wf-onboarding-subscription-option-required"},_P=["disabled"],xP={key:0},CP=["href"],SP={__name:"RegistrationPrompt",props:{attempt:{type:Number,default:1},existing:{type:Boolean,default:!1},processing:{type:Boolean,default:!1},email:{type:[String,null],default:null},license:{type:[String,null],default:null}},emits:"installLicense",setup(e,{emit:a}){const l=b("__"),o=b("wfconstants"),{$hasHash:i}=dn(),d=a,p=e,m=R(!1),g=R(""),w=R(""),v=R("none"),y=R(!1);T(()=>{g.value=p.email??"",w.value=p.license??"",i("installExisting")?(m.value=!0,history.replaceState("",document.title,window.location.pathname+window.location.search)):m.value=p.existing});const A=s(()=>p.existing&&p.email&&p.license),k=e=>{v.value=e,y.value=!1},_=()=>{let e={email:g.value,license:w.value};if(!A.value){if("none"===v.value)return void(y.value=!0);e.subscription=v.value}d("installLicense",e)};return(a,s)=>{const i=W("aria");return B(),u("div",uP,[c("p",null,[m.value?(B(),u(t,{key:0},[f(Y(J(l)("Install your license to finish activating Wordfence.")),1)],64)):(B(),u(t,{key:1},[f(Y(J(l)("Register with Wordfence to secure your site with the latest threat intelligence.")),1)],64))]),m.value?r("",!0):(B(),u("div",cP,[c("div",null,[c("a",{class:"wf-btn wf-btn-primary wf-onboarding-register",href:J(o).plugin.onboarding.registration_link,target:"_blank"},Y(J(l)("Get Your Wordfence License")),9,dP)]),c("div",null,[c("a",{class:"wf-onboarding-install-type-toggle",href:"#",onClick:s[0]||(s[0]=ce(e=>m.value=!0,["stop","prevent"]))},Y(J(l)("Install an existing license")),1)])])),m.value?(B(),u("div",{key:1,class:"wf-onboarding-install-existing wf-onboarding-install-type","data-attempt":e.attempt,"data-option-value-emails":J(o).plugin.onboarding.stages.emails,"data-option-value-license":J(o).plugin.onboarding.stages.license},[c("form",{class:"wf-onboarding-form",onSubmit:ce(_,["prevent"])},[c("div",fP,[c("label",hP,Y(J(l)("Email")),1),re(c("input",{id:"wf-onboarding-email-input",type:"email","onUpdate:modelValue":s[1]||(s[1]=e=>g.value=e),pattern:"^[^@\\s]+@[^@\\s]+\\.[^@\\s]+$",title:J(l)("Please enter a valid email address"),required:""},null,8,mP),[[le,g.value]]),c("small",null,Y(J(l)("This is where future security alerts for your website will be sent. This can also be changed in Global Options.")),1)]),c("div",gP,[c("label",wP,Y(J(l)("License Key"))+" — "+Y(J(l)("each Wordfence installation should have a unique key")),1),re(c("textarea",{id:"wf-onboarding-license-input",rows:"3","onUpdate:modelValue":s[2]||(s[2]=e=>w.value=e),required:""},null,512),[[le,w.value]])]),A.value?r("",!0):(B(),u("div",vP,[c("label",yP,Y(J(l)("Would you like WordPress security and vulnerability alerts sent to you via email?")),1),re((B(),u("div",bP,[c("ul",AP,[re((B(),u("li",{class:C({"wf-active":!0===v.value}),"data-value":!0,tabindex:"0",onClick:s[3]||(s[3]=ce(e=>k(!0),["stop","prevent"]))},[f(Y(J(l)("Yes")),1)],2)),[[i,{role:"radio",checked:!0===v.value}]]),re((B(),u("li",{class:C({"wf-active":!1===v.value}),"data-value":!1,tabindex:"0",onClick:s[4]||(s[4]=ce(e=>k(!1),["stop","prevent"]))},[f(Y(J(l)("No")),1)],2)),[[i,{role:"radio",checked:!1===v.value}]])]),h(n,{name:"wf-fade"},{default:ie(()=>[y.value?(B(),u("small",kP,Y(J(l)('You must select either "Yes" or "No"')),1)):r("",!0)]),_:1})])),[[i,{role:"radiogroup",labelledby:"wf-onboarding-subscription-options-label"}]])])),c("button",{class:"wf-btn wf-btn-primary wf-onboarding-install-license",type:"submit",disabled:e.processing||!g.value||!w.value,onClick:ce(_,["stop","prevent"])},Y(J(l)("Install License")),9,_P)],32),A.value?r("",!0):(B(),u("div",xP,[c("a",{class:"wf-onboarding-link",href:J(o).plugin.onboarding.registration_link,target:"_blank"},Y(J(l)("Get a new license")),9,CP)]))],8,pP)):r("",!0)])}}},IP={class:"wf-padding-add-left-small wf-modal-header-action-close"},DP=["href"],MP={class:"wf-fa wf-fa-times-circle"},TP={key:0,id:"wf-onboarding-final-attempt-1",class:"wf-onboarding-modal-content"},LP={key:1,id:"wf-onboarding-final-attempt-2",class:"wf-onboarding-modal-content"},OP={id:"wf-onboarding-license"},BP=["placeholder"],$P={id:"wf-onboarding-or"},PP={id:"wf-onboarding-premium-cta"},EP={id:"wf-onboarding-license-footer"},RP={href:"https://www.wordfence.com/gnl1onboardingFinalGet/wordfence-signup/#premium-order-form",class:"wf-onboarding-btn wf-onboarding-btn-primary",id:"wf-onboarding-get",target:"_blank",rel:"noopener noreferrer"},FP={href:"https://www.wordfence.com/gnl1onboardingFinalLearn/wordfence-signup/",class:"wf-onboarding-btn wf-onboarding-btn-default",id:"wf-onboarding-learn",target:"_blank",rel:"noopener noreferrer"},NP="final-onboarding-modal",WP={__name:"FinalOnboardingModal",props:{show:{type:Boolean,default:!1}},setup(e){const a=b("$"),l=b("__"),s=b("$mitt"),o=b("wfconstants"),{$ajax:d,$ajaxErrorMessage:p}=In(),{$modal:m}=Hn(),{$setOption:g}=Vn();$("modalName",NP);const w=e,v=R(""),y=R(!1),A=R(!1),k=(e,t,a)=>{const n=(t,a,n)=>d("wordfence_installLicense",{license:e,status_change:t},a,n);n(!1,e=>{e.success?n(!0,()=>{"function"==typeof t&&t(e)},a):"function"==typeof a&&a(e)},a)},_=R(!1);oe(()=>w.show,e=>{e&&(v.value="",y.value=!1,A.value=!1,_.value=!1)});const x=e=>{y.value=!1,A.value=!1,_.value=!0,k(e.license,t=>{g("onboardingAttempt3",o.plugin.onboarding.stages.license,a=>{((e,a)=>{let n=1+(a?1:0),l=!1,i=!1;const r=e=>{i||(0===--n||l)&&(i=!0,(e=>{if(!e)return s.emit("closeModal",NP),m("onboarding-license-failure-modal"),void(_.value=!1);let a=t.isPaid?o.license.types.premium:o.license.types.free;!t.isPaid||t.type!==o.license.types.care&&t.type!==o.license.types.response||(a=t.type),s.emit("closeModal",NP),m("onboarding-license-type-success-modal",{licenseType:a,showInUse:t.inUse}),_.value=!1})(!l,e.error))},u=()=>{l=!0,r({})};g("alertEmails",e.join(", "),r,u),a&&d("wordfence_mailingSignup",{emails:JSON.stringify(e)},r,u)})([e.email],e.subscription)},()=>{s.emit("closeModal",NP),m("onboarding-license-failure-modal"),_.value=!1})},e=>{s.emit("closeModal",NP),m("onboarding-license-failure-modal"),_.value=!1})},S=()=>{v.value&&(y.value=!1,A.value=!1,k(v.value,e=>{e.isPaid?(g("onboardingAttempt3",o.plugin.onboarding.stages.license),a("#wf-onboarding-banner").slideUp(),s.emit("closeModal",NP),m("onboarding-license-type-success-modal",{licenseType:o.license.types.premium})):y.value="free"},e=>{A.value=p(e,!1)??!0}))},I=()=>{o.plugin.onboarding.attempts[3]===o.plugin.onboarding.stages.emails&&(g("onboardingAttempt3",o.plugin.onboarding.stages.license),a("#wf-onboarding-banner").slideUp()),s.emit("closeModal",NP)};return(a,s)=>{const d=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,noX:!0,noFooter:!0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(l)("Please Complete Wordfence Installation")),1)]),headerAction:ie(()=>[c("div",IP,[c("a",{href:J(o).plugin.url.dashboard,onClick:ce(I,["stop","prevent"])},[re(c("i",MP,null,512),[[d,{hidden:!0}]])],8,DP)])]),body:ie(()=>[J(o).plugin.onboarding.attempts[3]!==J(o).plugin.onboarding.stages.emails?(B(),u("div",TP,[h(J(SP),{attempt:3,processing:_.value,onInstallLicense:x},null,8,["processing"])])):(B(),u("div",LP,[c("h3",null,Y(J(l)("Activate Premium")),1),c("p",null,Y(J(l)("Enter your premium license key to enable real-time protection for your website.")),1),h(n,{name:"wf-fade"},{default:ie(()=>[!1!==y.value||!1!==A.value?(B(),u("div",{key:0,id:"wf-onboarding-license-status",class:C({"wf-green-dark":"premium"===y.value,"wf-yellow-dark":"free"===y.value,"wf-red-dark":!1!==A.value})},["free"===y.value?(B(),u(t,{key:0},[f(Y(J(l)("You have successfully installed a free license.")),1)],64)):!0===A.value?(B(),u(t,{key:1},[f(Y(J(l)("An unknown error occurred.")),1)],64)):A.value?(B(),u(t,{key:2},[f(Y(A.value),1)],64)):r("",!0)],2)):r("",!0)]),_:1}),c("div",OP,[re(c("input",{type:"text",placeholder:J(l)("Enter Premium Key"),"onUpdate:modelValue":s[0]||(s[0]=e=>v.value=e)},null,8,BP),[[le,v.value]]),re((B(),u("a",{href:"#",class:C(["wf-onboarding-btn wf-onboarding-btn-primary",{"wf-disabled":!v.value}]),id:"wf-onboarding-license-install",onClick:ce(S,["stop","prevent"])},[f(Y(J(l)("Install")),1)],2)),[[d,{role:"button",disabled:!v.value}]])]),c("div",$P,[c("span",null,Y(J(l)("or")),1)]),c("p",PP,Y(J(l)("If you don't have one, you can purchase one now.")),1),c("div",EP,[c("ul",null,[c("li",null,[c("a",RP,[f(Y(J(l)("Upgrade to Premium")),1),h(J(Kn))])]),c("li",null,[c("a",FP,[f(Y(J(l)("Learn More")),1),h(J(Kn))])]),c("li",null,[re((B(),u("a",{href:"#",id:"wf-onboarding-no-thanks",onClick:ce(I,["stop","prevent"])},[f(Y(J(l)("No Thanks")),1)])),[[d,{role:"button"}]])])])])]))]),_:1})):r("",!0)]),_:1})}}},HP={__name:"OnboardingModals",props:{allowOnboardingAutoOpen:{type:Boolean,default:!0}},setup(e){const t=b("$mitt"),a=b("wfconstants"),{$hasOwn:n}=cn(),l=e,o=P({"final-onboarding-modal":{show:!1,configurator:e=>{}}}),i=s(()=>Object.values(o).some(e=>e.show));T(()=>{t.on("showModal",r),t.on("closeModal",c),l.allowOnboardingAutoOpen&&a.plugin.onboarding.should_show[3]&&x(()=>{t.emit("showModal",{name:"final-onboarding-modal"})})}),D(()=>{t.off("showModal",r),t.off("closeModal",c)});const r=e=>{for(const t of Object.keys(o))t!==e.name&&o[t].show&&(o[t].show=!1);n(o,e.name)&&(o[e.name].configurator(e),o[e.name].show=!0)},c=e=>{n(o,e)&&(o[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:i.value},null,8,["show"]),h(J(WP),{show:o["final-onboarding-modal"].show},null,8,["show"])]))}},VP={class:"wf-row"},UP={class:"wf-col-xs-12"},YP={class:"wf-block-list"},KP={key:0},jP={__name:"OptionsGroupAuditLog",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0},showControls:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},tabIndex:{type:Number,default:0},hideShowMenuItem:{type:Boolean,default:!1}},setup(e){const a=b("__"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn();return(o,d)=>(B(),i(J(_h),{stateKey:e.stateKey,collapseable:e.collapseable,disabled:e.disabled,tabIndex:e.tabIndex},{title:ie(()=>[f(Y(J(a)("Audit Log Options")),1)]),default:ie(()=>[e.showControls?(B(),u(t,{key:0},[c("p",null,[h(J(Ep),{allowedTags:["b","strong"],unsafeHTML:J(a)('These options let you choose which site events to record in the audit log. When enabled and your site is connected to Wordfence Central, these events are automatically sent to Central to prevent any tampering by an attacker. When <strong>Audit Log logging mode</strong> is set to "Significant Events", all events except content changes will be recorded. "All Events" will include content-related events and may be used to monitor for unauthorized post or page changes. "Preview" and "Disabled" modes do not send any events to Central.')},null,8,["unsafeHTML"])]),c("div",VP,[c("div",UP,[h(J(sO),{suppressLogo:!0,section:J(n).options.section.auditlog,sectionTitle:J(a)("Audit Log")},null,8,["section","sectionTitle"])])])],64)):r("",!0),c("ul",YP,[c("li",null,[h(J(cM),{optionName:"auditLogMode",value:J(l).$options.auditLogMode,title:J(a)("Audit Log logging mode"),states:[{value:J(n).auditlog.modes.disabled,label:J(a)("Disabled")},{value:J(n).auditlog.modes.preview,label:J(a)("Preview"),disabled:J(n).auditlog.wpTooOld},{value:J(n).auditlog.modes.significant,label:J(a)("Significant Events"),xs:J(a)("Significant"),disabled:J(n).auditlog.wpTooOld},{value:J(n).auditlog.modes.all,label:J(a)("All Events"),xs:J(a)("All"),disabled:J(n).auditlog.wpTooOld}],helpLink:J(n).support.url.tools_audit_log_option_enable,alignment:"right",noSpacer:!0,onChange:d[0]||(d[0]=e=>J(s)("auditLogMode",e.new,J(l).$options.auditLogMode))},null,8,["value","title","states","helpLink"])]),e.hideShowMenuItem?r("",!0):(B(),u("li",KP,[h(J(Xh),{optionName:"displayTopLevelAuditLog",value:J(l).$options.displayTopLevelAuditLog,enabledValue:!0,disabledValue:!1,title:J(a)("Display Audit Log menu option"),onChange:d[1]||(d[1]=e=>J(s)("displayTopLevelAuditLog",e.new,J(l).$options.displayTopLevelAuditLog))},null,8,["value","title"])]))])]),_:1},8,["stateKey","collapseable","disabled","tabIndex"]))}},GP={key:0,class:"wf-block-list"},QP={class:"wf-option wf-option-bypass-redirect"},qP={class:"wf-option-content"},ZP={class:"wf-option-title"},JP=["href"],zP={class:"wf-fa wf-fa-question-circle-o"},XP={class:"wf-option-fields"},eE={class:"wf-full-width"},tE={class:"wf-right wf-padding-add-right"},aE={id:"wf-option-cbl-bypassRedirURL",class:"wf-option-text"},nE=["placeholder"],lE={class:"wf-right wf-padding-add-right wf-padding-add-top-small"},sE={id:"wf-option-cbl-bypassRedirDest",class:"wf-option-text wf-padding-add-top-small"},oE=["placeholder"],iE={class:"wf-padding-add-top-small"},rE={id:"wf-option-cbl-bypassViewURL",class:"wf-option wf-option-bypass-cookie"},uE={class:"wf-option-content"},cE={class:"wf-option-title"},dE=["href"],pE={class:"wf-fa wf-fa-question-circle-o"},fE={class:"wf-option-fields"},hE={class:"wf-full-width"},mE={class:"wf-right wf-padding-add-right"},gE={class:"wf-option-text"},wE=["placeholder"],vE={colspan:"2",class:"wf-right wf-padding-add-top-small"},yE={key:1,class:"wf-flex-vertical wf-padding-add-right-large wf-padding-add-bottom-large"},bE={class:"wf-no-top"},AE={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1countryBlockUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},kE={__name:"OptionsGroupCountryAdvanced",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$isPaid:s}=Qs(),{$updatePendingValue:o}=Vn(),{stateKey:r,collapseable:d}=Q(e);T(()=>{a.on("resetOptionControls",p)}),D(()=>{a.off("resetOptionControls",p)});const p=()=>{},{$pendingValue:m}=li("cbl_bypassRedirURL",l.$options.cbl_bypassRedirURL);oe(m,e=>{o("cbl_bypassRedirURL",e,l.$options.cbl_bypassRedirURL)},{deep:!0});const{$pendingValue:g}=li("cbl_bypassRedirDest",l.$options.cbl_bypassRedirDest);oe(g,e=>{o("cbl_bypassRedirDest",e,l.$options.cbl_bypassRedirDest)},{deep:!0});const{$pendingValue:w}=li("cbl_bypassViewURL",l.$options.cbl_bypassViewURL);return oe(w,e=>{o("cbl_bypassViewURL",e,l.$options.cbl_bypassViewURL)},{deep:!0}),si({cbl_bypassRedirURL:"wf-option-cbl-bypassRedirURL",cbl_bypassRedirDest:"wf-option-cbl-bypassRedirDest",cbl_bypassViewURL:"wf-option-cbl-bypassViewURL"},r),(e,a)=>{const p=W("aria");return B(),i(J(_h),{stateKey:J(r),collapseable:J(d)},{title:ie(()=>[f(Y(J(t)("Advanced Country Blocking Options")),1)]),default:ie(()=>[J(s)?(B(),u("ul",GP,[c("li",null,[h(J(AM),{optionName:"cbl_action",value:J(l).$options.cbl_action,title:J(t)("What to do when we block someone"),helpLink:J(n).support.url.firewall_blocking_option_what_to_do,onChange:a[0]||(a[0]=e=>J(o)("cbl_action",e.new,J(l).$options.cbl_action)),selectOptions:[{value:"block",label:J(t)("Show the standard Wordfence blocked message")},{value:"redir",label:J(t)("Redirect to the URL below")}]},null,8,["value","title","helpLink","selectOptions"])]),c("li",null,[h(J(ym),{optionName:"cbl_redirURL",value:J(l).$options.cbl_redirURL,title:J(t)("URL to redirect blocked users to"),placeholder:J(t)("Enter a full URL (e.g., http://example.com/blocked/)"),helpLink:J(n).support.url.firewall_blocking_option_redirect,onChange:a[1]||(a[1]=e=>J(o)("cbl_redirURL",e.new,J(l).$options.cbl_redirURL))},null,8,["value","title","placeholder","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"cbl_loggedInBlocked",value:J(l).$options.cbl_loggedInBlocked,enabledValue:!0,disabledValue:!1,title:J(t)("Block countries even if they are logged in"),helpLink:J(n).support.url.firewall_blocking_option_block_logged_in,onChange:a[2]||(a[2]=e=>J(o)("cbl_loggedInBlocked",e.new,J(l).$options.cbl_loggedInBlocked))},null,8,["value","title","helpLink"])]),c("li",null,[c("ul",QP,[a[7]||(a[7]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",qP,[c("ul",null,[c("li",ZP,[f(Y(J(t)("Bypass Redirect"))+" ",1),c("a",{href:J(n).support.url.firewall_blocking_bypass_redirect,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",zP,null,512),[[p,{hidden:!0}]]),h(J(Kn))],8,JP)]),c("li",XP,[c("table",eE,[c("tr",null,[c("td",tE,Y(J(t)("If user hits the relative URL")),1),c("td",aE,[re(c("input",{id:"wf-bypass-redir-url",type:"text","onUpdate:modelValue":a[3]||(a[3]=e=>A(m)?m.value=e:null),placeholder:J(t)("/bypassurl/")},null,8,nE),[[le,J(m)]])])]),c("tr",null,[c("td",lE,Y(J(t)("then redirect that user to")),1),c("td",sE,[re(c("input",{id:"wf-bypass-redir-dest",type:"text","onUpdate:modelValue":a[4]||(a[4]=e=>A(g)?g.value=e:null),placeholder:J(t)("/page-name/")},null,8,oE),[[le,J(g)]])])]),c("tr",null,[a[6]||(a[6]=c("td",null,null,-1)),c("td",iE,Y(J(t)("and set a cookie that will bypass all country blocking.")),1)])])])])])])]),c("li",null,[c("ul",rE,[a[8]||(a[8]=c("li",{class:"wf-option-spacer"},null,-1)),c("li",uE,[c("ul",null,[c("li",cE,[f(Y(J(t)("Bypass Cookie"))+" ",1),c("a",{href:J(n).support.url.firewall_blocking_bypass_cookie,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",pE,null,512),[[p,{hidden:!0}]]),h(J(Kn))],8,dE)]),c("li",fE,[c("table",hE,[c("tr",null,[c("td",mE,Y(J(t)("If user who is allowed to access the site views the relative URL")),1),c("td",gE,[re(c("input",{id:"wf-bypass-view-url",type:"text","onUpdate:modelValue":a[5]||(a[5]=e=>A(w)?w.value=e:null),placeholder:J(t)("/set-country-bypass/")},null,8,wE),[[le,J(w)]])])]),c("tr",null,[c("td",vE,Y(J(t)("then set a cookie that will bypass country blocking in the future in case that user hits the site from a blocked country.")),1)])])])])])])])])):(B(),u("ul",yE,[c("li",null,[c("h3",null,Y(J(t)("Put Geographic Protection In Place With Country Blocking")),1)]),c("li",null,[c("p",bE,Y(J(t)("Wordfence country blocking is designed to stop an attack, prevent content theft, or end malicious activity that originates from a geographic region in less than 1/300,000th of a second. Blocking countries who are regularly creating failed logins, a large number of page not found errors, and are clearly engaged in malicious activity is an effective way to protect your site during an attack.")),1)]),c("li",null,[h(J(js))]),c("li",null,[c("a",AE,[f(Y(J(t)("Upgrade to Premium")),1),h(J(Kn))])])]))]),_:1},8,["stateKey","collapseable"])}}},_E={class:"wf-block-list"},xE={__name:"OptionsGroupDiagnostics",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn(),{stateKey:o,collapseable:r}=Q(e);T(()=>{a.on("resetOptionControls",u)}),D(()=>{a.off("resetOptionControls",u)});const u=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(o),collapseable:J(r)},{title:ie(()=>[f(Y(J(t)("Debugging Options")),1)]),default:ie(()=>[c("ul",_E,[c("li",null,[h(J(Xh),{optionName:"debugOn",value:J(l).$options.debugOn,enabledValue:!0,disabledValue:!1,title:J(t)("Enable debugging mode (increases database load)"),helpLink:J(n).support.url.diagnostics_option_debugging_mode,onChange:a[0]||(a[0]=e=>J(s)("debugOn",e.new,J(l).$options.debugOn))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"startScansRemotely",value:J(l).$options.startScansRemotely,enabledValue:!0,disabledValue:!1,title:J(t)("Start all scans remotely (Try this if your scans aren't starting and your site is publicly accessible)"),helpLink:J(n).support.url.diagnostics_option_remote_scans,onChange:a[1]||(a[1]=e=>J(s)("startScansRemotely",e.new,J(l).$options.startScansRemotely))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"ssl_verify",value:J(l).$options.ssl_verify,enabledValue:!0,disabledValue:!1,title:J(t)("Enable SSL Verification (Disable this if you are consistently unable to connect to the Wordfence servers.)"),helpLink:J(n).support.url.diagnostics_option_ssl_verification,onChange:a[2]||(a[2]=e=>J(s)("ssl_verify",e.new,J(l).$options.ssl_verify))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"avoid_php_input",value:J(l).$options.avoid_php_input,enabledValue:!0,disabledValue:!1,title:J(t)("Disable reading of php://input"),helpLink:J(n).support.url.diagnostics_option_disable_php_input,onChange:a[3]||(a[3]=e=>J(s)("avoid_php_input",e.new,J(l).$options.avoid_php_input))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"wordfenceI18n",value:J(l).$options.wordfenceI18n,enabledValue:!0,disabledValue:!1,title:J(t)("Enable Wordfence translations"),helpLink:J(n).support.url.diagnostics_option_wordfence_translations,onChange:a[4]||(a[4]=e=>J(s)("wordfenceI18n",e.new,J(l).$options.wordfenceI18n))},null,8,["value","title","helpLink"])]),c("li",null,[c("p",null,[h(J(Ev),{section:J(n).options.section.diagnostics,sectionTitle:J(t)("Diagnostics")},null,8,["section","sectionTitle"])])])])]),_:1},8,["stateKey","collapseable"]))}},CE={class:"wf-block-list"},SE={__name:"OptionsGroupGeneralBlocking",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("$dataStore"),{$updatePendingValue:l}=Vn(),{stateKey:s,collapseable:o}=Q(e);T(()=>{a.on("resetOptionControls",r)}),D(()=>{a.off("resetOptionControls",r)});const r=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(s),collapseable:J(o)},{title:ie(()=>[f(Y(J(t)("General")),1)]),default:ie(()=>[c("ul",CE,[c("li",null,[h(J(Xh),{optionName:"displayTopLevelBlocking",value:J(n).$options.displayTopLevelBlocking,enabledValue:!0,disabledValue:!1,title:J(t)("Display Blocking menu option"),onChange:a[0]||(a[0]=e=>J(l)("displayTopLevelBlocking",e.new,J(n).$options.displayTopLevelBlocking))},null,8,["value","title"])])])]),_:1},8,["stateKey","collapseable"]))}},IE={class:"wf-block-list"},DE={id:"wf-option-exportOptions",class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width wf-add-top wf-add-bottom"},ME=["href"],TE={class:"wf-fa wf-fa-question-circle-o"},LE={class:"wf-right wf-left-xs wf-padding-add-top-xs-small"},OE={id:"wf-option-importOptions",class:"wf-flex-vertical wf-flex-full-width wf-add-bottom"},BE={class:"wf-option wf-option-text"},$E={class:"wf-option-content"},PE={class:"wf-option-title"},EE=["href"],RE={class:"wf-fa wf-fa-question-circle-o"},FE={class:"wf-option-text wf-option-full-width wf-no-right"},NE={class:"wf-flex-horizontal wf-flex-full-width"},WE={class:"wf-right wf-left-xs",id:"wf-license-controls"},HE={__name:"OptionsGroupImport",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("wfconstants"),{$ajax:n,$ajaxErrorMessage:l}=In(),{$modal:o}=Hn(),{stateKey:r,collapseable:d}=Q(e),p=R(""),m=s(()=>{let e=[];return e.push("wf-btn"),e.push("wf-btn-primary"),e.push("wf-btn-callout-subtle"),p.value||e.push("wf-disabled"),e}),g=()=>{n("wordfence_exportSettings",{},e=>{e.ok&&e.token&&o("options-export-success-modal",{token:e.token})},e=>{o("options-export-error-modal",{message:l(e)})})},w=()=>{p.value&&n("wordfence_importSettings",{token:p.value},e=>{e.ok&&o("options-import-success-modal")},e=>{o("options-import-error-modal",{message:l(e)})})};return si({exportOptions:"wf-option-exportOptions",importOptions:"wf-option-importOptions"},r),(e,n)=>{const l=W("aria");return B(),i(J(_h),{stateKey:J(r),collapseable:J(d)},{title:ie(()=>[f(Y(J(t)("Import/Export Options")),1)]),default:ie(()=>[c("ul",IE,[c("li",null,[c("ul",DE,[c("li",null,[f(Y(J(t)("Export this site's Wordfence options for import on another site"))+" ",1),c("a",{href:J(a).support.url.dashboard_option_export,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",TE,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,ME)]),c("li",LE,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-primary wf-btn-callout-subtle",id:"wf-export-options",onClick:ce(g,["stop","prevent"])},[h(J(Vs),{text:J(t)("Export Wordfence Options"),xs:J(t)("Export Options")},null,8,["text","xs"])])),[[l,{role:"button"}]])])])]),c("li",null,[c("ul",OE,[c("li",null,[c("ul",BE,[c("li",$E,[c("ul",null,[c("li",PE,[f(Y(J(t)("Import Wordfence options from another site using a token"))+" ",1),c("a",{href:J(a).support.url.dashboard_option_import,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",RE,null,512),[[l,{hidden:!0}]]),h(J(Kn))],8,EE)]),c("li",FE,[re(c("input",{type:"text",value:"",id:"wf-import-token","onUpdate:modelValue":n[0]||(n[0]=e=>p.value=e)},null,512),[[le,p.value]])])])])])]),c("li",null,[c("ul",NE,[c("li",WE,[re((B(),u("a",{href:"#",class:C(m.value),id:"wf-import-options",onClick:ce(w,["stop","prevent"])},[h(J(Vs),{text:J(t)("Import Wordfence Options"),xs:J(t)("Import Options")},null,8,["text","xs"])],2)),[[l,{role:"button"}]])])])])])])])]),_:1},8,["stateKey","collapseable"])}}},VE={class:"wf-block-list"},UE={__name:"OptionsGroupScanAdvanced",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:o}=Vn(),{stateKey:r,collapseable:u}=Q(e);T(()=>{a.on("resetOptionControls",d)}),D(()=>{a.off("resetOptionControls",d)});const d=()=>{},p=s(()=>{let e=[{value:0,label:t("0 (Disabled)")}];for(let t=1;t<=n.scanner.limit.max_resume_attempts;t++)e.push({value:t,label:`${t}`});return e});return(e,a)=>(B(),i(J(_h),{stateKey:J(r),collapseable:J(u)},{title:ie(()=>[f(Y(J(t)("Advanced Scan Options")),1)]),default:ie(()=>[c("ul",VE,[c("li",null,[h(J(_w),{optionName:"scan_exclude",value:J(l).$options.scan_exclude,title:J(t)("Exclude files from scan that match these wildcard patterns (one per line)"),helpLink:J(n).support.url.scan_option_exclude_patterns,noSpacer:!0,onChange:a[0]||(a[0]=e=>J(o)("scan_exclude",e.new,J(l).$options.scan_exclude))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(_w),{optionName:"scan_include_extra",value:J(l).$options.scan_include_extra,title:J(t)("Additional scan signatures (one per line)"),helpLink:J(n).support.url.scan_option_custom_malware_signatures,noSpacer:!0,onChange:a[1]||(a[1]=e=>J(o)("scan_include_extra",e.new,J(l).$options.scan_include_extra))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scan_force_ipv4_start",value:J(l).$options.scan_force_ipv4_start,enabledValue:!0,disabledValue:!1,title:J(t)("Use only IPv4 to start scans"),subtitle:J(t)("This option requires cURL. (This may have no effect on some old PHP or cURL versions.)"),helpLink:J(n).support.url.scan_option_use_only_ipv4,disabled:!J(n).plugin.server.curl.supported,onChange:a[2]||(a[2]=e=>J(o)("scan_force_ipv4_start",e.new,J(l).$options.scan_force_ipv4_start))},null,8,["value","title","subtitle","helpLink","disabled"])]),c("li",null,[h(J(AM),{optionName:"scan_max_resume_attempts",value:J(l).$options.scan_max_resume_attempts,title:J(t)("Maximum number of attempts to resume each scan stage"),helpLink:J(n).support.url.scan_option_max_resume_attempts,onChange:a[3]||(a[3]=e=>J(o)("scan_max_resume_attempts",e.new,J(l).$options.scan_max_resume_attempts)),selectOptions:p.value},null,8,["value","title","helpLink","selectOptions"])])])]),_:1},8,["stateKey","collapseable"]))}},YE={id:"wf-option-scanType",class:"wf-scan-type-controls"},KE={class:"wf-scan-type-selector wf-overflow-x-auto-xs"},jE=["data-original-value"],GE=["data-option-value","data-selected-options"],QE={class:"wf-scan-type-option-name"},qE={class:"wf-option-checkbox",tabindex:"0"},ZE={class:"wf-ion-ios-checkmark-empty"},JE={class:"wf-scan-type-option-description"},zE=["data-option-value","data-selected-options"],XE={class:"wf-scan-type-option-name"},eR={class:"wf-option-checkbox",tabindex:"0"},tR={class:"wf-ion-ios-checkmark-empty"},aR={class:"wf-scan-type-option-description"},nR=["data-option-value","data-selected-options"],lR={class:"wf-scan-type-option-name"},sR={class:"wf-option-checkbox",tabindex:"0"},oR={class:"wf-ion-ios-checkmark-empty"},iR={class:"wf-scan-type-option-description"},rR=["data-option-value"],uR={class:"wf-scan-type-option-name"},cR={class:"wf-scan-type-option-description"},dR={__name:"OptionsGroupScanBasic",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn(),{$hasOwn:o}=cn(),{stateKey:r,collapseable:d}=Q(e);T(()=>{a.on("resetOptionControls",p),a.on("pendingOptionChanged",h)}),D(()=>{a.off("resetOptionControls",p),a.off("pendingOptionChanged",h)});const p=()=>{},h=e=>{if(g.value)return;let t={};switch(m.value){case n.scanner.type.limited:t=n.scanner.type_preset_options.limited;break;case n.scanner.type.standard:t=n.scanner.type_preset_options.standard;break;case n.scanner.type.highsensitivity:t=n.scanner.type_preset_options.highsensitivity}o(t,e.name)&&s("scanType",n.scanner.type.custom,l.$options.scanType)},{$pendingValue:m}=li("scanType",l.$options.scanType),g=R(!1),w=e=>{g.value=!0,s("scanType",e,l.$options.scanType);let t={};switch(e){case n.scanner.type.limited:t=n.scanner.type_preset_options.limited;break;case n.scanner.type.standard:t=n.scanner.type_preset_options.standard;break;case n.scanner.type.highsensitivity:t=n.scanner.type_preset_options.highsensitivity}for(const a in t)s(a,t[a],l.$options[a]);x(()=>{g.value=!1})};return si({scanType:"wf-option-scanType"},r),(e,a)=>{const s=W("aria");return B(),i(J(_h),{stateKey:J(r),collapseable:J(d)},{title:ie(()=>[f(Y(J(t)("Basic Scan Type Options")),1)]),default:ie(()=>[c("ul",YE,[c("li",KE,[re((B(),u("ul",{class:"wf-scan-type","data-option-name":"scanType","data-original-value":J(l).$options.scanType},[c("li",null,[c("ul",{class:C(["wf-scan-type-option",{"wf-active":J(m)===J(n).scanner.type.limited}]),"data-option-value":J(n).scanner.type.limited,"data-selected-options":J(n).scanner.type_preset_options.limited,onClick:a[0]||(a[0]=ce(e=>w(J(n).scanner.type.limited),["stop","prevent"])),onKeydown:a[1]||(a[1]=ue(ce(e=>w(J(n).scanner.type.limited),["stop","prevent"]),["space"]))},[c("li",QE,[re((B(),u("div",qE,[re(c("i",ZE,null,512),[[s,{hidden:!0}]])])),[[s,{role:"radio",checked:J(m)===J(n).scanner.type.limited}]]),c("span",null,Y(J(t)("Limited Scan")),1)]),c("li",JE,Y(J(t)("For entry-level hosting plans. Provides limited detection capability with very low resource utilization.")),1)],42,GE)]),c("li",null,[c("ul",{class:C(["wf-scan-type-option",{"wf-active":J(m)===J(n).scanner.type.standard}]),"data-option-value":J(n).scanner.type.standard,"data-selected-options":J(n).scanner.type_preset_options.standard,onClick:a[2]||(a[2]=ce(e=>w(J(n).scanner.type.standard),["stop","prevent"])),onKeydown:a[3]||(a[3]=ue(ce(e=>w(J(n).scanner.type.standard),["stop","prevent"]),["space"]))},[c("li",XE,[re((B(),u("div",eR,[re(c("i",tR,null,512),[[s,{hidden:!0}]])])),[[s,{role:"radio",checked:J(m)===J(n).scanner.type.standard}]]),c("span",null,Y(J(t)("Standard Scan")),1)]),c("li",aR,Y(J(t)("Our recommendation for all websites. Provides the best detection capability in the industry.")),1)],42,zE)]),c("li",null,[c("ul",{class:C(["wf-scan-type-option",{"wf-active":J(m)===J(n).scanner.type.highsensitivity}]),"data-option-value":J(n).scanner.type.highsensitivity,"data-selected-options":J(n).scanner.type_preset_options.highsensitivity,onClick:a[4]||(a[4]=ce(e=>w(J(n).scanner.type.highsensitivity),["stop","prevent"])),onKeydown:a[5]||(a[5]=ue(ce(e=>w(J(n).scanner.type.highsensitivity),["stop","prevent"]),["space"]))},[c("li",lR,[re((B(),u("div",sR,[re(c("i",oR,null,512),[[s,{hidden:!0}]])])),[[s,{role:"radio",checked:J(m)===J(n).scanner.type.highsensitivity}]]),c("span",null,Y(J(t)("High Sensitivity")),1)]),c("li",iR,Y(J(t)("For site owners who think they may have been hacked. More thorough but may produce false positives.")),1)],42,nR)]),c("li",null,[c("ul",{class:C(["wf-scan-type-option wf-scan-type-option-custom",{"wf-active":J(m)===J(n).scanner.type.custom}]),"data-option-value":J(n).scanner.type.custom},[c("li",uR,[c("span",null,Y(J(t)("Custom Scan")),1)]),c("li",cR,Y(J(t)("Selected automatically when General Options have been customized for this website.")),1)],10,rR)])],8,jE)),[[s,{role:"radiogroup"}]])])])]),_:1},8,["stateKey","collapseable"])}}},pR={class:"wf-block-list"},fR={__name:"OptionsGroupScanGeneral",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("$mitt"),n=b("wfconstants"),l=b("$dataStore"),{$updatePendingValue:s}=Vn(),{stateKey:o,collapseable:r}=Q(e);T(()=>{a.on("resetOptionControls",u)}),D(()=>{a.off("resetOptionControls",u)});const u=()=>{};return(e,a)=>(B(),i(J(_h),{stateKey:J(o),collapseable:J(r)},{title:ie(()=>[f(Y(J(t)("General Options")),1)]),default:ie(()=>[c("ul",pR,[c("li",null,[h(J(Xh),{optionName:"scansEnabled_checkGSB",value:J(l).$options.scansEnabled_checkGSB,enabledValue:!0,disabledValue:!1,title:J(t)("Check if this website is on a domain blocklist"),helpLink:J(n).support.url.scan_option_check_site_blacklisted,premium:!0,onChange:a[0]||(a[0]=e=>J(s)("scansEnabled_checkGSB",e.new,J(l).$options.scansEnabled_checkGSB))},{subtitle:ie(()=>[c("em",null,Y(J(t)("Reputation check")),1)]),_:1},8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"spamvertizeCheck",value:J(l).$options.spamvertizeCheck,enabledValue:!0,disabledValue:!1,title:J(t)('Check if this website is being "Spamvertised"'),helpLink:J(n).support.url.scan_option_check_site_spamvertized,premium:!0,onChange:a[1]||(a[1]=e=>J(s)("spamvertizeCheck",e.new,J(l).$options.spamvertizeCheck))},{subtitle:ie(()=>[c("em",null,Y(J(t)("Reputation check")),1)]),_:1},8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"checkSpamIP",value:J(l).$options.checkSpamIP,enabledValue:!0,disabledValue:!1,title:J(t)("Check if this website IP is generating spam"),helpLink:J(n).support.url.scan_option_check_ip_spamming,premium:!0,onChange:a[2]||(a[2]=e=>J(s)("checkSpamIP",e.new,J(l).$options.checkSpamIP))},{subtitle:ie(()=>[c("em",null,Y(J(t)("Reputation check")),1)]),_:1},8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_checkHowGetIPs",value:J(l).$options.scansEnabled_checkHowGetIPs,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for misconfigured How does Wordfence get IPs"),helpLink:J(n).support.url.scan_option_check_misconfigured_how_get_ips,onChange:a[3]||(a[3]=e=>J(s)("scansEnabled_checkHowGetIPs",e.new,J(l).$options.scansEnabled_checkHowGetIPs))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_checkReadableConfig",value:J(l).$options.scansEnabled_checkReadableConfig,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for publicly accessible configuration, backup, or log files"),helpLink:J(n).support.url.scan_option_public_config,onChange:a[4]||(a[4]=e=>J(s)("scansEnabled_checkReadableConfig",e.new,J(l).$options.scansEnabled_checkReadableConfig))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_suspectedFiles",value:J(l).$options.scansEnabled_suspectedFiles,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for publicly accessible quarantined files"),helpLink:J(n).support.url.scan_option_public_quarantined,onChange:a[5]||(a[5]=e=>J(s)("scansEnabled_suspectedFiles",e.new,J(l).$options.scansEnabled_suspectedFiles))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_core",value:J(l).$options.scansEnabled_core,enabledValue:!0,disabledValue:!1,title:J(t)("Scan core files against repository versions for changes"),helpLink:J(n).support.url.scan_option_core_changes,onChange:a[6]||(a[6]=e=>J(s)("scansEnabled_core",e.new,J(l).$options.scansEnabled_core))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_themes",value:J(l).$options.scansEnabled_themes,enabledValue:!0,disabledValue:!1,title:J(t)("Scan theme files against repository versions for changes"),helpLink:J(n).support.url.scan_option_theme_changes,onChange:a[7]||(a[7]=e=>J(s)("scansEnabled_themes",e.new,J(l).$options.scansEnabled_themes))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_plugins",value:J(l).$options.scansEnabled_plugins,enabledValue:!0,disabledValue:!1,title:J(t)("Scan plugin files against repository versions for changes"),helpLink:J(n).support.url.scan_option_plugin_changes,onChange:a[8]||(a[8]=e=>J(s)("scansEnabled_plugins",e.new,J(l).$options.scansEnabled_plugins))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_coreUnknown",value:J(l).$options.scansEnabled_coreUnknown,enabledValue:!0,disabledValue:!1,title:J(t)("Scan wp-admin and wp-includes for files not bundled with WordPress"),helpLink:J(n).support.url.scan_option_unknown_core,onChange:a[9]||(a[9]=e=>J(s)("scansEnabled_coreUnknown",e.new,J(l).$options.scansEnabled_coreUnknown))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_malware",value:J(l).$options.scansEnabled_malware,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for signatures of known malicious files"),helpLink:J(n).support.url.scan_option_malware_hashes,onChange:a[10]||(a[10]=e=>J(s)("scansEnabled_malware",e.new,J(l).$options.scansEnabled_malware))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_fileContents",value:J(l).$options.scansEnabled_fileContents,enabledValue:!0,disabledValue:!1,title:J(t)("Scan file contents for backdoors, trojans and suspicious code"),helpLink:J(n).support.url.scan_option_malware_signatures,onChange:a[11]||(a[11]=e=>J(s)("scansEnabled_fileContents",e.new,J(l).$options.scansEnabled_fileContents))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_fileContentsGSB",value:J(l).$options.scansEnabled_fileContentsGSB,enabledValue:!0,disabledValue:!1,title:J(t)("Scan file contents for malicious URLs"),helpLink:J(n).support.url.scan_option_malware_urls,onChange:a[12]||(a[12]=e=>J(s)("scansEnabled_fileContentsGSB",e.new,J(l).$options.scansEnabled_fileContentsGSB))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_posts",value:J(l).$options.scansEnabled_posts,enabledValue:!0,disabledValue:!1,title:J(t)("Scan posts for known dangerous URLs and suspicious content"),helpLink:J(n).support.url.scan_option_post_urls,onChange:a[13]||(a[13]=e=>J(s)("scansEnabled_posts",e.new,J(l).$options.scansEnabled_posts))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_comments",value:J(l).$options.scansEnabled_comments,enabledValue:!0,disabledValue:!1,title:J(t)("Scan comments for known dangerous URLs and suspicious content"),helpLink:J(n).support.url.scan_option_comment_urls,onChange:a[14]||(a[14]=e=>J(s)("scansEnabled_comments",e.new,J(l).$options.scansEnabled_comments))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_suspiciousOptions",value:J(l).$options.scansEnabled_suspiciousOptions,enabledValue:!0,disabledValue:!1,title:J(t)("Scan WordPress core, plugin, and theme options for known dangerous URLs and suspicious content"),helpLink:J(n).support.url.scan_option_malware_options,onChange:a[15]||(a[15]=e=>J(s)("scansEnabled_suspiciousOptions",e.new,J(l).$options.scansEnabled_suspiciousOptions))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_oldVersions",value:J(l).$options.scansEnabled_oldVersions,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for out of date, abandoned, and vulnerable plugins, themes, and WordPress versions"),helpLink:J(n).support.url.scan_option_updates,onChange:a[16]||(a[16]=e=>J(s)("scansEnabled_oldVersions",e.new,J(l).$options.scansEnabled_oldVersions))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_suspiciousAdminUsers",value:J(l).$options.scansEnabled_suspiciousAdminUsers,enabledValue:!0,disabledValue:!1,title:J(t)("Scan for suspicious admin users created outside of WordPress"),helpLink:J(n).support.url.scan_option_unknown_admins,onChange:a[17]||(a[17]=e=>J(s)("scansEnabled_suspiciousAdminUsers",e.new,J(l).$options.scansEnabled_suspiciousAdminUsers))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_passwds",value:J(l).$options.scansEnabled_passwds,enabledValue:!0,disabledValue:!1,title:J(t)("Check the strength of passwords"),helpLink:J(n).support.url.scan_option_password_strength,onChange:a[18]||(a[18]=e=>J(s)("scansEnabled_passwds",e.new,J(l).$options.scansEnabled_passwds))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_diskSpace",value:J(l).$options.scansEnabled_diskSpace,enabledValue:!0,disabledValue:!1,title:J(t)("Monitor disk space"),helpLink:J(n).support.url.scan_option_disk_space,onChange:a[19]||(a[19]=e=>J(s)("scansEnabled_diskSpace",e.new,J(l).$options.scansEnabled_diskSpace))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_wafStatus",value:J(l).$options.scansEnabled_wafStatus,enabledValue:!0,disabledValue:!1,title:J(t)("Monitor Web Application Firewall status"),helpLink:J(n).support.url.scan_option_waf_status,onChange:a[20]||(a[20]=e=>J(s)("scansEnabled_wafStatus",e.new,J(l).$options.scansEnabled_wafStatus))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"other_scanOutside",value:J(l).$options.other_scanOutside,enabledValue:!0,disabledValue:!1,title:J(t)("Scan files outside your WordPress installation"),helpLink:J(n).support.url.scan_option_outside_wordpress,onChange:a[21]||(a[21]=e=>J(s)("other_scanOutside",e.new,J(l).$options.other_scanOutside))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(Xh),{optionName:"scansEnabled_scanImages",value:J(l).$options.scansEnabled_scanImages,enabledValue:!0,disabledValue:!1,title:J(t)("Scan images, binary, and other files as if they were executable"),helpLink:J(n).support.url.scan_option_images_executable,onChange:a[22]||(a[22]=e=>J(s)("scansEnabled_scanImages",e.new,J(l).$options.scansEnabled_scanImages))},null,8,["value","title","helpLink"])])])]),_:1},8,["stateKey","collapseable"]))}},hR={class:"wf-block-list"},mR={__name:"OptionsGroupScanPerformance",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const t=b("__"),a=b("sprintf"),n=b("$mitt"),l=b("wfconstants"),s=b("$dataStore"),{$updatePendingValue:o}=Vn(),{$makeDuration:r}=Un(),{stateKey:u,collapseable:d}=Q(e);T(()=>{n.on("resetOptionControls",p)}),D(()=>{n.off("resetOptionControls",p)});const p=()=>{};return(e,n)=>(B(),i(J(_h),{stateKey:J(u),collapseable:J(d)},{title:ie(()=>[f(Y(J(t)("Performance Options")),1)]),default:ie(()=>[c("ul",hR,[c("li",null,[h(J(Xh),{optionName:"lowResourceScansEnabled",value:J(s).$options.lowResourceScansEnabled,enabledValue:!0,disabledValue:!1,title:J(t)("Use low resource scanning (reduces server load by lengthening the scan duration)"),helpLink:J(l).support.url.scan_option_low_resource,onChange:n[0]||(n[0]=e=>J(o)("lowResourceScansEnabled",e.new,J(s).$options.lowResourceScansEnabled))},null,8,["value","title","helpLink"])]),c("li",null,[h(J(ym),{optionName:"scan_maxIssues",value:J(s).$options.scan_maxIssues,title:J(t)("Limit the number of issues sent in the scan results email"),subtitle:J(t)("0 or empty means unlimited issues will be sent"),helpLink:J(l).support.url.scan_option_limit_issues,onChange:n[1]||(n[1]=e=>J(o)("scan_maxIssues",e.new,J(s).$options.scan_maxIssues))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(ym),{optionName:"scan_maxDuration",value:J(s).$options.scan_maxDuration,title:J(t)("Time limit that a scan can run in seconds"),subtitle:J(a)(J(t)("0 or empty means the default of %s will be used"),J(r)(J(l).scanner.limit.default_max_scan_time)),helpLink:J(l).support.url.scan_option_overall_time_limit,onChange:n[2]||(n[2]=e=>J(o)("scan_maxDuration",e.new,J(s).$options.scan_maxDuration))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(ym),{optionName:"maxMem",value:J(s).$options.maxMem,title:J(t)("How much memory should Wordfence request when scanning"),subtitle:J(t)("Memory size in megabytes"),helpLink:J(l).support.url.scan_option_memory_limit,onChange:n[3]||(n[3]=e=>J(o)("maxMem",e.new,J(s).$options.maxMem))},null,8,["value","title","subtitle","helpLink"])]),c("li",null,[h(J(ym),{optionName:"maxExecutionTime",value:J(s).$options.maxExecutionTime,title:J(t)("Maximum execution time for each scan stage"),subtitle:J(a)(J(t)("0 for default. Must be %d or greater and 10-20 or higher is recommended for most servers"),J(l).scanner.limit.min_execution_time),helpLink:J(l).support.url.scan_option_stage_time_limit,onChange:n[4]||(n[4]=e=>J(o)("maxExecutionTime",e.new,J(s).$options.maxExecutionTime))},null,8,["value","title","subtitle","helpLink"])])])]),_:1},8,["stateKey","collapseable"]))}},gR={class:"wf-block-list"},wR=["data-original-value"],vR=["data-option-value"],yR={class:"wf-option-radio-container"},bR=["value","disabled"],AR={id:"wf-scheduling-mode-automatic-label",class:"wf-option-title"},kR=["data-option-value"],_R={class:"wf-option-radio-container"},xR=["value","disabled"],CR={id:"wf-scheduling-mode-manual-label",class:"wf-option-title"},SR={key:0,href:"https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer",class:"wf-premium-link"},IR={class:"wf-scan-scheduling-manual-presets-label"},DR=["data-original-value"],MR=["data-option-value"],TR=["data-option-value"],LR=["data-option-value"],OR=["data-option-value"],BR=["data-option-value"],$R=["data-option-value"],PR=["data-option-value"],ER={key:0,class:"wf-scan-scheduling-manual-preset-options wf-active"},RR=["data-original-select-value"],FR={class:"wf-option-title"},NR={class:"wf-option-select"},WR=["disabled"],HR=["value"],VR={key:1,class:"wf-scan-scheduling-manual-custom-options wf-overflow-x-auto-xs wf-active"},UR=["data-original-value"],YR={class:"wf-visible-xs"},KR={class:"wf-scan-schedule-period-spacer"},jR={class:"wf-schedule-day"},GR={class:"wf-hidden-xs"},QR={class:"wf-schedule-times-wrapper"},qR={class:"wf-schedule-period"},ZR={class:"wf-schedule-times"},JR=["data-hour","onClick","onKeydown"],zR={class:"wf-schedule-times-wrapper"},XR={class:"wf-schedule-period"},eF={class:"wf-schedule-times"},tF=["data-hour","onClick","onKeydown"],aF={__name:"OptionsGroupScanSchedule",props:{stateKey:{type:String,required:!0},collapseable:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("sprintf"),l=b("$mitt"),o=b("wfconstants"),d=b("$dataStore"),{$isPaid:p}=Qs(),{$updatePendingValue:m,$resolvePendingOption:g}=Vn(),{stateKey:w,collapseable:v}=Q(e);T(()=>{l.on("resetOptionControls",y)}),D(()=>{l.off("resetOptionControls",y)});const y=()=>{},{$pendingValue:k}=li("schedMode",d.$options.schedMode);oe(k,e=>{m("schedMode",e,d.$options.schedMode)});const{$pendingValue:_}=li("manualScanType",d.$options.manualScanType),{$pendingValue:x}=li("schedStartHour",d.$options.schedStartHour);oe(x,e=>{m("schedStartHour",e,d.$options.schedStartHour)});const{$pendingValue:S}=li("scanSched",d.$options.scanSched);oe(S,e=>{m("scanSched",e,d.$options.scanSched)},{deep:!0});const I=s(()=>g.value("scheduledScansEnabled")&&p),M=e=>{I.value&&m("manualScanType",e,d.$options.manualScanType)},L=(e,t)=>{I.value&&(S.value[e][t]=!S.value[e][t])},O=s(()=>{let e=[];for(let t=1;t<=24;t++){const l=(t+10)%12+1;e.push({value:t-1,label:n(a(t<=12?"%s AM":"%s PM"),`${l}:00`)})}return e}),$=s(()=>[{value:1,label:a("Monday")},{value:2,label:a("Tuesday")},{value:3,label:a("Wednesday")},{value:4,label:a("Thursday")},{value:5,label:a("Friday")},{value:6,label:a("Saturday")},{value:0,label:a("Sunday")}]);return si({schedMode:"wf-option-schedMode",manualScanType:"wf-option-manualScanType"},w),(e,n)=>{const l=W("aria");return B(),i(J(_h),{stateKey:J(w),collapseable:J(v)},{title:ie(()=>[f(Y(J(a)("Scan Scheduling")),1)]),default:ie(()=>[c("ul",gR,[c("li",null,[h(J(cM),{optionName:"scheduledScansEnabled",value:J(d).$options.scheduledScansEnabled,title:J(a)("Schedule Wordfence Scans"),states:[{value:!1,label:J(a)("Disabled")},{value:!0,label:J(a)("Enabled")}],helpLink:J(o).support.url.scan_scheduling,onChange:n[0]||(n[0]=e=>J(m)("scheduledScansEnabled",e.new,J(d).$options.scheduledScansEnabled))},null,8,["value","title","states","helpLink"])]),c("li",null,[c("ul",{id:"wf-option-schedMode",class:"wf-scan-scheduling","data-option":"schedMode","data-original-value":J(d).$options.schedMode},[c("li",null,[c("ul",{class:C(["wf-option wf-option-scan-schedule-mode",{"wf-disabled":!J(g)("scheduledScansEnabled")}]),"data-option-value":J(o).scanner.schedule.mode.automatic},[re((B(),u("li",yR,[re(c("input",{class:"wf-option-radio",type:"radio",name:"wf-scheduling-mode",id:"wf-scheduling-mode-automatic",value:J(o).scanner.schedule.mode.automatic,"onUpdate:modelValue":n[1]||(n[1]=e=>A(k)?k.value=e:null),disabled:!J(g)("scheduledScansEnabled"),"aria-labelledby":"wf-scheduling-mode-automatic-label"},null,8,bR),[[ae,J(k)]]),n[18]||(n[18]=c("label",{for:"wf-scheduling-mode-automatic"},null,-1))])),[[l,{role:"radiogroup"}]]),c("li",AR,Y(J(a)("Let Wordfence choose when to scan my site (recommended)")),1)],10,vR)]),c("li",null,[c("ul",{class:C(["wf-option wf-option-scan-schedule-mode",{"wf-option-premium":!J(p),"wf-disabled":!J(g)("scheduledScansEnabled")}]),"data-option-value":J(o).scanner.schedule.mode.manual},[c("li",_R,[re(c("input",{class:"wf-option-radio",type:"radio",name:"wf-scheduling-mode",id:"wf-scheduling-mode-manual",value:J(o).scanner.schedule.mode.manual,"onUpdate:modelValue":n[2]||(n[2]=e=>A(k)?k.value=e:null),disabled:!J(g)("scheduledScansEnabled")||!J(p),"aria-labelledby":"wf-scheduling-mode-manual-label"},null,8,xR),[[ae,J(k)]]),n[19]||(n[19]=c("label",{for:"wf-scheduling-mode-manual"},null,-1))]),c("li",CR,[f(Y(J(a)("Manually schedule scans"))+" ",1),J(p)?r("",!0):(B(),u("a",SR,[f(Y(J(a)("Premium Feature")),1),h(J(Kn))]))])],10,kR),h(J(qs),null,{default:ie(()=>[J(k)===J(o).scanner.schedule.mode.manual?(B(),u("ul",{key:0,class:C(["wf-scan-scheduling-manual wf-active",{"wf-disabled":!I.value}])},[c("li",null,[c("strong",IR,Y(J(a)("Shortcuts")),1),re((B(),u("ul",{id:"wf-option-manualScanType",class:"wf-scan-scheduling-manual-presets wf-overflow-x-auto-xs","data-option-name":"manualScanType","data-original-value":J(d).$options.manualScanType},[re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.onceDaily}]),"data-option-value":J(o).scanner.schedule.manual.onceDaily,tabindex:"0",onClick:n[3]||(n[3]=ce(e=>M(J(o).scanner.schedule.manual.onceDaily),["stop","prevent"])),onKeydown:n[4]||(n[4]=ue(ce(e=>M(J(o).scanner.schedule.manual.onceDaily),["stop","prevent"]),["space"]))},[f(Y(J(a)("Once Daily")),1)],42,MR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.onceDaily}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.twiceDaily}]),"data-option-value":J(o).scanner.schedule.manual.twiceDaily,tabindex:"0",onClick:n[5]||(n[5]=ce(e=>M(J(o).scanner.schedule.manual.twiceDaily),["stop","prevent"])),onKeydown:n[6]||(n[6]=ue(ce(e=>M(J(o).scanner.schedule.manual.twiceDaily),["stop","prevent"]),["space"]))},[f(Y(J(a)("Twice Daily")),1)],42,TR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.twiceDaily}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.everyOtherDay}]),"data-option-value":J(o).scanner.schedule.manual.everyOtherDay,tabindex:"0",onClick:n[7]||(n[7]=ce(e=>M(J(o).scanner.schedule.manual.everyOtherDay),["stop","prevent"])),onKeydown:n[8]||(n[8]=ue(ce(e=>M(J(o).scanner.schedule.manual.everyOtherDay),["stop","prevent"]),["space"]))},[f(Y(J(a)("Every Other Day")),1)],42,LR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.everyOtherDay}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.weekdays}]),"data-option-value":J(o).scanner.schedule.manual.weekdays,tabindex:"0",onClick:n[9]||(n[9]=ce(e=>M(J(o).scanner.schedule.manual.weekdays),["stop","prevent"])),onKeydown:n[10]||(n[10]=ue(ce(e=>M(J(o).scanner.schedule.manual.weekdays),["stop","prevent"]),["space"]))},[f(Y(J(a)("Weekdays")),1)],42,OR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.weekdays}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.weekends}]),"data-option-value":J(o).scanner.schedule.manual.weekends,tabindex:"0",onClick:n[11]||(n[11]=ce(e=>M(J(o).scanner.schedule.manual.weekends),["stop","prevent"])),onKeydown:n[12]||(n[12]=ue(ce(e=>M(J(o).scanner.schedule.manual.weekends),["stop","prevent"]),["space"]))},[f(Y(J(a)("Weekends")),1)],42,BR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.weekends}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.oddDaysWE}]),"data-option-value":J(o).scanner.schedule.manual.oddDaysWE,tabindex:"0",onClick:n[13]||(n[13]=ce(e=>M(J(o).scanner.schedule.manual.oddDaysWE),["stop","prevent"])),onKeydown:n[14]||(n[14]=ue(ce(e=>M(J(o).scanner.schedule.manual.oddDaysWE),["stop","prevent"]),["space"]))},[f(Y(J(a)("Odd Days & Weekends")),1)],42,$R)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.oddDaysWE}]]),re((B(),u("li",{class:C(["wf-nowrap",{"wf-active":J(_)===J(o).scanner.schedule.manual.custom}]),"data-option-value":J(o).scanner.schedule.manual.custom,tabindex:"0",onClick:n[15]||(n[15]=ce(e=>M(J(o).scanner.schedule.manual.custom),["stop","prevent"])),onKeydown:n[16]||(n[16]=ue(ce(e=>M(J(o).scanner.schedule.manual.custom),["stop","prevent"]),["space"]))},[f(Y(J(a)("Custom")),1)],42,PR)),[[l,{role:"radio",checked:J(_)===J(o).scanner.schedule.manual.custom}]])],8,DR)),[[l,{role:"radiogroup"}]])]),h(J(qs),null,{default:ie(()=>[J(_)!==J(o).scanner.schedule.manual.custom?(B(),u("li",ER,[c("ul",{class:"wf-option wf-option-select","data-select-option":"schedStartHour","data-original-select-value":J(d).$options.schedStartHour},[c("li",FR,[h(J(Vs),{text:J(a)("Use preferred start time"),xs:J(a)("Start time")},null,8,["text","xs"])]),c("li",NR,[re(c("select",{disabled:!I.value,"onUpdate:modelValue":n[17]||(n[17]=e=>A(x)?x.value=e:null)},[(B(!0),u(t,null,F(O.value,e=>(B(),u("option",{class:"wf-option-select-option",value:e.value,key:e.value},Y(e.label),9,HR))),128))],8,WR),[[ne,J(x)]])])],8,RR)])):(B(),u("li",VR,[c("table",{class:"wf-scan-schedule","data-original-value":J(d).$options.scanSched},[(B(!0),u(t,null,F($.value,e=>(B(),u(t,{key:`day-${e.value}`},[c("tr",YR,[c("th",KR,Y(e.label),1)]),c("tr",jR,[c("th",GR,Y(e.label),1),c("td",null,[c("div",QR,[c("div",qR,Y(J(a)("AM")),1),c("ul",ZR,[(B(),u(t,null,F(12,t=>re(c("li",{key:`day-${e.value}-${t-1}`,class:C(["wf-schedule-time",{"wf-active":J(S)[e.value][t-1]}]),"data-hour":t-1,tabindex:"0",onClick:ce(a=>L(e.value,t-1),["stop","prevent"]),onKeydown:ue(ce(a=>L(e.value,t-1),["stop","prevent"]),["space"])},[f(Y((""+((t+10)%12+1)).padStart(2,"0")),1)],42,JR),[[l,{role:"checkbox",checked:J(S)[e.value][t-1]}]])),64))])]),c("div",zR,[c("div",XR,Y(J(a)("PM")),1),c("ul",eF,[(B(),u(t,null,F(12,t=>re(c("li",{key:`day-${e.value}-${t+11}`,class:C(["wf-schedule-time",{"wf-active":J(S)[e.value][t+11]}]),"data-hour":t+11,tabindex:"0",onClick:ce(a=>L(e.value,t+11),["stop","prevent"]),onKeydown:ue(ce(a=>L(e.value,t+11),["stop","prevent"]),["space"])},[f(Y((""+((t+10)%12+1)).padStart(2,"0")),1)],42,tF),[[l,{role:"checkbox",checked:J(S)[e.value][t+11]}]])),64))])])])])],64))),128))],8,UR)]))]),_:1})],2)):r("",!0)]),_:1})])],8,wR)])])]),_:1},8,["stateKey","collapseable"])}}},nF={__name:"OptionsLinkBlock",setup:e=>(function(){const e=b("$"),t=b("$mitt"),{$parseHashes:a}=dn();T(()=>{x(()=>{if(window.location.hash){const n=a(),l=n[n.length-1];let s=!0;n.length>1&&e("#"+n[n.length-2]).hasClass("wf-option")&&(s="#"+n[n.length-2]),t.emit("expandDisclosureBlock",{key:l,scrollTo:s,onComplete:()=>history.replaceState("",document.title,window.location.pathname+window.location.search)})}})})}(),(e,t)=>re((B(),u("div",null,null,512)),[[se,!1]]))},lF="options-export-success-modal",sF={__name:"ExportSuccessModal",props:{show:{type:Boolean,default:!1},token:{type:String,default:""}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",lF),(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Export Successful")),1)]),body:ie(()=>[c("p",null,Y(J(t)("We successfully exported your site options. To import your site options on another site, copy and paste the token below into the import text box on the destination site. Keep this token secret – it is like a password. If anyone else discovers the token it will allow them to import your options excluding your license.")),1),c("p",null,[h(J(mb),{class:"wf-full-width",text:e.token},null,8,["text"])])]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",lF)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},oF="options-export-error-modal",iF={__name:"ExportErrorModal",props:{show:{type:Boolean,default:!1},message:{type:[String,null],default:null}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",oF),(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Error during Export")),1)]),body:ie(()=>[f(Y(e.message?e.message:J(t)("An unknown error occurred during the export. We received an undefined error from your web server.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",oF)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},rF={__name:"ImportSuccessModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__");$("modalName","options-import-success-modal");const a=()=>{window.location.reload(!0)};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Import Successful")),1)]),body:ie(()=>[f(Y(J(t)("We successfully imported the site options.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:a,"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Reload")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},uF="options-import-error-modal",cF={__name:"ImportErrorModal",props:{show:{type:Boolean,default:!1},message:{type:[String,null],default:null}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",uF),(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Error during Import")),1)]),body:ie(()=>[f(Y(e.message?e.message:J(t)("An unknown error occurred during the import.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",uF)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},dF="options-downgrade-license-modal",pF={__name:"DowngradeLicenseModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt"),{$ajax:l,$ajaxErrorMessage:s}=In(),{$modal:o}=Hn();$("modalName",dF);const u=()=>{l("wordfence_downgradeLicense",{},e=>{e.ok&&window.location.reload(!0)},e=>{a.emit("closeModal",dF),x(()=>{o("options-downgrade-license-error-modal",{downgradeError:s(e,!0,"downgradeErrorMsg"),registrationLink:e.registrationLink??null})})})};return(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Confirm Reset")),1)]),body:ie(()=>[c("p",null,Y(J(t)("Are you sure you want to reset this site's Wordfence License? This will disable Premium features and return the site to the free version of Wordfence. Your settings will still be retained when reinstalling a license.")),1),c("p",null,Y(J(t)("If autorenew is enabled for the current license, the license will renew at the next expiration date. If you would like to turn renewal off or assign the license to another site, log into wordfence.com to change it.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",dF)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:u,"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Reset")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},fF=["href"],hF="options-downgrade-license-error-modal",mF={__name:"DowngradeLicenseErrorModal",props:{show:{type:Boolean,default:!1},downgradeError:{type:String},registrationLink:{type:String}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",hF),(l,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0},{header:ie(()=>[c("strong",null,Y(J(t)("Error")),1)]),body:ie(()=>[c("p",null,Y(J(t)("There was an error while downgrading to a free license.")),1),c("p",null,Y(e.downgradeError),1),c("p",null,Y(J(t)("You may close this alert and try again later, or click the button below to register for a new free Wordfence license.")),1),c("p",null,[c("a",{href:e.registrationLink,class:"wf-btn wf-btn-primary",target:"_blank",rel:"nofollow noreferrer"},Y(J(t)("Get a new license")),9,fF)])]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",hF)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Close")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},gF={__name:"OptionsModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"options-export-success-modal":{show:!1,token:"",configurator:e=>{n[e.name].token=e.token??""}},"options-export-error-modal":{show:!1,message:"",configurator:e=>{n[e.name].message=e.message??null}},"options-import-success-modal":{show:!1,configurator:e=>{}},"options-import-error-modal":{show:!1,message:"",configurator:e=>{n[e.name].message=e.message??null}},"options-downgrade-license-modal":{show:!1,configurator:e=>{}},"options-downgrade-license-error-modal":{show:!1,downgradeError:"",registrationLink:"",configurator:e=>{n[e.name].downgradeError=e.downgradeError??"",n[e.name].registrationLink=e.registrationLink??""}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:l.value},null,8,["show"]),h(J(sF),{show:n["options-export-success-modal"].show,token:n["options-export-success-modal"].token},null,8,["show","token"]),h(J(iF),{show:n["options-export-error-modal"].show,message:n["options-export-error-modal"].message},null,8,["show","message"]),h(J(rF),{show:n["options-import-success-modal"].show},null,8,["show"]),h(J(cF),{show:n["options-import-error-modal"].show,message:n["options-import-error-modal"].message},null,8,["show","message"]),h(J(pF),{show:n["options-downgrade-license-modal"].show},null,8,["show"]),h(J(mF),{show:n["options-downgrade-license-error-modal"].show,downgradeError:n["options-downgrade-license-error-modal"].downgradeError,registrationLink:n["options-downgrade-license-error-modal"].registrationLink},null,8,["show","downgradeError","registrationLink"])]))}},wF={class:"wf-scan-step-icon"},vF={key:0,class:"wf-scan-step-premium"},yF={key:1,class:"wf-scan-step-pending"},bF={key:2,class:"wf-scan-step-running"},AF={key:3,class:"wf-scan-step-complete-success"},kF={key:4,class:"wf-scan-step-complete-warning"},_F={key:5,class:"wf-scan-step-disabled"},xF={class:"wf-scan-step-title"},CF={key:0,class:"wf-scan-step-subtitle"},SF={href:"https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},IF={__name:"ScanProgressStageElement",props:{status:{type:String,default:null,required:!1}},setup(e){const t=b("__"),a=b("wfconstants"),{status:n}=Q(e),l=s(()=>{let e=[];switch(e.push("wf-scan-step"),n.value){case a.scanner.stage_status.pending:break;case a.scanner.stage_status.running:case a.scanner.stage_status.running_warning:e.push("wf-scan-step-running");break;case a.scanner.stage_status.complete_success:e.push("wf-scan-step-complete-success");break;case a.scanner.stage_status.complete_warning:e.push("wf-scan-step-complete-warning");break;case a.scanner.stage_status.premium:e.push("wf-scan-step-premium");break;case a.scanner.stage_status.disabled:e.push("wf-scan-step-disabled")}return e});return(e,s)=>(B(),u("li",{class:C(l.value)},[c("div",wF,[J(n)===J(a).scanner.stage_status.premium?(B(),u("div",vF)):J(n)===J(a).scanner.stage_status.pending?(B(),u("div",yF)):J(n)===J(a).scanner.stage_status.running||J(n)===J(a).scanner.stage_status.running_warning?(B(),u("div",bF,[h(J(Ci),{size:"50"})])):J(n)===J(a).scanner.stage_status.complete_success?(B(),u("div",AF)):J(n)===J(a).scanner.stage_status.complete_warning?(B(),u("div",kF)):(B(),u("div",_F))]),c("div",xF,[N(e.$slots,"title")]),J(n)===J(a).scanner.stage_status.premium?(B(),u("div",CF,[c("a",SF,[f(Y(J(t)("Upgrade")),1),h(J(Kn))])])):r("",!0)],2))}},DF={class:"wf-scanner-progress"},MF={__name:"ScanProgressStages",setup(e){const t=b("__"),a=b("wfconstants"),n=b("$dataStore");return(e,l)=>(B(),u("ul",DF,[h(J(IF),{id:"wf-scan-spamvertising",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.spamvertising]},{title:ie(()=>[f(Y(J(t)("Spamvertising Checks")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-spam",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.spam]},{title:ie(()=>[f(Y(J(t)("Spam Check")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-blacklist",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.blacklist]},{title:ie(()=>[f(Y(J(t)("Blocklist Check")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-server",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.server]},{title:ie(()=>[f(Y(J(t)("Server State")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-changes",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.changes]},{title:ie(()=>[f(Y(J(t)("File Changes")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-malware",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.malware]},{title:ie(()=>[f(Y(J(t)("Malware Scan")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-content",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.content]},{title:ie(()=>[f(Y(J(t)("Content Safety")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-public",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.public]},{title:ie(()=>[f(Y(J(t)("Public Files")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-password",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.password]},{title:ie(()=>[f(Y(J(t)("Password Strength")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-vulnerability",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.vulnerability]},{title:ie(()=>[f(Y(J(t)("Vulnerability Scan")),1)]),_:1},8,["status"]),h(J(IF),{id:"wf-scan-options",status:J(n).scanner.state.$scanStages[J(a).scanner.stage.options]},{title:ie(()=>[f(Y(J(t)("User & Option Audit")),1)]),_:1},8,["status"])]))}};function TF(e,t,a){let n,l=a.initialDeps??[],s=!0;function o(){var o,i,r;let u;a.key&&(null==(o=a.debug)?void 0:o.call(a))&&(u=Date.now());const c=e();if(c.length===l.length&&!c.some((e,t)=>l[t]!==e))return n;let d;return l=c,a.key&&(null==(i=a.debug)?void 0:i.call(a))&&(d=Date.now()),n=t(...c),a.key&&(null==(r=a.debug)?void 0:r.call(a))&&(Math.round(100*(Date.now()-u)),Math.round(100*(Date.now()-d))),!(null==a?void 0:a.onChange)||s&&a.skipInitialOnChange||a.onChange(n),s=!1,n}return o.updateDeps=e=>{l=e},o}function LF(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}var OF=(e,t,a)=>{let n;return function(...l){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,l),a)}},BF=e=>{const{offsetWidth:t,offsetHeight:a}=e;return{width:t,height:a}},$F=e=>e,PF=e=>{const t=Math.max(e.startIndex-e.overscan,0),a=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let l=t;l<=a;l++)n.push(l);return n},EF=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;const l=e=>{const{width:a,height:n}=e;t({width:Math.round(a),height:Math.round(n)})};if(l(BF(a)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(t=>{const n=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void l({width:t.inlineSize,height:t.blockSize})}l(BF(a))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(n):n()});return s.observe(a,{box:"border-box"}),()=>{s.unobserve(a)}},RF={passive:!0},FF="undefined"==typeof window||"onscrollend"in window,NF=(e,t)=>{const a=e.scrollElement;if(!a)return;const n=e.targetWindow;if(!n)return;let l=0;const s=e.options.useScrollendEvent&&FF?()=>{}:OF(n,()=>{t(l,!1)},e.options.isScrollingResetDelay),o=n=>()=>{const{horizontal:o,isRtl:i}=e.options;l=o?a.scrollLeft*(i?-1:1):a.scrollTop,s(),t(l,n)},i=o(!0),r=o(!1);a.addEventListener("scroll",i,RF);const u=e.options.useScrollendEvent&&FF;return u&&a.addEventListener("scrollend",r,RF),()=>{a.removeEventListener("scroll",i),u&&a.removeEventListener("scrollend",r)}},WF=(e,t,a)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[a.options.horizontal?"inlineSize":"blockSize"])}return e[a.options.horizontal?"offsetWidth":"offsetHeight"]},HF=(e,{adjustments:t=0,behavior:a},n)=>{var l,s;const o=e+t;null==(s=null==(l=n.scrollElement)?void 0:l.scrollTo)||s.call(l,{[n.options.horizontal?"left":"top"]:o,behavior:a})},VF=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=/* @__PURE__ */new Map,this.laneAssignments=/* @__PURE__ */new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=/* @__PURE__ */new Map,this.observer=/* @__PURE__ */(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var a;null==(a=t())||a.disconnect(),e=null},observe:e=>{var a;return null==(a=t())?void 0:a.observe(e,{box:"border-box"})},unobserve:e=>{var a;return null==(a=t())?void 0:a.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,a])=>{void 0===a&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:$F,rangeExtractor:PF,onChange:()=>{},measureElement:WF,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,a;null==(a=(t=this.options).onChange)||a.call(t,this,e)},this.maybeNotify=TF(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const a=/* @__PURE__ */new Map,n=/* @__PURE__ */new Map;for(let l=t-1;l>=0;l--){const t=e[l];if(a.has(t.lane))continue;const s=n.get(t.lane);if(null==s||t.end>s.end?n.set(t.lane,t):t.end<s.end&&a.set(t.lane,!0),a.size===this.options.lanes)break}return n.size===this.options.lanes?Array.from(n.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=TF(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,a,n,l,s)=>(void 0!==this.prevLanes&&this.prevLanes!==s&&(this.lanesChangedFlag=!0),this.prevLanes=s,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:l,lanes:s}),{key:!1}),this.getMeasurements=TF(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:a,getItemKey:n,enabled:l,lanes:s},o)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const c of this.laneAssignments.keys())c>=e&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const i=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const r=this.measurementsCache.slice(0,i),u=new Array(s).fill(void 0);for(let c=0;c<i;c++){const e=r[c];e&&(u[e.lane]=c)}for(let c=i;c<e;c++){const e=n(c),l=this.laneAssignments.get(c);let s,i;if(void 0!==l&&this.options.lanes>1){s=l;const e=u[s],n=void 0!==e?r[e]:void 0;i=n?n.end+this.options.gap:t+a}else{const e=1===this.options.lanes?r[c-1]:this.getFurthestMeasurement(r,c);i=e?e.end+this.options.gap:t+a,s=e?e.lane:c%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(c,s)}const d=o.get(e),p="number"==typeof d?d:this.options.estimateSize(c),f=i+p;r[c]={index:c,start:i,size:p,end:f,key:e,lane:s},u[s]=c}return this.measurementsCache=r,r},{key:!1,debug:()=>this.options.debug}),this.calculateRange=TF(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,a,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:a,lanes:n}){const l=e.length-1;if(e.length<=n)return{startIndex:0,endIndex:l};let s=UF(0,l,t=>e[t].start,a),o=s;if(1===n)for(;o<l&&e[o].end<a+t;)o++;else if(n>1){const i=Array(n).fill(0);for(;o<l&&i.some(e=>e<a+t);){const t=e[o];i[t.lane]=t.end,o++}const r=Array(n).fill(a+t);for(;s>=0&&r.some(e=>e>=a);){const t=e[s];r[t.lane]=t.start,s--}s=Math.max(0,s-s%n),o=Math.min(l,o+(n-1-o%n))}return{startIndex:s,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:a,lanes:n}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=TF(()=>{let e=null,t=null;const a=this.calculateRange();return a&&(e=a.startIndex,t=a.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,a,n,l)=>null===n||null===l?[]:e({startIndex:n,endIndex:l,overscan:t,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,a=e.getAttribute(t);return a?parseInt(a,10):-1},this._measureElement=(e,t)=>{const a=this.indexFromElement(e),n=this.measurementsCache[a];if(!n)return;const l=n.key,s=this.elementsCache.get(l);s!==e&&(s&&this.observer.unobserve(s),this.observer.observe(e),this.elementsCache.set(l,e)),e.isConnected&&this.resizeItem(a,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const a=this.measurementsCache[e];if(!a)return;const n=t-(this.itemSizeCache.get(a.key)??a.size);0!==n&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(a,n,this):a.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=n,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(a.index),this.itemSizeCache=new Map(this.itemSizeCache.set(a.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=TF(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const a=[];for(let n=0,l=e.length;n<l;n++){const l=t[e[n]];a.push(l)}return a},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return LF(t[UF(0,t.length-1,e=>LF(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,a=0)=>{if(!this.scrollElement)return 0;const n=this.getSize(),l=this.getScrollOffset();"auto"===t&&(t=e>=l+n?"end":"start"),"center"===t?e+=(a-n)/2:"end"===t&&(e-=n);const s=this.getMaxScrollOffset();return Math.max(Math.min(s,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const a=this.measurementsCache[e];if(!a)return;const n=this.getSize(),l=this.getScrollOffset();if("auto"===t)if(a.end>=l+n-this.options.scrollPaddingEnd)t="end";else{if(!(a.start<=l+this.options.scrollPaddingStart))return[l,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const s="end"===t?a.end+this.options.scrollPaddingEnd:a.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(s,t,a.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t="start",behavior:a}={})=>{"smooth"===a&&this.isDynamicMode(),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:a})},this.scrollToIndex=(e,{align:t="auto",behavior:a}={})=>{"smooth"===a&&this.isDynamicMode(),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let n=0;const l=t=>{if(!this.targetWindow)return;const n=this.getOffsetForIndex(e,t);if(!n)return;const[l,o]=n;this._scrollToOffset(l,{adjustments:void 0,behavior:a}),this.targetWindow.requestAnimationFrame(()=>{if(!this.targetWindow)return;const t=()=>{if(this.currentScrollToIndex!==e)return;const t=this.getScrollOffset(),a=this.getOffsetForIndex(e,o);var n,l;a&&(n=a[0],l=t,Math.abs(n-l)<1.01||s(o))};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},s=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(n++,n<10&&this.targetWindow.requestAnimationFrame(()=>l(t)))};l(t)},this.scrollBy=(e,{behavior:t}={})=>{"smooth"===t&&this.isDynamicMode(),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let a;if(0===t.length)a=this.options.paddingStart;else if(1===this.options.lanes)a=(null==(e=t[t.length-1])?void 0:e.end)??0;else{const e=Array(this.options.lanes).fill(null);let n=t.length-1;for(;n>=0&&e.some(e=>null===e);){const a=t[n];null===e[a.lane]&&(e[a.lane]=a.end),n--}a=Math.max(...e.filter(e=>null!==e))}return Math.max(a-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:a})=>{this.options.scrollToFn(e,{behavior:a,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=/* @__PURE__ */new Map,this.laneAssignments=/* @__PURE__ */new Map,this.notify(!1)},this.setOptions(e)}},UF=(e,t,a,n)=>{for(;e<=t;){const l=(e+t)/2|0,s=a(l);if(s<n)e=l+1;else{if(!(s>n))return l;t=l-1}}return e>0?e-1:0};function YF(){const e=w(),t=b("$"),a=b("__"),n=b("wfconstants"),l=b("$mitt"),s=b("$dataStore"),{$ajax:o}=In(),{$hasOwn:i}=cn(),{$camelCase2SnakeCase:r}=Un(),u=()=>{const e=(e,t)=>{const a=e.severity,l=t.severity;if(a>l)return-1;if(a<l)return 1;const s=e.type,o=t.type,i=n.scanner.site_cleaning_issue_types.indexOf(s),r=n.scanner.site_cleaning_issue_types.indexOf(o);return i>-1&&r>-1?i<r?-1:i>r?1:0:i>-1?-1:r>-1?1:s<o?-1:s>o?1:0};s.scanner.issues.$new.sort(e),s.scanner.issues.$ignored.sort(e)},c=(e,t,a,r,c=!1,d=null)=>{e=e||0,t=t||n.scanner.limit.issues_per_page,a=a||0,r=r||n.scanner.limit.issues_per_page,e>=s.scanner.issues.$newCount&&a>=s.scanner.issues.$ignoredCount?"function"==typeof d&&d(!0):o("wordfence_loadIssues",{offset:e,limit:t,ignoredOffset:a,ignoredLimit:r},e=>{l.emit("issueCountsUpdated",e.issueCounts),c||(s.scanner.issues.$new.splice(0,s.scanner.issues.$new.length),s.scanner.issues.$ignored.splice(0,s.scanner.issues.$ignored.length)),e.issues&&i(e.issues,"new")&&s.scanner.issues.$new.push(...e.issues.new),e.issues&&i(e.issues,"ignored")&&s.scanner.issues.$ignored.push(...e.issues.ignored),u(),"function"==typeof d&&d(!0)},()=>{"function"==typeof d&&d(!1)})},d=e?.appContext?.config?.globalProperties?.$dismissIssue,p=/* @__PURE__ */new Map,f=e=>{const t=h(e.message);t&&(p.has(t)||p.set(t,[]),p.get(t).push(e))},h=e=>String(e??"").trim().replace(/\s+/g," "),m=()=>{s.scanner.activityLog.$updatePending||!document.hasFocus()&&s.$options.liveActivityPauseEnabled?s.scanner.activityLog.$updatesPaused||s.scanner.activityLog.$updatePending||(s.scanner.activityLog.$updatesPaused=!0,t("body").addClass("wordfenceLiveActivityPaused")):(s.scanner.activityLog.$updatesPaused&&(s.scanner.activityLog.$updatesPaused=!1,t("body").removeClass("wordfenceLiveActivityPaused")),s.scanner.activityLog.$updatePending=!0,o("wordfence_activityLogUpdate",{lastid:s.scanner.activityLog.$lastID,lastissuetime:s.scanner.activityLog.$lastIssueTime},e=>{if(s.scanner.activityLog.$nextUpdateAt=/* @__PURE__ */(new Date).getTime()+n.plugin.update_interval,e.ok){if(e.items.length>0){let t=!1;e.items.filter(e=>!!e.msg).forEach(e=>{if(0===e.msg.indexOf("SUM_")){let n={summary:!0,timestamp:e.ctime,level:e.level,type:e.type,message:e.msg.replace(/^SUM_[^:]*:/,""),result:{type:"",message:"",premium:!1,loading:!1}};-1!==e.msg.indexOf("SUM_START:")?(n.result.loading=!0,f(n),s.scanner.activityLog.$queue.push(n)):-1!==e.msg.indexOf("SUM_ENDBAD")?g(n,"bad",a("Problems found.")):-1!==e.msg.indexOf("SUM_ENDFAILED")?g(n,"bad",a("Failed.")):-1!==e.msg.indexOf("SUM_ENDOK")?g(n,"ok",a("Secure.")):-1!==e.msg.indexOf("SUM_ENDSUCCESS")?g(n,"ok",a("Success.")):-1!==e.msg.indexOf("SUM_ENDERR")?g(n,"err",a("An error occurred.")):-1!==e.msg.indexOf("SUM_ENDSKIPPED")?g(n,"skipped",a("Skipped.")):-1!==e.msg.indexOf("SUM_ENDIGNORED")?g(n,"ignored",a("Ignored.")):-1!==e.msg.indexOf("SUM_DISABLED:")?(n.result.message=a("Disabled"),s.scanner.activityLog.$queue.push(n)):-1!==e.msg.indexOf("SUM_PAIDONLY:")?(n.result.premium=!0,s.scanner.activityLog.$queue.push(n)):-1!==e.msg.indexOf("SUM_FINAL:")?(n.final=!0,n.result.type="ok",n.result.message=a("Scan Complete."),s.scanner.activityLog.$queue.push(n),t=!0):-1!==e.msg.indexOf("SUM_PREP:")?(n.result.loading=!0,f(n),s.scanner.activityLog.$queue.push(n)):-1!==e.msg.indexOf("SUM_KILLED:")&&(n.result.type="ok",n.result.message=a("Scan Complete."),s.scanner.activityLog.$queue.push(n),t=!0)}else(n.debug||e.level<4)&&s.scanner.activityLog.$queue.push({timestamp:e.ctime,level:e.level,type:e.type,message:e.msg})}),s.scanner.activityLog.$lastID=e.items[e.items.length-1].id,v(),t&&c()}s.scanner.state.$scanStalled=!!parseInt(e.scanStalled),s.scanner.state.$scanRunning=!!parseInt(e.scanRunning),s.scanner.state.$scanFailed=e.scanFailed,s.scanner.activityLog.$lastStatusMessage=e.lastMessage,s.scanner.state.$lastScanStatusUpdate=1e3*e.lastScanStatusUpdate,s.scanner.state.$lastScanCompleted=e.lastScanCompleted,e.issues&&(s.scanner.activityLog.$lastIssueTime=e.issueUpdateTimestamp,s.scanner.issues.$new.splice(0,s.scanner.issues.$new.length),s.scanner.issues.$ignored.splice(0,s.scanner.issues.$ignored.length),i(e.issues,"new")&&s.scanner.issues.$new.push(...e.issues.new),i(e.issues,"ignored")&&s.scanner.issues.$ignored.push(...e.issues.ignored),u()),e.issueCounts&&l.emit("issueCountsUpdated",e.issueCounts),e.scanStats&&Object.keys(s.scanner.issues.$summary).forEach(t=>{const a=r(t);s.scanner.issues.$summary[t]=e.scanStats[t]??e.scanStats[a]??0}),e.scanStages&&Object.keys(e.scanStages).forEach(t=>{s.scanner.state.$scanStages[t]=e.scanStages[t]})}s.scanner.activityLog.$updatePending=!1},()=>{s.scanner.activityLog.$updatePending=!1},!0))},g=(e,t,a)=>{let n=null;const l=h(e.message),o=p.get(l);o&&o.length>0&&(n=o[o.length-1]),n||["$queue","$log"].forEach(e=>{if(!n)for(let t=s.scanner.activityLog[e].length-1;t>=0;t-=1){const a=s.scanner.activityLog[e][t];if(a.summary&&h(a.message)===l){n=a;break}}}),n&&(n.result={...n.result,loading:!1,type:t,message:a},(e=>{const t=h(e.message);if(!t||!p.has(t))return;const a=p.get(t),n=a.lastIndexOf(e);n>-1&&a.splice(n,1),0===a.length&&p.delete(t)})(n))},v=()=>{if(0===s.scanner.activityLog.$queue.length)return;const e=Math.max(1,s.scanner.activityLog.$nextUpdateAt-/* @__PURE__ */(new Date).getTime());let t=[];const a=Math.floor(.05*e),n=Math.max(1,s.scanner.activityLog.$queue.length-a);s.scanner.activityLog.$queue.length>0&&(t=s.scanner.activityLog.$queue.splice(0,Math.min(n,s.scanner.activityLog.$queue.length))),t.length>200&&t.splice(0,t.length-200),s.scanner.activityLog.$log.length+t.length>200&&s.scanner.activityLog.$log.splice(0,s.scanner.activityLog.$log.length+t.length-200),s.scanner.activityLog.$log.push(...t);let l=100;e>=1&&s.scanner.activityLog.$queue.length&&(l=Math.max(100,Math.round(e/s.scanner.activityLog.$queue.length))),setTimeout(v,l)};return{$loadIssues:c,$changeIssueStatus:(e,t)=>{o("wordfence_updateIssueStatus",{id:e,status:t},a=>{if(a.ok){l.emit("issueCountsUpdated",a.issueCounts);const o=s.scanner.issues.$new.findIndex(t=>t.id===e);if(o>-1)if(t===n.scanner.status.ignorep||t===n.scanner.status.ignorec){const e=s.scanner.issues.$new.splice(o,1)[0];e.status=t,s.scanner.issues.$ignored.push(e),u()}else"delete"===t&&d(e);else{const a=s.scanner.issues.$ignored.findIndex(t=>t.id===e);if(a>-1)if(t===n.scanner.status.new){const e=s.scanner.issues.$ignored.splice(a,1)[0];e.status=t,s.scanner.issues.$new.push(e),u()}else"delete"===t&&d(e)}}})},$dismissIssue:d,$startScan:()=>{s.scanner.state.$scanStalled||o("wordfence_scan",{},e=>{e.ok&&(s.scanner.state.$scanRunning=!0,s.scanner.issues.$new.splice(0,s.scanner.issues.$new.length),s.scanner.issues.$ignored.splice(0,s.scanner.issues.$ignored.length),p.clear(),l.emit("scanStarted"),l.emit("issueCountsUpdated",e.issueCounts))})},$killScan:(e=null)=>{o("wordfence_killScan",{},t=>{t.ok?(s.scanner.state.$scanRunning=!1,s.scanner.state.$scanFailed=!1,p.clear(),l.emit("scanStopped"),"function"==typeof e&&e(!0)):"function"==typeof e&&e(!1)},t=>{"function"==typeof e&&e(!1)})},$startActivityLogUpdates:()=>{s.scanner.activityLog.$updateInterval&&clearInterval(s.scanner.activityLog.$updateInterval),s.scanner.activityLog.$updateInterval=setInterval(()=>{m()},n.plugin.update_interval)},$stopActivityLogUpdates:()=>{s.scanner.activityLog.$updateInterval&&(clearInterval(s.scanner.activityLog.$updateInterval),s.scanner.activityLog.$updateInterval=!1)},$updateActivityLog:m}}var KF={key:0,class:"wf-flex-horizontal wf-flex-full-width wf-no-top"},jF=["href"],GF={class:"wf-right wf-padding-add-left"},QF=["href"],qF={class:"wf-right wf-padding-add-left"},ZF=["href"],JF={class:"wf-fa wf-fa-question-circle-o"},zF={class:"wf-right wf-padding-add-left"},XF={class:"wf-right wf-padding-add-left"},eN={key:0},tN={key:1},aN=["href"],nN={class:"wf-right wf-padding-add-left"},lN={class:"wf-right wf-padding-add-left"},sN=["href"],oN={href:"https://status.wordfence.com",target:"_blank",rel:"noopener noreferrer"},iN={class:"wf-add-top"},rN={class:"wf-right wf-padding-add-left"},uN=["href"],cN={href:"https://status.wordfence.com",target:"_blank",rel:"noopener noreferrer"},dN={class:"wf-add-top"},pN={class:"wf-right wf-padding-add-left"},fN={__name:"ScanFailed",setup(e){const a=b("__"),n=b("sprintf"),l=b("wfconstants"),o=b("$dataStore"),{$killScan:i}=YF(),{$timeAgo:d,$makeDuration:p}=Un(),m=R(0),g=R(Date.now());T(()=>{m.value=setInterval(()=>{g.value=Date.now()},3e4)}),D(()=>{clearInterval(m.value)});const w=s(()=>{const e=(g.value-o.scanner.state.$lastScanStatusUpdate)/1e3;return e>l.scanner.limit.duration?d(l.scanner.limit.duration):d(e)});return(e,s)=>{const d=W("aria");return J(o).scanner.state.$scanFailed?(B(),u("ul",KF,[s[11]||(s[11]=c("li",null,[c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 116.93 108.46"},[c("path",{d:"M115.82,96.14,65.76,4.37a8.33,8.33,0,0,0-3.06-3.2,8.24,8.24,0,0,0-8.47,0,8.34,8.34,0,0,0-3.07,3.2L1.11,96.14a7.78,7.78,0,0,0,.13,8.21,8.16,8.16,0,0,0,3,3,8.13,8.13,0,0,0,4.14,1.11H108.52a8.36,8.36,0,0,0,7.17-4.11,7.78,7.78,0,0,0,.13-8.21Zm-49-6.52a2.09,2.09,0,0,1-.62,1.53,2,2,0,0,1-1.46.62H52.21a2,2,0,0,1-1.46-.62,2.08,2.08,0,0,1-.62-1.53V77.24a2.08,2.08,0,0,1,.62-1.53,2,2,0,0,1,1.46-.62H64.72a2,2,0,0,1,1.47.62,2.09,2.09,0,0,1,.62,1.53V89.62Zm-.13-24.37A1.45,1.45,0,0,1,66,66.32a2.66,2.66,0,0,1-1.53.42H52.4a2.81,2.81,0,0,1-1.56-.42,1.25,1.25,0,0,1-.65-1.08L49.08,35.46a1.56,1.56,0,0,1,.65-1.37,2.52,2.52,0,0,1,1.56-.72H65.64a2.51,2.51,0,0,1,1.57.72,1.43,1.43,0,0,1,.65,1.24Zm0,0"})])],-1)),J(o).scanner.state.$scanFailed===J(l).scanner.failure.general||J(o).scanner.state.$scanFailed===J(l).scanner.failure.forkfailed?(B(),u(t,{key:0},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,[f(Y(J(a)("The previous scan has failed. Some sites may need adjustments to run scans reliably."))+" ",1),c("a",{href:J(l).support.url.scan_fails,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Click here for steps you can try.")),1),h(J(Kn))],8,jF)])]),c("li",GF,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[0]||(s[0]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.timeout?(B(),u(t,{key:1},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,[f(Y(J(n)(J(a)("The current scan looks like it has failed. Its last status update was more than %s ago. You may continue to wait in case it resumes or stop and restart the scan. Some sites may need adjustments to run scans reliably."),w.value))+" ",1),c("a",{href:J(l).support.url.scan_fails,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Click here for steps you can try.")),1),h(J(Kn))],8,QF)])]),c("li",qF,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[1]||(s[1]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Cancel Scan")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.duration?(B(),u(t,{key:2},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,[f(Y(J(n)(J(a)("The previous scan has terminated because the time limit of %s was reached. This limit can be customized on the options page."),J(p)(J(l).scanner.limit.duration)))+" ",1),c("a",{href:J(l).support.url.scan_option_overall_time_limit,target:"_blank",rel:"noopener noreferrer",class:"wf-inline-help"},[re(c("i",JF,null,512),[[d,{hidden:!0}]]),h(J(Kn))],8,ZF)])]),c("li",zF,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[2]||(s[2]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.versionchange?(B(),u(t,{key:3},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,Y(J(a)("The previous scan has terminated because we detected an update occurring during the scan.")),1)]),c("li",XF,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[3]||(s[3]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.starttimeout||J(o).scanner.state.$scanFailed===J(l).scanner.failure.callbackfailed?(B(),u(t,{key:4},[c("li",null,[c("h4",null,Y(J(a)("Scan Stage Failed")),1),c("p",null,[f(Y(J(a)("A scan stage has failed to start. This is often because the site either cannot make outbound requests or is blocked from connecting to itself."))+" ",1),1===J(l).scanner.limit.resume_attempts?(B(),u("span",eN,Y(J(a)("Wordfence will make one attempt to resume each failed scan stage. This scan may recover if this attempt is successful.")),1)):(B(),u("span",tN,Y(J(n)(J(a)("Wordfence will make up to %d attempts to resume each failed scan stage. This scan may recover if one of these attempts is successful."),J(l).scanner.limit.resume_attempts)),1)),s[8]||(s[8]=f()),c("a",{href:J(l).support.url.scan_failed_start,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Click here for steps you can try.")),1),h(J(Kn))],8,aN)])]),c("li",nN,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[4]||(s[4]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.sslunavailable?(B(),u(t,{key:5},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,Y(J(a)("Scans are not functional because SSL is unavailable.")),1)]),c("li",lN,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[5]||(s[5]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.apifailed?(B(),u(t,{key:6},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,[f(Y(J(a)("The scan has failed because we were unable to contact the Wordfence servers. Some sites may need adjustments to run scans reliably."))+" ",1),c("a",{href:J(l).support.url.scan_fails,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Click here for steps you can try.")),1),h(J(Kn))],8,sN),s[9]||(s[9]=f()),c("a",oN,[f(Y(J(a)("Check for a server outage.")),1),h(J(Kn))])]),c("p",iN,Y(J(a)("The error returned was:")),1),c("pre",null,[h(J(Ep),{unsafeHTML:J(o).scanner.state.$lastScanCompleted},null,8,["unsafeHTML"])])]),c("li",rN,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[6]||(s[6]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):J(o).scanner.state.$scanFailed===J(l).scanner.failure.apiinvalid||J(o).scanner.state.$scanFailed===J(l).scanner.failure.apierror?(B(),u(t,{key:7},[c("li",null,[c("h4",null,Y(J(a)("Scan Failed")),1),c("p",null,[f(Y(J(a)("The scan has failed because we received an unexpected response from the Wordfence servers. This may be a temporary error, though some sites may need adjustments to run scans reliably."))+" ",1),c("a",{href:J(l).support.url.scan_fails,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a)("Click here for steps you can try.")),1),h(J(Kn))],8,uN),s[10]||(s[10]=f()),c("a",cN,[f(Y(J(a)("Check for a server outage.")),1),h(J(Kn))])]),c("p",dN,Y(J(a)("The error returned was:")),1),c("pre",null,[h(J(Ep),{unsafeHTML:J(o).scanner.state.$lastScanCompleted},null,8,["unsafeHTML"])])]),c("li",pN,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:s[7]||(s[7]=ce((...e)=>J(i)&&J(i)(...e),["prevent","stop"]))},[f(Y(J(a)("Close")),1)])),[[d,{role:"button"}]])])],64)):r("",!0)])):r("",!0)}}},hN={class:"wfSummaryDate"},mN={key:0,href:"https://www.wordfence.com/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},gN={key:1,class:"wfSummaryLoading"},wN={__name:"ActivityLogEntry",props:{item:{type:Object,required:!0},measureRef:{type:Function,default:null}},setup(e){const t=b("__"),a=b("wfconstants"),{$isDisclosureActive:n}=hh(),{$hasOwn:l}=cn(),o=R(!1),{item:i}=Q(e);T(()=>{o.value=n("wf-scan-activity-log")});const d=s(()=>{let e=[];return e.push("wfActivityLine"),a.debug&&e.push("wf"+i.value.type),e}),p=s(()=>{let e=[];return e.push("wfSummaryMsg"),i.value.final&&e.push("wfSummaryFinal"),e}),m=s(()=>{let e=[];switch(e.push("wfSummaryResult"),i.value.result?.type){case"ok":case"result":e.push("wfSummaryOK");break;case"bad":e.push("wfSummaryBad");break;case"error":e.push("wfSummaryErr");break;case"ignored":e.push("wfSummaryIgnored")}return e});return(a,n)=>(B(),u("li",{class:C(d.value),ref:e.measureRef},[c("div",hN,[n[0]||(n[0]=f("[",-1)),h(J(Mi),{timestamp:J(i).timestamp,dateFormat:"%b %d %H:%M:%S"},null,8,["timestamp"]),n[1]||(n[1]=f("]",-1))]),c("div",{class:C(p.value)},[h(J(Ep),{unsafeHTML:J(i).message},null,8,["unsafeHTML"])],2),J(l)(J(i),"result")?(B(),u("div",{key:0,class:C(m.value)},[f(Y(J(i).result.message),1),J(i).result.premium?(B(),u("a",mN,Y(J(t)("Paid Members Only"))+" ("+Y(J(t)("opens in new tab"))+")",1)):r("",!0),J(i).result.loading?(B(),u("div",gN)):r("",!0)],2)):r("",!0)],2))}},vN={key:0,class:"wf-alert wf-alert-danger",id:"wf-scan-failed"},yN={class:"wf-flex-horizontal wf-flex-vertical-xs wf-flex-full-width wf-no-top wf-no-bottom"},bN={id:"wf-scan-last-status"},AN={id:"wf-scan-activity-log-controls"},kN=["href"],_N={class:"wf-scan-activity-log-visible"},xN={class:"wf-scan-activity-log-hidden"},CN={key:1,id:"wf-scan-running-bar"},SN={key:0},IN={__name:"ScanProgressDetailed",setup(e){const a=b("__"),n=b("$mitt"),l=b("wfconstants"),o=b("$dataStore"),{$isDisclosureActive:d,$setDisclosureActive:p}=hh(),{$startActivityLogUpdates:m,$updateActivityLog:g}=YF(),{$addQueryArg:w}=Un(),v=R(!1);T(()=>{v.value=d("wf-scan-activity-log"),g(),m()});const y=()=>{v.value=!v.value,p("wf-scan-activity-log",v.value),v.value&&$()},A=ee("activityLogScroll"),k=s(()=>o.scanner.activityLog.$log.length),_=s(()=>{const e=o.scanner.activityLog.$log,t=e.at(-1);return t?[e.length,t.timestamp,t.message,t.result?.message??"",t.result?.loading?1:0,t.final?1:0].join("|"):""}),S=(D=s(()=>({count:k.value,getScrollElement:()=>A.value,estimateSize:()=>19,measureElement:e=>e.getBoundingClientRect().height,overscan:12})),function(e){const t=new VF(J(e)),a=U(t),n=t._didMount();return oe(()=>J(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),oe(()=>J(e),e=>{t.setOptions({...e,onChange:(t,n)=>{var l;Z(a),null==(l=e.onChange)||l.call(e,t,n)}}),t._willUpdate(),Z(a)},{immediate:!0}),L(n),a}(s(()=>({observeElementRect:EF,observeElementOffset:NF,scrollToFn:HF,...J(D)}))));var D;let M=!1,O=!1;const $=()=>{M?O=!0:(M=!0,x(()=>{requestAnimationFrame(()=>{const e=o.scanner.activityLog.$log.length-1;M=!1,e>=0&&S.value.scrollToIndex(e,{align:"end"}),O&&(O=!1,$())})}))};oe(_,(e,t)=>{v.value&&e&&e!==t&&(()=>{const e=A.value;return!e||e.scrollHeight-(e.scrollTop+e.clientHeight)<=e.clientHeight})()&&$()});const P=e=>{e&&S.value.measureElement(e)},E=s(()=>w(l.plugin.url.scan_activity_log,{nonce:o.$wordfence.nonce["wp-ajax"]}));return(e,l)=>{const s=W("aria");return B(),u("div",null,[J(o).scanner.state.$scanFailed?(B(),u("div",vN,[h(J(fN))])):r("",!0),c("ul",yN,[c("li",bN,Y(J(o).scanner.activityLog.$lastStatusMessage),1),c("li",AN,[re((B(),u("a",{href:"#",id:"wf-scan-email-activity-log",onClick:l[0]||(l[0]=ce(e=>J(n).emit("showModal",{name:"scanner-email-activity-log-modal"}),["stop","prevent"]))},[h(J(Vs),{text:J(a)("Email activity log"),xs:J(a)("Email log")},null,8,["text","xs"])])),[[s,{role:"button"}]]),l[1]||(l[1]=f(" ",-1)),c("a",{href:E.value,id:"wf-scan-full-activity-log",target:"_blank"},[h(J(Vs),{text:J(a)("View full log"),xs:J(a)("View log")},null,8,["text","xs"]),h(J(Kn))],8,kN),l[2]||(l[2]=f(" ",-1)),re((B(),u("a",{href:"#",id:"wf-scan-toggle-activity-log",class:C({"wf-active":v.value}),onClick:ce(y,["stop","prevent"])},[c("span",_N,Y(J(a)("Hide log")),1),c("span",xN,Y(J(a)("Show log")),1)],2)),[[s,{role:"button"}]])])]),J(o).scanner.state.$scanRunning?(B(),u("div",CN,[...l[3]||(l[3]=[c("div",{id:"wf-scan-running-bar-pill"},null,-1)])])):r("",!0),h(J(qs),null,{default:ie(()=>[v.value?(B(),u("div",SN,[c("div",{id:"wf-scan-activity-log-scroll",ref_key:"activityLogScroll",ref:A},[c("ul",{id:"wf-scan-activity-log",ref:"activityLog",style:I({height:`${J(S).getTotalSize()}px`})},[(B(!0),u(t,null,F(J(S).getVirtualItems(),e=>(B(),i(J(wN),{item:J(o).scanner.activityLog.$log[e.index],key:J(o).scanner.activityLog.$log[e.index]?.ctime??e.index,style:I({transform:`translateY(${e.start}px)`}),"measure-ref":P,"data-index":e.index},null,8,["item","style","data-index"]))),128))],4)],512)])):r("",!0)]),_:1})])}}},DN={class:"wf-issue-site-cleaning"},MN={class:"wf-issue-summary"},TN={key:0,class:"wf-issue-short"},LN={key:1,class:"wf-issue-short"},ON={key:2,class:"wf-issue-short"},BN={key:0},$N={key:3,class:"wf-issue-controls"},PN=["href"],EN={key:4,class:"wf-issue-controls"},RN=["href"],FN={__name:"SiteCleaningCallout",props:{highSense:{default:!1},betaSigs:{default:!1}},setup(e){const t=b("__"),a=b("wfconstants"),{$isAtLeastCare:n,$isBelowCare:l}=Qs();return(s,o)=>(B(),u("ul",DN,[c("li",MN,[c("ul",null,[o[0]||(o[0]=p('<li class="wf-issue-icon-colored"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 140.65 149.02"><defs><clipPath id="a" transform="translate(0)"><rect class="a" y="0.03" width="139.84" height="149.01"></rect></clipPath></defs><path class="b" d="M105.39,109.26l-1.28.72,1.13-.94Zm.43-1.68-1.25-.92,1.07,1.12Zm2.45-3-1.45,2.68.24.12Zm-.9,3.33,3.42-.53-3.45.27Zm-1.31.59c.35,2.61,3.43,4.65,2.38,7.42a7.71,7.71,0,0,1-1.58,2.14l-1.14-.88-1.1,1.43a9.68,9.68,0,1,0,3.12,2.46l1.13-1.46-1.36-1.05.3-.35a6.2,6.2,0,0,0,1.6-2.69c.7-2.71-2.21-4.58-2.54-7.07C106.8,108,106,108,106.07,108.52Z" transform="translate(0)"></path><path class="c" d="M100.32,137.15a9.87,9.87,0,1,1,4.26-18.77l1.12-1.46,1.15.89.29-.33a5.2,5.2,0,0,0,1.13-1.61c.59-1.57-.21-2.89-1.07-4.29a8.12,8.12,0,0,1-1.33-3h0a.54.54,0,0,1,.49-.62.6.6,0,0,1,.7.52,7.45,7.45,0,0,0,1.29,2.83c.83,1.31,1.68,2.66,1.25,4.32a6.41,6.41,0,0,1-1.64,2.77l-.16.18,1.36,1L108,121.08a9.87,9.87,0,0,1-7,16Zm0-19.35-.68,0a9.48,9.48,0,1,0,8,3.38l-.1-.12,1.11-1.43-1.37-1.05.12-.15c.09-.12.2-.24.31-.36a6.06,6.06,0,0,0,1.55-2.61c.39-1.5-.38-2.72-1.2-4a7.71,7.71,0,0,1-1.34-3,.22.22,0,0,0-.26-.18.16.16,0,0,0-.15.19,7.87,7.87,0,0,0,1.28,2.89c.86,1.42,1.75,2.88,1.1,4.63a5.58,5.58,0,0,1-1.21,1.74l-.41.46-.12.14-1.13-.87-1.08,1.4-.14-.07A9.49,9.49,0,0,0,100.32,117.81Zm3.88-7.66-.22-.32,1.29-1.08.39.57Zm3-2-.06-.5-.6-.29,1.55-2.85.35.17-1.22,2.81,3.55-.28,0,.38Zm-1.56-.09-1.22-1.28.25-.29,1.42,1Z" transform="translate(0)"></path><path class="b" d="M136.76,95.75,133,99.36a9.84,9.84,0,0,0-7.74-.79l-.29-1a1.83,1.83,0,1,0-3.52,1l.51,1.75-.11.1L119.4,97.9a1.83,1.83,0,0,0-2.65,2.53l2.74,2.87a9.83,9.83,0,0,0-1,2.72l-4.17-.1a1.83,1.83,0,0,0-.08,3.66l4.18.1a9.82,9.82,0,0,0,.89,2.74l-.3.28a1.83,1.83,0,0,0,2.52,2.65,9.86,9.86,0,0,0,5.46,2.51l1.24,4.31a1.83,1.83,0,1,0,3.52-1l-1-3.56a9.83,9.83,0,0,0,1.79-.67l1.18,1.24a1.83,1.83,0,1,0,2.65-2.53l-.87-.92a9.86,9.86,0,0,0,2.39-4.6l.91,0a1.83,1.83,0,1,0,.08-3.66l-.9,0a9.86,9.86,0,0,0-2.15-4.75l3.47-3.32a1.83,1.83,0,0,0-2.53-2.65Zm-4.29,10.59a4.6,4.6,0,0,1-4.07,6.29h-.32a4.58,4.58,0,0,1-2.7-1l-.23-.18a4.62,4.62,0,0,1-1.22-1.69,4.57,4.57,0,0,1-.35-1.48c0-.13,0-.27,0-.41s0-.21,0-.32a4.62,4.62,0,0,1,4.69-4.18l.4,0a4.65,4.65,0,0,1,3.78,2.89Z" transform="translate(0)"></path><g class="d"><path class="e" d="M130.25,2.76,95.39,70.35l.6.18a26,26,0,0,1,4.14,1.73,21.92,21.92,0,0,1,4.23,2.89L139.29,7.42a5.09,5.09,0,0,0-9-4.66Zm0,0" transform="translate(0)"></path><path class="e" d="M15.07,128.11A79,79,0,0,0,35.3,141.06,105.25,105.25,0,0,0,60.8,149h0a3.36,3.36,0,0,0,.47,0h.11c14-.46,24.91-5.12,32.43-13.86,9.89-11.49,13.46-28.77,12.77-43.62a18.16,18.16,0,0,0-4.69-11.69c-.22-.23-.45-.46-.69-.67a16.71,16.71,0,0,0-3.45-2.4,20.79,20.79,0,0,0-3.37-1.41A11.3,11.3,0,0,0,91,74.83c-4.91,0-9.61,3.08-13.21,6.23s-7.48,6.8-11.67,9.58c-4.6,3-9.64,4.58-14.89,6.07a127.82,127.82,0,0,1-20.77,4,169.19,169.19,0,0,1-18.84,1.11q-3.75,0-7.48-.2l-.43,0H3.45a3.46,3.46,0,0,0-3.27,4.58,52.56,52.56,0,0,0,14.88,22Zm-4.84-19.45h1.09a180.24,180.24,0,0,0,20.13-1.13c16.83-1.92,30.55-6,40.94-12.2a1.87,1.87,0,0,1,1-.26,1.9,1.9,0,0,1,.91.23c6,3.32,15.42,8.23,22.11,10.62a1.89,1.89,0,0,1,1.24,2c-.8,7-3.06,15.86-9,22.77-6.1,7.07-15.1,10.9-26.78,11.4H61.7a2.53,2.53,0,0,1-.45,0c-1.18-.21-4.08-.77-8-1.84,1.11-.49,2.26-1.08,3.42-1.73s2.09-1.23,3.12-1.9c3.21-2.07,6.32-4.42,8.73-6.35a.61.61,0,0,0-.63-1,83.68,83.68,0,0,1-18.08,4.68c-1.9.31-3.73.56-5.42.77-2,.25-3.77.44-5.26.58L38,134.7a81.9,81.9,0,0,1-9.4-5,37.24,37.24,0,0,0,3.94-.6c1.23-.25,2.47-.55,3.69-.88a96.5,96.5,0,0,0,9.35-3.12.41.41,0,0,0-.19-.79c-4.25.41-10.15.45-15.19.37-1.65,0-3.21-.06-4.58-.1-1.81-.05-3.31-.11-4.29-.15q-.87-.72-1.69-1.47-1.07-1-2.06-2c1-.1,2.09-.27,3.16-.47s2-.42,3-.68a93.34,93.34,0,0,0,10.52-3.42.41.41,0,0,0-.19-.79c-4,.38-9.44.44-14.26.39l-3.42-.06-3.31-.09A44.75,44.75,0,0,1,9.41,110a.93.93,0,0,1,.82-1.36Zm0,0" transform="translate(0)"></path></g><path class="f" d="M9.24,108.65h1.1a184.19,184.19,0,0,0,20.42-1.14c17.07-1.93,31-6,41.52-12.28a1.91,1.91,0,0,1,1-.26,1.93,1.93,0,0,1,.92.24c6.12,3.34,15.64,8.29,22.42,10.69a1.9,1.9,0,0,1,1.26,2c-.81,7-3.11,16-9.15,22.91-6.18,7.11-15.32,11-27.15,11.47h-.11a2.59,2.59,0,0,1-.46,0c-1.19-.21-4.14-.77-8.08-1.85,1.13-.49,2.29-1.08,3.47-1.74s2.12-1.23,3.17-1.91c3.25-2.08,6.41-4.45,8.86-6.39a.62.62,0,0,0-.63-1.05C62.4,131.54,55.55,133,49.42,134c-1.93.31-3.78.57-5.49.78-2,.25-3.82.44-5.33.59l-1.19-.53a83.27,83.27,0,0,1-9.53-5.08,38,38,0,0,0,4-.6c1.24-.25,2.5-.56,3.74-.89a98.4,98.4,0,0,0,9.48-3.14.41.41,0,0,0-.19-.8c-4.31.41-10.3.45-15.41.38-1.67,0-3.25-.06-4.65-.1-1.84-.05-3.36-.11-4.36-.15q-.88-.73-1.72-1.48-1.08-1-2.09-2c1-.1,2.11-.27,3.21-.48s2.06-.43,3.09-.68a95.18,95.18,0,0,0,10.66-3.44.41.41,0,0,0-.19-.8c-4.05.39-9.57.44-14.46.39l-3.47-.06-3.36-.09A45,45,0,0,1,8.41,110a.94.94,0,0,1,.83-1.37Z" transform="translate(0)"></path><path class="f" d="M61.44,143.29a3.56,3.56,0,0,1-.63-.06c-1.11-.19-4.13-.77-8.17-1.87l-2.73-.75,2.59-1.13c1-.46,2.18-1,3.38-1.7,1-.55,2-1.18,3.12-1.88,2.12-1.36,4.38-3,6.75-4.76A93.87,93.87,0,0,1,49.58,135c-1.79.29-3.65.55-5.53.78s-3.58.42-5.36.59l-.26,0-.24-.1-1.2-.53a84.56,84.56,0,0,1-9.65-5.14L24.83,129l3-.27a36.93,36.93,0,0,0,3.9-.59c1.15-.23,2.39-.53,3.67-.87,1.94-.52,3.83-1.12,5.51-1.7-3.13.13-6.94.17-11.39.11-1.68,0-3.26-.06-4.66-.1-1.84-.05-3.37-.11-4.37-.15h-.34l-.26-.22q-.89-.74-1.75-1.5c-.7-.63-1.42-1.31-2.13-2l-1.5-1.49,2.1-.21c1-.1,2-.25,3.12-.46s2-.41,3-.67c2.35-.59,4.66-1.31,6.69-2-2.9.13-6.39.17-10.44.12l-3.48-.06-3.37-.09h-.48l-.29-.38a46.1,46.1,0,0,1-3.84-6,1.91,1.91,0,0,1,0-1.9,1.93,1.93,0,0,1,1.67-.95h1.1a184.49,184.49,0,0,0,20.31-1.13c16.88-1.91,30.72-6,41.12-12.15a3,3,0,0,1,2.88,0c6.53,3.56,15.7,8.3,22.28,10.63A2.89,2.89,0,0,1,98.85,108c-.77,6.66-3,16.13-9.39,23.45s-15.75,11.3-27.87,11.82Zm-5.66-3.18c2.63.65,4.55,1,5.38,1.15l.28,0C73.06,140.8,82,137.06,88,130.16s8.17-16,8.91-22.37a.9.9,0,0,0-.6-1c-6.7-2.37-16-7.16-22.57-10.75a1,1,0,0,0-.91,0C62.14,102.4,48,106.57,30.88,108.51a186.66,186.66,0,0,1-20.53,1.14h-1a49.4,49.4,0,0,0,3.38,5.22l2.87.07L19,115c6.14.07,11-.06,14.35-.38a1.41,1.41,0,0,1,.64,2.72,95.67,95.67,0,0,1-10.78,3.48c-1.08.27-2.13.5-3.14.7l-1.21.21.57.52q.7.63,1.43,1.24l4,.14c1.39,0,3,.08,4.64.1a150.22,150.22,0,0,0,15.3-.37,1.41,1.41,0,0,1,.65,2.72,99.72,99.72,0,0,1-9.58,3.17c-1.33.36-2.6.66-3.8.9l-1.23.23c2.21,1.26,4.54,2.45,7,3.56l.94.42c1.68-.16,3.37-.35,5-.56,1.85-.23,3.69-.49,5.46-.77a82.57,82.57,0,0,0,18.11-4.64A1.62,1.62,0,0,1,69,131.14a109.57,109.57,0,0,1-8.94,6.45c-1.12.72-2.2,1.37-3.22,1.94ZM9.24,108.65v1h0Z" transform="translate(0)"></path><path class="b" d="M126.45,127.44c-1.95-2.46-6.17-2.35-9.44.24s-4.34,6.67-2.39,9.13a5.18,5.18,0,0,0,4.58,1.75,2.47,2.47,0,0,0,3,1.09,1.33,1.33,0,0,0,1.83.18l3.22-2.55a1.33,1.33,0,0,0,.25-1.82,2.48,2.48,0,0,0-.38-3.16A5.18,5.18,0,0,0,126.45,127.44Zm-6.58,9.14a2.75,2.75,0,1,1,.45-3.86A2.75,2.75,0,0,1,119.87,136.57Zm4.68-.53c-.12.19-.5.17-.91,0,.08.45,0,.82-.2.89s-.63-.31-.83-.89-.15-1.06.08-1.19.68-.11,1.18.2S124.7,135.81,124.55,136Zm.48-3.56a2.75,2.75,0,1,1,.45-3.86A2.75,2.75,0,0,1,125,132.49Z" transform="translate(0)"></path><path class="b" d="M132,138.94a1.34,1.34,0,0,0,.13.31l-4.54,1.21-.51.14-4.54,1.21a1.34,1.34,0,1,0-1.66,1.32,1.21,1.21,0,1,0,2.19.34v0l4.46-1.18.51-.14,4.46-1.18v0a1.21,1.21,0,1,0,1.73-1.38,1.34,1.34,0,1,0-2.22-.63Z" transform="translate(0)"></path><path class="b" d="M124.54,144.87a1.34,1.34,0,0,1,.27.19l2.21-4.15.25-.47,2.21-4.15a1.34,1.34,0,1,1,1.66-1.31,1.21,1.21,0,1,1-.17,2.21h0l-2.17,4.07-.25.47-2.17,4.07h0a1.21,1.21,0,1,1-1.74,1.37,1.34,1.34,0,1,1-.1-2.3Z" transform="translate(0)"></path></svg></li>',1)),e.betaSigs?(B(),u("li",TN,[c("p",null,[c("strong",null,Y(J(t)("The results of your scan may indicate that you could benefit from Wordfence Site Cleaning")),1)]),c("p",null,Y(J(t)("Since you have the beta threat defense feed enabled, there is a high likelihood that your results could include false positives. If you think you have indeed been hacked, our team of security experts can help.","wordfence")),1)])):e.highSense?(B(),u("li",LN,[c("p",null,[c("strong",null,Y(J(t)("The results of your scan may indicate that you could benefit from Wordfence Site Cleaning")),1)]),c("p",null,Y(J(t)("Since you have High Sensitivity scanning enabled, there is a very high likelihood that your results will include false positives. If you think you have indeed been hacked, our team of security experts can help.","wordfence")),1)])):(B(),u("li",ON,[c("p",null,[c("strong",null,Y(J(t)("Need help with a security issue?")),1)]),J(l)?(B(),u("p",BN,Y(J(t)("Sign up for Wordfence Care and we'll take care of it. Our security experts will clean your site, resolve the infection, and perform a security audit. Get hands-on support with any security issue including help installing, configuring and optimizing Wordfence.")),1)):r("",!0)])),J(n)?(B(),u("li",$N,[c("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:J(a).marketing.url.scanGetHelp,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(t)("Get Help")),1),h(J(Kn))],8,PN)])):(B(),u("li",EN,[c("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:J(a).marketing.url.scanGetHelpWordfenceCare,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(t)("Learn More About Wordfence Care","wordfence")),1),h(J(Kn))],8,RN)]))])])]))}},NN=["data-issue-id","data-issue-type","data-issue-severity","data-high-sensitivity"],WN={class:"wf-issue-icon"},HN={class:"wf-issue-short wf-hidden-xs"},VN={class:"wf-issue-message"},UN={class:"wf-issue-type"},YN={class:"wf-issue-stats wf-hidden-xs"},KN={class:"wf-issue-time"},jN={key:0,class:"wf-issue-severity-critical"},GN={key:1,class:"wf-issue-severity-high"},QN={key:2,class:"wf-issue-severity-medium"},qN={key:3,class:"wf-issue-severity-low"},ZN={class:"wf-issue-short-stats wf-hidden-sm wf-hidden-md wf-hidden-lg"},JN={class:"wf-issue-message wf-split-word-xs"},zN={class:"wf-issue-type"},XN={class:"wf-issue-time"},eW={key:0,class:"wf-issue-severity-critical"},tW={key:1,class:"wf-issue-severity-high"},aW={key:2,class:"wf-issue-severity-medium"},nW={key:3,class:"wf-issue-severity-low"},lW={class:"wf-issue-detail"},sW={__name:"ScanIssue",setup(e){const t=b("issueType"),a=b("issueTypeDisplay"),n=b("issueData"),l=b("__"),o=b("$mitt"),i=b("wfconstants");T(()=>{o.on("showDetails",w),d.value=g(n.value.id)}),D(()=>{o.off("showDetails",w)});const d=R(!1),p=s(()=>{let e=[];switch(e.push(`wf-issue-${t}`),n.value.severity){case i.scanner.severity.critical:e.push("wf-issue-severity-critical");break;case i.scanner.severity.high:e.push("wf-issue-severity-high");break;case i.scanner.severity.medium:e.push("wf-issue-severity-medium");break;case i.scanner.severity.low:e.push("wf-issue-severity-low");break;default:e.push("wf-issue-severity-none")}return d.value&&e.push("wf-active"),e}),m=e=>`wf-scan-issue-expanded-${e}`,g=e=>{const t=m(e);return!!window.localStorage&&!!parseInt(window.localStorage.getItem(t))},w=e=>{if(n.value.id===e&&(d.value=!d.value,window.localStorage)){const t=m(e);window.localStorage.setItem(t,d.value?1:0)}};return(e,s)=>(B(),u("ul",{class:C(["wf-issue",p.value]),"data-issue-id":J(n).id,"data-issue-type":J(t),"data-issue-severity":J(n).severity,"data-high-sensitivity":J(n).data&&J(n).data.highSense?1:0},[c("li",{class:"wf-issue-summary",onClick:s[2]||(s[2]=ce(e=>J(o).emit("showDetails",J(n).id),["stop","prevent"]))},[c("ul",null,[c("li",WN,[N(e.$slots,"icon")]),c("li",HN,[c("div",VN,[N(e.$slots,"short-message",{},()=>[f(Y(J(n).shortMsg),1)])]),c("div",UN,Y(J(l)("Type"))+": "+Y(J(a)),1)]),c("li",YN,[c("div",KN,[f(Y(J(l)("Issue Found"))+" ",1),h(J(Mi),{timestamp:J(n).time},null,8,["timestamp"])]),J(n).severity==J(i).scanner.severity.critical?(B(),u("div",jN,Y(J(l)("Critical")),1)):J(n).severity==J(i).scanner.severity.high?(B(),u("div",GN,Y(J(l)("High")),1)):J(n).severity==J(i).scanner.severity.medium?(B(),u("div",QN,Y(J(l)("Medium")),1)):J(n).severity==J(i).scanner.severity.low?(B(),u("div",qN,Y(J(l)("Low")),1)):r("",!0)]),c("li",ZN,[c("div",JN,[N(e.$slots,"short-message",{},()=>[f(Y(J(n).shortMsg),1)])]),c("div",zN,Y(J(l)("Type"))+": "+Y(J(a)),1),c("div",XN,[f(Y(J(l)("Found"))+" ",1),h(J(Mi),{timestamp:J(n).time},null,8,["timestamp"])]),J(n).severity==J(i).scanner.severity.critical?(B(),u("div",eW,Y(J(l)("Critical")),1)):J(n).severity==J(i).scanner.severity.high?(B(),u("div",tW,Y(J(l)("High")),1)):J(n).severity==J(i).scanner.severity.medium?(B(),u("div",aW,Y(J(l)("Medium")),1)):J(n).severity==J(i).scanner.severity.low?(B(),u("div",nW,Y(J(l)("Low")),1)):r("",!0),c("div",{class:"wf-issue-controls",onClick:s[0]||(s[0]=ce(()=>{},["stop"]))},[N(e.$slots,"issue-controls")])]),c("li",{class:"wf-issue-controls wf-hidden-xs",onClick:s[1]||(s[1]=ce(()=>{},["stop"]))},[N(e.$slots,"issue-controls")])])]),h(J(qs),null,{default:ie(()=>[re(c("li",lW,[N(e.$slots,"issue-details")],512),[[se,d.value]])]),_:3})],10,NN))}},oW=(e,t)=>{const a=e.__vccOpts||e;for(const[n,l]of t)a[n]=l;return a},iW={viewBox:"0 0 106.37 106.37"},rW=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",iW,[...t[0]||(t[0]=[c("path",{d:"M100.89,64.92,87.34,51.36a18.89,18.89,0,0,0-26.85.26l-5.74-5.73a18.34,18.34,0,0,0,5.74-13.62A18,18,0,0,0,55.07,19L41.65,5.54A17.86,17.86,0,0,0,28.35,0,18,18,0,0,0,15.12,5.41L5.54,14.93A17.79,17.79,0,0,0,0,28.16a18.09,18.09,0,0,0,5.48,13.3L19,55a18.12,18.12,0,0,0,13.3,5.48,18.27,18.27,0,0,0,13.56-5.74l5.73,5.74a18.32,18.32,0,0,0-5.73,13.62A18,18,0,0,0,51.3,87.34l13.43,13.49a18.81,18.81,0,0,0,26.53.13l9.58-9.52a17.79,17.79,0,0,0,5.54-13.23,18.1,18.1,0,0,0-5.48-13.3ZM45.89,37l-1.21-1.24c-.67-.7-1.14-1.16-1.4-1.4s-.68-.56-1.24-1a5.26,5.26,0,0,0-1.66-.85,6.64,6.64,0,0,0-1.79-.23,6.24,6.24,0,0,0-6.26,6.26,6.6,6.6,0,0,0,.23,1.79A5.19,5.19,0,0,0,33.41,42a14.48,14.48,0,0,0,1,1.24c.24.26.71.73,1.4,1.4L37,45.89a6.3,6.3,0,0,1-4.7,2,6,6,0,0,1-4.43-1.76L14.34,32.59a6,6,0,0,1-1.82-4.43,5.94,5.94,0,0,1,1.82-4.36l9.58-9.52a6.3,6.3,0,0,1,4.43-1.76,6,6,0,0,1,4.43,1.83L46.21,27.83A6,6,0,0,1,48,32.26,6.33,6.33,0,0,1,45.89,37ZM92,82.58,82.45,92.1A6.28,6.28,0,0,1,78,93.79,6,6,0,0,1,73.59,92L60.16,78.54a6,6,0,0,1-1.82-4.43,6.33,6.33,0,0,1,2.15-4.76l1.21,1.24c.67.69,1.14,1.16,1.4,1.4a15,15,0,0,0,1.24,1,5.18,5.18,0,0,0,1.66.85,6.6,6.6,0,0,0,1.79.23A6.23,6.23,0,0,0,74,67.79,6.76,6.76,0,0,0,73.82,66,5.34,5.34,0,0,0,73,64.33c-.41-.56-.74-1-1-1.24s-.71-.73-1.4-1.4l-1.24-1.2A6.2,6.2,0,0,1,74,58.4a6,6,0,0,1,4.43,1.82L92,73.78a6,6,0,0,1,1.83,4.43A6,6,0,0,1,92,82.58Zm0,0"},null,-1)])])}]]),uW={class:"wf-issue-control-label"},cW={__name:"IgnoreIssue",props:{ignoreC:{type:[String,null],default:null},ignoreP:{type:[String,null],default:null}},setup(e){const a=e,n=ee("choiceMenu"),l=b("issueData"),o=b("$"),i=b("__"),d=b("$mitt"),p=b("wfconstants");T(()=>{o(n.value).menu().hide()});const{ignoreC:f,ignoreP:h}=Q(a),m=s(()=>{if(J(l).status===p.scanner.status.new){if(f.value&&h.value)return"choice";if(f.value)return p.scanner.status.ignorec;if(h.value)return p.scanner.status.ignorep}return p.scanner.status.new}),g=s(()=>{if(J(l).status===p.scanner.status.new){if(f.value&&h.value);else{if(f.value)return f.value;if(h.value)return h.value}return i("Ignore")}return i("Stop Ignoring")}),w=(e,t)=>{"choice"===t?(o(n.value).menu().show().position({my:"left top",at:"left bottom",of:e.target}),o(document).on("click",()=>{o(n.value).menu().hide()})):(d.emit("changeIgnore",{issueID:J(l).id,ignoreAction:t}),o(n.value).menu().hide())};return(e,a)=>{const l=W("aria");return B(),u(t,null,[re((B(),u("a",{href:"#",class:"wf-issue-control wf-issue-control-ignore",onClick:a[0]||(a[0]=ce(e=>w(e,m.value),["prevent","stop"]))},[a[3]||(a[3]=c("svg",{class:"wf-issue-control-icon",viewBox:"0 0 116.8 87.6"},[c("path",{d:"M82.45,52A28.43,28.43,0,0,0,87.6,35.46,31.39,31.39,0,0,0,87.08,30L68.83,62.7A28.69,28.69,0,0,0,82.45,52Zm0,0"}),c("path",{d:"M85.12,6.91a1.64,1.64,0,0,0,.06-.59,2,2,0,0,0-1-1.76l-1.27-.75Q81.8,3.2,80.82,2.61c-.65-.39-1.37-.79-2.15-1.2s-1.45-.75-2-1A3.5,3.5,0,0,0,75.48,0a2,2,0,0,0-1.83,1L70.13,7.37A63.82,63.82,0,0,0,58.4,6.26a61.76,61.76,0,0,0-32.33,8.86A76,76,0,0,0,1.3,39.3a8.4,8.4,0,0,0,0,9,77.76,77.76,0,0,0,13.59,16A67.46,67.46,0,0,0,32.07,75.54q-2.87,4.89-2.87,5.67a2,2,0,0,0,1,1.83q8,4.56,8.74,4.56a2,2,0,0,0,1.82-1L44,80.76q6.91-12.32,20.6-37T85.12,6.91ZM36.18,68.25q-17-7.63-27.83-24.44a64,64,0,0,1,24.83-23,29,29,0,0,0-.78,27.89,28.73,28.73,0,0,0,8.86,10.36ZM60.62,21a3,3,0,0,1-2.22.91A13.58,13.58,0,0,0,44.84,35.46a3.13,3.13,0,1,1-6.26,0,19.07,19.07,0,0,1,5.83-14,19.07,19.07,0,0,1,14-5.83A3.14,3.14,0,0,1,60.62,21Zm0,0"}),c("path",{d:"M115.5,39.3a64.55,64.55,0,0,0-9.42-12,77.27,77.27,0,0,0-11.89-10l-4.11,7.3A66.76,66.76,0,0,1,108.46,43.8a67.26,67.26,0,0,1-19.65,20,54.11,54.11,0,0,1-25.59,8.93l-4.83,8.6a62.26,62.26,0,0,0,27.34-6.19,70.17,70.17,0,0,0,22.65-17.4,73,73,0,0,0,7.1-9.45,8.4,8.4,0,0,0,0-9Zm0,0"})],-1)),c("span",uW,Y(g.value),1)])),[[l,{role:"button"}]]),J(f)&&J(h)?(B(),u("ul",{key:0,class:"wf-issue-control-ignore-menu",ref_key:"choiceMenu",ref:n},[c("li",{class:"wf-issue-control-ignore-menu-ignorec",onClick:a[1]||(a[1]=ce(e=>w(e,J(p).scanner.status.ignorec),["prevent","stop"]))},[c("div",null,Y(J(f)),1)]),c("li",{class:"wf-issue-control-ignore-menu-ignorep",onClick:a[2]||(a[2]=ce(e=>w(e,J(p).scanner.status.ignorep),["prevent","stop"]))},[c("div",null,Y(J(h)),1)])],512)):r("",!0)],64)}}},dW={class:"wf-issue-control-label"},pW={__name:"ShowDetails",setup(e){const t=b("__"),a=b("$mitt"),n=b("issueData");return(e,l)=>{const s=W("aria");return re((B(),u("a",{href:"#",class:"wf-issue-control wf-issue-control-show-details",onClick:l[0]||(l[0]=ce(e=>J(a).emit("showDetails",J(n).id),["prevent","stop"]))},[l[1]||(l[1]=p('<svg class="wf-issue-control-icon-inactive" viewBox="0 0 108.46 108.46"><path d="M106,94.25,83.69,71.89a44.66,44.66,0,0,0,8.08-26,45.12,45.12,0,0,0-3.62-17.83A45,45,0,0,0,63.71,3.62a45.74,45.74,0,0,0-35.66,0A45,45,0,0,0,3.62,28.06a45.74,45.74,0,0,0,0,35.65A44.94,44.94,0,0,0,28.06,88.16a45.12,45.12,0,0,0,17.83,3.62,44.62,44.62,0,0,0,26-8.09L94.25,106a7.74,7.74,0,0,0,5.86,2.48A8.34,8.34,0,0,0,106,94.25ZM66.52,66.52a28.12,28.12,0,0,1-20.63,8.57,28.13,28.13,0,0,1-20.63-8.57,28.12,28.12,0,0,1-8.57-20.63,28.11,28.11,0,0,1,8.57-20.63,28.12,28.12,0,0,1,20.63-8.57,28.12,28.12,0,0,1,20.63,8.57,28.12,28.12,0,0,1,8.57,20.63,28.13,28.13,0,0,1-8.57,20.63Zm0,0"></path><path d="M64.66,41.72H50.06V27.11A2.12,2.12,0,0,0,48,25H43.8a2.11,2.11,0,0,0-2.08,2.09v14.6H27.12A2.11,2.11,0,0,0,25,43.8V48a2.12,2.12,0,0,0,2.09,2.09h14.6v14.6a2.11,2.11,0,0,0,2.08,2.09H48a2.11,2.11,0,0,0,2.09-2.09V50.06h14.6A2.12,2.12,0,0,0,66.74,48V43.8a2.11,2.11,0,0,0-2.08-2.09Zm0,0"></path></svg><svg class="wf-issue-control-icon-active" viewBox="0 0 108.46 108.46"><path d="M106,94.25,83.69,71.89a44.66,44.66,0,0,0,8.08-26,45.12,45.12,0,0,0-3.62-17.83A45,45,0,0,0,63.71,3.62a45.74,45.74,0,0,0-35.66,0A45,45,0,0,0,3.62,28.06a45.74,45.74,0,0,0,0,35.65A44.94,44.94,0,0,0,28.06,88.16a45.12,45.12,0,0,0,17.83,3.62,44.62,44.62,0,0,0,26-8.09L94.25,106a7.74,7.74,0,0,0,5.86,2.48A8.34,8.34,0,0,0,106,94.25ZM66.52,66.52a28.12,28.12,0,0,1-20.63,8.57,28.13,28.13,0,0,1-20.63-8.57,28.12,28.12,0,0,1-8.57-20.63,28.11,28.11,0,0,1,8.57-20.63,28.12,28.12,0,0,1,20.63-8.57,28.12,28.12,0,0,1,20.63,8.57,28.12,28.12,0,0,1,8.57,20.63,28.13,28.13,0,0,1-8.57,20.63Zm0,0"></path><path d="M64.66,41.72H27.12A2.11,2.11,0,0,0,25,43.8V48a2.12,2.12,0,0,0,2.09,2.09H64.66A2.12,2.12,0,0,0,66.74,48V43.8a2.11,2.11,0,0,0-2.08-2.09Zm0,0"></path></svg>',2)),c("span",dW,Y(J(t)("Details")),1)])),[[s,{role:"button"}]])}}},fW={__name:"MarkAsFixed",setup(e){const t=b("__"),a=b("$mitt"),n=b("issueData");return(e,l)=>{const s=W("aria");return re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-issue-control-mark-fixed",onClick:l[0]||(l[0]=ce(e=>J(a).emit("markFixed",J(n).id),["prevent","stop"]))},[f(Y(J(t)("Mark as Fixed")),1)])),[[s,{role:"button"}]])}}},hW={key:0},mW={class:"wfWarn wf-split-word"},gW={class:"wf-issue-detail-controls"},wW={__name:"IssueCheckGSB",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","checkGSB"),$("issueTypeDisplay",t("URL")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.badURL?(B(),u("li",hW,[c("strong",null,Y(J(t)("Bad URL"))+": ",1),c("strong",mW,Y(J(a).data.badURL),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",gW,[h(J(fW))])])]),_:1}))}},vW={viewBox:"0 0 20 20"},yW=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",vW,[...t[0]||(t[0]=[c("g",null,[c("path",{d:"M18 13h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01h-4c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2h-5v2h1c.55 0 1 .45 1 1.01v2.98c0 .56-.45 1.01-1 1.01H8c-.55 0-1-.45-1-1.01v-2.98c0-.56.45-1.01 1-1.01h1v-2H4v2h1c.55 0 1 .45 1 1.01v2.98C6 17.55 5.55 18 5 18H1c-.55 0-1-.45-1-1.01v-2.98C0 13.45.45 13 1 13h1v-2c0-1.1.9-2 2-2h5V7H8c-.55 0-1-.45-1-1.01V3.01C7 2.45 7.45 2 8 2h4c.55 0 1 .45 1 1.01v2.98C13 6.55 12.55 7 12 7h-1v2h5c1.1 0 2 .9 2 2v2z"})],-1)])])}]]),bW={class:"wf-issue-detail-controls"},AW={__name:"IssueCheckHowGetIPs",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("$"),a=b("__"),n=b("$mitt"),{$ajax:l}=In(),{$modalNotice:s}=Hn(),{issueData:o}=Q(e);$("issueData",o),$("issueType","checkHowGetIPs"),$("issueTypeDisplay",a("IP Detection"));const r=()=>{l("wordfence_misconfiguredHowGetIPsChoice",{issueID:o.value.id,choice:"yes"},e=>{e.ok&&(t("#wordfenceMisconfiguredHowGetIPsNotice").fadeOut(),s(a("Success updating option"),a("The 'How does Wordfence get IPs' option was successfully updated to the recommended value.")),n.emit("dismissIssue",o.value.id))})};return(e,t)=>{const n=W("aria");return B(),i(J(sW),null,{icon:ie(()=>[h(J(yW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(a)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(a)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(o).longMsg},null,8,["unsafeHTML"])]),c("li",bW,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:ce(r,["prevent","stop"])},[f(Y(J(a)("Use Recommended Value")),1)])),[[n,{role:"button"}]]),h(J(fW))])])]),_:1})}}},kW={class:"wf-issue-detail-controls"},_W={__name:"IssueCheckSpamIP",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","checkSpamIP"),$("issueTypeDisplay",t("Spam")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(yW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",kW,[h(J(fW))])])]),_:1}))}},xW=["href"],CW={class:"wf-issue-control-label"},SW={__name:"EditComment",setup(e){const t=b("__"),a=b("issueData");return(e,n)=>J(a).data?.editCommentLink?(B(),u("a",{key:0,href:J(a).data?.editCommentLink,class:"wf-issue-control wf-issue-control-edit-comment"},[n[0]||(n[0]=c("svg",{class:"wf-issue-control-icon",viewBox:"0 0 20 20"},[c("rect",{x:"0",fill:"none",width:"20",height:"20"}),c("g",null,[c("path",{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})])],-1)),c("span",CW,Y(J(t)("Edit")),1)],8,xW)):r("",!0)}},IW={key:0},DW={key:1},MW={class:"wfWarn wf-split-word"},TW={key:2},LW={key:3},OW={key:4},BW={key:5},$W={class:"wf-issue-detail-controls"},PW={__name:"IssueCommentBadURL",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","commentBadURL"),$("issueTypeDisplay",t("URL")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rW))]),"issue-controls":ie(()=>[h(J(SW)),h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.author?(B(),u("li",IW,[c("strong",null,Y(J(t)("Author"))+": ",1),f(Y(J(a).data.author),1)])):r("",!0),J(a).data?.badURL?(B(),u("li",DW,[c("strong",null,Y(J(t)("Bad URL"))+": ",1),c("strong",MW,Y(J(a).data.badURL),1)])):r("",!0),J(a).data?.commentDate?(B(),u("li",TW,[c("strong",null,Y(J(t)("Posted on"))+": ",1),f(Y(J(a).data.commentDate),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.isMultisite&&J(a).data?.blog_id?(B(),u("li",LW,[c("strong",null,Y(J(t)("Multisite Blog ID"))+": ",1),f(Y(J(a).data.blog_id),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.domain?(B(),u("li",OW,[c("strong",null,Y(J(t)("Multisite Blog Domain"))+": ",1),f(Y(J(a).data.domain),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.path?(B(),u("li",BW,[c("strong",null,Y(J(t)("Multisite Blog Path"))+": ",1),f(Y(J(a).data.path),1)])):r("",!0),c("li",$W,[h(J(fW))])])]),_:1}))}},EW={class:"wf-issue-control-icon",viewBox:"0 0 46 55",style:{"fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"1.41421"}},RW=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",EW,[...t[0]||(t[0]=[c("path",{d:"M43.557,13.609l-11.214,-11.175c-1.303,-1.246 -2.962,-2.058 -4.747,-2.324l0,18.223l18.294,0c-0.269,-1.777 -1.084,-3.427 -2.333,-4.724l0,0Z",style:{"fill-rule":"nonzero"}},null,-1),c("path",{d:"M45.994,22.921l0,28.645c0.001,0.006 0.001,0.011 0.001,0.017c0,1.877 -1.551,3.423 -3.435,3.423c-0.004,0 -0.008,0 -0.012,-0.001l-39.102,0c-0.919,0.018 -1.804,-0.347 -2.443,-1.005c-0.658,-0.637 -1.022,-1.519 -1.003,-2.434l0,-48.127c-0.019,-0.914 0.345,-1.797 1.003,-2.434c0.64,-0.659 1.528,-1.024 2.449,-1.005l19.562,0l0,19.482c0,0.005 0,0.011 0,0.016c0,1.878 1.55,3.423 3.435,3.423l0.016,0l19.529,0Zm-15.947,6.153c0.015,-0.05 0.02,-0.103 0.016,-0.155c0.002,-0.191 -0.099,-0.369 -0.264,-0.464l-0.335,-0.198c-0.195,-0.107 -0.378,-0.213 -0.551,-0.316c-0.171,-0.103 -0.361,-0.208 -0.567,-0.317c-0.205,-0.108 -0.382,-0.197 -0.527,-0.263c-0.097,-0.055 -0.203,-0.092 -0.314,-0.108c-0.197,-0.01 -0.383,0.092 -0.482,0.263l-0.928,1.68c-1.02,-0.193 -2.055,-0.291 -3.092,-0.293c-3.002,-0.022 -5.952,0.786 -8.524,2.336c-2.638,1.594 -4.872,3.776 -6.53,6.374c-0.458,0.723 -0.458,1.65 0,2.373c0.998,1.562 2.204,2.981 3.583,4.218c1.35,1.213 2.877,2.213 4.529,2.964c-0.504,0.859 -0.756,1.357 -0.756,1.494c-0.01,0.198 0.092,0.384 0.263,0.483c1.406,0.801 2.174,1.202 2.304,1.202c0.197,0.009 0.382,-0.093 0.48,-0.264l0.854,-1.539c1.215,-2.166 3.025,-5.417 5.431,-9.755c2.406,-4.337 4.21,-7.576 5.41,-9.715Zm8.009,8.539c-0.7,-1.149 -1.533,-2.21 -2.483,-3.163c-0.954,-0.982 -2.004,-1.865 -3.135,-2.636l-1.083,1.924c1.938,1.345 3.586,3.067 4.845,5.062c-1.337,2.102 -3.102,3.898 -5.18,5.273c-2.013,1.344 -4.335,2.154 -6.747,2.354l-1.273,2.267c2.495,0.011 4.961,-0.547 7.208,-1.632c2.284,-1.103 4.316,-2.665 5.971,-4.587c0.69,-0.779 1.316,-1.612 1.872,-2.491c0.458,-0.723 0.458,-1.65 0,-2.373l0.005,0.002Zm-20.911,7.633c-2.988,-1.341 -5.434,-3.489 -7.337,-6.444c1.598,-2.571 3.859,-4.666 6.546,-6.063c-1.319,2.252 -1.397,5.03 -0.206,7.353c0.548,1.084 1.35,2.021 2.336,2.731l-1.339,2.423Zm12.198,-4.284c0.895,-1.277 1.37,-2.802 1.358,-4.361c-0.004,-0.483 -0.05,-0.964 -0.137,-1.439l-4.812,8.621c1.459,-0.548 2.713,-1.534 3.591,-2.821Zm-5.755,-8.173c-0.153,0.158 -0.365,0.245 -0.585,0.24c-1.959,0.003 -3.571,1.613 -3.575,3.572c0,0.453 -0.373,0.825 -0.825,0.825c-0.453,0 -0.826,-0.372 -0.826,-0.825c-0.019,-1.389 0.537,-2.726 1.537,-3.691c0.965,-1 2.302,-1.557 3.691,-1.537c0.454,0 0.828,0.374 0.828,0.828c0,0.221 -0.088,0.433 -0.245,0.588l0,0Z"},null,-1)])])}]]),FW={class:"wf-issue-control-label"},NW={__name:"HideFile",setup(e){const t=b("__"),a=b("$mitt"),n=b("issueData");return(e,l)=>{const s=W("aria");return re((B(),u("a",{href:"#",class:"wf-issue-control wf-issue-control-hide-file",onClick:l[0]||(l[0]=ce(e=>J(a).emit("hideFile",J(n).id),["prevent","stop"]))},[h(J(RW)),c("span",FW,Y(J(t)("Hide File")),1)])),[[s,{role:"button"}]])}}};function WW(){const e=b("wfconstants"),t=b("$dataStore"),{$addQueryArg:a}=Un(),n=(e,t)=>"realFile"in t?a(e,{realFile:t.realFile??"",realFileToken:t.realFileToken??""}):e;return{$insertRealFileParameters:n,$makeDiffLink:l=>n(a(e.plugin.url.diff_file,{nonce:t.$wordfence.nonce["wp-ajax"],file:l.file??"",cType:l.cType??"",cKey:l.cKey??"",cName:l.cName??"",cVersion:l.cVersion??""}),l),$makeViewFileLink:l=>n(a(e.plugin.url.view_file,{nonce:t.$wordfence.nonce["wp-ajax"],file:l.file??""}),l),$makeDownloadFileLink:l=>n(a(e.plugin.url.download_file,{nonce:t.$wordfence.nonce["wp-ajax"],file:l.file??""}),l),$makeDownloadHtaccessFileLink:n=>a(e.plugin.url.download_htaccess_file,{nonce:t.$wordfence.nonce["wp-ajax"]}),$makeViewOptionLink:(n,l)=>a(e.plugin.url.view_option,{nonce:t.$wordfence.nonce["wp-ajax"],option:n,site_id:l})}}var HW=["href"],VW={__name:"ViewFile",setup(e){const t=b("__"),a=b("issueData"),{$makeViewFileLink:n}=WW(),{$hasOwn:l}=cn(),o=s(()=>a.value.data&&l(a.value.data,"file")?n(a.value.data):"");return(e,a)=>(B(),u("a",{target:"_blank",class:"wf-btn wf-btn-default wf-btn-callout-subtle",rel:"noopener noreferrer",href:o.value},[f(Y(J(t)("View File")),1),h(J(Kn))],8,HW))}},UW={__name:"DeleteFile",setup(e){const t=b("__"),a=b("$mitt"),n=b("issueData");return(e,l)=>{const s=W("aria");return re((B(),u("a",{target:"_blank",class:"wf-btn wf-btn-default wf-btn-callout-subtle wf-issue-control-delete-file",rel:"noopener noreferrer",href:"#",onClick:l[0]||(l[0]=ce(e=>J(a).emit("deleteFile",J(n).id),["prevent","stop"]))},[f(Y(J(t)("Delete File")),1)])),[[s,{role:"button"}]])}}},YW={key:0},KW=["href"],jW={class:"wf-issue-detail-controls"},GW={__name:"IssueConfigReadable",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","configReadable"),$("issueTypeDisplay",t("URL")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rW))]),"issue-controls":ie(()=>[h(J(NW)),h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.url?(B(),u("li",YW,[c("strong",null,Y(J(t)("URL"))+": ",1),c("a",{href:J(a).data.url,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a).data.url),1),h(J(Kn))],8,KW)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",jW,[J(a).data?.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(a).data?.canDelete?(B(),i(J(UW),{key:1})):r("",!0),h(J(fW))])])]),_:1}))}},QW={viewBox:"0 0 46 55"},qW=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",QW,[...t[0]||(t[0]=[c("path",{d:"M43.557,13.609l-11.214,-11.175c-1.303,-1.246 -2.962,-2.058 -4.747,-2.324l0,18.223l18.294,0c-0.269,-1.777 -1.084,-3.427 -2.333,-4.724l0,0Z"},null,-1),c("path",{d:"M26.465,22.921c-0.005,0 -0.011,0 -0.016,0c-1.885,0 -3.435,-1.545 -3.435,-3.423c0,-0.005 0,-0.011 0,-0.016l0,-19.482l-19.562,0c-0.921,-0.019 -1.809,0.346 -2.449,1.005c-0.658,0.637 -1.022,1.52 -1.003,2.434l0,48.127c-0.019,0.915 0.345,1.797 1.003,2.434c0.639,0.658 1.524,1.023 2.443,1.005l39.102,0c0.004,0.001 0.008,0.001 0.012,0.001c1.884,0 3.435,-1.546 3.435,-3.423c0,-0.006 0,-0.011 -0.001,-0.017l0,-28.645l-19.529,0Z"},null,-1)])])}]]),ZW={class:"wf-issue-detail-controls"},JW={__name:"IssueCoreUnknown",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","coreUnknown"),$("issueTypeDisplay",t("Unknown Core File")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(qW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Always Ignore Version"),"ignore-c":J(t)("Ignore Until Version Changes")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",ZW,[J(a).data.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(a).data.canDelete?(B(),i(J(UW),{key:1})):r("",!0),h(J(fW))])])]),_:1}))}},zW={viewBox:"0 0 20 20"},XW=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",zW,[...t[0]||(t[0]=[c("g",null,[c("path",{d:"M18 16V4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h13c.55 0 1-.45 1-1zM8 11h1c.55 0 1 .45 1 1s-.45 1-1 1H8v1.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V13H6c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V11zm5-2h-1c-.55 0-1-.45-1-1s.45-1 1-1h1V5.5c0-.28.22-.5.5-.5s.5.22.5.5V7h1c.55 0 1 .45 1 1s-.45 1-1 1h-1v5.5c0 .28-.22.5-.5.5s-.5-.22-.5-.5V9z"})],-1)])])}]]),eH=["href"],tH={__name:"ViewWordPressOption",setup(e){const t=b("__"),a=b("issueData"),{$makeViewOptionLink:n}=WW(),{$hasOwn:l}=cn(),o=s(()=>a.value.data&&l(a.value.data,"option_name")&&l(a.value.data,"site_id")?n(a.value.data.option_name,a.value.data.site_id):"");return(e,a)=>(B(),u("a",{target:"_blank",class:"wf-btn wf-btn-default wf-btn-callout-subtle",rel:"noopener noreferrer",href:o.value},[f(Y(J(t)("View Option")),1),h(J(Kn))],8,eH))}},aH={key:0},nH={key:1},lH={class:"wfWarn wf-split-word"},sH={class:"wf-issue-detail-controls"},oH={__name:"IssueDatabase",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),a=b("sprintf"),n=b("$mitt"),{$ajax:l,$ajaxErrorMessage:s}=In(),{$modalNotice:o,$errorModal:d}=Hn(),{issueData:p}=Q(e);$("issueData",p),$("issueType","database"),$("issueTypeDisplay",t("Option"));const m=()=>{l("wordfence_deleteDatabaseOption",{issueID:p.value.id},e=>{e.ok&&(o(t("Success removing option"),a(t("The option %s was successfully removed."),e.option_name)),n.emit("dismissIssue",p.value.id))},e=>{d(a(t("Error removing option: %s"),s(e)))})};return(e,a)=>{const n=W("aria");return B(),i(J(sW),null,{icon:ie(()=>[h(J(XW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore Option"),"ignore-c":J(t)("Ignore Value")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(p).data?.option_name?(B(),u("li",aH,[c("strong",null,Y(J(t)("Option Name"))+": ",1),f(Y(J(p).data.option_name),1)])):r("",!0),J(p).data?.badURL?(B(),u("li",nH,[c("strong",null,Y(J(t)("Bad URL"))+": ",1),c("strong",lH,Y(J(p).data.badURL),1)])):r("",!0),a[0]||(a[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(p).longMsg},null,8,["unsafeHTML"])]),c("li",sH,[J(p).data.optionExists?(B(),i(J(tH),{key:0})):r("",!0),J(p).data?.canDelete?re((B(),u("a",{key:1,href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:ce(m,["prevent","stop"])},[f(Y(J(t)("Delete Option")),1)])),[[n,{role:"button"}]]):r("",!0),h(J(fW))])])]),_:1})}}},iH={viewBox:"0 0 116.8 91.77"},rH=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",iH,[...t[0]||(t[0]=[c("path",{d:"M112.17,35.72A57.35,57.35,0,0,0,81.08,4.63a57.88,57.88,0,0,0-45.36,0A57.38,57.38,0,0,0,4.63,35.72,58.26,58.26,0,0,0,9.19,89.88a4,4,0,0,0,3.52,1.89h91.38a4,4,0,0,0,3.52-1.89,58.25,58.25,0,0,0,4.56-54.16ZM52.5,10.79a8.34,8.34,0,0,1,14.24,5.9,8,8,0,0,1-2.44,5.9,8.34,8.34,0,0,1-11.8,0,8,8,0,0,1-2.44-5.9,8,8,0,0,1,2.44-5.9ZM22.59,64.3a8,8,0,0,1-5.9,2.45,8,8,0,0,1-5.9-2.45,8.34,8.34,0,0,1,0-11.8,8,8,0,0,1,5.9-2.45,8,8,0,0,1,5.9,2.45,8.35,8.35,0,0,1,0,11.8ZM35.1,35.1a8.34,8.34,0,0,1-11.8,0,8.34,8.34,0,0,1,0-11.8,8.35,8.35,0,0,1,11.8,0,8.34,8.34,0,0,1,0,11.8ZM72,35.65l-6.59,24.9a12.39,12.39,0,0,1,4.7,5.93,12.54,12.54,0,0,1-5.41,15.25A12.2,12.2,0,0,1,55.21,83a12,12,0,0,1-7.63-5.8,12.49,12.49,0,0,1,2.8-15.94,12.42,12.42,0,0,1,7-2.84l6.59-24.9a4.1,4.1,0,0,1,2-2.57A3.88,3.88,0,0,1,69,30.57a4.27,4.27,0,0,1,3,5.08Zm9.68-.56a8.34,8.34,0,0,1,0-11.8,8.34,8.34,0,0,1,14.24,5.9A8.34,8.34,0,0,1,81.7,35.1ZM106,64.3a8.34,8.34,0,1,1-11.8-11.8A8.34,8.34,0,1,1,106,64.3Zm0,0"},null,-1)])])}]]),uH={key:0},cH={class:"wf-issue-detail-controls"},dH={__name:"IssueDiskSpace",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","diskSpace"),$("issueTypeDisplay",t("Disk Space")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.spaceLeft?(B(),u("li",uH,[c("strong",null,Y(J(t)("Space Remaining"))+": ",1),f(Y(J(a).data.spaceLeft),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",cH,[h(J(fW))])])]),_:1}))}},pH={viewBox:"0 0 91.77 100.11"},fH=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",pH,[...t[0]||(t[0]=[c("path",{d:"M45.89,50.06a24.1,24.1,0,0,0,17.69-7.34A24.1,24.1,0,0,0,70.91,25a24.11,24.11,0,0,0-7.33-17.7A24.12,24.12,0,0,0,45.89,0a24.12,24.12,0,0,0-17.7,7.33A24.11,24.11,0,0,0,20.86,25a24.1,24.1,0,0,0,7.33,17.7,24.11,24.11,0,0,0,17.7,7.34Zm0,0"},null,-1),c("path",{d:"M91.54,76.49a66.22,66.22,0,0,0-.91-7.1,54.55,54.55,0,0,0-1.73-7.07A33.35,33.35,0,0,0,86.1,56a22.92,22.92,0,0,0-4-5.28,17,17,0,0,0-5.57-3.49,19.61,19.61,0,0,0-7.27-1.3,8,8,0,0,0-2.74,1.4q-2.15,1.41-4.86,3.13a30.77,30.77,0,0,1-7,3.13,27.68,27.68,0,0,1-17.4,0,30.59,30.59,0,0,1-7-3.13q-2.71-1.72-4.86-3.13a8,8,0,0,0-2.74-1.4,19.6,19.6,0,0,0-7.27,1.3,17,17,0,0,0-5.57,3.49,22.9,22.9,0,0,0-4,5.28,33.29,33.29,0,0,0-2.8,6.35,55.38,55.38,0,0,0-1.73,7.07,66.22,66.22,0,0,0-.91,7.1Q0,79.78,0,83.24q0,7.82,4.76,12.35t12.64,4.53h57q7.89,0,12.65-4.53t4.76-12.35q0-3.46-.23-6.75Zm0,0"},null,-1)])])}]]),hH={key:0},mH={key:1},gH={key:2},wH={class:"wf-issue-detail-controls"},vH={__name:"IssueEasyPassword",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","easyPassword"),$("issueTypeDisplay",t("Insecure Password")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(fH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore All for User"),"ignore-c":J(t)("Ignore Only this Password")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.user_login?(B(),u("li",hH,[c("strong",null,Y(J(t)("Login Name"))+": ",1),f(Y(J(a).data.user_login),1)])):r("",!0),J(a).data?.user_email?(B(),u("li",mH,[c("strong",null,Y(J(t)("User Email"))+": ",1),f(Y(J(a).data.user_email),1)])):r("",!0),J(a).data?.first_name?(B(),u("li",gH,[c("strong",null,Y(J(t)("Full Name"))+": ",1),f(Y(J(a).data.first_name)+" "+Y(J(a).data.last_name),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",wH,[h(J(fW))])])]),_:1}))}},yH=["href"],bH={__name:"ViewDiff",setup(e){const t=b("__"),a=b("issueData"),{$makeDiffLink:n}=WW(),{$hasOwn:l}=cn(),o=s(()=>a.value.data&&l(a.value.data,"file")?n(a.value.data):"");return(e,a)=>(B(),u("a",{target:"_blank",class:"wf-btn wf-btn-default wf-btn-callout-subtle",rel:"noopener noreferrer",href:o.value},[f(Y(J(t)("View Differences")),1),h(J(Kn))],8,yH))}},AH={class:"wf-split-word-xs"},kH={key:0},_H={class:"wf-issue-detail-controls"},xH={__name:"IssueFile",props:{issueData:{type:Object,default:()=>({})}},setup(e){const a=b("__"),{$ucfirst:n}=Un(),{issueData:l}=Q(e);return $("issueData",l),$("issueType","file"),$("issueTypeDisplay",a("File")),(e,s)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(qW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(a)("Always Ignore"),"ignore-c":J(a)("Ignore Until File Changes")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(a)("Filename"))+": ",1),c("span",AH,Y(J(l).data?.realFile),1)]),c("li",null,[c("strong",null,Y(J(a)("File Type"))+": ",1),J(l).data?.cType?(B(),u(t,{key:0},[f(Y(J(n)(J(l).data?.cType)),1)],64)):J(l).data?.wpconfig?(B(),u(t,{key:1},[f(Y(J(a)("WordPress Configuration File")),1)],64)):(B(),u(t,{key:2},[f(Y(J(a)("Not a core, theme, or plugin file from wordpress.org","wordfence")),1)],64))]),J(l).data?.badURL?(B(),u("li",kH,[c("strong",null,Y(J(a)("Bad URL"))+": ",1),f(Y(J(l).data?.badURL),1)])):r("",!0),s[2]||(s[2]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(a)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(l).longMsg},null,8,["unsafeHTML"]),J(l).data?.wpconfig?(B(),u(t,{key:0},[s[0]||(s[0]=c("br",null,null,-1)),s[1]||(s[1]=c("br",null,null,-1)),f(Y(J(a)("This is your main configuration file and cannot be deleted. It must be cleaned manually.")),1)],64)):r("",!0)]),c("li",_H,[J(l).data?.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(l).data?.canDiff?(B(),i(J(bH),{key:1})):r("",!0),J(l).data?.canDelete?(B(),i(J(UW),{key:2})):r("",!0),h(J(fW))])])]),_:1}))}},CH={class:"wf-issue-detail-controls"},SH={__name:"IssueGeoipSupport",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","geoipSupport"),$("issueTypeDisplay",t("Server Update")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(fH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",CH,[h(J(fW))])])]),_:1}))}},IH={class:"wf-issue-control-icon",viewBox:"0 0 106.7 106.7"},DH=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",IH,[...t[0]||(t[0]=[p('<path d="M104.94,18.77a4,4,0,0,0-1.17-2.93L90.86,2.93a4.25,4.25,0,0,0-5.87,0L1.17,86.75a4.25,4.25,0,0,0,0,5.86l12.91,12.91A4,4,0,0,0,17,106.7a4,4,0,0,0,2.93-1.17L103.77,21.7a4,4,0,0,0,1.17-2.93ZM75.8,37.87l-7-7,19.1-19.1,7,7Zm0,0"></path><path d="M14.93,16.68l2-6.39,6.39-2-6.39-2L14.93,0,13,6.39l-6.39,2,6.39,2Zm0,0"></path><path d="M31.87,24.77l3.91,12.77L39.7,24.77l12.77-3.91L39.7,16.95,35.78,4.17,31.87,16.95,19.1,20.86Zm0,0"></path><path d="M100.31,48.1l-2-6.39-2,6.39-6.39,2,6.39,2,2,6.39,2-6.39,6.39-2Zm0,0"></path><path d="M56.64,16.68l2-6.39,6.39-2-6.39-2L56.64,0l-2,6.39-6.39,2,6.39,2Zm0,0"></path>',5)])])}]]),MH={class:"wf-issue-control-label"},TH={__name:"RepairFile",setup(e){const t=b("__"),a=b("$mitt"),n=b("issueData");return(e,l)=>{const s=W("aria");return re((B(),u("a",{href:"#",class:"wf-issue-control wf-issue-control-repair",onClick:l[0]||(l[0]=ce(e=>J(a).emit("repairFile",J(n)),["prevent","stop"]))},[h(J(DH)),c("span",MH,Y(J(t)("Repair")),1)])),[[s,{role:"button"}]])}}},LH={class:"wf-split-word-xs"},OH={key:0},BH={class:"wf-issue-detail-controls"},$H={__name:"IssueKnownfile",props:{issueData:{type:Object,default:()=>({})}},setup(e){const a=b("__"),{$ucfirst:n}=Un(),{issueData:l}=Q(e);return $("issueData",l),$("issueType","knownfile"),$("issueTypeDisplay",a("File")),(e,s)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(qW))]),"issue-controls":ie(()=>[J(l).data?.canFix?(B(),i(J(TH),{key:0})):r("",!0),h(J(cW),{"ignore-p":J(a)("Always Ignore"),"ignore-c":J(a)("Ignore Until File Changes")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(a)("Filename"))+": ",1),c("span",LH,Y(J(l).data?.realFile),1)]),c("li",null,[c("strong",null,Y(J(a)("File Type"))+": ",1),J(l).data?.cType?(B(),u(t,{key:0},[f(Y(J(n)(J(l).data?.cType)),1)],64)):(B(),u(t,{key:1},[f(Y(J(a)("Not a core, theme, or plugin file from wordpress.org","wordfence")),1)],64))]),J(l).data?.badURL?(B(),u("li",OH,[c("strong",null,Y(J(a)("Bad URL"))+": ",1),f(Y(J(l).data?.badURL),1)])):r("",!0),s[0]||(s[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(a)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(l).longMsg},null,8,["unsafeHTML"])]),c("li",BH,[J(l).data?.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(l).data?.canDiff?(B(),i(J(bH),{key:1})):r("",!0),J(l).data?.canDelete?(B(),i(J(UW),{key:2})):r("",!0),h(J(fW))])])]),_:1}))}},PH={key:0},EH={key:1},RH={class:"wfWarn wf-split-word"},FH={key:2},NH={key:3},WH={key:4},HH={class:"wf-issue-detail-controls"},VH={__name:"IssueOptionBadURL",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","optionBadURL"),$("issueTypeDisplay",t("URL")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(XW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore Option"),"ignore-c":J(t)("Ignore URL")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.optionKey?(B(),u("li",PH,[c("strong",null,Y(J(t)("Option Name"))+": ",1),f(Y(J(a).data.optionKey),1)])):r("",!0),J(a).data?.badURL?(B(),u("li",EH,[c("strong",null,Y(J(t)("Bad URL"))+": ",1),c("strong",RH,Y(J(a).data.badURL),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.isMultisite&&J(a).data?.blog_id?(B(),u("li",FH,[c("strong",null,Y(J(t)("Multisite Blog ID"))+": ",1),f(Y(J(a).data.blog_id),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.domain?(B(),u("li",NH,[c("strong",null,Y(J(t)("Multisite Blog Domain"))+": ",1),f(Y(J(a).data.domain),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.path?(B(),u("li",WH,[c("strong",null,Y(J(t)("Multisite Blog Path"))+": ",1),f(Y(J(a).data.path),1)])):r("",!0),c("li",HH,[h(J(fW))])])]),_:1}))}},UH={viewBox:"0 0 20 20"},YH=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",UH,[...t[0]||(t[0]=[c("rect",{x:"0",fill:"none",width:"20",height:"20"},null,-1),c("g",null,[c("path",{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})],-1)])])}]]),KH=["href"],jH={class:"wf-issue-control-label"},GH={__name:"EditPost",setup(e){const t=b("__"),a=b("issueData");return(e,n)=>J(a).data?.editPostLink?(B(),u("a",{key:0,href:J(a).data?.editPostLink,class:"wf-issue-control wf-issue-control-edit-post"},[n[0]||(n[0]=c("svg",{class:"wf-issue-control-icon",viewBox:"0 0 20 20"},[c("rect",{x:"0",fill:"none",width:"20",height:"20"}),c("g",null,[c("path",{d:"M10.44 3.02l1.82-1.82 6.36 6.35-1.83 1.82c-1.05-.68-2.48-.57-3.41.36l-.75.75c-.92.93-1.04 2.35-.35 3.41l-1.83 1.82-2.41-2.41-2.8 2.79c-.42.42-3.38 2.71-3.8 2.29s1.86-3.39 2.28-3.81l2.79-2.79L4.1 9.36l1.83-1.82c1.05.69 2.48.57 3.4-.36l.75-.75c.93-.92 1.05-2.35.36-3.41z"})])],-1)),c("span",jH,Y(J(t)("Edit")),1)],8,KH)):r("",!0)}},QH={key:0},qH={class:"wfWarn"},ZH={key:1},JH={key:2},zH={key:3},XH={key:4},eV={class:"wf-issue-detail-controls"},tV={__name:"IssuePostBadTitle",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","postBadTitle"),$("issueTypeDisplay",t("Post")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(YH))]),"issue-controls":ie(()=>[h(J(GH)),h(J(cW),{"ignore-p":J(t)("Always Ignore"),"ignore-c":J(t)("Ignore Only this Title")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.postTitle?(B(),u("li",QH,[c("strong",null,Y(J(t)("Title"))+": ",1),c("strong",qH,Y(J(a).data.postTitle),1)])):r("",!0),J(a).data?.postDate?(B(),u("li",ZH,[c("strong",null,Y(J(t)("Posted on"))+": ",1),f(Y(J(a).data.postDate),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.isMultisite&&J(a).data?.blog_id?(B(),u("li",JH,[c("strong",null,Y(J(t)("Multisite Blog ID"))+": ",1),f(Y(J(a).data.blog_id),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.domain?(B(),u("li",zH,[c("strong",null,Y(J(t)("Multisite Blog Domain"))+": ",1),f(Y(J(a).data.domain),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.path?(B(),u("li",XH,[c("strong",null,Y(J(t)("Multisite Blog Path"))+": ",1),f(Y(J(a).data.path),1)])):r("",!0),c("li",eV,[h(J(fW))])])]),_:1}))}},aV={key:0},nV={class:"wfWarn"},lV={key:1},sV={class:"wfWarn wf-split-word"},oV={key:2},iV={key:3},rV={key:4},uV={key:5},cV={class:"wf-issue-detail-controls"},dV={__name:"IssuePostBadURL",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","postBadURL"),$("issueTypeDisplay",t("URL")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rW))]),"issue-controls":ie(()=>[h(J(GH)),h(J(cW),{"ignore-p":J(t)("Always Ignore"),"ignore-c":J(t)("Ignore this URL")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.postTitle?(B(),u("li",aV,[c("strong",null,Y(J(t)("Title"))+": ",1),c("strong",nV,Y(J(a).data.postTitle),1)])):r("",!0),J(a).data?.badURL?(B(),u("li",lV,[c("strong",null,Y(J(t)("Bad URL"))+": ",1),c("strong",sV,Y(J(a).data.badURL),1)])):r("",!0),J(a).data?.postDate?(B(),u("li",oV,[c("strong",null,Y(J(t)("Posted on"))+": ",1),f(Y(J(a).data.postDate),1)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.isMultisite&&J(a).data?.blog_id?(B(),u("li",iV,[c("strong",null,Y(J(t)("Multisite Blog ID"))+": ",1),f(Y(J(a).data.blog_id),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.domain?(B(),u("li",rV,[c("strong",null,Y(J(t)("Multisite Blog Domain"))+": ",1),f(Y(J(a).data.domain),1)])):r("",!0),J(a).data?.isMultisite&&J(a).data?.path?(B(),u("li",uV,[c("strong",null,Y(J(t)("Multisite Blog Path"))+": ",1),f(Y(J(a).data.path),1)])):r("",!0),c("li",cV,[h(J(fW))])])]),_:1}))}},pV={key:0},fV=["href"],hV={class:"wf-issue-detail-controls"},mV={__name:"IssuePubliclyAccessible",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","publiclyAccessible"),$("issueTypeDisplay",t("Quarantined File")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(XW))]),"issue-controls":ie(()=>[h(J(NW)),h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.url?(B(),u("li",pV,[c("strong",null,Y(J(t)("URL"))+": ",1),c("a",{href:J(a).data.url,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a).data.url),1),h(J(Kn))],8,fV)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",hV,[J(a).data?.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(a).data?.canDelete?(B(),i(J(UW),{key:1})):r("",!0),h(J(fW))])])]),_:1}))}},gV=["href"],wV={__name:"OptionLink",props:{optionName:{type:String,default:""}},setup(e){const t=b("__"),a=b("wfconstants"),{$hasOwn:n}=cn(),{optionName:l}=Q(e),o=s(()=>n(a.options.url,l.value)?a.options.url[l.value]:"#unknown-option-"+l.value);return(e,a)=>(B(),u("a",{href:o.value,class:"wf-btn wf-btn-default wf-btn-callout-subtle"},Y(J(t)("Go To Option")),9,gV))}},vV={class:"wf-issue-detail-controls"},yV={__name:"IssueSkippedPaths",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","skippedPaths"),$("issueTypeDisplay",t("Skipped Paths")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(XW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Always Ignore Version"),"ignore-c":J(t)("Ignore Until Version Changes")},null,8,["ignore-p","ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",vV,[h(J(wV),{optionName:"other_scanOutside"}),h(J(fW))])])]),_:1}))}},bV={class:"wf-issue-detail-controls"},AV={__name:"IssueSpamvertizeCheck",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","spamvertizeCheck"),$("issueTypeDisplay",t("Spam")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(yW))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",bV,[h(J(fW))])])]),_:1}))}},kV={class:"wf-issue-detail-controls"},_V={__name:"IssueSuspiciousAdminUsers",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),a=b("sprintf"),n=b("$mitt"),{$ajax:l}=In(),{$modalNotice:s}=Hn(),{issueData:o}=Q(e);$("issueData",o),$("issueType","suspiciousAdminUsers"),$("issueTypeDisplay",t("Unknown Administrator"));const r=()=>{l("wordfence_deleteAdminUser",{issueID:o.value.id},e=>{e.ok&&(s(t("Successfully deleted admin"),a(t("The admin user %s was successfully deleted."),e.user_login)),n.emit("dismissIssue",o.value.id))})},d=()=>{l("wordfence_revokeAdminUser",{issueID:o.value.id},e=>{e.ok&&(s(t("Successfully revoked admin"),a(t("All capabilities of admin user %s were successfully revoked."),e.user_login)),n.emit("dismissIssue",o.value.id))})},p=()=>{l("wordfence_acknowledgeAdminUser",{issueID:o.value.id},e=>{e.ok&&(s(t("Successfully acknowledged admin"),a(t("The admin user %s will no longer show up in future scans."),e.user_login)),n.emit("dismissIssue",o.value.id))})};return(e,a)=>{const n=W("aria");return B(),i(J(sW),null,{icon:ie(()=>[h(J(fH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(o).longMsg},null,8,["unsafeHTML"])]),c("li",kV,[re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:ce(r,["prevent","stop"])},[f(Y(J(t)("Delete User")),1)])),[[n,{role:"button"}]]),re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:ce(d,["prevent","stop"])},[f(Y(J(t)("Revoke Capabilities")),1)])),[[n,{role:"button"}]]),re((B(),u("a",{href:"#",class:"wf-btn wf-btn-default wf-btn-callout-subtle",onClick:ce(p,["prevent","stop"])},[f(Y(J(t)("Acknowledge User")),1)])),[[n,{role:"button"}]]),h(J(fW))])])]),_:1})}}},xV={class:"wf-issue-detail-controls"},CV={__name:"IssueTimelimit",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","timelimit"),$("issueTypeDisplay",t("Time Limit")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",xV,[h(J(fW))])])]),_:1}))}},SV={class:"wf-issue-detail-controls"},IV={__name:"IssueWafStatus",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wafStatus"),$("issueTypeDisplay",t("WAF Status")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(rH))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-p":J(t)("Ignore")},null,8,["ignore-p"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Status"))+": ",1),f(Y(J(a).data.wafStatusDisplay),1)]),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",SV,[h(J(fW))])])]),_:1}))}},DV={viewBox:"0 0 20 20"},MV=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",DV,[...t[0]||(t[0]=[c("g",null,[c("path",{d:"M13.11 4.36L9.87 7.6 8 5.73l3.24-3.24c.35-.34 1.05-.2 1.56.32.52.51.66 1.21.31 1.55zm-8 1.77l.91-1.12 9.01 9.01-1.19.84c-.71.71-2.63 1.16-3.82 1.16H6.14L4.9 17.26c-.59.59-1.54.59-2.12 0-.59-.58-.59-1.53 0-2.12l1.24-1.24v-3.88c0-1.13.4-3.19 1.09-3.89zm7.26 3.97l3.24-3.24c.34-.35 1.04-.21 1.55.31.52.51.66 1.21.31 1.55l-3.24 3.25z"})],-1)])])}]]),TV={href:"https://www.wordfence.com/help/scan/scan-results/#assistant-plugin-removed",target:"_blank"},LV={class:"screen-reader-text"},OV={class:"wf-issue-detail-controls"},BV={__name:"IssueWfAssistantPresent",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfAssistantPresent"),$("issueTypeDisplay",t("Wordfence Assistant Present")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(t)("Wordfence Assistant")),1)]),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"]),n[0]||(n[0]=c("br",null,null,-1)),c("a",TV,[f(Y(J(t)("Click here to learn more"))+" ",1),c("span",LV,"("+Y(J(t)("opens in new tab"))+")",1)])]),c("li",OV,[h(J(fW))])])]),_:1}))}},$V={class:"wf-issue-detail-controls"},PV={__name:"IssueWfLoginSecPresent",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfLoginSecPresent"),$("issueTypeDisplay",t("Wordfence Login Security Present")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(t)("Wordfence Login Security")),1)]),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",$V,[h(J(fW))])])]),_:1}))}},EV=["href"],RV={__name:"WordPressLink",props:{pageName:{type:String,default:""}},setup(e){const t=b("wfconstants"),{$hasOwn:a}=cn(),{pageName:n}=Q(e),l=s(()=>a(t.wordpress.url,n.value)?t.wordpress.url[n.value]:"#unknown-page-"+n.value);return(e,t)=>(B(),u("a",{href:l.value,class:"wf-btn wf-btn-default wf-btn-callout-subtle"},[N(e.$slots,"default")],8,EV))}},FV={key:0},NV={key:1},WV={key:2},HV={key:0},VV={key:3},UV=["href"],YV={key:4},KV=["href"],jV={key:5},GV=["href"],QV={key:6},qV={class:"wf-issue-detail-controls"},ZV={__name:"IssueWfPluginAbandoned",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfPluginAbandoned"),$("issueTypeDisplay",t("Plugin Abandoned")),(e,n)=>{const l=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.name?(B(),u("li",FV,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(a).data.name),1)])):r("",!0),J(a).data?.version?(B(),u("li",NV,[c("strong",null,Y(J(t)("Current Plugin Version"))+": ",1),f(Y(J(a).data.version),1)])):r("",!0),J(a).data?.dateUpdated?(B(),u("li",WV,[c("strong",null,Y(J(t)("Last Updated"))+": ",1),f(Y(J(a).data.dateUpdated),1)])):r("",!0),n[2]||(n[2]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),J(a).data?.vulnerable?(B(),u("strong",HV,[f(Y(J(t)("Plugin has unpatched security issues.")),1),n[0]||(n[0]=c("br",null,null,-1))])):r("",!0),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[3]||(n[3]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.homepage?(B(),u("li",VV,[c("strong",null,Y(J(t)("Plugin URL"))+": ",1),c("a",{href:J(a).data.homepage,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.homepage,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,UV)])):r("",!0),J(a).data?.wpURL?(B(),u("li",YV,[c("strong",null,Y(J(t)("Repository URL"))+": ",1),c("a",{href:J(a).data.wpURL,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.wpURL,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,KV)])):r("",!0),J(a).data?.vulnerabilityLink?(B(),u("li",jV,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(a).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,GV)])):r("",!0),J(a).data?.cvssScore?(B(),u("li",QV,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(a).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(a).data.severityClass)},[f(Y(J(a).data.severityLabel),1)],2)),[[l,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),n[1]||(n[1]=f(")",-1))])):r("",!0),c("li",qV,[h(J(fW)),h(J(RV),{"page-name":"plugins"},{default:ie(()=>[f(Y(J(t)("Manage Plugins")),1)]),_:1})])])]),_:1})}}},JV={key:0},zV={key:1},XV={key:2},eU=["href"],tU={key:3},aU=["href"],nU={key:4},lU={class:"wf-issue-detail-controls"},sU={__name:"IssueWfPluginRemoved",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfPluginRemoved"),$("issueTypeDisplay",t("Plugin Removed")),(e,n)=>{const l=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.Name?(B(),u("li",JV,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(a).data.Name),1)])):r("",!0),J(a).data?.Version?(B(),u("li",zV,[c("strong",null,Y(J(t)("Current Plugin Version"))+": ",1),f(Y(J(a).data.Version),1)])):r("",!0),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[2]||(n[2]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.PluginURI?(B(),u("li",XV,[c("strong",null,Y(J(t)("Plugin URL"))+": ",1),c("a",{href:J(a).data.PluginURI,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.PluginURI,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,eU)])):r("",!0),J(a).data?.vulnerabilityLink?(B(),u("li",tU,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(a).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,aU)])):r("",!0),J(a).data?.cvssScore?(B(),u("li",nU,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(a).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(a).data.severityClass)},[f(Y(J(a).data.severityLabel),1)],2)),[[l,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),n[0]||(n[0]=f(")",-1))])):r("",!0),c("li",lU,[h(J(fW)),h(J(RV),{"page-name":"plugins"},{default:ie(()=>[f(Y(J(t)("Manage Plugins")),1)]),_:1})])])]),_:1})}}},oU={key:0},iU={key:1},rU={key:2},uU={key:0},cU=["href"],dU={key:3},pU=["href"],fU={key:4},hU=["href"],mU={key:5},gU=["href"],wU={key:6},vU={class:"wf-issue-detail-controls"},yU={__name:"IssueWfPluginUpgrade",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),a=b("wfconstants"),{issueData:n}=Q(e);return $("issueData",n),$("issueType","wfPluginUpgrade"),$("issueTypeDisplay",t("Plugin Upgrade")),(e,l)=>{const s=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(n).data?.Name?(B(),u("li",oU,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(n).data.Name),1)])):r("",!0),J(n).data?.Version?(B(),u("li",iU,[c("strong",null,Y(J(t)("Current Plugin Version"))+": ",1),f(Y(J(n).data.Version),1)])):r("",!0),J(n).data?.newVersion?(B(),u("li",rU,[c("strong",null,Y(J(t)("New Plugin Version"))+": ",1),f(Y(J(n).data.newVersion),1)])):r("",!0),l[3]||(l[3]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),J(n).data?.vulnerable?(B(),u("strong",uU,[f(Y(J(t)("Update includes security-related fixes.")),1),l[0]||(l[0]=c("br",null,null,-1))])):r("",!0),h(J(Ep),{unsafeHTML:J(n).longMsg},null,8,["unsafeHTML"]),l[1]||(l[1]=c("br",null,null,-1)),c("a",{href:J(a).wordpress.url.updates},Y(J(t)("Click here to update now")),9,cU)]),l[4]||(l[4]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(n).data?.PluginURI?(B(),u("li",dU,[c("strong",null,Y(J(t)("Plugin URL"))+": ",1),c("a",{href:J(n).data.PluginURI,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.PluginURI,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,pU)])):r("",!0),J(n).data?.wpURL?(B(),u("li",fU,[c("strong",null,Y(J(t)("Changelog"))+": ",1),c("a",{href:J(n).data.wpURL+"/#developers",target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.wpURL+"/#developers",xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,hU)])):r("",!0),J(n).data?.vulnerabilityLink?(B(),u("li",mU,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(n).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,gU)])):r("",!0),J(n).data?.cvssScore?(B(),u("li",wU,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(n).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(n).data.severityClass)},[f(Y(J(n).data.severityLabel),1)],2)),[[s,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),l[2]||(l[2]=f(")",-1))])):r("",!0),c("li",vU,[h(J(fW)),h(J(RV),{"page-name":"updates"},{default:ie(()=>[f(Y(J(t)("View Updates")),1)]),_:1})])])]),_:1})}}},bU={key:0},AU={key:1},kU={key:2},_U=["href"],xU={key:3},CU=["href"],SU={key:4},IU={class:"wf-issue-detail-controls"},DU={__name:"IssueWfPluginVulnerable",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfPluginVulnerable"),$("issueTypeDisplay",t("Plugin Vulnerable")),(e,n)=>{const l=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.Name?(B(),u("li",bU,[c("strong",null,Y(J(t)("Plugin Name"))+": ",1),f(Y(J(a).data.Name),1)])):r("",!0),J(a).data?.Version?(B(),u("li",AU,[c("strong",null,Y(J(t)("Current Plugin Version"))+": ",1),f(Y(J(a).data.Version),1)])):r("",!0),n[1]||(n[1]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),n[2]||(n[2]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(a).data?.wpURL?(B(),u("li",kU,[c("strong",null,Y(J(t)("Repository URL"))+": ",1),c("a",{href:J(a).data.wpURL,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.wpURL,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,_U)])):r("",!0),J(a).data?.vulnerabilityLink?(B(),u("li",xU,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(a).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(a).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,CU)])):r("",!0),J(a).data?.cvssScore?(B(),u("li",SU,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(a).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(a).data.severityClass)},[f(Y(J(a).data.severityLabel),1)],2)),[[l,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),n[0]||(n[0]=f(")",-1))])):r("",!0),c("li",IU,[h(J(fW)),h(J(RV),{"page-name":"plugins"},{default:ie(()=>[f(Y(J(t)("Manage Plugins")),1)]),_:1})])])]),_:1})}}},MU={viewBox:"0 0 20 20"},TU=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",MU,[...t[0]||(t[0]=[c("g",null,[c("path",{d:"M14.48 11.06L7.41 3.99l1.5-1.5c.5-.56 2.3-.47 3.51.32 1.21.8 1.43 1.28 2.91 2.1 1.18.64 2.45 1.26 4.45.85zm-.71.71L6.7 4.7 4.93 6.47c-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39.39 1.03 0 1.42-.6.6-1.43 1.11-2.21 1.69-.35.26-.7.53-1.01.84C1.43 14.23.4 16.08 1.4 17.07c.99 1 2.84-.03 4.18-1.36.31-.31.58-.66.85-1.02.57-.78 1.08-1.61 1.69-2.21.39-.39 1.02-.39 1.41 0l1.06 1.06c.39.39 1.02.39 1.41 0z"})],-1)])])}]]),LU={key:0},OU={key:1},BU={key:2},$U={key:0},PU=["href"],EU={key:3},RU=["href"],FU={key:4},NU=["href"],WU={key:5},HU={class:"wf-issue-detail-controls"},VU={__name:"IssueWfThemeUpgrade",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),a=b("wfconstants"),{issueData:n}=Q(e);return $("issueData",n),$("issueType","wfThemeUpgrade"),$("issueTypeDisplay",t("Theme Upgrade")),(e,l)=>{const s=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(TU))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(n).data?.name?(B(),u("li",LU,[c("strong",null,Y(J(t)("Theme Name"))+": ",1),f(Y(J(n).data.name),1)])):r("",!0),J(n).data?.version?(B(),u("li",OU,[c("strong",null,Y(J(t)("Current Theme Version"))+": ",1),f(Y(J(n).data.version),1)])):r("",!0),J(n).data?.newVersion?(B(),u("li",BU,[c("strong",null,Y(J(t)("New Theme Version"))+": ",1),f(Y(J(n).data.newVersion),1)])):r("",!0),l[3]||(l[3]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),J(n).data?.vulnerable?(B(),u("strong",$U,[f(Y(J(t)("Update includes security-related fixes.")),1),l[0]||(l[0]=c("br",null,null,-1))])):r("",!0),h(J(Ep),{unsafeHTML:J(n).longMsg},null,8,["unsafeHTML"]),l[1]||(l[1]=c("br",null,null,-1)),c("a",{href:J(a).wordpress.url.updates},Y(J(t)("Click here to update now")),9,PU)]),l[4]||(l[4]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(n).data?.URL?(B(),u("li",EU,[c("strong",null,Y(J(t)("Theme URL"))+": ",1),c("a",{href:J(n).data.URL,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.URL,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,RU)])):r("",!0),J(n).data?.vulnerabilityLink?(B(),u("li",FU,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(n).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,NU)])):r("",!0),J(n).data?.cvssScore?(B(),u("li",WU,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(n).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(n).data.severityClass)},[f(Y(J(n).data.severityLabel),1)],2)),[[s,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),l[2]||(l[2]=f(")",-1))])):r("",!0),c("li",HU,[h(J(fW)),h(J(RV),{"page-name":"updates"},{default:ie(()=>[f(Y(J(t)("View Updates")),1)]),_:1})])])]),_:1})}}},UU={viewBox:"0 0 20 20"},YU=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("svg",UU,[...t[0]||(t[0]=[c("g",null,[c("path",{d:"M20 10c0-5.51-4.49-10-10-10C4.48 0 0 4.49 0 10c0 5.52 4.48 10 10 10 5.51 0 10-4.48 10-10zM7.78 15.37L4.37 6.22c.55-.02 1.17-.08 1.17-.08.5-.06.44-1.13-.06-1.11 0 0-1.45.11-2.37.11-.18 0-.37 0-.58-.01C4.12 2.69 6.87 1.11 10 1.11c2.33 0 4.45.87 6.05 2.34-.68-.11-1.65.39-1.65 1.58 0 .74.45 1.36.9 2.1.35.61.55 1.36.55 2.46 0 1.49-1.4 5-1.4 5l-3.03-8.37c.54-.02.82-.17.82-.17.5-.05.44-1.25-.06-1.22 0 0-1.44.12-2.38.12-.87 0-2.33-.12-2.33-.12-.5-.03-.56 1.2-.06 1.22l.92.08 1.26 3.41zM17.41 10c.24-.64.74-1.87.43-4.25.7 1.29 1.05 2.71 1.05 4.25 0 3.29-1.73 6.24-4.4 7.78.97-2.59 1.94-5.2 2.92-7.78zM6.1 18.09C3.12 16.65 1.11 13.53 1.11 10c0-1.3.23-2.48.72-3.59C3.25 10.3 4.67 14.2 6.1 18.09zm4.03-6.63l2.58 6.98c-.86.29-1.76.45-2.71.45-.79 0-1.57-.11-2.29-.33.81-2.38 1.62-4.74 2.42-7.1z"})],-1)])])}]]),KU={key:0},jU={key:1},GU={key:0},QU=["href"],qU={key:2},ZU=["href"],JU={key:3},zU={class:"wf-issue-detail-controls"},XU={__name:"IssueWfUpgrade",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),a=b("wfconstants"),{issueData:n}=Q(e);return $("issueData",n),$("issueType","wfUpgrade"),$("issueTypeDisplay",t("Core Upgrade")),(e,l)=>{const s=W("tooltip");return B(),i(J(sW),null,{icon:ie(()=>[h(J(YU))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(n).data?.currentVersion?(B(),u("li",KU,[c("strong",null,Y(J(t)("Current WordPress Version"))+": ",1),f(Y(J(n).data.currentVersion),1)])):r("",!0),J(n).data?.newVersion?(B(),u("li",jU,[c("strong",null,Y(J(t)("New WordPress Version"))+": ",1),f(Y(J(n).data.newVersion),1)])):r("",!0),l[3]||(l[3]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),J(n).data?.vulnerable?(B(),u("strong",GU,[f(Y(J(t)("Update includes security-related fixes.")),1),l[0]||(l[0]=c("br",null,null,-1))])):r("",!0),h(J(Ep),{unsafeHTML:J(n).longMsg},null,8,["unsafeHTML"]),l[1]||(l[1]=c("br",null,null,-1)),c("a",{href:J(a).wordpress.url.updates},Y(J(t)("Click here to update now")),9,QU)]),l[4]||(l[4]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),J(n).data?.vulnerabilityLink?(B(),u("li",qU,[c("strong",null,Y(J(t)("Vulnerability Information"))+": ",1),c("a",{href:J(n).data.vulnerabilityLink,target:"_blank",rel:"noopener noreferrer"},[h(J(Vs),{textClass:"wf-split-word",text:J(n).data.vulnerabilityLink,xs:J(t)("View")},null,8,["text","xs"]),h(J(Kn))],8,ZU)])):r("",!0),J(n).data?.cvssScore?(B(),u("li",JU,[c("strong",null,Y(J(t)("Vulnerability Severity"))+": ",1),f(Y(J(n).data.cvssScore)+"/10.0 (",1),re((B(),u("span",{class:C(J(n).data.severityClass)},[f(Y(J(n).data.severityLabel),1)],2)),[[s,J(t)("This is the severity of the vulnerability itself, which can differ from the scan result severity. Some lower-severity vulnerabilities may still be important to address depending on your site's configuration and user base, so they are still important for you to review.")]]),l[2]||(l[2]=f(")",-1))])):r("",!0),c("li",zU,[h(J(fW)),h(J(RV),{"page-name":"updates"},{default:ie(()=>[f(Y(J(t)("View Updates")),1)]),_:1})])])]),_:1})}}},eY={class:"wf-issue-detail-controls"},tY={__name:"IssueWfUpgradeError",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wfUpgradeError"),$("issueTypeDisplay",t("Update Check Error")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(MV))]),"issue-controls":ie(()=>[h(J(cW),{"ignore-c":J(t)("Ignore Update")},null,8,["ignore-c"]),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",eY,[h(J(fW)),h(J(RV),{"page-name":"updates"},{default:ie(()=>[f(Y(J(t)("View Updates")),1)]),_:1})])])]),_:1}))}},aY={key:0},nY=["href"],lY={class:"wf-issue-detail-controls"},sY={__name:"IssueWpscanDirectoryList",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wpscan_directoryList"),$("issueTypeDisplay",t("Directory Listing Enabled")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(qW))]),"issue-controls":ie(()=>[h(J(cW)),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.url?(B(),u("li",aY,[c("strong",null,Y(J(t)("URL"))+": ",1),c("a",{href:J(a).data.url,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a).data.url),1),h(J(Kn))],8,nY)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",lY,[J(a).data.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(a).data.canDelete?(B(),i(J(UW),{key:1})):r("",!0),h(J(fW))])])]),_:1}))}},oY={key:0},iY=["href"],rY={class:"wf-issue-detail-controls"},uY={__name:"IssueWpscanFullPathDiscl",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__"),{issueData:a}=Q(e);return $("issueData",a),$("issueType","wpscan_fullPathDiscl"),$("issueTypeDisplay",t("Full Path Disclosure")),(e,n)=>(B(),i(J(sW),null,{icon:ie(()=>[h(J(qW))]),"issue-controls":ie(()=>[h(J(cW)),h(J(pW))]),"issue-details":ie(()=>[c("ul",null,[J(a).data?.url?(B(),u("li",oY,[c("strong",null,Y(J(t)("URL"))+": ",1),c("a",{href:J(a).data.url,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(a).data.url),1),h(J(Kn))],8,iY)])):r("",!0),n[0]||(n[0]=c("li",{class:"wf-issue-detail-spacer"},null,-1)),c("li",null,[c("strong",null,Y(J(t)("Details"))+": ",1),h(J(Ep),{unsafeHTML:J(a).longMsg},null,8,["unsafeHTML"])]),c("li",rY,[J(a).data.fileExists?(B(),i(J(VW),{key:0})):r("",!0),J(a).data.canDelete?(B(),i(J(UW),{key:1})):r("",!0),h(J(fW))])])]),_:1}))}},cY={class:"wf-issue wf-issue-severity-good","data-issue-id":"issue-type-unknown"},dY={class:"wf-issue-summary"},pY={class:"wf-issue-short"},fY={class:"wf-issue-message"},hY={__name:"IssueDefault",props:{issueData:{type:Object,default:()=>({})}},setup(e){const t=b("__");return(a,n)=>(B(),u("ul",cY,[c("li",dY,[c("ul",null,[c("li",pY,[c("div",fY,Y(J(t)("An unknown issue type was found:"))+" "+Y(e.issueData.type)+" ("+Y(e.issueData.id)+")",1)]),n[0]||(n[0]=c("li",{class:"wf-issue-stats"},null,-1)),n[1]||(n[1]=c("li",{class:"wf-issue-controls"},null,-1))])])]))}},mY={id:"wf-scan-results-container"},gY={class:"wf-scan-tabs"},wY=["aria-selected"],vY=["aria-selected"],yY={id:"wf-scan-bulk-buttons"},bY={class:"wf-hidden-xs"},AY={class:"wf-scan-results"},kY={class:"wf-scan-results-stats"},_Y={class:"wf-block wf-active"},xY={class:"wf-block-content"},CY={class:"wf-block-list wf-block-list-horizontal wf-block-list-horizontal-5 wf-block-list-equal wf-hidden-xs"},SY={class:"wf-flex-horizontal wf-flex-full-width"},IY={class:"wf-scan-results-stats-postscommentsfiles"},DY={class:"wf-flex-horizontal wf-flex-full-width"},MY={class:"wf-scan-results-stats-themesplugins"},TY={class:"wf-flex-horizontal wf-flex-full-width"},LY={class:"wf-scan-results-stats-users"},OY={class:"wf-flex-horizontal wf-flex-full-width"},BY={class:"wf-scan-results-stats-urls"},$Y={class:"wf-flex-horizontal wf-flex-full-width"},PY={class:"wf-scan-results-stats-issues"},EY={class:"wf-block-list wf-hidden-sm wf-hidden-md wf-hidden-lg"},RY={class:"wf-flex-horizontal wf-flex-full-width"},FY={class:"wf-scan-results-stats-postscommentsfiles"},NY={class:"wf-flex-horizontal wf-flex-full-width"},WY={class:"wf-scan-results-stats-themesplugins"},HY={class:"wf-flex-horizontal wf-flex-full-width"},VY={class:"wf-scan-results-stats-users"},UY={class:"wf-flex-horizontal wf-flex-full-width"},YY={class:"wf-scan-results-stats-urls"},KY={class:"wf-flex-horizontal wf-flex-full-width"},jY={class:"wf-scan-results-stats-issues"},GY={key:0,class:"wf-issue wf-issue-severity-good","data-issue-id":"no-issues-new"},QY={class:"wf-issue-summary"},qY={class:"wf-issue-short"},ZY={class:"wf-issue-message"},JY={key:0,class:"wf-issue wf-issue-severity-good","data-issue-id":"no-issues-ignored"},zY={class:"wf-issue-summary"},XY={class:"wf-issue-short"},eK={class:"wf-issue-message"},tK={__name:"ScanResults",props:{issueType:{type:String,default:"new"}},setup(e){const a={IssueCheckGSB:wW,IssueCheckHowGetIPs:AW,IssueCheckSpamIP:_W,IssueCommentBadURL:PW,IssueConfigReadable:GW,IssueCoreUnknown:JW,IssueDatabase:oH,IssueDiskSpace:dH,IssueEasyPassword:vH,IssueFile:xH,IssueGeoipSupport:SH,IssueKnownfile:$H,IssueOptionBadURL:VH,IssuePostBadTitle:tV,IssuePostBadURL:dV,IssuePubliclyAccessible:mV,IssueSkippedPaths:yV,IssueSpamvertizeCheck:AV,IssueSuspiciousAdminUsers:_V,IssueTimelimit:CV,IssueWafStatus:IV,IssueWfAssistantPresent:BV,IssueWfLoginSecPresent:PV,IssueWfPluginAbandoned:ZV,IssueWfPluginRemoved:sU,IssueWfPluginUpgrade:yU,IssueWfPluginVulnerable:DU,IssueWfThemeUpgrade:VU,IssueWfUpgrade:XU,IssueWfUpgradeError:tY,IssueWpscanDirectoryList:sY,IssueWpscanFullPathDiscl:uY,IssueDefault:hY},n=b("__"),l=b("sprintf"),o=b("$mitt"),d=b("wfconstants"),p=b("$dataStore"),{$hasOwn:m}=cn(),g=R("new"),w=R(null),v=R(!1),y=R(null),A=R(null),{$loadIssues:k,$changeIssueStatus:_,$dismissIssue:S}=YF();$("summary",E(p.scanner.issues.$summary)),$("newIssueCount",E(p.scanner.issues.$newCount)),$("ignoredIssueCount",E(p.scanner.issues.$ignoredCount));const{$ajax:I,$ajaxErrorMessage:M}=In(),{$modal:L,$modalNotice:O,$modalNoticeHTML:P,$errorModalHTML:N}=Hn(),{$snakeCase2PascalCase:V}=Un();T(()=>{o.on("changeIgnore",ue),o.on("deleteFile",de),o.on("hideFile",pe),o.on("repairFile",he),o.on("markFixed",me),o.on("confirmBulkDelete",ge),o.on("confirmBulkRepair",we),q(),k()}),D(()=>{o.off("changeIgnore",ue),o.off("deleteFile",de),o.off("hideFile",pe),o.off("repairFile",he),o.off("markFixed",me),o.off("confirmBulkDelete",ge),o.off("confirmBulkRepair",we),w.value&&(w.value.disconnect(),w.value=null)});const U=e=>e===g.value,K=e=>{g.value=e},j=s(()=>"ignored"===g.value?p.scanner.issues.$ignored.length<p.scanner.issues.$ignoredCount:p.scanner.issues.$new.length<p.scanner.issues.$newCount),G=()=>{if(v.value||!j.value)return;const e="new"===g.value?p.scanner.issues.$new.length:p.scanner.issues.$newCount,t="ignored"===g.value?p.scanner.issues.$ignored.length:p.scanner.issues.$ignoredCount;v.value=!0,k(e,void 0,t,void 0,!0,()=>{v.value=!1,x(()=>Q())})},Q=()=>{if(v.value||!j.value)return;const e="ignored"===g.value?A.value:y.value;if(!e)return;const t=e.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;t.top<=a+50&&G()},q=()=>{w.value=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(e.target===y.value&&"new"!==g.value||e.target===A.value&&"ignored"!==g.value||G())})},{threshold:0,rootMargin:"100px 0px"}),y.value&&w.value.observe(y.value),A.value&&w.value.observe(A.value)};oe(()=>[g.value,p.scanner.issues.$new.length,p.scanner.issues.$newCount,p.scanner.issues.$ignored.length,p.scanner.issues.$ignoredCount],()=>{x(()=>Q())});const Z=e=>{const t="Issue"+V(e);return m(a,t)?a[t]:a.IssueDefault},z=s(()=>p.scanner.issues.$new.reduce((e,t)=>e||t.data?.canDelete,!1)),X=s(()=>p.scanner.issues.$new.reduce((e,t)=>e||t.data?.canFix,!1)),ee=s(()=>p.scanner.issues.$new.some(e=>d.scanner.site_cleaning_issue_types.includes(e.type))),te=s(()=>p.scanner.issues.$new.reduce((e,t)=>e||t.data?.highSense,!1)),ae=s(()=>p.scanner.issues.$new.reduce((e,t)=>e||t.data?.betaSignatures,!1)),ne=s(()=>(p.scanner.issues.$summary[d.scanner.summary.scanned_posts]??0)+(p.scanner.issues.$summary[d.scanner.summary.scanned_comments]??0)+(p.scanner.issues.$summary[d.scanner.summary.scanned_files]??0)),le=s(()=>(p.scanner.issues.$summary[d.scanner.summary.scanned_plugins]??0)+(p.scanner.issues.$summary[d.scanner.summary.scanned_themes]??0)),se=s(()=>p.scanner.issues.$summary[d.scanner.summary.scanned_users]??0),ie=s(()=>p.scanner.issues.$summary[d.scanner.summary.scanned_urls]??0),ue=e=>{const{issueID:t,ignoreAction:a}=e;_(t,a)},de=e=>{I("wordfence_deleteFile",{issueID:e,forceDelete:!1},t=>{t.needsCredentials?document.location.href=t.redirect:t.ok&&(S(e),o.emit("issueCountsUpdated",t.issueCounts),O(n("Success deleting file"),l(n("The file %s was successfully deleted."),t.file)))})},pe=e=>{I("wordfence_checkHtaccess",{},t=>{t.ok?L("fix-htaccess-modal",{onConfirm:()=>{I("wordfence_hideFileHtaccess",{issueID:e},t=>{t.ok&&(S(e),o.emit("issueCountsUpdated",t.issueCounts),O(n("File hidden successfully"),n("The file was successfully hidden from public view.")))})}}):t.nginx&&O(n("Unable to automatically hide file"),n("You are using an Nginx web server and using a FastCGI processor like PHP5-FPM. You will need to manually delete or hide those files."))},e=>{N(l(n("We can't modify your .htaccess file for you because: %s"),M(e)))})},fe=e=>{I("wordfence_restoreFile",{issueID:e},t=>{t.needsCredentials?document.location.href=t.redirect:t.ok&&(S(e),o.emit("issueCountsUpdated",t.issueCounts),O(n("Success restoring file"),l(n("The file %s was successfully restored."),t.file)))})},he=e=>{if(window.localStorage){const t=window.localStorage.getItem("wf-repair-file-sudo");if(t&&parseInt(t,10)>/* @__PURE__ */(new Date).getTime())return void fe(e.id)}L("scanner-single-repair-modal",{issueData:e,onConfirm:t=>{J(t.dontPromptAgain)&&window.localStorage&&window.localStorage.setItem("wf-repair-file-sudo",/* @__PURE__ */(new Date).getTime()+864e5),fe(e.id)}})},me=e=>{_(e,"delete")},ge=()=>{o.emit("closeModal","scanner-bulk-delete-modal"),I("wordfence_bulkOperation",{op:"del"},e=>{if(e.ok){for(const t of e.idsRemoved)S(t);o.emit("issueCountsUpdated",e.issueCounts),P(e.bulkHeading,e.bulkBody)}})},we=()=>{o.emit("closeModal","scanner-bulk-repair-modal"),I("wordfence_bulkOperation",{op:"repair"},e=>{if(e.ok){for(const t of e.idsRemoved)S(t);o.emit("issueCountsUpdated",e.issueCounts),P(e.bulkHeading,e.bulkBody)}})};return(e,a)=>{const l=W("aria");return B(),u("div",mY,[re((B(),u("ul",gY,[c("li",{class:C(["wf-tab",{"wf-active":U("new")}]),id:"wf-scan-tab-new"},[re((B(),u("a",{href:"#new","aria-selected":U("new"),onClick:a[0]||(a[0]=ce(e=>K("new"),["prevent"]))},[h(J(Vs),{text:J(n)("Results Found"),xs:J(n)("Results")},null,8,["text","xs"]),f(" ("+Y(J(p).scanner.issues.$newCount)+")",1)],8,wY)),[[l,{role:"tab"}]])],2),c("li",{class:C(["wf-tab",{"wf-active":U("ignored")}]),id:"wf-scan-tab-ignored"},[re((B(),u("a",{href:"#ignored","aria-selected":U("ignored"),onClick:a[1]||(a[1]=ce(e=>K("ignored"),["prevent"]))},[h(J(Vs),{text:J(n)("Ignored Results"),xs:J(n)("Ignored")},null,8,["text","xs"]),f(" ("+Y(J(p).scanner.issues.$ignoredCount)+")",1)],8,vY)),[[l,{role:"tab"}]])],2),c("li",yY,[c("span",bY,[re((B(),u("a",{href:"#",id:"wf-scan-bulk-buttons-delete",class:C(["wf-btn wf-btn-default wf-btn-callout-subtle",{"wf-disabled":!z.value}]),onClick:a[2]||(a[2]=ce(e=>J(L)("scanner-bulk-delete-modal"),["prevent","stop"]))},[f(Y(J(n)("Delete All Deletable Files")),1)],2)),[[l,{role:"button"}]]),a[4]||(a[4]=f(" ",-1)),re((B(),u("a",{href:"#",id:"wf-scan-bulk-buttons-repair",class:C(["wf-btn wf-btn-default wf-btn-callout-subtle",{"wf-disabled":!X.value}]),onClick:a[3]||(a[3]=ce(e=>J(L)("scanner-bulk-repair-modal"),["prevent","stop"]))},[f(Y(J(n)("Repair All Repairable Files")),1)],2)),[[l,{role:"button"}]])])])])),[[l,{role:"tablist"}]]),c("ul",AY,[c("li",kY,[c("div",_Y,[c("div",xY,[c("ul",CY,[c("li",null,[c("ul",SY,[c("li",null,Y(J(n)("Posts, Comments, & Files")),1),c("li",IY,Y(ne.value),1)])]),c("li",null,[c("ul",DY,[c("li",null,Y(J(n)("Themes & Plugins")),1),c("li",MY,Y(le.value),1)])]),c("li",null,[c("ul",TY,[c("li",null,Y(J(n)("Users Checked")),1),c("li",LY,Y(se.value),1)])]),c("li",null,[c("ul",OY,[c("li",null,Y(J(n)("URLs Checked")),1),c("li",BY,Y(ie.value),1)])]),c("li",null,[c("ul",$Y,[c("li",null,Y(J(n)("Results Found")),1),c("li",PY,Y(J(p).scanner.issues.$newCount),1)])])]),c("ul",EY,[c("li",null,[c("ul",RY,[c("li",null,Y(J(n)("Posts, Comments, & Files")),1),c("li",FY,Y(ne.value),1)])]),c("li",null,[c("ul",NY,[c("li",null,Y(J(n)("Themes & Plugins")),1),c("li",WY,Y(le.value),1)])]),c("li",null,[c("ul",HY,[c("li",null,Y(J(n)("Users Checked")),1),c("li",VY,Y(se.value),1)])]),c("li",null,[c("ul",UY,[c("li",null,Y(J(n)("URLs Checked")),1),c("li",YY,Y(ie.value),1)])]),c("li",null,[c("ul",KY,[c("li",null,Y(J(n)("Results Found")),1),c("li",jY,Y(J(p).scanner.issues.$newCount),1)])])])])])]),c("li",{class:C(["wf-scan-results-issues",{"wf-active":U("new")}]),id:"wf-scan-results-new","data-issue-type":"new"},[J(p).scanner.issues.$newCount?r("",!0):(B(),u("ul",GY,[c("li",QY,[c("ul",null,[c("li",qY,[c("div",ZY,Y(J(n)("No new issues have been found.")),1)]),a[5]||(a[5]=c("li",{class:"wf-issue-stats"},null,-1)),a[6]||(a[6]=c("li",{class:"wf-issue-controls"},null,-1))])])])),(B(!0),u(t,null,F(J(p).scanner.issues.$new.slice(0,1),e=>(B(),i(H(Z(e.type)),{key:e.id,"issue-data":E(e)},null,8,["issue-data"]))),128)),ee.value?(B(),i(J(FN),{key:1,"high-sense":te.value,"beta-sigs":ae.value},null,8,["high-sense","beta-sigs"])):r("",!0),(B(!0),u(t,null,F(J(p).scanner.issues.$new.slice(1),e=>(B(),i(H(Z(e.type)),{key:e.id,"issue-data":E(e)},null,8,["issue-data"]))),128)),c("div",{ref_key:"newIssuesSentinel",ref:y,class:"wf-scan-results-sentinel"},null,512)],2),c("li",{class:C(["wf-scan-results-issues",{"wf-active":U("ignored")}]),id:"wf-scan-results-ignored","data-issue-type":"ignored"},[J(p).scanner.issues.$ignoredCount?r("",!0):(B(),u("ul",JY,[c("li",zY,[c("ul",null,[c("li",XY,[c("div",eK,Y(J(n)("No issues have been ignored.")),1)]),a[7]||(a[7]=c("li",{class:"wf-issue-stats"},null,-1)),a[8]||(a[8]=c("li",{class:"wf-issue-controls"},null,-1))])])])),(B(!0),u(t,null,F(J(p).scanner.issues.$ignored,e=>(B(),i(H(Z(e.type)),{key:e.id,"issue-data":E(e)},null,8,["issue-data"]))),128)),c("div",{ref_key:"ignoredIssuesSentinel",ref:A,class:"wf-scan-results-sentinel"},null,512)],2)])])}}},aK={id:"wf-scan-starter",class:"wf-block-navigation-option"},nK={class:"wf-block-navigation-option-content"},lK={__name:"ScanStarter",setup(e){const t=b("__"),a=b("$dataStore"),{$modalNotice:n,$errorModal:l}=Hn(),{$startScan:o,$killScan:i}=YF(),r=()=>{i(e=>{e?n(t("Scan Stopping"),t("A termination request has been sent to stop any running scans.")):l(t("We failed to send a termination request."))})},d=s(()=>{let e=[];return e.push("wf-btn"),e.push("wf-btn-primary"),e.push("wf-btn-callout-subtle"),e.push("wf-scan-starter-idle"),a.scanner.state.$scanStalled&&e.push("wf-disabled"),e});return(e,n)=>{const l=W("aria");return B(),u("div",aK,[c("div",nK,[J(a).scanner.state.$scanRunning?re((B(),u("a",{key:1,href:"#",class:"wf-btn wf-btn-primary wf-btn-callout-subtle wf-scan-starter-running",onClick:ce(r,["stop","prevent"])},[f(Y(J(t)("Stop Scan")),1)])),[[l,{role:"button"}]]):re((B(),u("a",{key:0,href:"#",class:C(d.value),onClick:n[0]||(n[0]=ce((...e)=>J(o)&&J(o)(...e),["stop","prevent"]))},[f(Y(J(t)("Start New Scan")),1)],2)),[[l,{role:"button"}]])])])}}},sK={class:"wf-col-xs-12"},oK={class:"wf-block wf-active"},iK={class:"wf-block-content"},rK={class:"wf-block-list"},uK={key:0},cK={class:"wf-block-list wf-block-list-horizontal"},dK={key:0},pK={class:"wf-block-labeled-value wf-scan-status wf-scan-status-full-enabled"},fK={class:"wf-block-labeled-value-label"},hK={key:0,class:"wf-scan-status-disabled"},mK={key:1,class:"wf-block-labeled-value wf-scan-status wf-scan-status-enabled"},gK={class:"wf-block-labeled-value-value"},wK={class:"wf-fa wf-fa-check"},vK={class:"wf-block-labeled-value-label"},yK={key:0},bK={class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/#premium-order-form",target:"_blank",rel:"noopener noreferrer"},AK={class:"wf-btn wf-btn-callout-subtle wf-btn-default",href:"https://www.wordfence.com/gnl1scanLearn/wordfence-signup/",target:"_blank",rel:"noopener noreferrer"},kK={key:1,class:"wf-block-labeled-value wf-protection-status wf-protection-status-premium"},_K={class:"wf-block-labeled-value-value"},xK={class:"wf-fa wf-fa-check"},CK={class:"wf-block-labeled-value-label"},SK={class:"wf-block-list wf-block-list-horizontal wf-block-list-nowrap wf-scanner-coverage"},IK={__name:"ScannerHeader",props:{showScanStatus:{type:Boolean,default:!0},showOptionsLinks:{type:Boolean,default:!0}},setup(e){const a=b("__"),n=b("wfconstants"),{$setOption:l}=Vn(),s=()=>{l("scheduledScansEnabled",!0,()=>{window.location.reload(!0)})};return(l,o)=>{const i=W("aria");return B(),u("div",sK,[c("div",oK,[c("div",iK,[c("ul",rK,[e.showScanStatus?(B(),u("li",uK,[c("ul",cK,[J(n).scanner.enabled&&J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?(B(),u("li",dK,[c("div",pK,[c("div",fK,[J(n).license.current.type===J(n).license.types.response?(B(),u(t,{key:0},[f(Y(J(a)("Wordfence Scan & Response License Enabled")),1)],64)):J(n).license.current.type===J(n).license.types.care?(B(),u(t,{key:1},[f(Y(J(a)("Wordfence Scan & Care License Enabled")),1)],64)):(B(),u(t,{key:2},[f(Y(J(a)("Wordfence Scan & Premium Enabled")),1)],64))])])])):(B(),u(t,{key:1},[c("li",null,[J(n).scanner.enabled?(B(),u("div",mK,[c("div",gK,[re(c("i",wK,null,512),[[i,{hidden:!0}]])]),c("div",vK,Y(J(a)("Wordfence Scan Enabled")),1)])):(B(),u("div",hK,[c("h3",null,Y(J(a)("Wordfence Scan Deactivated")),1),c("p",null,Y(J(a)("A Wordfence scan examines all files, posts, pages, and comments on your WordPress website looking for malware, known malicious URLs, and known patterns of infections. It also does several other reputation and server checks.")),1),c("p",null,[re((B(),u("a",{class:"wf-btn wf-btn-primary wf-btn-callout-subtle",href:"#",id:"wf-scan-top-enable-scans",onClick:ce(s,["stop","prevent"])},[f(Y(J(a)("Enable Automatic Scans")),1)])),[[i,{role:"button"}]])])]))]),c("li",null,[J(n).scanner.signatureMode===J(n).scanner.signatureModes.community?(B(),u("div",yK,[c("h3",null,Y(J(a)("Premium Protection Disabled")),1),c("p",null,Y(J(a)("As a free Wordfence user, you are currently using the Community version of the Threat Defense Feed. Premium users are protected by additional firewall rules and malware signatures as well as the Wordfence real-time IP blocklist. Upgrade to Premium today to improve your protection.")),1),c("p",null,[c("a",bK,Y(J(a)("Upgrade to Premium")),1),o[0]||(o[0]=f(" ",-1)),c("a",AK,[f(Y(J(a)("Learn More")),1),h(J(Kn))])])])):(B(),u("div",kK,[c("div",_K,[re(c("i",xK,null,512),[[i,{hidden:!0}]])]),c("div",CK,Y(J(a)("Premium Protection Enabled")),1)]))])],64))])])):r("",!0),c("li",null,[c("ul",SK,[c("li",null,[h(J(mf),{id:"wf-scanner-type",percentage:J(n).scanner.scanTypePercentage,activeColorOverride:J(n).scanner.enabled?null:"#ececec",title:`${J(a)("Scan Type")}: ${J(n).scanner.current.display_type}`,subtitle:J(n).scanner.current.display_detail,link:J(n).plugin.url.scan_options,linkLabel:e.showOptionsLinks?J(a)("Manage Scan"):null,statusTitle:J(a)("Scan Status"),statusList:J(n).scanner.scanTypeStatusList,helpLink:"https://www.wordfence.com/help/scan/#scan-status"},null,8,["percentage","activeColorOverride","title","subtitle","link","linkLabel","statusTitle","statusList"])]),c("li",null,[h(J(mf),{id:"wf-scanner-malware-type",percentage:J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?1:.7,activeColorOverride:J(n).scanner.enabled?null:"#ececec",title:J(a)("Malware Signatures")+": "+(J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?J(a)("Premium"):J(a)("Community")),subtitle:J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?J(a)("Signatures updated in real-time"):J(a)("Signature updates delayed by 30 days"),link:"https://www.wordfence.com/gnl1scanUpgrade/wordfence-signup/",linkLabel:e.showOptionsLinks?J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?J(a)("Protect More Sites"):J(a)("Upgrade to Premium"):null,linkNewWindow:!0,statusTitle:J(a)("Malware Signatures Status"),statusList:J(n).scanner.signatureMode===J(n).scanner.signatureModes.premium?[]:[{percentage:.3,title:J(a)("Enable Premium Scan Signatures.")}],helpLink:"https://www.wordfence.com/help/scan/#scan-status"},null,8,["percentage","activeColorOverride","title","subtitle","linkLabel","statusTitle","statusList"])]),c("li",null,[h(J(mf),{id:"wf-scanner-reputation",percentage:J(n).scanner.reputationPercentage,activeColorOverride:J(n).scanner.enabled?null:"#ececec",title:J(a)("Reputation Checks"),subtitle:J(a)("Check spam & spamvertising blocklists"),link:J(n).plugin.url.general_scan_options,linkLabel:e.showOptionsLinks?J(a)("Manage Options"):null,statusTitle:J(a)("Reputation Check Status"),statusList:J(n).scanner.reputationStatusList,helpLink:"https://www.wordfence.com/help/scan/#scan-status"},null,8,["percentage","activeColorOverride","title","subtitle","link","linkLabel","statusTitle","statusList"])])])])])])])])}}},DK=["href"],MK="fix-htaccess-modal",TK={__name:"FixHtaccessModal",props:{show:{type:Boolean,default:!1},issueID:{type:Number,default:0},issueData:{type:Object,default:()=>({})}},emits:["confirm"],setup(e,{emit:t}){const{$makeDownloadHtaccessFileLink:a}=WW(),l=b("__"),s=b("$mitt");$("modalName",MK);const o=t,u=R(!1),d=e;oe(()=>d.show,e=>{e&&(u.value=!1)});const p=()=>{o("confirm"),s.emit("closeModal",MK)};return(t,o)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(l)(".htaccess change")),1)]),body:ie(()=>[c("p",null,[h(J(Ep),{unsafeHTML:J(l)("We are about to change your <em>.htaccess</em> file. Please make a backup of this file before proceeding.")},null,8,["unsafeHTML"])]),o[2]||(o[2]=c("br",null,null,-1)),c("p",null,[c("a",{href:J(a)(),onClick:o[0]||(o[0]=e=>u.value=!0)},Y(J(l)("Click here to download a backup copy of your .htaccess file now")),9,DK)])]),"primary-button":ie(()=>[h(J(Np),{onClick:o[1]||(o[1]=e=>J(s).emit("closeModal",MK)),"is-primary":!0},{default:ie(()=>[f(Y(J(l)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:p,"button-type":"wf-btn-danger",enabled:u.value},{default:ie(()=>[f(Y(J(l)("Fix .htaccess")),1)]),_:1},8,["enabled"])]),_:1})):r("",!0)]),_:1}))}},LK={class:"wf-callout-warning"},OK={class:"wf-fa wf-fa-exclamation-triangle"},BK=["href"],$K="scanner-bulk-delete-modal",PK={__name:"ScannerBulkDeleteModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt"),l=b("wfconstants");return $("modalName",$K),(s,o)=>{const u=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Are you sure you want to delete?")),1)]),body:ie(()=>[c("p",LK,[re(c("i",OK,null,512),[[u,{hidden:!0}]]),o[2]||(o[2]=f()),c("strong",null,Y(J(t)("WARNING"))+":",1),f("' "+Y(J(t)("If you delete the wrong file, it could cause your WordPress website to stop functioning, and you will probably have to restore from a backup.")),1)]),c("p",null,[f(Y(J(t)("Do not delete files on your system unless you're ABSOLUTELY sure you know what you're doing. If you delete the wrong file it could cause your WordPress website to stop functioning and you will probably have to restore from backups. If you're unsure, Cancel and work with your hosting provider to clean your system of infected files."))+" ",1),c("a",{href:J(l).support.url.scan_bulk_delete_warning,target:"_blank",rel:"noopener noreferrer"},[f(Y(J(t)("Click here for our help article")),1),h(J(Kn))],8,BK),o[3]||(o[3]=f(".",-1))])]),"primary-button":ie(()=>[h(J(Np),{onClick:o[0]||(o[0]=e=>J(a).emit("closeModal",$K)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:o[1]||(o[1]=e=>J(a).emit("confirmBulkDelete")),"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Delete Files")),1)]),_:1})]),_:1})):r("",!0)]),_:1})}}},EK={class:"wf-callout-warning"},RK={class:"wf-fa wf-fa-exclamation-triangle"},FK="scanner-bulk-repair-modal",NK={__name:"ScannerBulkRepairModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("$mitt");return $("modalName",FK),(l,s)=>{const o=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Are you sure you want to repair?")),1)]),body:ie(()=>[c("p",EK,[re(c("i",RK,null,512),[[o,{hidden:!0}]]),s[2]||(s[2]=f()),c("strong",null,Y(J(t)("WARNING"))+":",1),f("' "+Y(J(t)("If you delete the wrong file, it could cause your WordPress website to stop functioning, and you will probably have to restore from a backup.")),1)]),c("p",null,Y(J(t)("Do not repair files on your system unless you're ABSOLUTELY sure you know what you're doing. If you repair the wrong file it could cause your WordPress website to stop functioning and you will probably have to restore from backups. If you're unsure, Cancel and work with your hosting provider to clean your system of infected files.")),1)]),"primary-button":ie(()=>[h(J(Np),{onClick:s[0]||(s[0]=e=>J(a).emit("closeModal",FK)),"is-primary":!0},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:s[1]||(s[1]=e=>J(a).emit("confirmBulkRepair")),"button-type":"wf-btn-danger"},{default:ie(()=>[f(Y(J(t)("Repair Files")),1)]),_:1})]),_:1})):r("",!0)]),_:1})}}},WK="scanner-email-activity-log-modal",HK={__name:"ScannerEmailActivityLogModal",props:{show:{type:Boolean,default:!1}},setup(e){const t=b("__"),a=b("sprintf"),l=b("$mitt");$("modalName",WK);const{$ajax:o}=In(),{$modalNotice:u}=Hn(),d=R("wftest@wordfence.com"),p=s(()=>/^[^@]+@[^@]+$/.test(d.value)),m=()=>{o("wordfence_sendActivityLog",{email:d.value},e=>{e.ok&&u(t("Activity Log Sent"),a(t("Your Wordfence activity log was sent to %s"),d.value))}),l.emit("closeModal",WK)};return(a,s)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(t)("Email Wordfence Activity Log")),1)]),body:ie(()=>[c("p",null,Y(J(t)("Enter the email address you would like to send the Wordfence activity log to. Note that the activity log may contain thousands of lines of data. This log is usually only sent to a member of the Wordfence support team. It also contains your PHP configuration from the phpinfo() function for diagnostic data.")),1),c("p",null,[re(c("input",{type:"text","onUpdate:modelValue":s[0]||(s[0]=e=>d.value=e),size:"20"},null,512),[[le,d.value]])])]),"primary-button":ie(()=>[h(J(Np),{onClick:m,"is-primary":!0,enabled:p.value},{default:ie(()=>[f(Y(J(t)("Send")),1)]),_:1},8,["enabled"])]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:s[1]||(s[1]=e=>J(l).emit("closeModal",WK))},{default:ie(()=>[f(Y(J(t)("Cancel")),1)]),_:1})]),_:1})):r("",!0)]),_:1}))}},VK={class:"wf-padding-add-top-medium"},UK=["href"],YK={class:"wordfenceHelpLink"},KK=["href"],jK={class:"wfhelpextra"},GK="scanner-single-repair-modal",QK={__name:"ScannerSingleRepairModal",props:{show:{type:Boolean,default:!1},issueData:{type:Object,default:()=>({})}},emits:["confirmRepair"],setup(e,{emit:t}){const{$makeDownloadFileLink:a}=WW(),l=b("__"),s=b("$mitt"),o=b("wfconstants");$("modalName",GK);const d=t,p=R(!1),m=R(!1),g=e;oe(()=>g.show,e=>{e&&(p.value=!1,m.value=!1)});const w=()=>{d("confirmRepair",{dontPromptAgain:m}),s.emit("closeModal",GK)};return(t,d)=>{const g=W("aria");return B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(eu),{key:0,modalSize:"md"},{header:ie(()=>[c("strong",null,Y(J(l)("Download Backup File")),1)]),body:ie(()=>[c("p",null,Y(J(l)("Please make a backup of this file before proceeding. If you need to restore this backup file, you can copy it to the following path from your site's root:")),1),c("p",VK,[c("code",null,Y(e.issueData.data?.file),1)]),c("p",null,[re((B(),u("a",{href:J(a)(e.issueData.data),onClick:d[0]||(d[0]=e=>p.value=!0),class:"wf-btn wf-btn-default"},[f(Y(J(l)("Download File")),1)],8,UK)),[[g,{role:"button"}]]),d[3]||(d[3]=f()),c("span",YK,[c("a",{href:J(o).support.url.scan_result_repair_modified_files,target:"_blank",rel:"noopener noreferrer",class:"wfhelp"},[c("span",jK,[f(Y(J(l)("Learn more about repairing modified files.")),1),h(J(Kn))])],8,KK)])])]),accessory:ie(()=>[c("label",null,[re(c("input",{type:"checkbox","onUpdate:modelValue":d[1]||(d[1]=e=>m.value=e)},null,512),[[te,m.value]]),f(Y(J(l)("Don't ask again")),1)])]),"primary-button":ie(()=>[h(J(Np),{onClick:d[2]||(d[2]=e=>J(s).emit("closeModal",GK)),"is-primary":!0},{default:ie(()=>[f(Y(J(l)("Cancel")),1)]),_:1})]),"secondary-buttons":ie(()=>[h(J(Np),{onClick:w,"button-type":"wf-btn-danger",enabled:p.value},{default:ie(()=>[f(Y(J(l)("Repair File")),1)]),_:1},8,["enabled"])]),_:1})):r("",!0)]),_:1})}}},qK={__name:"ScannerModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=cn(),n=P({"fix-htaccess-modal":{show:!1,confirmHandler:()=>{},configurator:e=>{n[e.name].confirmHandler=()=>{a(e,"onConfirm")&&"function"==typeof e.onConfirm&&e.onConfirm()}}},"scanner-bulk-delete-modal":{show:!1,configurator:e=>{}},"scanner-bulk-repair-modal":{show:!1,configurator:e=>{}},"scanner-email-activity-log-modal":{show:!1,configurator:e=>{}},"scanner-single-repair-modal":{show:!1,issueData:{},confirmHandler:()=>{},configurator:e=>{n[e.name].issueData=a(e,"issueData")?e.issueData:{},n[e.name].confirmHandler=t=>{a(e,"onConfirm")&&"function"==typeof e.onConfirm&&e.onConfirm(t)}}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(Nr),{show:l.value},null,8,["show"]),h(J(TK),{show:n["fix-htaccess-modal"].show,onConfirm:n["fix-htaccess-modal"].confirmHandler},null,8,["show","onConfirm"]),h(J(PK),{show:n["scanner-bulk-delete-modal"].show},null,8,["show"]),h(J(NK),{show:n["scanner-bulk-repair-modal"].show},null,8,["show"]),h(J(HK),{show:n["scanner-email-activity-log-modal"].show},null,8,["show"]),h(J(QK),{show:n["scanner-single-repair-modal"].show,issueData:n["scanner-single-repair-modal"].issueData,onConfirmRepair:n["scanner-single-repair-modal"].confirmHandler},null,8,["show","issueData","onConfirmRepair"])]))}},ZK={__name:"NewTour1",setup(e){const t=b("__");return(e,a)=>(B(),u("p",null,Y(J(t)("A Wordfence scan looks for malware, malicious URLs, and patterns of infections by examining all of the files, posts, and comments on your WordPress website. It also checks your server and monitors your site's online reputation.")),1))}},JK={__name:"NewTour2",setup(e){const t=b("__");return(e,a)=>(B(),u("div",null,[a[0]||(a[0]=c("p",{class:"wf-center"},[c("svg",{viewBox:"0 0 100.11 100.11",class:"wf-icon"},[c("path",{d:"M99.59,41.42a2.06,2.06,0,0,0-1.37-.82L86.3,38.78a39.34,39.34,0,0,0-2.67-6.39q1.17-1.63,3.52-4.6t3.32-4.33A2.52,2.52,0,0,0,91,22a2.1,2.1,0,0,0-.46-1.43Q88.18,17.2,79.78,9.45a2.52,2.52,0,0,0-1.63-.65,2.12,2.12,0,0,0-1.57.59l-9.25,7a40.09,40.09,0,0,0-5.87-2.41L59.64,2a1.92,1.92,0,0,0-.75-1.4A2.46,2.46,0,0,0,57.29,0H42.82a2.19,2.19,0,0,0-2.34,1.82,106,106,0,0,0-1.89,12.12,37.62,37.62,0,0,0-5.93,2.48l-9-7A2.78,2.78,0,0,0,22,8.8q-1.44,0-6.16,4.66a64.88,64.88,0,0,0-6.42,7A2.75,2.75,0,0,0,8.8,22a2.44,2.44,0,0,0,.65,1.56q4.37,5.28,7,9a32.38,32.38,0,0,0-2.54,6L1.76,40.34a2,2,0,0,0-1.24.85A2.5,2.5,0,0,0,0,42.69V57.16a2.44,2.44,0,0,0,.52,1.53,2,2,0,0,0,1.37.82l11.93,1.76a31.91,31.91,0,0,0,2.67,6.45Q15.31,69.35,13,72.31T9.65,76.65a2.54,2.54,0,0,0-.07,3q2.54,3.52,10.75,11a2.25,2.25,0,0,0,1.63.71,2.35,2.35,0,0,0,1.63-.59l9.19-7a40.54,40.54,0,0,0,5.87,2.41l1.82,12a1.92,1.92,0,0,0,.75,1.4,2.45,2.45,0,0,0,1.6.55H57.29a2.2,2.2,0,0,0,2.35-1.82,107.41,107.41,0,0,0,1.89-12.12,37.19,37.19,0,0,0,5.93-2.48l9,7a3.18,3.18,0,0,0,1.69.59q1.43,0,6.13-4.62a65.86,65.86,0,0,0,6.45-7,2.16,2.16,0,0,0,.59-1.5,2.51,2.51,0,0,0-.65-1.63q-4.69-5.74-7-9a41.57,41.57,0,0,0,2.54-5.93l12.06-1.82a2,2,0,0,0,1.3-.85,2.52,2.52,0,0,0,.52-1.5V43a2.46,2.46,0,0,0-.52-1.53ZM61.85,61.86a16.08,16.08,0,0,1-11.8,4.89A16.69,16.69,0,0,1,33.37,50.06,16.69,16.69,0,0,1,50.06,33.37,16.69,16.69,0,0,1,66.74,50.06a16.08,16.08,0,0,1-4.89,11.8Zm0,0"})])],-1)),c("p",null,Y(J(t)("Set up the way you want the scan to monitor your site security including custom scan configurations and scheduling.")),1)]))}},zK={__name:"NewTour3",setup(e){const t=b("__");return(e,a)=>(B(),u("div",null,[c("p",null,Y(J(t)("By default, Wordfence will scan your site daily. Start your first scan now to see if your site has any security issues that need to be addressed. From here you can run manual scans any time you like.")),1)]))}},XK={__name:"ScannerNewTour",setup(e){const t=b("__"),n=b("wfconstants"),l=R(!1),s=R(0);$("tourName",n.tour.types.scan),T(()=>{n.tour.new.scan&&(l.value=!0)});const o=[{title:t("Scan"),content:ZK,anchor:{selector:"#wf-section-scan",pointer:{edge:"top",align:"left"}}},{title:t("Manage Scan Settings"),content:JK,anchor:{selector:"#wf-scan-option-all-options",pointer:{edge:"right",align:"right"}}},{title:t("Start Your First Scan"),content:zK,anchor:{selector:"#wf-scan-starter",pointer:{edge:"left",align:"left"}}}],r=()=>{n.tour.new.scan=!1,l.value=!1};return(e,t)=>(B(),i(a,{to:"#wpwrap"},[h(J(Sn),{show:l.value},null,8,["show"]),h(J(Fn),{show:l.value,selectedIndex:s.value,slides:o,onCloseTour:r},null,8,["show","selectedIndex"])]))}},ej={key:0,class:"wf-scrollTop"},tj={__name:"ScrollTop",setup(e){const t=b("$");T(()=>{t(window).on("scroll",l)}),D(()=>{t(window).off("scroll",l)});const a=R(!1),l=()=>{a.value=t(window).scrollTop()>200},s=()=>{window.scrollTo({top:0,behavior:"smooth"})};return(e,t)=>(B(),i(n,{name:"wf-fade"},{default:ie(()=>[a.value?(B(),u("div",ej,[c("a",{href:"#",onClick:ce(s,["stop","prevent"])},[...t[0]||(t[0]=[c("i",{class:"wf-ionicons wf-ion-chevron-up"},null,-1)])])])):r("",!0)]),_:1}))}},aj={class:"wf-col-xs-12"},nj={key:0,class:"wf-onboarding-error"},lj={__name:"StandaloneInstall",props:{errorMessage:{type:[String,null],default:null},shouldShowOnboarding:{type:Boolean,default:!0},initialState:{type:Object,default:()=>({})}},setup(e){const t=b("wfconstants"),{$ajax:a}=In(),{$modal:n}=Hn(),{$setOption:l}=Vn(),s=e=>{((e,t,n)=>{const l=(t,n,l)=>a("wordfence_installLicense",{license:e,status_change:t},n,l);l(!1,e=>{e.success?l(!0,()=>{t(e)},n):n(e.error)},n)})(e.license,s=>{l("onboardingAttempt1",t.plugin.onboarding.stages.license,o=>{((e,o)=>{let i=1+(o?1:0),r=!1,u=!1;const c=e=>{u||(0===--i||r)&&(u=!0,(e=>{if(!e)return void n("onboarding-license-failure-modal");let a=s.isPaid?t.license.types.premium:t.license.types.free;!s.isPaid||s.type!==t.license.types.care&&s.type!==t.license.types.response||(a=s.type),n("onboarding-license-type-success-modal",{licenseType:a,showInUse:s.inUse})})(!r,e.error))},d=()=>{r=!0,c({})};l("alertEmails",e.join(", "),c,d),o&&a("wordfence_mailingSignup",{emails:JSON.stringify(e)},c,d)})([e.email],e.subscription)},()=>{n("onboarding-license-failure-modal")})},e=>{n("onboarding-license-failure-modal")})};return(t,a)=>(B(),u("div",aj,[e.errorMessage?(B(),u("p",nj,Y(e.errorMessage),1)):r("",!0),e.shouldShowOnboarding?(B(),i(J(SP),{key:1,attempt:1,existing:!0,license:e.initialState.license??null,email:e.initialState.email??null,onInstallLicense:s},null,8,["license","email"])):r("",!0)]))}},sj={id:"wf-tour-container"},oj=/*#__PURE__*/oW({},[["render",function(e,t){return B(),u("div",sj)}]]),ij={id:"wf-tools-two-factor"},rj={key:0,class:"wf-row"},uj={class:"wf-col-xs-12"},cj={id:"wordfenceTwoFactorLegacy"},dj={key:1,class:"wf-row"},pj={class:"wf-col-xs-12"},fj={id:"wordfenceTwoFactorModern"},hj=["href"],mj={key:0,class:"wf-row"},gj={class:"wf-col-xs-12"},wj={id:"wfTwoFacUsers"},vj={class:"wf-striped-table wf-table-twofactor"},yj={class:"wf-nowrap"},bj={key:0,class:"wf-nowrap"},Aj={key:1,class:"wf-nowrap"},kj={class:"wf-nowrap"},_j={key:0,class:"wf-green-dark"},xj={key:1,class:"wf-green-dark"},Cj={key:0,id:"twoFactorUser-none"},Sj={colspan:"3"},Ij={__name:"TwoFactorNotice",setup(e){const a=b("__"),n=b("sprintf"),l=b("$mitt"),s=b("wfconstants"),{$modal:o}=Hn(),{$setOption:i}=Vn(),d=()=>{o("simple-confirmation-modal",{title:a("Confirm 2FA Switch"),message:a("Please confirm the switch to the new 2FA mode. This change will be permanent."),options:{additionalButtons:[{title:a("Use New 2FA"),onClick:()=>{l.emit("closeModal","simple-confirmation-modal"),x(()=>{i("disableLegacy2FA",!0,()=>{window.location.href=s.plugin.url.login_security})})}}]}})};return(e,l)=>{const o=W("aria");return B(),u(t,null,[c("div",ij,[J(s).twofactor.using_legacy?(B(),u("div",rj,[c("div",uj,[c("div",cj,[c("p",null,[c("strong",null,Y(J(a)("2FA Mode: Legacy"))+".",1),f(" "+Y(J(a)('Management of legacy two-factor authentication using SMS-based codes is deprecated, and the old method of appending "wf" and a code will not be supported in the future. An improved interface and usage by non-administrators is available by activating the login security module. Users who have legacy 2FA enabled will still be required to enter a code while logging in currently, but legacy 2FA users can no longer be added or removed.')),1)]),c("p",null,Y(J(a)("If you need to continue using the legacy 2FA mode, you will need to downgrade to the 8.1.4 version of Wordfence temporarily. This feature will be discontinued around July 1, 2026, and legacy 2FA codes will no longer be required at that time, even when using an old plugin version.")),1),c("p",null,[re((B(),u("a",{id:"wf-migrate2fanew-start",class:"wf-btn wf-btn-default wf-btn-sm wf-dismiss-link",href:"#",onClick:ce(d,["stop","prevent"])},[f(Y(J(a)("Switch to New 2FA")),1)])),[[o,{role:"button"}]])])])])])):(B(),u("div",dj,[c("div",pj,[c("div",fj,[c("p",null,[c("strong",null,Y(J(a)("2FA Mode: Normal"))+".",1),f(" "+Y(J(a)("Legacy support for SMS-based two-factor authentication has been phased out, as it is less secure than using a modern authenticator app.")),1)]),c("p",null,[c("a",{id:"wf-migrate2faold-start",class:"wf-btn wf-btn-default wf-btn-sm wf-dismiss-link",href:J(s).plugin.url.login_security,role:"button"},Y(J(a)("Go to Login Security")),9,hj)])])])]))]),J(s).twofactor.using_legacy?(B(),u("div",mj,[c("div",gj,[c("h2",null,Y(J(a)("Legacy Two-Factor Authentication Users")),1),c("div",wj,[c("table",vj,[c("thead",null,[c("tr",null,[c("th",null,Y(J(a)("User")),1),c("th",null,Y(J(a)("Mode")),1),c("th",null,Y(J(a)("Status")),1)])]),c("tbody",null,[(B(!0),u(t,null,F(J(s).twofactor.legacy_users,e=>(B(),u("tr",{key:e.userID},[c("td",yj,Y(e.username),1),"phone"===e.mode?(B(),u("td",bj,Y(J(n)(J(a)("Phone (%s)"),e.phone)),1)):(B(),u("td",Aj,Y(J(a)("Authenticator")),1)),c("td",kj,["activated"===e.status?(B(),u("span",_j,Y(J(a)("Cellphone Sign-in Enabled")),1)):(B(),u("span",xj,Y(J(a)("Not Active")),1))])]))),128)),0===J(s).twofactor.legacy_users.length?(B(),u("tr",Cj,[c("td",Sj,Y(J(a)("No users currently have legacy cellphone sign-in enabled.")),1)])):r("",!0)])])])])])):r("",!0)],64)}}},Dj={class:"wf-form wf-flex-row"},Mj={class:"wf-flex-row-1"},Tj=["onKeydown"],Lj={class:"wf-flex-row-0 wf-padding-add-left"},Oj=["value","disabled"],Bj={key:0,class:"wf-block wf-active wf-padding-add-top"},$j={class:"wf-block-content wf-clearfix"},Pj={class:"wf-block-list"},Ej={class:"wf-padding-add-top"},Rj={__name:"WhoisForm",setup(e){const a=b("__"),{$ajax:n}=In(),l=R(""),o=R(!1),i=()=>{d.value&&(o.value=!1,n("wordfence_whois",{val:d.value},e=>{o.value=e.result?e.result:null}))},d=s(()=>l.value.replace(/\s+/g,""));return(e,n)=>(B(),u(t,null,[c("div",Dj,[c("div",Mj,[re(c("input",{type:"text",class:"wf-form-control",name:"whois",id:"wfwhois","onUpdate:modelValue":n[0]||(n[0]=e=>l.value=e),onInput:n[1]||(n[1]=e=>l.value=e.target.value.replace(/\s+/g,"")),maxlength:"255",onKeydown:ue(ce(i,["stop","prevent"]),["enter"])},null,40,Tj),[[le,l.value]])]),c("div",Lj,[c("input",{type:"button",name:"whoisbutton",id:"whoisbutton",class:"wf-btn wf-btn-primary",value:J(a)("Look up IP or Domain"),onClick:ce(i,["stop","prevent"]),disabled:!d.value},null,8,Oj)])]),!1!==o.value?(B(),u("div",Bj,[c("div",$j,[c("ul",Pj,[c("li",null,[c("div",Ej,[h(J(mB),{whoisResponse:o.value},null,8,["whoisResponse"])])])])])])):r("",!0)],64))}},Fj={class:"wf-table wf-table-hover"},Nj={colspan:"2"},Wj=["title"],Hj={__name:"WidgetContentIPs",props:{dashboardData:{type:Array,default:()=>[]}},setup(e){const a=b("__"),n=e=>{let t=[];return t.push("wf-flag"),t.push("wf-flag-"+e.toLowerCase()),t};return(l,s)=>(B(),u("table",Fj,[c("thead",null,[c("tr",null,[c("th",null,Y(J(a)("IP")),1),c("th",Nj,Y(J(a)("Country")),1),c("th",null,Y(J(a)("Block Count")),1)])]),c("tbody",null,[(B(!0),u(t,null,F(e.dashboardData,e=>{return B(),u("tr",{key:e.IP},[c("td",null,Y(e.IP),1),c("td",null,Y(e.countryName),1),c("td",null,[c("span",{class:C(n(e.countryCode)),title:e.countryName},null,10,Wj)]),c("td",null,Y((t=e.blockCount,new Intl.NumberFormat(void 0,{style:"decimal",maximumFractionDigits:0}).format(t))),1)]);var t}),128))])]))}},Vj={class:"wf-row"},Uj={class:"wf-col-xs-12"},Yj={class:"wf-dashboard-item active"},Kj={class:"wf-dashboard-item-inner"},jj={class:"wf-dashboard-item-content"},Gj={class:"wf-dashboard-item-title"},Qj={class:"wf-dashboard-item-extra"},qj={key:0,class:"wf-widget-learning-mode"},Zj={key:1,class:"wf-dashboard-item-list"},Jj={class:"wf-dashboard-toggle-btns"},zj={class:"wf-pagination wf-pagination-sm"},Xj={key:0,class:"wf-dashboard-item-list-text"},eG={key:0,class:"wf-dashboard-item-list-text"},tG={class:"wf-dashboard-show-more","data-grouping":"ips","data-period":"24h"},aG={key:0,class:"wf-dashboard-item-list-text"},nG={key:0,class:"wf-dashboard-item-list-text"},lG={class:"wf-dashboard-show-more","data-grouping":"ips","data-period":"7d"},sG={key:0,class:"wf-dashboard-item-list-text"},oG={key:0,class:"wf-dashboard-item-list-text"},iG={class:"wf-dashboard-show-more","data-grouping":"ips","data-period":"30d"},rG={__name:"WidgetIPs",props:{dashboardData:{type:Object,default:()=>({})},limit:{type:Number,default:10}},setup(e){const t=b("__"),a=b("wfconstants"),{$ajax:l}=In(),{$errorModal:o}=Hn(),{dashboardData:d,limit:p}=Q(e),m=R("24h"),g=R(!1),w=s(()=>d.value.ips24h?.length>p.value),v=s(()=>g.value?d.value.ips24h??[]:(d.value.ips24h??[]).slice(0,p.value)),y=s(()=>{let e=[];return e.push("wf-ips"),e.push("wf-ips-24h"),"24h"!==m.value&&e.push("wf-hidden"),e}),A=R(!1),k=s(()=>d.value.ips7d?.length>p.value),_=s(()=>A.value?d.value.ips7d??[]:(d.value.ips7d??[]).slice(0,p.value)),x=s(()=>{let e=[];return e.push("wf-ips"),e.push("wf-ips-7d"),"7d"!==m.value&&e.push("wf-hidden"),e}),S=R(!1),I=s(()=>d.value.ips30d?.length>p.value),D=s(()=>S.value?d.value.ips30d??[]:(d.value.ips30d??[]).slice(0,p.value)),M=s(()=>{let e=[];return e.push("wf-ips"),e.push("wf-ips-30d"),"30d"!==m.value&&e.push("wf-hidden"),e}),T=(e,a)=>{l("wordfence_dashboardShowMore",{grouping:e,period:a},e=>{if(e.ok)switch(a){case"24h":d.value.ips24h=e.data,g.value=!0;break;case"7d":d.value.ips7d=e.data,A.value=!0;break;case"30d":d.value.ips30d=e.data,S.value=!0}},e=>{o(t("We encountered an error trying load more data."))})};return(e,l)=>{const s=W("aria");return B(),u("div",Vj,[c("div",Uj,[c("div",Yj,[c("div",Kj,[c("div",jj,[c("div",Gj,[c("strong",null,Y(J(t)("Top IPs Blocked")),1)]),l[6]||(l[6]=c("div",{class:"wf-dashboard-item-action"},[c("div",{class:"wf-dashboard-item-action-disclosure"})],-1))])]),c("div",Qj,[!1!==J(a).waf.learning_mode?(B(),u("div",qj,[l[7]||(l[7]=c("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100.11 100.44"},[c("path",{d:"M96.14,30.67a50.7,50.7,0,0,0-10.66-16A50,50,0,0,0,69.51,4,49.57,49.57,0,0,0,30.6,4a50,50,0,0,0-16,10.69A50.69,50.69,0,0,0,4,30.67,50,50,0,0,0,4,69.74a50.62,50.62,0,0,0,10.66,16,50,50,0,0,0,16,10.69,49.54,49.54,0,0,0,38.91,0,50,50,0,0,0,16-10.69,50.56,50.56,0,0,0,10.66-16,50,50,0,0,0,0-39.07Zm-75.74,39a35.77,35.77,0,0,1-1-37.35,35.21,35.21,0,0,1,12.91-13A34.65,34.65,0,0,1,50.06,14.6a34.22,34.22,0,0,1,19.55,5.93ZM82.71,64a35.4,35.4,0,0,1-7.56,11.37A36,36,0,0,1,63.84,83a34.32,34.32,0,0,1-13.79,2.84A34.85,34.85,0,0,1,30.7,80L79.84,31a34.57,34.57,0,0,1,5.67,19.23A35.17,35.17,0,0,1,82.71,64Zm0,0"})],-1)),c("span",null,Y(J(t)("No Data Available During Learning Mode")),1)])):(B(),u("ul",Zj,[c("li",null,[c("div",null,[c("div",Jj,[c("ul",zj,[c("li",{class:C({"wf-active":"24h"===m.value})},[re((B(),u("a",{href:"#",class:"wf-dashboard-ips","data-grouping":"24h",onClick:l[0]||(l[0]=ce(e=>m.value="24h",["stop","prevent"]))},[f(Y(J(t)("24 Hours")),1)])),[[s,{role:"button"}]])],2),c("li",{class:C({"wf-active":"7d"===m.value})},[re((B(),u("a",{href:"#",class:"wf-dashboard-ips","data-grouping":"7d",onClick:l[1]||(l[1]=ce(e=>m.value="7d",["stop","prevent"]))},[f(Y(J(t)("7 Days")),1)])),[[s,{role:"button"}]])],2),c("li",{class:C({"wf-active":"30d"===m.value})},[re((B(),u("a",{href:"#",class:"wf-dashboard-ips","data-grouping":"30d",onClick:l[2]||(l[2]=ce(e=>m.value="30d",["stop","prevent"]))},[f(Y(J(t)("30 Days")),1)])),[[s,{role:"button"}]])],2)])]),c("div",{class:C(y.value)},[v.value.length?(B(),i(J(Hj),{key:1,dashboardData:v.value},null,8,["dashboardData"])):(B(),u("div",Xj,[c("p",null,[c("em",null,Y(J(t)("No blocks have been recorded.")),1)])])),h(n,{name:"wf-fade"},{default:ie(()=>[w.value&&!g.value?(B(),u("div",eG,[c("div",tG,[re((B(),u("a",{href:"#",onClick:l[3]||(l[3]=ce(e=>T("ips","24h"),["stop","prevent"]))},[f(Y(J(t)("Show more")),1)])),[[s,{role:"button"}]])])])):r("",!0)]),_:1})],2),c("div",{class:C(x.value)},[_.value.length?(B(),i(J(Hj),{key:1,dashboardData:_.value},null,8,["dashboardData"])):(B(),u("div",aG,[c("p",null,[c("em",null,Y(J(t)("No blocks have been recorded.")),1)])])),h(n,{name:"wf-fade"},{default:ie(()=>[k.value&&!A.value?(B(),u("div",nG,[c("div",lG,[re((B(),u("a",{href:"#",onClick:l[4]||(l[4]=ce(e=>T("ips","7d"),["stop","prevent"]))},[f(Y(J(t)("Show more")),1)])),[[s,{role:"button"}]])])])):r("",!0)]),_:1})],2),c("div",{class:C(M.value)},[D.value.length?(B(),i(J(Hj),{key:1,dashboardData:D.value},null,8,["dashboardData"])):(B(),u("div",sG,[c("p",null,[c("em",null,Y(J(t)("No blocks have been recorded.")),1)])])),h(n,{name:"wf-fade"},{default:ie(()=>[I.value&&!S.value?(B(),u("div",oG,[c("div",iG,[re((B(),u("a",{href:"#",onClick:l[5]||(l[5]=ce(e=>T("ips","30d"),["stop","prevent"]))},[f(Y(J(t)("Show more")),1)])),[[s,{role:"button"}]])])])):r("",!0)]),_:1})],2)])])]))])])])])}}},uG={class:"wf-table wf-table-hover"},cG={key:0},dG={key:1},pG={__name:"WidgetContentLogins",props:{dashboardData:{type:Array,default:()=>[]}},setup(e){const a=b("__"),n=b("sprintf"),{$timeAgo:l}=Un();return(s,o)=>(B(),u("table",uG,[c("thead",null,[c("tr",null,[c("th",null,Y(J(a)("Username")),1),c("th",null,Y(J(a)("IP")),1),c("th",null,Y(J(a)("Date")),1)])]),c("tbody",null,[(B(!0),u(t,null,F(e.dashboardData,e=>(B(),u("tr",{key:`${e.t}-${e.name}-${e.ip}`},[c("td",null,Y(e.name),1),c("td",null,Y(e.ip),1),Date.now()/1e3-e.t<86400?(B(),u("td",cG,Y(J(n)(J(a)("%s ago"),J(l)(Date.now()/1e3-e.t))),1)):(B(),u("td",dG,[h(J(Mi),{timestamp:e.t},null,8,["timestamp"])]))]))),128))])]))}},fG={class:"wf-row"},hG={class:"wf-col-xs-12"},mG={class:"wf-dashboard-item active"},gG={class:"wf-dashboard-item-inner"},wG={class:"wf-dashboard-item-content"},vG={class:"wf-dashboard-item-title"},yG={class:"wf-dashboard-item-extra"},bG={class:"wf-dashboard-item-list"},AG={class:"wf-dashboard-toggle-btns"},kG={class:"wf-pagination wf-pagination-sm"},_G={key:0,class:"wf-dashboard-item-list-text"},xG={key:0,class:"wf-dashboard-item-list-text"},CG={class:"wf-dashboard-show-more","data-grouping":"logins","data-period":"success"},SG={key:0,class:"wf-dashboard-item-list-text"},IG={key:0,class:"wf-dashboard-item-list-text"},DG={class:"wf-dashboard-show-more","data-grouping":"logins","data-period":"fail"},MG={__name:"WidgetLogins",props:{dashboardData:{type:Object,default:()=>({})},limit:{type:Number,default:10}},setup(e){const t=b("__"),{$ajax:a}=In(),{$errorModal:l}=Hn(),{dashboardData:o,limit:d}=Q(e),p=R("success"),m=R(!1),g=s(()=>o.value.loginsSuccess?.length>d.value),w=s(()=>m.value?o.value.loginsSuccess??[]:(o.value.loginsSuccess??[]).slice(0,d.value)),v=s(()=>{let e=[];return e.push("wf-recent-logins"),e.push("wf-recent-logins-success"),"success"!==p.value&&e.push("wf-hidden"),e}),y=R(!1),A=s(()=>o.value.loginsFail?.length>d.value),k=s(()=>y.value?o.value.loginsFail??[]:(o.value.loginsFail??[]).slice(0,d.value)),_=s(()=>{let e=[];return e.push("wf-recent-logins"),e.push("wf-recent-logins-fail"),"fail"!==p.value&&e.push("wf-hidden"),e}),x=(e,n)=>{a("wordfence_dashboardShowMore",{grouping:e,period:n},e=>{if(e.ok)switch(n){case"success":o.value.loginsSuccess=e.data,m.value=!0;break;case"fail":o.value.loginsFail=e.data,y.value=!0}},e=>{l(t("We encountered an error trying load more data."))})};return(e,a)=>{const l=W("aria");return B(),u("div",fG,[c("div",hG,[c("div",mG,[c("div",gG,[c("div",wG,[c("div",vG,[c("strong",null,Y(J(t)("Login Attempts")),1)]),a[4]||(a[4]=c("div",{class:"wf-dashboard-item-action"},[c("div",{class:"wf-dashboard-item-action-disclosure"})],-1))])]),c("div",yG,[c("ul",bG,[c("li",null,[c("div",null,[c("div",AG,[c("ul",kG,[c("li",{class:C({"wf-active":"success"===p.value})},[re((B(),u("a",{href:"#",class:"wf-dashboard-login-attempts","data-grouping":"success",onClick:a[0]||(a[0]=ce(e=>p.value="success",["stop","prevent"]))},[f(Y(J(t)("Successful")),1)])),[[l,{role:"button"}]])],2),c("li",{class:C({"wf-active":"fail"===p.value})},[re((B(),u("a",{href:"#",class:"wf-dashboard-login-attempts","data-grouping":"fail",onClick:a[1]||(a[1]=ce(e=>p.value="fail",["stop","prevent"]))},[f(Y(J(t)("Failed")),1)])),[[l,{role:"button"}]])],2)])]),c("div",{class:C(v.value)},[w.value.length?(B(),i(J(pG),{key:1,dashboardData:w.value},null,8,["dashboardData"])):(B(),u("div",_G,[c("p",null,[c("em",null,Y(J(t)("No successful logins have been recorded.")),1)])])),h(n,{name:"wf-fade"},{default:ie(()=>[g.value&&!m.value?(B(),u("div",xG,[c("div",CG,[re((B(),u("a",{href:"#",onClick:a[2]||(a[2]=ce(e=>x("logins","success"),["stop","prevent"]))},[f(Y(J(t)("Show more")),1)])),[[l,{role:"button"}]])])])):r("",!0)]),_:1})],2),c("div",{class:C(_.value)},[k.value.length?(B(),i(J(pG),{key:1,dashboardData:k.value},null,8,["dashboardData"])):(B(),u("div",SG,[c("p",null,[c("em",null,Y(J(t)("No failed logins have been recorded.")),1)])])),h(n,{name:"wf-fade"},{default:ie(()=>[A.value&&!y.value?(B(),u("div",IG,[c("div",DG,[re((B(),u("a",{href:"#",onClick:a[3]||(a[3]=ce(e=>x("logins","fail"),["stop","prevent"]))},[f(Y(J(t)("Show more")),1)])),[[l,{role:"button"}]])])])):r("",!0)]),_:1})],2)])])])])])])])}}},TG={class:"wf-dashboard-item active"},LG={class:"wf-dashboard-item-inner"},OG={class:"wf-dashboard-item-content"},BG={class:"wf-dashboard-item-title"},$G={key:0,class:"wf-dashboard-badge wf-notification-count-container wf-notification-count-value"},PG={class:"wf-dashboard-item-extra"},EG={class:"wf-dashboard-item-list wf-dashboard-item-list-striped"},RG=["data-notification"],FG={class:"wf-dashboard-item-list-title"},NG=["href","target","rel"],WG={class:"wf-dashboard-item-list-dismiss"},HG=["onClick"],VG={class:"wf-fa wf-fa-times-circle"},UG={key:0,class:"wf-notifications-empty"},YG={key:0,class:"wf-flex-col-xs-100 wf-flex-col-lg-50 wf-col-lg-half-padding-left wf-dashboard-item-flex-wrapper wf-central-connected"},KG={class:"wf-dashboard-item active wf-flex-row-1"},jG={class:"wf-central-dashboard"},GG=["src","alt"],QG={class:"wf-central-dashboard-copy"},qG={id:"wf-central-status"},ZG={key:0},JG={key:1},zG={class:"wf-no-bottom"},XG={class:"wf-add-top-small wf-no-bottom"},eQ=["href"],tQ={class:"wf-flex-row"},aQ={key:0},nQ=["href"],lQ={class:"wf-flex-row-1"},sQ=["href"],oQ={key:0},iQ={key:1},rQ={class:"wf-flex-row-1 wf-right wf-nowrap"},uQ=["href"],cQ={__name:"WidgetNotifications",props:{dashboardData:{type:Object,default:()=>({})}},setup(e){const a=b("__"),n=b("sprintf"),l=b("wfconstants"),o=b("$dataStore"),{$ajax:d}=In(),{$modal:p}=Hn(),{$structuredClone:m}=cn(),g=P(m(e.dashboardData)),w=s(()=>{let e=[];return e.push("wf-flex-col-xs-100"),l.central.state.supported&&l.central.state.show_ui&&(e.push("wf-flex-col-lg-50"),e.push("wf-col-lg-half-padding-right"),e.push("wf-dashboard-item-flex-wrapper")),e}),v=s(()=>new Intl.NumberFormat(void 0,{style:"decimal",maximumFractionDigits:0}).format(g.notifications?.length)),y=e=>{let t=[];return t.push("wf-notification"),e.priority%10==1?t.push("wf-notification-critical"):e.priority%10==2&&t.push("wf-notification-warning"),t},A=s(()=>n(a("Connected by %1$s on %2$s"),g.wordfenceCentralConnectEmail,(0,Ii.default)("%b %-d, %Y",/* @__PURE__ */new Date(1e3*g.wordfenceCentralConnectTime)))),k=s(()=>n(a("Disconnected on %1$s"),(0,Ii.default)("%b %-d, %Y",/* @__PURE__ */new Date(1e3*g.wordfenceCentralDisconnectTime)))),_=s(()=>n(a("Disconnected by %1$s on %2$s"),a("a Wordfence Central user"),(0,Ii.default)("%b %-d, %Y",/* @__PURE__ */new Date(1e3*g.wordfenceCentralDisconnectTime)))),x=s(()=>n(a("Disconnected by %1$s on %2$s"),a("Wordfence Central"),(0,Ii.default)("%b %-d, %Y",/* @__PURE__ */new Date(1e3*g.wordfenceCentralDisconnectTime)))),S=s(()=>n(a("Disconnected by %1$s on %2$s"),g.wordfenceCentralDisconnectEmail,(0,Ii.default)("%b %-d, %Y",/* @__PURE__ */new Date(1e3*g.wordfenceCentralDisconnectTime)))),I=()=>{p("disconnect-central-confirmation-modal")};return(e,n)=>{const s=W("aria");return B(),u(t,null,[c("div",{class:C(w.value)},[c("div",TG,[c("div",LG,[c("div",OG,[c("div",BG,[c("strong",null,Y(J(a)("Notifications")),1),g.notifications?.length?(B(),u("span",$G,Y(v.value),1)):r("",!0)]),n[0]||(n[0]=c("div",{class:"wf-dashboard-item-action"},[c("div",{class:"wf-dashboard-item-action-disclosure"})],-1))])]),c("div",PG,[c("ul",EG,[(B(!0),u(t,null,F(g.notifications,e=>(B(),u("li",{class:C(y(e)),"data-notification":e.id,key:e.id},[c("div",FG,[h(J(Ep),{unsafeHTML:e.html},null,8,["unsafeHTML"])]),(B(!0),u(t,null,F(e.links,e=>(B(),u("div",{class:"wf-dashboard-item-list-action",key:e.link},[c("a",{href:e.link,target:!!/^https?:\/\//i.test(e.link)&&"_blank",rel:!!/^https?:\/\//i.test(e.link)&&"noopener noreferrer"},[f(Y(e.label),1),/^https?:\/\//i.test(e.link)?(B(),i(J(Kn),{key:0})):r("",!0)],8,NG)]))),128)),c("div",WG,[re((B(),u("a",{href:"#",class:"wf-dismiss-notification",onClick:ce(t=>(e=>{const t=g.notifications.findIndex(t=>t.id===e.id);t>-1&&g.notifications.splice(t,1),d("wordfence_dismissNotification",{id:e.id})})(e),["stop","prevent"])},[re(c("i",VG,null,512),[[s,{hidden:!0}]])],8,HG)),[[s,{role:"button"}]])])],10,RG))),128)),g.notifications?.length?r("",!0):(B(),u("li",UG,Y(J(a)("No notifications received")),1))])])])],2),J(l).central.state.supported&&J(l).central.state.show_ui?(B(),u("div",YG,[c("div",KG,[c("div",jG,[c("img",{class:"wf-central-dashboard-logo",src:J(l).assets.images.central_logo,alt:J(a)("Wordfence Central")},null,8,GG),c("div",QG,[c("p",qG,[c("strong",null,Y(J(a)("Wordfence Central Status")),1)]),g.wordfenceCentralConnected||g.wordfenceCentralDisconnected||!J(l).central.state.partial_connection?g.wordfenceCentralConnected||g.wordfenceCentralDisconnected?r("",!0):(B(),u("p",JG,Y(J(a)("Wordfence Central allows you to manage Wordfence on multiple sites from one location. It makes security monitoring and configuring Wordfence easier.")),1)):(B(),u("p",ZG,Y(J(a)("It looks like you've tried to connect this site to Wordfence Central, but the installation did not finish.")),1)),c("p",zG,[c("strong",null,Y(J(a)("Connection"))+":",1),n[1]||(n[1]=f(" ",-1)),g.wordfenceCentralConnected?(B(),u(t,{key:0},[f(Y(A.value),1)],64)):g.wordfenceCentralDisconnected&&!g.wordfenceCentralDisconnectEmail?(B(),u(t,{key:1},[f(Y(k.value),1)],64)):g.wordfenceCentralDisconnected&&g.wordfenceCentralDisconnectEmail===J(l).central.flag.marker_user?(B(),u(t,{key:2},[f(Y(_.value),1)],64)):g.wordfenceCentralDisconnected&&g.wordfenceCentralDisconnectEmail===J(l).central.flag.marker_central?(B(),u(t,{key:3},[f(Y(x.value),1)],64)):g.wordfenceCentralDisconnected&&g.wordfenceCentralDisconnectEmail?(B(),u(t,{key:4},[f(Y(S.value),1)],64)):J(l).central.state.partial_connection?(B(),u(t,{key:5},[f(Y(J(a)("Connection not finished")),1)],64)):(B(),u(t,{key:6},[f(Y(J(a)("Not connected")),1)],64))]),c("p",XG,[c("strong",null,Y(J(a)("Audit Log")),1),n[2]||(n[2]=f(": ",-1)),J(l).license.current.minimum_premium?g.wordfenceCentralConnected?J(o).$options.auditLogMode===J(l).auditlog.modes.disabled||J(o).$options.auditLogMode===J(l).auditlog.modes.preview?(B(),u(t,{key:2},[f(Y(J(a)("Not recording")),1)],64)):J(o).$options.auditLogMode===J(l).auditlog.modes.significant?(B(),u(t,{key:3},[f(Y(J(a)("Recording (significant events only)")),1)],64)):J(o).$options.auditLogMode===J(l).auditlog.modes.all?(B(),u(t,{key:4},[f(Y(J(a)("Recording (all events)")),1)],64)):r("",!0):(B(),u(t,{key:1},[f(Y(J(a)("Not recording (Central disconnected)")),1)],64)):(B(),u(t,{key:0},[f(Y(J(a)("Disabled (premium feature)")),1)],64)),n[3]||(n[3]=f(" ",-1)),c("a",{href:J(l).auditlog.url.manage},Y(J(a)("Manage")),9,eQ)]),c("div",tQ,[J(l).central.state.partial_connection?(B(),u("p",aQ,[c("a",{href:J(l).central.url.resume,class:"wf-central-resume wf-btn wf-btn-sm wf-btn-primary"},Y(J(a)("Resume Installation")),9,nQ),re((B(),u("a",{href:"#",class:"wf-central-disconnect wf-btn wf-btn-sm wf-btn-default",onClick:ce(I,["stop","prevent"])},[c("strong",null,Y(J(a)("Disconnect This Site")),1)])),[[s,{role:"button"}]])])):(B(),u(t,{key:1},[c("p",lQ,[g.wordfenceCentralConnected?re((B(),u("a",{key:0,href:"#",class:"wf-central-disconnect",onClick:ce(I,["stop","prevent"])},[c("strong",null,Y(J(a)("Disconnect This Site")),1)])),[[s,{role:"button"}]]):(B(),u("a",{key:1,href:J(l).central.url.connect},[g.wordfenceCentralDisconnected?(B(),u("strong",oQ,Y(J(a)("Reconnect This Site")),1)):(B(),u("strong",iQ,Y(J(a)("Connect This Site")),1))],8,sQ))]),c("p",rQ,[c("a",{href:J(l).central.url.main,target:"_blank",rel:"noopener noreferrer"},[c("strong",null,Y(J(a)("Visit Wordfence Central")),1),h(J(Kn))],8,uQ)])],64))])])])])])):r("",!0)],64)}}},dQ={key:0,id:"wfls-cboxOverlay",class:"wfls-modal"},pQ={__name:"ModalOverlay",props:{show:{type:Boolean,default:!1}},setup:e=>($("modalName","wfls-modal-overlay"),(t,a)=>(B(),i(n,{name:"wfls-fade"},{default:ie(()=>[e.show?(B(),u("div",dQ)):r("",!0)]),_:1})))},fQ={id:"wfls-cboxWrapper"},hQ={id:"wfls-cboxContent"},mQ={id:"wfls-cboxLoadedContent"},gQ={class:"wfls-modal"},wQ={class:"wfls-modal-header"},vQ={class:"wfls-modal-header-content"},yQ={class:"wfls-modal-title"},bQ={class:"wfls-modal-header-action"},AQ={key:0,class:"wfls-padding-add-left-small wfls-modal-header-action-close"},kQ={class:"wfls-modal-content"},_Q={key:0,class:"wfls-modal-footer"},xQ={class:"wfls-flex-horizontal wfls-flex-align-right wfls-full-width"},CQ={key:0,class:"wfls-modal-accessory"},SQ={__name:"BaseModal",props:{modalSize:{type:[String,null],default:null,required:!1},noX:{type:Boolean,default:!1},noFooter:{type:Boolean,default:!1}},setup(e){const t=b("modalName","modal"),a=b("$mitt"),n=X(),{modalSize:l}=Q(e),o=s(()=>{let e=[];return e.push("wfls-modal"),l.value&&e.push(`wfls-modal-${l.value}`),e});return(l,s)=>(B(),u("div",{id:"wfls-colorbox",class:C(o.value),role:"dialog",tabindex:"-1"},[c("div",fQ,[c("div",hQ,[c("div",mQ,[c("div",gQ,[c("div",wQ,[c("div",vQ,[c("div",yQ,[c("strong",null,[N(l.$slots,"header")])])]),c("div",bQ,[N(l.$slots,"headerAction"),e.noX?r("",!0):(B(),u("div",AQ,[c("a",{href:"#",onClick:s[0]||(s[0]=ce(e=>J(a).emit("closeModal",J(t)),["prevent","stop"])),role:"button"},[...s[1]||(s[1]=[c("i",{class:"wfls-fa wfls-fa-times-circle","aria-hidden":"true"},null,-1)])])]))])]),c("div",kQ,[N(l.$slots,"body")]),e.noFooter?r("",!0):(B(),u("div",_Q,[c("ul",xQ,[J(n).accessory?(B(),u("li",CQ,[N(l.$slots,"accessory")])):r("",!0),N(l.$slots,"secondary-buttons"),N(l.$slots,"primary-button")])]))])])])])],2))}},IQ={key:0,class:"wfls-visible-xs-inline"},DQ={key:1,class:"wfls-visible-sm-inline"},MQ={key:2,class:"wfls-visible-md-inline"},TQ={key:3,class:"wfls-visible-lg-inline"},LQ={__name:"ResponsiveText",props:{textClass:{type:[String,null],default:null},text:{type:String,required:!0},xs:{type:[String,null],default:null},sm:{type:[String,null],default:null},md:{type:[String,null],default:null},lg:{type:[String,null],default:null}},setup(e){const{textClass:a,xs:n,sm:l,md:o,lg:i}=Q(e),d=s(()=>{let e=[];return a.value&&e.push(a.value),null!==n.value&&e.push("wfls-hidden-xs"),null!==l.value&&e.push("wfls-hidden-sm"),null!==o.value&&e.push("wfls-hidden-md"),null!==i.value&&e.push("wfls-hidden-lg"),e});return(a,s)=>(B(),u(t,null,[c("span",{class:C(d.value)},Y(e.text),3),null!==J(n)?(B(),u("span",IQ,Y(J(n)),1)):r("",!0),null!==J(l)?(B(),u("span",DQ,Y(J(l)),1)):r("",!0),null!==J(o)?(B(),u("span",MQ,Y(J(o)),1)):r("",!0),null!==J(i)?(B(),u("span",TQ,Y(J(i)),1)):r("",!0)],64))}},OQ={class:"wfls-padding-add-left-small"},BQ=["href","target","rel"],$Q={__name:"ModalButton",props:{isPrimary:{default:!1},enabled:{default:!0},href:{type:[String,null],default:null,required:!1},buttonType:{type:[String,null],default:null,required:!1},target:{type:[String,null],default:null,required:!1},rel:{type:[String,null],default:null,required:!1}},emits:["click"],setup(e,{emit:t}){const a=t,{isPrimary:n,enabled:l,href:o,buttonType:i}=Q(e),r=s(()=>{let e=[];return e.push("wfls-btn"),i.value?e.push(i.value):(n.value&&e.push("wfls-btn-primary"),e.push("wfls-btn-default")),e.push("wfls-btn-callout-subtle"),l.value||e.push("wfls-disabled"),e}),d=s(()=>o.value?{}:{click:ce(()=>a("click"),["prevent","stop"])});return(t,a)=>(B(),u("li",OQ,[c("a",_({href:J(o)??"#",class:r.value,target:e.target,rel:e.rel},K(d.value,!0)),[N(t.$slots,"default")],16,BQ)]))}},PQ="wfls-simple-confirmation-modal",EQ={__name:"SimpleConfirmationModal",props:{show:{type:Boolean,default:!1},title:{type:String,required:!0},titleIsHtml:{type:Boolean,default:!1},message:{type:String,required:!0},messageIsHtml:{type:Boolean,default:!1},options:{type:Object,default:()=>({})}},setup(e){const a=b("__"),l=b("$mitt");$("modalName",PQ);const{options:o}=Q(e),p=s(()=>o.value.primaryButtonTitle??a("Close")),m=s(()=>o.value.primaryButtonTitleXs??null),g=s(()=>o.value.primaryButtonIsPrimary??!0),w=()=>{"function"!=typeof o.value.onPrimaryClick?(l.emit("closeModal",PQ),"function"==typeof o.value.onClosed&&o.value.onClosed()):o.value.onPrimaryClick()},v=s(()=>o.value.additionalButtons??[]);return(a,l)=>(B(),i(n,{name:"wf-modal"},{default:ie(()=>[e.show?(B(),i(J(SQ),{key:0},d({"primary-button":ie(()=>[h(J($Q),{onClick:w,"is-primary":g.value},{default:ie(()=>[h(J(LQ),{text:p.value,xs:m.value},null,8,["text","xs"])]),_:1},8,["is-primary"])]),_:2},[e.titleIsHtml?{name:"header",fn:ie(()=>[c("strong",null,[h(J(jw),{unsafeHTML:e.title},null,8,["unsafeHTML"])])]),key:"0"}:{name:"header",fn:ie(()=>[c("strong",null,Y(e.title),1)]),key:"1"},e.messageIsHtml?{name:"body",fn:ie(()=>[h(J(jw),{unsafeHTML:e.message},null,8,["unsafeHTML"])]),key:"2"}:{name:"body",fn:ie(()=>[f(Y(e.message),1)]),key:"3"},v.value.length?{name:"secondary-buttons",fn:ie(()=>[(B(!0),u(t,null,F(v.value,e=>(B(),i(J($Q),{key:e.title,onClick:e.onClick,"button-type":e.type??null},{default:ie(()=>[f(Y(e.title),1)]),_:2},1032,["onClick","button-type"]))),128))]),key:"4"}:void 0]),1024)):r("",!0)]),_:1}))}},RQ={__name:"WFLSCommonModals",setup(e){const t=b("$mitt"),{$hasOwn:a}=Yw(),n=P({"wfls-simple-confirmation-modal":{show:!1,title:"",titleIsHTML:!1,message:"",messageIsHTML:!1,options:{},configurator:e=>{n[e.name].title=e.title,n[e.name].titleIsHTML=e.titleIsHTML??!1,n[e.name].message=e.message,n[e.name].messageIsHTML=e.messageIsHTML??!1,n[e.name].options=e.options??{}}}}),l=s(()=>Object.values(n).some(e=>e.show));T(()=>{t.on("showModal",o),t.on("closeModal",i)}),D(()=>{t.off("showModal",o),t.off("closeModal",i)});const o=e=>{for(const t of Object.keys(n))t!==e.name&&n[t].show&&(n[t].show=!1);a(n,e.name)&&(n[e.name].configurator(e),n[e.name].show=!0)},i=e=>{a(n,e)&&(n[e].show=!1)};return(e,t)=>(B(),u("div",null,[h(J(pQ),{show:l.value},null,8,["show"]),h(J(EQ),{show:n["wfls-simple-confirmation-modal"].show,title:n["wfls-simple-confirmation-modal"].title,titleIsHtml:n["wfls-simple-confirmation-modal"].titleIsHTML,message:n["wfls-simple-confirmation-modal"].message,messageIsHtml:n["wfls-simple-confirmation-modal"].messageIsHTML,options:n["wfls-simple-confirmation-modal"].options},null,8,["show","title","titleIsHtml","message","messageIsHtml","options"])]))}};function FQ(){return{$ajax:(e,t,a,n,l)=>{window.WFLS.ajax(e,t,a,n,l)}}}function NQ(){const e=b("__"),t=b("$mitt");return{$modal:(e,a={})=>{t.emit("showModal",Object.assign({},{name:e},a))},$modalNotice:(e,a,n=null,l=null)=>{t.emit("showModal",{name:"wfls-simple-confirmation-modal",title:e,message:a,modalSize:n,options:l})},$modalNoticeHTML:(e,a,n=null,l=null)=>{t.emit("showModal",{name:"wfls-simple-confirmation-modal",title:e,message:a,modalSize:n,options:l,titleIsHTML:!0,messageIsHTML:!0})},$errorModal:a=>{t.emit("showModal",{name:"wfls-simple-confirmation-modal",title:e("An error occurred"),message:a})},$errorModalHTML:a=>{t.emit("showModal",{name:"wfls-simple-confirmation-modal",title:e("An error occurred"),message:a,messageIsHTML:!0})},$drawer:(e,a={})=>{t.emit("showDrawer",Object.assign({},{name:e},a))}}}var WQ={__name:"WFLSSettingsButtons",setup(e){const a=b("$"),n=b("__"),l=b("$mitt"),s=b("$dataStore"),{$ajax:o}=FQ(),{$modalNotice:i}=NQ();D(()=>{a(window).off("beforeunload",r)});const r=e=>{if(Object.keys(s.$pendingOptions).length){(e=e||window.event).preventDefault();const t=n("You have unsaved changes to your options. If you leave this page, those changes will be lost.");return e&&(e.returnValue=t),t}};oe(()=>s.$pendingOptions,e=>{Object.keys(e).length?a(window).on("beforeunload",r):a(window).off("beforeunload",r)},{deep:!0});const d=()=>{Object.keys(s.$pendingOptions).forEach(e=>delete s.$pendingOptions[e]),l.emit("resetOptionControls")},p=()=>{if(!Object.keys(s.$pendingOptions).length)return;let e=Object.assign({},s.$pendingOptions);o("wordfence_ls_save_options",{changes:JSON.stringify(e)},e=>{e.success?(Object.keys(s.$pendingOptions).forEach(e=>delete s.$pendingOptions[e]),a(window).off("beforeunload",r),e.redirect?window.location.href=e.redirect:window.location.reload(!0)):i(n("Error Saving Options"),e.error)})};return(e,a)=>(B(),u(t,null,[c("a",{id:"wfls-cancel-changes",class:C(["wfls-btn wfls-btn-default wfls-btn-callout-subtle",{"wfls-disabled":0===Object.keys(J(s).$pendingOptions).length}]),href:"#",role:"button",onClick:ce(d,["stop","prevent"])},[h(J(LQ),{text:J(n)("Cancel Changes"),xs:J(n)("Cancel")},null,8,["text","xs"])],2),a[0]||(a[0]=f(" ",-1)),c("a",{id:"wfls-save-changes",class:C(["wfls-btn wfls-btn-primary wfls-btn-callout-subtle",{"wfls-disabled":0===Object.keys(J(s).$pendingOptions).length}]),href:"#",role:"button",onClick:ce(p,["stop","prevent"])},[h(J(LQ),{text:J(n)("Save Changes"),xs:J(n)("Save")},null,8,["text","xs"])],2)],64))}};function HQ(){const e=b("__"),t=b("$mitt"),a=b("$dataStore"),{$ajax:n}=FQ(),{$hasOwn:l}=Yw(),o=s(()=>(a.$pendingOptions,a.$options,e=>e in a.$pendingOptions?a.$pendingOptions[e]:a.$options["wfls-"+e])),i=(e,t)=>{if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;const a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(const s of a){if(!l(t,s))return!1;if(!i(e[s],t[s]))return!1}return!0};return{$originalOptionValue:e=>J(a.$options["wfls-"+J(e)]),$setOption:(a,l,s,o,i=!1)=>{n("wordfence_ls_save_options",{changes:JSON.stringify({[a]:l})},a=>{if(a.success)"function"==typeof s&&s(a);else{let n={name:"wfls-simple-confirmation-modal",title:e("Error Saving Option"),message:a.error};i&&(n.onClosed=o),t.emit("showModal",n),i||"function"==typeof o&&o(a)}})},$resolvePendingOption:o,$updatePendingValue:(e,n,s)=>{l(a.$pendingOptions,J(e))&&i(J(a.$pendingOptions[J(e)]),J(n))||(i(J(s),J(n))?delete a.$pendingOptions[J(e)]:a.$pendingOptions[J(e)]=n,t.emit("pendingOptionChanged",{name:J(e),value:J(n)}))},$clearPendingValue:e=>{delete a.$pendingOptions[J(e)]}}}var VQ={key:0,id:"wfls-onboarding-standalone-modal"},UQ={id:"wfls-onboarding-standalone-modal-header"},YQ={id:"wfls-onboarding-standalone-modal-header-title"},KQ={id:"wfls-onboarding-standalone-modal-header-accessory"},jQ={id:"wfls-onboarding-standalone-modal-content"},GQ={__name:"WFLSStandaloneHeader",setup(e){const t=b("__"),{$setOption:a}=HQ(),l=R(!0),s=()=>{l.value=!1,a("dismissed-fresh-install-modal",!0)};return(e,a)=>(B(),i(n,{name:"wfls-slide-up"},{default:ie(()=>[l.value?(B(),u("div",VQ,[c("div",UQ,[c("div",YQ,Y(J(t)("Wordfence Login Security Installed")),1),c("div",KQ,[c("a",{href:"#",id:"wfls-onboarding-standalone-modal-dismiss",onClick:ce(s,["stop","prevent"])},"×")])]),c("div",jQ,[c("p",null,Y(J(t)("You have just installed the Wordfence Login Security plugin. It contains a subset of the functionality found in the full Wordfence plugin: Two-factor Authentication, XML-RPC Protection and Login Page CAPTCHA.")),1),c("p",null,[h(J(jw),{unsafeHTML:J(t)('If you\'re looking for a more comprehensive solution, the <a href="https://wordpress.org/plugins/wordfence/" target="_blank" rel="noopener noreferrer">full Wordfence plugin</a> includes all of the features in this plugin as well as a full-featured WordPress firewall, a security scanner, live traffic, and more. The standard installation includes a robust set of free features that can be upgraded via a Premium license key.')},null,8,["unsafeHTML"])])])])):r("",!0)]),_:1}))}};function QQ(e,t,a=()=>{},n={},l="change",o=e=>e){const i=b("$mitt"),{$hasOwn:r,$structuredClone:u}=Yw(),c=R("object"==typeof J(t)?u(J(t)):J(t));oe(t,e=>{c.value="object"==typeof J(e)?u(J(e)):J(e)},{deep:!0}),oe(c,(t,n)=>{d.value||a(l,{old:n,new:o(t),name:e})},{deep:!0});const d=R(!1);T(()=>{i.on("resetOptionControls",p),i.on("pendingOptionChanged",f)}),D(()=>{i.off("resetOptionControls",p),i.off("pendingOptionChanged",f)});const p=()=>{d.value=!0,c.value="object"==typeof J(t)?u(J(t)):J(t),d.value=!1},f=t=>{t.name===J(e)&&(d.value=!0,c.value=J(t.value),d.value=!1)},h=s(()=>"wfls-option-"+J(e).replace(/[^a-z0-9]/gi,"-"));return{$elementID:h,$elementIDLabel:s(()=>`${h.value}-label`),$elementClasses:s(()=>{let e=[];return e.push("wfls-option"),r(n,"always")&&e.push(...J(n.always)),r(n,"noVerticalSpacing")&&J(n.noVerticalSpacing)&&e.push("wfls-option-no-spacing"),r(n,"disabled")&&J(n.disabled)&&e.push("wfls-disabled"),r(n,"child")&&J(n.child)&&e.push("wfls-child-option"),e}),$pendingValue:c}}function qQ(e,t=!1){const a=b("$"),n=b("$mitt"),l=b("stateKey",t),s=t=>{for(const s in e){const o=J(e[s]);t!==J(s)||(J(l)?n.emit("expandDisclosureBlock",{key:J(l),scrollTo:"#"+o}):a("#"+o).length&&a("html, body").animate({scrollTop:a("#"+o).offset().top-100},1e3))}};T(()=>{n.on("scrollToOption",s)}),D(()=>{n.off("scrollToOption",s)})}var ZQ,JQ=["id"],zQ={class:"wfls-option-title"},XQ={class:"wfls-option-content"},eq=["for"],tq=["id","name","disabled","onUpdate:modelValue","onChange"],aq=["value","disabled"],nq={class:"wfls-2fa-required-description"},lq={key:0,id:"wfls-customer-2fa-required-warning",class:"wfls-notice"},sq={key:1,class:"wfls-woocommerce-customer-integration-message"},oq={__name:"OptionRoles",props:{noSpacer:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change","changeRoleRequired"],setup(e,{emit:a}){const n=a,{$resolvePendingOption:l}=HQ(),{$hasOwn:o}=Yw(),i=b("__"),d=b("$mitt"),p=b("wfconstants"),f=b("$dataStore"),{noSpacer:h,indentSubtitle:m,alignment:g}=Q(e),{$elementID:w,$elementClasses:v}=QQ("2fa-roles",null,n,{always:["wfls-option","wfls-option-2fa-roles"],noSpacer:h,alignment:g});qQ(Object.assign({},...p.options.roles.map(e=>({[e.name]:w})))),T(()=>{d.on("resetOptionControls",y)}),D(()=>{d.off("resetOptionControls",y)});const y=()=>{for(const e of p.options.roles)A[e.name]=e.state};let A=P({});for(const t of p.options.roles)A[t.name]=t.state;const k=e=>{let t={[p.roles.states.disabled]:p.roles.labels[p.roles.states.disabled],[p.roles.states.optional]:p.roles.labels[p.roles.states.optional],[p.roles.states.required]:p.roles.labels[p.roles.states.required]};return e.allow_disabling||delete t[p.roles.states.disabled],t},_=e=>{const t=`passkey-enabled-roles.${e.role}`,a=l.value(t);if(void 0!==a)return a===p.roles.states.passkey_required;const n=p.options.passkey_roles.find(t=>t.role===e.role);return!!n&&n.state===p.roles.states.passkey_required},x=s(()=>o(A,"enabled-roles.customer")&&A["enabled-roles.customer"]===p.roles.states.required);return(e,a)=>(B(),u("ul",{id:J(w),class:C(J(v))},[c("li",zQ,[c("label",null,Y(J(i)("2FA Roles")),1)]),c("li",XQ,[c("ul",null,[(B(!0),u(t,null,F(J(p).options.roles,e=>(B(),u("li",{key:e.name},[c("label",{for:`wfls-2fa-role-${e.role}`},Y(e.title),9,eq),re(c("select",{id:`wfls-2fa-role-${e.role}`,name:e.name,class:"wfls-option-select",disabled:_(e),"onUpdate:modelValue":t=>J(A)[e.name]=t,onChange:t=>((e,t)=>{const a=A[e];A[e]=t,n("changeRoleRequired",{old:a,new:t,name:e})})(e.name,t.target.value)},[(B(!0),u(t,null,F(k(e),(t,a)=>(B(),u("option",{key:a,value:a,disabled:!e.editable},Y(t),9,aq))),128))],40,tq),[[ne,J(A)[e.name]]])]))),128))]),c("div",{class:C(["wfls-option-subtitle",{"wfls-option-subtitle-indent":J(m)}])},[c("p",nq,[c("small",null,Y(J(i)("Two Factor Authentication is required only for username/password login when enabled. Passkeys are a substitute for this secondary authentication method.")),1)]),x.value?(B(),u("p",lq,Y(J(i)('Requiring 2FA for customers is not recommended as some customers may experience difficulties setting up or using two-factor authentication. Instead, using the "Optional" mode for users with the customer role is recommended which will allow customers to enable 2FA, but will not require them to do so.')),1)):r("",!0),J(p).plugin.server.has_woocommerce&&!J(f).$options["wfls-enable-woocommerce-integration"]?(B(),u("p",sq,[c("small",null,Y(J(i)('In order to use 2FA with the WooCommerce customer role, you must either enable the "WooCommerce integration" option or use the "wordfence_2fa_management" shortcode to provide customers with access to the 2FA management interface. The default interface is only available through WordPress admin pages which are not accessible to users in the customer role.')),1)])):r("",!0)],2)])],10,JQ))}},iq={class:"screen-reader-text"},rq={__name:"OpensInNewTab",setup(e){const t=b("__");return(e,a)=>(B(),u("span",iq," ("+Y(J(t)("opens in new tab"))+")",1))}},uq=["id","data-option","data-enabled-value","data-disabled-value","data-original-value"],cq=["aria-checked","aria-labelledby","onKeydown"],dq={key:0,class:"wfls-option-title"},pq={class:"wfls-flex-vertical wfls-flex-align-left"},fq=["id"],hq=["href"],mq={key:1,class:"wfls-option-title"},gq=["id"],wq=["href"],vq={__name:"OptionToggled",props:{optionName:{type:String,required:!0},value:{default:null},enabledValue:{default:null},disabledValue:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},child:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change"],setup(e,{emit:t}){const a=t,n=X(),l=e,{optionName:s,value:o,enabledValue:i,disabledValue:d,disabled:p,noSpacer:m,indentSubtitle:g,alignment:w,child:v}=Q(l),{$elementID:y,$elementIDLabel:b,$elementClasses:A,$pendingValue:k}=QQ(s,o,a,{always:["wfls-option-toggled"],disabled:p,noSpacer:m,alignment:w,child:v});qQ({[l.optionName]:y});const _=()=>{p.value||(k.value===i.value?k.value=d.value:k.value=i.value)};return(t,a)=>(B(),u("ul",{id:J(y),class:C(J(A)),"data-option":J(s),"data-enabled-value":J(i),"data-disabled-value":J(d),"data-original-value":J(o)==J(i)?J(i):J(d)},[c("li",{class:C({"wfls-option-checkbox":!0,"wfls-checked":J(k)==J(i)}),role:"checkbox","aria-checked":J(k)==J(i)?"true":"false",tabindex:"0","aria-labelledby":J(b),onClick:ce(_,["stop","prevent"]),onKeydown:ue(ce(_,["stop","prevent"]),["space"])},[...a[0]||(a[0]=[c("i",{class:"wfls-ion-ios-checkmark-empty","aria-hidden":"true"},null,-1)])],42,cq),e.subtitle||J(n).subtitle?(B(),u("li",dq,[c("ul",pq,[c("li",null,[c("span",{id:J(b),class:"wfls-option-extended-toggle",onClick:ce(_,["stop","prevent"])},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,fq),a[2]||(a[2]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[a[1]||(a[1]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,hq)):r("",!0)]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-extended-toggle":!0,"wfls-option-subtitle-indent":J(g)}),onClick:ce(_,["stop","prevent"])},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2)])])):(B(),u("li",mq,[c("span",{id:J(b),class:"wfls-option-extended-toggle",onClick:ce(_,["stop","prevent"])},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,gq),a[4]||(a[4]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[a[3]||(a[3]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,wq)):r("",!0)]))],10,uq))}},yq=["id","data-option-name","data-original-value"],bq={key:0,class:"wfls-option-spacer"},Aq={class:"wfls-option-content"},kq={key:0,class:"wfls-option-title"},_q={class:"wfls-flex-vertical wfls-flex-align-left"},xq=["id"],Cq=["href"],Sq={key:1,class:"wfls-option-title"},Iq=["id"],Dq=["href"],Mq=["aria-labelledby"],Tq=["data-option-value","aria-checked","onClick","onKeydown"],Lq={__name:"OptionSwitch",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},states:{type:Array,default:()=>[]},helpLink:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change"],setup(e,{emit:a}){const{$hasOwn:n}=Yw(),l=a,s=X(),o=e,{optionName:d,value:p,disabled:m,noSpacer:g,indentSubtitle:w,alignment:v}=Q(o),{$elementID:y,$elementIDLabel:b,$elementClasses:A,$pendingValue:k}=QQ(d,p,l,{always:["wfls-option-switch"],disabled:m,noSpacer:g,alignment:v});qQ({[o.optionName]:y});const _=e=>{e.disabled||(k.value=e.value)};return(a,l)=>(B(),u("ul",{id:J(y),class:C(J(A)),"data-option-name":J(d),"data-original-value":J(p)},[J(g)?r("",!0):(B(),u("li",bq)),c("li",Aq,[c("ul",null,[e.subtitle||J(s).subtitle?(B(),u("li",kq,[c("ul",_q,[c("li",null,[c("span",{id:J(b)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,xq),l[1]||(l[1]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[l[0]||(l[0]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,Cq)):r("",!0)]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(w)})},[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2)])])):(B(),u("li",Sq,[c("span",{id:J(b)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Iq),l[3]||(l[3]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[l[2]||(l[2]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,Dq)):r("",!0)])),c("li",{class:C({"wfls-option-switch":!0,"wfls-padding-add-top-xs-small":!0,"wfls-right":"right"===J(v)})},[c("ul",{class:"wfls-switch",role:"radiogroup","aria-labelledby":J(b)},[(B(!0),u(t,null,F(e.states,e=>(B(),u("li",{key:e.label,class:C({"wfls-active":e.value==J(k),"wfls-disabled":!!e.disabled}),"data-option-value":e.value,role:"radio","aria-checked":e.value==J(k)?"true":"false",tabindex:"0",onClick:ce(t=>_(e),["stop","prevent"]),onKeydown:ue(ce(t=>_(e),["stop","prevent"]),["space"])},[e.labelIsHTML?(B(),i(J(jw),{key:0,unsafeHTML:e.label},null,8,["unsafeHTML"])):J(n)(e,"xs")?(B(),i(J(LQ),{key:1,text:e.label,xs:e.xs},null,8,["text","xs"])):(B(),u(t,{key:2},[f(Y(e.label),1)],64))],42,Tq))),128))],8,Mq)],2)])])],10,yq))}},Oq=["id","data-option-name","data-original-value"],Bq={key:0,class:"wfls-option-spacer"},$q={class:"wfls-option-content"},Pq={key:0,class:"wfls-option-title"},Eq={class:"wfls-flex-vertical wfls-flex-align-left"},Rq=["id"],Fq=["href"],Nq={class:"wfls-fa wfls-fa-question-circle-o"},Wq={key:1,class:"wfls-option-title"},Hq=["id"],Vq=["href"],Uq={class:"wfls-fa wfls-fa-question-circle-o"},Yq={__name:"OptionSelect",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null},selectOptions:{type:Array,default:()=>[]}},emits:["change","changeSelect"],setup(e,{emit:t}){const a=t,n=X(),l=e,{optionName:s,value:o,disabled:i,noSpacer:d,noVerticalSpacing:p,indentSubtitle:m,alignment:g,selectOptions:w}=Q(l),{$elementID:v,$elementIDLabel:y,$elementClasses:b,$pendingValue:k}=QQ(s,o,a,{always:["wfls-option-select"],disabled:i,noVerticalSpacing:p,alignment:g});return qQ({[l.optionName]:v}),(t,a)=>{const l=W("aria");return B(),u("ul",{id:J(v),class:C(J(b)),"data-option-name":J(s),"data-original-value":J(o)},[J(d)?r("",!0):(B(),u("li",Bq)),c("li",$q,[c("ul",null,[e.subtitle||J(n).subtitle?(B(),u("li",Pq,[c("ul",Eq,[c("li",null,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Rq),a[1]||(a[1]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[re(c("i",Nq,null,512),[[l,{hidden:!0}]]),h(J(rq))],8,Fq)):r("",!0)]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(m)})},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2)])])):(B(),u("li",Wq,[c("span",{id:J(y)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,Hq),a[2]||(a[2]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[re(c("i",Uq,null,512),[[l,{hidden:!0}]]),h(J(rq))],8,Vq)):r("",!0)])),c("li",{class:C({"wfls-option-select":!0,"wfls-padding-add-top-xs-small":!0,"wfls-right":"right"===J(g)})},[h(J(gs),{disabled:J(i),"aria-labelledby":J(y),modelValue:J(k),"onUpdate:modelValue":a[0]||(a[0]=e=>A(k)?k.value=e:null),options:J(w),canClear:!1},null,8,["disabled","aria-labelledby","modelValue","options"])],2)])])],10,Oq)}}},Kq=["id"],jq={class:"wfls-option-title"},Gq={class:"wfls-option-content"},Qq=["for"],qq=["id","name","value","onChange"],Zq=["value","disabled"],Jq={key:0,class:"wfls-notice"},zq={key:1,class:"wfls-notice"},Xq={class:"wfls-passkey-optional-required-descriptions"},eZ=["href"],tZ={class:"wfls-passkey-optional-required-descriptions"},aZ={class:"wfls-padding-add-top-small",style:{display:"inline-block"}},nZ={key:2,id:"wfls-customer-passkey-required-warning",class:"wfls-notice"},lZ={key:3,class:"wfls-woocommerce-customer-integration-message"},sZ={__name:"OptionPasskeyRoles",props:{noSpacer:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change","changeRoleRequired"],setup(e,{emit:a}){const n=a,{$modal:l}=NQ(),{$hasOwn:o}=Yw(),i=b("__"),d=b("$mitt"),p=b("wfconstants"),m=b("$dataStore"),{noSpacer:g,indentSubtitle:w,alignment:v}=Q(e),{$elementID:y,$elementClasses:A}=QQ("passkey-roles",null,n,{always:["wfls-option","wfls-option-passkey-roles"],noSpacer:g,alignment:v});qQ(Object.assign({},...p.options.passkey_roles.map(e=>({[e.name]:y})))),T(()=>{d.on("resetOptionControls",k)}),D(()=>{d.off("resetOptionControls",k)});const k=()=>{for(const e of p.options.passkey_roles)_[e.name]=e.state};let _=P({});for(const t of p.options.passkey_roles)_[t.name]=t.state;const x=s(()=>p.plugin.current_user?.passkey_role_option_names??[]),S=(e,t,a=_[e])=>{_[e]=t,n("changeRoleRequired",{old:a,new:t,name:e})},I=(e,t,a)=>{const n=_[e];if(((e,t)=>x.value.includes(e)&&t===p.roles.states.passkey_required&&(e=>p.options.passkey_roles.find(t=>t.name===e)?.state)(e)!==p.roles.states.passkey_required)(e,t))return a.target.value=n,void((e,t,a)=>{l("wfls-simple-confirmation-modal",{title:i("Confirm Requiring Passkeys for Your Role"),message:i("Requiring passkeys for your role will make your account more secure. However, if you lose access to your passkey, you will not be able to log in to this account at all. We recommend testing your login using another browser or incognito window before you log out in this window."),options:{primaryButtonTitle:i("Require Passkeys"),primaryButtonTitleXs:i("Require"),onPrimaryClick:()=>{d.emit("closeModal","wfls-simple-confirmation-modal"),S(e,t,a)},additionalButtons:[{title:i("Cancel"),onClick:()=>d.emit("closeModal","wfls-simple-confirmation-modal")}]}})})(e,t,n);S(e,t,n)},M=e=>{let t={[p.roles.states.passkey_disabled]:p.roles.labels[p.roles.states.passkey_disabled],[p.roles.states.passkey_optional]:p.roles.labels[p.roles.states.passkey_optional],[p.roles.states.passkey_required]:p.roles.labels[p.roles.states.passkey_required]};return e.allow_disabling||delete t[p.roles.states.passkey_disabled],t},L=s(()=>o(_,"passkey-enabled-roles.customer")&&_["passkey-enabled-roles.customer"]===p.roles.states.passkey_required),O=s(()=>Object.values(_).some(e=>e===p.roles.states.passkey_required));return(e,a)=>(B(),u("ul",{id:J(y),class:C(J(A))},[c("li",jq,[c("label",null,Y(J(i)("Passkey Roles")),1)]),c("li",Gq,[c("ul",null,[(B(!0),u(t,null,F(J(p).options.passkey_roles,e=>(B(),u("li",{key:e.name},[c("label",{for:`wfls-passkey-role-${e.role}`},Y(e.title),9,Qq),c("select",{id:`wfls-passkey-role-${e.role}`,name:e.name,class:"wfls-option-select",value:J(_)[e.name],onChange:t=>I(e.name,t.target.value,t)},[(B(!0),u(t,null,F(M(e),(t,a)=>(B(),u("option",{key:a,value:a,disabled:!e.editable},Y(t),9,Zq))),128))],40,qq)]))),128))]),c("div",{class:C(["wfls-option-subtitle",{"wfls-option-subtitle-indent":J(w)}])},[J(p).plugin.server.is_multisite?(B(),u("p",Jq,Y(J(i)("On multisite installations, passkey roles are currently limited to Super Administrators only")),1)):r("",!0),O.value?(B(),u("p",zq,Y(J(i)("When setting any role to required, especially for higher access roles such as Administrators, it is highly recommended for each user to have at least one backup passkey and to test logging in with a passkey in a separate browser or browser session (such as in a private browsing mode). This ensures each user's passkey(s) work as expected and users within the role are not prevented from logging in.")),1)):r("",!0),c("p",Xq,[c("small",null,[f(Y(J(i)("Passkeys can be disabled or enabled for each role. You should test logging in with passkeys when enabling them for any role, to be sure there are no conflicts with other login-related plugins or the theme."))+" ",1),c("a",{href:J(p).support.url.module_login_security_passkeys,target:"_blank",rel:"noopener noreferrer"},Y(J(i)("Learn More")),9,eZ)])]),c("p",tZ,[c("small",null,[f(Y(J(i)('There are two choices for enabling passkeys for each role. "Optional" is recommended for most sites:'))+" ",1),c("span",aZ,[a[0]||(a[0]=f(" • ",-1)),h(J(jw),{unsafeHTML:J(i)("<strong>Optional</strong> means that passkeys are enabled for users of that role but username/password login is still available unless disabled for the user on their Login Security page."),allowedTags:["strong"],allowedAttributes:{strong:[]}},null,8,["unsafeHTML"]),a[1]||(a[1]=c("br",null,null,-1)),a[2]||(a[2]=f(" • ",-1)),h(J(jw),{unsafeHTML:J(i)("<strong>Required</strong> means username/password access will be <strong>blocked</strong> for all users of that role (unless within a configured grace period). Additionally, when passkeys are required, XML-RPC will be disabled, requiring use of WordPress application passwords for API access instead (enabling if needed)."),allowedTags:["strong"],allowedAttributes:{strong:[]}},null,8,["unsafeHTML"])])])]),L.value?(B(),u("p",nZ,Y(J(i)('Requiring passkeys for customers is not recommended as some customers may experience difficulties setting up or using passkey authentication. Instead, using the "Optional" mode for users with the customer role is recommended which will allow customers to use a passkey but will not require them to do so.')),1)):r("",!0),J(p).plugin.server.is_multisite||!J(p).plugin.server.has_woocommerce||J(m).$options["wfls-enable-woocommerce-integration"]?r("",!0):(B(),u("p",lZ,[c("small",null,Y(J(i)('In order to use passkeys with the WooCommerce customer role, you must either enable the "WooCommerce integration" option or use the "wordfence_passkey_management" shortcode to provide customers with access to the passkey management interface. The default interface is only available through WordPress admin pages which are not accessible to users in the customer role.')),1)]))],2)])],10,Kq))}},oZ=["id","data-option-name","data-original-value"],iZ={key:0,class:"wfls-option-spacer"},rZ={class:"wfls-option-content"},uZ={class:"wfls-flex-vertical wfls-flex-align-left"},cZ=["id"],dZ=["href"],pZ=["id"],fZ=["href"],hZ={class:"wfls-option-textarea"},mZ={key:0,class:"wfls-flex-vertical wfls-flex-align-left wfls-flex-full-width"},gZ=["disabled","aria-labelledby"],wZ={key:0,class:"wfls-option-subtitle"},vZ={key:1,class:"wfls-option-subtitle"},yZ={key:2},bZ=["disabled","aria-labelledby"],AZ={__name:"OptionTextArea",props:{optionName:{type:String,required:!0},value:{default:null},title:{type:[String,null],default:null},alignTitle:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},description:{type:[String,null],default:null},subtitlePosition:{type:String,default:"title"},helpLink:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},noLeftSpacer:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:a}){const n=a,l=X(),s=e,{value:o,optionName:i,disabled:d,indentSubtitle:p}=Q(s),{$elementID:m,$elementIDLabel:g,$elementClasses:w,$pendingValue:v}=QQ(i,o,n,{always:["wfls-option-textarea"],disabled:d});return qQ({[s.optionName]:m}),(a,n)=>(B(),u("ul",{id:J(m),class:C(J(w)),"data-option-name":J(i),"data-original-value":JSON.stringify(J(o))},[e.noLeftSpacer?r("",!0):(B(),u("li",iZ)),c("li",rZ,[c("ul",null,[(e.subtitle||J(l).subtitle)&&"title"===e.subtitlePosition?(B(),u("li",{key:0,class:C(["wfls-option-title",{"wfls-option-title-top":"top"===e.alignTitle,"wfls-option-title-bottom":"bottom"===e.alignTitle}])},[c("ul",uZ,[c("li",null,[c("span",{id:J(g)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,cZ),n[3]||(n[3]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[n[2]||(n[2]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,dZ)):r("",!0)]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(p)})},[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2)])],2)):(B(),u("li",{key:1,class:C(["wfls-option-title",{"wfls-option-title-top":"top"===e.alignTitle,"wfls-option-title-bottom":"bottom"===e.alignTitle}])},[c("span",{id:J(g)},[N(a.$slots,"title",{},()=>[f(Y(e.title),1)])],8,pZ),n[5]||(n[5]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[n[4]||(n[4]=c("i",{class:"wfls-fa wfls-fa-question-circle-o","aria-hidden":"true"},null,-1)),h(J(rq))],8,fZ)):r("",!0)],2)),c("li",hZ,[e.description||J(l).description||(e.subtitle||J(l).subtitle)&&"value"===e.subtitlePosition?(B(),u("ul",mZ,[c("li",null,[re(c("textarea",{disabled:J(d),"aria-labelledby":J(g),"onUpdate:modelValue":n[0]||(n[0]=e=>A(v)?v.value=e:null)},null,8,gZ),[[le,J(v)]])]),e.description||J(l).description?(B(),u("li",wZ,[N(a.$slots,"description",{},()=>[f(Y(e.description),1)])])):r("",!0),(e.subtitle||J(l).subtitle)&&"value"===e.subtitlePosition?(B(),u("li",vZ,[N(a.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])])):r("",!0),J(l).information?(B(),u("li",yZ,[N(a.$slots,"information")])):r("",!0)])):(B(),u(t,{key:1},[re(c("textarea",{disabled:J(d),"aria-labelledby":J(g),"onUpdate:modelValue":n[1]||(n[1]=e=>A(v)?v.value=e:null)},null,8,bZ),[[le,J(v)]]),J(l).information?N(a.$slots,"information",{key:0}):r("",!0)],64))])])])],10,oZ))}},kZ=["id","data-option-name","data-original-value"],_Z={key:0,class:"wfls-option-spacer"},xZ={class:"wfls-option-content"},CZ={key:0,class:"wfls-option-title"},SZ={class:"wfls-flex-vertical wfls-flex-align-left"},IZ=["id"],DZ=["href"],MZ={class:"wfls-fa wfls-fa-question-circle-o"},TZ={key:1,class:"wfls-option-title"},LZ=["id"],OZ=["href"],BZ={class:"wfls-fa wfls-fa-question-circle-o"},$Z={class:"wfls-option-text"},PZ=["placeholder","disabled","aria-labelledby"],EZ={__name:"OptionTextField",props:{optionName:{type:String,required:!0},value:{default:null},placeholder:{type:[String,null],default:null},title:{type:[String,null],default:null},subtitle:{type:[String,null],default:null},helpLink:{type:[String,null],default:null},disabled:{type:Boolean,default:!1},noSpacer:{type:Boolean,default:!1},noVerticalSpacing:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const a=t,n=X();b("__");const l=e,{value:s,optionName:o,disabled:i,noSpacer:d,noVerticalSpacing:p,indentSubtitle:m}=Q(l),{$elementID:g,$elementIDLabel:w,$elementClasses:v,$pendingValue:y}=QQ(o,s,a,{always:["wfls-option-text"],disabled:i,noVerticalSpacing:p});return qQ({[l.optionName]:g}),(t,a)=>{const l=W("aria");return B(),u("ul",{id:J(g),class:C(J(v)),"data-option-name":J(o),"data-original-value":JSON.stringify(J(s))},[J(d)?r("",!0):(B(),u("li",_Z)),c("li",xZ,[c("ul",null,[e.subtitle||J(n).subtitle?(B(),u("li",CZ,[c("ul",SZ,[c("li",null,[c("span",{id:J(w)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,IZ),a[1]||(a[1]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[re(c("i",MZ,null,512),[[l,{hidden:!0}]]),h(J(rq))],8,DZ)):r("",!0)]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(m)})},[N(t.$slots,"subtitle",{},()=>[f(Y(e.subtitle),1)])],2)])])):(B(),u("li",TZ,[c("span",{id:J(w)},[N(t.$slots,"title",{},()=>[f(Y(e.title),1)])],8,LZ),a[2]||(a[2]=f()),e.helpLink?(B(),u("a",{key:0,href:e.helpLink,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[re(c("i",BZ,null,512),[[l,{hidden:!0}]]),h(J(rq))],8,OZ)):r("",!0)])),c("li",$Z,[re(c("input",{type:"text",placeholder:e.placeholder,disabled:J(i),"aria-labelledby":J(w),"onUpdate:modelValue":a[0]||(a[0]=e=>A(y)?y.value=e:null)},null,8,PZ),[[le,J(y)]]),N(t.$slots,"information")])])])],10,kZ)}}},RZ=["id"],FZ={class:"wfls-option-content"},NZ={class:"wfls-option-title"},WZ={class:"wfls-flex-vertical wfls-flex-align-left"},HZ={class:"wfls-option-text"},VZ=["value"],UZ={key:0,id:"wfls-grace-period-zero-warning"},YZ=["href"],KZ={key:0,class:"wfls-option-content"},jZ={class:"wfls-option-title wfls-grace-period-notification-title"},GZ={class:"wfls-flex-vertical wfls-flex-align-left"},QZ=["href"],qZ={class:"wfls-option-list-vertical"},ZZ={class:"wfls-block-list wfls-block-list-horizontal wfls-block-list-flex-end"},JZ={for:"wfls-grace-period-notification-role",class:"wfls-padding-add-right-small wfls-no-bottom"},zZ=["value"],XZ={class:"wfls-block-list wfls-block-list-horizontal wfls-block-list-flex-end"},eJ={class:"wfls-padding-add-right-small"},tJ={for:"wfls-grace-period-notification-url",class:"wfls-no-bottom"},aJ={class:"wfls-no-top"},nJ=["placeholder"],lJ={class:"wfls-block-list wfls-block-list-horizontal wfls-block-list-flex-end"},sJ={__name:"OptionGracePeriod",props:{noSpacer:{type:Boolean,default:!1},indentSubtitle:{type:Boolean,default:!1},alignment:{type:[String,null],default:null}},emits:["change","changeGracePeriod","changeRoleRequired"],setup(e,{emit:a}){const n=a,{$ajax:l}=FQ(),{$modal:o}=NQ(),i=b("__"),d=b("$mitt"),p=b("wfconstants"),h=b("$dataStore"),{noSpacer:m,indentSubtitle:g,alignment:w}=Q(e),{$elementID:v,$elementClasses:y,$pendingValue:A}=QQ("2fa-user-grace-period",h.$options["wfls-2fa-user-grace-period"],n,{always:["wfls-option","wfls-option-2fa-user-grace-period"],noSpacer:m,alignment:w},"changeGracePeriod",parseInt);qQ(Object.assign({},...p.options.roles.map(e=>({[e.name]:v}))));const k=R(""),_=R("");T(()=>{I.value.length&&(_.value=I.value[0].role)});const S=s(()=>p.options.passkey_roles.some(e=>e.state===p.roles.states.passkey_required)||p.options.roles.some(e=>e.state===p.roles.states.required)),I=s(()=>{const e=[...p.options.passkey_roles.filter(e=>e.state===p.roles.states.passkey_required),...p.options.roles.filter(e=>e.state===p.roles.states.required)],t=/* @__PURE__ */new Map;for(const a of e)t.has(a.role)||t.set(a.role,a);return Array.from(t.values())}),D=e=>{l("wordfence_ls_send_grace_period_notification",{role:_.value,url:k.value,notify_all:e??!1},e=>{e.error?e.limit_exceeded?o("wfls-simple-confirmation-modal",{title:i("Error Sending Notification"),message:e.error,options:{additionalButtons:[{title:i("Send Anyway"),onClick:()=>{d.emit("closeModal","wfls-simple-confirmation-modal"),x(()=>D(!0))}}]}}):o("wfls-simple-confirmation-modal",{title:i("Error Sending Notification"),message:e.error}):o("wfls-simple-confirmation-modal",{title:i("Notification Results"),message:e.confirmation})},e=>{o("wfls-simple-confirmation-modal",{title:i("Error Sending Notification"),message:i("An error was encountered while trying to send the notification. Please try again.")})})},M=e=>{const t=String(e.target.value).replace(/\D+/g,"").slice(0,2);e.target.value=t.length?t:0,A.value=t.length?t:0};return(e,a)=>(B(),u("ul",{id:J(v),class:C(J(y))},[c("li",FZ,[c("ul",null,[c("li",NZ,[c("ul",WZ,[c("li",null,[c("span",null,[c("strong",null,Y(J(i)("Grace Period")),1)])]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(g)})},Y(J(i)("For roles that require 2FA or a passkey, users will have this many days to set it up. Failure to set up additional authentication during this period will result in the user losing account access. This grace period will apply to new users from the time of account creation. For existing users, this grace period will apply relative to the time at which the requirement is implemented. This grace period will not automatically apply to admins and must be manually enabled for each admin user.")),3)])]),c("li",HZ,[c("input",{id:"wfls-auth-grace-period",type:"text",pattern:"[0-9]+",inputmode:"numeric",value:J(A),onInput:M,class:"wfls-option-input wfls-option-input-required",maxlength:"2"},null,40,VZ),0===J(A)?(B(),u("div",UZ,[f(Y(J(i)("Setting the grace period to 0 will prevent users in roles where 2FA or a passkey is required, including newly created users, from logging in if they have not already enabled it."))+" ",1),c("a",{href:J(p).support.url.module_login_security_roles,target:"_blank",rel:"noopener noreferrer"},Y(J(i)("Learn More")),9,YZ)])):r("",!0)])])]),S.value?(B(),u("li",KZ,[c("ul",null,[c("li",jZ,[c("ul",GZ,[c("li",null,[c("span",null,[c("strong",null,Y(J(i)("Send Notifications")),1)])]),c("li",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(g)})},[f(Y(J(i)("Send an email to users with the selected role to notify them of the grace period for adding additional authentication. You may optionally specify the URL to be sent in the email; if left blank, the URL defaults to Wordfence's Login Security page. For example, if using WooCommerce, input the relative URL of the account page."))+" ",1),c("a",{href:J(p).support.url.module_login_security_passkey_notifications,target:"_blank",rel:"noopener noreferrer",class:"wfls-inline-help"},[c("i",{class:C(J(p).plugin.should_use_core_font_awesome?["wf-fa","wf-fa-question-circle-o"]:["wfls-fa","wfls-fa-question-circle-o"]),"aria-hidden":"true"},null,2)],8,QZ)],2)])]),c("li",qZ,[c("div",ZZ,[c("label",JZ,Y(J(i)("Role"))+":",1),a[3]||(a[3]=f()),re(c("select",{id:"wfls-grace-period-notification-role","onUpdate:modelValue":a[0]||(a[0]=e=>_.value=e)},[(B(!0),u(t,null,F(I.value,e=>(B(),u("option",{key:e.name,value:e.role},Y(e.title),9,zZ))),128))],512),[[ne,_.value]])]),c("div",XZ,[c("div",eJ,[c("label",tJ,Y(J(i)("Relative URL"))+":",1),c("small",aJ,[c("em",null,Y(J(i)("optional")),1)])]),re(c("input",{id:"wfls-grace-period-notification-url",class:"wfls-grace-period-notification-url",type:"text",placeholder:J(i)("e.g., /my-account/"),"onUpdate:modelValue":a[1]||(a[1]=e=>k.value=e)},null,8,nJ),[[le,k.value]])]),c("div",lJ,[c("button",{class:"wfls-btn wfls-btn-default wfls-btn-sm wfls-keep-border",id:"wfls-send-grace-period-notification",onClick:a[2]||(a[2]=ce(e=>D(!1),["stop","prevent"]))},Y(J(i)("Notify")),1)])])])])):r("",!0)],10,RZ))}},oJ={class:"wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100"},iJ={class:"wfls-block wfls-always-active wfls-flex-item-full-width"},rJ={class:"wfls-block-header wfls-block-header-border-bottom"},uJ={class:"wfls-block-header-content"},cJ={class:"wfls-block-title"},dJ={class:"wfls-block-content"},pJ={class:"wfls-block-list"},fJ={key:0,class:"wfls-notice wfls-notice-small"},hJ={key:0,class:"wfls-notice wfls-notice-small"},mJ={class:"wfls-option wfls-option-action-row"},gJ={class:"wfls-option-content"},wJ={class:"wfls-option-title"},vJ={class:"wfls-flex-vertical wfls-flex-align-left"},yJ={class:"wfls-option-subtitle wfls-option-subtitle-indent"},bJ={class:"wfls-option-action wfls-padding-add-top-xs-small"},AJ=["disabled"],kJ={__name:"OptionsGroupAuthentication",setup(e){const t=b("__"),a=b("sprintf"),n=b("wfconstants"),l=b("$dataStore"),o=b("$mitt"),{$originalOptionValue:i,$resolvePendingOption:d,$updatePendingValue:p}=HQ(),{$ajax:m}=FQ(),{$modal:g}=NQ(),w=R(!1),v=s(()=>Object.fromEntries(n.options.roles.map(e=>[e.name,e.state]))),y=s(()=>Object.fromEntries(n.options.passkey_roles.map(e=>[e.name,e.state]))),A=s(()=>a(t('Passkeys are created for a credential domain (the WebAuthn Relying Party ID). Most sites should not change this value. By default, Wordfence uses this site\'s main domain ("%s") so passkeys can work on that domain and its subdomains. Enter a hostname here only if you need to use a different credential domain. For example, "example.com" permits passkeys on "www.example.com"; "www.example.com" limits passkeys to "www.example.com" and its subdomains.'),n.plugin.server.default_passkey_rp)),k=s(()=>String(l.$options["wfls-passkey-allowed-hostnames"]??"")),_=s(()=>!!n.plugin.server.has_active_passkeys&&String(i("passkey-allowed-hostnames")??"")!==String(d.value("passkey-allowed-hostnames")??"")),x=s(()=>String(l.$options["wfls-passkey-relying-party-override"]??"")),C=s(()=>!!n.plugin.server.has_active_passkeys&&String(i("passkey-relying-party-override")??"")!==String(d.value("passkey-relying-party-override")??"")),S=(e=null)=>{g("wfls-simple-confirmation-modal",{title:t("Error Updating Public Suffix List"),message:e??t("The public suffix list update could not be completed. Please try again.")})},I=e=>{e&&e.error?S(e.error):e&&"updated"===e.status?g("wfls-simple-confirmation-modal",{title:t("Public Suffix List Updated"),message:t("The public suffix list was updated successfully.")}):e&&"up_to_date"===e.status?g("wfls-simple-confirmation-modal",{title:t("Public Suffix List Up to Date"),message:t("The public suffix list is already up to date.")}):e&&"rp_changed"===e.status&&e.token?g("wfls-simple-confirmation-modal",{title:t("Public Suffix List Update"),message:t("Updating the public suffix list would change this site's default passkey credential domain. Existing passkeys may stop working unless a Passkey Credential Domain is set. Allow this update to be saved?"),options:{primaryButtonTitle:t("Allow Update"),onPrimaryClick:()=>{o.emit("closeModal","wfls-simple-confirmation-modal"),D(e.token)},additionalButtons:[{title:t("Cancel"),onClick:()=>o.emit("closeModal","wfls-simple-confirmation-modal")}]}}):S()},D=e=>{w.value=!0,m("wordfence_ls_save_public_suffix_list_update",{token:e},e=>{w.value=!1,I(e)},()=>{w.value=!1,S()})},M=()=>{w.value||(w.value=!0,m("wordfence_ls_update_public_suffix_list",{},e=>{w.value=!1,I(e)},()=>{w.value=!1,S()}))};return(e,a)=>(B(),u("div",oJ,[c("div",iJ,[c("div",rJ,[c("div",uJ,[c("div",cJ,[c("h3",null,Y(J(t)("Authentication")),1)])])]),c("div",dJ,[c("ul",pJ,[c("li",null,[h(J(sZ),{indentSubtitle:"",onChangeRoleRequired:a[0]||(a[0]=e=>J(p)(e.name,e.new,y.value[e.name]))})]),c("li",null,[h(J(oq),{indentSubtitle:"",onChangeRoleRequired:a[1]||(a[1]=e=>J(p)(e.name,e.new,v.value[e.name]))})]),c("li",null,[h(J(sJ),{indentSubtitle:"",onChangeGracePeriod:a[2]||(a[2]=e=>J(p)(e.name,e.new,J(i)(e.name)))})]),c("li",null,[h(J(EZ),{optionName:"passkey-relying-party-override",value:x.value,subtitle:A.value,placeholder:J(n).plugin.server.default_passkey_rp,noSpacer:!0,indentSubtitle:"",onChange:a[3]||(a[3]=e=>J(p)(e.name,e.new,String(i("passkey-relying-party-override")??"")))},{title:ie(()=>[c("strong",null,Y(J(t)("Passkey Credential Domain")),1)]),information:ie(()=>[C.value?(B(),u("p",fJ,Y(J(t)("Changing the passkey credential domain can block existing passkeys. If the new domain is different from, or does not include, the domain existing passkeys were created for, affected passkeys must be re-registered.")),1)):r("",!0)]),_:1},8,["value","subtitle","placeholder"])]),c("li",null,[h(J(AZ),{optionName:"passkey-allowed-hostnames",value:k.value,alignTitle:"top",subtitle:J(t)("Passkey login and registration responses are accepted only from trusted login hostnames and ports. Most sites can leave this list unchanged. Defaults include this site's configured Site/Home hostnames and required ports, the Passkey Credential Domain when set, and the base/www hostnames for the domain derived with the Public Suffix List."),description:J(t)("Enter one hostname per line, with an optional port and without a protocol or path. A hostname without a port allows HTTPS port 443. Any other port, including HTTP port 80 for localhost, must be listed explicitly. Only list hostnames and ports that you control and actively serve for login."),noLeftSpacer:!0,indentSubtitle:"",onChange:a[4]||(a[4]=e=>J(p)(e.name,e.new,String(i("passkey-allowed-hostnames")??"")))},{title:ie(()=>[c("strong",null,Y(J(t)("Allowed Passkey Hostnames")),1)]),information:ie(()=>[_.value?(B(),u("p",hJ,Y(J(t)("Existing passkeys may be blocked on any hostnames or ports removed from this list. Make sure every hostname and port users use to log in remains listed.")),1)):r("",!0)]),_:1},8,["value","subtitle","description"])]),c("li",null,[c("ul",mJ,[c("li",gJ,[c("ul",null,[c("li",wJ,[c("ul",vJ,[c("li",null,[c("strong",null,Y(J(t)("Public Suffix List")),1)]),c("li",yJ,Y(J(t)("Wordfence uses the public suffix list to determine the default passkey credential domain based on this site's full URL. You do not generally need to run updates on this beyond the original fetching of the list but may if any significant changes have occurred to the hostname used by this site.")),1)])]),c("li",bJ,[c("button",{type:"button",class:"wfls-btn wfls-btn-sm wfls-btn-default",disabled:w.value,onClick:ce(M,["stop","prevent"])},[a[10]||(a[10]=c("i",{class:"wfls-fa wfls-fa-refresh","aria-hidden":"true"},null,-1)),f(" "+Y(J(t)("Update Public Suffix List")),1)],8,AJ)])])])])]),c("li",null,[h(J(Yq),{optionName:"passkey-sign-count-mode",value:J(l).$options["wfls-passkey-sign-count-mode"],subtitle:J(t)("Passkey sign-in counters can help detect cloned passkeys, but some authenticators report zero or reset counters. The default setting balances strictness and reliability by rejecting non-zero counters that are not higher than the stored counter."),selectOptions:J(n).options.passkey_sign_count_modes,noSpacer:!0,indentSubtitle:"",onChange:a[5]||(a[5]=e=>J(p)(e.name,e.new,J(i)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Passkey sign-in counter validation")),1)]),_:1},8,["value","subtitle","selectOptions"])]),c("li",null,[h(J(Lq),{optionName:"xmlrpc-enabled",value:J(l).$options["wfls-xmlrpc-enabled"],subtitle:J(t)('If enabled, XML-RPC calls that require authentication will also require a valid 2FA code to be appended to the password. You must choose the "Skipped" option if you use the WordPress app, the Jetpack plugin, or other services that require XML-RPC.'),states:[{value:!1,label:J(t)("Skipped")},{value:!0,label:J(t)("Required")}],alignment:"right",noSpacer:!0,indentSubtitle:"",onChange:a[6]||(a[6]=e=>J(p)(e.name,e.new,J(i)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Require 2FA for XML-RPC call authentication")),1)]),_:1},8,["value","subtitle","states"])]),c("li",null,[h(J(vq),{optionName:"allow-xml-rpc",value:J(l).$options["wfls-allow-xml-rpc"],enabledValue:!1,disabledValue:!0,subtitle:J(t)("If disabled, XML-RPC requests that attempt authentication will be rejected, whether the user has 2FA enabled or not."),onChange:a[7]||(a[7]=e=>J(p)(e.name,e.new,J(i)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Disable XML-RPC authentication")),1)]),_:1},8,["value","subtitle"])]),c("li",null,[h(J(vq),{optionName:"remember-device",value:J(l).$options["wfls-remember-device"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("If enabled, users with 2FA enabled may choose to be prompted for a code only once every 30 days per device."),onChange:a[8]||(a[8]=e=>J(p)(e.name,e.new,J(i)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Allow remembering device for 30 days")),1)]),_:1},8,["value","subtitle"])]),c("li",null,[h(J(vq),{optionName:"always-show-login-security-menu",value:J(l).$options["wfls-always-show-login-security-menu"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("When enabled, roles can see the Login Security menu even when both passkeys and 2FA are disabled for that role. This also controls whether users will see messages indicating any disabled authentication methods."),onChange:a[9]||(a[9]=e=>J(p)(e.name,e.new,J(i)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Always show Login Security menu")),1)]),_:1},8,["value","subtitle"])])])])])]))}},_J={class:"wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100"},xJ={class:"wfls-block wfls-always-active wfls-flex-item-full-width"},CJ={class:"wfls-block-header wfls-block-header-border-bottom"},SJ={class:"wfls-block-header-content"},IJ={class:"wfls-block-title"},DJ={class:"wfls-block-content"},MJ={class:"wfls-block-list"},TJ={__name:"OptionsGroupWooCommerce",setup(e){const t=b("__"),a=b("wfconstants"),n=b("$dataStore"),{$originalOptionValue:l,$updatePendingValue:o,$resolvePendingOption:i}=HQ(),r=s(()=>!!i.value("enable-woocommerce-integration"));return(e,s)=>(B(),u("div",_J,[c("div",xJ,[c("div",CJ,[c("div",SJ,[c("div",IJ,[c("h3",null,Y(J(t)("WooCommerce & Custom Integrations")),1)])])]),c("div",DJ,[c("ul",MJ,[c("li",null,[h(J(vq),{optionName:"enable-woocommerce-integration",value:J(n).$options["wfls-enable-woocommerce-integration"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("When enabled, reCAPTCHA and 2FA prompt support will be added to WooCommerce login and registration forms in addition to the default WordPress forms. Testing WooCommerce forms after enabling this feature is recommended to ensure plugin compatibility."),onChange:s[0]||(s[0]=e=>J(o)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("WooCommerce integration")),1)]),_:1},8,["value","subtitle"])]),c("li",null,[h(J(vq),{optionName:"enable-woocommerce-account-integration",value:J(n).$options["wfls-enable-woocommerce-account-integration"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("When enabled, a Wordfence Login Security tab will be added to the WooCommerce account menu which will provide access for users to manage passkey and 2FA credentials outside of the WordPress admin area. Testing the WooCommerce account interface after enabling this feature is recommended to ensure theme compatibility."),helpLink:J(a).support.url.module_login_security_option_woocommerce_account_integration,disabled:!r.value,child:!0,onChange:s[1]||(s[1]=e=>J(o)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Show Wordfence Login Security menu on WooCommerce Account page")),1)]),_:1},8,["value","subtitle","helpLink","disabled"])]),c("li",null,[h(J(vq),{optionName:"enable-shortcode",value:J(n).$options["wfls-enable-shortcode"],enabledValue:!0,disabledValue:!1,subtitle:J(t)('When enabled, the "wordfence_passkey_management" and "wordfence_2fa_management" shortcodes may be used to provide access for users to manage passkey and 2FA credentials on custom pages.'),helpLink:J(a).support.url.module_login_security_option_shortcode,onChange:s[2]||(s[2]=e=>J(o)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Passkey/2FA management shortcode")),1)]),_:1},8,["value","subtitle","helpLink"])]),c("li",null,[h(J(vq),{optionName:"stack-ui-columns",value:J(n).$options["wfls-stack-ui-columns"],enabledValue:!0,disabledValue:!1,subtitle:J(t)('When enabled, the passkey and 2FA management interfaces embedded through the WooCommerce integration or via a shortcode will use a vertical stacked layout as opposed to horizontal columns. Adjust this setting as appropriate to match your theme. This may be overridden using the "stacked" attribute for individual shortcodes.'),helpLink:J(a).support.url.module_login_security_option_stack_ui_columns,onChange:s[3]||(s[3]=e=>J(o)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Use single-column layout for WooCommerce/shortcode Login Security management interface")),1)]),_:1},8,["value","subtitle","helpLink"])])])])])]))}},LJ={id:"wfls-option-enable-auth-captcha"},OJ={class:"wfls-option wfls-padding-add-bottom-small"},BJ=["id","aria-checked","onKeydown"],$J=["aria-labelledby"],PJ={class:"wfls-option-title"},EJ={class:"wfls-flex-vertical wfls-flex-align-left"},RJ=["id"],FJ={class:"wfls-option-subtitle"},NJ={key:0},WJ={class:"wfls-option wfls-padding-no-top"},HJ=["id"],VJ=["id"],UJ={class:"wfls-option-text wfls-padding-add-bottom"},YJ=["id"],KJ=["id"],jJ={class:"wfls-option-text"},GJ={class:"wfls-option wfls-padding-no-top"},QJ={class:"wfls-option-title"},qJ={class:"wfls-flex-vertical wfls-flex-align-left"},ZJ={class:"wfls-option-subtitle"},JJ={__name:"OptionReCAPTCHA",emits:["changeCAPTCHAEnable","changeReCAPTCHASiteKey","changeReCAPTCHASecret"],setup(e,{emit:t}){const a=t,l=b("__"),s=b("sprintf"),o=b("wfconstants"),i=b("$dataStore"),{$elementID:d,$elementIDLabel:p,$pendingValue:f}=QQ("enable-auth-captcha",i.$options["wfls-enable-auth-captcha"],a,{},"changeCAPTCHAEnable"),{$elementID:m,$elementIDLabel:g,$pendingValue:w}=QQ("recaptcha-site-key",i.$options["wfls-recaptcha-site-key"],a,{},"changeReCAPTCHASiteKey"),{$elementID:v,$elementIDLabel:y,$pendingValue:k}=QQ("recaptcha-secret",i.$options["wfls-recaptcha-secret"],a,{},"changeReCAPTCHASecret");qQ({"enable-auth-captcha":d,"recaptcha-site-key":m,"recaptcha-secret":v});const _=()=>{f.value=!f.value};return(e,t)=>(B(),u("ul",LJ,[c("li",null,[c("ul",OJ,[c("li",{id:J(d),class:C(["wfls-option-checkbox",{"wfls-checked":J(f)}]),role:"checkbox","aria-checked":J(f)?"true":"false",tabindex:"0",onClick:ce(_,["stop","prevent"]),onKeydown:ue(ce(_,["stop","prevent"]),["space"])},[c("i",{class:"wfls-ion-ios-checkmark-empty","aria-hidden":"true","aria-labelledby":J(p)},null,8,$J)],42,BJ),c("li",PJ,[c("ul",EJ,[c("li",null,[c("strong",{id:J(p)},Y(J(l)("Enable reCAPTCHA on the login and user registration pages")),9,RJ)]),c("li",FJ,[h(J(jw),{unsafeHTML:J(s)(J(l)('reCAPTCHA v3 does not make users solve puzzles or click a checkbox like previous versions. The only visible part is the reCAPTCHA logo. If a visitor\'s browser fails the CAPTCHA, Wordfence will send an email to the user\'s address with a link they can click to verify that they are a user of your site. You can read further details <a href="%s" target="_blank" rel="noopener noreferrer">in our documentation</a>.'),J(o).support.url.module_login_security_captcha)},null,8,["unsafeHTML"])])])])])]),h(n,{name:"wfls-slide-up"},{default:ie(()=>[J(f)?(B(),u("li",NJ,[c("ul",WJ,[t[2]||(t[2]=c("li",{class:"wfls-option-spacer"},null,-1)),c("li",null,[c("table",null,[c("tr",{id:J(m),class:"wfls-option wfls-option-text"},[c("th",{id:J(g),class:"wfls-padding-add-bottom"},Y(J(l)("reCAPTCHA v3 Site Key")),9,VJ),c("td",UJ,[re(c("input",{type:"text",name:"recaptchaSiteKey",id:"input-recaptchaSiteKey",class:"wfls-form-control","onUpdate:modelValue":t[0]||(t[0]=e=>A(w)?w.value=e:null)},null,512),[[le,J(w)]])])],8,HJ),c("tr",{id:J(v),class:"wfls-option wfls-option-text"},[c("th",{id:J(y)},Y(J(l)("reCAPTCHA v3 Secret")),9,KJ),c("td",jJ,[re(c("input",{type:"text",name:"recaptchaSecret",id:"input-recaptchaSecret",class:"wfls-form-control","onUpdate:modelValue":t[1]||(t[1]=e=>A(k)?k.value=e:null)},null,512),[[le,J(k)]])])],8,YJ)])])]),c("ul",GJ,[t[3]||(t[3]=c("li",{class:"wfls-option-spacer"},null,-1)),c("li",QJ,[c("ul",qJ,[c("li",ZJ,[h(J(jw),{unsafeHTML:J(l)('Note: This feature requires a free site key and secret for the <a href="https://www.google.com/recaptcha/about/" target="_blank" rel="noopener noreferrer">Google reCAPTCHA v3 Service</a>. To set up new reCAPTCHA keys, log into your Google account and go to the <a href="https://www.google.com/recaptcha/admin" target="_blank" rel="noopener noreferrer">reCAPTCHA admin page</a>.')},null,8,["unsafeHTML"])])])])])])):r("",!0)]),_:1})]))}},zJ={class:"wfls-flex-vertical wfls-flex-align-left"},XJ=["id"],ez={class:"wfls-option-content"},tz={class:"wfls-option-title"},az={class:"wfls-flex-vertical wfls-flex-align-left"},nz=["id"],lz={class:"wfls-option-subtitle"},sz={class:"wfls-option-select wfls-padding-add-top-xs-small"},oz=["aria-labelledby"],iz=["value"],rz={class:"wfls-option"},uz={class:"wfls-recaptcha-score-history"},cz={class:"wfls-center"},dz={__name:"OptionReCAPTCHAThreshold",emits:["changeCAPTCHAThreshold"],setup(e,{emit:a}){const n=a,l=b("$"),o=b("__"),i=b("$dataStore"),r=window.Chart,{$ajax:d}=FQ(),{$modal:p}=NQ(),{$elementID:f,$elementIDLabel:h,$pendingValue:m}=QQ("recaptcha-threshold",i.$options["wfls-recaptcha-threshold"],n,{},"changeCAPTCHAThreshold"),{$hasOwn:g}=Yw();qQ({"recaptcha-threshold":f}),T(()=>{y()});const w=s(()=>[{label:`1.0 ${o("(definitely a human)")}`,value:1},{label:"0.9",value:.9},{label:"0.8",value:.8},{label:"0.7",value:.7},{label:"0.6",value:.6},{label:`0.5 ${o("(probably a human)")}`,value:.5},{label:"0.4",value:.4},{label:"0.3",value:.3},{label:"0.2",value:.2},{label:`0.1 ${o("(probably a bot)")}`,value:.1}]),v=()=>{d("wordfence_ls_reset_recaptcha_stats",{},e=>{e.success?window.location.reload(!0):g(e,"html")&&e.html?p("wfls-simple-confirmation-modal",{title:o("Error Resetting reCAPTCHA Statistics"),message:e.error,messageIsHTML:!0}):p("wfls-simple-confirmation-modal",{title:o("Error Resetting reCAPTCHA Statistics"),message:e.error})})},y=()=>{const e={labels:["0.0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1.0"],datasets:[{label:o("Requests"),backgroundColor:"rgba(75,192,192,0.4)",borderColor:"rgba(75,192,192,1.0)",borderWidth:1,data:i.$options["wfls-captcha-stats"].counts}]};new r(l("#wfls-recaptcha-score-history"),{type:"bar",data:e,options:{responsive:!0,legend:{display:!1},title:{display:!0,text:o("reCAPTCHA Score History")},scales:{y:{display:!0,title:{display:!0,text:o("Count")},ticks:{min:0,precision:0,stepSize:Math.max(10,Math.pow(10,Math.floor(Math.log10(i.$options["wfls-captcha-stats"].counts.reduce((e,t)=>e+t,0)/5))))}}}}})};return(e,a)=>(B(),u("ul",zJ,[c("li",null,[c("ul",{id:J(f),class:"wfls-option wfls-option-select"},[a[1]||(a[1]=c("li",{class:"wfls-option-spacer"},null,-1)),c("li",ez,[c("ul",null,[c("li",tz,[c("ul",az,[c("li",null,[c("span",{id:J(h)},[c("strong",null,Y(J(o)("reCAPTCHA human/bot threshold score")),1)],8,nz)]),c("li",lz,Y(J(o)("A reCAPTCHA score equal to or higher than this value will be considered human. Anything lower will be treated as a bot and require additional verification for login and registration.")),1)])]),c("li",sz,[re(c("select",{"aria-labelledby":J(h),"onUpdate:modelValue":a[0]||(a[0]=e=>A(m)?m.value=e:null)},[(B(!0),u(t,null,F(w.value,e=>(B(),u("option",{key:e.value,class:"wfls-option-select-option",value:e.value},Y(e.label),9,iz))),128))],8,oz),[[ne,J(m)]])])])])],8,XJ)]),c("li",null,[c("ul",rz,[a[3]||(a[3]=c("li",{class:"wfls-option-spacer"},null,-1)),c("li",uz,[a[2]||(a[2]=c("div",{class:"wfls-recaptcha-chart-container"},[c("canvas",{id:"wfls-recaptcha-score-history"})],-1)),c("div",cz,[c("a",{href:"#",id:"wfls-reset-recaptcha-score-stats",class:"wfls-text-small",onClick:ce(v,["stop","prevent"])},Y(J(o)("Reset Score Statistics")),1)])])])])]))}},pz={class:"wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100"},fz={class:"wfls-block wfls-always-active wfls-flex-item-full-width"},hz={class:"wfls-block-header wfls-block-header-border-bottom"},mz={class:"wfls-block-header-content"},gz={class:"wfls-block-title"},wz={class:"wfls-block-content"},vz={class:"wfls-block-list"},yz={__name:"OptionsGroupCAPTCHA",setup(e){const t=b("__"),a=b("$dataStore"),{$originalOptionValue:n,$updatePendingValue:l}=HQ();return(e,s)=>(B(),u("div",pz,[c("div",fz,[c("div",hz,[c("div",mz,[c("div",gz,[c("h3",null,Y(J(t)("reCAPTCHA")),1)])])]),c("div",wz,[c("ul",vz,[c("li",null,[h(J(JJ),{onChangeCAPTCHAEnable:s[0]||(s[0]=e=>J(l)(e.name,e.new,J(n)(e.name))),onChangeReCAPTCHASiteKey:s[1]||(s[1]=e=>J(l)(e.name,e.new,J(n)(e.name))),onChangeReCAPTCHASecret:s[2]||(s[2]=e=>J(l)(e.name,e.new,J(n)(e.name)))})]),c("li",null,[h(J(dz),{onChangeCAPTCHAThreshold:s[3]||(s[3]=e=>J(l)(e.name,e.new,J(n)(e.name)))})]),c("li",null,[h(J(vq),{optionName:"recaptcha-test-mode",value:J(a).$options["wfls-recaptcha-test-mode"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("While in test mode, reCAPTCHA will score login and registration requests but not actually block them. The scores will be recorded and can be used to select a human/bot threshold value."),onChange:s[4]||(s[4]=e=>J(l)(e.name,e.new,J(n)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Run reCAPTCHA in test mode")),1)]),_:1},8,["value","subtitle"])])])])])]))}},bz={id:"wfls-option-ntp",class:"wfls-option wfls-flex-vertical wfls-flex-align-left"},Az={class:"wfls-option-title"},kz={class:"wfls-option-content"},_z={key:0},xz={key:0},Cz={key:1},Sz={key:0},Iz={__name:"OptionNTP",props:{indentSubtitle:{type:Boolean,default:!1}},setup(e){const a=b("__"),n=b("sprintf"),l=b("wfconstants"),{indentSubtitle:s}=Q(e),{$ajax:o}=FQ(),{$modal:i}=NQ(),d=()=>{o("wordfence_ls_reset_ntp_failure_count",{},e=>{e.error?i("wfls-simple-confirmation-modal",{title:a("Error Resetting NTP"),message:e.error??a("An error was encountered while trying to reset the NTP state. Please try again.")}):window.location.reload()},e=>{i("wfls-simple-confirmation-modal",{title:a("Error Resetting NTP"),message:a("An error was encountered while trying to reset the NTP state. Please try again.")})})},p=()=>{o("wordfence_ls_disable_ntp",{},function(e){e.error?i("wfls-simple-confirmation-modal",{title:a("Error Disabling NTP"),message:e.error??a("An error was encountered while trying to disable NTP. Please try again.")}):window.location.reload()},function(e){i("wfls-simple-confirmation-modal",{title:a("Error Disabling NTP"),message:a("An error was encountered while trying to disable NTP. Please try again.")})})};return(e,o)=>(B(),u("ul",bz,[c("li",Az,[c("strong",null,Y(J(a)("NTP")),1)]),c("li",kz,[c("p",{class:C({"wfls-option-subtitle":!0,"wfls-option-subtitle-indent":J(s)})},Y(J(a)("NTP is a protocol that allows for remote time synchronization. Wordfence Login Security uses this protocol to ensure that it has the most accurate time which is necessary for TOTP-based two-factor authentication.")),3),J(l).plugin.ntp.constant_disabled?(B(),u("p",_z,Y(J(a)("The constant WORDFENCE_LS_DISABLE_NTP is defined which disables NTP entirely. Remove this constant or set it to a falsy value to enable NTP.")),1)):J(l).plugin.ntp.cron_disabled?(B(),u(t,{key:1},[J(l).plugin.ntp.cron_failure_count?(B(),u("p",xz,[c("strong",null,Y(J(n)(J(a)("NTP is currently disabled as %d subsequent attempts have failed."),J(l).plugin.ntp.max_failures)),1)])):(B(),u("p",Cz,Y(J(a)("NTP was manually disabled.")),1)),c("button",{id:"wfls-reset-ntp-failure-count",class:"wfls-btn wfls-btn-sm wfls-btn-default",onClick:ce(d,["stop","prevent"])},Y(J(a)("Reset")),1)],64)):(B(),u(t,{key:2},[c("p",null,[h(J(jw),{unsafeHTML:J(a)("NTP is currently <strong>enabled</strong>.")},null,8,["unsafeHTML"])]),J(l).plugin.ntp.cron_failure_count?(B(),u("p",Sz,[c("strong",null,Y(J(a)("NTP updates are currently failing.")),1),J(l).plugin.ntp.max_failures-J(l).plugin.ntp.cron_failure_count>1?(B(),u(t,{key:0},[f(Y(J(n)(J(a)("NTP will be automatically disabled after %d more attempts."),J(l).plugin.ntp.max_failures-J(l).plugin.ntp.cron_failure_count)),1)],64)):(B(),u(t,{key:1},[f(Y(J(a)("NTP will be automatically disabled after 1 more attempt.")),1)],64))])):r("",!0),c("button",{id:"wfls-disable-ntp",class:"wfls-btn wfls-btn-sm wfls-btn-default",onClick:ce(p,["stop","prevent"])},Y(J(a)("Disable")),1)],64))])]))}},Dz={class:"wfls-flex-vertical wfls-flex-full-width"},Mz=["id"],Tz={class:"wfls-option-content wfls-no-right"},Lz={class:"wfls-flex-vertical wfls-flex-align-left"},Oz={class:"wfls-option-title"},Bz={class:"wfls-flex-vertical wfls-flex-align-left"},$z={class:"wfls-padding-add-left"},Pz={class:"wfls-flex-vertical wfls-flex-align-left",role:"radiogroup"},Ez=["value","id"],Rz=["for"],Fz={class:"wfls-option-ip-source-details wfls-padding-add-top"},Nz={class:"wfls-left"},Wz={id:"wfls-ip-source-preview-all"},Hz={key:1},Vz={class:"wfls-left"},Uz={id:"wfls-ip-source-preview-single"},Yz={class:"wfls-left"},Kz={key:0,id:"wfls-ip-source-trusted-proxies"},jz=["id"],Gz={class:"wfls-option-content wfls-no-right"},Qz={class:"wfls-option-title"},qz={class:"wfls-flex-vertical wfls-flex-align-left"},Zz={class:"wfls-option-subtitle"},Jz={class:"wfls-option-textarea"},zz={__name:"OptionHowGetIPs",emits:["change","changeTrustedProxies"],setup(e,{emit:a}){const{$ajax:l}=FQ(),s=a,o=b("__"),i=b("$mitt"),d=b("wfconstants"),p=b("$dataStore");T(()=>{i.on("resetOptionControls",m)}),D(()=>{i.off("resetOptionControls",m),clearTimeout($.value)});const m=()=>{L.value=!1,x(O)},{$elementID:g,$elementClasses:w,$pendingValue:v}=QQ("ip-source",p.$options["wfls-ip-source"],s,{always:["wfls-option-ip-source"]}),{$elementID:y,$elementClasses:k,$pendingValue:_}=QQ("ip-trusted-proxies",p.$options["wfls-ip-trusted-proxies"],s,{always:["wfls-option-textarea"]},"changeTrustedProxies");qQ({"ip-source":g,"ip-trusted-proxies":y});const S=e=>`${J(g)}-${e.value.replace(/[^a-z0-9]/gi,"-")}`,I=R(d.plugin.ip.current),M=P(d.plugin.ip.preview),L=R(!1),O=()=>{l("wordfence_ls_update_ip_preview",{ip_source:J(v),ip_source_trusted_proxies:J(_)},e=>{e&&e.ip&&(I.value=e.ip,M.splice(0,M.length,...e.preview))})};oe(v,O);const $=R(0);return oe(_,()=>{clearTimeout($.value),$.value=setTimeout(O,1e3)}),(e,a)=>(B(),u("ul",Dz,[c("li",null,[c("ul",{id:J(g),class:C(J(w))},[c("li",Tz,[c("ul",Lz,[c("li",Oz,[c("strong",null,Y(J(o)("How to get IPs")),1)]),c("li",null,[c("ul",Bz,[c("li",$z,[c("ul",Pz,[(B(!0),u(t,null,F(J(d).options.ip_source,e=>(B(),u("li",{class:"wfls-padding-add-top-small",key:S(e)},[re(c("input",{type:"radio",class:"wfls-option-radio",name:"wfls-ip-source",value:e.value,id:S(e),"onUpdate:modelValue":a[0]||(a[0]=e=>A(v)?v.value=e:null)},null,8,Ez),[[ae,J(v)]]),c("label",{for:S(e),class:"wfls-plain"}," "+Y(e.label),9,Rz)]))),128))])]),c("li",Fz,[c("div",Nz,[f(Y(J(o)("Detected IP(s)"))+": ",1),c("span",Wz,[(B(!0),u(t,null,F(M,(e,a)=>(B(),u(t,{key:e.ip},[a>0?(B(),u(t,{key:0},[f(", ")],64)):r("",!0),e.selected?(B(),u("strong",Hz,Y(e.ip),1)):(B(),u(t,{key:2},[f(Y(e.ip),1)],64))],64))),128))])]),c("div",Vz,[f(Y(J(o)("Your IP with this setting"))+": ",1),c("span",Uz,Y(I.value),1)]),c("div",Yz,[c("a",{href:"#",id:"wfls-ip-source-trusted-proxies-show",role:"button",onClick:a[1]||(a[1]=ce(e=>L.value=!L.value,["stop","prevent"]))},"+ "+Y(J(o)("Edit trusted proxies")),1)])])])])])])],10,Mz)]),h(n,{name:"wfls-slide-up"},{default:ie(()=>[L.value?(B(),u("li",Kz,[c("ul",{id:J(y),class:C(J(k))},[a[3]||(a[3]=c("li",{class:"wfls-option-spacer"},null,-1)),c("li",Gz,[c("ul",null,[c("li",Qz,[c("ul",qz,[c("li",null,Y(J(o)("Trusted Proxies")),1),c("li",Zz,Y(J(o)("These IPs (or CIDR ranges) will be ignored when determining the requesting IP via the X-Forwarded-For HTTP header. Enter one IP or CIDR range per line.")),1)])]),c("li",Jz,[re(c("textarea",{spellcheck:"false",autocapitalize:"none",autocomplete:"off",name:"wfls-ip-trusted-proxies","onUpdate:modelValue":a[2]||(a[2]=e=>A(_)?_.value=e:null)},null,512),[[le,J(_)]])])])])],10,jz)])):r("",!0)]),_:1})]))}},Xz={class:"wfls-flex-row wfls-flex-row-equal-heights wfls-flex-item-xs-100"},eX={class:"wfls-block wfls-always-active wfls-flex-item-full-width"},tX={class:"wfls-block-header wfls-block-header-border-bottom"},aX={class:"wfls-block-header-content"},nX={class:"wfls-block-title"},lX={class:"wfls-block-content"},sX={class:"wfls-block-list"},oX={key:0},iX={__name:"OptionsGroupGeneral",setup(e){const t=b("__"),a=b("wfconstants"),n=b("$dataStore"),{$originalOptionValue:l,$updatePendingValue:s}=HQ();return(e,o)=>(B(),u("div",Xz,[c("div",eX,[c("div",tX,[c("div",aX,[c("div",nX,[c("h3",null,Y(J(t)("General")),1)])])]),c("div",lX,[c("ul",sX,[c("li",null,[h(J(AZ),{optionName:"whitelisted",value:J(n).$options["wfls-whitelisted"],alignTitle:"top",subtitle:J(t)("Requests from these IPs bypass 2FA, passkey requirements, username/password restrictions for passkey-required accounts, and reCAPTCHA."),description:J(t)("Allowlisted IPs must be placed on separate lines. You can specify ranges using the following formats: 127.0.0.1/24, 127.0.0.[1-100], or 127.0.0.1-127.0.1.100."),noLeftSpacer:!0,indentSubtitle:"",onChange:o[0]||(o[0]=e=>J(s)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Allowlisted IP addresses that bypass 2FA, passkey requirements, and reCAPTCHA")),1)]),_:1},8,["value","subtitle","description"])]),J(a).plugin.ls_from_core?r("",!0):(B(),u("li",oX,[h(J(zz),{onChange:o[1]||(o[1]=e=>J(s)(e.name,e.new,J(l)(e.name))),onChangeTrustedProxies:o[2]||(o[2]=e=>J(s)(e.name,e.new,J(l)(e.name)))})])),c("li",null,[h(J(Iz),{indentSubtitle:""})]),c("li",null,[h(J(vq),{optionName:"enable-login-history-columns",value:J(n).$options["wfls-enable-login-history-columns"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("When enabled, the last login timestamp will be displayed for each user on the WP Users page. When used in conjunction with reCAPTCHA, the most recent score will also be displayed for each user."),onChange:o[3]||(o[3]=e=>J(s)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Show last login column on WP Users page")),1)]),_:1},8,["value","subtitle"])]),c("li",null,[h(J(vq),{optionName:"delete-deactivation",value:J(n).$options["wfls-delete-deactivation"],enabledValue:!0,disabledValue:!1,subtitle:J(t)("If enabled, all settings and 2FA records will be deleted on deactivation. If later reactivated, all users that previously had 2FA active will need to set it up again."),onChange:o[4]||(o[4]=e=>J(s)(e.name,e.new,J(l)(e.name)))},{title:ie(()=>[c("strong",null,Y(J(t)("Delete Login Security tables and data on deactivation")),1)]),_:1},8,["value","subtitle"])])])])])]))}},rX={__name:"WFLSOptions",setup:e=>(e,a)=>(B(),u(t,null,[h(J(kJ)),h(J(TJ)),h(J(yz)),h(J(iX))],64))},{$hasOwn:uX}=cn(),cX={AuditLogNewTour:Wn,Blocking:Br,BlockingNewTour:Rr,CommonModals:Zp,DashboardHeader:nh,DashboardModals:uh,DashboardNewTour:fh,DashboardOptions:Uw,DiagnosticsBlock:tv,DiagnosticsClearCentralConnectionData:sv,DiagnosticsHeader:Sv,DiagnosticsModals:Mv,DiagnosticsSendTestActivityReport:Ov,DiagnosticsSendTestEmail:Pv,DiagnosticsSettingsButtons:Rv,FirewallDrawers:oy,FirewallHeader:Wy,FirewallModals:zb,FirewallNewTour:nA,FirewallOptions:fL,GDPRBanner:AL,GlobalError:LL,LiveTraffic:eP,LiveTrafficNewTour:aP,LoginSecurityNewTour:rP,OnboardingModals:HP,OptionsGroupAdvancedFirewall:GD,OptionsGroupAlert:lw,OptionsGroupAuditLog:jP,OptionsGroupBasicFirewall:fD,OptionsGroupBruteForce:JM,OptionsGroupCountryAdvanced:kE,OptionsGroupDashboard:gg,OptionsGroupDiagnostics:xE,OptionsGroupEmailSummary:Cw,OptionsGroupGeneral:rg,OptionsGroupGeneralBlocking:SE,OptionsGroupImport:HE,OptionsGroupLicense:Rh,OptionsGroupLiveTraffic:cO,OptionsGroupRateLimiting:gT,OptionsGroupScanAdvanced:UE,OptionsGroupScanBasic:dR,OptionsGroupScanGeneral:fR,OptionsGroupScanPerformance:mR,OptionsGroupScanSchedule:aF,OptionsGroupViewCustomization:tm,OptionsGroupWhitelisted:oL,OptionsLinkBlock:nF,OptionsModals:gF,ScanProgressStages:MF,ScanProgressDetailed:IN,ScanResults:tK,ScanStarter:lK,ScannerHeader:IK,ScannerModals:qK,ScannerNewTour:XK,ScrollTop:tj,SettingsButtons:Ev,SettingsControlBlock:sO,StandaloneInstall:lj,TourContainer:oj,TwoFactorNotice:Ij,WhoisForm:Rj,WidgetIPs:rG,WidgetLogins:MG,WidgetNotifications:cQ,WFLSCommonModals:RQ,WFLSSettingsButtons:WQ,WFLSStandaloneHeader:GQ,WFLSOptions:rX},dX={all:ZQ=ZQ||/* @__PURE__ */new Map,on:function(e,t){var a=ZQ.get(e);a?a.push(t):ZQ.set(e,[t])},off:function(e,t){var a=ZQ.get(e);a&&(t?a.splice(a.indexOf(t)>>>0,1):ZQ.set(e,[]))},emit:function(e,t){var a=ZQ.get(e);a&&a.slice().map(function(e){e(t)}),(a=ZQ.get("*"))&&a.slice().map(function(a){a(e,t)})}};window.WFEventEmitter=dX,window.WFLSEventEmitter=dX;var pX=P({time:{serverMicrotime:Date.now()/1e3},mode:!1,isSmallScreen:window.matchMedia("only screen and (max-width: 500px)").matches});window.WFDataStore=pX,jQuery(document).on("heartbeat-tick",(e,t)=>{pX.time.serverMicrotime=t.server_time??e.timeStamp/1e3});var fX=[];jQuery(document).ready(function(){const e=jQuery(".wordfence-vue-wrapper"),t=(e,a)=>{const n=Array.isArray(e)?[...e]:{...e};if(!a||"object"!=typeof a)return n;for(const[l,s]of Object.entries(a))s&&"object"==typeof s&&!Array.isArray(s)&&n[l]&&"object"==typeof n[l]&&!Array.isArray(n[l])?n[l]=t(n[l],s):n[l]=s;return n};window.WordfenceMergedJSConstants=t(window.WordfenceLSJSConstants??{},window.WordfenceJSConstants??{});const a={$:window.jQuery,__:window.wfi18n.__,_n:window.wfi18n._n,sprintf:window.wfi18n.sprintf,wfconstants:window.WordfenceMergedJSConstants,$mitt:dX,$dataStore:pX};for(let n of e){if(window.WordfenceMergedJSConstants.hasGlobalError){const e=o(cX.GlobalError,{errorMessage:window.WordfenceMergedJSConstants.errorMessage??null,errorDetails:window.WordfenceMergedJSConstants.errorDetails??null});e.mount(n),fX.push(e);continue}let e={};const t=Object.keys(jQuery(n).data());for(let a of t)a.startsWith("prop")&&(e[a.charAt(4).toLowerCase()+a.slice(5)]=jQuery(n).data(a));const l=jQuery(n).data("baseComponent");if(!uX(cX,l))continue;const s=o(cX[l],e);for(const[n,o]of Object.entries(a))s.provide(n,o);s.use(wn,a),s.use(vn,a),s.use(yn,a),s.use(bn,a),s.use(An,a),s.use(kn,a),s.use(_n,a),s.use(xn,a),s.directive("visible",mn),s.directive("tooltip",hn),s.directive("scrollTo",fn);const i=e=>null==e,r=(e,t)=>{e.innerHTML=(i(t)?"":String(t)).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\r\n|\r|\n/g,"<br>")};s.directive("nl2br",{mounted(e,t){r(e,t.value)},updated(e,t){r(e,t.value)}});const u=(e,t)=>{if(t)for(const[a,n]of Object.entries(t)){const t="role"===a?"role":"tabindex"===a?"tabindex":`aria-${a.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}`;i(n)?e.removeAttribute(t):e.setAttribute(t,String(n))}};s.directive("aria",{mounted(e,t){u(e,t.value)},updated(e,t){u(e,t.value)}}),s.mount(n),fX.push(s)}});