�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135
0x0x
PHP 8.2.31
Preview: wordfence.1786376654.js Size: 1.10 MB
/home/mciraet/www/wp-content/plugins/wordfence/js/wordfence.1786376654.js
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+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IA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YwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/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/BjAAFleR4cIRzkIWls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ZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/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,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),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,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Vc=/* #__PURE__ */Kc(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))}),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('"',"&quot;")}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,"&lt;").replace(/>/g,"&gt;"):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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),a&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),a&&(e=e.replace(/"/g,"&quot;")),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:"midnig
Showing 512.00 KB of 1.10 MB. Use Edit/Download for full content.

Directory Contents

Dirs: 0 × Files: 12
Name Size Perms Modified Actions
19.46 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
15.20 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
198.43 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
13.67 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
161.77 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
365 B lrw-r--r-- 2026-08-11 10:23:26
Edit Download
4.58 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
31.93 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
6.48 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
637 B lrw-r--r-- 2026-08-11 10:23:26
Edit Download
22.45 KB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
1.10 MB lrw-r--r-- 2026-08-11 10:23:26
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 0xNothings — Secure File Manager. All rights reserved. Built with ❤️ & Tailwind x Dark UI