Viewing File: /usr/local/cpanel/3rdparty/wp-toolkit/frontend/app.bundle.js
/*! For license information please see app.bundle.js.LICENSE.txt */
var wptCpanelMain;(()=>{var e,t,n,s,a={27376(e,t,n){"use strict";n.r(t),n.d(t,{Composite:()=>Te,CompositeItem:()=>De,FloatingArrow:()=>Ee,FloatingDelayGroup:()=>Xe,FloatingFocusManager:()=>Pt,FloatingList:()=>xe,FloatingNode:()=>He,FloatingOverlay:()=>Mt,FloatingPortal:()=>At,FloatingTree:()=>Ve,arrow:()=>Z.UE,autoPlacement:()=>Z.RK,autoUpdate:()=>ee.ll,computePosition:()=>ee.rD,detectOverflow:()=>ee.__,flip:()=>Z.UU,getOverflowAncestors:()=>X.v9,hide:()=>Z.jD,inline:()=>Z.mG,inner:()=>dn,limitShift:()=>Z.ER,offset:()=>Z.cY,platform:()=>ee.iD,safePolygon:()=>mn,shift:()=>Z.BN,size:()=>Z.Ej,useClick:()=>Ut,useClientPoint:()=>Ft,useDelayGroup:()=>Ze,useDelayGroupContext:()=>Je,useDismiss:()=>Vt,useFloating:()=>$t,useFloatingNodeId:()=>Ye,useFloatingParentNodeId:()=>Fe,useFloatingPortalNode:()=>xt,useFloatingRootContext:()=>Wt,useFloatingTree:()=>Be,useFocus:()=>zt,useHover:()=>Ge,useId:()=>Me,useInnerOffset:()=>pn,useInteractions:()=>Qt,useListItem:()=>Ae,useListNavigation:()=>tn,useMergeRefs:()=>te,useRole:()=>sn,useTransitionStatus:()=>on,useTransitionStyles:()=>ln,useTypeahead:()=>cn});var s=n(96540),a=n.t(s,2);function i(){return"undefined"!=typeof window}function r(e){return l(e)?(e.nodeName||"").toLowerCase():"#document"}function o(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(e){return!!i()&&(e instanceof Node||e instanceof o(e).Node)}function c(e){return!!i()&&(e instanceof Element||e instanceof o(e).Element)}function u(e){return!!i()&&(e instanceof HTMLElement||e instanceof o(e).HTMLElement)}function d(e){return!(!i()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof o(e).ShadowRoot)}function p(e){return["html","body","#document"].includes(r(e))}function h(e){return o(e).getComputedStyle(e)}function m(e){if("html"===r(e))return e;const t=e.assignedSlot||e.parentNode||d(e)&&e.host||function(e){var t;return null==(t=(l(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}(e);return d(t)?t.host:t}function g(e){let t=e.activeElement;for(;null!=(null==(n=t)||null==(n=n.shadowRoot)?void 0:n.activeElement);){var n;t=t.shadowRoot.activeElement}return t}function f(e,t){if(!e||!t)return!1;const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&d(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function b(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function v(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}function y(e){return!(0!==e.mozInputSource||!e.isTrusted)||(x()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function S(e){return!v().includes("jsdom/")&&(!x()&&0===e.width&&0===e.height||x()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function w(){return/apple/i.test(navigator.vendor)}function x(){const e=/android/i;return e.test(b())||e.test(v())}function A(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}function _(e){return(null==e?void 0:e.ownerDocument)||document}function k(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return null!=n.target&&t.contains(n.target)}function j(e){return"composedPath"in e?e.composedPath()[0]:e.target}function C(e){return u(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function I(e){e.preventDefault(),e.stopPropagation()}function T(e){return!!e&&"combobox"===e.getAttribute("role")&&C(e)}const D=Math.min,P=Math.max,O=Math.round,L=Math.floor;var M=n(74848),E=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),R="undefined"==typeof Element,U=R?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,N=!R&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},F=function e(t,n){var s;void 0===n&&(n=!0);var a=null==t||null===(s=t.getAttribute)||void 0===s?void 0:s.call(t,"inert");return""===a||"true"===a||n&&t&&e(t.parentNode)},B=function e(t,n,s){for(var a=[],i=Array.from(t);i.length;){var r=i.shift();if(!F(r,!1))if("SLOT"===r.tagName){var o=r.assignedElements(),l=e(o.length?o:r.children,!0,s);s.flatten?a.push.apply(a,l):a.push({scopeParent:r,candidates:l})}else{U.call(r,E)&&s.filter(r)&&(n||!t.includes(r))&&a.push(r);var c=r.shadowRoot||"function"==typeof s.getShadowRoot&&s.getShadowRoot(r),u=!F(c,!1)&&(!s.shadowRootFilter||s.shadowRootFilter(r));if(c&&u){var d=e(!0===c?r.children:c.children,!0,s);s.flatten?a.push.apply(a,d):a.push({scopeParent:r,candidates:d})}else i.unshift.apply(i,r.children)}}return a},Y=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},H=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!Y(e)?0:e.tabIndex},V=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},W=function(e){return"INPUT"===e.tagName},$=function(e){var t=e.getBoundingClientRect(),n=t.width,s=t.height;return 0===n&&0===s},z=function(e,t){return!(t.disabled||F(t)||function(e){return W(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,s=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var a=U.call(e,"details>summary:first-of-type")?e.parentElement:e;if(U.call(a,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return $(e)}else{if("function"==typeof s){for(var i=e;e;){var r=e.parentElement,o=N(e);if(r&&!r.shadowRoot&&!0===s(r))return $(e);e=e.assignedSlot?e.assignedSlot:r||o===e.ownerDocument?r:o.host}e=i}if(function(e){var t,n,s,a,i=e&&N(e),r=null===(t=i)||void 0===t?void 0:t.host,o=!1;if(i&&i!==e)for(o=!!(null!==(n=r)&&void 0!==n&&null!==(s=n.ownerDocument)&&void 0!==s&&s.contains(r)||null!=e&&null!==(a=e.ownerDocument)&&void 0!==a&&a.contains(e));!o&&r;){var l,c,u;o=!(null===(c=r=null===(l=i=N(r))||void 0===l?void 0:l.host)||void 0===c||null===(u=c.ownerDocument)||void 0===u||!u.contains(r))}return o}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var s=t.children.item(n);if("LEGEND"===s.tagName)return!!U.call(t,"fieldset[disabled] *")||!s.contains(e)}return!0}t=t.parentElement}return!1}(t))},q=function(e,t){return!(function(e){return function(e){return W(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||N(e),s=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=s(window.CSS.escape(e.name));else try{t=s(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var a=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!a||a===e}(e)}(t)||H(t)<0||!z(e,t))},G=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},K=function e(t){var n=[],s=[];return t.forEach((function(t,a){var i=!!t.scopeParent,r=i?t.scopeParent:t,o=function(e,t){var n=H(e);return n<0&&t&&!Y(e)?0:n}(r,i),l=i?e(t.candidates):r;0===o?i?n.push.apply(n,l):n.push(r):s.push({documentOrder:a,tabIndex:o,item:t,isScope:i,content:l})})),s.sort(V).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},Q=function(e,t){var n;return n=(t=t||{}).getShadowRoot?B([e],t.includeContainer,{filter:q.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:G}):function(e,t,n){if(F(e))return[];var s=Array.prototype.slice.apply(e.querySelectorAll(E));return t&&U.call(e,E)&&s.unshift(e),s.filter(n)}(e,t.includeContainer,q.bind(null,t)),K(n)},J=n(40961),X=n(86635),Z=n(34743),ee=n(7315);function te(e){return s.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}),e)}const ne={...a},se=ne.useInsertionEffect||(e=>e());function ae(e){const t=s.useRef((()=>{}));return se((()=>{t.current=e})),s.useCallback((function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return null==t.current?void 0:t.current(...n)}),[])}const ie="ArrowUp",re="ArrowDown",oe="ArrowLeft",le="ArrowRight";function ce(e,t,n){return Math.floor(e/t)!==n}function ue(e,t){return t<0||t>=e.current.length}function de(e,t){return he(e,{disabledIndices:t})}function pe(e,t){return he(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function he(e,t){let{startingIndex:n=-1,decrement:s=!1,disabledIndices:a,amount:i=1}=void 0===t?{}:t;const r=e.current;let o=n;do{o+=s?-i:i}while(o>=0&&o<=r.length-1&&ve(r,o,a));return o}function me(e,t){let{event:n,orientation:s,loop:a,rtl:i,cols:r,disabledIndices:o,minIndex:l,maxIndex:c,prevIndex:u,stopEvent:d=!1}=t,p=u;if(n.key===ie){if(d&&I(n),-1===u)p=c;else if(p=he(e,{startingIndex:p,amount:r,decrement:!0,disabledIndices:o}),a&&(u-r<l||p<0)){const e=u%r,t=c%r,n=c-(t-e);p=t===e?c:t>e?n:n-r}ue(e,p)&&(p=u)}if(n.key===re&&(d&&I(n),-1===u?p=l:(p=he(e,{startingIndex:u,amount:r,disabledIndices:o}),a&&u+r>c&&(p=he(e,{startingIndex:u%r-r,amount:r,disabledIndices:o}))),ue(e,p)&&(p=u)),"both"===s){const t=L(u/r);n.key===(i?oe:le)&&(d&&I(n),u%r!=r-1?(p=he(e,{startingIndex:u,disabledIndices:o}),a&&ce(p,r,t)&&(p=he(e,{startingIndex:u-u%r-1,disabledIndices:o}))):a&&(p=he(e,{startingIndex:u-u%r-1,disabledIndices:o})),ce(p,r,t)&&(p=u)),n.key===(i?le:oe)&&(d&&I(n),u%r!=0?(p=he(e,{startingIndex:u,decrement:!0,disabledIndices:o}),a&&ce(p,r,t)&&(p=he(e,{startingIndex:u+(r-u%r),decrement:!0,disabledIndices:o}))):a&&(p=he(e,{startingIndex:u+(r-u%r),decrement:!0,disabledIndices:o})),ce(p,r,t)&&(p=u));const s=L(c/r)===t;ue(e,p)&&(p=a&&s?n.key===(i?le:oe)?c:he(e,{startingIndex:u-u%r-1,disabledIndices:o}):u)}return p}function ge(e,t,n){const s=[];let a=0;return e.forEach(((e,i)=>{let{width:r,height:o}=e,l=!1;for(n&&(a=0);!l;){const e=[];for(let n=0;n<r;n++)for(let s=0;s<o;s++)e.push(a+n+s*t);a%t+r<=t&&e.every((e=>null==s[e]))?(e.forEach((e=>{s[e]=i})),l=!0):a++}})),[...s]}function fe(e,t,n,s,a){if(-1===e)return-1;const i=n.indexOf(e),r=t[e];switch(a){case"tl":return i;case"tr":return r?i+r.width-1:i;case"bl":return r?i+(r.height-1)*s:i;case"br":return n.lastIndexOf(e)}}function be(e,t){return t.flatMap(((t,n)=>e.includes(t)?[n]:[]))}function ve(e,t,n){if(n)return n.includes(t);const s=e[t];return null==s||s.hasAttribute("disabled")||"true"===s.getAttribute("aria-disabled")}var ye="undefined"!=typeof document?s.useLayoutEffect:s.useEffect;function Se(e,t){const n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}const we=s.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function xe(e){const{children:t,elementsRef:n,labelsRef:a}=e,[i,r]=s.useState((()=>new Map)),o=s.useCallback((e=>{r((t=>new Map(t).set(e,null)))}),[]),l=s.useCallback((e=>{r((t=>{const n=new Map(t);return n.delete(e),n}))}),[]);return ye((()=>{const e=new Map(i);Array.from(e.keys()).sort(Se).forEach(((t,n)=>{e.set(t,n)})),function(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e.entries())if(s!==t.get(n))return!1;return!0}(i,e)||r(e)}),[i]),(0,M.jsx)(we.Provider,{value:s.useMemo((()=>({register:o,unregister:l,map:i,elementsRef:n,labelsRef:a})),[o,l,i,n,a]),children:t})}function Ae(e){void 0===e&&(e={});const{label:t}=e,{register:n,unregister:a,map:i,elementsRef:r,labelsRef:o}=s.useContext(we),[l,c]=s.useState(null),u=s.useRef(null),d=s.useCallback((e=>{if(u.current=e,null!==l&&(r.current[l]=e,o)){var n;const s=void 0!==t;o.current[l]=s?t:null!=(n=null==e?void 0:e.textContent)?n:null}}),[l,r,o,t]);return ye((()=>{const e=u.current;if(e)return n(e),()=>{a(e)}}),[n,a]),ye((()=>{const e=u.current?i.get(u.current):null;null!=e&&c(e)}),[i]),s.useMemo((()=>({ref:d,index:l??-1})),[l,d])}function _e(e,t){return"function"==typeof e?e(t):e?s.cloneElement(e,t):(0,M.jsx)("div",{...t})}const ke=s.createContext({activeIndex:0,onNavigate:()=>{}}),je=[oe,le],Ce=[ie,re],Ie=[...je,...Ce],Te=s.forwardRef((function(e,t){const{render:n,orientation:a="both",loop:i=!0,rtl:r=!1,cols:o=1,disabledIndices:l,activeIndex:c,onNavigate:u,itemSizes:d,dense:p=!1,...h}=e,[m,g]=s.useState(0),f=null!=c?c:m,b=ae(null!=u?u:g),v=s.useRef([]),y=n&&"function"!=typeof n?n.props:{},S=s.useMemo((()=>({activeIndex:f,onNavigate:b})),[f,b]),w=o>1,x={...h,...y,ref:t,"aria-orientation":"both"===a?void 0:a,onKeyDown(e){null==h.onKeyDown||h.onKeyDown(e),null==y.onKeyDown||y.onKeyDown(e),function(e){if(!Ie.includes(e.key))return;let t=f;const n=de(v,l),s=pe(v,l),c=r?oe:le,u=r?le:oe;if(w){const u=d||Array.from({length:v.current.length},(()=>({width:1,height:1}))),h=ge(u,o,p),m=h.findIndex((e=>null!=e&&!ve(v.current,e,l))),g=h.reduce(((e,t,n)=>null==t||ve(v.current,t,l)?e:n),-1),b=h[me({current:h.map((e=>e?v.current[e]:null))},{event:e,orientation:a,loop:i,rtl:r,cols:o,disabledIndices:be([...l||v.current.map(((e,t)=>ve(v.current,t)?t:void 0)),void 0],h),minIndex:m,maxIndex:g,prevIndex:fe(f>s?n:f,u,h,o,e.key===re?"bl":e.key===c?"tr":"tl")})];null!=b&&(t=b)}const h={horizontal:[c],vertical:[re],both:[c,re]}[a],m={horizontal:[u],vertical:[ie],both:[u,ie]}[a],g=w?Ie:{horizontal:je,vertical:Ce,both:Ie}[a];var y;t===f&&[...h,...m].includes(e.key)&&(t=i&&t===s&&h.includes(e.key)?n:i&&t===n&&m.includes(e.key)?s:he(v,{startingIndex:t,decrement:m.includes(e.key),disabledIndices:l})),t===f||ue(v,t)||(e.stopPropagation(),g.includes(e.key)&&e.preventDefault(),b(t),null==(y=v.current[t])||y.focus())}(e)}};return(0,M.jsx)(ke.Provider,{value:S,children:(0,M.jsx)(xe,{elementsRef:v,children:_e(n,x)})})})),De=s.forwardRef((function(e,t){const{render:n,...a}=e,i=n&&"function"!=typeof n?n.props:{},{activeIndex:r,onNavigate:o}=s.useContext(ke),{ref:l,index:c}=Ae(),u=te([l,t,i.ref]),d=r===c;return _e(n,{...a,...i,ref:u,tabIndex:d?0:-1,"data-active":d?"":void 0,onFocus(e){null==a.onFocus||a.onFocus(e),null==i.onFocus||i.onFocus(e),o(c)}})}));let Pe=!1,Oe=0;const Le=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Oe++,Me=ne.useId||function(){const[e,t]=s.useState((()=>Pe?Le():void 0));return ye((()=>{null==e&&t(Le())}),[]),s.useEffect((()=>{Pe=!0}),[]),e},Ee=s.forwardRef((function(e,t){const{context:{placement:n,elements:{floating:a},middlewareData:{arrow:i,shift:r}},width:o=14,height:l=7,tipRadius:c=0,strokeWidth:u=0,staticOffset:d,stroke:p,d:m,style:{transform:g,...f}={},...b}=e,v=Me(),[y,S]=s.useState(!1);if(ye((()=>{a&&"rtl"===h(a).direction&&S(!0)}),[a]),!a)return null;const[w,x]=n.split("-"),A="top"===w||"bottom"===w;let _=d;(A&&null!=r&&r.x||!A&&null!=r&&r.y)&&(_=null);const k=2*u,j=k/2,C=o/2*(c/-8+1),I=l/2*c/4,T=!!m,D=_&&"end"===x?"bottom":"top";let P=_&&"end"===x?"right":"left";_&&y&&(P="end"===x?"left":"right");const O=null!=(null==i?void 0:i.x)?_||i.x:"",L=null!=(null==i?void 0:i.y)?_||i.y:"",E=m||"M0,0 H"+o+" L"+(o-C)+","+(l-I)+" Q"+o/2+","+l+" "+C+","+(l-I)+" Z",R={top:T?"rotate(180deg)":"",left:T?"rotate(90deg)":"rotate(-90deg)",bottom:T?"":"rotate(180deg)",right:T?"rotate(-90deg)":"rotate(90deg)"}[w];return(0,M.jsxs)("svg",{...b,"aria-hidden":!0,ref:t,width:T?o:o+k,height:o,viewBox:"0 0 "+o+" "+(l>o?l:o),style:{position:"absolute",pointerEvents:"none",[P]:O,[D]:L,[w]:A||T?"100%":"calc(100% - "+k/2+"px)",transform:[R,g].filter((e=>!!e)).join(" "),...f},children:[k>0&&(0,M.jsx)("path",{clipPath:"url(#"+v+")",fill:"none",stroke:p,strokeWidth:k+(m?0:1),d:E}),(0,M.jsx)("path",{stroke:k&&!m?b.fill:"none",d:E}),(0,M.jsx)("clipPath",{id:v,children:(0,M.jsx)("rect",{x:-j,y:j*(T?-1:1),width:o+k,height:o})})]})}));function Re(){const e=new Map;return{emit(t,n){var s;null==(s=e.get(t))||s.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var s;e.set(t,(null==(s=e.get(t))?void 0:s.filter((e=>e!==n)))||[])}}}const Ue=s.createContext(null),Ne=s.createContext(null),Fe=()=>{var e;return(null==(e=s.useContext(Ue))?void 0:e.id)||null},Be=()=>s.useContext(Ne);function Ye(e){const t=Me(),n=Be(),s=Fe(),a=e||s;return ye((()=>{if(!t)return;const e={id:t,parentId:a};return null==n||n.addNode(e),()=>{null==n||n.removeNode(e)}}),[n,t,a]),t}function He(e){const{children:t,id:n}=e,a=Fe();return(0,M.jsx)(Ue.Provider,{value:s.useMemo((()=>({id:n,parentId:a})),[n,a]),children:t})}function Ve(e){const{children:t}=e,n=s.useRef([]),a=s.useCallback((e=>{n.current=[...n.current,e]}),[]),i=s.useCallback((e=>{n.current=n.current.filter((t=>t!==e))}),[]),r=s.useState((()=>Re()))[0];return(0,M.jsx)(Ne.Provider,{value:s.useMemo((()=>({nodesRef:n,addNode:a,removeNode:i,events:r})),[a,i,r]),children:t})}function We(e){return"data-floating-ui-"+e}function $e(e){const t=(0,s.useRef)(e);return ye((()=>{t.current=e})),t}const ze=We("safe-polygon");function qe(e,t,n){return n&&!A(n)?0:"number"==typeof e?e:null==e?void 0:e[t]}function Ge(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:i,events:r,elements:o}=e,{enabled:l=!0,delay:u=0,handleClose:d=null,mouseOnly:p=!1,restMs:h=0,move:m=!0}=t,g=Be(),b=Fe(),v=$e(d),y=$e(u),S=$e(n),w=s.useRef(),x=s.useRef(-1),k=s.useRef(),j=s.useRef(-1),C=s.useRef(!0),I=s.useRef(!1),T=s.useRef((()=>{})),D=s.useRef(!1),P=s.useCallback((()=>{var e;const t=null==(e=i.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[i]);s.useEffect((()=>{if(l)return r.on("openchange",e),()=>{r.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(x.current),clearTimeout(j.current),C.current=!0,D.current=!1)}}),[l,r]),s.useEffect((()=>{if(!l)return;if(!v.current)return;if(!n)return;function e(e){P()&&a(!1,e,"hover")}const t=_(o.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[o.floating,n,a,l,v,P]);const O=s.useCallback((function(e,t,n){void 0===t&&(t=!0),void 0===n&&(n="hover");const s=qe(y.current,"close",w.current);s&&!k.current?(clearTimeout(x.current),x.current=window.setTimeout((()=>a(!1,e,n)),s)):t&&(clearTimeout(x.current),a(!1,e,n))}),[y,a]),L=ae((()=>{T.current(),k.current=void 0})),M=ae((()=>{if(I.current){const e=_(o.floating).body;e.style.pointerEvents="",e.removeAttribute(ze),I.current=!1}})),E=ae((()=>!!i.current.openEvent&&["click","mousedown"].includes(i.current.openEvent.type)));s.useEffect((()=>{if(l&&c(o.domReference)){var e;const a=o.domReference;return n&&a.addEventListener("mouseleave",r),null==(e=o.floating)||e.addEventListener("mouseleave",r),m&&a.addEventListener("mousemove",t,{once:!0}),a.addEventListener("mouseenter",t),a.addEventListener("mouseleave",s),()=>{var e;n&&a.removeEventListener("mouseleave",r),null==(e=o.floating)||e.removeEventListener("mouseleave",r),m&&a.removeEventListener("mousemove",t),a.removeEventListener("mouseenter",t),a.removeEventListener("mouseleave",s)}}function t(e){if(clearTimeout(x.current),C.current=!1,p&&!A(w.current)||h>0&&!qe(y.current,"open"))return;const t=qe(y.current,"open",w.current);t?x.current=window.setTimeout((()=>{S.current||a(!0,e,"hover")}),t):n||a(!0,e,"hover")}function s(e){if(E())return;T.current();const t=_(o.floating);if(clearTimeout(j.current),D.current=!1,v.current&&i.current.floatingContext){n||clearTimeout(x.current),k.current=v.current({...i.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){M(),L(),E()||O(e,!0,"safe-polygon")}});const s=k.current;return t.addEventListener("mousemove",s),void(T.current=()=>{t.removeEventListener("mousemove",s)})}("touch"!==w.current||!f(o.floating,e.relatedTarget))&&O(e)}function r(e){E()||i.current.floatingContext&&(null==v.current||v.current({...i.current.floatingContext,tree:g,x:e.clientX,y:e.clientY,onClose(){M(),L(),E()||O(e)}})(e))}}),[o,l,e,p,h,m,O,L,M,a,n,S,g,y,v,i,E]),ye((()=>{var e;if(l&&n&&null!=(e=v.current)&&e.__options.blockPointerEvents&&P()){I.current=!0;const e=o.floating;if(c(o.domReference)&&e){var t;const n=_(o.floating).body;n.setAttribute(ze,"");const s=o.domReference,a=null==g||null==(t=g.nodesRef.current.find((e=>e.id===b)))||null==(t=t.context)?void 0:t.elements.floating;return a&&(a.style.pointerEvents=""),n.style.pointerEvents="none",s.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{n.style.pointerEvents="",s.style.pointerEvents="",e.style.pointerEvents=""}}}}),[l,n,b,o,g,v,P]),ye((()=>{n||(w.current=void 0,D.current=!1,L(),M())}),[n,L,M]),s.useEffect((()=>()=>{L(),clearTimeout(x.current),clearTimeout(j.current),M()}),[l,o.domReference,L,M]);const R=s.useMemo((()=>{function e(e){w.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function s(){C.current||S.current||a(!0,t,"hover")}p&&!A(w.current)||n||0===h||D.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(j.current),"touch"===w.current?s():(D.current=!0,j.current=window.setTimeout(s,h)))}}}),[p,a,n,S,h]),U=s.useMemo((()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(e){E()||O(e.nativeEvent,!1)}})),[O,E]);return s.useMemo((()=>l?{reference:R,floating:U}:{}),[l,R,U])}const Ke=()=>{},Qe=s.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Ke,setState:Ke,isInstantPhase:!1}),Je=()=>s.useContext(Qe);function Xe(e){const{children:t,delay:n,timeoutMs:a=0}=e,[i,r]=s.useReducer(((e,t)=>({...e,...t})),{delay:n,timeoutMs:a,initialDelay:n,currentId:null,isInstantPhase:!1}),o=s.useRef(null),l=s.useCallback((e=>{r({currentId:e})}),[]);return ye((()=>{i.currentId?null===o.current?o.current=i.currentId:i.isInstantPhase||r({isInstantPhase:!0}):(i.isInstantPhase&&r({isInstantPhase:!1}),o.current=null)}),[i.currentId,i.isInstantPhase]),(0,M.jsx)(Qe.Provider,{value:s.useMemo((()=>({...i,setState:r,setCurrentId:l})),[i,l]),children:t})}function Ze(e,t){void 0===t&&(t={});const{open:n,onOpenChange:s,floatingId:a}=e,{id:i,enabled:r=!0}=t,o=null!=i?i:a,l=Je(),{currentId:c,setCurrentId:u,initialDelay:d,setState:p,timeoutMs:h}=l;return ye((()=>{r&&c&&(p({delay:{open:1,close:qe(d,"close")}}),c!==o&&s(!1))}),[r,o,s,p,c,d]),ye((()=>{function e(){s(!1),p({delay:d,currentId:null})}if(r&&c&&!n&&c===o){if(h){const t=window.setTimeout(e,h);return()=>{clearTimeout(t)}}e()}}),[r,n,p,c,o,s,d,h]),ye((()=>{r&&u!==Ke&&n&&u(o)}),[r,n,u,o]),l}let et=0;function tt(e,t){void 0===t&&(t={});const{preventScroll:n=!1,cancelPrevious:s=!0,sync:a=!1}=t;s&&cancelAnimationFrame(et);const i=()=>null==e?void 0:e.focus({preventScroll:n});a?i():et=requestAnimationFrame(i)}function nt(e,t){var n;let s=[],a=null==(n=e.find((e=>e.id===t)))?void 0:n.parentId;for(;a;){const t=e.find((e=>e.id===a));a=null==t?void 0:t.parentId,t&&(s=s.concat(t))}return s}function st(e,t){let n=e.filter((e=>{var n;return e.parentId===t&&(null==(n=e.context)?void 0:n.open)})),s=n;for(;s.length;)s=e.filter((e=>{var t;return null==(t=s)?void 0:t.some((t=>{var n;return e.parentId===t.id&&(null==(n=e.context)?void 0:n.open)}))})),n=n.concat(s);return n}let at=new WeakMap,it=new WeakSet,rt={},ot=0;const lt=e=>e&&(e.host||lt(e.parentNode));function ct(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);const s=_(e[0]).body;return function(e,t,n,s){const a="data-floating-ui-inert",i=s?"inert":n?"aria-hidden":null,o=(l=t,e.map((e=>{if(l.contains(e))return e;const t=lt(e);return l.contains(t)?t:null})).filter((e=>null!=e)));var l;const c=new Set,u=new Set(o),d=[];rt[a]||(rt[a]=new WeakMap);const p=rt[a];return o.forEach((function e(t){t&&!c.has(t)&&(c.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==r(t))if(c.has(t))e(t);else{const e=i?t.getAttribute(i):null,n=null!==e&&"false"!==e,s=at.get(t)||0,r=i?s+1:s,o=(p.get(t)||0)+1;at.set(t,r),p.set(t,o),d.push(t),1===r&&n&&it.add(t),1===o&&t.setAttribute(a,""),!n&&i&&t.setAttribute(i,"true")}}))}(t),c.clear(),ot++,()=>{d.forEach((e=>{const t=at.get(e)||0,n=i?t-1:t,s=(p.get(e)||0)-1;at.set(e,n),p.set(e,s),n||(!it.has(e)&&i&&e.removeAttribute(i),it.delete(e)),s||e.removeAttribute(a)})),ot--,ot||(at=new WeakMap,at=new WeakMap,it=new WeakSet,rt={})}}(e.concat(Array.from(s.querySelectorAll("[aria-live]"))),s,t,n)}const ut=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function dt(e,t){const n=Q(e,ut());"prev"===t&&n.reverse();const s=n.indexOf(g(_(e)));return n.slice(s+1)[0]}function pt(){return dt(document.body,"next")}function ht(){return dt(document.body,"prev")}function mt(e,t){const n=t||e.currentTarget,s=e.relatedTarget;return!s||!f(n,s)}function gt(e){Q(e,ut()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function ft(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const bt={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function vt(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const yt=s.forwardRef((function(e,t){const[n,a]=s.useState();ye((()=>(w()&&a("button"),document.addEventListener("keydown",vt),()=>{document.removeEventListener("keydown",vt)})),[]);const i={ref:t,tabIndex:0,role:n,"aria-hidden":!n||void 0,[We("focus-guard")]:"",style:bt};return(0,M.jsx)("span",{...e,...i})})),St=s.createContext(null),wt=We("portal");function xt(e){void 0===e&&(e={});const{id:t,root:n}=e,a=Me(),i=_t(),[r,o]=s.useState(null),l=s.useRef(null);return ye((()=>()=>{null==r||r.remove(),queueMicrotask((()=>{l.current=null}))}),[r]),ye((()=>{if(!a)return;if(l.current)return;const e=t?document.getElementById(t):null;if(!e)return;const n=document.createElement("div");n.id=a,n.setAttribute(wt,""),e.appendChild(n),l.current=n,o(n)}),[t,a]),ye((()=>{if(null===n)return;if(!a)return;if(l.current)return;let e=n||(null==i?void 0:i.portalNode);e&&!c(e)&&(e=e.current),e=e||document.body;let s=null;t&&(s=document.createElement("div"),s.id=t,e.appendChild(s));const r=document.createElement("div");r.id=a,r.setAttribute(wt,""),e=s||e,e.appendChild(r),l.current=r,o(r)}),[t,n,a,i]),r}function At(e){const{children:t,id:n,root:a,preserveTabOrder:i=!0}=e,r=xt({id:n,root:a}),[o,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),h=null==o?void 0:o.modal,m=null==o?void 0:o.open,g=!!o&&!o.modal&&o.open&&i&&!(!a&&!r);return s.useEffect((()=>{if(r&&i&&!h)return r.addEventListener("focusin",e,!0),r.addEventListener("focusout",e,!0),()=>{r.removeEventListener("focusin",e,!0),r.removeEventListener("focusout",e,!0)};function e(e){r&&mt(e)&&("focusin"===e.type?ft:gt)(r)}}),[r,i,h]),s.useEffect((()=>{r&&(m||ft(r))}),[m,r]),(0,M.jsxs)(St.Provider,{value:s.useMemo((()=>({preserveTabOrder:i,beforeOutsideRef:c,afterOutsideRef:u,beforeInsideRef:d,afterInsideRef:p,portalNode:r,setFocusManagerState:l})),[i,r]),children:[g&&r&&(0,M.jsx)(yt,{"data-type":"outside",ref:c,onFocus:e=>{if(mt(e,r)){var t;null==(t=d.current)||t.focus()}else{const e=ht()||(null==o?void 0:o.domReference);null==e||e.focus()}}}),g&&r&&(0,M.jsx)("span",{"aria-owns":r.id,style:bt}),r&&J.createPortal(t,r),g&&r&&(0,M.jsx)(yt,{"data-type":"outside",ref:u,onFocus:e=>{if(mt(e,r)){var t;null==(t=p.current)||t.focus()}else{const t=pt()||(null==o?void 0:o.domReference);null==t||t.focus(),(null==o?void 0:o.closeOnFocusOut)&&(null==o||o.onOpenChange(!1,e.nativeEvent,"focus-out"))}}})]})}const _t=()=>s.useContext(St),kt="data-floating-ui-focusable";function jt(e){return e?e.hasAttribute(kt)?e:e.querySelector("["+kt+"]")||e:null}let Ct=[];function It(e){Ct=Ct.filter((e=>e.isConnected)),e&&"body"!==r(e)&&(Ct.push(e),Ct.length>20&&(Ct=Ct.slice(-20)))}function Tt(){return Ct.slice().reverse().find((e=>e.isConnected))}const Dt=s.forwardRef((function(e,t){return(0,M.jsx)("button",{...e,type:"button",ref:t,tabIndex:-1,style:bt})}));function Pt(e){const{context:t,children:n,disabled:a=!1,order:i=["content"],guards:r=!0,initialFocus:o=0,returnFocus:l=!0,restoreFocus:c=!1,modal:d=!0,visuallyHiddenDismiss:p=!1,closeOnFocusOut:h=!0,outsideElementsInert:m=!1}=e,{open:b,onOpenChange:v,events:w,dataRef:x,elements:{domReference:A,floating:k}}=t,C=ae((()=>{var e;return null==(e=x.current.floatingContext)?void 0:e.nodeId})),D="number"==typeof o&&o<0,P=T(A)&&D,O="undefined"!=typeof HTMLElement&&"inert"in HTMLElement.prototype,L=!O||r,R=!L||O&&m,N=$e(i),F=$e(o),B=$e(l),Y=Be(),H=_t(),V=s.useRef(null),W=s.useRef(null),$=s.useRef(!1),z=s.useRef(!1),G=s.useRef(-1),K=null!=H,J=jt(k),X=ae((function(e){return void 0===e&&(e=J),e?Q(e,ut()):[]})),Z=ae((e=>{const t=X(e);return N.current.map((e=>A&&"reference"===e?A:J&&"floating"===e?J:t)).filter(Boolean).flat()}));s.useEffect((()=>{if(a)return;if(!d)return;function e(e){if("Tab"===e.key){f(J,g(_(J)))&&0===X().length&&!P&&I(e);const t=Z(),n=j(e);"reference"===N.current[0]&&n===A&&(I(e),e.shiftKey?tt(t[t.length-1]):tt(t[1])),"floating"===N.current[1]&&n===J&&e.shiftKey&&(I(e),tt(t[0]))}}const t=_(J);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[a,A,J,d,N,P,X,Z]),s.useEffect((()=>{if(!a&&k)return k.addEventListener("focusin",e),()=>{k.removeEventListener("focusin",e)};function e(e){const t=j(e),n=X().indexOf(t);-1!==n&&(G.current=n)}}),[a,k,X]),s.useEffect((()=>{if(!a&&h)return k&&u(A)?(A.addEventListener("focusout",t),A.addEventListener("pointerdown",e),k.addEventListener("focusout",t),()=>{A.removeEventListener("focusout",t),A.removeEventListener("pointerdown",e),k.removeEventListener("focusout",t)}):void 0;function e(){z.current=!0,setTimeout((()=>{z.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const n=C(),s=!(f(A,t)||f(k,t)||f(t,k)||f(null==H?void 0:H.portalNode,t)||null!=t&&t.hasAttribute(We("focus-guard"))||Y&&(st(Y.nodesRef.current,n).find((e=>{var n,s;return f(null==(n=e.context)?void 0:n.elements.floating,t)||f(null==(s=e.context)?void 0:s.elements.domReference,t)}))||nt(Y.nodesRef.current,n).find((e=>{var n,s,a;return[null==(n=e.context)?void 0:n.elements.floating,jt(null==(s=e.context)?void 0:s.elements.floating)].includes(t)||(null==(a=e.context)?void 0:a.elements.domReference)===t}))));if(c&&s&&g(_(J))===_(J).body){u(J)&&J.focus();const e=G.current,t=X(),n=t[e]||t[t.length-1]||J;u(n)&&n.focus()}!P&&d||!t||!s||z.current||t===Tt()||($.current=!0,v(!1,e,"focus-out"))}))}}),[a,A,k,J,d,Y,H,v,h,c,X,P,C]);const ee=s.useRef(null),ne=s.useRef(null),se=te([ee,null==H?void 0:H.beforeInsideRef]),ie=te([ne,null==H?void 0:H.afterInsideRef]);function re(e){return!a&&p&&d?(0,M.jsx)(Dt,{ref:"start"===e?V:W,onClick:e=>v(!1,e.nativeEvent),children:"string"==typeof p?p:"Dismiss"}):null}s.useEffect((()=>{var e;if(a)return;if(!k)return;const t=Array.from((null==H||null==(e=H.portalNode)?void 0:e.querySelectorAll("["+We("portal")+"]"))||[]),n=Y&&!d?nt(null==Y?void 0:Y.nodesRef.current,C()).map((e=>{var t;return null==(t=e.context)?void 0:t.elements.floating})):[],s=[k,...t,...n,V.current,W.current,ee.current,ne.current,null==H?void 0:H.beforeOutsideRef.current,null==H?void 0:H.afterOutsideRef.current,N.current.includes("reference")||P?A:null].filter((e=>null!=e)),i=d||P?ct(s,!R,R):ct(s);return()=>{i()}}),[a,A,k,d,N,H,P,L,R,Y,C]),ye((()=>{if(a||!u(J))return;const e=g(_(J));queueMicrotask((()=>{const t=Z(J),n=F.current,s=("number"==typeof n?t[n]:n.current)||J,a=f(J,e);D||a||!b||tt(s,{preventScroll:s===J})}))}),[a,b,J,D,Z,F]),ye((()=>{if(a||!J)return;let e=!1;const t=_(J),n=g(t);let s=x.current.openEvent;function i(t){let{open:n,reason:a,event:i,nested:r}=t;n&&(s=i),"escape-key"===a&&A&&It(A),["hover","safe-polygon"].includes(a)&&"mouseleave"===i.type&&($.current=!0),"outside-press"===a&&(r?($.current=!1,e=!0):$.current=!(y(i)||S(i)))}It(n),w.on("openchange",i);const r=t.createElement("span");return r.setAttribute("tabindex","-1"),r.setAttribute("aria-hidden","true"),Object.assign(r.style,bt),K&&A&&A.insertAdjacentElement("afterend",r),()=>{w.off("openchange",i);const n=g(t),a=f(k,n)||Y&&st(Y.nodesRef.current,C()).some((e=>{var t;return f(null==(t=e.context)?void 0:t.elements.floating,n)}));(a||s&&["click","mousedown"].includes(s.type))&&A&&It(A);const o="boolean"==typeof B.current?Tt()||r:B.current.current||r;queueMicrotask((()=>{const s=function(e){const t=ut();return function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==U.call(e,E)&&q(t,e)}(e,t)?e:Q(e,t)[0]||e}(o);B.current&&!$.current&&u(s)&&(s===n||n===t.body||a)&&s.focus({preventScroll:e}),r.remove()}))}}),[a,k,J,B,x,w,Y,K,A,C]),s.useEffect((()=>{queueMicrotask((()=>{$.current=!1}))}),[a]),ye((()=>{if(!a&&H)return H.setFocusManagerState({modal:d,closeOnFocusOut:h,open:b,onOpenChange:v,domReference:A}),()=>{H.setFocusManagerState(null)}}),[a,H,d,b,v,h,A]),ye((()=>{if(a)return;if(!J)return;if("function"!=typeof MutationObserver)return;if(D)return;const e=()=>{const e=J.getAttribute("tabindex"),t=X(),n=g(_(k)),s=t.indexOf(n);-1!==s&&(G.current=s),N.current.includes("floating")||n!==A&&0===t.length?"0"!==e&&J.setAttribute("tabindex","0"):"-1"!==e&&J.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(J,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[a,k,J,A,N,X,D]);const oe=!a&&L&&(!d||!P)&&(K||d);return(0,M.jsxs)(M.Fragment,{children:[oe&&(0,M.jsx)(yt,{"data-type":"inside",ref:se,onFocus:e=>{if(d){const e=Z();tt("reference"===i[0]?e[0]:e[e.length-1])}else if(null!=H&&H.preserveTabOrder&&H.portalNode)if($.current=!1,mt(e,H.portalNode)){const e=pt()||A;null==e||e.focus()}else{var t;null==(t=H.beforeOutsideRef.current)||t.focus()}}}),!P&&re("start"),n,re("end"),oe&&(0,M.jsx)(yt,{"data-type":"inside",ref:ie,onFocus:e=>{if(d)tt(Z()[0]);else if(null!=H&&H.preserveTabOrder&&H.portalNode)if(h&&($.current=!0),mt(e,H.portalNode)){const e=ht()||A;null==e||e.focus()}else{var t;null==(t=H.afterOutsideRef.current)||t.focus()}}})]})}let Ot=0,Lt=()=>{};const Mt=s.forwardRef((function(e,t){const{lockScroll:n=!1,...s}=e;return ye((()=>{if(n)return Ot++,1===Ot&&(Lt=function(){const e=/iP(hone|ad|od)|iOS/.test(b()),t=document.body.style,n=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",s=window.innerWidth-document.documentElement.clientWidth,a=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",s&&(t[n]=s+"px"),e){var r,o;const e=(null==(r=window.visualViewport)?void 0:r.offsetLeft)||0,n=(null==(o=window.visualViewport)?void 0:o.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(i-Math.floor(n))+"px",left:-(a-Math.floor(e))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[n]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(a,i))}}()),()=>{Ot--,0===Ot&&Lt()}}),[n]),(0,M.jsx)("div",{ref:t,...s,style:{position:"fixed",overflow:"auto",top:0,right:0,bottom:0,left:0,...s.style}})}));function Et(e){return u(e.target)&&"BUTTON"===e.target.tagName}function Rt(e){return C(e)}function Ut(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,dataRef:i,elements:{domReference:r}}=e,{enabled:o=!0,event:l="click",toggle:c=!0,ignoreMouse:u=!1,keyboardHandlers:d=!0,stickIfOpen:p=!0}=t,h=s.useRef(),m=s.useRef(!1),g=s.useMemo((()=>({onPointerDown(e){h.current=e.pointerType},onMouseDown(e){const t=h.current;0===e.button&&"click"!==l&&(A(t,!0)&&u||(!n||!c||i.current.openEvent&&p&&"mousedown"!==i.current.openEvent.type?(e.preventDefault(),a(!0,e.nativeEvent,"click")):a(!1,e.nativeEvent,"click")))},onClick(e){const t=h.current;"mousedown"===l&&h.current?h.current=void 0:A(t,!0)&&u||(!n||!c||i.current.openEvent&&p&&"click"!==i.current.openEvent.type?a(!0,e.nativeEvent,"click"):a(!1,e.nativeEvent,"click"))},onKeyDown(e){h.current=void 0,e.defaultPrevented||!d||Et(e)||(" "!==e.key||Rt(r)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&a(!n||!c,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!d||Et(e)||Rt(r)||" "===e.key&&m.current&&(m.current=!1,a(!n||!c,e.nativeEvent,"click"))}})),[i,r,l,u,d,a,n,p,c]);return s.useMemo((()=>o?{reference:g}:{}),[o,g])}function Nt(e){return null!=e&&null!=e.clientX}function Ft(e,t){void 0===t&&(t={});const{open:n,dataRef:a,elements:{floating:i,domReference:r},refs:l}=e,{enabled:c=!0,axis:u="both",x:d=null,y:p=null}=t,h=s.useRef(!1),m=s.useRef(null),[g,b]=s.useState(),[v,y]=s.useState([]),S=ae(((e,t)=>{h.current||a.current.openEvent&&!Nt(a.current.openEvent)||l.setPositionReference(function(e,t){let n=null,s=null,a=!1;return{contextElement:e||void 0,getBoundingClientRect(){var i;const r=(null==e?void 0:e.getBoundingClientRect())||{width:0,height:0,x:0,y:0},o="x"===t.axis||"both"===t.axis,l="y"===t.axis||"both"===t.axis,c=["mouseenter","mousemove"].includes((null==(i=t.dataRef.current.openEvent)?void 0:i.type)||"")&&"touch"!==t.pointerType;let u=r.width,d=r.height,p=r.x,h=r.y;return null==n&&t.x&&o&&(n=r.x-t.x),null==s&&t.y&&l&&(s=r.y-t.y),p-=n||0,h-=s||0,u=0,d=0,!a||c?(u="y"===t.axis?r.width:0,d="x"===t.axis?r.height:0,p=o&&null!=t.x?t.x:p,h=l&&null!=t.y?t.y:h):a&&!c&&(d="x"===t.axis?r.height:d,u="y"===t.axis?r.width:u),a=!0,{width:u,height:d,x:p,y:h,top:h,right:p+u,bottom:h+d,left:p}}}}(r,{x:e,y:t,axis:u,dataRef:a,pointerType:g}))})),w=ae((e=>{null==d&&null==p&&(n?m.current||y([]):S(e.clientX,e.clientY))})),x=A(g)?i:n,_=s.useCallback((()=>{if(!x||!c||null!=d||null!=p)return;const e=o(i);function t(n){const s=j(n);f(i,s)?(e.removeEventListener("mousemove",t),m.current=null):S(n.clientX,n.clientY)}if(!a.current.openEvent||Nt(a.current.openEvent)){e.addEventListener("mousemove",t);const n=()=>{e.removeEventListener("mousemove",t),m.current=null};return m.current=n,n}l.setPositionReference(r)}),[x,c,d,p,i,a,l,r,S]);s.useEffect((()=>_()),[_,v]),s.useEffect((()=>{c&&!i&&(h.current=!1)}),[c,i]),s.useEffect((()=>{!c&&n&&(h.current=!0)}),[c,n]),ye((()=>{!c||null==d&&null==p||(h.current=!1,S(d,p))}),[c,d,p,S]);const k=s.useMemo((()=>{function e(e){let{pointerType:t}=e;b(t)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:w,onMouseEnter:w}}),[w]);return s.useMemo((()=>c?{reference:k}:{}),[c,k])}const Bt={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Yt={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ht=e=>{var t,n;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(n=null==e?void 0:e.outsidePress)||n}};function Vt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,elements:i,dataRef:r}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:d=!0,outsidePressEvent:g="pointerdown",referencePress:b=!1,referencePressEvent:v="pointerdown",ancestorScroll:y=!1,bubbles:S,capture:w}=t,x=Be(),A=ae("function"==typeof d?d:()=>!1),C="function"==typeof d?A:d,I=s.useRef(!1),T=s.useRef(!1),{escapeKey:D,outsidePress:P}=Ht(S),{escapeKey:O,outsidePress:L}=Ht(w),M=s.useRef(!1),E=ae((e=>{var t;if(!n||!o||!l||"Escape"!==e.key)return;if(M.current)return;const s=null==(t=r.current.floatingContext)?void 0:t.nodeId,i=x?st(x.nodesRef.current,s):[];if(!D&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}a(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),R=ae((e=>{var t;const n=()=>{var t;E(e),null==(t=j(e))||t.removeEventListener("keydown",n)};null==(t=j(e))||t.addEventListener("keydown",n)})),U=ae((e=>{var t;const n=I.current;I.current=!1;const s=T.current;if(T.current=!1,"click"===g&&s)return;if(n)return;if("function"==typeof C&&!C(e))return;const o=j(e),l="["+We("inert")+"]",d=_(i.floating).querySelectorAll(l);let b=c(o)?o:null;for(;b&&!p(b);){const e=m(b);if(p(e)||!c(e))break;b=e}if(d.length&&c(o)&&!o.matches("html,body")&&!f(o,i.floating)&&Array.from(d).every((e=>!f(b,e))))return;if(u(o)&&B){const t=p(o),n=h(o),s=/auto|scroll/,a=t||s.test(n.overflowX),i=t||s.test(n.overflowY),r=a&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,l=i&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,c="rtl"===n.direction,u=l&&(c?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=r&&e.offsetY>o.clientHeight;if(u||d)return}const v=null==(t=r.current.floatingContext)?void 0:t.nodeId,y=x&&st(x.nodesRef.current,v).some((t=>{var n;return k(e,null==(n=t.context)?void 0:n.elements.floating)}));if(k(e,i.floating)||k(e,i.domReference)||y)return;const S=x?st(x.nodesRef.current,v):[];if(S.length>0){let e=!0;if(S.forEach((t=>{var n;null==(n=t.context)||!n.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}a(!1,e,"outside-press")})),N=ae((e=>{var t;const n=()=>{var t;U(e),null==(t=j(e))||t.removeEventListener(g,n)};null==(t=j(e))||t.addEventListener(g,n)}));s.useEffect((()=>{if(!n||!o)return;r.current.__escapeKeyBubbles=D,r.current.__outsidePressBubbles=P;let e=-1;function t(e){a(!1,e,"ancestor-scroll")}function s(){window.clearTimeout(e),M.current=!0}function u(){e=window.setTimeout((()=>{M.current=!1}),"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")?5:0)}const d=_(i.floating);l&&(d.addEventListener("keydown",O?R:E,O),d.addEventListener("compositionstart",s),d.addEventListener("compositionend",u)),C&&d.addEventListener(g,L?N:U,L);let p=[];return y&&(c(i.domReference)&&(p=(0,X.v9)(i.domReference)),c(i.floating)&&(p=p.concat((0,X.v9)(i.floating))),!c(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat((0,X.v9)(i.reference.contextElement)))),p=p.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),p.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{l&&(d.removeEventListener("keydown",O?R:E,O),d.removeEventListener("compositionstart",s),d.removeEventListener("compositionend",u)),C&&d.removeEventListener(g,L?N:U,L),p.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[r,i,l,C,g,n,a,y,o,D,P,E,O,R,U,L,N]),s.useEffect((()=>{I.current=!1}),[C,g]);const F=s.useMemo((()=>({onKeyDown:E,...b&&{[Bt[v]]:e=>{a(!1,e.nativeEvent,"reference-press")},..."click"!==v&&{onClick(e){a(!1,e.nativeEvent,"reference-press")}}}})),[E,a,b,v]),B=s.useMemo((()=>({onKeyDown:E,onMouseDown(){T.current=!0},onMouseUp(){T.current=!0},[Yt[g]]:()=>{I.current=!0}})),[E,g]);return s.useMemo((()=>o?{reference:F,floating:B}:{}),[o,F,B])}function Wt(e){const{open:t=!1,onOpenChange:n,elements:a}=e,i=Me(),r=s.useRef({}),[o]=s.useState((()=>Re())),l=null!=Fe(),[c,u]=s.useState(a.reference),d=ae(((e,t,s)=>{r.current.openEvent=e?t:void 0,o.emit("openchange",{open:e,event:t,reason:s,nested:l}),null==n||n(e,t,s)})),p=s.useMemo((()=>({setPositionReference:u})),[]),h=s.useMemo((()=>({reference:c||a.reference||null,floating:a.floating||null,domReference:a.reference})),[c,a.reference,a.floating]);return s.useMemo((()=>({dataRef:r,open:t,onOpenChange:d,elements:h,events:o,floatingId:i,refs:p})),[t,d,h,o,i,p])}function $t(e){void 0===e&&(e={});const{nodeId:t}=e,n=Wt({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||n,i=a.elements,[r,o]=s.useState(null),[l,u]=s.useState(null),d=(null==i?void 0:i.domReference)||r,p=s.useRef(null),h=Be();ye((()=>{d&&(p.current=d)}),[d]);const m=(0,Z.we)({...e,elements:{...i,...l&&{reference:l}}}),g=s.useCallback((e=>{const t=c(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;u(t),m.refs.setReference(t)}),[m.refs]),f=s.useCallback((e=>{(c(e)||null===e)&&(p.current=e,o(e)),(c(m.refs.reference.current)||null===m.refs.reference.current||null!==e&&!c(e))&&m.refs.setReference(e)}),[m.refs]),b=s.useMemo((()=>({...m.refs,setReference:f,setPositionReference:g,domReference:p})),[m.refs,f,g]),v=s.useMemo((()=>({...m.elements,domReference:d})),[m.elements,d]),y=s.useMemo((()=>({...m,...a,refs:b,elements:v,nodeId:t})),[m,b,v,t,a]);return ye((()=>{a.dataRef.current.floatingContext=y;const e=null==h?void 0:h.nodesRef.current.find((e=>e.id===t));e&&(e.context=y)})),s.useMemo((()=>({...m,context:y,refs:b,elements:v})),[m,b,v,y])}function zt(e,t){void 0===t&&(t={});const{open:n,onOpenChange:a,events:i,dataRef:r,elements:l}=e,{enabled:d=!0,visibleOnly:p=!0}=t,h=s.useRef(!1),m=s.useRef(),v=s.useRef(!0);s.useEffect((()=>{if(!d)return;const e=o(l.domReference);function t(){!n&&u(l.domReference)&&l.domReference===g(_(l.domReference))&&(h.current=!0)}function s(){v.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",s,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",s,!0)}}),[l.domReference,n,d]),s.useEffect((()=>{if(d)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(h.current=!0)}}),[i,d]),s.useEffect((()=>()=>{clearTimeout(m.current)}),[]);const y=s.useMemo((()=>({onPointerDown(e){S(e.nativeEvent)||(v.current=!1)},onMouseLeave(){h.current=!1},onFocus(e){if(h.current)return;const t=j(e.nativeEvent);if(p&&c(t))try{if(w()&&b().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints)throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!v.current&&!C(t))return}a(!0,e.nativeEvent,"focus")},onBlur(e){h.current=!1;const t=e.relatedTarget,n=e.nativeEvent,s=c(t)&&t.hasAttribute(We("focus-guard"))&&"outside"===t.getAttribute("data-type");m.current=window.setTimeout((()=>{var e;const i=g(l.domReference?l.domReference.ownerDocument:document);(t||i!==l.domReference)&&(f(null==(e=r.current.floatingContext)?void 0:e.refs.floating.current,i)||f(l.domReference,i)||s||a(!1,n,"focus"))}))}})),[r,l.domReference,a,p]);return s.useMemo((()=>d?{reference:y}:{}),[d,y])}const qt="active",Gt="selected";function Kt(e,t,n){const s=new Map,a="item"===n;let i=e;if(a&&e){const{[qt]:t,[Gt]:n,...s}=e;i=s}return{..."floating"===n&&{tabIndex:-1,[kt]:""},...i,...t.map((t=>{const s=t?t[n]:null;return"function"==typeof s?e?s(e):null:s})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var r;a&&[qt,Gt].includes(n)||(0===n.indexOf("on")?(s.has(n)||s.set(n,[]),"function"==typeof i&&(null==(r=s.get(n))||r.push(i),e[n]=function(){for(var e,t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];return null==(e=s.get(n))?void 0:e.map((e=>e(...a))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Qt(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),a=e.map((e=>null==e?void 0:e.item)),i=s.useCallback((t=>Kt(t,e,"reference")),t),r=s.useCallback((t=>Kt(t,e,"floating")),n),o=s.useCallback((t=>Kt(t,e,"item")),a);return s.useMemo((()=>({getReferenceProps:i,getFloatingProps:r,getItemProps:o})),[i,r,o])}function Jt(e,t,n){switch(e){case"vertical":return t;case"horizontal":return n;default:return t||n}}function Xt(e,t){return Jt(t,e===ie||e===re,e===oe||e===le)}function Zt(e,t,n){return Jt(t,e===re,n?e===oe:e===le)||"Enter"===e||" "===e||""===e}function en(e,t,n){return Jt(t,n?e===le:e===oe,e===ie)}function tn(e,t){const{open:n,onOpenChange:a,elements:i}=e,{listRef:r,activeIndex:o,onNavigate:l=()=>{},enabled:c=!0,selectedIndex:d=null,allowEscape:p=!1,loop:h=!1,nested:m=!1,rtl:b=!1,virtual:v=!1,focusItemOnOpen:w="auto",focusItemOnHover:x=!0,openOnArrowKeyDown:A=!0,disabledIndices:k,orientation:j="vertical",cols:C=1,scrollItemIntoView:D=!0,virtualItemRef:P,itemSizes:O,dense:L=!1}=t,M=$e(jt(i.floating)),E=Fe(),R=Be(),U=ae((()=>{l(-1===B.current?null:B.current)})),N=T(i.domReference),F=s.useRef(w),B=s.useRef(null!=d?d:-1),Y=s.useRef(null),H=s.useRef(!0),V=s.useRef(U),W=s.useRef(!!i.floating),$=s.useRef(n),z=s.useRef(!1),q=s.useRef(!1),G=$e(k),K=$e(n),Q=$e(D),J=$e(d),[X,Z]=s.useState(),[ee,te]=s.useState(),ne=ae((()=>{function e(e){v?(Z(e.id),null==R||R.events.emit("virtualfocus",e),P&&(P.current=e)):tt(e,{sync:z.current,preventScroll:!0})}const t=r.current[B.current];t&&e(t),(z.current?e=>e():requestAnimationFrame)((()=>{const n=r.current[B.current]||t;if(!n)return;t||e(n);const s=Q.current;s&&ie&&(q.current||!H.current)&&(null==n.scrollIntoView||n.scrollIntoView("boolean"==typeof s?{block:"nearest",inline:"nearest"}:s))}))}));ye((()=>{c&&(n&&i.floating?F.current&&null!=d&&(q.current=!0,B.current=d,U()):W.current&&(B.current=-1,V.current()))}),[c,n,i.floating,d,U]),ye((()=>{if(c&&n&&i.floating)if(null==o){if(z.current=!1,null!=J.current)return;if(W.current&&(B.current=-1,ne()),(!$.current||!W.current)&&F.current&&(null!=Y.current||!0===F.current&&null==Y.current)){let e=0;const t=()=>{null==r.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(B.current=null==Y.current||Zt(Y.current,j,b)||m?de(r,G.current):pe(r,G.current),Y.current=null,U())};t()}}else ue(r,o)||(B.current=o,ne(),q.current=!1)}),[c,n,i.floating,o,J,m,r,j,b,U,ne,G]),ye((()=>{var e;if(!c||i.floating||!R||v||!W.current)return;const t=R.nodesRef.current,n=null==(e=t.find((e=>e.id===E)))||null==(e=e.context)?void 0:e.elements.floating,s=g(_(i.floating)),a=t.some((e=>e.context&&f(e.context.elements.floating,s)));n&&!a&&H.current&&n.focus({preventScroll:!0})}),[c,i.floating,R,E,v]),ye((()=>{if(c&&R&&v&&!E)return R.events.on("virtualfocus",e),()=>{R.events.off("virtualfocus",e)};function e(e){te(e.id),P&&(P.current=e)}}),[c,R,v,E,P]),ye((()=>{V.current=U,$.current=n,W.current=!!i.floating})),ye((()=>{n||(Y.current=null)}),[n]);const se=null!=o,ie=s.useMemo((()=>{function e(e){if(!n)return;const t=r.current.indexOf(e);-1!==t&&B.current!==t&&(B.current=t,U())}return{onFocus(t){let{currentTarget:n}=t;z.current=!0,e(n)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...x&&{onMouseMove(t){let{currentTarget:n}=t;z.current=!0,q.current=!1,e(n)},onPointerLeave(e){let{pointerType:t}=e;var n;H.current&&"touch"!==t&&(z.current=!0,B.current=-1,U(),v||null==(n=M.current)||n.focus({preventScroll:!0}))}}}}),[n,M,x,r,U,v]),ce=ae((e=>{if(H.current=!1,z.current=!0,229===e.which)return;if(!K.current&&e.currentTarget===M.current)return;if(m&&en(e.key,j,b))return I(e),a(!1,e.nativeEvent,"list-navigation"),void(u(i.domReference)&&(v?null==R||R.events.emit("virtualfocus",i.domReference):i.domReference.focus()));const t=B.current,s=de(r,k),o=pe(r,k);if(N||("Home"===e.key&&(I(e),B.current=s,U()),"End"===e.key&&(I(e),B.current=o,U())),C>1){const t=O||Array.from({length:r.current.length},(()=>({width:1,height:1}))),n=ge(t,C,L),a=n.findIndex((e=>null!=e&&!ve(r.current,e,k))),i=n.reduce(((e,t,n)=>null==t||ve(r.current,t,k)?e:n),-1),l=n[me({current:n.map((e=>null!=e?r.current[e]:null))},{event:e,orientation:j,loop:h,rtl:b,cols:C,disabledIndices:be([...k||r.current.map(((e,t)=>ve(r.current,t)?t:void 0)),void 0],n),minIndex:a,maxIndex:i,prevIndex:fe(B.current>o?s:B.current,t,n,C,e.key===re?"bl":e.key===(b?oe:le)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(B.current=l,U()),"both"===j)return}if(Xt(e.key,j)){if(I(e),n&&!v&&g(e.currentTarget.ownerDocument)===e.currentTarget)return B.current=Zt(e.key,j,b)?s:o,void U();Zt(e.key,j,b)?B.current=h?t>=o?p&&t!==r.current.length?-1:s:he(r,{startingIndex:t,disabledIndices:k}):Math.min(o,he(r,{startingIndex:t,disabledIndices:k})):B.current=h?t<=s?p&&-1!==t?r.current.length:o:he(r,{startingIndex:t,decrement:!0,disabledIndices:k}):Math.max(s,he(r,{startingIndex:t,decrement:!0,disabledIndices:k})),ue(r,B.current)&&(B.current=-1),U()}})),Se=s.useMemo((()=>v&&n&&se&&{"aria-activedescendant":ee||X}),[v,n,se,ee,X]),we=s.useMemo((()=>({"aria-orientation":"both"===j?void 0:j,...N?{}:Se,onKeyDown:ce,onPointerMove(){H.current=!0}})),[Se,ce,j,N]),xe=s.useMemo((()=>{function e(e){"auto"===w&&y(e.nativeEvent)&&(F.current=!0)}function t(e){F.current=w,"auto"===w&&S(e.nativeEvent)&&(F.current=!0)}return{...Se,onKeyDown(e){H.current=!1;const t=e.key.startsWith("Arrow"),s=["Home","End"].includes(e.key),i=t||s,o=function(e,t,n){return Jt(t,n?e===oe:e===le,e===re)}(e.key,j,b),l=en(e.key,j,b),c=Xt(e.key,j),u=(m?o:c)||"Enter"===e.key||""===e.key.trim();if(v&&n){const t=null==R?void 0:R.nodesRef.current.find((e=>null==e.parentId)),n=R&&t?function(e,t){let n,s=-1;return function t(a,i){i>s&&(n=a,s=i),st(e,a).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===n))}(R.nodesRef.current,t.id):null;if(i&&n&&P){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(o||l){var p,h;const s=(null==(p=n.context)?void 0:p.elements.domReference)===e.currentTarget,a=l&&!s?null==(h=n.context)?void 0:h.elements.domReference:o?r.current.find((e=>(null==e?void 0:e.id)===X)):null;a&&(I(e),a.dispatchEvent(t),te(void 0))}var g;if((c||s)&&n.context&&n.context.open&&n.parentId&&e.currentTarget!==n.context.elements.domReference)return I(e),void(null==(g=n.context.elements.domReference)||g.dispatchEvent(t))}return ce(e)}(n||A||!t)&&(u&&(Y.current=m&&c?null:e.key),m?o&&(I(e),n?(B.current=de(r,G.current),U()):a(!0,e.nativeEvent,"list-navigation")):c&&(null!=d&&(B.current=d),I(e),!n&&A?a(!0,e.nativeEvent,"list-navigation"):ce(e),n&&U()))},onFocus(){n&&!v&&(B.current=-1,U())},onPointerDown:t,onPointerEnter:t,onMouseDown:e,onClick:e}}),[X,Se,ce,G,w,r,m,U,a,n,A,j,b,d,R,v,P]);return s.useMemo((()=>c?{reference:xe,floating:we,item:ie}:{}),[c,xe,we,ie])}const nn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function sn(e,t){var n;void 0===t&&(t={});const{open:a,floatingId:i}=e,{enabled:r=!0,role:o="dialog"}=t,l=null!=(n=nn.get(o))?n:o,c=Me(),u=null!=Fe(),d=s.useMemo((()=>"tooltip"===l||"label"===o?{["aria-"+("label"===o?"labelledby":"describedby")]:a?i:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":"alertdialog"===l?"dialog":l,"aria-controls":a?i:void 0,..."listbox"===l&&{role:"combobox"},..."menu"===l&&{id:c},..."menu"===l&&u&&{role:"menuitem"},..."select"===o&&{"aria-autocomplete":"none"},..."combobox"===o&&{"aria-autocomplete":"list"}}),[l,i,u,a,c,o]),p=s.useMemo((()=>{const e={id:i,...l&&{role:l}};return"tooltip"===l||"label"===o?e:{...e,..."menu"===l&&{"aria-labelledby":c}}}),[l,i,c,o]),h=s.useCallback((e=>{let{active:t,selected:n}=e;const s={role:"option",...t&&{id:i+"-option"}};switch(o){case"select":return{...s,"aria-selected":t&&n};case"combobox":return{...s,...t&&{"aria-selected":!0}}}return{}}),[i,o]);return s.useMemo((()=>r?{reference:d,floating:p,item:h}:{}),[r,d,p,h])}const an=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function rn(e,t){return"function"==typeof e?e(t):e}function on(e,t){void 0===t&&(t={});const{open:n,elements:{floating:a}}=e,{duration:i=250}=t,r=("number"==typeof i?i:i.close)||0,[o,l]=s.useState("unmounted"),c=function(e,t){const[n,a]=s.useState(e);return e&&!n&&a(!0),s.useEffect((()=>{if(!e&&n){const e=setTimeout((()=>a(!1)),t);return()=>clearTimeout(e)}}),[e,n,t]),n}(n,r);return c||"close"!==o||l("unmounted"),ye((()=>{if(a){if(n){l("initial");const e=requestAnimationFrame((()=>{l("open")}));return()=>{cancelAnimationFrame(e)}}l("close")}}),[n,a]),{isMounted:c,status:o}}function ln(e,t){void 0===t&&(t={});const{initial:n={opacity:0},open:a,close:i,common:r,duration:o=250}=t,l=e.placement,c=l.split("-")[0],u=s.useMemo((()=>({side:c,placement:l})),[c,l]),d="number"==typeof o,p=(d?o:o.open)||0,h=(d?o:o.close)||0,[m,g]=s.useState((()=>({...rn(r,u),...rn(n,u)}))),{isMounted:f,status:b}=on(e,{duration:o}),v=$e(n),y=$e(a),S=$e(i),w=$e(r);return ye((()=>{const e=rn(v.current,u),t=rn(S.current,u),n=rn(w.current,u),s=rn(y.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===b&&g((t=>({transitionProperty:t.transitionProperty,...n,...e}))),"open"===b&&g({transitionProperty:Object.keys(s).map(an).join(","),transitionDuration:p+"ms",...n,...s}),"close"===b){const s=t||e;g({transitionProperty:Object.keys(s).map(an).join(","),transitionDuration:h+"ms",...n,...s})}}),[h,S,v,y,w,p,b,u]),{isMounted:f,styles:m}}function cn(e,t){var n;const{open:a,dataRef:i}=e,{listRef:r,activeIndex:o,onMatch:l,onTypingChange:c,enabled:u=!0,findMatch:d=null,resetMs:p=750,ignoreKeys:h=[],selectedIndex:m=null}=t,g=s.useRef(),f=s.useRef(""),b=s.useRef(null!=(n=null!=m?m:o)?n:-1),v=s.useRef(null),y=ae(l),S=ae(c),w=$e(d),x=$e(h);ye((()=>{a&&(clearTimeout(g.current),v.current=null,f.current="")}),[a]),ye((()=>{var e;a&&""===f.current&&(b.current=null!=(e=null!=m?m:o)?e:-1)}),[a,m,o]);const A=ae((e=>{e?i.current.typing||(i.current.typing=e,S(e)):i.current.typing&&(i.current.typing=e,S(e))})),_=ae((e=>{function t(e,t,n){const s=w.current?w.current(t,n):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(n.toLocaleLowerCase()))));return s?e.indexOf(s):-1}const n=r.current;if(f.current.length>0&&" "!==f.current[0]&&(-1===t(n,n,f.current)?A(!1):" "===e.key&&I(e)),null==n||x.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;a&&" "!==e.key&&(I(e),A(!0)),n.every((e=>{var t,n;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(n=e[1])?void 0:n.toLocaleLowerCase())}))&&f.current===e.key&&(f.current="",b.current=v.current),f.current+=e.key,clearTimeout(g.current),g.current=setTimeout((()=>{f.current="",b.current=v.current,A(!1)}),p);const s=b.current,i=t(n,[...n.slice((s||0)+1),...n.slice(0,(s||0)+1)],f.current);-1!==i?(y(i),v.current=i):" "!==e.key&&(f.current="",A(!1))})),k=s.useMemo((()=>({onKeyDown:_})),[_]),j=s.useMemo((()=>({onKeyDown:_,onKeyUp(e){" "===e.key&&A(!1)}})),[_,A]);return s.useMemo((()=>u?{reference:k,floating:j}:{}),[u,k,j])}function un(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const dn=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:s,onFallbackChange:a,offset:i=0,index:r=0,minItemsVisible:o=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}="function"==typeof(d=e)?d(t):d;var d;const{rects:p,elements:{floating:h}}=t,m=n.current[r],g=(null==c?void 0:c.current)||h,f=h.clientTop||g.clientTop,b=0!==h.clientTop,v=0!==g.clientTop,y=h===g;if(!m)return{};const S={...t,...await(0,Z.cY)(-m.offsetTop-h.clientTop-p.reference.height/2-m.offsetHeight/2-i).fn(t)},w=await(0,ee.__)(un(S,g.scrollHeight+f+h.clientTop),u),x=await(0,ee.__)(S,{...u,elementContext:"reference"}),A=P(0,w.top),_=S.y+A,k=(g.scrollHeight>g.clientHeight?e=>e:O)(P(0,g.scrollHeight+(b&&y||v?2*f:0)-A-P(0,w.bottom)));if(g.style.maxHeight=k+"px",g.scrollTop=A,a){const e=g.offsetHeight<m.offsetHeight*D(o,n.current.length)-1||x.top>=-l||x.bottom>=-l;J.flushSync((()=>a(e)))}return s&&(s.current=await(0,ee.__)(un({...S,y:_},g.offsetHeight+f+h.clientTop),u)),{y:_}}});function pn(e,t){const{open:n,elements:a}=e,{enabled:i=!0,overflowRef:r,scrollRef:o,onChange:l}=t,c=ae(l),u=s.useRef(!1),d=s.useRef(null),p=s.useRef(null);s.useEffect((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==r.current)return;const n=e.deltaY,s=r.current.top>=-.5,a=r.current.bottom>=-.5,i=t.scrollHeight-t.clientHeight,o=n<0?-1:1,l=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!s&&n>0||!a&&n<0?(e.preventDefault(),J.flushSync((()=>{c((e=>e+Math[l](n,i*o)))}))):/firefox/i.test(v())&&(t.scrollTop+=n))}const t=(null==o?void 0:o.current)||a.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{d.current=t.scrollTop,null!=r.current&&(p.current={...r.current})})),()=>{d.current=null,p.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,a.floating,r,o,c]);const h=s.useMemo((()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==o?void 0:o.current)||a.floating;if(r.current&&e&&u.current){if(null!==d.current){const t=e.scrollTop-d.current;(r.current.bottom<-.5&&t<-1||r.current.top<-.5&&t>1)&&J.flushSync((()=>c((e=>e+t))))}requestAnimationFrame((()=>{d.current=e.scrollTop}))}}})),[a.floating,c,r,o]);return s.useMemo((()=>i?{floating:h}:{}),[i,h])}function hn(e,t){const[n,s]=e;let a=!1;const i=t.length;for(let e=0,r=i-1;e<i;r=e++){const[i,o]=t[e]||[0,0],[l,c]=t[r]||[0,0];o>=s!=c>=s&&n<=(l-i)*(s-o)/(c-o)+i&&(a=!a)}return a}function mn(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:s=!0}=e;let a,i=!1,r=null,o=null,l=performance.now();const u=e=>{let{x:n,y:u,placement:d,elements:p,onClose:h,nodeId:m,tree:g}=e;return function(e){function b(){clearTimeout(a),h()}if(clearTimeout(a),!p.domReference||!p.floating||null==d||null==n||null==u)return;const{clientX:v,clientY:y}=e,S=[v,y],w=j(e),x="mouseleave"===e.type,A=f(p.floating,w),_=f(p.domReference,w),k=p.domReference.getBoundingClientRect(),C=p.floating.getBoundingClientRect(),I=d.split("-")[0],T=n>C.right-C.width/2,D=u>C.bottom-C.height/2,P=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(S,k),O=C.width>k.width,L=C.height>k.height,M=(O?k:C).left,E=(O?k:C).right,R=(L?k:C).top,U=(L?k:C).bottom;if(A&&(i=!0,!x))return;if(_&&(i=!1),_&&!x)return void(i=!0);if(x&&c(e.relatedTarget)&&f(p.floating,e.relatedTarget))return;if(g&&st(g.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===I&&u>=k.bottom-1||"bottom"===I&&u<=k.top+1||"left"===I&&n>=k.right-1||"right"===I&&n<=k.left+1)return b();let N=[];switch(I){case"top":N=[[M,k.top+1],[M,C.bottom-1],[E,C.bottom-1],[E,k.top+1]];break;case"bottom":N=[[M,C.top+1],[M,k.bottom-1],[E,k.bottom-1],[E,C.top+1]];break;case"left":N=[[C.right-1,U],[C.right-1,R],[k.left+1,R],[k.left+1,U]];break;case"right":N=[[k.right-1,U],[k.right-1,R],[C.left+1,R],[C.left+1,U]]}if(!hn([v,y],N)){if(i&&!P)return b();if(!x&&s){const t=function(e,t){const n=performance.now(),s=n-l;if(null===r||null===o||0===s)return r=e,o=t,l=n,null;const a=e-r,i=t-o,c=Math.sqrt(a*a+i*i);return r=e,o=t,l=n,c/s}(e.clientX,e.clientY);if(null!==t&&t<.1)return b()}hn([v,y],function(e){let[n,s]=e;switch(I){case"top":return[[O?n+t/2:T?n+4*t:n-4*t,s+t+1],[O?n-t/2:T?n+4*t:n-4*t,s+t+1],[C.left,T||O?C.bottom-t:C.top],[C.right,T?O?C.bottom-t:C.top:C.bottom-t]];case"bottom":return[[O?n+t/2:T?n+4*t:n-4*t,s-t],[O?n-t/2:T?n+4*t:n-4*t,s-t],[C.left,T||O?C.top+t:C.bottom],[C.right,T?O?C.top+t:C.bottom:C.top+t]];case"left":{const e=[n+t+1,L?s+t/2:D?s+4*t:s-4*t],a=[n+t+1,L?s-t/2:D?s+4*t:s-4*t];return[[D||L?C.right-t:C.left,C.top],[D?L?C.right-t:C.left:C.right-t,C.bottom],e,a]}case"right":return[[n-t,L?s+t/2:D?s+4*t:s-4*t],[n-t,L?s-t/2:D?s+4*t:s-4*t],[D||L?C.left+t:C.right,C.top],[D?L?C.left+t:C.right:C.left+t,C.bottom]]}}([n,u]))?!i&&s&&(a=window.setTimeout(b,40)):b()}}};return u.__options={blockPointerEvents:n},u}},44025(e){"use strict";e.exports={CLS_PREFIX:"pul-",Z_INDEX_POPOVER:1035,Z_INDEX_DROPDOWN:1035,Z_INDEX_OVERLAY:1050,Z_INDEX_TOASTER:1055,Z_INDEX_TOOLTIP:1060}},54280(e){e.exports={CLS_PREFIX:"pul-",Z_INDEX_POPOVER:1035,Z_INDEX_DROPDOWN:1035,Z_INDEX_OVERLAY:1050,Z_INDEX_TOASTER:1055,Z_INDEX_TOOLTIP:1060}},9455(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(0===n.length)return!0;var s=e.name||"",a=(e.type||"").toLowerCase(),i=a.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?s.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):a===t}))}return!0}},13144(e,t,n){"use strict";var s=n(66743),a=n(11002),i=n(10076),r=n(47119);e.exports=r||s.call(i,a)},11002(e){"use strict";e.exports=Function.prototype.apply},10076(e){"use strict";e.exports=Function.prototype.call},73126(e,t,n){"use strict";var s=n(66743),a=n(69675),i=n(10076),r=n(13144);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return r(s,i,e)}},47119(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},36556(e,t,n){"use strict";var s=n(70453),a=n(73126),i=a([s("%String.prototype.indexOf%")]);e.exports=function(e,t){var n=s(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?a([n]):n}},71508(e){function t(e){var n,s,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(s=t(e[n]))&&(a&&(a+=" "),a+=s)}else for(s in e)e[s]&&(a&&(a+=" "),a+=s);return a}function n(){for(var e,n,s=0,a="",i=arguments.length;s<i;s++)(e=arguments[s])&&(n=t(e))&&(a&&(a+=" "),a+=n);return a}e.exports=n,e.exports.clsx=n},36246(e,t){var n,s;void 0===(s="function"==typeof(n=function(){var e=/^v?(?:\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+)(\.(?:[x*]|\d+))?(?:-[\da-z\-]+(?:\.[\da-z\-]+)*)?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i;function t(e){var t,n,s=e.replace(/^v/,"").replace(/\+.*$/,""),a=(n="-",-1===(t=s).indexOf(n)?t.length:t.indexOf(n)),i=s.substring(0,a).split(".");return i.push(s.substring(a+1)),i}function n(e){return isNaN(Number(e))?e:Number(e)}function s(t){if("string"!=typeof t)throw new TypeError("Invalid argument expected string");if(!e.test(t))throw new Error("Invalid argument not valid semver ('"+t+"' received)")}function a(e,a){[e,a].forEach(s);for(var i=t(e),r=t(a),o=0;o<Math.max(i.length-1,r.length-1);o++){var l=parseInt(i[o]||0,10),c=parseInt(r[o]||0,10);if(l>c)return 1;if(c>l)return-1}var u=i[i.length-1],d=r[r.length-1];if(u&&d){var p=u.split(".").map(n),h=d.split(".").map(n);for(o=0;o<Math.max(p.length,h.length);o++){if(void 0===p[o]||"string"==typeof h[o]&&"number"==typeof p[o])return-1;if(void 0===h[o]||"string"==typeof p[o]&&"number"==typeof h[o])return 1;if(p[o]>h[o])return 1;if(h[o]>p[o])return-1}}else if(u||d)return u?-1:1;return 0}var i=[">",">=","=","<","<="],r={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1]};return a.validate=function(t){return"string"==typeof t&&e.test(t)},a.compare=function(e,t,n){!function(e){if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===i.indexOf(e))throw new TypeError("Invalid operator, expected one of "+i.join("|"))}(n);var s=a(e,t);return r[n].indexOf(s)>-1},a})?n.apply(t,[]):n)||(e.exports=s)},17965(e,t,n){"use strict";var s=n(16426),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,r,o,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(r=s(),o=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(s){if(s.stopPropagation(),t.format)if(s.preventDefault(),void 0===s.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[t.format]||a.default;window.clipboardData.setData(i,e)}else s.clipboardData.clearData(),s.clipboardData.setData(t.format,e);t.onCopy&&(s.preventDefault(),t.onCopy(s.clipboardData))})),document.body.appendChild(c),o.selectNodeContents(c),l.addRange(o),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(s){n&&console.error("unable to copy using execCommand: ",s),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(s){n&&console.error("unable to copy using clipboardData: ",s),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(o):l.removeAllRanges()),c&&document.body.removeChild(c),r()}return u}},17334(e){function t(e,t,n){var s,a,i,r,o;function l(){var c=Date.now()-r;c<t&&c>=0?s=setTimeout(l,t-c):(s=null,n||(o=e.apply(i,a),i=a=null))}null==t&&(t=100);var c=function(){i=this,a=arguments,r=Date.now();var c=n&&!s;return s||(s=setTimeout(l,t)),c&&(o=e.apply(i,a),i=a=null),o};return c.clear=function(){s&&(clearTimeout(s),s=null)},c.flush=function(){s&&(o=e.apply(i,a),i=a=null,clearTimeout(s),s=null)},c}t.debounce=t,e.exports=t},14744(e){"use strict";var t=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 s(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return s(e,n)}))}function i(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 r(e,t){try{return t in e}catch(e){return!1}}function o(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||a,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=s;var c=Array.isArray(n);return c===Array.isArray(e)?c?l.arrayMerge(e,n,l):function(e,t,n){var a={};return n.isMergeableObject(e)&&i(e).forEach((function(t){a[t]=s(e[t],n)})),i(t).forEach((function(i){(function(e,t){return r(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(r(e,i)&&n.isMergeableObject(t[i])?a[i]=function(e,t){if(!t.customMerge)return o;var n=t.customMerge(e);return"function"==typeof n?n:o}(i,n)(e[i],t[i],n):a[i]=s(t[i],n))})),a}(e,n,l):s(n,l)}o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return o(e,n,t)}),{})};var l=o;e.exports=l},7176(e,t,n){"use strict";var s,a=n(73126),i=n(75795);try{s=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!s&&i&&i(Object.prototype,"__proto__"),o=Object,l=o.getPrototypeOf;e.exports=r&&"function"==typeof r.get?a([r.get]):"function"==typeof l&&function(e){return l(null==e?e:o(e))}},30655(e){"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},41237(e){"use strict";e.exports=EvalError},69383(e){"use strict";e.exports=Error},79290(e){"use strict";e.exports=RangeError},79538(e){"use strict";e.exports=ReferenceError},58068(e){"use strict";e.exports=SyntaxError},69675(e){"use strict";e.exports=TypeError},35345(e){"use strict";e.exports=URIError},79612(e){"use strict";e.exports=Object},52834(e){"use strict";e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},89353(e){"use strict";var t=Object.prototype.toString,n=Math.max,s=function(e,t){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n};e.exports=function(e){var a=this;if("function"!=typeof a||"[object Function]"!==t.apply(a))throw new TypeError("Function.prototype.bind called on incompatible "+a);for(var i,r=function(e){for(var t=[],n=1,s=0;n<e.length;n+=1,s+=1)t[s]=e[n];return t}(arguments),o=n(0,a.length-r.length),l=[],c=0;c<o;c++)l[c]="$"+c;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=a.apply(this,s(r,arguments));return Object(t)===t?t:this}return a.apply(e,s(r,arguments))})),a.prototype){var u=function(){};u.prototype=a.prototype,i.prototype=new u,u.prototype=null}return i}},66743(e,t,n){"use strict";var s=n(89353);e.exports=Function.prototype.bind||s},70453(e,t,n){"use strict";var s,a=n(79612),i=n(69383),r=n(41237),o=n(79290),l=n(79538),c=n(58068),u=n(69675),d=n(35345),p=n(71514),h=n(58968),m=n(6188),g=n(68002),f=n(75880),b=n(70414),v=n(73093),y=Function,S=function(e){try{return y('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=n(75795),x=n(30655),A=function(){throw new u},_=w?function(){try{return A}catch(e){try{return w(arguments,"callee").get}catch(e){return A}}}():A,k=n(64039)(),j=n(93628),C=n(71064),I=n(48648),T=n(11002),D=n(10076),P={},O="undefined"!=typeof Uint8Array&&j?j(Uint8Array):s,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?s:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?s:ArrayBuffer,"%ArrayIteratorPrototype%":k&&j?j([][Symbol.iterator]()):s,"%AsyncFromSyncIteratorPrototype%":s,"%AsyncFunction%":P,"%AsyncGenerator%":P,"%AsyncGeneratorFunction%":P,"%AsyncIteratorPrototype%":P,"%Atomics%":"undefined"==typeof Atomics?s:Atomics,"%BigInt%":"undefined"==typeof BigInt?s:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?s:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?s:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?s:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?s:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?s:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?s:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?s:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":P,"%Int8Array%":"undefined"==typeof Int8Array?s:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?s:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?s:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k&&j?j(j([][Symbol.iterator]())):s,"%JSON%":"object"==typeof JSON?JSON:s,"%Map%":"undefined"==typeof Map?s:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&k&&j?j((new Map)[Symbol.iterator]()):s,"%Math%":Math,"%Number%":Number,"%Object%":a,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?s:Promise,"%Proxy%":"undefined"==typeof Proxy?s:Proxy,"%RangeError%":o,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?s:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?s:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&k&&j?j((new Set)[Symbol.iterator]()):s,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?s:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k&&j?j(""[Symbol.iterator]()):s,"%Symbol%":k?Symbol:s,"%SyntaxError%":c,"%ThrowTypeError%":_,"%TypedArray%":O,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?s:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?s:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?s:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?s:Uint32Array,"%URIError%":d,"%WeakMap%":"undefined"==typeof WeakMap?s:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?s:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?s:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":T,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":C,"%Math.abs%":p,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":b,"%Math.sign%":v,"%Reflect.getPrototypeOf%":I};if(j)try{null.error}catch(e){var M=j(j(e));L["%Error.prototype%"]=M}var E=function e(t){var n;if("%AsyncFunction%"===t)n=S("async function () {}");else if("%GeneratorFunction%"===t)n=S("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=S("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&j&&(n=j(a.prototype))}return L[t]=n,n},R={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=n(66743),N=n(9957),F=U.call(D,Array.prototype.concat),B=U.call(T,Array.prototype.splice),Y=U.call(D,String.prototype.replace),H=U.call(D,String.prototype.slice),V=U.call(D,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,z=function(e,t){var n,s=e;if(N(R,s)&&(s="%"+(n=R[s])[0]+"%"),N(L,s)){var a=L[s];if(a===P&&(a=E(s)),void 0===a&&!t)throw new u("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:s,value:a}}throw new c("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new u('"allowMissing" argument must be a boolean');if(null===V(/^%?[^%]*%?$/,e))throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=H(e,0,1),n=H(e,-1);if("%"===t&&"%"!==n)throw new c("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new c("invalid intrinsic syntax, expected opening `%`");var s=[];return Y(e,W,(function(e,t,n,a){s[s.length]=n?Y(a,$,"$1"):t||e})),s}(e),s=n.length>0?n[0]:"",a=z("%"+s+"%",t),i=a.name,r=a.value,o=!1,l=a.alias;l&&(s=l[0],B(n,F([0,1],l)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=H(h,0,1),g=H(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new c("property names with quotes must have matching quotes");if("constructor"!==h&&p||(o=!0),N(L,i="%"+(s+="."+h)+"%"))r=L[i];else if(null!=r){if(!(h in r)){if(!t)throw new u("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&d+1>=n.length){var f=w(r,h);r=(p=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[h]}else p=N(r,h),r=r[h];p&&!o&&(L[i]=r)}}return r}},71064(e,t,n){"use strict";var s=n(79612);e.exports=s.getPrototypeOf||null},48648(e){"use strict";e.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},93628(e,t,n){"use strict";var s=n(48648),a=n(71064),i=n(7176);e.exports=s?function(e){return s(e)}:a?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return a(e)}:i?function(e){return i(e)}:null},6549(e){"use strict";e.exports=Object.getOwnPropertyDescriptor},75795(e,t,n){"use strict";var s=n(6549);if(s)try{s([],"length")}catch(e){s=null}e.exports=s},64039(e,t,n){"use strict";var s="undefined"!=typeof Symbol&&Symbol,a=n(41333);e.exports=function(){return"function"==typeof s&&"function"==typeof Symbol&&"symbol"==typeof s("foo")&&"symbol"==typeof Symbol("bar")&&a()}},41333(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var s in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},9957(e,t,n){"use strict";var s=Function.prototype.call,a=Object.prototype.hasOwnProperty,i=n(66743);e.exports=i.call(s,a)},4146(e,t,n){"use strict";var s=n(44363),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return s.isMemo(e)?r:o[e.$$typeof]||a}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=r;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,s){if("string"!=typeof n){if(m){var a=h(n);a&&a!==m&&e(t,a,s)}var r=u(n);d&&(r=r.concat(d(n)));for(var o=l(t),g=l(n),f=0;f<r.length;++f){var b=r[f];if(!(i[b]||s&&s[b]||g&&g[b]||o&&o[b])){var v=p(n,b);try{c(t,b,v)}catch(e){}}}}return t}},1350(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=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"].map((function(e){return[e.toLowerCase(),e]}))),t.attributeNames=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"].map((function(e){return[e.toLowerCase(),e]})))},50492(e,t,n){"use strict";var s=this&&this.__assign||function(){return s=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},s.apply(this,arguments)},a=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.render=void 0;var o=r(n(23775)),l=n(46827),c=n(1350),u=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function d(e){return e.replace(/"/g,""")}var p=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function h(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),s="",a=0;a<n.length;a++)s+=m(n[a],t);return s}function m(e,t){switch(e.type){case o.Root:return h(e.children,t);case o.Doctype:case o.Directive:return"<".concat(e.data,">");case o.Comment:return"\x3c!--".concat(e.data,"--\x3e");case o.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case o.Script:case o.Style:case o.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=c.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&g.has(e.parent.name)&&(t=s(s({},t),{xmlMode:!1}))),!t.xmlMode&&f.has(e.name)&&(t=s(s({},t),{xmlMode:"foreign"}));var a="<".concat(e.name),i=function(e,t){var n;if(e){var s=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?d:t.xmlMode||"utf8"!==t.encodeEntities?l.encodeXML:l.escapeAttribute;return Object.keys(e).map((function(n){var a,i,r=null!==(a=e[n])&&void 0!==a?a:"";return"foreign"===t.xmlMode&&(n=null!==(i=c.attributeNames.get(n))&&void 0!==i?i:n),t.emptyAttrs||t.xmlMode||""!==r?"".concat(n,'="').concat(s(r),'"'):n})).join(" ")}}(e.attribs,t);return i&&(a+=" ".concat(i)),0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&p.has(e.name))?(t.xmlMode||(a+=" "),a+="/>"):(a+=">",e.children.length>0&&(a+=h(e.children,t)),!t.xmlMode&&p.has(e.name)||(a+="</".concat(e.name,">"))),a}(e,t);case o.Text:return function(e,t){var n,s=e.data||"";return!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&u.has(e.parent.name)||(s=t.xmlMode||"utf8"!==t.encodeEntities?(0,l.encodeXML)(s):(0,l.escapeText)(s)),s}(e,t)}}t.render=h,t.default=h;var g=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),f=new Set(["svg","math"])},75253(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&s(t,e,n);return a(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var o=r(n(68676));t.htmlDecodeTree=o.default;var l=r(n(21556));t.xmlDecodeTree=l.default;var c=i(n(94735));t.decodeCodePoint=c.default;var u,d,p,h,m=n(94735);function g(e){return e>=u.ZERO&&e<=u.NINE}Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return m.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return m.fromCodePoint}}),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"}(u||(u={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(d=t.BinTrieFlags||(t.BinTrieFlags={})),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"}(p||(p={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(h=t.DecodingMode||(t.DecodingMode={}));var f=function(){function e(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=p.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=h.Strict}return e.prototype.startEntity=function(e){this.decodeMode=e,this.state=p.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},e.prototype.write=function(e,t){switch(this.state){case p.EntityStart:return e.charCodeAt(t)===u.NUM?(this.state=p.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=p.NamedEntity,this.stateNamedEntity(e,t));case p.NumericStart:return this.stateNumericStart(e,t);case p.NumericDecimal:return this.stateNumericDecimal(e,t);case p.NumericHex:return this.stateNumericHex(e,t);case p.NamedEntity:return this.stateNamedEntity(e,t)}},e.prototype.stateNumericStart=function(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===u.LOWER_X?(this.state=p.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=p.NumericDecimal,this.stateNumericDecimal(e,t))},e.prototype.addToNumericResult=function(e,t,n,s){if(t!==n){var a=n-t;this.result=this.result*Math.pow(s,a)+parseInt(e.substr(t,a),s),this.consumed+=a}},e.prototype.stateNumericHex=function(e,t){for(var n,s=t;t<e.length;){var a=e.charCodeAt(t);if(!(g(a)||(n=a,n>=u.UPPER_A&&n<=u.UPPER_F||n>=u.LOWER_A&&n<=u.LOWER_F)))return this.addToNumericResult(e,s,t,16),this.emitNumericEntity(a,3);t+=1}return this.addToNumericResult(e,s,t,16),-1},e.prototype.stateNumericDecimal=function(e,t){for(var n=t;t<e.length;){var s=e.charCodeAt(t);if(!g(s))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(s,2);t+=1}return this.addToNumericResult(e,n,t,10),-1},e.prototype.emitNumericEntity=function(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===u.SEMI)this.consumed+=1;else if(this.decodeMode===h.Strict)return 0;return this.emitCodePoint((0,c.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==u.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},e.prototype.stateNamedEntity=function(e,t){for(var n=this.decodeTree,s=n[this.treeIndex],a=(s&d.VALUE_LENGTH)>>14;t<e.length;t++,this.excess++){var i=e.charCodeAt(t);if(this.treeIndex=v(n,s,this.treeIndex+Math.max(1,a),i),this.treeIndex<0)return 0===this.result||this.decodeMode===h.Attribute&&(0===a||((r=i)===u.EQUALS||function(e){return e>=u.UPPER_A&&e<=u.UPPER_Z||e>=u.LOWER_A&&e<=u.LOWER_Z||g(e)}(r)))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((s=n[this.treeIndex])&d.VALUE_LENGTH)>>14)){if(i===u.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==h.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}var r;return-1},e.prototype.emitNotTerminatedNamedEntity=function(){var e,t=this.result,n=(this.decodeTree[t]&d.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed},e.prototype.emitNamedEntityData=function(e,t,n){var s=this.decodeTree;return this.emitCodePoint(1===t?s[e]&~d.VALUE_LENGTH:s[e+1],n),3===t&&this.emitCodePoint(s[e+2],n),n},e.prototype.end=function(){var e;switch(this.state){case p.NamedEntity:return 0===this.result||this.decodeMode===h.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case p.NumericDecimal:return this.emitNumericEntity(0,2);case p.NumericHex:return this.emitNumericEntity(0,3);case p.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case p.EntityStart:return 0}},e}();function b(e){var t="",n=new f(e,(function(e){return t+=(0,c.fromCodePoint)(e)}));return function(e,s){for(var a=0,i=0;(i=e.indexOf("&",i))>=0;){t+=e.slice(a,i),n.startEntity(s);var r=n.write(e,i+1);if(r<0){a=i+n.end();break}a=i+r,i=0===r?a+1:a}var o=t+e.slice(a);return t="",o}}function v(e,t,n,s){var a=(t&d.BRANCH_LENGTH)>>7,i=t&d.JUMP_TABLE;if(0===a)return 0!==i&&s===i?n:-1;if(i){var r=s-i;return r<0||r>=a?-1:e[n+r]-1}for(var o=n,l=o+a-1;o<=l;){var c=o+l>>>1,u=e[c];if(u<s)o=c+1;else{if(!(u>s))return e[c+a];l=c-1}}return-1}t.EntityDecoder=f,t.determineBranch=v;var y=b(o.default),S=b(l.default);t.decodeHTML=function(e,t){return void 0===t&&(t=h.Legacy),y(e,t)},t.decodeHTMLAttribute=function(e){return y(e,h.Attribute)},t.decodeHTMLStrict=function(e){return y(e,h.Strict)},t.decodeXML=function(e){return S(e,h.Strict)}},94735(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var s=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 a(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=s.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)},t.replaceCodePoint=a,t.default=function(e){return(0,t.fromCodePoint)(a(e))}},61901(e,t,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.encodeNonAsciiHTML=t.encodeHTML=void 0;var a=s(n(20277)),i=n(88848),r=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function o(e,t){for(var n,s="",r=0;null!==(n=e.exec(t));){var o=n.index;s+=t.substring(r,o);var l=t.charCodeAt(o),c=a.default.get(l);if("object"==typeof c){if(o+1<t.length){var u=t.charCodeAt(o+1),d="number"==typeof c.n?c.n===u?c.o:void 0:c.n.get(u);if(void 0!==d){s+=d,r=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)s+=c,r=o+1;else{var p=(0,i.getCodePoint)(t,o);s+="&#x".concat(p.toString(16),";"),r=e.lastIndex+=Number(p!==l)}}return s+t.substr(r)}t.encodeHTML=function(e){return o(r,e)},t.encodeNonAsciiHTML=function(e){return o(i.xmlReplacer,e)}},88848(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var n=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function s(e){for(var s,a="",i=0;null!==(s=t.xmlReplacer.exec(e));){var r=s.index,o=e.charCodeAt(r),l=n.get(o);void 0!==l?(a+=e.substring(i,r)+l,i=r+1):(a+="".concat(e.substring(i,r),"&#x").concat((0,t.getCodePoint)(e,r).toString(16),";"),i=t.xmlReplacer.lastIndex+=Number(55296==(64512&o)))}return a+e.substr(i)}function a(e,t){return function(n){for(var s,a=0,i="";s=e.exec(n);)a!==s.index&&(i+=n.substring(a,s.index)),i+=t.get(s[0].charCodeAt(0)),a=s.index+1;return i+n.substring(a)}}t.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},t.encodeXML=s,t.escape=s,t.escapeUTF8=a(/[&<>'"]/g,n),t.escapeAttribute=a(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=a(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))},68676(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})))},21556(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})))},20277(e,t){"use strict";function n(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Map(n([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(n([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(n([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(n([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]))},46827(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var s,a,i=n(75253),r=n(61901),o=n(88848);function l(e,t){if(void 0===t&&(t=s.XML),("number"==typeof t?t:t.level)===s.HTML){var n="object"==typeof t?t.mode:void 0;return(0,i.decodeHTML)(e,n)}return(0,i.decodeXML)(e)}!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(s=t.EntityLevel||(t.EntityLevel={})),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"}(a=t.EncodingMode||(t.EncodingMode={})),t.decode=l,t.decodeStrict=function(e,t){var n;void 0===t&&(t=s.XML);var a="number"==typeof t?{level:t}:t;return null!==(n=a.mode)&&void 0!==n||(a.mode=i.DecodingMode.Strict),l(e,a)},t.encode=function(e,t){void 0===t&&(t=s.XML);var n="number"==typeof t?{level:t}:t;return n.mode===a.UTF8?(0,o.escapeUTF8)(e):n.mode===a.Attribute?(0,o.escapeAttribute)(e):n.mode===a.Text?(0,o.escapeText)(e):n.level===s.HTML?n.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(e):(0,r.encodeHTML)(e):(0,o.encodeXML)(e)};var c=n(88848);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var u=n(61901);Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var d=n(75253);Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return d.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return d.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return d.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})},23775(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,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"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},66443(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(23775),r=n(4011);a(n(4011),t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new r.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,s=new r.Element(e,t,void 0,n);this.addNode(s),this.tagStack.push(s)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new r.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new r.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new r.Text(""),t=new r.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new r.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},4011(e,t,n){"use strict";var s,a=this&&this.__extends||(s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var r=n(23775),o=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=o;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return a(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(o);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Text,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Comment,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var s=e.call(this,n)||this;return s.name=t,s.type=r.ElementType.Directive,s}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var p=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return a(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(o);t.NodeWithChildren=p;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.CDATA,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(p);t.CDATA=h;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=r.ElementType.Root,t}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(p);t.Document=m;var g=function(e){function t(t,n,s,a){void 0===s&&(s=[]),void 0===a&&(a="script"===t?r.ElementType.Script:"style"===t?r.ElementType.Style:r.ElementType.Tag);var i=e.call(this,s)||this;return i.name=t,i.attribs=n,i.type=a,i}return a(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,s;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(s=e["x-attribsPrefix"])||void 0===s?void 0:s[t]}}))},enumerable:!1,configurable:!0}),t}(p);function f(e){return(0,r.isTag)(e)}function b(e){return e.type===r.ElementType.CDATA}function v(e){return e.type===r.ElementType.Text}function y(e){return e.type===r.ElementType.Comment}function S(e){return e.type===r.ElementType.Directive}function w(e){return e.type===r.ElementType.Root}function x(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(y(e))n=new u(e.data);else if(f(e)){var s=t?A(e.children):[],a=new g(e.name,i({},e.attribs),s);s.forEach((function(e){return e.parent=a})),null!=e.namespace&&(a.namespace=e.namespace),e["x-attribsNamespace"]&&(a["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(a["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=a}else if(b(e)){s=t?A(e.children):[];var r=new h(s);s.forEach((function(e){return e.parent=r})),n=r}else if(w(e)){s=t?A(e.children):[];var o=new m(s);s.forEach((function(e){return e.parent=o})),e["x-mode"]&&(o["x-mode"]=e["x-mode"]),n=o}else{if(!S(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function A(e){for(var t=e.map((function(e){return x(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=g,t.isTag=f,t.isCDATA=b,t.isText=v,t.isComment=y,t.isDirective=S,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},48115(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=function(e){var t=l(d,e);return t?"feed"===t.name?function(e){var t,n=e.children,s={type:"atom",items:(0,a.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,s={media:o(n)};u(s,"id","id",n),u(s,"title","title",n);var a=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;a&&(s.link=a);var i=c("summary",n)||c("content",n);i&&(s.description=i);var r=c("updated",n);return r&&(s.pubDate=new Date(r)),s}))};u(s,"id","id",n),u(s,"title","title",n);var i=null===(t=l("link",n))||void 0===t?void 0:t.attribs.href;i&&(s.link=i),u(s,"description","subtitle",n);var r=c("updated",n);return r&&(s.updated=new Date(r)),u(s,"author","email",n,!0),s}(t):function(e){var t,n,s=null!==(n=null===(t=l("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,a.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:o(t)};u(n,"id","guid",t),u(n,"title","title",t),u(n,"link","link",t),u(n,"description","description",t);var s=c("pubDate",t)||c("dc:date",t);return s&&(n.pubDate=new Date(s)),n}))};u(i,"title","title",s),u(i,"link","link",s),u(i,"description","description",s);var r=c("lastBuildDate",s);return r&&(i.updated=new Date(r)),u(i,"author","managingEditor",s,!0),i}(t):null};var s=n(65247),a=n(86851),i=["url","type","lang"],r=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(e){return(0,a.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},s=0,a=i;s<a.length;s++)t[c=a[s]]&&(n[c]=t[c]);for(var o=0,l=r;o<l.length;o++){var c;t[c=l[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function l(e,t){return(0,a.getElementsByTagName)(e,t,!0,1)[0]}function c(e,t,n){return void 0===n&&(n=!1),(0,s.textContent)((0,a.getElementsByTagName)(e,t,n,1)).trim()}function u(e,t,n,s,a){void 0===a&&(a=!1);var i=c(n,s,a);i&&(e[t]=i)}function d(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}},89891(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPosition=void 0,t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var s=n.parent;s;s=s.parent)if(e.includes(s)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,n){return!n.includes(e,t+1)}))).sort((function(e,t){var n=i(e,t);return n&s.PRECEDING?-1:n&s.FOLLOWING?1:0})),e};var s,a=n(66443);function i(e,t){var n=[],i=[];if(e===t)return 0;for(var r=(0,a.hasChildren)(e)?e:e.parent;r;)n.unshift(r),r=r.parent;for(r=(0,a.hasChildren)(t)?t:t.parent;r;)i.unshift(r),r=r.parent;for(var o=Math.min(n.length,i.length),l=0;l<o&&n[l]===i[l];)l++;if(0===l)return s.DISCONNECTED;var c=n[l-1],u=c.children,d=n[l],p=i[l];return u.indexOf(d)>u.indexOf(p)?c===t?s.FOLLOWING|s.CONTAINED_BY:s.FOLLOWING:c===e?s.PRECEDING|s.CONTAINS:s.PRECEDING}!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"}(s||(t.DocumentPosition=s={}))},43970(e,t,n){"use strict";var s=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||s(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,a(n(65247),t),a(n(21840),t),a(n(27049),t),a(n(28620),t),a(n(86851),t),a(n(89891),t),a(n(48115),t);var i=n(66443);Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return i.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return i.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return i.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return i.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return i.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return i.hasChildren}})},86851(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testElement=function(e,t){var n=l(e);return!n||n(t)},t.getElements=function(e,t,n,s){void 0===s&&(s=1/0);var i=l(e);return i?(0,a.filter)(i,t,n,s):[]},t.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,a.findOne)(r("id",e),t,n)},t.getElementsByTagName=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),(0,a.filter)(i.tag_name(e),t,n,s)},t.getElementsByClassName=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),(0,a.filter)(r("class",e),t,n,s)},t.getElementsByTagType=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),(0,a.filter)(i.tag_type(e),t,n,s)};var s=n(66443),a=n(28620),i={tag_name:function(e){return"function"==typeof e?function(t){return(0,s.isTag)(t)&&e(t.name)}:"*"===e?s.isTag:function(t){return(0,s.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,s.isText)(t)&&e(t.data)}:function(t){return(0,s.isText)(t)&&t.data===e}}};function r(e,t){return"function"==typeof t?function(n){return(0,s.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,s.isTag)(n)&&n.attribs[e]===t}}function o(e,t){return function(n){return e(n)||t(n)}}function l(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(i,t)?i[t](n):r(t,n)}));return 0===t.length?null:t.reduce(o)}},27049(e,t){"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}Object.defineProperty(t,"__esModule",{value:!0}),t.removeElement=n,t.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var s=t.next=e.next;s&&(s.prev=t);var a=t.parent=e.parent;if(a){var i=a.children;i[i.lastIndexOf(e)]=t,e.parent=null}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var s=e.children[e.children.length-2];s.next=t,t.prev=s}else t.prev=null},t.append=function(e,t){n(t);var s=e.parent,a=e.next;if(t.next=a,t.prev=e,e.next=t,t.parent=s,a){if(a.prev=t,s){var i=s.children;i.splice(i.lastIndexOf(a),0,t)}}else s&&s.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var s=e.children[1];s.prev=t,t.next=s}else t.next=null},t.prepend=function(e,t){n(t);var s=e.parent;if(s){var a=s.children;a.splice(a.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=s,t.prev=e.prev,t.next=e,e.prev=t}},28620(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.filter=function(e,t,n,s){return void 0===n&&(n=!0),void 0===s&&(s=1/0),a(e,Array.isArray(t)?t:[t],n,s)},t.find=a,t.findOneChild=function(e,t){return t.find(e)},t.findOne=function e(t,n,a){void 0===a&&(a=!0);for(var i=Array.isArray(n)?n:[n],r=0;r<i.length;r++){var o=i[r];if((0,s.isTag)(o)&&t(o))return o;if(a&&(0,s.hasChildren)(o)&&o.children.length>0){var l=e(t,o.children,!0);if(l)return l}}return null},t.existsOne=function e(t,n){return(Array.isArray(n)?n:[n]).some((function(n){return(0,s.isTag)(n)&&t(n)||(0,s.hasChildren)(n)&&e(t,n.children)}))},t.findAll=function(e,t){for(var n=[],a=[Array.isArray(t)?t:[t]],i=[0];;)if(i[0]>=a[0].length){if(1===a.length)return n;a.shift(),i.shift()}else{var r=a[0][i[0]++];(0,s.isTag)(r)&&e(r)&&n.push(r),(0,s.hasChildren)(r)&&r.children.length>0&&(i.unshift(0),a.unshift(r.children))}};var s=n(66443);function a(e,t,n,a){for(var i=[],r=[Array.isArray(t)?t:[t]],o=[0];;)if(o[0]>=r[0].length){if(1===o.length)return i;r.shift(),o.shift()}else{var l=r[0][o[0]++];if(e(l)&&(i.push(l),--a<=0))return i;n&&(0,s.hasChildren)(l)&&l.children.length>0&&(o.unshift(0),r.unshift(l.children))}}},65247(e,t,n){"use strict";var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getOuterHTML=o,t.getInnerHTML=function(e,t){return(0,a.hasChildren)(e)?e.children.map((function(e){return o(e,t)})).join(""):""},t.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,a.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,a.isCDATA)(t)?e(t.children):(0,a.isText)(t)?t.data:""},t.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,a.hasChildren)(t)&&!(0,a.isComment)(t)?e(t.children):(0,a.isText)(t)?t.data:""},t.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,a.hasChildren)(t)&&(t.type===r.ElementType.Tag||(0,a.isCDATA)(t))?e(t.children):(0,a.isText)(t)?t.data:""};var a=n(66443),i=s(n(50492)),r=n(23775);function o(e,t){return(0,i.default)(e,t)}},21840(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getChildren=a,t.getParent=i,t.getSiblings=function(e){var t=i(e);if(null!=t)return a(t);for(var n=[e],s=e.prev,r=e.next;null!=s;)n.unshift(s),s=s.prev;for(;null!=r;)n.push(r),r=r.next;return n},t.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,s.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,s.isTag)(t);)t=t.prev;return t};var s=n(66443);function a(e){return(0,s.hasChildren)(e)?e.children:[]}function i(e){return e.parent||null}},16368(e){"use strict";e.exports=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},78682(e,t){"use strict";function n(e){return"[object Object]"===Object.prototype.toString.call(e)}t.isPlainObject=function(e){var t,s;return!1!==n(e)&&(void 0===(t=e.constructor)||!1!==n(s=t.prototype)&&!1!==s.hasOwnProperty("isPrototypeOf"))}},33624(e,t,n){const s=n(18586);function a(e){for(e=e.replace(/[\x00-\x20]+/g,"");;){const t=e.indexOf("\x3c!--");if(-1===t)break;const n=e.indexOf("--\x3e",t+4);if(-1===n)break;e=e.substring(0,t)+e.substring(n+3)}return e}function i(e,t){const n=(t=t||{}).allowedSchemes||["http","https","ftp","mailto","tel","sms"],s=!1!==t.allowProtocolRelative;if("string"!=typeof e)return!1;const i=(e=a(e)).match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i)return!!e.match(/^[/\\]{2}/)&&!s;const r=i[1].toLowerCase();return-1===n.indexOf(r)}e.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,n,s){if(void 0===t&&(t=0),"number"==typeof e)e=Math.floor(e);else try{e=parseInt(e,10),isNaN(e)&&(e=t)}catch(n){e=t}return"number"==typeof n&&e<n&&(e=n),"number"==typeof s&&e>s&&(e=s),e},t.padInteger=function(e,t){let n=e+"";for(;n.length<t;)n="0"+n;return n},t.float=function(e,t,n,s){if(void 0===t&&(t=0),"number"!=typeof e)try{e=parseFloat(e,10),isNaN(e)&&(e=t)}catch(n){e=t}return"number"==typeof n&&e<n&&(e=n),"number"==typeof s&&e>s&&(e=s),e},t.naughtyHref=i,t.url=function(e,n,s){return(e=t.string(e,n))===n?e:i(e=a(e))||null===(e=(r=e).match(/^(((https?|ftp):\/\/)|((mailto|tel|sms):)|#|([^/.]+)?\/|[^/.]+$)/)?r:r.match(/^[^/.]+\.[^/.]+/)?(s?"https://":"http://")+r:null)?n:e;var r},t.select=function(e,n,s){if(e=t.string(e),!n||!n.length)return s;let a;return"object"==typeof n[0]?(a=n.find((function(t){return null!==t.value&&void 0!==t.value&&t.value.toString()===e})),null!=a?a.value:s):(a=n.find((function(t){return null!=t&&t.toString()===e})),void 0!==a?a:s)},t.boolean=function(e,n){return!0===e||!1!==e&&((e=t.string(e,n))===n?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,n,s,a){void 0===a&&(a=null);let i="object"==typeof e&&null!==e?e[n]:e;i=void 0===i?a:i,i=t.booleanOrNull(i),null===i||(s[n]=!!i||{$ne:!0})},t.booleanOrNull=function(e,n){return!0===e||!1===e||null===e?e:(e=t.string(e,n))===n?void 0===n?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:n))},t.date=function(e,n,a){let i;function r(){return void 0===n&&(n=s().format("YYYY-MM-DD")),n}if("string"==typeof e){if(e.match(/\//)){if(i=e.split("/"),2===i.length)return(a||new Date).getFullYear()+"-"+t.padInteger(i[0],2)+"-"+t.padInteger(i[1],2);if(3===i.length){if(i[2]<100){const e=a||new Date,t=e.getFullYear()%100,n=e.getFullYear()-t;let s=parseInt(i[2])+n;s-e.getFullYear()>50&&(s-=100),i[2]=s}return t.padInteger(i[2],4)+"-"+t.padInteger(i[0],2)+"-"+t.padInteger(i[1],2)}return r()}if(e.match(/-/))return i=e.split("-"),2===i.length?(a||new Date).getFullYear()+"-"+t.padInteger(i[0],2)+"-"+t.padInteger(i[1],2):3===i.length?t.padInteger(i[0],4)+"-"+t.padInteger(i[1],2)+"-"+t.padInteger(i[2],2):r()}try{return null===e?r():(e=a||new Date(e),isNaN(e.getTime())?r():e.getFullYear()+"-"+t.padInteger(e.getMonth()+1,2)+"-"+t.padInteger(e.getDate(),2))}catch(e){return r()}},t.formatDate=function(e){return s(e).format("YYYY-MM-DD")},t.time=function(e,n){const a=(e=(e=t.string(e).toLowerCase()).trim()).match(/^(\d+)([:|.](\d+))?([:|.](\d+))?\s*(am|pm|AM|PM|a|p|A|M)?$/);if(a){let e=parseInt(a[1],10);const n=void 0!==a[3]?parseInt(a[3],10):0,s=void 0!==a[5]?parseInt(a[5],10):0;let i=a[6]?a[6].toLowerCase():a[6];return i=i&&i.charAt(0),12===e&&"a"===i?e-=12:12===e&&"p"===i||"p"===i&&(e+=12),24!==e&&"24"!==e||(e=0),t.padInteger(e,2)+":"+t.padInteger(n,2)+":"+t.padInteger(s,2)}return void 0!==n?n:s().format("HH:mm")},t.formatTime=function(e){return s(e).format("HH:mm:ss")},t.tags=function(e,n){return"string"==typeof e&&(e=e.split(/,\s*/)),Array.isArray(e)?e.map((e=>t.string(e))).map(n||t.filterTag).filter((e=>e.length>0)):[]},t.idRegExp=t.options.idRegExp||/^[A-Za-z0-9_]+$/,t.id=function(e,n){const s=t.string(e,n);return s===n||s.match(t.idRegExp)?s:n},t.ids=function(e){return Array.isArray(e)?e.filter((function(e){return void 0!==t.id(e)})):[]},t},e.exports.naughtyHref=i},18586(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",s="second",a="minute",i="hour",r="day",o="week",l="month",c="quarter",u="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},f=function(e,t,n){var s=String(e);return!s||s.length>=t?e:""+Array(t+1-s.length).join(n)+e},b={s:f,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),s=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+f(s,2,"0")+":"+f(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var s=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(s,l),i=n-a<0,r=t.clone().add(s+(i?-1:1),l);return+(-(s+(n-a)/(i?a-r:r-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:u,w:o,d:r,D:d,h:i,m:a,s,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",y={};y[v]=g;var S="$isDayjsObject",w=function(e){return e instanceof k||!(!e||!e[S])},x=function e(t,n,s){var a;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();y[i]&&(a=i),n&&(y[i]=n,a=i);var r=t.split("-");if(!a&&r.length>1)return e(r[0])}else{var o=t.name;y[o]=t,a=o}return!s&&a&&(v=a),a||!s&&v},A=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new k(n)},_=b;_.l=x,_.i=w,_.w=function(e,t){return A(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var k=function(){function g(e){this.$L=x(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[S]=!0}var f=g.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var s=t.match(h);if(s){var a=s[2]-1||0,i=(s[7]||"0").substring(0,3);return n?new Date(Date.UTC(s[1],a,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)):new Date(s[1],a,s[3]||1,s[4]||0,s[5]||0,s[6]||0,i)}}return new Date(t)}(e),this.init()},f.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()},f.$utils=function(){return _},f.isValid=function(){return!(this.$d.toString()===p)},f.isSame=function(e,t){var n=A(e);return this.startOf(t)<=n&&n<=this.endOf(t)},f.isAfter=function(e,t){return A(e)<this.startOf(t)},f.isBefore=function(e,t){return this.endOf(t)<A(e)},f.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,t){var n=this,c=!!_.u(t)||t,p=_.p(e),h=function(e,t){var s=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?s:s.endOf(r)},m=function(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},g=this.$W,f=this.$M,b=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case u:return c?h(1,0):h(31,11);case l:return c?h(1,f):h(0,f+1);case o:var y=this.$locale().weekStart||0,S=(g<y?g+7:g)-y;return h(c?b-S:b+(6-S),f);case r:case d:return m(v+"Hours",0);case i:return m(v+"Minutes",1);case a:return m(v+"Seconds",2);case s:return m(v+"Milliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(e,t){var o,c=_.p(e),p="set"+(this.$u?"UTC":""),h=(o={},o[r]=p+"Date",o[d]=p+"Date",o[l]=p+"Month",o[u]=p+"FullYear",o[i]=p+"Hours",o[a]=p+"Minutes",o[s]=p+"Seconds",o[n]=p+"Milliseconds",o)[c],m=c===r?this.$D+(t-this.$W):t;if(c===l||c===u){var g=this.clone().set(d,1);g.$d[h](m),g.init(),this.$d=g.set(d,Math.min(this.$D,g.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.get=function(e){return this[_.p(e)]()},f.add=function(n,c){var d,p=this;n=Number(n);var h=_.p(c),m=function(e){var t=A(p);return _.w(t.date(t.date()+Math.round(e*n)),p)};if(h===l)return this.set(l,this.$M+n);if(h===u)return this.set(u,this.$y+n);if(h===r)return m(1);if(h===o)return m(7);var g=(d={},d[a]=e,d[i]=t,d[s]=1e3,d)[h]||1,f=this.$d.getTime()+n*g;return _.w(f,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var s=e||"YYYY-MM-DDTHH:mm:ssZ",a=_.z(this),i=this.$H,r=this.$m,o=this.$M,l=n.weekdays,c=n.months,u=n.meridiem,d=function(e,n,a,i){return e&&(e[n]||e(t,s))||a[n].slice(0,i)},h=function(e){return _.s(i%12||12,e,"0")},g=u||function(e,t,n){var s=e<12?"AM":"PM";return n?s.toLowerCase():s};return s.replace(m,(function(e,s){return s||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return _.s(t.$y,4,"0");case"M":return o+1;case"MM":return _.s(o+1,2,"0");case"MMM":return d(n.monthsShort,o,c,3);case"MMMM":return d(c,o);case"D":return t.$D;case"DD":return _.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,l,2);case"ddd":return d(n.weekdaysShort,t.$W,l,3);case"dddd":return l[t.$W];case"H":return String(i);case"HH":return _.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return g(i,r,!0);case"A":return g(i,r,!1);case"m":return String(r);case"mm":return _.s(r,2,"0");case"s":return String(t.$s);case"ss":return _.s(t.$s,2,"0");case"SSS":return _.s(t.$ms,3,"0");case"Z":return a}return null}(e)||a.replace(":","")}))},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(n,d,p){var h,m=this,g=_.p(d),f=A(n),b=(f.utcOffset()-this.utcOffset())*e,v=this-f,y=function(){return _.m(m,f)};switch(g){case u:h=y()/12;break;case l:h=y();break;case c:h=y()/3;break;case o:h=(v-b)/6048e5;break;case r:h=(v-b)/864e5;break;case i:h=v/t;break;case a:h=v/e;break;case s:h=v/1e3;break;default:h=v}return p?h:_.a(h)},f.daysInMonth=function(){return this.endOf(l).$D},f.$locale=function(){return y[this.$L]},f.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),s=x(e,t,!0);return s&&(n.$L=s),n},f.clone=function(){return _.w(this.$d,this)},f.toDate=function(){return new Date(this.valueOf())},f.toJSON=function(){return this.isValid()?this.toISOString():null},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},g}(),j=k.prototype;return A.prototype=j,[["$ms",n],["$s",s],["$m",a],["$H",i],["$W",r],["$M",l],["$y",u],["$D",d]].forEach((function(e){j[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),A.extend=function(e,t){return e.$i||(e(t,k,A),e.$i=!0),A},A.locale=x,A.isDayjs=w,A.unix=function(e){return A(1e3*e)},A.en=y[v],A.Ls=y,A.p={},A}()},20181(e,t,n){var s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,r=/^0o[0-7]+$/i,o=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,m=function(){return u.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function f(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=i.test(e);return n||r.test(e)?o(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var s,a,i,r,o,l,c=0,u=!1,d=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=s,i=a;return s=a=void 0,c=t,r=e.apply(i,n)}function y(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function S(){var e=m();if(y(e))return w(e);o=setTimeout(S,function(e){var n=t-(e-l);return d?h(n,i-(e-c)):n}(e))}function w(e){return o=void 0,b&&s?v(e):(s=a=void 0,r)}function x(){var e=m(),n=y(e);if(s=arguments,a=this,l=e,n){if(void 0===o)return function(e){return c=e,o=setTimeout(S,t),u?v(e):r}(l);if(d)return o=setTimeout(S,t),v(l)}return void 0===o&&(o=setTimeout(S,t)),r}return t=f(t)||0,g(n)&&(u=!!n.leading,i=(d="maxWait"in n)?p(f(n.maxWait)||0,t):i,b="trailing"in n?!!n.trailing:b),x.cancel=function(){void 0!==o&&clearTimeout(o),c=0,s=l=a=o=void 0},x.flush=function(){return void 0===o?r:w(m())},x}},38514(e,t,n){e=n.nmd(e);var s="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",r="[object Array]",o="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",d="[object Map]",p="[object Number]",h="[object Object]",m="[object Promise]",g="[object RegExp]",f="[object Set]",b="[object String]",v="[object WeakMap]",y="[object ArrayBuffer]",S="[object DataView]",w=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,A={};A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A[i]=A[r]=A[y]=A[o]=A[S]=A[l]=A[c]=A[u]=A[d]=A[p]=A[h]=A[g]=A[f]=A[b]=A[v]=!1;var _="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,k="object"==typeof self&&self&&self.Object===Object&&self,j=_||k||Function("return this")(),C=t&&!t.nodeType&&t,I=C&&e&&!e.nodeType&&e,T=I&&I.exports===C&&_.process,D=function(){try{return T&&T.binding("util")}catch(e){}}(),P=D&&D.isTypedArray;function O(e,t){for(var n=-1,s=e?e.length:0;++n<s;)if(t(e[n],n,e))return!0;return!1}function L(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function M(e){var t=-1,n=Array(e.size);return e.forEach((function(e,s){n[++t]=[s,e]})),n}function E(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var R,U,N,F=Array.prototype,B=Function.prototype,Y=Object.prototype,H=j["__core-js_shared__"],V=(R=/[^.]+$/.exec(H&&H.keys&&H.keys.IE_PROTO||""))?"Symbol(src)_1."+R:"",W=B.toString,$=Y.hasOwnProperty,z=Y.toString,q=RegExp("^"+W.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=j.Symbol,K=j.Uint8Array,Q=Y.propertyIsEnumerable,J=F.splice,X=(U=Object.keys,N=Object,function(e){return U(N(e))}),Z=we(j,"DataView"),ee=we(j,"Map"),te=we(j,"Promise"),ne=we(j,"Set"),se=we(j,"WeakMap"),ae=we(Object,"create"),ie=_e(Z),re=_e(ee),oe=_e(te),le=_e(ne),ce=_e(se),ue=G?G.prototype:void 0,de=ue?ue.valueOf:void 0;function pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function he(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function me(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}function ge(e){var t=-1,n=e?e.length:0;for(this.__data__=new me;++t<n;)this.add(e[t])}function fe(e){this.__data__=new he(e)}function be(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}function ve(e,t,n,s,a){return e===t||(null==e||null==t||!De(e)&&!Pe(t)?e!=e&&t!=t:function(e,t,n,s,a,u){var m=je(e),v=je(t),w=r,x=r;m||(w=(w=xe(e))==i?h:w),v||(x=(x=xe(t))==i?h:x);var A=w==h&&!L(e),_=x==h&&!L(t),k=w==x;if(k&&!A)return u||(u=new fe),m||Oe(e)?ye(e,t,n,s,a,u):function(e,t,n,s,a,i,r){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!s(new K(e),new K(t)));case o:case l:case p:return ke(+e,+t);case c:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case d:var u=M;case f:var h=2&i;if(u||(u=E),e.size!=t.size&&!h)return!1;var m=r.get(e);if(m)return m==t;i|=1,r.set(e,t);var v=ye(u(e),u(t),s,a,i,r);return r.delete(e),v;case"[object Symbol]":if(de)return de.call(e)==de.call(t)}return!1}(e,t,w,n,s,a,u);if(!(2&a)){var j=A&&$.call(e,"__wrapped__"),C=_&&$.call(t,"__wrapped__");if(j||C){var I=j?e.value():e,T=C?t.value():t;return u||(u=new fe),n(I,T,s,a,u)}}return!!k&&(u||(u=new fe),function(e,t,n,s,a,i){var r=2&a,o=Le(e),l=o.length;if(l!=Le(t).length&&!r)return!1;for(var c=l;c--;){var u=o[c];if(!(r?u in t:$.call(t,u)))return!1}var d=i.get(e);if(d&&i.get(t))return d==t;var p=!0;i.set(e,t),i.set(t,e);for(var h=r;++c<l;){var m=e[u=o[c]],g=t[u];if(s)var f=r?s(g,m,u,t,e,i):s(m,g,u,e,t,i);if(!(void 0===f?m===g||n(m,g,s,a,i):f)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(e),i.delete(t),p}(e,t,n,s,a,u))}(e,t,ve,n,s,a))}function ye(e,t,n,s,a,i){var r=2&a,o=e.length,l=t.length;if(o!=l&&!(r&&l>o))return!1;var c=i.get(e);if(c&&i.get(t))return c==t;var u=-1,d=!0,p=1&a?new ge:void 0;for(i.set(e,t),i.set(t,e);++u<o;){var h=e[u],m=t[u];if(s)var g=r?s(m,h,u,t,e,i):s(h,m,u,e,t,i);if(void 0!==g){if(g)continue;d=!1;break}if(p){if(!O(t,(function(e,t){if(!p.has(t)&&(h===e||n(h,e,s,a,i)))return p.add(t)}))){d=!1;break}}else if(h!==m&&!n(h,m,s,a,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function Se(e,t){var n,s,a=e.__data__;return("string"==(s=typeof(n=t))||"number"==s||"symbol"==s||"boolean"==s?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function we(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!De(e)||function(e){return!!V&&V in e}(e))&&(Ie(e)||L(e)?q:w).test(_e(e))}(n)?n:void 0}pe.prototype.clear=function(){this.__data__=ae?ae(null):{}},pe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},pe.prototype.get=function(e){var t=this.__data__;if(ae){var n=t[e];return n===s?void 0:n}return $.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:$.call(t,e)},pe.prototype.set=function(e,t){return this.__data__[e]=ae&&void 0===t?s:t,this},he.prototype.clear=function(){this.__data__=[]},he.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0||(n==t.length-1?t.pop():J.call(t,n,1),0))},he.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},he.prototype.has=function(e){return be(this.__data__,e)>-1},he.prototype.set=function(e,t){var n=this.__data__,s=be(n,e);return s<0?n.push([e,t]):n[s][1]=t,this},me.prototype.clear=function(){this.__data__={hash:new pe,map:new(ee||he),string:new pe}},me.prototype.delete=function(e){return Se(this,e).delete(e)},me.prototype.get=function(e){return Se(this,e).get(e)},me.prototype.has=function(e){return Se(this,e).has(e)},me.prototype.set=function(e,t){return Se(this,e).set(e,t),this},ge.prototype.add=ge.prototype.push=function(e){return this.__data__.set(e,s),this},ge.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.clear=function(){this.__data__=new he},fe.prototype.delete=function(e){return this.__data__.delete(e)},fe.prototype.get=function(e){return this.__data__.get(e)},fe.prototype.has=function(e){return this.__data__.has(e)},fe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof he){var s=n.__data__;if(!ee||s.length<199)return s.push([e,t]),this;n=this.__data__=new me(s)}return n.set(e,t),this};var xe=function(e){return z.call(e)};function Ae(e,t){return!!(t=t??a)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function _e(e){if(null!=e){try{return W.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ke(e,t){return e===t||e!=e&&t!=t}(Z&&xe(new Z(new ArrayBuffer(1)))!=S||ee&&xe(new ee)!=d||te&&xe(te.resolve())!=m||ne&&xe(new ne)!=f||se&&xe(new se)!=v)&&(xe=function(e){var t=z.call(e),n=t==h?e.constructor:void 0,s=n?_e(n):void 0;if(s)switch(s){case ie:return S;case re:return d;case oe:return m;case le:return f;case ce:return v}return t});var je=Array.isArray;function Ce(e){return null!=e&&Te(e.length)&&!Ie(e)}function Ie(e){var t=De(e)?z.call(e):"";return t==u||"[object GeneratorFunction]"==t}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function De(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Pe(e){return!!e&&"object"==typeof e}var Oe=P?function(e){return function(t){return e(t)}}(P):function(e){return Pe(e)&&Te(e.length)&&!!A[z.call(e)]};function Le(e){return Ce(e)?function(e,t){var n=je(e)||function(e){return function(e){return Pe(e)&&Ce(e)}(e)&&$.call(e,"callee")&&(!Q.call(e,"callee")||z.call(e)==i)}(e)?function(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}(e.length,String):[],s=n.length,a=!!s;for(var r in e)!t&&!$.call(e,r)||a&&("length"==r||Ae(r,s))||n.push(r);return n}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||Y))return X(e);var t,n,s=[];for(var a in Object(e))$.call(e,a)&&"constructor"!=a&&s.push(a);return s}(e)}e.exports=function(e,t,n){var s=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===s?ve(e,t,n):!!s}},71514(e){"use strict";e.exports=Math.abs},58968(e){"use strict";e.exports=Math.floor},94459(e){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},6188(e){"use strict";e.exports=Math.max},68002(e){"use strict";e.exports=Math.min},75880(e){"use strict";e.exports=Math.pow},70414(e){"use strict";e.exports=Math.round},73093(e,t,n){"use strict";var s=n(94459);e.exports=function(e){return s(e)||0===e?e:e<0?-1:1}},6864(e,t,n){"use strict";const s=n(16368),{hasOwnProperty:a}=Object.prototype,{propertyIsEnumerable:i}=Object,r=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}),o=this,l={concatArrays:!1,ignoreUndefined:!1},c=e=>{const t=[];for(const n in e)a.call(e,n)&&t.push(n);if(Object.getOwnPropertySymbols){const n=Object.getOwnPropertySymbols(e);for(const s of n)i.call(e,s)&&t.push(s)}return t};function u(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return c(e).forEach((n=>{r(t,n,u(e[n]))})),t}(e):s(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return c(e).forEach((n=>{r(t,n,u(e[n]))})),t}(e):e}const d=(e,t,n,s)=>(n.forEach((n=>{void 0===t[n]&&s.ignoreUndefined||(n in e&&e[n]!==Object.getPrototypeOf(e)?r(e,n,p(e[n],t[n],s)):r(e,n,u(t[n])))})),e);function p(e,t,n){return n.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,n)=>{let s=e.slice(0,0),i=0;return[e,t].forEach((t=>{const o=[];for(let n=0;n<t.length;n++)a.call(t,n)&&(o.push(String(n)),r(s,i++,t===e?t[n]:u(t[n])));s=d(s,t,c(t).filter((e=>!o.includes(e))),n)})),s})(e,t,n):s(t)&&s(e)?d(e,t,c(t),n):u(t)}e.exports=function(...e){const t=p(u(l),this!==o&&this||{},l);let n={_:{}};for(const a of e)if(void 0!==a){if(!s(a))throw new TypeError("`"+a+"` is not an Option Object");n=p(n,{_:a},t)}return n._}},25177(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},41488(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(s,a,i,r){var o=t(s),l=n[e][t(s)];return 2===o&&(l=l[a?0:1]),l.replace(/%d/i,s)}},a=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(95093))},58676(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(95093))},42353(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,a,i,r){var o=n(t),l=s[e][n(t)];return 2===o&&(l=l[a?0:1]),l.replace(/%d/i,t)}},i=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:i,monthsShort:i,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},24496(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},6947(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},82682(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},89756(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},61509(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},a={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,n,i,r){var o=s(t),l=a[e][s(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},95533(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},28959(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(s=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),s%10==1&&s%100!=11?a[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?a[1]:a[2]);var s,a}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(95093))},47777(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},54903(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(95093))},17357(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(95093))},61290(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(95093))},31545(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(95093))},11470(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var s=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],a=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,i=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:i,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:i,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(95093))},44429(e,t,n){!function(e){"use strict";function t(e,t,n){var s=e+" ";switch(n){case"ss":return s+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return s+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return s+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return s+(1===e?"dan":"dana");case"MM":return s+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return s+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,s){if("m"===n)return t?"jedna minuta":s?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},7306(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},56464(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),s=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],a=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function i(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,t,n,s){var a=e+" ";switch(n){case"s":return t||s?"pár sekund":"pár sekundami";case"ss":return t||s?a+(i(e)?"sekundy":"sekund"):a+"sekundami";case"m":return t?"minuta":s?"minutu":"minutou";case"mm":return t||s?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||s?"den":"dnem";case"dd":return t||s?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||s?"měsíc":"měsícem";case"MM":return t||s?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||s?"rok":"rokem";case"yy":return t||s?a+(i(e)?"roky":"let"):a+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},73635(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(95093))},64226(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},93601(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26111(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54697(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},77853(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?a[n][0]:a[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},60708(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(95093))},54691(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,s=this._calendarEl[e],a=t&&t.hours();return n=s,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(s=s.apply(t)),s.replace("{}",a%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(95093))},53872(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(95093))},28298(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},56195(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},66584(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},65543(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},9033(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(95093))},79402(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},43004(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},32934(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(95093))},20838(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},17730(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},56575(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(95093))},97650(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),s=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],a=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},3035(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?a[n][2]?a[n][2]:a[n][1]:s?a[n][0]:a[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3508(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},119(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},90527(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function s(e,s,a,i){var r="";switch(a){case"s":return i?"muutaman sekunnin":"muutama sekunti";case"ss":r=i?"sekunnin":"sekuntia";break;case"m":return i?"minuutin":"minuutti";case"mm":r=i?"minuutin":"minuuttia";break;case"h":return i?"tunnin":"tunti";case"hh":r=i?"tunnin":"tuntia";break;case"d":return i?"päivän":"päivä";case"dd":r=i?"päivän":"päivää";break;case"M":return i?"kuukauden":"kuukausi";case"MM":r=i?"kuukauden":"kuukautta";break;case"y":return i?"vuoden":"vuosi";case"yy":r=i?"vuoden":"vuotta"}return function(e,s){return e<10?s?n[e]:t[e]:e}(e,i)+" "+r}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},95995(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},52477(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26435(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(95093))},37892(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},85498(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},37071(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},41734(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},70217(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},77329(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},32124(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return s?a[n][0]:a[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(95093))},93383(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return s?a[n][0]:a[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(95093))},95050(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(95093))},11713(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(95093))},43861(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},s=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:s,longMonthsParse:s,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(95093))},26308(e,t,n){!function(e){"use strict";function t(e,t,n){var s=e+" ";switch(n){case"ss":return s+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return s+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return s+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return s+(1===e?"dan":"dana");case"MM":return s+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return s+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},90609(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,s){var a=e;switch(n){case"s":return s||t?"néhány másodperc":"néhány másodperce";case"ss":return a+(s||t)?" másodperc":" másodperce";case"m":return"egy"+(s||t?" perc":" perce");case"mm":return a+(s||t?" perc":" perce");case"h":return"egy"+(s||t?" óra":" órája");case"hh":return a+(s||t?" óra":" órája");case"d":return"egy"+(s||t?" nap":" napja");case"dd":return a+(s||t?" nap":" napja");case"M":return"egy"+(s||t?" hónap":" hónapja");case"MM":return a+(s||t?" hónap":" hónapja");case"y":return"egy"+(s||t?" év":" éve");case"yy":return a+(s||t?" év":" éve")}return""}function s(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return s.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return s.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},17160(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(95093))},74063(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(95093))},89374(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,s,a){var i=e+" ";switch(s){case"s":return n||a?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?i+(n||a?"sekúndur":"sekúndum"):i+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?i+(n||a?"mínútur":"mínútum"):n?i+"mínúta":i+"mínútu";case"hh":return t(e)?i+(n||a?"klukkustundir":"klukkustundum"):i+"klukkustund";case"d":return n?"dagur":a?"dag":"degi";case"dd":return t(e)?n?i+"dagar":i+(a?"daga":"dögum"):n?i+"dagur":i+(a?"dag":"degi");case"M":return n?"mánuður":a?"mánuð":"mánuði";case"MM":return t(e)?n?i+"mánuðir":i+(a?"mánuði":"mánuðum"):n?i+"mánuður":i+(a?"mánuð":"mánuði");case"y":return n||a?"ár":"ári";case"yy":return t(e)?i+(n||a?"ár":"árum"):i+(n||a?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},21827(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},88383(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},23827(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(95093))},89722(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(95093))},41794(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(95093))},27088(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},96870(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},84451(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(95093))},63164(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(95093))},6181(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?a[n][0]:a[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(95093))},98174(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},s=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:s,monthsShort:s,weekdays:"یهكشهممه_دووشهممه_سێشهممه_چوارشهممه_پێنجشهممه_ههینی_شهممه".split("_"),weekdaysShort:"یهكشهم_دووشهم_سێشهم_چوارشهم_پێنجشهم_ههینی_شهممه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره|بهیانی/,isPM:function(e){return/ئێواره/.test(e)},meridiem:function(e,t,n){return e<12?"بهیانی":"ئێواره"},calendar:{sameDay:"[ئهمرۆ كاتژمێر] LT",nextDay:"[بهیانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له %s",past:"%s",s:"چهند چركهیهك",ss:"چركه %d",m:"یهك خولهك",mm:"%d خولهك",h:"یهك كاتژمێر",hh:"%d كاتژمێر",d:"یهك ڕۆژ",dd:"%d ڕۆژ",M:"یهك مانگ",MM:"%d مانگ",y:"یهك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},78474(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},79680(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?a[n][0]:a[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},15867(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(95093))},45766(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,s){return t?a(n)[0]:s?a(n)[1]:a(n)[2]}function s(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function i(e,t,i,r){var o=e+" ";return 1===e?o+n(0,t,i[0],r):t?o+(s(e)?a(i)[1]:a(i)[0]):r?o+a(i)[1]:o+(s(e)?a(i)[1]:a(i)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,s){return t?"kelios sekundės":s?"kelių sekundžių":"kelias sekundes"},ss:i,m:n,mm:i,h:n,hh:i,d:n,dd:i,M:n,MM:i,y:n,yy:i},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(95093))},69532(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function s(e,s,a){return e+" "+n(t[a],e,s)}function a(e,s,a){return n(t[a],e,s)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:s,m:a,mm:s,h:a,hh:s,d:a,dd:s,M:a,MM:s,y:a,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},58076(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,s){var a=t.words[s];return 1===s.length?n?a[0]:a[1]:e+" "+t.correctGrammaticalCase(e,a)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},41848(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},30306(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},73739(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(95093))},99053(e,t,n){!function(e){"use strict";function t(e,t,n,s){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(95093))},86169(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function s(e,t,n,s){var a="";if(t)switch(n){case"s":a="काही सेकंद";break;case"ss":a="%d सेकंद";break;case"m":a="एक मिनिट";break;case"mm":a="%d मिनिटे";break;case"h":a="एक तास";break;case"hh":a="%d तास";break;case"d":a="एक दिवस";break;case"dd":a="%d दिवस";break;case"M":a="एक महिना";break;case"MM":a="%d महिने";break;case"y":a="एक वर्ष";break;case"yy":a="%d वर्षे"}else switch(n){case"s":a="काही सेकंदां";break;case"ss":a="%d सेकंदां";break;case"m":a="एका मिनिटा";break;case"mm":a="%d मिनिटां";break;case"h":a="एका तासा";break;case"hh":a="%d तासां";break;case"d":a="एका दिवसा";break;case"dd":a="%d दिवसां";break;case"M":a="एका महिन्या";break;case"MM":a="%d महिन्यां";break;case"y":a="एका वर्षा";break;case"yy":a="%d वर्षां"}return a.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(95093))},92297(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},73386(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},77075(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},72264(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},22274(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},8235(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(95093))},43784(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},92572(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),s=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],a=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,s){return e?/-MMM-/.test(s)?n[e.month()]:t[e.month()]:t},monthsRegex:a,monthsShortRegex:a,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},54566(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},69330(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},29849(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(95093))},94418(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),s=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function a(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var s=e+" ";switch(n){case"ss":return s+(a(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return s+(a(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return s+(a(e)?"godziny":"godzin");case"ww":return s+(a(e)?"tygodnie":"tygodni");case"MM":return s+(a(e)?"miesiące":"miesięcy");case"yy":return s+(a(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,s){return e?/D MMMM/.test(s)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:s,longMonthsParse:s,shortMonthsParse:s,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:i,M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},48303(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(95093))},79834(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},24457(e,t,n){!function(e){"use strict";function t(e,t,n){var s=" ";return(e%100>=20||e>=100&&e%100==0)&&(s=" de "),e+s+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(95093))},82271(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(s=+e,a={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),s%10==1&&s%100!=11?a[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?a[1]:a[2]);var s,a}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(95093))},1221(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},33478(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},17538(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(95093))},5784(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function s(e){return e>1&&e<5}function a(e,t,n,a){var i=e+" ";switch(n){case"s":return t||a?"pár sekúnd":"pár sekundami";case"ss":return t||a?i+(s(e)?"sekundy":"sekúnd"):i+"sekundami";case"m":return t?"minúta":a?"minútu":"minútou";case"mm":return t||a?i+(s(e)?"minúty":"minút"):i+"minútami";case"h":return t?"hodina":a?"hodinu":"hodinou";case"hh":return t||a?i+(s(e)?"hodiny":"hodín"):i+"hodinami";case"d":return t||a?"deň":"dňom";case"dd":return t||a?i+(s(e)?"dni":"dní"):i+"dňami";case"M":return t||a?"mesiac":"mesiacom";case"MM":return t||a?i+(s(e)?"mesiace":"mesiacov"):i+"mesiacmi";case"y":return t||a?"rok":"rokom";case"yy":return t||a?i+(s(e)?"roky":"rokov"):i+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},46637(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a=e+" ";switch(n){case"s":return t||s?"nekaj sekund":"nekaj sekundami";case"ss":return a+(1===e?t?"sekundo":"sekundi":2===e?t||s?"sekundi":"sekundah":e<5?t||s?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return a+(1===e?t?"minuta":"minuto":2===e?t||s?"minuti":"minutama":e<5?t||s?"minute":"minutami":t||s?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return a+(1===e?t?"ura":"uro":2===e?t||s?"uri":"urama":e<5?t||s?"ure":"urami":t||s?"ur":"urami");case"d":return t||s?"en dan":"enim dnem";case"dd":return a+(1===e?t||s?"dan":"dnem":2===e?t||s?"dni":"dnevoma":t||s?"dni":"dnevi");case"M":return t||s?"en mesec":"enim mesecem";case"MM":return a+(1===e?t||s?"mesec":"mesecem":2===e?t||s?"meseca":"mesecema":e<5?t||s?"mesece":"meseci":t||s?"mesecev":"meseci");case"y":return t||s?"eno leto":"enim letom";case"yy":return a+(1===e?t||s?"leto":"letom":2===e?t||s?"leti":"letoma":e<5?t||s?"leta":"leti":t||s?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},86794(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3322(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,s,a){var i,r=t.words[s];return 1===s.length?"y"===s&&n?"једна година":a||n?r[0]:r[1]:(i=t.correctGrammaticalCase(e,r),"yy"===s&&n&&"годину"===i?e+" година":e+" "+i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45719(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,s,a){var i,r=t.words[s];return 1===s.length?"y"===s&&n?"jedna godina":a||n?r[0]:r[1]:(i=t.correctGrammaticalCase(e,r),"yy"===s&&n&&"godinu"===i?e+" godina":e+" "+i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},56e3(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(95093))},41011(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(95093))},40748(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(95093))},11025(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11885(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(95093))},28861(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},86571(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},55802(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(95093))},59527(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var s=e%10;return e+(t[s]||t[e%100-s]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},29231(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},31052(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,s,a){var i=function(e){var n=Math.floor(e%1e3/100),s=Math.floor(e%100/10),a=e%10,i="";return n>0&&(i+=t[n]+"vatlh"),s>0&&(i+=(""!==i?" ":"")+t[s]+"maH"),a>0&&(i+=(""!==i?" ":"")+t[a]),""===i?"pagh":i}(e);switch(s){case"ss":return i+" lup";case"mm":return i+" tup";case"hh":return i+" rep";case"dd":return i+" jaj";case"MM":return i+" jar";case"yy":return i+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},85096(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var s=e%10;return e+(t[s]||t[e%100-s]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},79846(e,t,n){!function(e){"use strict";function t(e,t,n,s){var a={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return s||t?a[n][0]:a[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},97711(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(95093))},81765(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(95093))},48414(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var s=100*e+t;return s<600?"يېرىم كېچە":s<900?"سەھەر":s<1130?"چۈشتىن بۇرۇن":s<1230?"چۈش":s<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(95093))},16618(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(s=+e,a={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),s%10==1&&s%100!=11?a[0]:s%10>=2&&s%10<=4&&(s%100<10||s%100>=20)?a[1]:a[2]);var s,a}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(95093))},57777(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},72475(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(95093))},57609(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(95093))},21135(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},64051(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},82218(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(95093))},52648(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(95093))},1632(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1200?"上午":1200===s?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},31541(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},50304(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var s=100*e+t;return s<600?"凌晨":s<900?"早上":s<1130?"上午":s<1230?"中午":s<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},35358(e,t,n){var s={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function a(e){var t=i(e);return n(t)}function i(e){if(!n.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}a.keys=function(){return Object.keys(s)},a.resolve=i,e.exports=a,a.id=35358},95093(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,s;function a(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,s=[],a=e.length;for(n=0;n<a;++n)s.push(t(e[n],n));return s}function h(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,s){return Mt(e,t,n,s,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function f(e){var t=null,n=!1,a=e._d&&!isNaN(e._d.getTime());return a&&(t=g(e),n=s.call(t.parsedDateParts,(function(e){return null!=e})),a=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?a:(e._isValid=a,e._isValid)}function b(e){var t=m(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}s=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),s=n.length>>>0;for(t=0;t<s;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=a.momentProperties=[],y=!1;function S(e,t){var n,s,a,i=v.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),i>0)for(n=0;n<i;n++)c(a=t[s=v[n]])||(e[s]=a);return e}function w(e){S(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,a.updateOffset(this),y=!1)}function x(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function A(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,t){var n=!0;return h((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var s,i,r,l=[],c=arguments.length;for(i=0;i<c;i++){if(s="","object"==typeof arguments[i]){for(r in s+="\n["+i+"] ",arguments[0])o(arguments[0],r)&&(s+=r+": "+arguments[0][r]+", ");s=s.slice(0,-2)}else s=arguments[i];l.push(s)}A(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var k,j={};function C(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),j[e]||(A(t),j[e]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var n,s=h({},e);for(n in t)o(t,n)&&(r(e[n])&&r(t[n])?(s[n]={},h(s[n],e[n]),h(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&r(e[n])&&(s[n]=h({},s[n]));return s}function D(e){null!=e&&this.set(e)}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,k=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};function P(e,t,n){var s=""+Math.abs(e),a=t-s.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+s}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},E={};function R(e,t,n,s){var a=s;"string"==typeof s&&(a=function(){return this[s]()}),e&&(E[e]=a),t&&(E[t[0]]=function(){return P(a.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=N(t,e.localeData()),M[t]=M[t]||function(e){var t,n,s,a=e.match(O);for(t=0,n=a.length;t<n;t++)E[a[t]]?a[t]=E[a[t]]:a[t]=(s=a[t]).match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"");return function(t){var s,i="";for(s=0;s<n;s++)i+=I(a[s])?a[s].call(t,e):a[s];return i}}(t),M[t](e)):e.localeData().invalidDate()}function N(e,t){var n=5;function s(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,s),L.lastIndex=0,n-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function B(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function Y(e){var t,n,s={};for(n in e)o(e,n)&&(t=B(n))&&(s[t]=e[n]);return s}var H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};var V,W=/\d/,$=/\d\d/,z=/\d{3}/,q=/\d{4}/,G=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,X=/\d{1,3}/,Z=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,ie=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,re=/^[1-9]\d?/,oe=/^([1-9]\d|\d)/;function le(e,t,n){V[e]=I(t)?t:function(e,s){return e&&n?n:t}}function ce(e,t){return o(V,e)?V[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,s,a){return t||n||s||a}))))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function pe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}V={};var he={};function me(e,t){var n,s,a=t;for("string"==typeof e&&(e=[e]),u(t)&&(a=function(e,n){n[t]=pe(e)}),s=e.length,n=0;n<s;n++)he[e[n]]=a}function ge(e,t){me(e,(function(e,n,s,a){s._w=s._w||{},t(e,s._w,s,a)}))}function fe(e,t,n){null!=t&&o(he,e)&&he[e](t,n._a,n,e)}function be(e){return e%4==0&&e%100!=0||e%400==0}var ve=0,ye=1,Se=2,we=3,xe=4,Ae=5,_e=6,ke=7,je=8;function Ce(e){return be(e)?366:365}R("Y",0,0,(function(){var e=this.year();return e<=9999?P(e,4):"+"+e})),R(0,["YY",2],0,(function(){return this.year()%100})),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",K,$),le("YYYY",Z,q),le("YYYYY",ee,G),le("YYYYYY",ee,G),me(["YYYYY","YYYYYY"],ve),me("YYYY",(function(e,t){t[ve]=2===e.length?a.parseTwoDigitYear(e):pe(e)})),me("YY",(function(e,t){t[ve]=a.parseTwoDigitYear(e)})),me("Y",(function(e,t){t[ve]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return pe(e)+(pe(e)>68?1900:2e3)};var Ie,Te=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Oe(this,e,n),a.updateOffset(this,t),this):Pe(this,e)}}function Pe(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Oe(e,t,n){var s,a,i,r,o;if(e.isValid()&&!isNaN(n)){switch(s=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(a?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(a?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(a?s.setUTCHours(n):s.setHours(n));case"Date":return void(a?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}i=n,r=e.month(),o=29!==(o=e.date())||1!==r||be(i)?o:28,a?s.setUTCFullYear(i,r,o):s.setFullYear(i,r,o)}}function Le(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,s=(t%(n=12)+n)%n;return e+=(t-s)/12,1===s?be(e)?29:28:31-s%7%2}Ie=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},R("M",["MM",2],"Mo",(function(){return this.month()+1})),R("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),R("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),le("M",K,re),le("MM",K,$),le("MMM",(function(e,t){return t.monthsShortRegex(e)})),le("MMMM",(function(e,t){return t.monthsRegex(e)})),me(["M","MM"],(function(e,t){t[ye]=pe(e)-1})),me(["MMM","MMMM"],(function(e,t,n,s){var a=n._locale.monthsParse(e,s,n._strict);null!=a?t[ye]=a:g(n).invalidMonth=e}));var Me="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ue=ie,Ne=ie;function Fe(e,t,n){var s,a,i,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],s=0;s<12;++s)i=m([2e3,s]),this._shortMonthsParse[s]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[s]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=Ie.call(this._shortMonthsParse,r))?a:null:-1!==(a=Ie.call(this._longMonthsParse,r))?a:null:"MMM"===t?-1!==(a=Ie.call(this._shortMonthsParse,r))||-1!==(a=Ie.call(this._longMonthsParse,r))?a:null:-1!==(a=Ie.call(this._longMonthsParse,r))||-1!==(a=Ie.call(this._shortMonthsParse,r))?a:null}function Be(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=pe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,s=e.date();return s=s<29?s:Math.min(s,Le(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,s):e._d.setMonth(n,s),e}function Ye(e){return null!=e?(Be(this,e),a.updateOffset(this,!0),this):Pe(this,"Month")}function He(){function e(e,t){return t.length-e.length}var t,n,s,a,i=[],r=[],o=[];for(t=0;t<12;t++)n=m([2e3,t]),s=ue(this.monthsShort(n,"")),a=ue(this.months(n,"")),i.push(s),r.push(a),o.push(a),o.push(s);i.sort(e),r.sort(e),o.sort(e),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ve(e,t,n,s,a,i,r){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,a,i,r),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,a,i,r),o}function We(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function $e(e,t,n){var s=7+t-n;return-(7+We(e,0,s).getUTCDay()-t)%7+s-1}function ze(e,t,n,s,a){var i,r,o=1+7*(t-1)+(7+n-s)%7+$e(e,s,a);return o<=0?r=Ce(i=e-1)+o:o>Ce(e)?(i=e+1,r=o-Ce(e)):(i=e,r=o),{year:i,dayOfYear:r}}function qe(e,t,n){var s,a,i=$e(e.year(),t,n),r=Math.floor((e.dayOfYear()-i-1)/7)+1;return r<1?s=r+Ge(a=e.year()-1,t,n):r>Ge(e.year(),t,n)?(s=r-Ge(e.year(),t,n),a=e.year()+1):(a=e.year(),s=r),{week:s,year:a}}function Ge(e,t,n){var s=$e(e,t,n),a=$e(e+1,t,n);return(Ce(e)-s+a)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),le("w",K,re),le("ww",K,$),le("W",K,re),le("WW",K,$),ge(["w","ww","W","WW"],(function(e,t,n,s){t[s.substr(0,1)]=pe(e)}));function Ke(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),le("d",K),le("e",K),le("E",K),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,s){var a=n._locale.weekdaysParse(e,s,n._strict);null!=a?t.d=a:g(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,s){t[s]=pe(e)}));var Qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Je="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Xe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=ie,et=ie,tt=ie;function nt(e,t,n){var s,a,i,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)i=m([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=Ie.call(this._weekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Ie.call(this._shortWeekdaysParse,r))?a:null:-1!==(a=Ie.call(this._minWeekdaysParse,r))?a:null:"dddd"===t?-1!==(a=Ie.call(this._weekdaysParse,r))||-1!==(a=Ie.call(this._shortWeekdaysParse,r))||-1!==(a=Ie.call(this._minWeekdaysParse,r))?a:null:"ddd"===t?-1!==(a=Ie.call(this._shortWeekdaysParse,r))||-1!==(a=Ie.call(this._weekdaysParse,r))||-1!==(a=Ie.call(this._minWeekdaysParse,r))?a:null:-1!==(a=Ie.call(this._minWeekdaysParse,r))||-1!==(a=Ie.call(this._weekdaysParse,r))||-1!==(a=Ie.call(this._shortWeekdaysParse,r))?a:null}function st(){function e(e,t){return t.length-e.length}var t,n,s,a,i,r=[],o=[],l=[],c=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),s=ue(this.weekdaysMin(n,"")),a=ue(this.weekdaysShort(n,"")),i=ue(this.weekdays(n,"")),r.push(s),o.push(a),l.push(i),c.push(s),c.push(a),c.push(i);r.sort(e),o.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function at(){return this.hours()%12||12}function it(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function rt(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,at),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+at.apply(this)+P(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+at.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),it("a",!0),it("A",!1),le("a",rt),le("A",rt),le("H",K,oe),le("h",K,re),le("k",K,re),le("HH",K,$),le("hh",K,$),le("kk",K,$),le("hmm",Q),le("hmmss",J),le("Hmm",Q),le("Hmmss",J),me(["H","HH"],we),me(["k","kk"],(function(e,t,n){var s=pe(e);t[we]=24===s?0:s})),me(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),me(["h","hh"],(function(e,t,n){t[we]=pe(e),g(n).bigHour=!0})),me("hmm",(function(e,t,n){var s=e.length-2;t[we]=pe(e.substr(0,s)),t[xe]=pe(e.substr(s)),g(n).bigHour=!0})),me("hmmss",(function(e,t,n){var s=e.length-4,a=e.length-2;t[we]=pe(e.substr(0,s)),t[xe]=pe(e.substr(s,2)),t[Ae]=pe(e.substr(a)),g(n).bigHour=!0})),me("Hmm",(function(e,t,n){var s=e.length-2;t[we]=pe(e.substr(0,s)),t[xe]=pe(e.substr(s))})),me("Hmmss",(function(e,t,n){var s=e.length-4,a=e.length-2;t[we]=pe(e.substr(0,s)),t[xe]=pe(e.substr(s,2)),t[Ae]=pe(e.substr(a))}));var ot=De("Hours",!0);var lt,ct={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Me,monthsShort:Ee,week:{dow:0,doy:6},weekdays:Qe,weekdaysMin:Xe,weekdaysShort:Je,meridiemParse:/[ap]\.?m?\.?/i},ut={},dt={};function pt(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n+=1)if(e[n]!==t[n])return n;return s}function ht(e){return e?e.toLowerCase().replace("_","-"):e}function mt(t){var s=null;if(void 0===ut[t]&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{s=lt._abbr,n(35358)("./"+t),gt(s)}catch(e){ut[t]=null}return ut[t]}function gt(e,t){var n;return e&&((n=c(t)?bt(e):ft(e,t))?lt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),lt._abbr}function ft(e,t){if(null!==t){var n,s=ct;if(t.abbr=e,null!=ut[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])s=ut[t.parentLocale]._config;else{if(null==(n=mt(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return ut[e]=new D(T(s,t)),dt[e]&&dt[e].forEach((function(e){ft(e.name,e.config)})),gt(e),ut[e]}return delete ut[e],null}function bt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return lt;if(!i(e)){if(t=mt(e))return t;e=[e]}return function(e){for(var t,n,s,a,i=0;i<e.length;){for(t=(a=ht(e[i]).split("-")).length,n=(n=ht(e[i+1]))?n.split("-"):null;t>0;){if(s=mt(a.slice(0,t).join("-")))return s;if(n&&n.length>=t&&pt(a,n)>=t-1)break;t--}i++}return lt}(e)}function vt(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[Se]<1||n[Se]>Le(n[ve],n[ye])?Se:n[we]<0||n[we]>24||24===n[we]&&(0!==n[xe]||0!==n[Ae]||0!==n[_e])?we:n[xe]<0||n[xe]>59?xe:n[Ae]<0||n[Ae]>59?Ae:n[_e]<0||n[_e]>999?_e:-1,g(e)._overflowDayOfYear&&(t<ve||t>Se)&&(t=Se),g(e)._overflowWeeks&&-1===t&&(t=ke),g(e)._overflowWeekday&&-1===t&&(t=je),g(e).overflow=t),e}var yt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,St=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,xt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],At=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_t=/^\/?Date\((-?\d+)/i,kt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,s,a,i,r,o=e._i,l=yt.exec(o)||St.exec(o),c=xt.length,u=At.length;if(l){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(xt[t][1].exec(l[1])){a=xt[t][0],s=!1!==xt[t][2];break}if(null==a)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(At[t][1].exec(l[3])){i=(l[2]||" ")+At[t][0];break}if(null==i)return void(e._isValid=!1)}if(!s&&null!=i)return void(e._isValid=!1);if(l[4]){if(!wt.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=a+(i||"")+(r||""),Ot(e)}else e._isValid=!1}function It(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tt(e){var t,n,s,a,i,r,o,l,c=kt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(n=c[4],s=c[3],a=c[2],i=c[5],r=c[6],o=c[7],l=[It(n),Ee.indexOf(s),parseInt(a,10),parseInt(i,10),parseInt(r,10)],o&&l.push(parseInt(o,10)),t=l,!function(e,t,n){return!e||Je.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}(c[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return jt[e];if(t)return 0;var s=parseInt(n,10),a=s%100;return(s-a)/100*60+a}(c[8],c[9],c[10]),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Dt(e,t,n){return null!=e?e:null!=t?t:n}function Pt(e){var t,n,s,i,r,o=[];if(!e._d){for(s=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[Se]&&null==e._a[ye]&&function(e){var t,n,s,a,i,r,o,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(i=1,r=4,n=Dt(t.GG,e._a[ve],qe(Et(),1,4).year),s=Dt(t.W,1),((a=Dt(t.E,1))<1||a>7)&&(l=!0)):(i=e._locale._week.dow,r=e._locale._week.doy,c=qe(Et(),i,r),n=Dt(t.gg,e._a[ve],c.year),s=Dt(t.w,c.week),null!=t.d?((a=t.d)<0||a>6)&&(l=!0):null!=t.e?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),s<1||s>Ge(n,i,r)?g(e)._overflowWeeks=!0:null!=l?g(e)._overflowWeekday=!0:(o=ze(n,s,a,i,r),e._a[ve]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=Dt(e._a[ve],s[ve]),(e._dayOfYear>Ce(r)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=We(r,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[Se]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=s[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[xe]&&0===e._a[Ae]&&0===e._a[_e]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?We:Ve).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function Ot(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],g(e).empty=!0;var t,n,s,i,r,o,l,c=""+e._i,u=c.length,d=0;for(l=(s=N(e._f,e._locale).match(O)||[]).length,t=0;t<l;t++)i=s[t],(n=(c.match(ce(i,e))||[])[0])&&((r=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(r),c=c.slice(c.indexOf(n)+n.length),d+=n.length),E[i]?(n?g(e).empty=!1:g(e).unusedTokens.push(i),fe(i,n,e)):e._strict&&!n&&g(e).unusedTokens.push(i);g(e).charsLeftOver=u-d,c.length>0&&g(e).unusedInput.push(c),e._a[we]<=12&&!0===g(e).bigHour&&e._a[we]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),null!==(o=g(e).era)&&(e._a[ve]=e._locale.erasConvertYear(o,e._a[ve])),Pt(e),vt(e)}else Tt(e);else Ct(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||bt(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),x(t)?new w(vt(t)):(d(t)?e._d=t:i(n)?function(e){var t,n,s,a,i,r,o=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<l;a++)i=0,r=!1,t=S({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],Ot(t),f(t)&&(r=!0),i+=g(t).charsLeftOver,i+=10*g(t).unusedTokens.length,g(t).score=i,o?i<s&&(s=i,n=t):(null==s||i<s||r)&&(s=i,n=t,r&&(o=!0));h(e,n||t)}(e):n?Ot(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=_t.exec(e._i);null===t?(Ct(e),!1===e._isValid&&(delete e._isValid,Tt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):i(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),Pt(e)):r(t)?function(e){if(!e._d){var t=Y(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Pt(e)}}(e):u(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),f(e)||(e._d=null),e))}function Mt(e,t,n,s,a){var o,c={};return!0!==t&&!1!==t||(s=t,t=void 0),!0!==n&&!1!==n||(s=n,n=void 0),(r(e)&&l(e)||i(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=a,c._l=n,c._i=e,c._f=t,c._strict=s,(o=new w(vt(Lt(c))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function Et(e,t,n,s){return Mt(e,t,n,s,!1)}a.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Rt=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()})),Ut=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Et.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()}));function Nt(e,t){var n,s;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Et();for(n=t[0],s=1;s<t.length;++s)t[s].isValid()&&!t[s][e](n)||(n=t[s]);return n}var Ft=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bt(e){var t=Y(e),n=t.year||0,s=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,r=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,s=!1,a=Ft.length;for(t in e)if(o(e,t)&&(-1===Ie.call(Ft,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<a;++n)if(e[Ft[n]]){if(s)return!1;parseFloat(e[Ft[n]])!==pe(e[Ft[n]])&&(s=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+r+7*i,this._months=+a+3*s+12*n,this._data={},this._locale=bt(),this._bubble()}function Yt(e){return e instanceof Bt}function Ht(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Vt(e,t){R(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)}))}Vt("Z",":"),Vt("ZZ",""),le("Z",ae),le("ZZ",ae),me(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=$t(ae,e)}));var Wt=/([\+\-]|\d\d)/gi;function $t(e,t){var n,s,a=(t||"").match(e);return null===a?null:0===(s=60*(n=((a[a.length-1]||[])+"").match(Wt)||["-",0,0])[1]+pe(n[2]))?0:"+"===n[0]?s:-s}function zt(e,t){var n,s;return t._isUTC?(n=t.clone(),s=(x(e)||d(e)?e.valueOf():Et(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),a.updateOffset(n,!1),n):Et(e).local()}function qt(e){return-Math.round(e._d.getTimezoneOffset())}function Gt(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Kt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Qt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Jt(e,t){var n,s,a,i,r,l,c=e,d=null;return Yt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Kt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:pe(d[Se])*n,h:pe(d[we])*n,m:pe(d[xe])*n,s:pe(d[Ae])*n,ms:pe(Ht(1e3*d[_e]))*n}):(d=Qt.exec(e))?(n="-"===d[1]?-1:1,c={y:Xt(d[2],n),M:Xt(d[3],n),w:Xt(d[4],n),d:Xt(d[5],n),h:Xt(d[6],n),m:Xt(d[7],n),s:Xt(d[8],n)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(i=Et(c.from),r=Et(c.to),a=i.isValid()&&r.isValid()?(r=zt(r,i),i.isBefore(r)?l=Zt(i,r):((l=Zt(r,i)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),s=new Bt(c),Yt(e)&&o(e,"_locale")&&(s._locale=e._locale),Yt(e)&&o(e,"_isValid")&&(s._isValid=e._isValid),s}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){return function(n,s){var a;return null===s||isNaN(+s)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=s,s=a),tn(this,Jt(n,s),e),this}}function tn(e,t,n,s){var i=t._milliseconds,r=Ht(t._days),o=Ht(t._months);e.isValid()&&(s=s??!0,o&&Be(e,Pe(e,"Month")+o*n),r&&Oe(e,"Date",Pe(e,"Date")+r*n),i&&e._d.setTime(e._d.valueOf()+i*n),s&&a.updateOffset(e,r||o))}Jt.fn=Bt.prototype,Jt.invalid=function(){return Jt(NaN)};var nn=en(1,"add"),sn=en(-1,"subtract");function an(e){return"string"==typeof e||e instanceof String}function rn(e){return x(e)||d(e)||an(e)||u(e)||function(e){var t=i(e),n=!1;return t&&(n=0===e.filter((function(t){return!u(t)&&an(e)})).length),t&&n}(e)||function(e){var t,n,s=r(e)&&!l(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=i.length;for(t=0;t<c;t+=1)n=i[t],a=a||o(e,n);return s&&a}(e)||null==e}function on(e,t){if(e.date()<t.date())return-on(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return-(n+(t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s)))||0}function ln(e){var t;return void 0===e?this._locale._abbr:(null!=(t=bt(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cn=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function un(){return this._locale}var dn=1e3,pn=6e4,hn=36e5,mn=126227808e5;function gn(e,t){return(e%t+t)%t}function fn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mn:new Date(e,t,n).valueOf()}function bn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mn:Date.UTC(e,t,n)}function vn(e,t){return t.erasAbbrRegex(e)}function yn(){var e,t,n,s,a,i=[],r=[],o=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),s=ue(c[e].abbr),a=ue(c[e].narrow),r.push(n),i.push(s),o.push(a),l.push(n),l.push(s),l.push(a);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Sn(e,t){R(0,[e,e.length],0,t)}function wn(e,t,n,s,a){var i;return null==e?qe(this,s,a).year:(t>(i=Ge(e,s,a))&&(t=i),xn.call(this,e,t,n,s,a))}function xn(e,t,n,s,a){var i=ze(e,t,n,s,a),r=We(i.year,0,i.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),le("N",vn),le("NN",vn),le("NNN",vn),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),me(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,s){var a=n._locale.erasParse(e,s,n._strict);a?g(n).era=a:g(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),me(["y","yy","yyy","yyyy"],ve),me(["yo"],(function(e,t,n,s){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ve]=n._locale.eraYearOrdinalParse(e,a):t[ve]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Sn("gggg","weekYear"),Sn("ggggg","weekYear"),Sn("GGGG","isoWeekYear"),Sn("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",K,$),le("gg",K,$),le("GGGG",Z,q),le("gggg",Z,q),le("GGGGG",ee,G),le("ggggg",ee,G),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,s){t[s.substr(0,2)]=pe(e)})),ge(["gg","GG"],(function(e,t,n,s){t[s]=a.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),le("Q",W),me("Q",(function(e,t){t[ye]=3*(pe(e)-1)})),R("D",["DD",2],"Do","date"),le("D",K,re),le("DD",K,$),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),me(["D","DD"],Se),me("Do",(function(e,t){t[Se]=pe(e.match(K)[0])}));var An=De("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",X),le("DDDD",z),me(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=pe(e)})),R("m",["mm",2],0,"minute"),le("m",K,oe),le("mm",K,$),me(["m","mm"],xe);var _n=De("Minutes",!1);R("s",["ss",2],0,"second"),le("s",K,oe),le("ss",K,$),me(["s","ss"],Ae);var kn,jn,Cn=De("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",X,W),le("SS",X,$),le("SSS",X,z),kn="SSSS";kn.length<=9;kn+="S")le(kn,te);function In(e,t){t[_e]=pe(1e3*("0."+e))}for(kn="S";kn.length<=9;kn+="S")me(kn,In);jn=De("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var Tn=w.prototype;function Dn(e){return e}Tn.add=nn,Tn.calendar=function(e,t){1===arguments.length&&(arguments[0]?rn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=r(e)&&!l(e),s=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)s=s||o(e,a[t]);return n&&s}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Et(),s=zt(n,this).startOf("day"),i=a.calendarFormat(this,s)||"sameElse",c=t&&(I(t[i])?t[i].call(this,n):t[i]);return this.format(c||this.localeData().calendar(i,this,Et(n)))},Tn.clone=function(){return new w(this)},Tn.diff=function(e,t,n){var s,a,i;if(!this.isValid())return NaN;if(!(s=zt(e,this)).isValid())return NaN;switch(a=6e4*(s.utcOffset()-this.utcOffset()),t=B(t)){case"year":i=on(this,s)/12;break;case"month":i=on(this,s);break;case"quarter":i=on(this,s)/3;break;case"second":i=(this-s)/1e3;break;case"minute":i=(this-s)/6e4;break;case"hour":i=(this-s)/36e5;break;case"day":i=(this-s-a)/864e5;break;case"week":i=(this-s-a)/6048e5;break;default:i=this-s}return n?i:de(i)},Tn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:fn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=hn-gn(t+(this._isUTC?0:this.utcOffset()*pn),hn)-1;break;case"minute":t=this._d.valueOf(),t+=pn-gn(t,pn)-1;break;case"second":t=this._d.valueOf(),t+=dn-gn(t,dn)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},Tn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},Tn.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Et(e).isValid())?Jt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Tn.fromNow=function(e){return this.from(Et(),e)},Tn.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||Et(e).isValid())?Jt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Tn.toNow=function(e){return this.to(Et(),e)},Tn.get=function(e){return I(this[e=B(e)])?this[e]():this},Tn.invalidAt=function(){return g(this).overflow},Tn.isAfter=function(e,t){var n=x(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},Tn.isBefore=function(e,t){var n=x(e)?e:Et(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},Tn.isBetween=function(e,t,n,s){var a=x(e)?e:Et(e),i=x(t)?t:Et(t);return!!(this.isValid()&&a.isValid()&&i.isValid())&&("("===(s=s||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===s[1]?this.isBefore(i,n):!this.isAfter(i,n))},Tn.isSame=function(e,t){var n,s=x(e)?e:Et(e);return!(!this.isValid()||!s.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===s.valueOf():(n=s.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},Tn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},Tn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},Tn.isValid=function(){return f(this)},Tn.lang=cn,Tn.locale=ln,Tn.localeData=un,Tn.max=Ut,Tn.min=Rt,Tn.parsingFlags=function(){return h({},g(this))},Tn.set=function(e,t){if("object"==typeof e){var n,s=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:H[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=Y(e)),a=s.length;for(n=0;n<a;n++)this[s[n].unit](e[s[n].unit])}else if(I(this[e=B(e)]))return this[e](t);return this},Tn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?bn:fn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=gn(t+(this._isUTC?0:this.utcOffset()*pn),hn);break;case"minute":t=this._d.valueOf(),t-=gn(t,pn);break;case"second":t=this._d.valueOf(),t-=gn(t,dn)}return this._d.setTime(t),a.updateOffset(this,!0),this},Tn.subtract=sn,Tn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Tn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Tn.toDate=function(){return new Date(this.valueOf())},Tn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Tn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",a="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+s+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Tn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Tn.toJSON=function(){return this.isValid()?this.toISOString():null},Tn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Tn.unix=function(){return Math.floor(this.valueOf()/1e3)},Tn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Tn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Tn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].name;if(s[e].until<=n&&n<=s[e].since)return s[e].name}return""},Tn.eraNarrow=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].narrow;if(s[e].until<=n&&n<=s[e].since)return s[e].narrow}return""},Tn.eraAbbr=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until)return s[e].abbr;if(s[e].until<=n&&n<=s[e].since)return s[e].abbr}return""},Tn.eraYear=function(){var e,t,n,s,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,s=this.clone().startOf("day").valueOf(),i[e].since<=s&&s<=i[e].until||i[e].until<=s&&s<=i[e].since)return(this.year()-a(i[e].since).year())*n+i[e].offset;return this.year()},Tn.year=Te,Tn.isLeapYear=function(){return be(this.year())},Tn.weekYear=function(e){return wn.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Tn.isoWeekYear=function(e){return wn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},Tn.quarter=Tn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Tn.month=Ye,Tn.daysInMonth=function(){return Le(this.year(),this.month())},Tn.week=Tn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Tn.isoWeek=Tn.isoWeeks=function(e){var t=qe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Tn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},Tn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ge(this.weekYear(),e.dow,e.doy)},Tn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},Tn.isoWeeksInISOWeekYear=function(){return Ge(this.isoWeekYear(),1,4)},Tn.date=An,Tn.day=Tn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=Pe(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Tn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Tn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},Tn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Tn.hour=Tn.hours=ot,Tn.minute=Tn.minutes=_n,Tn.second=Tn.seconds=Cn,Tn.millisecond=Tn.milliseconds=jn,Tn.utcOffset=function(e,t,n){var s,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=$t(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(s=qt(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),i!==e&&(!t||this._changeInProgress?tn(this,Jt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:qt(this)},Tn.utc=function(e){return this.utcOffset(0,e)},Tn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qt(this),"m")),this},Tn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=$t(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},Tn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Et(e).utcOffset():0,(this.utcOffset()-e)%60==0)},Tn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Tn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Tn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Tn.isUtc=Gt,Tn.isUTC=Gt,Tn.zoneAbbr=function(){return this._isUTC?"UTC":""},Tn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Tn.dates=_("dates accessor is deprecated. Use date instead.",An),Tn.months=_("months accessor is deprecated. Use month instead",Ye),Tn.years=_("years accessor is deprecated. Use year instead",Te),Tn.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),Tn.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return S(t,this),(t=Lt(t))._a?(e=t._isUTC?m(t._a):Et(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,a=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),r=0;for(s=0;s<a;s++)(n&&e[s]!==t[s]||!n&&pe(e[s])!==pe(t[s]))&&r++;return r+i}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Pn=D.prototype;function On(e,t,n,s){var a=bt(),i=m().set(s,t);return a[n](i,e)}function Ln(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return On(e,t,n,"month");var s,a=[];for(s=0;s<12;s++)a[s]=On(e,s,n,"month");return a}function Mn(e,t,n,s){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var a,i=bt(),r=e?i._week.dow:0,o=[];if(null!=n)return On(t,(n+r)%7,s,"day");for(a=0;a<7;a++)o[a]=On(t,(a+r)%7,s,"day");return o}Pn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return I(s)?s.call(t,n):s},Pn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(O).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Pn.invalidDate=function(){return this._invalidDate},Pn.ordinal=function(e){return this._ordinal.replace("%d",e)},Pn.preparse=Dn,Pn.postformat=Dn,Pn.relativeTime=function(e,t,n,s){var a=this._relativeTime[n];return I(a)?a(e,t,n,s):a.replace(/%d/i,e)},Pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return I(n)?n(t):n.replace(/%s/i,t)},Pn.set=function(e){var t,n;for(n in e)o(e,n)&&(I(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Pn.eras=function(e,t){var n,s,i,r=this._eras||bt("en")._eras;for(n=0,s=r.length;n<s;++n)switch("string"==typeof r[n].since&&(i=a(r[n].since).startOf("day"),r[n].since=i.valueOf()),typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":i=a(r[n].until).startOf("day").valueOf(),r[n].until=i.valueOf()}return r},Pn.erasParse=function(e,t,n){var s,a,i,r,o,l=this.eras();for(e=e.toUpperCase(),s=0,a=l.length;s<a;++s)if(i=l[s].name.toUpperCase(),r=l[s].abbr.toUpperCase(),o=l[s].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[s];break;case"NNNN":if(i===e)return l[s];break;case"NNNNN":if(o===e)return l[s]}else if([i,r,o].indexOf(e)>=0)return l[s]},Pn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},Pn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||yn.call(this),e?this._erasAbbrRegex:this._erasRegex},Pn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||yn.call(this),e?this._erasNameRegex:this._erasRegex},Pn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||yn.call(this),e?this._erasNarrowRegex:this._erasRegex},Pn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Pn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Pn.monthsParse=function(e,t,n){var s,a,i;if(this._monthsParseExact)return Fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(a=m([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[s]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},Pn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ne),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Pn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Ue),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Pn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Pn.firstDayOfYear=function(){return this._week.doy},Pn.firstDayOfWeek=function(){return this._week.dow},Pn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ke(n,this._week.dow):e?n[e.day()]:n},Pn.weekdaysMin=function(e){return!0===e?Ke(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Pn.weekdaysShort=function(e){return!0===e?Ke(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Pn.weekdaysParse=function(e,t,n){var s,a,i;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(a=m([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[s]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},Pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||st.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},gt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===pe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=_("moment.lang is deprecated. Use moment.locale instead.",gt),a.langData=_("moment.langData is deprecated. Use moment.localeData instead.",bt);var En=Math.abs;function Rn(e,t,n,s){var a=Jt(t,n);return e._milliseconds+=s*a._milliseconds,e._days+=s*a._days,e._months+=s*a._months,e._bubble()}function Un(e){return e<0?Math.floor(e):Math.ceil(e)}function Nn(e){return 4800*e/146097}function Fn(e){return 146097*e/4800}function Bn(e){return function(){return this.as(e)}}var Yn=Bn("ms"),Hn=Bn("s"),Vn=Bn("m"),Wn=Bn("h"),$n=Bn("d"),zn=Bn("w"),qn=Bn("M"),Gn=Bn("Q"),Kn=Bn("y"),Qn=Yn;function Jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Xn=Jn("milliseconds"),Zn=Jn("seconds"),es=Jn("minutes"),ts=Jn("hours"),ns=Jn("days"),ss=Jn("months"),as=Jn("years");var is=Math.round,rs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function os(e,t,n,s,a){return a.relativeTime(t||1,!!n,e,s)}var ls=Math.abs;function cs(e){return(e>0)-(e<0)||+e}function us(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,a,i,r,o,l=ls(this._milliseconds)/1e3,c=ls(this._days),u=ls(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(u/12),u%=12,s=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",i=cs(this._months)!==cs(d)?"-":"",r=cs(this._days)!==cs(d)?"-":"",o=cs(this._milliseconds)!==cs(d)?"-":"",a+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(c?r+c+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+s+"S":"")):"P0D"}var ds=Bt.prototype;return ds.isValid=function(){return this._isValid},ds.abs=function(){var e=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),e.milliseconds=En(e.milliseconds),e.seconds=En(e.seconds),e.minutes=En(e.minutes),e.hours=En(e.hours),e.months=En(e.months),e.years=En(e.years),this},ds.add=function(e,t){return Rn(this,e,t,1)},ds.subtract=function(e,t){return Rn(this,e,t,-1)},ds.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+Nn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Fn(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw new Error("Unknown unit "+e)}},ds.asMilliseconds=Yn,ds.asSeconds=Hn,ds.asMinutes=Vn,ds.asHours=Wn,ds.asDays=$n,ds.asWeeks=zn,ds.asMonths=qn,ds.asQuarters=Gn,ds.asYears=Kn,ds.valueOf=Qn,ds._bubble=function(){var e,t,n,s,a,i=this._milliseconds,r=this._days,o=this._months,l=this._data;return i>=0&&r>=0&&o>=0||i<=0&&r<=0&&o<=0||(i+=864e5*Un(Fn(o)+r),r=0,o=0),l.milliseconds=i%1e3,e=de(i/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,r+=de(n/24),o+=a=de(Nn(r)),r-=Un(Fn(a)),s=de(o/12),o%=12,l.days=r,l.months=o,l.years=s,this},ds.clone=function(){return Jt(this)},ds.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},ds.milliseconds=Xn,ds.seconds=Zn,ds.minutes=es,ds.hours=ts,ds.days=ns,ds.weeks=function(){return de(this.days()/7)},ds.months=ss,ds.years=as,ds.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,a=!1,i=rs;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"==typeof t&&(i=Object.assign({},rs,t),null!=t.s&&null==t.ss&&(i.ss=t.s-1)),s=function(e,t,n,s){var a=Jt(e).abs(),i=is(a.as("s")),r=is(a.as("m")),o=is(a.as("h")),l=is(a.as("d")),c=is(a.as("M")),u=is(a.as("w")),d=is(a.as("y")),p=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||r<=1&&["m"]||r<n.m&&["mm",r]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(p=p||u<=1&&["w"]||u<n.w&&["ww",u]),(p=p||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,p[3]=+e>0,p[4]=s,os.apply(null,p)}(this,!a,i,n=this.localeData()),a&&(s=n.pastFuture(+this,s)),n.postformat(s)},ds.toISOString=us,ds.toString=us,ds.toJSON=us,ds.locale=ln,ds.localeData=un,ds.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),ds.lang=cn,R("X",0,0,"unix"),R("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),me("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),me("x",(function(e,t,n){n._d=new Date(pe(e))})),a.version="2.30.1",t=Et,a.fn=Tn,a.min=function(){return Nt("isBefore",[].slice.call(arguments,0))},a.max=function(){return Nt("isAfter",[].slice.call(arguments,0))},a.now=function(){return Date.now?Date.now():+new Date},a.utc=m,a.unix=function(e){return Et(1e3*e)},a.months=function(e,t){return Ln(e,t,"months")},a.isDate=d,a.locale=gt,a.invalid=b,a.duration=Jt,a.isMoment=x,a.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},a.parseZone=function(){return Et.apply(null,arguments).parseZone()},a.localeData=bt,a.isDuration=Yt,a.monthsShort=function(e,t){return Ln(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},a.defineLocale=ft,a.updateLocale=function(e,t){if(null!=t){var n,s,a=ct;null!=ut[e]&&null!=ut[e].parentLocale?ut[e].set(T(ut[e]._config,t)):(null!=(s=mt(e))&&(a=s._config),t=T(a,t),null==s&&(t.abbr=e),(n=new D(t)).parentLocale=ut[e],ut[e]=n),gt(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?(ut[e]=ut[e].parentLocale,e===gt()&>(e)):null!=ut[e]&&delete ut[e]);return ut[e]},a.locales=function(){return k(ut)},a.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},a.normalizeUnits=B,a.relativeTimeRounding=function(e){return void 0===e?is:"function"==typeof e&&(is=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==rs[e]&&(void 0===t?rs[e]:(rs[e]=t,"s"===e&&(rs.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=Tn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a}()},58859(e,t,n){var s="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=s&&a&&"function"==typeof a.get?a.get:null,r=s&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=o&&l&&"function"==typeof l.get?l.get:null,u=o&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,h="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,g=Object.prototype.toString,f=Function.prototype.toString,b=String.prototype.match,v=String.prototype.slice,y=String.prototype.replace,S=String.prototype.toUpperCase,w=String.prototype.toLowerCase,x=RegExp.prototype.test,A=Array.prototype.concat,_=Array.prototype.join,k=Array.prototype.slice,j=Math.floor,C="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,P="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var s=e<0?-j(-e):j(e);if(s!==e){var a=String(s),i=v.call(t,a.length+1);return y.call(a,n,"$&_")+"."+y.call(y.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(t,n,"$&_")}var E=n(42634),R=E.custom,U=$(R)?R:null,N={__proto__:null,double:'"',single:"'"},F={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(e,t,n){var s=n.quoteStyle||t,a=N[s];return a+e+a}function Y(e){return y.call(String(e),/"/g,""")}function H(e){return!P||!("object"==typeof e&&(P in e||void 0!==e[P]))}function V(e){return"[object Array]"===G(e)&&H(e)}function W(e){return"[object RegExp]"===G(e)&&H(e)}function $(e){if(D)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}e.exports=function e(t,s,a,o){var l=s||{};if(q(l,"quoteStyle")&&!q(N,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(q(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var g=!q(l,"customInspect")||l.customInspect;if("boolean"!=typeof g&&"symbol"!==g)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(q(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(q(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var S=l.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return Q(t,l);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return S?M(t,x):x}if("bigint"==typeof t){var j=String(t)+"n";return S?M(t,j):j}var I=void 0===l.depth?5:l.depth;if(void 0===a&&(a=0),a>=I&&I>0&&"object"==typeof t)return V(t)?"[Array]":"[Object]";var R,F=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=_.call(Array(e.indent+1)," ")}return{base:n,prev:_.call(Array(t+1),n)}}(l,a);if(void 0===o)o=[];else if(K(o,t)>=0)return"[Circular]";function z(t,n,s){if(n&&(o=k.call(o)).push(n),s){var i={depth:l.depth};return q(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),e(t,i,a+1,o)}return e(t,l,a+1,o)}if("function"==typeof t&&!W(t)){var J=function(e){if(e.name)return e.name;var t=b.call(f.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),se=ne(t,z);return"[Function"+(J?": "+J:" (anonymous)")+"]"+(se.length>0?" { "+_.call(se,", ")+" }":"")}if($(t)){var ae=D?y.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(t);return"object"!=typeof t||D?ae:X(ae)}if((R=t)&&"object"==typeof R&&("undefined"!=typeof HTMLElement&&R instanceof HTMLElement||"string"==typeof R.nodeName&&"function"==typeof R.getAttribute)){for(var ie="<"+w.call(String(t.nodeName)),re=t.attributes||[],oe=0;oe<re.length;oe++)ie+=" "+re[oe].name+"="+B(Y(re[oe].value),"double",l);return ie+=">",t.childNodes&&t.childNodes.length&&(ie+="..."),ie+"</"+w.call(String(t.nodeName))+">"}if(V(t)){if(0===t.length)return"[]";var le=ne(t,z);return F&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(le)?"["+te(le,F)+"]":"[ "+_.call(le,", ")+" ]"}if(function(e){return"[object Error]"===G(e)&&H(e)}(t)){var ce=ne(t,z);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+_.call(ce,", ")+" }":"{ ["+String(t)+"] "+_.call(A.call("[cause]: "+z(t.cause),ce),", ")+" }"}if("object"==typeof t&&g){if(U&&"function"==typeof t[U]&&E)return E(t,{depth:I-a});if("symbol"!==g&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ue=[];return r&&r.call(t,(function(e,n){ue.push(z(n,t,!0)+" => "+z(e,t))})),ee("Map",i.call(t),ue,F)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var de=[];return u&&u.call(t,(function(e){de.push(z(e,t))})),ee("Set",c.call(t),de,F)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{return h.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if(function(e){return"[object Number]"===G(e)&&H(e)}(t))return X(z(Number(t)));if(function(e){if(!e||"object"!=typeof e||!C)return!1;try{return C.call(e),!0}catch(e){}return!1}(t))return X(z(C.call(t)));if(function(e){return"[object Boolean]"===G(e)&&H(e)}(t))return X(m.call(t));if(function(e){return"[object String]"===G(e)&&H(e)}(t))return X(z(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||void 0!==n.g&&t===n.g)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===G(e)&&H(e)}(t)&&!W(t)){var pe=ne(t,z),he=L?L(t)===Object.prototype:t instanceof Object||t.constructor===Object,me=t instanceof Object?"":"null prototype",ge=!he&&P&&Object(t)===t&&P in t?v.call(G(t),8,-1):me?"Object":"",fe=(he||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(ge||me?"["+_.call(A.call([],ge||[],me||[]),": ")+"] ":"");return 0===pe.length?fe+"{}":F?fe+"{"+te(pe,F)+"}":fe+"{ "+_.call(pe,", ")+" }"}return String(t)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function q(e,t){return z.call(e,t)}function G(e){return g.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,s=e.length;n<s;n++)if(e[n]===t)return n;return-1}function Q(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,s="... "+n+" more character"+(n>1?"s":"");return Q(v.call(e,0,t.maxStringLength),t)+s}var a=F[t.quoteStyle||"single"];return a.lastIndex=0,B(y.call(y.call(e,a,"\\$1"),/[\x00-\x1f]/g,J),"single",t)}function J(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function X(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function ee(e,t,n,s){return e+" ("+t+") {"+(s?te(n,s):_.call(n,", "))+"}"}function te(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+_.call(e,","+n)+"\n"+t.prev}function ne(e,t){var n=V(e),s=[];if(n){s.length=e.length;for(var a=0;a<e.length;a++)s[a]=q(e,a)?t(e[a],e):""}var i,r="function"==typeof I?I(e):[];if(D){i={};for(var o=0;o<r.length;o++)i["$"+r[o]]=r[o]}for(var l in e)q(e,l)&&(n&&String(Number(l))===l&&l<e.length||D&&i["$"+l]instanceof Symbol||(x.call(/[^\w$]/,l)?s.push(t(l,e)+": "+t(e[l],e)):s.push(l+": "+t(e[l],e))));if("function"==typeof I)for(var c=0;c<r.length;c++)O.call(e,r[c])&&s.push("["+t(r[c])+"]: "+t(e[r[c]],e));return s}},29466(e,t){var n,s;void 0===(s="function"==typeof(n=function(){return function(e){function t(e){return" "===e||"\t"===e||"\n"===e||"\f"===e||"\r"===e}function n(t){var n,s=t.exec(e.substring(g));if(s)return n=s[0],g+=n.length,n}for(var s,a,i,r,o,l=e.length,c=/^[ \t\n\r\u000c]+/,u=/^[, \t\n\r\u000c]+/,d=/^[^ \t\n\r\u000c]+/,p=/[,]+$/,h=/^\d+$/,m=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,g=0,f=[];;){if(n(u),g>=l)return f;s=n(d),a=[],","===s.slice(-1)?(s=s.replace(p,""),v()):b()}function b(){for(n(c),i="",r="in descriptor";;){if(o=e.charAt(g),"in descriptor"===r)if(t(o))i&&(a.push(i),i="",r="after descriptor");else{if(","===o)return g+=1,i&&a.push(i),void v();if("("===o)i+=o,r="in parens";else{if(""===o)return i&&a.push(i),void v();i+=o}}else if("in parens"===r)if(")"===o)i+=o,r="in descriptor";else{if(""===o)return a.push(i),void v();i+=o}else if("after descriptor"===r)if(t(o));else{if(""===o)return void v();r="in descriptor",g-=1}g+=1}}function v(){var t,n,i,r,o,l,c,u,d,p=!1,g={};for(r=0;r<a.length;r++)l=(o=a[r])[o.length-1],c=o.substring(0,o.length-1),u=parseInt(c,10),d=parseFloat(c),h.test(c)&&"w"===l?((t||n)&&(p=!0),0===u?p=!0:t=u):m.test(c)&&"x"===l?((t||n||i)&&(p=!0),d<0?p=!0:n=d):h.test(c)&&"h"===l?((i||n)&&(p=!0),0===u?p=!0:i=u):p=!0;p?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+o+"'."):(g.url=s,t&&(g.w=t),n&&(g.d=n),i&&(g.h=i),f.push(g))}}})?n.apply(t,[]):n)||(e.exports=s)},35302(e,t,n){var s=n(47291);e.exports=function e(t,n,a){return s(n)||(a=n||a,n=[]),a=a||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var s=0;s<n.length;s++)t.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return d(e,t)}(t,n):s(t)?function(t,n,s){for(var a=[],i=0;i<t.length;i++)a.push(e(t[i],n,s).source);return d(new RegExp("(?:"+a.join("|")+")",p(s)),n)}(t,n,a):function(e,t,n){return h(i(e,n),t,n)}(t,n,a)},e.exports.parse=i,e.exports.compile=function(e,t){return l(i(e,t),t)},e.exports.tokensToFunction=l,e.exports.tokensToRegExp=h;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var n,s=[],i=0,o=0,l="",c=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],p=n[1],h=n.index;if(l+=e.slice(o,h),o=h+d.length,p)l+=p[1];else{var m=e[o],g=n[2],f=n[3],b=n[4],v=n[5],y=n[6],S=n[7];l&&(s.push(l),l="");var w=null!=g&&null!=m&&m!==g,x="+"===y||"*"===y,A="?"===y||"*"===y,_=g||c,k=b||v,j=g||("string"==typeof s[s.length-1]?s[s.length-1]:"");s.push({name:f||i++,prefix:g||"",delimiter:_,optional:A,repeat:x,partial:w,asterisk:!!S,pattern:k?u(k):S?".*":r(_,j)})}}return o<e.length&&(l+=e.substr(o)),l&&s.push(l),s}function r(e,t){return!t||t.indexOf(e)>-1?"[^"+c(e)+"]+?":c(t)+"|(?:(?!"+c(t)+")[^"+c(e)+"])+?"}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function l(e,t){for(var n=new Array(e.length),a=0;a<e.length;a++)"object"==typeof e[a]&&(n[a]=new RegExp("^(?:"+e[a].pattern+")$",p(t)));return function(t,a){for(var i="",r=t||{},l=(a||{}).pretty?o:encodeURIComponent,c=0;c<e.length;c++){var u=e[c];if("string"!=typeof u){var d,p=r[u.name];if(null==p){if(u.optional){u.partial&&(i+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(s(p)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(d=l(p[h]),!n[c].test(d))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(d)+"`");i+=(0===h?u.prefix:u.delimiter)+d}}else{if(d=u.asterisk?encodeURI(p).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):l(p),!n[c].test(d))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+d+'"');i+=u.prefix+d}}else i+=u}return i}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function d(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function h(e,t,n){s(t)||(n=t||n,t=[]);for(var a=(n=n||{}).strict,i=!1!==n.end,r="",o=0;o<e.length;o++){var l=e[o];if("string"==typeof l)r+=c(l);else{var u=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+u+h+")*"),r+=h=l.optional?l.partial?u+"("+h+")?":"(?:"+u+"("+h+"))?":u+"("+h+")"}}var m=c(n.delimiter||"/"),g=r.slice(-m.length)===m;return a||(r=(g?r.slice(0,-m.length):r)+"(?:"+m+"(?=$))?"),r+=i?"$":a&&g?"":"(?="+m+"|$)",d(new RegExp("^"+r,p(n)),t)}},47291(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},48633(e){var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},40396(e,t,n){"use strict";let s=n(77793);class a extends s{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)}}e.exports=a,a.default=a,s.registerAtRule(a)},49371(e,t,n){"use strict";let s=n(63152);class a extends s{constructor(e){super(e),this.type="comment"}}e.exports=a,a.default=a},77793(e,t,n){"use strict";let s,a,i,r,o=n(49371),l=n(35238),c=n(63152),{isClean:u,my:d}=n(84151);function p(e){return e.map((e=>(e.nodes&&(e.nodes=p(e.nodes)),delete e.source,e)))}function h(e){if(e[u]=!1,e.proxyOf.nodes)for(let t of e.proxyOf.nodes)h(t)}class m extends c{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(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t,n,s=this.getIterator();for(;this.indexes[s]<this.proxyOf.nodes.length&&(t=this.indexes[s],n=e(this.proxyOf.nodes[t],t),!1!==n);)this.indexes[s]+=1;return delete this.indexes[s],n}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")?(...n)=>e[t](...n.map((e=>"function"==typeof e?(t,n)=>e(t.toProxy(),n):e))):"every"===t||"some"===t?n=>e[t](((e,...t)=>n(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,n)=>(e[t]===n||(e[t]=n,"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 n,s=this.index(e),a=this.normalize(t,this.proxyOf.nodes[s]).reverse();s=this.index(e);for(let e of a)this.proxyOf.nodes.splice(s+1,0,e);for(let e in this.indexes)n=this.indexes[e],s<n&&(this.indexes[e]=n+a.length);return this.markDirty(),this}insertBefore(e,t){let n,s=this.index(e),a=0===s&&"prepend",i=this.normalize(t,this.proxyOf.nodes[s],a).reverse();s=this.index(e);for(let e of i)this.proxyOf.nodes.splice(s,0,e);for(let e in this.indexes)n=this.indexes[e],s<=n&&(this.indexes[e]=n+i.length);return this.markDirty(),this}normalize(e,t){if("string"==typeof e)e=p(a(e).nodes);else if(void 0===e)e=[];else if(Array.isArray(e)){e=e.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if("root"===e.type&&"document"!==this.type){e=e.nodes.slice(0);for(let t of e)t.parent&&t.parent.removeChild(t,"ignore")}else if(e.type)e=[e];else if(e.prop){if(void 0===e.value)throw new Error("Value field is missed in node creation");"string"!=typeof e.value&&(e.value=String(e.value)),e=[new l(e)]}else if(e.selector||e.selectors)e=[new r(e)];else if(e.name)e=[new s(e)];else{if(!e.text)throw new Error("Unknown node type in node creation");e=[new o(e)]}return e.map((e=>(e[d]||m.rebuild(e),(e=e.proxyOf).parent&&e.parent.removeChild(e),e[u]&&h(e),e.raws||(e.raws={}),void 0===e.raws.before&&t&&void 0!==t.raws.before&&(e.raws.before=t.raws.before.replace(/\S/g,"")),e.parent=this.proxyOf,e)))}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 n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls((s=>{t.props&&!t.props.includes(s.prop)||t.fast&&!s.value.includes(t.fast)||(s.value=s.value.replace(e,n))})),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,n)=>{let s;try{s=e(t,n)}catch(e){throw t.addToError(e)}return!1!==s&&t.walk&&(s=t.walk(e)),s}))}walkAtRules(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("atrule"===n.type&&e.test(n.name))return t(n,s)})):this.walk(((n,s)=>{if("atrule"===n.type&&n.name===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("atrule"===e.type)return t(e,n)})))}walkComments(e){return this.walk(((t,n)=>{if("comment"===t.type)return e(t,n)}))}walkDecls(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("decl"===n.type&&e.test(n.prop))return t(n,s)})):this.walk(((n,s)=>{if("decl"===n.type&&n.prop===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("decl"===e.type)return t(e,n)})))}walkRules(e,t){return t?e instanceof RegExp?this.walk(((n,s)=>{if("rule"===n.type&&e.test(n.selector))return t(n,s)})):this.walk(((n,s)=>{if("rule"===n.type&&n.selector===e)return t(n,s)})):(t=e,this.walk(((e,n)=>{if("rule"===e.type)return t(e,n)})))}}m.registerParse=e=>{a=e},m.registerRule=e=>{r=e},m.registerAtRule=e=>{s=e},m.registerRoot=e=>{i=e},e.exports=m,m.default=m,m.rebuild=e=>{"atrule"===e.type?Object.setPrototypeOf(e,s.prototype):"rule"===e.type?Object.setPrototypeOf(e,r.prototype):"decl"===e.type?Object.setPrototypeOf(e,l.prototype):"comment"===e.type?Object.setPrototypeOf(e,o.prototype):"root"===e.type&&Object.setPrototypeOf(e,i.prototype),e[d]=!0,e.nodes&&e.nodes.forEach((e=>{m.rebuild(e)}))}},53614(e,t,n){"use strict";let s=n(48633),a=n(49746);class i extends Error{constructor(e,t,n,s,a,r){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),s&&(this.source=s),r&&(this.plugin=r),void 0!==t&&void 0!==n&&("number"==typeof t?(this.line=t,this.column=n):(this.line=t.line,this.column=t.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,i)}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=s.isColorSupported);let n=e=>e,i=e=>e,r=e=>e;if(e){let{bold:e,gray:t,red:o}=s.createColors(!0);i=t=>e(o(t)),n=e=>t(e),a&&(r=e=>a(e))}let o=t.split(/\r?\n/),l=Math.max(this.line-3,0),c=Math.min(this.line+2,o.length),u=String(c).length;return o.slice(l,c).map(((e,t)=>{let s=l+1+t,a=" "+(" "+s).slice(-u)+" | ";if(s===this.line){if(e.length>160){let t=20,s=Math.max(0,this.column-t),o=Math.max(this.column+t,this.endColumn+t),l=e.slice(s,o),c=n(a.replace(/\d/g," "))+e.slice(0,Math.min(this.column-1,t-1)).replace(/[^\t]/g," ");return i(">")+n(a)+r(l)+"\n "+c+i("^")}let t=n(a.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+n(a)+r(e)+"\n "+t+i("^")}return" "+n(a)+r(e)})).join("\n")}toString(){let e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e}}e.exports=i,i.default=i},35238(e,t,n){"use strict";let s=n(63152);class a extends s{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"}}e.exports=a,a.default=a},40145(e,t,n){"use strict";let s,a,i=n(77793);class r extends i{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new s(new a,this,e).stringify()}}r.registerLazyResult=e=>{s=e},r.registerProcessor=e=>{a=e},e.exports=r,r.default=r},33438(e,t,n){"use strict";let s=n(40396),a=n(49371),i=n(35238),r=n(61106),o=n(93878),l=n(25644),c=n(61534);function u(e,t){if(Array.isArray(e))return e.map((e=>u(e)));let{inputs:n,...d}=e;if(n){t=[];for(let e of n){let n={...e,__proto__:r.prototype};n.map&&(n.map={...n.map,__proto__:o.prototype}),t.push(n)}}if(d.nodes&&(d.nodes=e.nodes.map((e=>u(e,t)))),d.source){let{inputId:e,...n}=d.source;d.source=n,null!=e&&(d.source.input=t[e])}if("root"===d.type)return new l(d);if("decl"===d.type)return new i(d);if("rule"===d.type)return new c(d);if("comment"===d.type)return new a(d);if("atrule"===d.type)return new s(d);throw new Error("Unknown node type: "+e.type)}e.exports=u,u.default=u},61106(e,t,n){"use strict";let{nanoid:s}=n(95042),{isAbsolute:a,resolve:i}=n(197),{SourceMapConsumer:r,SourceMapGenerator:o}=n(21866),{fileURLToPath:l,pathToFileURL:c}=n(52739),u=n(53614),d=n(93878),p=n(49746),h=Symbol("lineToIndexCache"),m=Boolean(r&&o),g=Boolean(i&&a);function f(e){if(e[h])return e[h];let t=e.css.split("\n"),n=new Array(t.length),s=0;for(let e=0,a=t.length;e<a;e++)n[e]=s,s+=t[e].length+1;return e[h]=n,n}class b{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&&(!g||/^\w+:\/\//.test(t.from)||a(t.from)?this.file=t.from:this.file=i(t.from)),g&&m){let e=new d(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 "+s(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,n,s={}){let a,i,r,o,l;if(t&&"object"==typeof t){let e=t,s=n;if("number"==typeof e.offset){o=e.offset;let s=this.fromOffset(o);t=s.line,n=s.col}else t=e.line,n=e.column,o=this.fromLineAndColumn(t,n);if("number"==typeof s.offset){r=s.offset;let e=this.fromOffset(r);i=e.line,a=e.col}else i=s.line,a=s.column,r=this.fromLineAndColumn(s.line,s.column)}else if(n)o=this.fromLineAndColumn(t,n);else{o=t;let e=this.fromOffset(o);t=e.line,n=e.col}let d=this.origin(t,n,i,a);return l=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,s.plugin):new u(e,void 0===i?t:{column:n,line:t},void 0===i?n:{column:a,line:i},this.css,this.file,s.plugin),l.input={column:n,endColumn:a,endLine:i,endOffset:r,line:t,offset:o,source:this.css},this.file&&(c&&(l.input.url=c(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return f(this)[e-1]+t-1}fromOffset(e){let t=f(this),n=0;if(e>=t[t.length-1])n=t.length-1;else{let s,a=t.length-2;for(;n<a;)if(s=n+(a-n>>1),e<t[s])a=s-1;else{if(!(e>=t[s+1])){n=s;break}n=s+1}}return{col:e-t[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:i(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,n,s){if(!this.map)return!1;let i,r,o=this.map.consumer(),u=o.originalPositionFor({column:t,line:e});if(!u.source)return!1;"number"==typeof n&&(i=o.originalPositionFor({column:s,line:n})),r=a(u.source)?c(u.source):new URL(u.source,this.map.consumer().sourceRoot||c(this.map.mapFile));let d={column:u.column,endColumn:i&&i.column,endLine:i&&i.line,line:u.line,url:r.toString()};if("file:"===r.protocol){if(!l)throw new Error("file: protocol is not available in this PostCSS build");d.file=l(r)}let p=o.sourceContentFor(u.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}}e.exports=b,b.default=b,p&&p.registerInput&&p.registerInput(b)},96966(e,t,n){"use strict";let s=n(77793),a=n(40145),i=n(13604),r=n(69577),o=n(56098),l=n(25644),c=n(83303),{isClean:u,my:d}=n(84151);n(6156);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},h={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},m={Once:!0,postcssPlugin:!0,prepare:!0};function g(e){return"object"==typeof e&&"function"==typeof e.then}function f(e){let t=!1,n=p[e.type];return"decl"===e.type?t=e.prop.toLowerCase():"atrule"===e.type&&(t=e.name.toLowerCase()),t&&e.append?[n,n+"-"+t,0,n+"Exit",n+"Exit-"+t]:t?[n,n+"-"+t,n+"Exit",n+"Exit-"+t]:e.append?[n,0,n+"Exit"]:[n,n+"Exit"]}function b(e){let t;return t="document"===e.type?["Document",0,"DocumentExit"]:"root"===e.type?["Root",0,"RootExit"]:f(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function v(e){return e[u]=!1,e.nodes&&e.nodes.forEach((e=>v(e))),e}let y={};class S{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(e,t,n){let a;if(this.stringified=!1,this.processed=!1,"object"!=typeof t||null===t||"root"!==t.type&&"document"!==t.type)if(t instanceof S||t instanceof o)a=v(t.root),t.map&&(void 0===n.map&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=t.map);else{let e=r;n.syntax&&(e=n.syntax.parse),n.parser&&(e=n.parser),e.parse&&(e=e.parse);try{a=e(t,n)}catch(e){this.processed=!0,this.error=e}a&&!a[d]&&s.rebuild(a)}else a=v(t);this.result=new o(e,a,n),this.helpers={...y,postcss:y,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 n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,"CssSyntaxError"!==e.name||e.plugin?n.postcssVersion:(e.plugin=n.postcssPlugin,e.setMessage())}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if("object"==typeof t)for(let n in t){if(!h[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[n])if("object"==typeof t[n])for(let s in t[n])e(t,"*"===s?n:n+"-"+s.toLowerCase(),t[n][s]);else"function"==typeof t[n]&&e(t,n,t[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(g(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=[b(e)];for(;t.length>0;){let e=this.visitTick(t);if(g(e))try{await e}catch(e){let n=t[t.length-1].node;throw this.handleError(e,n)}}}if(this.listeners.OnceExit)for(let[t,n]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if("document"===e.type){let t=e.nodes.map((e=>n(e,this.helpers)));await Promise.all(t)}else await n(e,this.helpers)}catch(e){throw this.handleError(e)}}}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 g(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(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=c;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=this.result.root.source;if(void 0===e.map&&!(n&&n.input&&n.input.map)){let e="";return t(this.result.root,(t=>{e+=t})),this.result.css=e,this.result}let s=new i(t,this.result.root,this.result.opts).generate();return this.result.css=s[0],this.result.map=s[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(g(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[n,s]of e){let e;this.result.lastPlugin=n;try{e=s(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if("root"!==t.type&&"document"!==t.type&&!t.parent)return!0;if(g(e))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:n,visitors:s}=t;if("root"!==n.type&&"document"!==n.type&&!n.parent)return void e.pop();if(s.length>0&&t.visitorIndex<s.length){let[e,a]=s[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===s.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=e;try{return a(n.toProxy(),this.helpers)}catch(e){throw this.handleError(e,n)}}if(0!==t.iterator){let s,a=t.iterator;for(;s=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!s[u])return s[u]=!0,void e.push(b(s));t.iterator=0,delete n.indexes[a]}let a=t.events;for(;t.eventIndex<a.length;){let e=a[t.eventIndex];if(t.eventIndex+=1,0===e)return void(n.nodes&&n.nodes.length&&(n[u]=!0,t.iterator=n.getIterator()));if(this.listeners[e])return void(t.visitors=this.listeners[e])}e.pop()}walkSync(e){e[u]=!0;let t=f(e);for(let n of t)if(0===n)e.nodes&&e.each((e=>{e[u]||this.walkSync(e)}));else{let t=this.listeners[n];if(t&&this.visitSync(t,e.toProxy()))return}}warnings(){return this.sync().warnings()}}S.registerPostcss=e=>{y=e},e.exports=S,S.default=S,l.registerLazyResult(S),a.registerLazyResult(S)},81752(e){"use strict";let t={comma:e=>t.split(e,[","],!0),space:e=>t.split(e,[" ","\n","\t"]),split(e,t,n){let s=[],a="",i=!1,r=0,o=!1,l="",c=!1;for(let n of e)c?c=!1:"\\"===n?c=!0:o?n===l&&(o=!1):'"'===n||"'"===n?(o=!0,l=n):"("===n?r+=1:")"===n?r>0&&(r-=1):0===r&&t.includes(n)&&(i=!0),i?(""!==a&&s.push(a.trim()),a="",i=!1):a+=n;return(n||""!==a)&&s.push(a.trim()),s}};e.exports=t,t.default=t},13604(e,t,n){"use strict";let{dirname:s,relative:a,resolve:i,sep:r}=n(197),{SourceMapConsumer:o,SourceMapGenerator:l}=n(21866),{pathToFileURL:c}=n(52739),u=n(61106),d=Boolean(o&&l),p=Boolean(s&&i&&a&&r);e.exports=class{constructor(e,t,n,s){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=s,this.originalCSS=s,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=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)),a=e.root||s(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(a)))}}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(),p&&d&&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=l.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new l({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 l({file:this.outputFile(),ignoreInvalidMapping:!0});let e,t,n=1,s=1,a="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""};this.stringify(this.root,((r,o,l)=>{if(this.css+=r,o&&"end"!==l&&(i.generated.line=n,i.generated.column=s-1,o.source&&o.source.start?(i.source=this.sourcePath(o),i.original.line=o.source.start.line,i.original.column=o.source.start.column-1,this.map.addMapping(i)):(i.source=a,i.original.line=1,i.original.column=0,this.map.addMapping(i))),t=r.match(/\n/g),t?(n+=t.length,e=r.lastIndexOf("\n"),s=r.length-e):s+=r.length,o&&"start"!==l){let e=o.parent||{raws:{}};("decl"===o.type||"atrule"===o.type&&!o.nodes)&&o===e.last&&!e.raws.semicolon||(o.source&&o.source.end?(i.source=this.sourcePath(o),i.original.line=o.source.end.line,i.original.column=o.source.end.column-1,i.generated.line=n,i.generated.column=s-2,this.map.addMapping(i)):(i.source=a,i.original.line=1,i.original.column=0,i.generated.line=n,i.generated.column=s-1,this.map.addMapping(i)))}}))}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 n=this.opts.to?s(this.opts.to):".";"string"==typeof this.mapOpts.annotation&&(n=s(i(n,this.mapOpts.annotation)));let r=a(n,e);return this.memoizedPaths.set(e,r),r}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 n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let s=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(s,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(c){let t=c(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;"\\"===r&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}},84211(e,t,n){"use strict";let s=n(13604),a=n(69577),i=n(56098),r=n(83303);n(6156);class o{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=a;try{e=t(this._css,this._opts)}catch(e){this.error=e}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 a=r;this.result=new i(this._processor,void 0,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get:()=>o.root});let l=new s(a,void 0,this._opts,t);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.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[]}}e.exports=o,o.default=o},63152(e,t,n){"use strict";let s=n(53614),a=n(47668),i=n(83303),{isClean:r,my:o}=n(84151);function l(e,t){let n=new e.constructor;for(let s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;if("proxyCache"===s)continue;let a=e[s],i=typeof a;"parent"===s&&"object"===i?t&&(n[s]=t):"source"===s?n[s]=a:Array.isArray(a)?n[s]=a.map((e=>l(e,n))):("object"===i&&null!==a&&(a=l(a)),n[s]=a)}return n}function c(e,t){if(t&&void 0!==t.offset)return t.offset;let n=1,s=1,a=0;for(let i=0;i<e.length;i++){if(s===t.line&&n===t.column){a=i;break}"\n"===e[i]?(n=1,s+=1):n+=1}return a}class u{get proxyOf(){return this}constructor(e={}){this.raws={},this[r]=!1,this[o]=!0;for(let t in e)if("nodes"===t){this.nodes=[];for(let n of e[t])"function"==typeof n.clone?this.append(n.clone()):this.append(n)}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=l(this);for(let n in e)t[n]=e[n];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:n,start:s}=this.rangeBy(t);return this.source.input.error(e,{column:s.column,line:s.line},{column:n.column,line:n.line},t)}return new s(e)}getProxyProcessor(){return{get:(e,t)=>"proxyOf"===t?e:"root"===t?()=>e.root().toProxy():e[t],set:(e,t,n)=>(e[t]===n||(e[t]=n,"prop"!==t&&"value"!==t&&"name"!==t&&"params"!==t&&"important"!==t&&"text"!==t||e.markDirty()),!0)}}markClean(){this[r]=!0}markDirty(){if(this[r]){this[r]=!1;let e=this;for(;e=e.parent;)e[r]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,s=n.slice(c(n,this.source.start),c(n,this.source.end)).indexOf(e.word);-1!==s&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,n=this.source.start.line,s="document"in this.source.input?this.source.input.document:this.source.input.css,a=c(s,this.source.start),i=a+e;for(let e=a;e<i;e++)"\n"===s[e]?(t=1,n+=1):t+=1;return{column:t,line:n,offset:i}}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,n={column:this.source.start.column,line:this.source.start.line,offset:c(t,this.source.start)},s=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:c(t,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let a=t.slice(c(t,this.source.start),c(t,this.source.end)).indexOf(e.word);-1!==a&&(n=this.positionInside(a),s=this.positionInside(a+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:c(t,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?s={column:e.end.column,line:e.end.line,offset:c(t,e.end)}:"number"==typeof e.endIndex?s=this.positionInside(e.endIndex):e.index&&(s=this.positionInside(e.index+1));return(s.line<n.line||s.line===n.line&&s.column<=n.column)&&(s={column:n.column+1,line:n.line,offset:n.offset+1}),{end:s,start:n}}raw(e,t){return(new a).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,n=!1;for(let s of e)s===this?n=!0:n?(this.parent.insertAfter(t,s),t=s):this.parent.insertBefore(t,s);n||this.remove()}return this}root(){let e=this;for(;e.parent&&"document"!==e.parent.type;)e=e.parent;return e}toJSON(e,t){let n={},s=null==t;t=t||new Map;let a=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e))continue;if("parent"===e||"proxyCache"===e)continue;let s=this[e];if(Array.isArray(s))n[e]=s.map((e=>"object"==typeof e&&e.toJSON?e.toJSON(null,t):e));else if("object"==typeof s&&s.toJSON)n[e]=s.toJSON(null,t);else if("source"===e){if(null==s)continue;let i=t.get(s.input);null==i&&(i=a,t.set(s.input,a),a++),n[e]={end:s.end,inputId:i,start:s.start}}else n[e]=s}return s&&(n.inputs=[...t.keys()].map((e=>e.toJSON()))),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t="";return e(this,(e=>{t+=e})),t}warn(e,t,n={}){let s={node:this};for(let e in n)s[e]=n[e];return e.warn(t,s)}}e.exports=u,u.default=u},69577(e,t,n){"use strict";let s=n(77793),a=n(61106),i=n(68339);function r(e,t){let n=new a(e,t),s=new i(n);try{s.parse()}catch(e){throw e}return s.root}e.exports=r,r.default=r,s.registerParse(r)},68339(e,t,n){"use strict";let s=n(40396),a=n(49371),i=n(35238),r=n(25644),o=n(61534),l=n(68162);const c={empty:!0,space:!0};function u(e,t,n){let s="";for(let a=t;a<n;a++)s+=e[a][1];return s}e.exports=class{constructor(e){this.input=e,this.root=new r,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,a,i=new s;i.name=e[1].slice(1),""===i.name&&this.unnamedAtrule(i,e),this.init(i,e[2]);let r=!1,o=!1,l=[],c=[];for(;!this.tokenizer.endOfFile();){if(t=(e=this.tokenizer.nextToken())[0],"("===t||"["===t?c.push("("===t?")":"]"):"{"===t&&c.length>0?c.push("}"):t===c[c.length-1]&&c.pop(),0===c.length){if(";"===t){i.source.end=this.getPosition(e[2]),i.source.end.offset++,this.semicolon=!0;break}if("{"===t){o=!0;break}if("}"===t){if(l.length>0){for(a=l.length-1,n=l[a];n&&"space"===n[0];)n=l[--a];n&&(i.source.end=this.getPosition(n[3]||n[2]),i.source.end.offset++)}this.end(e);break}l.push(e)}else l.push(e);if(this.tokenizer.endOfFile()){r=!0;break}}i.raws.between=this.spacesAndCommentsFromEnd(l),l.length?(i.raws.afterName=this.spacesAndCommentsFromStart(l),this.raw(i,"params",l),r&&(e=l[l.length-1],i.source.end=this.getPosition(e[3]||e[2]),i.source.end.offset++,this.spaces=i.raws.between,i.raws.between="")):(i.raws.afterName="",i.params=""),o&&(i.nodes=[],this.current=i)}checkMissedSemicolon(e){let t=this.colon(e);if(!1===t)return;let n,s=0;for(let a=t-1;a>=0&&(n=e[a],"space"===n[0]||(s+=1,2!==s));a--);throw this.input.error("Missed semicolon","word"===n[0]?n[3]+1:n[2])}colon(e){let t,n,s,a=0;for(let[i,r]of e.entries()){if(n=r,s=n[0],"("===s&&(a+=1),")"===s&&(a-=1),0===a&&":"===s){if(t){if("word"===t[0]&&"progid"===t[1])continue;return i}this.doubleColon(n)}t=n}return!1}comment(e){let t=new a;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let n=e[1].slice(2,-2);if(n.trim()){let e=n.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}else t.text="",t.raws.left=n,t.raws.right=""}createTokenizer(){this.tokenizer=l(this.input)}decl(e,t){let n=new i;this.init(n,e[0][2]);let s=e[e.length-1];";"===s[0]&&(this.semicolon=!0,e.pop()),n.source.end=this.getPosition(s[3]||s[2]||function(e){for(let t=e.length-1;t>=0;t--){let n=e[t],s=n[3]||n[2];if(s)return s}}(e)),n.source.end.offset++;let a=0;for(;"word"!==e[a][0];)a===e.length-1&&this.unknownWord([e[a]]),a++;n.raws.before+=u(e,0,a),n.source.start=this.getPosition(e[a][2]);let r=a;for(;a<e.length;){let t=e[a][0];if(":"===t||"space"===t||"comment"===t)break;a++}n.prop=u(e,r,a);let o,l=a;for(;a<e.length&&(o=e[a],a++,":"!==o[0]);)"word"===o[0]&&/\w/.test(o[1])&&this.unknownWord([o]);n.raws.between=u(e,l,a),"_"!==n.prop[0]&&"*"!==n.prop[0]||(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let c=a;for(;a<e.length;){let t=e[a][0];if("space"!==t&&"comment"!==t)break;a++}let d=e.slice(c,a);e=e.slice(a),this.precheckMissedSemicolon(e);for(let t=e.length-1;t>=0;t--){if(o=e[t],"!important"===o[1].toLowerCase()){n.important=!0;let s=this.stringFrom(e,t);s=this.spacesFromEnd(e)+s," !important"!==s&&(n.raws.important=s);break}if("important"===o[1].toLowerCase()){let s=e.slice(0),a="";for(let e=t;e>0;e--){let t=s[e][0];if(a.trim().startsWith("!")&&"space"!==t)break;a=s.pop()[1]+a}a.trim().startsWith("!")&&(n.important=!0,n.raws.important=a,e=s)}if("space"!==o[0]&&"comment"!==o[0])break}e.some((e=>"space"!==e[0]&&"comment"!==e[0]))&&(n.raws.between+=d.map((e=>e[1])).join(""),d=[]),this.raw(n,"value",d.concat(e),t),n.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,n=null,s=!1,a=null,i=[],r=e[1].startsWith("--"),o=[],l=e;for(;l;){if(n=l[0],o.push(l),"("===n||"["===n)a||(a=l),i.push("("===n?")":"]");else if(r&&s&&"{"===n)a||(a=l),i.push("}");else if(0===i.length){if(";"===n){if(s)return void this.decl(o,r);break}if("{"===n)return void this.rule(o);if("}"===n){this.tokenizer.back(o.pop()),t=!0;break}":"===n&&(s=!0)}else n===i[i.length-1]&&(i.pop(),0===i.length&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),i.length>0&&this.unclosedBracket(a),t&&s){if(!r)for(;o.length&&(l=o[o.length-1][0],"space"===l||"comment"===l);)this.tokenizer.back(o.pop());this.decl(o,r)}else this.unknownWord(o)}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,n,s){let a,i,r,o,l=n.length,u="",d=!0;for(let e=0;e<l;e+=1)a=n[e],i=a[0],"space"!==i||e!==l-1||s?"comment"===i?(o=n[e-1]?n[e-1][0]:"empty",r=n[e+1]?n[e+1][0]:"empty",c[o]||c[r]||","===u.slice(-1)?d=!1:u+=a[1]):u+=a[1]:d=!1;if(!d){let s=n.reduce(((e,t)=>e+t[1]),"");e.raws[t]={raw:s,value:u}}e[t]=u}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,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t||"comment"===t);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n="";for(;e.length&&(t=e[0][0],"space"===t||"comment"===t);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n="";for(;e.length&&(t=e[e.length-1][0],"space"===t);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n="";for(let s=t;s<e.length;s++)n+=e[s][1];return e.splice(t,e.length-t),n}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})}}},12895(e,t,n){"use strict";let s=n(40396),a=n(49371),i=n(77793),r=n(53614),o=n(35238),l=n(40145),c=n(33438),u=n(61106),d=n(96966),p=n(81752),h=n(63152),m=n(69577),g=n(96846),f=n(56098),b=n(25644),v=n(61534),y=n(83303),S=n(60038);function w(...e){return 1===e.length&&Array.isArray(e[0])&&(e=e[0]),new g(e)}w.plugin=function(e,t){let n,s=!1;function a(...n){console&&console.warn&&!s&&(s=!0,console.warn(e+": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+": 里面 postcss.plugin 被弃用. 迁移指南:\nhttps://www.w3ctech.com/topic/2226"));let a=t(...n);return a.postcssPlugin=e,a.postcssVersion=(new g).version,a}return Object.defineProperty(a,"postcss",{get:()=>(n||(n=a()),n)}),a.process=function(e,t,n){return w([a(n)]).process(e,t)},a},w.stringify=y,w.parse=m,w.fromJSON=c,w.list=p,w.comment=e=>new a(e),w.atRule=e=>new s(e),w.decl=e=>new o(e),w.rule=e=>new v(e),w.root=e=>new b(e),w.document=e=>new l(e),w.CssSyntaxError=r,w.Declaration=o,w.Container=i,w.Processor=g,w.Document=l,w.Comment=a,w.Warning=S,w.AtRule=s,w.Result=f,w.Input=u,w.Rule=v,w.Root=b,w.Node=h,d.registerPostcss(w),e.exports=w,w.default=w},93878(e,t,n){"use strict";let{existsSync:s,readFileSync:a}=n(19977),{dirname:i,join:r}=n(197),{SourceMapConsumer:o,SourceMapGenerator:l}=n(21866);class c{constructor(e,t){if(!1===t.map)return;t.unsafeMap&&(this.unsafeMap=!0),this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=t.map?t.map.prev:void 0,s=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),s&&(this.text=s)}consumer(){return this.consumerCache||(this.consumerCache=new o(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 n=e.match(/^data:application\/json;charset=utf-?8;base64,/)||e.match(/^data:application\/json;base64,/);if(n)return s=e.substr(n[0].length),Buffer?Buffer.from(s,"base64").toString():window.atob(s);var s;let a=e.slice(22);throw a=a.slice(0,a.indexOf(",")),new Error("Unsupported source map encoding "+a)}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 n=e.lastIndexOf(t.pop()),s=e.indexOf("*/",n);n>-1&&s>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,s)))}loadFile(e,t,n){if(n||this.unsafeMap||/\.map$/i.test(e))return this.root=i(e),s(e)?(this.mapFile=e,a(e,"utf-8").toString().trim()):void 0}loadMap(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"!=typeof t){if(t instanceof o)return l.fromSourceMap(t).toString();if(t instanceof l)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}{let n=t(e);if(n){let t=this.loadFile(n,e,!0);if(!t)throw new Error("Unable to load previous source map: "+n.toString());return t}}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let t=this.annotation;e&&(t=r(i(e),t));let n=this.loadFile(t,e,!1);if(n)try{this.json=JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}catch{return}return n}}}startWith(e,t){return!!e&&e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c,c.default=c},96846(e,t,n){"use strict";let s=n(40145),a=n(96966),i=n(84211),r=n(25644);class o{constructor(e=[]){this.version="8.5.15",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(!0===n.postcss?n=n():n.postcss&&(n=n.postcss),"object"==typeof n&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if("object"==typeof n&&n.postcssPlugin)t.push(n);else if("function"==typeof n)t.push(n);else if("object"!=typeof n||!n.parse&&!n.stringify)throw new Error(n+" is not a PostCSS plugin");return t}process(e,t={}){return this.plugins.length||t.parser||t.stringifier||t.syntax?new a(this,e,t):new i(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}e.exports=o,o.default=o,r.registerProcessor(o),s.registerProcessor(o)},56098(e,t,n){"use strict";let s=n(60038);class a{get content(){return this.css}constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,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 s(e,t);return this.messages.push(n),n}warnings(){return this.messages.filter((e=>"warning"===e.type))}}e.exports=a,a.default=a},25644(e,t,n){"use strict";let s,a,i=n(77793);class r extends i{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,n){let s=super.normalize(e);if(t)if("prepend"===n)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of s)e.raws.before=t.raws.before;return s}removeChild(e,t){let n=this.index(e);return!t&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new s(new a,this,e).stringify()}}r.registerLazyResult=e=>{s=e},r.registerProcessor=e=>{a=e},e.exports=r,r.default=r,i.registerRoot(r)},61534(e,t,n){"use strict";let s=n(77793),a=n(81752);class i extends s{get selectors(){return a.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(n)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}}e.exports=i,i.default=i,s.registerRule(i)},47668(e){"use strict";const t=/(<)(\/?style\b)/gi,n=/(<)(!--)/g;function s(e){return"string"!=typeof e?e:e.includes("<")?e.replace(t,"\\3c $2").replace(n,"\\3c $2"):e}const a={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};class i{constructor(e){this.builder=e}atrule(e,t){let n=e.raws,a="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(void 0!==n.afterName?a+=n.afterName:i&&(a+=" "),e.nodes)this.block(e,a+i);else{let r=(n.between||"")+(t?";":"");this.builder(s(a+i+r),e)}}beforeAfter(e,t){let n;n="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 s=e.parent,a=0;for(;s&&"root"!==s.type;)a+=1,s=s.parent;if(n.includes("\n")){let t=this.raw(e,null,"indent");if(t.length)for(let e=0;e<a;e++)n+=t}return n}block(e,t){let n,a=this.raw(e,"between","beforeOpen");this.builder(s(t+a)+"{",e,"start"),e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(s(n)),this.builder("}",e,"end")}body(e){let t=e.nodes,n=t.length-1;for(;n>0&&"comment"===t[n].type;)n-=1;let a=this.raw(e,"semicolon"),i="document"===e.type;for(let e=0;e<t.length;e++){let r=t[e],o=this.raw(r,"before");o&&this.builder(i?o:s(o)),this.stringify(r,n!==e||a)}}comment(e){let t=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder(s("/*"+t+e.text+n+"*/"),e)}decl(e,t){let n=e.raws,a=this.raw(e,"between","colon"),i=e.prop+a+this.rawValue(e,"value");e.important&&(i+=n.important||" !important"),t&&(i+=";"),this.builder(s(i),e)}document(e){this.body(e)}raw(e,t,n){let s;if(n||(n=t),t&&(s=e.raws[t],void 0!==s))return s;let i=e.parent;if("before"===n){if(!i||"root"===i.type&&i.first===e)return"";if(i&&"document"===i.type)return""}if(!i)return a[n];let r=e.root(),o=r.rawCache||(r.rawCache={});if(void 0!==o[n])return o[n];if("before"===n||"after"===n)return this.beforeAfter(e,n);{let a="raw"+((l=n)[0].toUpperCase()+l.slice(1));this[a]?s=this[a](r,e):r.walk((e=>{if(s=e.raws[t],void 0!==s)return!1}))}var l;return void 0===s&&(s=a[n]),o[n]=s,s}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 n;return e.walkComments((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,t){let n;return e.walkDecls((e=>{if(void 0!==e.raws.before)return n=e.raws.before,n.includes("\n")&&(n=n.replace(/[^\n]+$/,"")),!1})),void 0===n?n=this.raw(t,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}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((n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&void 0!==n.raws.before)return t=n.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((n=>{let s=n.parent;if(s&&s!==e&&s.parent&&s.parent===e&&void 0!==n.raws.before){let e=n.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 n=e[t],s=e.raws[t];return s&&s.value===n?s.raw:n}root(e){if(this.body(e),e.raws.after){let t=e.raws.after,n=e.parent&&"document"===e.parent.type;this.builder(n?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)}}e.exports=i,i.default=i},83303(e,t,n){"use strict";let s=n(47668);function a(e,t){new s(t).stringify(e)}e.exports=a,a.default=a},84151(e){"use strict";e.exports.isClean=Symbol("isClean"),e.exports.my=Symbol("my")},68162(e){"use strict";const t="'".charCodeAt(0),n='"'.charCodeAt(0),s="\\".charCodeAt(0),a="/".charCodeAt(0),i="\n".charCodeAt(0),r=" ".charCodeAt(0),o="\f".charCodeAt(0),l="\t".charCodeAt(0),c="\r".charCodeAt(0),u="[".charCodeAt(0),d="]".charCodeAt(0),p="(".charCodeAt(0),h=")".charCodeAt(0),m="{".charCodeAt(0),g="}".charCodeAt(0),f=";".charCodeAt(0),b="*".charCodeAt(0),v=":".charCodeAt(0),y="@".charCodeAt(0),S=/[\t\n\f\r "#'()/;[\\\]{}]/g,w=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,x=/.[\r\n"'(/\\]/,A=/[\da-f]/i;e.exports=function(e,_={}){let k,j,C,I,T,D,P,O,L,M,E=e.css.valueOf(),R=_.ignoreErrors,U=E.length,N=0,F=[],B=[],Y=-1;function H(t){throw e.error("Unclosed "+t,N)}return{back:function(e){B.push(e)},endOfFile:function(){return 0===B.length&&N>=U},nextToken:function(e){if(B.length)return B.pop();if(N>=U)return;let _=!!e&&e.ignoreUnclosed;switch(k=E.charCodeAt(N),k){case i:case r:case l:case c:case o:I=N;do{I+=1,k=E.charCodeAt(I)}while(k===r||k===i||k===l||k===c||k===o);D=["space",E.slice(N,I)],N=I-1;break;case u:case d:case m:case g:case v:case f:case h:{let e=String.fromCharCode(k);D=[e,e,N];break}case p:if(M=F.length?F.pop()[1]:"",L=E.charCodeAt(N+1),"url"===M&&L!==t&&L!==n&&L!==r&&L!==i&&L!==l&&L!==o&&L!==c){I=N;do{if(P=!1,I=E.indexOf(")",I+1),-1===I){if(R||_){I=N;break}H("bracket")}for(O=I;E.charCodeAt(O-1)===s;)O-=1,P=!P}while(P);D=["brackets",E.slice(N,I+1),N,I],N=I}else N<=Y?D=["(","(",N]:(I=E.indexOf(")",N+1),j=E.slice(N,I+1),-1===I||x.test(j)?(Y=-1===I?U:I,D=["(","(",N]):(D=["brackets",j,N,I],N=I));break;case t:case n:T=k===t?"'":'"',I=N;do{if(P=!1,I=E.indexOf(T,I+1),-1===I){if(R||_){I=N+1;break}H("string")}for(O=I;E.charCodeAt(O-1)===s;)O-=1,P=!P}while(P);D=["string",E.slice(N,I+1),N,I],N=I;break;case y:S.lastIndex=N+1,S.test(E),I=0===S.lastIndex?E.length-1:S.lastIndex-2,D=["at-word",E.slice(N,I+1),N,I],N=I;break;case s:for(I=N,C=!0;E.charCodeAt(I+1)===s;)I+=1,C=!C;if(k=E.charCodeAt(I+1),C&&k!==a&&k!==r&&k!==i&&k!==l&&k!==c&&k!==o&&(I+=1,A.test(E.charAt(I)))){for(;A.test(E.charAt(I+1));)I+=1;E.charCodeAt(I+1)===r&&(I+=1)}D=["word",E.slice(N,I+1),N,I],N=I;break;default:k===a&&E.charCodeAt(N+1)===b?(I=E.indexOf("*/",N+2)+1,0===I&&(R||_?I=E.length:H("comment")),D=["comment",E.slice(N,I+1),N,I],N=I):(w.lastIndex=N+1,w.test(E),I=0===w.lastIndex?E.length-1:w.lastIndex-2,D=["word",E.slice(N,I+1),N,I],F.push(D),N=I)}return N++,D},position:function(){return N}}}},6156(e){"use strict";let t={};e.exports=function(e){t[e]||(t[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e))}},60038(e){"use strict";class t{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){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 e in t)this[e]=t[e]}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}}e.exports=t,t.default=t},2694(e,t,n){"use strict";var s=n(6925);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,r){if(r!==s){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},48379(e,t,n){"use strict";n.d(t,{toASCII:()=>f,toUnicode:()=>g});const s=2147483647,a=36,i=/^xn--/,r=/[^\0-\x7F]/,o=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=Math.floor,u=String.fromCharCode;function d(e){throw new RangeError(l[e])}function p(e,t){const n=e.split("@");let s="";n.length>1&&(s=n[0]+"@",e=n[1]);const a=function(e,t){const n=[];let s=e.length;for(;s--;)n[s]=t(e[s]);return n}((e=e.replace(o,".")).split("."),t).join(".");return s+a}const h=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},m=function(e,t,n){let s=0;for(e=n?c(e/700):e>>1,e+=c(e/t);e>455;s+=a)e=c(e/35);return c(s+36*e/(e+38))},g=function(e){return p(e,(function(e){return i.test(e)?function(e){const t=[],n=e.length;let i=0,r=128,o=72,l=e.lastIndexOf("-");l<0&&(l=0);for(let n=0;n<l;++n)e.charCodeAt(n)>=128&&d("not-basic"),t.push(e.charCodeAt(n));for(let p=l>0?l+1:0;p<n;){const l=i;for(let t=1,r=a;;r+=a){p>=n&&d("invalid-input");const l=(u=e.charCodeAt(p++))>=48&&u<58?u-48+26:u>=65&&u<91?u-65:u>=97&&u<123?u-97:a;l>=a&&d("invalid-input"),l>c((s-i)/t)&&d("overflow"),i+=l*t;const h=r<=o?1:r>=o+26?26:r-o;if(l<h)break;const m=a-h;t>c(s/m)&&d("overflow"),t*=m}const h=t.length+1;o=m(i-l,h,0==l),c(i/h)>s-r&&d("overflow"),r+=c(i/h),i%=h,t.splice(i++,0,r)}var u;return String.fromCodePoint(...t)}(e.slice(4).toLowerCase()):e}))},f=function(e){return p(e,(function(e){return r.test(e)?"xn--"+function(e){const t=[],n=(e=function(e){const t=[];let n=0;const s=e.length;for(;n<s;){const a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<s){const s=e.charCodeAt(n++);56320==(64512&s)?t.push(((1023&a)<<10)+(1023&s)+65536):(t.push(a),n--)}else t.push(a)}return t}(e)).length;let i=128,r=0,o=72;for(const n of e)n<128&&t.push(u(n));const l=t.length;let p=l;for(l&&t.push("-");p<n;){let n=s;for(const t of e)t>=i&&t<n&&(n=t);const g=p+1;n-i>c((s-r)/g)&&d("overflow"),r+=(n-i)*g,i=n;for(const n of e)if(n<i&&++r>s&&d("overflow"),n===i){let e=r;for(let n=a;;n+=a){const s=n<=o?1:n>=o+26?26:n-o;if(e<s)break;const i=e-s,r=a-s;t.push(u(h(s+i%r,0))),e=c(i/r)}t.push(u(h(e,0))),o=m(r,g,p===l),r=0,++p}++r,++i}return t.join("")}(e):e}))}},74765(e){"use strict";var t=String.prototype.replace,n=/%20/g,s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:s}},55373(e,t,n){"use strict";var s=n(98636),a=n(62642),i=n(74765);e.exports={formats:i,parse:a,stringify:s}},62642(e,t,n){"use strict";var s=n(37720),a=Object.prototype.hasOwnProperty,i=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:s.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},l=function(e,t,n){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t,n,i){if(e){var r=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&a.call(Object.prototype,n)&&!t.allowPrototypes)return;return[n]}var s=[],i=n.indexOf("["),r=i>=0?n.slice(0,i):n;if(r){if(!t.plainObjects&&a.call(Object.prototype,r)&&!t.allowPrototypes)return;s[s.length]=r}for(var o=n.length,l=i,c=0;l>=0&&c<t.depth;){for(var u=1,d=l+1,p=-1;d<o&&p<0;){var h=n.charCodeAt(d);91===h?u+=1:93===h&&0==(u-=1)&&(p=d),d+=1}if(p<0)return s[s.length]="["+n.slice(l)+"]",s;var m=n.slice(l,p+1),g=m.slice(1,-1);if(!t.plainObjects&&a.call(Object.prototype,g)&&!t.allowPrototypes)return;s[s.length]=m,c+=1,l=n.indexOf("[",p+1)}if(l>=0){if(!0===t.strictDepth)throw new RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s[s.length]="["+n.slice(l)+"]"}return s}(e,n);if(r)return function(e,t,n,a){var i=0;if(e.length>0&&"[]"===e[e.length-1]){var r=e.slice(0,-1).join("");i=Array.isArray(t)&&t[r]?t[r].length:0}for(var o=a?t:l(t,n,i),c=e.length-1;c>=0;--c){var u,d=e[c];if("[]"===d&&n.parseArrays)u=s.isOverflow(o)?o:n.allowEmptyArrays&&(""===o||n.strictNullHandling&&null===o)?[]:s.combine([],o,n.arrayLimit,n.plainObjects);else{u=n.plainObjects?{__proto__:null}:{};var p="["===d.charAt(0)&&"]"===d.charAt(d.length-1)?d.slice(1,-1):d,h=n.decodeDotInKeys?p.replace(/%2E/g,"."):p,m=parseInt(h,10),g=!isNaN(m)&&d!==h&&String(m)===h&&m>=0&&n.parseArrays;if(n.parseArrays||""!==h)if(g&&m<n.arrayLimit)(u=[])[m]=o;else{if(g&&n.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+n.arrayLimit+" element"+(1===n.arrayLimit?"":"s")+" allowed in an array.");g?(u[m]=o,s.markOverflow(u,m)):"__proto__"!==h&&(u[h]=o)}else u={0:o}}o=u}return o}(r,t,n,i)}};e.exports=function(e,t){var n=function(e){if(!e)return r;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?r.charset:e.charset,n=void 0===e.duplicates?r.duplicates:e.duplicates;if("combine"!==n&&"first"!==n&&"last"!==n)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||r.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:r.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||s.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,duplicates:n,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:r.strictDepth,strictMerge:"boolean"==typeof e.strictMerge?!!e.strictMerge:r.strictMerge,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}}(t);if(""===e||null==e)return n.plainObjects?{__proto__:null}:{};for(var u="string"==typeof e?function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,t.throwOnLimitExceeded&&void 0!==u?u+1:u);if(t.throwOnLimitExceeded&&void 0!==u&&d.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p,h=-1,m=t.charset;if(t.charsetSentinel)for(p=0;p<d.length;++p)0===d[p].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[p]?m="utf-8":"utf8=%26%2310003%3B"===d[p]&&(m="iso-8859-1"),h=p,p=d.length);for(p=0;p<d.length;++p)if(p!==h){var g,f,b=d[p],v=b.indexOf("]="),y=-1===v?b.indexOf("="):v+1;if(-1===y?(g=t.decoder(b,r.decoder,m,"key"),f=t.strictNullHandling?null:""):null!==(g=t.decoder(b.slice(0,y),r.decoder,m,"key"))&&(f=s.maybeMap(l(b.slice(y+1),t,i(n[g])?n[g].length:0),(function(e){return t.decoder(e,r.decoder,m,"value")}))),f&&t.interpretNumericEntities&&"iso-8859-1"===m&&(f=o(String(f))),b.indexOf("[]=")>-1&&(f=i(f)?[f]:f),t.comma&&i(f)&&f.length>t.arrayLimit){if(t.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");f=s.combine([],f,t.arrayLimit,t.plainObjects)}if(null!==g){var S=a.call(n,g);S&&("combine"===t.duplicates||b.indexOf("[]=")>-1)?n[g]=s.combine(n[g],f,t.arrayLimit,t.plainObjects):S&&"last"!==t.duplicates||(n[g]=f)}}return n}(e,n):e,d=n.plainObjects?{__proto__:null}:{},p=Object.keys(u),h=0;h<p.length;++h){var m=p[h],g=c(m,u[m],n,"string"==typeof e);d=s.merge(d,g,n)}return!0===n.allowSparse?d:s.compact(d)}},98636(e,t,n){"use strict";var s=n(920),a=n(37720),i=n(74765),r=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,l(t)?t:[t])},d=Date.prototype.toISOString,p=i.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:a.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:i.formatters[p],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},m={},g=function e(t,n,i,r,o,c,d,p,g,f,b,v,y,S,w,x,A,_){for(var k,j=t,C=_,I=0,T=!1;void 0!==(C=C.get(m))&&!T;){var D=C.get(t);if(I+=1,void 0!==D){if(D===I)throw new RangeError("Cyclic object value");T=!0}void 0===C.get(m)&&(I=0)}if("function"==typeof f?j=f(n,j):j instanceof Date?j=y(j):"comma"===i&&l(j)&&(j=a.maybeMap(j,(function(e){return e instanceof Date?y(e):e}))),null===j){if(c)return w(g&&!x?g(n,h.encoder,A,"key",S):n);j=""}if("string"==typeof(k=j)||"number"==typeof k||"boolean"==typeof k||"symbol"==typeof k||"bigint"==typeof k||a.isBuffer(j))return g?[w(x?n:g(n,h.encoder,A,"key",S))+"="+w(g(j,h.encoder,A,"value",S))]:[w(n)+"="+w(String(j))];var P,O=[];if(void 0===j)return O;if("comma"===i&&l(j))x&&g&&(j=a.maybeMap(j,(function(e){return null==e?e:g(e)}))),P=[{value:j.length>0?j.join(",")||null:void 0}];else if(l(f))P=f;else{var L=Object.keys(j);P=b?L.sort(b):L}var M=p?String(n).replace(/\./g,"%2E"):String(n),E=r&&l(j)&&1===j.length?M+"[]":M;if(o&&l(j)&&0===j.length)return E+"[]";for(var R=0;R<P.length;++R){var U=P[R],N="object"==typeof U&&U&&void 0!==U.value?U.value:j[U];if(!d||null!==N){var F=v&&p?String(U).replace(/\./g,"%2E"):String(U),B=l(j)?"function"==typeof i?i(E,F):E:E+(v?"."+F:"["+F+"]");_.set(t,I);var Y=s();Y.set(m,_),u(O,e(N,B,i,r,o,c,d,p,"comma"===i&&x&&l(j)?null:g,f,b,v,y,S,w,x,A,Y))}}return O};e.exports=function(e,t){var n,a=e,c=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!r.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s,a=i.formatters[n],c=h.filter;if(("function"==typeof e.filter||l(e.filter))&&(c=e.filter),s=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:c,format:n,formatter:a,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}}(t);"function"==typeof c.filter?a=(0,c.filter)("",a):l(c.filter)&&(n=c.filter);var d=[];if("object"!=typeof a||null===a)return"";var p=o[c.arrayFormat],m="comma"===p&&c.commaRoundTrip;n||(n=Object.keys(a)),c.sort&&n.sort(c.sort);for(var f=s(),b=0;b<n.length;++b){var v=n[b];if(null!=v){var y=a[v];c.skipNulls&&null===y||u(d,g(y,v,p,m,c.allowEmptyArrays,c.strictNullHandling,c.skipNulls,c.encodeDotInKeys,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,f))}}var S=d.join(c.delimiter),w=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?w+="utf8=%26%2310003%3B"+c.delimiter:w+="utf8=%E2%9C%93"+c.delimiter),S.length>0?w+S:""}},37720(e,t,n){"use strict";var s=n(74765),a=n(920),i=Object.prototype.hasOwnProperty,r=Array.isArray,o=a(),l=function(e,t){return o.set(e,t),e},c=function(e){return o.has(e)},u=function(e){return o.get(e)},d=function(e,t){o.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),h=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},s=0;s<e.length;++s)void 0!==e[s]&&(n[s]=e[s]);return n},m=1024;e.exports={arrayToObject:h,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t,n,s){if(c(e)){var a=u(e)+1;return e[a]=t,d(e,a),e}var i=[].concat(e,t);return i.length>n?l(h(i,{plainObjects:s}),i.length-1):i},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],s=0;s<t.length;++s)for(var a=t[s],i=a.obj[a.prop],o=Object.keys(i),l=0;l<o.length;++l){var c=o[l],u=i[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:i,prop:c},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var s=[],a=0;a<n.length;++a)void 0!==n[a]&&(s[s.length]=n[a]);t.obj[t.prop]=s}}}(t),e},decode:function(e,t,n){var s=e.replace(/\+/g," ");if("iso-8859-1"===n)return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch(e){return s}},encode:function(e,t,n,a,i){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",l=0;l<r.length;l+=m){for(var c=r.length>=m?r.slice(l,l+m):r,u=[],d=0;d<c.length;++d){var h=c.charCodeAt(d);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||i===s.RFC1738&&(40===h||41===h)?u[u.length]=c.charAt(d):h<128?u[u.length]=p[h]:h<2048?u[u.length]=p[192|h>>6]+p[128|63&h]:h<55296||h>=57344?u[u.length]=p[224|h>>12]+p[128|h>>6&63]+p[128|63&h]:(d+=1,h=65536+((1023&h)<<10|1023&c.charCodeAt(d)),u[u.length]=p[240|h>>18]+p[128|h>>12&63]+p[128|h>>6&63]+p[128|63&h])}o+=u.join("")}return o},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:c,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:l,maybeMap:function(e,t){if(r(e)){for(var n=[],s=0;s<e.length;s+=1)n[n.length]=t(e[s]);return n}return t(e)},merge:function e(t,n,s){if(!n)return t;if("object"!=typeof n&&"function"!=typeof n){if(r(t)){var a=t.length;if(s&&"number"==typeof s.arrayLimit&&a>s.arrayLimit)return l(h(t.concat(n),s),a);t[a]=n}else{if(!t||"object"!=typeof t)return[t,n];if(c(t)){var o=u(t)+1;t[o]=n,d(t,o)}else{if(s&&s.strictMerge)return[t,n];(s&&(s.plainObjects||s.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}}return t}if(!t||"object"!=typeof t){if(c(n)){for(var p=Object.keys(n),m=s&&s.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<p.length;g++)m[parseInt(p[g],10)+1]=n[p[g]];return l(m,u(n)+1)}var f=[t].concat(n);return s&&"number"==typeof s.arrayLimit&&f.length>s.arrayLimit?l(h(f,s),f.length-1):f}var b=t;return r(t)&&!r(n)&&(b=h(t,s)),r(t)&&r(n)?(n.forEach((function(n,a){if(i.call(t,a)){var r=t[a];r&&"object"==typeof r&&n&&"object"==typeof n?t[a]=e(r,n,s):t[t.length]=n}else t[a]=n})),t):Object.keys(n).reduce((function(t,a){var r=n[a];if(i.call(t,a)?t[a]=e(t[a],r,s):t[a]=r,c(n)&&!c(t)&&l(t,u(n)),c(t)){var o=parseInt(a,10);String(o)===a&&o>=0&&o>u(t)&&d(t,o)}return t}),b)}}},25264(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var s=r(n(17965)),a=r(n(96540)),i=["text","onCopy","options","children"];function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,f(s.key),s)}}function d(e,t,n){return t=h(t),function(e,t){if(t&&("object"==o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function g(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){var t=function(e){if("object"!=o(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=o(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==o(t)?t:t+""}var b=t.CopyToClipboard=function(e){function t(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return g(e=d(this,t,[].concat(i)),"onClick",(function(t){var n=e.props,i=n.text,r=n.onCopy,o=n.children,l=n.options,c=a.default.Children.only(o),u=(0,s.default)(i,l);r&&r(i,u),null!=c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=function(e,t){if(null==e)return{};var n,s,a=function(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,i),s=a.default.Children.only(t);return a.default.cloneElement(s,c(c({},n),{},{onClick:this.onClick}))}}],r&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(a.default.PureComponent);g(b,"defaultProps",{onCopy:void 0,options:void 0})},59399(e,t,n){"use strict";var s=n(25264).CopyToClipboard;s.CopyToClipboard=s,e.exports=s},59386(e,t,n){!function(e,t,n,s,a,i,r,o,l,c,u,d,p,h,m,g,f,b,v,y,S,w,x,A,_,k,j,C,I,T,D,P,O,L,M,E,R,U,N,F,B,Y,H,V,W,$,z,q,G,K,Q,J,X,Z,ee,te,ne,se,ae,ie,re,oe,le,ce,ue){"use strict";function de(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var pe=de(n),he=de(ue),me=function(e,t){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},me(e,t)};function ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}me(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var fe=function(){return fe=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},fe.apply(this,arguments)};function be(e,t,n){if(n||2===arguments.length)for(var s,a=0,i=t.length;a<i;a++)!s&&a in t||(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ve,ye=function(e){var t=e.showTimeSelectOnly,n=void 0!==t&&t,s=e.showTime,a=void 0!==s&&s,i=e.className,r=e.children,o=n?"Choose Time":"Choose Date".concat(a?" and Time":"");return pe.default.createElement("div",{className:i,role:"dialog","aria-label":o,"aria-modal":"true"},r)},Se=function(e){var t=e.children,s=e.onClickOutside,a=e.className,i=e.containerRef,r=e.style,o=function(e,t){var s=n.useRef(null),a=n.useRef(e);a.current=e;var i=n.useCallback((function(e){var n;s.current&&!s.current.contains(e.target)&&(t&&e.target instanceof HTMLElement&&e.target.classList.contains(t)||null===(n=a.current)||void 0===n||n.call(a,e))}),[t]);return n.useEffect((function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}}),[i]),s}(s,e.ignoreClass);return pe.default.createElement("div",{className:a,style:r,ref:function(e){o.current=e,i&&(i.current=e)}},t)};function we(){return"undefined"!=typeof window?window:globalThis}!function(e){e.ArrowUp="ArrowUp",e.ArrowDown="ArrowDown",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.PageUp="PageUp",e.PageDown="PageDown",e.Home="Home",e.End="End",e.Enter="Enter",e.Space=" ",e.Tab="Tab",e.Escape="Escape",e.Backspace="Backspace",e.X="x"}(ve||(ve={}));var xe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function Ae(e){if(null==e)return new Date;var t="string"==typeof e?W.parseISO(e):le.toDate(e);return ke(t)?t:new Date}function _e(e,t,n,s,a){var i,r=null,o=Ve(n)||Ve(He()),l=!0;if(Array.isArray(t))return t.forEach((function(t){var i=V.parse(e,t,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});s&&(l=ke(i,a)&&e===je(i,t,n)),ke(i,a)&&l&&(r=i)})),r;if(r=V.parse(e,t,new Date,{locale:o,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0}),s)l=ke(r)&&e===je(r,t,n);else if(!ke(r)){var c=(null!==(i=t.match(xe))&&void 0!==i?i:[]).map((function(e){var t=e[0];if("p"===t||"P"===t){var n=S.longFormatters[t];return o?n(e,o.formatLong):t}return e})).join("");e.length>0&&(r=V.parse(e,c.slice(0,e.length),new Date,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})),ke(r)||(r=new Date(e))}return ke(r)&&l?r:null}function ke(e,t){return F.isValid(e)&&!O.isBefore(e,null!=t?t:new Date("1/1/1800"))}function je(e,t,n){if("en"===n)return S.format(e,t,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var s=n?Ve(n):void 0;return n&&!s&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!s&&He()&&Ve(He())&&(s=Ve(He())),S.format(e,t,{locale:s,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function Ce(e,t){var n=t.dateFormat,s=t.locale,a=Array.isArray(n)&&n.length>0?n[0]:n;return e&&je(e,a,s)||""}function Ie(e,t){var n=t.hour,s=void 0===n?0:n,a=t.minute,i=void 0===a?0:a,r=t.second,o=void 0===r?0:r;return z.setHours(q.setMinutes(Q.setSeconds(e,o),i),s)}function Te(e){return X.startOfDay(e)}function De(e,t,n){var s=Ve(t||He());return te.startOfWeek(e,{locale:s,weekStartsOn:n})}function Pe(e){return Z.startOfMonth(e)}function Oe(e){return ne.startOfYear(e)}function Le(e){return ee.startOfQuarter(e)}function Me(){return X.startOfDay(Ae())}function Ee(e){return f.endOfDay(e)}function Re(e,t){return e&&t?N.isSameYear(e,t):!e&&!t}function Ue(e,t){return e&&t?R.isSameMonth(e,t):!e&&!t}function Ne(e,t){return e&&t?U.isSameQuarter(e,t):!e&&!t}function Fe(e,t){return e&&t?E.isSameDay(e,t):!e&&!t}function Be(e,t){return e&&t?M.isEqual(e,t):!e&&!t}function Ye(e,t,n){var s,a=X.startOfDay(t),i=f.endOfDay(n);try{s=B.isWithinInterval(e,{start:a,end:i})}catch(e){s=!1}return s}function He(){return we().__localeId__}function Ve(e){if("string"==typeof e){var t=we();return t.__localeData__?t.__localeData__[e]:void 0}return e}function We(e,t){return je(G.setMonth(Ae(),e),"LLLL",t)}function $e(e,t){return je(G.setMonth(Ae(),e),"LLL",t)}function ze(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.maxDate,i=n.excludeDates,r=n.excludeDateIntervals,o=n.includeDates,l=n.includeDateIntervals,c=n.filterDate;return tt(e,{minDate:s,maxDate:a})||i&&i.some((function(t){return t instanceof Date?Fe(e,t):Fe(e,t.date)}))||r&&r.some((function(t){var n=t.start,s=t.end;return B.isWithinInterval(e,{start:n,end:s})}))||o&&!o.some((function(t){return Fe(e,t)}))||l&&!l.some((function(t){var n=t.start,s=t.end;return B.isWithinInterval(e,{start:n,end:s})}))||c&&!c(Ae(e))||!1}function qe(e,t){var n=void 0===t?{}:t,s=n.excludeDates,a=n.excludeDateIntervals;return a&&a.length>0?a.some((function(t){var n=t.start,s=t.end;return B.isWithinInterval(e,{start:n,end:s})})):s&&s.some((function(t){var n;return t instanceof Date?Fe(e,t):Fe(e,null!==(n=t.date)&&void 0!==n?n:new Date)}))||!1}function Ge(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.maxDate,i=n.excludeDates,r=n.includeDates,o=n.filterDate;return tt(e,{minDate:s?Z.startOfMonth(s):void 0,maxDate:a?b.endOfMonth(a):void 0})||(null==i?void 0:i.some((function(t){return Ue(e,t instanceof Date?t:t.date)})))||r&&!r.some((function(t){return Ue(e,t)}))||o&&!o(Ae(e))||!1}function Ke(e,t,n,s){var a=D.getYear(e),i=j.getMonth(e),r=D.getYear(t),o=j.getMonth(t),l=D.getYear(s);return a===r&&a===l?i<=n&&n<=o:a<r&&(l===a&&i<=n||l===r&&o>=n||l<r&&l>a)}function Qe(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.maxDate,i=n.excludeDates,r=n.includeDates;return tt(e,{minDate:s,maxDate:a})||i&&i.some((function(t){return Ue(t instanceof Date?t:t.date,e)}))||r&&!r.some((function(t){return Ue(t,e)}))||!1}function Je(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.maxDate,i=n.excludeDates,r=n.includeDates,o=n.filterDate;return tt(e,{minDate:s,maxDate:a})||(null==i?void 0:i.some((function(t){return Ne(e,t instanceof Date?t:t.date)})))||r&&!r.some((function(t){return Ne(e,t)}))||o&&!o(Ae(e))||!1}function Xe(e,t,n){if(!t||!n)return!1;if(!F.isValid(t)||!F.isValid(n))return!1;var s=D.getYear(t),a=D.getYear(n);return s<=e&&a>=e}function Ze(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.maxDate,i=n.excludeDates,r=n.includeDates,o=n.filterDate,l=new Date(e,0,1);return tt(l,{minDate:s?ne.startOfYear(s):void 0,maxDate:a?y.endOfYear(a):void 0})||(null==i?void 0:i.some((function(e){return Re(l,e instanceof Date?e:e.date)})))||r&&!r.some((function(e){return Re(l,e)}))||o&&!o(Ae(l))||!1}function et(e,t,n,s){var a=D.getYear(e),i=C.getQuarter(e),r=D.getYear(t),o=C.getQuarter(t),l=D.getYear(s);return a===r&&a===l?i<=n&&n<=o:a<r&&(l===a&&i<=n||l===r&&o>=n||l<r&&l>a)}function tt(e,t){var n,s=void 0===t?{}:t,a=s.minDate,i=s.maxDate;return null!==(n=a&&p.differenceInCalendarDays(e,a)<0||i&&p.differenceInCalendarDays(e,i)>0)&&void 0!==n&&n}function nt(e,t){return t.some((function(t){return A.getHours(t)===A.getHours(e)&&k.getMinutes(t)===k.getMinutes(e)&&I.getSeconds(t)===I.getSeconds(e)}))}function st(e,t){var n=void 0===t?{}:t,s=n.excludeTimes,a=n.includeTimes,i=n.filterTime;return s&&nt(e,s)||a&&!nt(e,a)||i&&!i(e)||!1}function at(e,t){var n=t.minTime,s=t.maxTime;if(!n||!s)throw new Error("Both minTime and maxTime props required");var a=Ae();a=z.setHours(a,A.getHours(e)),a=q.setMinutes(a,k.getMinutes(e)),a=Q.setSeconds(a,I.getSeconds(e));var i=Ae();i=z.setHours(i,A.getHours(n)),i=q.setMinutes(i,k.getMinutes(n)),i=Q.setSeconds(i,I.getSeconds(n));var r,o=Ae();o=z.setHours(o,A.getHours(s)),o=q.setMinutes(o,k.getMinutes(s)),o=Q.setSeconds(o,I.getSeconds(s));try{r=!B.isWithinInterval(a,{start:i,end:o})}catch(e){r=!1}return r}function it(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.includeDates,i=ae.subMonths(e,1);return s&&h.differenceInCalendarMonths(s,i)>0||a&&a.every((function(e){return h.differenceInCalendarMonths(e,i)>0}))||!1}function rt(e,t){var n=void 0===t?{}:t,s=n.maxDate,a=n.includeDates,i=o.addMonths(e,1);return s&&h.differenceInCalendarMonths(i,s)>0||a&&a.every((function(e){return h.differenceInCalendarMonths(i,e)>0}))||!1}function ot(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.includeDates,i=oe.subYears(e,1);return s&&g.differenceInCalendarYears(s,i)>0||a&&a.every((function(e){return g.differenceInCalendarYears(e,i)>0}))||!1}function lt(e,t){var n=void 0===t?{}:t,s=n.maxDate,a=n.includeDates,i=d.addYears(e,1);return s&&g.differenceInCalendarYears(i,s)>0||a&&a.every((function(e){return g.differenceInCalendarYears(i,e)>0}))||!1}function ct(e){var t=e.minDate,n=e.includeDates;if(n&&t){var s=n.filter((function(e){return p.differenceInCalendarDays(e,t)>=0}));return H.min(s)}return n?H.min(n):t}function ut(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var s=n.filter((function(e){return p.differenceInCalendarDays(e,t)<=0}));return Y.max(s)}return n?Y.max(n):t}function dt(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--highlighted");for(var s=new Map,a=0,i=e.length;a<i;a++){var r=e[a];if(L.isDate(r)){var o=je(r,"MM.dd.yyyy");(p=s.get(o)||[]).includes(t)||(p.push(t),s.set(o,p))}else if("object"==typeof r){var l=null!==(n=Object.keys(r)[0])&&void 0!==n?n:"",c=r[l];if("string"==typeof l&&Array.isArray(c))for(var u=0,d=c.length;u<d;u++){var p,h=c[u];h&&(o=je(h,"MM.dd.yyyy"),(p=s.get(o)||[]).includes(l)||(p.push(l),s.set(o,p)))}}}return s}function pt(e,t){void 0===e&&(e=[]),void 0===t&&(t="react-datepicker__day--holidays");var n=new Map;return e.forEach((function(e){var s=e.date,a=e.holidayName;if(L.isDate(s)){var i=je(s,"MM.dd.yyyy"),r=n.get(i)||{className:"",holidayNames:[]};if(!("className"in r)||r.className!==t||(o=r.holidayNames,l=[a],o.length!==l.length||!o.every((function(e,t){return e===l[t]})))){var o,l;r.className=t;var c=r.holidayNames;r.holidayNames=c?be(be([],c,!0),[a],!1):[a],n.set(i,r)}}})),n}function ht(e,t,n,s,a){for(var o=a.length,l=[],u=0;u<o;u++){var d=e,p=a[u];p&&(d=i.addHours(d,A.getHours(p)),d=r.addMinutes(d,k.getMinutes(p)),d=c.addSeconds(d,I.getSeconds(p)));var h=r.addMinutes(e,(n+1)*s);P.isAfter(d,t)&&O.isBefore(d,h)&&null!=p&&l.push(p)}return l}function mt(e){return e<10?"0".concat(e):"".concat(e)}function gt(e,t){void 0===t&&(t=12);var n=Math.ceil(D.getYear(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function ft(e){var t=e.getSeconds(),n=e.getMilliseconds();return le.toDate(e.getTime()-1e3*t-n)}function bt(e){if(!L.isDate(e))throw new Error("Invalid date");var t=new Date(e);return t.setHours(0,0,0,0),t}function vt(e,t){if(!L.isDate(e)||!L.isDate(t))throw new Error("Invalid date received");var n=bt(e),s=bt(t);return O.isBefore(n,s)}function yt(e){return e.key===ve.Space}var St,wt=function(e){function t(t){var s=e.call(this,t)||this;return s.inputRef=pe.default.createRef(),s.onTimeChange=function(e){var t,n;s.setState({time:e});var a=s.props.date,i=a instanceof Date&&!isNaN(+a)?a:new Date;if(null==e?void 0:e.includes(":")){var r=e.split(":"),o=r[0],l=r[1];i.setHours(Number(o)),i.setMinutes(Number(l))}null===(n=(t=s.props).onChange)||void 0===n||n.call(t,i)},s.renderTimeInput=function(){var e=s.state.time,t=s.props,a=t.date,i=t.timeString,r=t.customTimeInput;return r?n.cloneElement(r,{date:a,value:e,onChange:s.onTimeChange}):pe.default.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:s.inputRef,onClick:function(){var e;null===(e=s.inputRef.current)||void 0===e||e.focus()},required:!0,value:e,onChange:function(e){s.onTimeChange(e.target.value||i)}})},s.state={time:s.props.timeString},s}return ge(t,e),t.getDerivedStateFromProps=function(e,t){return e.timeString!==t.time?{time:e.timeString}:null},t.prototype.render=function(){return pe.default.createElement("div",{className:"react-datepicker__input-time-container"},pe.default.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),pe.default.createElement("div",{className:"react-datepicker-time__input-container"},pe.default.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},t}(n.Component),xt=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.dayEl=n.createRef(),s.handleClick=function(e){!s.isDisabled()&&s.props.onClick&&s.props.onClick(e)},s.handleMouseEnter=function(e){!s.isDisabled()&&s.props.onMouseEnter&&s.props.onMouseEnter(e)},s.handleOnKeyDown=function(e){var t,n;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(n=(t=s.props).handleOnKeyDown)||void 0===n||n.call(t,e)},s.isSameDay=function(e){return Fe(s.props.day,e)},s.isKeyboardSelected=function(){var e;if(s.props.disabledKeyboardNavigation)return!1;var t=s.props.selectsMultiple?null===(e=s.props.selectedDates)||void 0===e?void 0:e.some((function(e){return s.isSameDayOrWeek(e)})):s.isSameDayOrWeek(s.props.selected),n=s.props.preSelection&&s.isDisabled(s.props.preSelection);return!t&&s.isSameDayOrWeek(s.props.preSelection)&&!n},s.isDisabled=function(e){return void 0===e&&(e=s.props.day),ze(e,{minDate:s.props.minDate,maxDate:s.props.maxDate,excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals,includeDateIntervals:s.props.includeDateIntervals,includeDates:s.props.includeDates,filterDate:s.props.filterDate})},s.isExcluded=function(){return qe(s.props.day,{excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals})},s.isStartOfWeek=function(){return Fe(s.props.day,De(s.props.day,s.props.locale,s.props.calendarStartDay))},s.isSameWeek=function(e){return s.props.showWeekPicker&&Fe(e,De(s.props.day,s.props.locale,s.props.calendarStartDay))},s.isSameDayOrWeek=function(e){return s.isSameDay(e)||s.isSameWeek(e)},s.getHighLightedClass=function(){var e=s.props,t=e.day,n=e.highlightDates;if(!n)return!1;var a=je(t,"MM.dd.yyyy");return n.get(a)},s.getHolidaysClass=function(){var e,t=s.props,n=t.day,a=t.holidays;if(!a)return[void 0];var i=je(n,"MM.dd.yyyy");return a.has(i)?[null===(e=a.get(i))||void 0===e?void 0:e.className]:[void 0]},s.isInRange=function(){var e=s.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Ye(t,n,a)},s.isInSelectingRange=function(){var e,t=s.props,n=t.day,a=t.selectsStart,i=t.selectsEnd,r=t.selectsRange,o=t.selectsDisabledDaysInRange,l=t.startDate,c=t.endDate,u=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return!(!(a||i||r)||!u||!o&&s.isDisabled())&&(a&&c&&(O.isBefore(u,c)||Be(u,c))?Ye(n,u,c):(i&&l&&(P.isAfter(u,l)||Be(u,l))||!(!r||!l||c||!P.isAfter(u,l)&&!Be(u,l)))&&Ye(n,l,u))},s.isSelectingRangeStart=function(){var e;if(!s.isInSelectingRange())return!1;var t=s.props,n=t.day,a=t.startDate,i=t.selectsStart,r=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return Fe(n,i?r:a)},s.isSelectingRangeEnd=function(){var e;if(!s.isInSelectingRange())return!1;var t=s.props,n=t.day,a=t.endDate,i=t.selectsEnd,r=t.selectsRange,o=null!==(e=s.props.selectingDate)&&void 0!==e?e:s.props.preSelection;return Fe(n,i||r?o:a)},s.isRangeStart=function(){var e=s.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Fe(n,t)},s.isRangeEnd=function(){var e=s.props,t=e.day,n=e.startDate,a=e.endDate;return!(!n||!a)&&Fe(a,t)},s.isWeekend=function(){var e=x.getDay(s.props.day);return 0===e||6===e},s.isAfterMonth=function(){return void 0!==s.props.month&&(s.props.month+1)%12===j.getMonth(s.props.day)},s.isBeforeMonth=function(){return void 0!==s.props.month&&(j.getMonth(s.props.day)+1)%12===s.props.month},s.isCurrentDay=function(){return s.isSameDay(Ae())},s.isSelected=function(){var e;return s.props.selectsMultiple?null===(e=s.props.selectedDates)||void 0===e?void 0:e.some((function(e){return s.isSameDayOrWeek(e)})):s.isSameDayOrWeek(s.props.selected)},s.getClassNames=function(e){var n=s.props.dayClassName?s.props.dayClassName(e):void 0;return t.clsx("react-datepicker__day",n,"react-datepicker__day--"+je(s.props.day,"ddd",undefined),{"react-datepicker__day--disabled":s.isDisabled(),"react-datepicker__day--excluded":s.isExcluded(),"react-datepicker__day--selected":s.isSelected(),"react-datepicker__day--keyboard-selected":s.isKeyboardSelected(),"react-datepicker__day--range-start":s.isRangeStart(),"react-datepicker__day--range-end":s.isRangeEnd(),"react-datepicker__day--in-range":s.isInRange(),"react-datepicker__day--in-selecting-range":s.isInSelectingRange(),"react-datepicker__day--selecting-range-start":s.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":s.isSelectingRangeEnd(),"react-datepicker__day--today":s.isCurrentDay(),"react-datepicker__day--weekend":s.isWeekend(),"react-datepicker__day--outside-month":s.isAfterMonth()||s.isBeforeMonth()},s.getHighLightedClass(),s.getHolidaysClass())},s.getAriaLabel=function(){var e=s.props,t=e.day,n=e.ariaLabelPrefixWhenEnabled,a=void 0===n?"Choose":n,i=e.ariaLabelPrefixWhenDisabled,r=void 0===i?"Not available":i,o=s.isDisabled()||s.isExcluded()?r:a;return"".concat(o," ").concat(je(t,"PPPP",s.props.locale))},s.getTitle=function(){var e=s.props,t=e.day,n=e.holidays,a=void 0===n?new Map:n,i=e.excludeDates,r=je(t,"MM.dd.yyyy"),o=[];return a.has(r)&&o.push.apply(o,a.get(r).holidayNames),s.isExcluded()&&o.push(null==i?void 0:i.filter((function(e){return e instanceof Date?Fe(e,t):Fe(null==e?void 0:e.date,t)})).map((function(e){if(!(e instanceof Date))return null==e?void 0:e.message}))),o.join(", ")},s.getTabIndex=function(){var e=s.props.selected,t=s.props.preSelection;return(!s.props.showWeekPicker||!s.props.showWeekNumber&&s.isStartOfWeek())&&(s.isKeyboardSelected()||s.isSameDay(e)&&Fe(t,e))?0:-1},s.handleFocusDay=function(){var e;s.shouldFocusDay()&&(null===(e=s.dayEl.current)||void 0===e||e.focus({preventScroll:!0}))},s.renderDayContents=function(){return s.props.monthShowsDuplicateDaysEnd&&s.isAfterMonth()||s.props.monthShowsDuplicateDaysStart&&s.isBeforeMonth()?null:s.props.renderDayContents?s.props.renderDayContents(w.getDate(s.props.day),s.props.day):w.getDate(s.props.day)},s.render=function(){return pe.default.createElement("div",{ref:s.dayEl,className:s.getClassNames(s.props.day),onKeyDown:s.handleOnKeyDown,onClick:s.handleClick,onMouseEnter:s.props.usePointerEvent?void 0:s.handleMouseEnter,onPointerEnter:s.props.usePointerEvent?s.handleMouseEnter:void 0,tabIndex:s.getTabIndex(),"aria-label":s.getAriaLabel(),role:"option",title:s.getTitle(),"aria-disabled":s.isDisabled(),"aria-current":s.isCurrentDay()?"date":void 0,"aria-selected":s.isSelected()||s.isInRange()},s.renderDayContents(),""!==s.getTitle()&&pe.default.createElement("span",{className:"overlay"},s.getTitle()))},s}return ge(s,e),s.prototype.componentDidMount=function(){this.handleFocusDay()},s.prototype.componentDidUpdate=function(){this.handleFocusDay()},s.prototype.shouldFocusDay=function(){var e=!1;return 0===this.getTabIndex()&&this.isSameDay(this.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(e=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(e=!1),this.isDayActiveElement()&&(e=!0),this.isDuplicateDay()&&(e=!1)),e},s.prototype.isDayActiveElement=function(){var e,t,n;return(null===(t=null===(e=this.props.containerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.contains(document.activeElement))&&(null===(n=document.activeElement)||void 0===n?void 0:n.classList.contains("react-datepicker__day"))},s.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},s}(n.Component),At=function(e){function s(){var t=null!==e&&e.apply(this,arguments)||this;return t.weekNumberEl=n.createRef(),t.handleClick=function(e){t.props.onClick&&t.props.onClick(e)},t.handleOnKeyDown=function(e){var n,s;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),null===(s=(n=t.props).handleOnKeyDown)||void 0===s||s.call(n,e)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Fe(t.props.date,t.props.selected)&&Fe(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||Fe(t.props.date,t.props.selected)&&Fe(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(e){var n=!1;0===t.getTabIndex()&&!(null==e?void 0:e.isInputFocused)&&Fe(t.props.date,t.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(n=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(n=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(n=!0)),n&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return ge(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),s.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},s.prototype.componentDidUpdate=function(e){this.handleFocusWeekNumber(e)},s.prototype.render=function(){var e=this.props,n=e.weekNumber,a=e.isWeekDisabled,i=e.ariaLabelPrefix,r=void 0===i?s.defaultProps.ariaLabelPrefix:i,o=e.onClick,l={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!o&&!a,"react-datepicker__week-number--selected":!!o&&Fe(this.props.date,this.props.selected)};return pe.default.createElement("div",{ref:this.weekNumberEl,className:t.clsx(l),"aria-label":"".concat(r," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},n)},s}(n.Component),_t=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDisabled=function(e){return ze(e,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(e,n){t.props.onDayClick&&t.props.onDayClick(e,n)},t.handleDayMouseEnter=function(e){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(e)},t.handleWeekClick=function(e,s,a){for(var i,r,o,l=new Date(e),c=0;c<7;c++){var u=new Date(e);if(u.setDate(u.getDate()+c),!t.isDisabled(u)){l=u;break}}"function"==typeof t.props.onWeekSelect&&t.props.onWeekSelect(l,s,a),t.props.showWeekPicker&&t.handleDayClick(l,a),(null!==(i=t.props.shouldCloseOnSelect)&&void 0!==i?i:n.defaultProps.shouldCloseOnSelect)&&(null===(o=(r=t.props).setOpen)||void 0===o||o.call(r,!1))},t.formatWeekNumber=function(e){return t.props.formatWeekNumber?t.props.formatWeekNumber(e):function(e){return _.getISOWeek(e)}(e)},t.isWeekDisabled=function(){for(var e=t.startOfWeek(),n=a.addDays(e,6),s=new Date(e);s<=n;){if(!t.isDisabled(s))return!1;s=a.addDays(s,1)}return!0},t.renderDays=function(){var e=t.startOfWeek(),s=[],i=t.formatWeekNumber(e);if(t.props.showWeekNumber){var r=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,e,i):void 0;s.push(pe.default.createElement(At,fe({key:"W"},n.defaultProps,t.props,{weekNumber:i,isWeekDisabled:t.isWeekDisabled(),date:e,onClick:r})))}return s.concat([0,1,2,3,4,5,6].map((function(s){var i=a.addDays(e,s);return pe.default.createElement(xt,fe({},n.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:i.valueOf(),day:i,onClick:t.handleDayClick.bind(t,i),onMouseEnter:t.handleDayMouseEnter.bind(t,i)}))})))},t.startOfWeek=function(){return De(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!Fe(t.startOfWeek(),t.props.selected)&&Fe(t.startOfWeek(),t.props.preSelection)},t}return ge(n,e),Object.defineProperty(n,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),n.prototype.render=function(){var e={"react-datepicker__week":!0,"react-datepicker__week--selected":Fe(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return pe.default.createElement("div",{className:t.clsx(e)},this.renderDays())},n}(n.Component),kt="two_columns",jt="three_columns",Ct="four_columns",It=((St={})[kt]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},St[jt]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},St[Ct]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},St);function Tt(e,t){return e?Ct:t?kt:jt}var Dt=function(e){function s(){var s=null!==e&&e.apply(this,arguments)||this;return s.MONTH_REFS=be([],Array(12),!0).map((function(){return n.createRef()})),s.QUARTER_REFS=be([],Array(4),!0).map((function(){return n.createRef()})),s.isDisabled=function(e){return ze(e,{minDate:s.props.minDate,maxDate:s.props.maxDate,excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals,includeDateIntervals:s.props.includeDateIntervals,includeDates:s.props.includeDates,filterDate:s.props.filterDate})},s.isExcluded=function(e){return qe(e,{excludeDates:s.props.excludeDates,excludeDateIntervals:s.props.excludeDateIntervals})},s.handleDayClick=function(e,t){var n,a;null===(a=(n=s.props).onDayClick)||void 0===a||a.call(n,e,t,s.props.orderInDisplay)},s.handleDayMouseEnter=function(e){var t,n;null===(n=(t=s.props).onDayMouseEnter)||void 0===n||n.call(t,e)},s.handleMouseLeave=function(){var e,t;null===(t=(e=s.props).onMouseLeave)||void 0===t||t.call(e)},s.isRangeStartMonth=function(e){var t=s.props,n=t.day,a=t.startDate,i=t.endDate;return!(!a||!i)&&Ue(G.setMonth(n,e),a)},s.isRangeStartQuarter=function(e){var t=s.props,n=t.day,a=t.startDate,i=t.endDate;return!(!a||!i)&&Ne(K.setQuarter(n,e),a)},s.isRangeEndMonth=function(e){var t=s.props,n=t.day,a=t.startDate,i=t.endDate;return!(!a||!i)&&Ue(G.setMonth(n,e),i)},s.isRangeEndQuarter=function(e){var t=s.props,n=t.day,a=t.startDate,i=t.endDate;return!(!a||!i)&&Ne(K.setQuarter(n,e),i)},s.isInSelectingRangeMonth=function(e){var t,n=s.props,a=n.day,i=n.selectsStart,r=n.selectsEnd,o=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return!(!(i||r||o)||!u)&&(i&&c?Ke(u,c,e,a):(r&&l||!(!o||!l||c))&&Ke(l,u,e,a))},s.isSelectingMonthRangeStart=function(e){var t;if(!s.isInSelectingRangeMonth(e))return!1;var n=s.props,a=n.day,i=n.startDate,r=n.selectsStart,o=G.setMonth(a,e),l=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return Ue(o,r?l:i)},s.isSelectingMonthRangeEnd=function(e){var t;if(!s.isInSelectingRangeMonth(e))return!1;var n=s.props,a=n.day,i=n.endDate,r=n.selectsEnd,o=n.selectsRange,l=G.setMonth(a,e),c=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return Ue(l,r||o?c:i)},s.isInSelectingRangeQuarter=function(e){var t,n=s.props,a=n.day,i=n.selectsStart,r=n.selectsEnd,o=n.selectsRange,l=n.startDate,c=n.endDate,u=null!==(t=s.props.selectingDate)&&void 0!==t?t:s.props.preSelection;return!(!(i||r||o)||!u)&&(i&&c?et(u,c,e,a):(r&&l||!(!o||!l||c))&&et(l,u,e,a))},s.isWeekInMonth=function(e){var t=s.props.day,n=a.addDays(e,6);return Ue(e,t)||Ue(n,t)},s.isCurrentMonth=function(e,t){return D.getYear(e)===D.getYear(Ae())&&t===j.getMonth(Ae())},s.isCurrentQuarter=function(e,t){return D.getYear(e)===D.getYear(Ae())&&t===C.getQuarter(Ae())},s.isSelectedMonth=function(e,t,n){return j.getMonth(n)===t&&D.getYear(e)===D.getYear(n)},s.isSelectMonthInList=function(e,t,n){return n.some((function(n){return s.isSelectedMonth(e,t,n)}))},s.isSelectedQuarter=function(e,t,n){return C.getQuarter(e)===t&&D.getYear(e)===D.getYear(n)},s.renderWeeks=function(){for(var e=[],t=s.props.fixedHeight,n=0,a=!1,i=De(Pe(s.props.day),s.props.locale,s.props.calendarStartDay),r=s.props.selected?function(e){return s.props.showWeekPicker?De(e,s.props.locale,s.props.calendarStartDay):s.props.selected}(s.props.selected):void 0,o=s.props.preSelection?function(e){return s.props.showWeekPicker?De(e,s.props.locale,s.props.calendarStartDay):s.props.preSelection}(s.props.preSelection):void 0;e.push(pe.default.createElement(_t,fe({},s.props,{ariaLabelPrefix:s.props.weekAriaLabelPrefix,key:n,day:i,month:j.getMonth(s.props.day),onDayClick:s.handleDayClick,onDayMouseEnter:s.handleDayMouseEnter,selected:r,preSelection:o,showWeekNumber:s.props.showWeekNumbers}))),!a;){n++,i=u.addWeeks(i,1);var l=t&&n>=6,c=!t&&!s.isWeekInMonth(i);if(l||c){if(!s.props.peekNextMonth)break;a=!0}}return e},s.onMonthClick=function(e,t){var n=s.isMonthDisabledForLabelDate(t),a=n.isDisabled,i=n.labelDate;a||s.handleDayClick(Pe(i),e)},s.onMonthMouseEnter=function(e){var t=s.isMonthDisabledForLabelDate(e),n=t.isDisabled,a=t.labelDate;n||s.handleDayMouseEnter(Pe(a))},s.handleMonthNavigation=function(e,t){var n,a,i,r;null===(a=(n=s.props).setPreSelection)||void 0===a||a.call(n,t),null===(r=null===(i=s.MONTH_REFS[e])||void 0===i?void 0:i.current)||void 0===r||r.focus()},s.handleKeyboardNavigation=function(e,t,n){var a,i=s.props,r=i.selected,l=i.preSelection,c=i.setPreSelection,u=i.minDate,d=i.maxDate,p=i.showFourColumnMonthYearPicker,h=i.showTwoColumnMonthYearPicker;if(l){var m=Tt(p,h),g=s.getVerticalOffset(m),f=null===(a=It[m])||void 0===a?void 0:a.grid,b=function(e,t,n){var s,a,i=t,r=n;switch(e){case ve.ArrowRight:i=o.addMonths(t,1),r=11===n?0:n+1;break;case ve.ArrowLeft:i=ae.subMonths(t,1),r=0===n?11:n-1;break;case ve.ArrowUp:i=ae.subMonths(t,g),r=(null===(s=null==f?void 0:f[0])||void 0===s?void 0:s.includes(n))?n+12-g:n-g;break;case ve.ArrowDown:i=o.addMonths(t,g),r=(null===(a=null==f?void 0:f[f.length-1])||void 0===a?void 0:a.includes(n))?n-12+g:n+g}return{newCalculatedDate:i,newCalculatedMonth:r}};if(t!==ve.Enter){var v=function(e,t,n){for(var a=e,i=!1,r=0,o=b(a,t,n),l=o.newCalculatedDate,c=o.newCalculatedMonth;!i;){if(r>=40){l=t,c=n;break}var p;u&&l<u&&(a=ve.ArrowRight,l=(p=b(a,l,c)).newCalculatedDate,c=p.newCalculatedMonth),d&&l>d&&(a=ve.ArrowLeft,l=(p=b(a,l,c)).newCalculatedDate,c=p.newCalculatedMonth),Qe(l,s.props)?(l=(p=b(a,l,c)).newCalculatedDate,c=p.newCalculatedMonth):i=!0,r++}return{newCalculatedDate:l,newCalculatedMonth:c}}(t,l,n),y=v.newCalculatedDate,S=v.newCalculatedMonth;switch(t){case ve.ArrowRight:case ve.ArrowLeft:case ve.ArrowUp:case ve.ArrowDown:s.handleMonthNavigation(S,y)}}else s.isMonthDisabled(n)||(s.onMonthClick(e,n),null==c||c(r))}},s.getVerticalOffset=function(e){var t,n;return null!==(n=null===(t=It[e])||void 0===t?void 0:t.verticalNavigationOffset)&&void 0!==n?n:0},s.onMonthKeyDown=function(e,t){var n=s.props,a=n.disabledKeyboardNavigation,i=n.handleOnMonthKeyDown,r=e.key;r!==ve.Tab&&e.preventDefault(),a||s.handleKeyboardNavigation(e,r,t),i&&i(e)},s.onQuarterClick=function(e,t){var n=K.setQuarter(s.props.day,t);Je(n,s.props)||s.handleDayClick(Le(n),e)},s.onQuarterMouseEnter=function(e){var t=K.setQuarter(s.props.day,e);Je(t,s.props)||s.handleDayMouseEnter(Le(t))},s.handleQuarterNavigation=function(e,t){var n,a,i,r;s.isDisabled(t)||s.isExcluded(t)||(null===(a=(n=s.props).setPreSelection)||void 0===a||a.call(n,t),null===(r=null===(i=s.QUARTER_REFS[e-1])||void 0===i?void 0:i.current)||void 0===r||r.focus())},s.onQuarterKeyDown=function(e,t){var n,a,i=e.key;if(!s.props.disabledKeyboardNavigation)switch(i){case ve.Enter:s.onQuarterClick(e,t),null===(a=(n=s.props).setPreSelection)||void 0===a||a.call(n,s.props.selected);break;case ve.ArrowRight:if(!s.props.preSelection)break;s.handleQuarterNavigation(4===t?1:t+1,l.addQuarters(s.props.preSelection,1));break;case ve.ArrowLeft:if(!s.props.preSelection)break;s.handleQuarterNavigation(1===t?4:t-1,ie.subQuarters(s.props.preSelection,1))}},s.isMonthDisabledForLabelDate=function(e){var t,n=s.props,a=n.day,i=n.minDate,r=n.maxDate,o=n.excludeDates,l=n.includeDates,c=G.setMonth(a,e);return{isDisabled:null!==(t=(i||r||o||l)&&Ge(c,s.props))&&void 0!==t&&t,labelDate:c}},s.isMonthDisabled=function(e){return s.isMonthDisabledForLabelDate(e).isDisabled},s.getMonthClassNames=function(e){var n=s.props,a=n.day,i=n.startDate,r=n.endDate,o=n.preSelection,l=n.monthClassName,c=l?l(G.setMonth(a,e)):void 0,u=s.getSelection();return t.clsx("react-datepicker__month-text","react-datepicker__month-".concat(e),c,{"react-datepicker__month-text--disabled":s.isMonthDisabled(e),"react-datepicker__month-text--selected":u?s.isSelectMonthInList(a,e,u):void 0,"react-datepicker__month-text--keyboard-selected":!s.props.disabledKeyboardNavigation&&o&&s.isSelectedMonth(a,e,o)&&!s.isMonthDisabled(e),"react-datepicker__month-text--in-selecting-range":s.isInSelectingRangeMonth(e),"react-datepicker__month-text--in-range":i&&r?Ke(i,r,e,a):void 0,"react-datepicker__month-text--range-start":s.isRangeStartMonth(e),"react-datepicker__month-text--range-end":s.isRangeEndMonth(e),"react-datepicker__month-text--selecting-range-start":s.isSelectingMonthRangeStart(e),"react-datepicker__month-text--selecting-range-end":s.isSelectingMonthRangeEnd(e),"react-datepicker__month-text--today":s.isCurrentMonth(a,e)})},s.getTabIndex=function(e){if(null==s.props.preSelection)return"-1";var t=j.getMonth(s.props.preSelection),n=s.isMonthDisabledForLabelDate(t).isDisabled;return e!==t||n||s.props.disabledKeyboardNavigation?"-1":"0"},s.getQuarterTabIndex=function(e){if(null==s.props.preSelection)return"-1";var t=C.getQuarter(s.props.preSelection),n=Je(s.props.day,s.props);return e!==t||n||s.props.disabledKeyboardNavigation?"-1":"0"},s.getAriaLabel=function(e){var t=s.props,n=t.chooseDayAriaLabelPrefix,a=void 0===n?"Choose":n,i=t.disabledDayAriaLabelPrefix,r=void 0===i?"Not available":i,o=t.day,l=t.locale,c=G.setMonth(o,e),u=s.isDisabled(c)||s.isExcluded(c)?r:a;return"".concat(u," ").concat(je(c,"MMMM yyyy",l))},s.getQuarterClassNames=function(e){var n=s.props,a=n.day,i=n.startDate,r=n.endDate,o=n.selected,l=n.minDate,c=n.maxDate,u=n.excludeDates,d=n.includeDates,p=n.filterDate,h=n.preSelection,m=n.disabledKeyboardNavigation,g=(l||c||u||d||p)&&Je(K.setQuarter(a,e),s.props);return t.clsx("react-datepicker__quarter-text","react-datepicker__quarter-".concat(e),{"react-datepicker__quarter-text--disabled":g,"react-datepicker__quarter-text--selected":o?s.isSelectedQuarter(a,e,o):void 0,"react-datepicker__quarter-text--keyboard-selected":!m&&h&&s.isSelectedQuarter(a,e,h)&&!g,"react-datepicker__quarter-text--in-selecting-range":s.isInSelectingRangeQuarter(e),"react-datepicker__quarter-text--in-range":i&&r?et(i,r,e,a):void 0,"react-datepicker__quarter-text--range-start":s.isRangeStartQuarter(e),"react-datepicker__quarter-text--range-end":s.isRangeEndQuarter(e)})},s.getMonthContent=function(e){var t=s.props,n=t.showFullMonthYearPicker,a=t.renderMonthContent,i=t.locale,r=t.day,o=$e(e,i),l=We(e,i);return a?a(e,o,l,r):n?l:o},s.getQuarterContent=function(e){var t,n=s.props,a=n.renderQuarterContent,i=function(e,t){return je(K.setQuarter(Ae(),e),"QQQ",t)}(e,n.locale);return null!==(t=null==a?void 0:a(e,i))&&void 0!==t?t:i},s.renderMonths=function(){var e,t=s.props,n=t.showTwoColumnMonthYearPicker,a=t.showFourColumnMonthYearPicker,i=t.day,r=t.selected,o=null===(e=It[Tt(a,n)])||void 0===e?void 0:e.grid;return null==o?void 0:o.map((function(e,t){return pe.default.createElement("div",{className:"react-datepicker__month-wrapper",key:t},e.map((function(e,t){return pe.default.createElement("div",{ref:s.MONTH_REFS[e],key:t,onClick:function(t){s.onMonthClick(t,e)},onKeyDown:function(t){yt(t)&&(t.preventDefault(),t.key=ve.Enter),s.onMonthKeyDown(t,e)},onMouseEnter:s.props.usePointerEvent?void 0:function(){return s.onMonthMouseEnter(e)},onPointerEnter:s.props.usePointerEvent?function(){return s.onMonthMouseEnter(e)}:void 0,tabIndex:Number(s.getTabIndex(e)),className:s.getMonthClassNames(e),"aria-disabled":s.isMonthDisabled(e),role:"option","aria-label":s.getAriaLabel(e),"aria-current":s.isCurrentMonth(i,e)?"date":void 0,"aria-selected":r?s.isSelectedMonth(i,e,r):void 0},s.getMonthContent(e))})))}))},s.renderQuarters=function(){var e=s.props,t=e.day,n=e.selected;return pe.default.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map((function(e,a){return pe.default.createElement("div",{key:a,ref:s.QUARTER_REFS[a],role:"option",onClick:function(t){s.onQuarterClick(t,e)},onKeyDown:function(t){s.onQuarterKeyDown(t,e)},onMouseEnter:s.props.usePointerEvent?void 0:function(){return s.onQuarterMouseEnter(e)},onPointerEnter:s.props.usePointerEvent?function(){return s.onQuarterMouseEnter(e)}:void 0,className:s.getQuarterClassNames(e),"aria-selected":n?s.isSelectedQuarter(t,e,n):void 0,tabIndex:Number(s.getQuarterTabIndex(e)),"aria-current":s.isCurrentQuarter(t,e)?"date":void 0},s.getQuarterContent(e))})))},s.getClassNames=function(){var e=s.props,n=e.selectingDate,a=e.selectsStart,i=e.selectsEnd,r=e.showMonthYearPicker,o=e.showQuarterYearPicker,l=e.showWeekPicker;return t.clsx("react-datepicker__month",{"react-datepicker__month--selecting-range":n&&(a||i)},{"react-datepicker__monthPicker":r},{"react-datepicker__quarterPicker":o},{"react-datepicker__weekPicker":l})},s}return ge(s,e),s.prototype.getSelection=function(){var e=this.props,t=e.selected,n=e.selectedDates;return e.selectsMultiple?n:t?[t]:void 0},s.prototype.render=function(){var e=this.props,t=e.showMonthYearPicker,n=e.showQuarterYearPicker,s=e.day,a=e.ariaLabelPrefix,i=void 0===a?"Month ":a,r=i?i.trim()+" ":"";return pe.default.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":"".concat(r).concat(je(s,"MMMM, yyyy",this.props.locale)),role:"listbox"},t?this.renderMonths():n?this.renderQuarters():this.renderWeeks())},s}(n.Component),Pt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isSelectedMonth=function(e){return t.props.month===e},t.renderOptions=function(){return t.props.monthNames.map((function(e,n){return pe.default.createElement("div",{className:t.isSelectedMonth(n)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:e,onClick:t.onChange.bind(t,n),"aria-selected":t.isSelectedMonth(n)?"true":void 0},t.isSelectedMonth(n)?pe.default.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",e)}))},t.onChange=function(e){return t.props.onChange(e)},t.handleClickOutside=function(){return t.props.onCancel()},t}return ge(t,e),t.prototype.render=function(){return pe.default.createElement(Se,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},t}(n.Component),Ot=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(e){return e.map((function(e,t){return pe.default.createElement("option",{key:e,value:t},e)}))},t.renderSelectMode=function(e){return pe.default.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(e){return t.onChange(parseInt(e.target.value))}},t.renderSelectOptions(e))},t.renderReadView=function(e,n){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},n[t.props.month]))},t.renderDropdown=function(e){return pe.default.createElement(Pt,fe({key:"dropdown"},t.props,{monthNames:e,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(e){var n=t.state.dropdownVisible,s=[t.renderReadView(!n,e)];return n&&s.unshift(t.renderDropdown(e)),s},t.onChange=function(e){t.toggleDropdown(),e!==t.props.month&&t.props.onChange(e)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ge(t,e),t.prototype.render=function(){var e,t=this,n=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(e){return $e(e,t.props.locale)}:function(e){return We(e,t.props.locale)});switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode(n);break;case"select":e=this.renderSelectMode(n)}return pe.default.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component);function Lt(e,t){for(var n=[],s=Pe(e),a=Pe(t);!P.isAfter(s,a);)n.push(Ae(s)),s=o.addMonths(s,1);return n}var Mt=function(e){function n(t){var n=e.call(this,t)||this;return n.renderOptions=function(){return n.state.monthYearsList.map((function(e){var t=T.getTime(e),s=Re(n.props.date,e)&&Ue(n.props.date,e);return pe.default.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:t,onClick:n.onChange.bind(n,t),"aria-selected":s?"true":void 0},s?pe.default.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",je(e,n.props.dateFormat,n.props.locale))}))},n.onChange=function(e){return n.props.onChange(e)},n.handleClickOutside=function(){n.props.onCancel()},n.state={monthYearsList:Lt(n.props.minDate,n.props.maxDate)},n}return ge(n,e),n.prototype.render=function(){var e=t.clsx({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return pe.default.createElement(Se,{className:e,onClickOutside:this.handleClickOutside},this.renderOptions())},n}(n.Component),Et=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=Pe(t.props.minDate),n=Pe(t.props.maxDate),s=[];!P.isAfter(e,n);){var a=T.getTime(e);s.push(pe.default.createElement("option",{key:a,value:a},je(e,t.props.dateFormat,t.props.locale))),e=o.addMonths(e,1)}return s},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:T.getTime(Pe(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){var n=je(t.props.date,t.props.dateFormat,t.props.locale);return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},n))},t.renderDropdown=function(){return pe.default.createElement(Mt,fe({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown();var n=Ae(e);Re(t.props.date,n)&&Ue(t.props.date,n)||t.props.onChange(n)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return ge(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Rt=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={height:null},n.scrollToTheSelectedTime=function(){requestAnimationFrame((function(){var e,s,a;n.list&&(n.list.scrollTop=null!==(a=n.centerLi&&t.calcCenterPosition(n.props.monthRef?n.props.monthRef.clientHeight-(null!==(s=null===(e=n.header)||void 0===e?void 0:e.clientHeight)&&void 0!==s?s:0):n.list.clientHeight,n.centerLi))&&void 0!==a?a:0)}))},n.handleClick=function(e){var t,s;(n.props.minTime||n.props.maxTime)&&at(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&st(e,n.props)||null===(s=(t=n.props).onChange)||void 0===s||s.call(t,e)},n.isSelectedTime=function(e){return n.props.selected&&(t=e,ft(n.props.selected).getTime()===ft(t).getTime());var t},n.isDisabledTime=function(e){return(n.props.minTime||n.props.maxTime)&&at(e,n.props)||(n.props.excludeTimes||n.props.includeTimes||n.props.filterTime)&&st(e,n.props)},n.liClasses=function(e){var s,a=["react-datepicker__time-list-item",n.props.timeClassName?n.props.timeClassName(e):void 0];return n.isSelectedTime(e)&&a.push("react-datepicker__time-list-item--selected"),n.isDisabledTime(e)&&a.push("react-datepicker__time-list-item--disabled"),n.props.injectTimes&&(3600*A.getHours(e)+60*k.getMinutes(e)+I.getSeconds(e))%(60*(null!==(s=n.props.intervals)&&void 0!==s?s:t.defaultProps.intervals))!=0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},n.handleOnKeyDown=function(e,t){var s,a;e.key===ve.Space&&(e.preventDefault(),e.key=ve.Enter),(e.key===ve.ArrowUp||e.key===ve.ArrowLeft)&&e.target instanceof HTMLElement&&e.target.previousSibling&&(e.preventDefault(),e.target.previousSibling instanceof HTMLElement&&e.target.previousSibling.focus()),(e.key===ve.ArrowDown||e.key===ve.ArrowRight)&&e.target instanceof HTMLElement&&e.target.nextSibling&&(e.preventDefault(),e.target.nextSibling instanceof HTMLElement&&e.target.nextSibling.focus()),e.key===ve.Enter&&n.handleClick(t),null===(a=(s=n.props).handleOnKeyDown)||void 0===a||a.call(s,e)},n.renderTimes=function(){for(var e,s=[],a="string"==typeof n.props.format?n.props.format:"p",i=null!==(e=n.props.intervals)&&void 0!==e?e:t.defaultProps.intervals,o=n.props.selected||n.props.openToDate||Ae(),l=Te(o),c=n.props.injectTimes&&n.props.injectTimes.sort((function(e,t){return e.getTime()-t.getTime()})),u=60*function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),n=new Date(e.getFullYear(),e.getMonth(),e.getDate(),24);return Math.round((+n-+t)/36e5)}(o),d=u/i,p=0;p<d;p++){var h=r.addMinutes(l,p*i);if(s.push(h),c){var m=ht(l,h,p,i,c);s=s.concat(m)}}var g=s.reduce((function(e,t){return t.getTime()<=o.getTime()?t:e}),s[0]);return s.map((function(e){return pe.default.createElement("li",{key:e.valueOf(),onClick:n.handleClick.bind(n,e),className:n.liClasses(e),ref:function(t){e===g&&(n.centerLi=t)},onKeyDown:function(t){n.handleOnKeyDown(t,e)},tabIndex:e===g?0:-1,role:"option","aria-selected":n.isSelectedTime(e)?"true":void 0,"aria-disabled":n.isDisabledTime(e)?"true":void 0},je(e,a,n.props.locale))}))},n.renderTimeCaption=function(){return!1===n.props.showTimeCaption?pe.default.createElement(pe.default.Fragment,null):pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(n.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(e){n.header=e}},pe.default.createElement("div",{className:"react-datepicker-time__header"},n.props.timeCaption))},n}return ge(t,e),Object.defineProperty(t,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},t.prototype.render=function(){var e,n=this,s=this.state.height;return pe.default.createElement("div",{className:"react-datepicker__time-container ".concat((null!==(e=this.props.todayButton)&&void 0!==e?e:t.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),pe.default.createElement("div",{className:"react-datepicker__time"},pe.default.createElement("div",{className:"react-datepicker__time-box"},pe.default.createElement("ul",{className:"react-datepicker__time-list",ref:function(e){n.list=e},style:s?{height:s}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},t.calcCenterPosition=function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)},t}(n.Component),Ut=function(e){function s(s){var a=e.call(this,s)||this;return a.YEAR_REFS=be([],Array(a.props.yearItemNumber),!0).map((function(){return n.createRef()})),a.isDisabled=function(e){return ze(e,{minDate:a.props.minDate,maxDate:a.props.maxDate,excludeDates:a.props.excludeDates,includeDates:a.props.includeDates,filterDate:a.props.filterDate})},a.isExcluded=function(e){return qe(e,{excludeDates:a.props.excludeDates})},a.selectingDate=function(){var e;return null!==(e=a.props.selectingDate)&&void 0!==e?e:a.props.preSelection},a.updateFocusOnPaginate=function(e){window.requestAnimationFrame((function(){var t,n;null===(n=null===(t=a.YEAR_REFS[e])||void 0===t?void 0:t.current)||void 0===n||n.focus()}))},a.handleYearClick=function(e,t){a.props.onDayClick&&a.props.onDayClick(e,t)},a.handleYearNavigation=function(e,t){var n,s,i,r,o=a.props,l=o.date,c=o.yearItemNumber;if(void 0!==l&&void 0!==c){var u=gt(l,c).startPeriod;a.isDisabled(t)||a.isExcluded(t)||(null===(s=(n=a.props).setPreSelection)||void 0===s||s.call(n,t),e-u<0?a.updateFocusOnPaginate(c-(u-e)):e-u>=c?a.updateFocusOnPaginate(Math.abs(c-(e-u))):null===(r=null===(i=a.YEAR_REFS[e-u])||void 0===i?void 0:i.current)||void 0===r||r.focus())}},a.isSameDay=function(e,t){return Fe(e,t)},a.isCurrentYear=function(e){return e===D.getYear(Ae())},a.isRangeStart=function(e){return a.props.startDate&&a.props.endDate&&Re(J.setYear(Ae(),e),a.props.startDate)},a.isRangeEnd=function(e){return a.props.startDate&&a.props.endDate&&Re(J.setYear(Ae(),e),a.props.endDate)},a.isInRange=function(e){return Xe(e,a.props.startDate,a.props.endDate)},a.isInSelectingRange=function(e){var t=a.props,n=t.selectsStart,s=t.selectsEnd,i=t.selectsRange,r=t.startDate,o=t.endDate;return!(!(n||s||i)||!a.selectingDate())&&(n&&o?Xe(e,a.selectingDate(),o):(s&&r||!(!i||!r||o))&&Xe(e,r,a.selectingDate()))},a.isSelectingRangeStart=function(e){var t;if(!a.isInSelectingRange(e))return!1;var n=a.props,s=n.startDate,i=n.selectsStart;return Re(J.setYear(Ae(),e),i?null!==(t=a.selectingDate())&&void 0!==t?t:null:null!=s?s:null)},a.isSelectingRangeEnd=function(e){var t;if(!a.isInSelectingRange(e))return!1;var n=a.props,s=n.endDate,i=n.selectsEnd,r=n.selectsRange;return Re(J.setYear(Ae(),e),i||r?null!==(t=a.selectingDate())&&void 0!==t?t:null:null!=s?s:null)},a.isKeyboardSelected=function(e){if(void 0!==a.props.date&&null!=a.props.selected&&null!=a.props.preSelection){var t=a.props,n=t.minDate,s=t.maxDate,i=t.excludeDates,r=t.includeDates,o=t.filterDate,l=Oe(J.setYear(a.props.date,e)),c=(n||s||i||r||o)&&Ze(e,a.props);return!a.props.disabledKeyboardNavigation&&!a.props.inline&&!Fe(l,Oe(a.props.selected))&&Fe(l,Oe(a.props.preSelection))&&!c}},a.onYearClick=function(e,t){var n=a.props.date;void 0!==n&&a.handleYearClick(Oe(J.setYear(n,t)),e)},a.onYearKeyDown=function(e,t){var n,s,i=e.key,r=a.props,o=r.date,l=r.yearItemNumber,c=r.handleOnKeyDown;if(i!==ve.Tab&&e.preventDefault(),!a.props.disabledKeyboardNavigation)switch(i){case ve.Enter:if(null==a.props.selected)break;a.onYearClick(e,t),null===(s=(n=a.props).setPreSelection)||void 0===s||s.call(n,a.props.selected);break;case ve.ArrowRight:if(null==a.props.preSelection)break;a.handleYearNavigation(t+1,d.addYears(a.props.preSelection,1));break;case ve.ArrowLeft:if(null==a.props.preSelection)break;a.handleYearNavigation(t-1,oe.subYears(a.props.preSelection,1));break;case ve.ArrowUp:if(void 0===o||void 0===l||null==a.props.preSelection)break;var u=gt(o,l).startPeriod;if((m=t-(h=3))<u){var p=l%h;t>=u&&t<u+p?h=p:h+=p,m=t-h}a.handleYearNavigation(m,oe.subYears(a.props.preSelection,h));break;case ve.ArrowDown:if(void 0===o||void 0===l||null==a.props.preSelection)break;var h,m,g=gt(o,l).endPeriod;(m=t+(h=3))>g&&(p=l%h,t<=g&&t>g-p?h=p:h+=p,m=t+h),a.handleYearNavigation(m,d.addYears(a.props.preSelection,h))}c&&c(e)},a.getYearClassNames=function(e){var n=a.props,s=n.date,i=n.minDate,r=n.maxDate,o=n.selected,l=n.excludeDates,c=n.includeDates,u=n.filterDate,d=n.yearClassName;return t.clsx("react-datepicker__year-text","react-datepicker__year-".concat(e),s?null==d?void 0:d(J.setYear(s,e)):void 0,{"react-datepicker__year-text--selected":o?e===D.getYear(o):void 0,"react-datepicker__year-text--disabled":(i||r||l||c||u)&&Ze(e,a.props),"react-datepicker__year-text--keyboard-selected":a.isKeyboardSelected(e),"react-datepicker__year-text--range-start":a.isRangeStart(e),"react-datepicker__year-text--range-end":a.isRangeEnd(e),"react-datepicker__year-text--in-range":a.isInRange(e),"react-datepicker__year-text--in-selecting-range":a.isInSelectingRange(e),"react-datepicker__year-text--selecting-range-start":a.isSelectingRangeStart(e),"react-datepicker__year-text--selecting-range-end":a.isSelectingRangeEnd(e),"react-datepicker__year-text--today":a.isCurrentYear(e)})},a.getYearTabIndex=function(e){if(a.props.disabledKeyboardNavigation||null==a.props.preSelection)return"-1";var t=D.getYear(a.props.preSelection),n=Ze(e,a.props);return e!==t||n?"-1":"0"},a.getYearContent=function(e){return a.props.renderYearContent?a.props.renderYearContent(e):e},a}return ge(s,e),s.prototype.render=function(){var e=this,t=[],n=this.props,s=n.date,a=n.yearItemNumber,i=n.onYearMouseEnter,r=n.onYearMouseLeave;if(void 0===s)return null;for(var o=gt(s,a),l=o.startPeriod,c=o.endPeriod,u=function(n){t.push(pe.default.createElement("div",{ref:d.YEAR_REFS[n-l],onClick:function(t){e.onYearClick(t,n)},onKeyDown:function(t){yt(t)&&(t.preventDefault(),t.key=ve.Enter),e.onYearKeyDown(t,n)},tabIndex:Number(d.getYearTabIndex(n)),className:d.getYearClassNames(n),onMouseEnter:d.props.usePointerEvent?void 0:function(e){return i(e,n)},onPointerEnter:d.props.usePointerEvent?function(e){return i(e,n)}:void 0,onMouseLeave:d.props.usePointerEvent?void 0:function(e){return r(e,n)},onPointerLeave:d.props.usePointerEvent?function(e){return r(e,n)}:void 0,key:n,"aria-current":d.isCurrentYear(n)?"date":void 0},d.getYearContent(n)))},d=this,p=l;p<=c;p++)u(p);return pe.default.createElement("div",{className:"react-datepicker__year"},pe.default.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},t))},s}(n.Component);function Nt(e,t,n,s){for(var a=[],i=0;i<2*t+1;i++){var r=e+t-i,o=!0;n&&(o=D.getYear(n)<=r),s&&o&&(o=D.getYear(s)>=r),o&&a.push(r)}return a}var Ft,Bt=function(e){function s(t){var s=e.call(this,t)||this;s.renderOptions=function(){var e=s.props.year,t=s.state.yearsList.map((function(t){return pe.default.createElement("div",{className:e===t?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:t,onClick:s.onChange.bind(s,t),"aria-selected":e===t?"true":void 0},e===t?pe.default.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",t)})),n=s.props.minDate?D.getYear(s.props.minDate):null,a=s.props.maxDate?D.getYear(s.props.maxDate):null;return a&&s.state.yearsList.find((function(e){return e===a}))||t.unshift(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:s.incrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),n&&s.state.yearsList.find((function(e){return e===n}))||t.push(pe.default.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:s.decrementYears},pe.default.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),t},s.onChange=function(e){s.props.onChange(e)},s.handleClickOutside=function(){s.props.onCancel()},s.shiftYears=function(e){var t=s.state.yearsList.map((function(t){return t+e}));s.setState({yearsList:t})},s.incrementYears=function(){return s.shiftYears(1)},s.decrementYears=function(){return s.shiftYears(-1)};var a=t.yearDropdownItemNumber,i=t.scrollableYearDropdown,r=a||(i?10:5);return s.state={yearsList:Nt(s.props.year,r,s.props.minDate,s.props.maxDate)},s.dropdownRef=n.createRef(),s}return ge(s,e),s.prototype.componentDidMount=function(){var e=this.dropdownRef.current;if(e){var t=e.children?Array.from(e.children):null,n=t?t.find((function(e){return e.ariaSelected})):null;e.scrollTop=n&&n instanceof HTMLElement?n.offsetTop+(n.clientHeight-e.clientHeight)/2:(e.scrollHeight-e.clientHeight)/2}},s.prototype.render=function(){var e=t.clsx({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return pe.default.createElement(Se,{className:e,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},s}(n.Component),Yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var e=t.props.minDate?D.getYear(t.props.minDate):1900,n=t.props.maxDate?D.getYear(t.props.maxDate):2100,s=[],a=e;a<=n;a++)s.push(pe.default.createElement("option",{key:a,value:a},a));return s},t.onSelectChange=function(e){t.onChange(parseInt(e.target.value))},t.renderSelectMode=function(){return pe.default.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(e){return pe.default.createElement("div",{key:"read",style:{visibility:e?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(e){return t.toggleDropdown(e)}},pe.default.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),pe.default.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return pe.default.createElement(Bt,fe({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var e=t.state.dropdownVisible,n=[t.renderReadView(!e)];return e&&n.unshift(t.renderDropdown()),n},t.onChange=function(e){t.toggleDropdown(),e!==t.props.year&&t.props.onChange(e)},t.toggleDropdown=function(e){t.setState({dropdownVisible:!t.state.dropdownVisible},(function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,e)}))},t.handleYearChange=function(e,n){var s;null===(s=t.onSelect)||void 0===s||s.call(t,e,n),t.setOpen()},t.onSelect=function(e,n){var s,a;null===(a=(s=t.props).onSelect)||void 0===a||a.call(s,e,n)},t.setOpen=function(){var e,n;null===(n=(e=t.props).setOpen)||void 0===n||n.call(e,!0)},t}return ge(t,e),t.prototype.render=function(){var e;switch(this.props.dropdownMode){case"scroll":e=this.renderScrollMode();break;case"select":e=this.renderSelectMode()}return pe.default.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},e)},t}(n.Component),Ht=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],Vt=function(e){function i(r){var c=e.call(this,r)||this;return c.monthContainer=void 0,c.handleClickOutside=function(e){c.props.onClickOutside(e)},c.setClickOutsideRef=function(){return c.containerRef.current},c.handleDropdownFocus=function(e){var t,n,s,a;s=e.target,a=(s.className||"").split(/\s+/),Ht.some((function(e){return a.indexOf(e)>=0}))&&(null===(n=(t=c.props).onDropdownFocus)||void 0===n||n.call(t,e))},c.getDateInView=function(){var e=c.props,t=e.preSelection,n=e.selected,s=e.openToDate,a=ct(c.props),i=ut(c.props),r=Ae();return s||n||t||(a&&O.isBefore(r,a)?a:i&&P.isAfter(r,i)?i:r)},c.increaseMonth=function(){c.setState((function(e){var t=e.date;return{date:o.addMonths(t,1)}}),(function(){return c.handleMonthChange(c.state.date)}))},c.decreaseMonth=function(){c.setState((function(e){var t=e.date;return{date:ae.subMonths(t,1)}}),(function(){return c.handleMonthChange(c.state.date)}))},c.handleDayClick=function(e,t,n){c.props.onSelect(e,t,n),c.props.setPreSelection&&c.props.setPreSelection(e)},c.handleDayMouseEnter=function(e){c.setState({selectingDate:e}),c.props.onDayMouseEnter&&c.props.onDayMouseEnter(e)},c.handleMonthMouseLeave=function(){c.setState({selectingDate:void 0}),c.props.onMonthMouseLeave&&c.props.onMonthMouseLeave()},c.handleYearMouseEnter=function(e,t){c.setState({selectingDate:J.setYear(Ae(),t)}),c.props.onYearMouseEnter&&c.props.onYearMouseEnter(e,t)},c.handleYearMouseLeave=function(e,t){c.props.onYearMouseLeave&&c.props.onYearMouseLeave(e,t)},c.handleYearChange=function(e){var t,n,s,a;null===(n=(t=c.props).onYearChange)||void 0===n||n.call(t,e),c.setState({isRenderAriaLiveMessage:!0}),c.props.adjustDateOnChange&&(c.props.onSelect(e),null===(a=(s=c.props).setOpen)||void 0===a||a.call(s,!0)),c.props.setPreSelection&&c.props.setPreSelection(e)},c.getEnabledPreSelectionDateForMonth=function(e){if(!ze(e,c.props))return e;for(var t=Pe(e),n=function(e){return b.endOfMonth(e)}(e),i=s.differenceInDays(n,t),r=null,o=0;o<=i;o++){var l=a.addDays(t,o);if(!ze(l,c.props)){r=l;break}}return r},c.handleMonthChange=function(e){var t,n,s,a=null!==(t=c.getEnabledPreSelectionDateForMonth(e))&&void 0!==t?t:e;c.handleCustomMonthChange(a),c.props.adjustDateOnChange&&(c.props.onSelect(a),null===(s=(n=c.props).setOpen)||void 0===s||s.call(n,!0)),c.props.setPreSelection&&c.props.setPreSelection(a)},c.handleCustomMonthChange=function(e){var t,n;null===(n=(t=c.props).onMonthChange)||void 0===n||n.call(t,e),c.setState({isRenderAriaLiveMessage:!0})},c.handleMonthYearChange=function(e){c.handleYearChange(e),c.handleMonthChange(e)},c.changeYear=function(e){c.setState((function(t){var n=t.date;return{date:J.setYear(n,Number(e))}}),(function(){return c.handleYearChange(c.state.date)}))},c.changeMonth=function(e){c.setState((function(t){var n=t.date;return{date:G.setMonth(n,Number(e))}}),(function(){return c.handleMonthChange(c.state.date)}))},c.changeMonthYear=function(e){c.setState((function(t){var n=t.date;return{date:J.setYear(G.setMonth(n,j.getMonth(e)),D.getYear(e))}}),(function(){return c.handleMonthYearChange(c.state.date)}))},c.header=function(e){void 0===e&&(e=c.state.date);var n=De(e,c.props.locale,c.props.calendarStartDay),s=[];return c.props.showWeekNumbers&&s.push(pe.default.createElement("div",{key:"W",className:"react-datepicker__day-name"},c.props.weekLabel||"#")),s.concat([0,1,2,3,4,5,6].map((function(e){var s=a.addDays(n,e),i=c.formatWeekday(s,c.props.locale),r=c.props.weekDayClassName?c.props.weekDayClassName(s):void 0;return pe.default.createElement("div",{key:e,"aria-label":je(s,"EEEE",c.props.locale),className:t.clsx("react-datepicker__day-name",r)},i)})))},c.formatWeekday=function(e,t){return c.props.formatWeekDay?function(e,t,n){return t(je(e,"EEEE",n))}(e,c.props.formatWeekDay,t):c.props.useWeekdaysShort?function(e,t){return je(e,"EEE",t)}(e,t):function(e,t){return je(e,"EEEEEE",t)}(e,t)},c.decreaseYear=function(){c.setState((function(e){var t,n=e.date;return{date:oe.subYears(n,c.props.showYearPicker?null!==(t=c.props.yearItemNumber)&&void 0!==t?t:i.defaultProps.yearItemNumber:1)}}),(function(){return c.handleYearChange(c.state.date)}))},c.clearSelectingDate=function(){c.setState({selectingDate:void 0})},c.renderPreviousButton=function(){var e,t,n;if(!c.props.renderCustomHeader){var s,a=null!==(e=c.props.monthsShown)&&void 0!==e?e:i.defaultProps.monthsShown,r=c.props.showPreviousMonths?a-1:0,o=null!==(t=c.props.monthSelectedIn)&&void 0!==t?t:r,l=ae.subMonths(c.state.date,o);switch(!0){case c.props.showMonthYearPicker:s=ot(c.state.date,c.props);break;case c.props.showYearPicker:s=function(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.yearItemNumber,i=void 0===a?12:a,r=gt(Oe(oe.subYears(e,i)),i).endPeriod,o=s&&D.getYear(s);return o&&o>r||!1}(c.state.date,c.props);break;case c.props.showQuarterYearPicker:s=function(e,t){var n=void 0===t?{}:t,s=n.minDate,a=n.includeDates,i=ne.startOfYear(e),r=ie.subQuarters(i,1);return s&&m.differenceInCalendarQuarters(s,r)>0||a&&a.every((function(e){return m.differenceInCalendarQuarters(e,r)>0}))||!1}(c.state.date,c.props);break;default:s=it(l,c.props)}if(((null!==(n=c.props.forceShowMonthNavigation)&&void 0!==n?n:i.defaultProps.forceShowMonthNavigation)||c.props.showDisabledMonthNavigation||!s)&&!c.props.showTimeSelectOnly){var u=["react-datepicker__navigation","react-datepicker__navigation--previous"],d=c.decreaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(d=c.decreaseYear),s&&c.props.showDisabledMonthNavigation&&(u.push("react-datepicker__navigation--previous--disabled"),d=void 0);var p=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,h=c.props,g=h.previousMonthButtonLabel,f=void 0===g?i.defaultProps.previousMonthButtonLabel:g,b=h.previousYearButtonLabel,v=void 0===b?i.defaultProps.previousYearButtonLabel:b,y=c.props,S=y.previousMonthAriaLabel,w=void 0===S?"string"==typeof f?f:"Previous Month":S,x=y.previousYearAriaLabel,A=void 0===x?"string"==typeof v?v:"Previous Year":x;return pe.default.createElement("button",{type:"button",className:u.join(" "),onClick:d,onKeyDown:c.props.handleOnKeyDown,"aria-label":p?A:w},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},p?v:f))}}},c.increaseYear=function(){c.setState((function(e){var t,n=e.date;return{date:d.addYears(n,c.props.showYearPicker?null!==(t=c.props.yearItemNumber)&&void 0!==t?t:i.defaultProps.yearItemNumber:1)}}),(function(){return c.handleYearChange(c.state.date)}))},c.renderNextButton=function(){var e;if(!c.props.renderCustomHeader){var t;switch(!0){case c.props.showMonthYearPicker:t=lt(c.state.date,c.props);break;case c.props.showYearPicker:t=function(e,t){var n=void 0===t?{}:t,s=n.maxDate,a=n.yearItemNumber,i=void 0===a?12:a,r=gt(d.addYears(e,i),i).startPeriod,o=s&&D.getYear(s);return o&&o<r||!1}(c.state.date,c.props);break;case c.props.showQuarterYearPicker:t=function(e,t){var n=void 0===t?{}:t,s=n.maxDate,a=n.includeDates,i=y.endOfYear(e),r=l.addQuarters(i,1);return s&&m.differenceInCalendarQuarters(r,s)>0||a&&a.every((function(e){return m.differenceInCalendarQuarters(r,e)>0}))||!1}(c.state.date,c.props);break;default:t=rt(c.state.date,c.props)}if(((null!==(e=c.props.forceShowMonthNavigation)&&void 0!==e?e:i.defaultProps.forceShowMonthNavigation)||c.props.showDisabledMonthNavigation||!t)&&!c.props.showTimeSelectOnly){var n=["react-datepicker__navigation","react-datepicker__navigation--next"];c.props.showTimeSelect&&n.push("react-datepicker__navigation--next--with-time"),c.props.todayButton&&n.push("react-datepicker__navigation--next--with-today-button");var s=c.increaseMonth;(c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker)&&(s=c.increaseYear),t&&c.props.showDisabledMonthNavigation&&(n.push("react-datepicker__navigation--next--disabled"),s=void 0);var a=c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker,r=c.props,o=r.nextMonthButtonLabel,u=void 0===o?i.defaultProps.nextMonthButtonLabel:o,p=r.nextYearButtonLabel,h=void 0===p?i.defaultProps.nextYearButtonLabel:p,g=c.props,f=g.nextMonthAriaLabel,b=void 0===f?"string"==typeof u?u:"Next Month":f,v=g.nextYearAriaLabel,S=void 0===v?"string"==typeof h?h:"Next Year":v;return pe.default.createElement("button",{type:"button",className:n.join(" "),onClick:s,onKeyDown:c.props.handleOnKeyDown,"aria-label":a?S:b},pe.default.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},a?h:u))}}},c.renderCurrentMonth=function(e){void 0===e&&(e=c.state.date);var t=["react-datepicker__current-month"];return c.props.showYearDropdown&&t.push("react-datepicker__current-month--hasYearDropdown"),c.props.showMonthDropdown&&t.push("react-datepicker__current-month--hasMonthDropdown"),c.props.showMonthYearDropdown&&t.push("react-datepicker__current-month--hasMonthYearDropdown"),pe.default.createElement("h2",{className:t.join(" ")},je(e,c.props.dateFormat,c.props.locale))},c.renderYearDropdown=function(e){if(void 0===e&&(e=!1),c.props.showYearDropdown&&!e)return pe.default.createElement(Yt,fe({},i.defaultProps,c.props,{date:c.state.date,onChange:c.changeYear,year:D.getYear(c.state.date)}))},c.renderMonthDropdown=function(e){if(void 0===e&&(e=!1),c.props.showMonthDropdown&&!e)return pe.default.createElement(Ot,fe({},i.defaultProps,c.props,{month:j.getMonth(c.state.date),onChange:c.changeMonth}))},c.renderMonthYearDropdown=function(e){if(void 0===e&&(e=!1),c.props.showMonthYearDropdown&&!e)return pe.default.createElement(Et,fe({},i.defaultProps,c.props,{date:c.state.date,onChange:c.changeMonthYear}))},c.handleTodayButtonClick=function(e){c.props.onSelect(Me(),e),c.props.setPreSelection&&c.props.setPreSelection(Me())},c.renderTodayButton=function(){if(c.props.todayButton&&!c.props.showTimeSelectOnly)return pe.default.createElement("div",{className:"react-datepicker__today-button",onClick:c.handleTodayButtonClick},c.props.todayButton)},c.renderDefaultHeader=function(e){var t=e.monthDate,n=e.i;return pe.default.createElement("div",{className:"react-datepicker__header ".concat(c.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},c.renderCurrentMonth(t),pe.default.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(c.props.dropdownMode),onFocus:c.handleDropdownFocus},c.renderMonthDropdown(0!==n),c.renderMonthYearDropdown(0!==n),c.renderYearDropdown(0!==n)),pe.default.createElement("div",{className:"react-datepicker__day-names"},c.header(t)))},c.renderCustomHeader=function(e){var t,n,s=e.monthDate,a=e.i;if(c.props.showTimeSelect&&!c.state.monthContainer||c.props.showTimeSelectOnly)return null;var i=it(c.state.date,c.props),r=rt(c.state.date,c.props),o=ot(c.state.date,c.props),l=lt(c.state.date,c.props),u=!c.props.showMonthYearPicker&&!c.props.showQuarterYearPicker&&!c.props.showYearPicker;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:c.props.onDropdownFocus},null===(n=(t=c.props).renderCustomHeader)||void 0===n?void 0:n.call(t,fe(fe({},c.state),{customHeaderCount:a,monthDate:s,changeMonth:c.changeMonth,changeYear:c.changeYear,decreaseMonth:c.decreaseMonth,increaseMonth:c.increaseMonth,decreaseYear:c.decreaseYear,increaseYear:c.increaseYear,prevMonthButtonDisabled:i,nextMonthButtonDisabled:r,prevYearButtonDisabled:o,nextYearButtonDisabled:l})),u&&pe.default.createElement("div",{className:"react-datepicker__day-names"},c.header(s)))},c.renderYearHeader=function(e){var t=e.monthDate,n=c.props,s=n.showYearPicker,a=n.yearItemNumber,r=gt(t,void 0===a?i.defaultProps.yearItemNumber:a),o=r.startPeriod,l=r.endPeriod;return pe.default.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(o," - ").concat(l):D.getYear(t))},c.renderHeader=function(e){var t=e.monthDate,n=e.i,s={monthDate:t,i:void 0===n?0:n};switch(!0){case void 0!==c.props.renderCustomHeader:return c.renderCustomHeader(s);case c.props.showMonthYearPicker||c.props.showQuarterYearPicker||c.props.showYearPicker:return c.renderYearHeader(s);default:return c.renderDefaultHeader(s)}},c.renderMonths=function(){var e,t;if(!c.props.showTimeSelectOnly&&!c.props.showYearPicker){for(var n=[],s=null!==(e=c.props.monthsShown)&&void 0!==e?e:i.defaultProps.monthsShown,a=c.props.showPreviousMonths?s-1:0,r=c.props.showMonthYearPicker||c.props.showQuarterYearPicker?d.addYears(c.state.date,a):ae.subMonths(c.state.date,a),l=null!==(t=c.props.monthSelectedIn)&&void 0!==t?t:a,u=0;u<s;++u){var p=u-l+a,h=c.props.showMonthYearPicker||c.props.showQuarterYearPicker?d.addYears(r,p):o.addMonths(r,p),m="month-".concat(u),g=u<s-1,f=u>0;n.push(pe.default.createElement("div",{key:m,ref:function(e){c.monthContainer=null!=e?e:void 0},className:"react-datepicker__month-container"},c.renderHeader({monthDate:h,i:u}),pe.default.createElement(Dt,fe({},i.defaultProps,c.props,{ariaLabelPrefix:c.props.monthAriaLabelPrefix,day:h,onDayClick:c.handleDayClick,handleOnKeyDown:c.props.handleOnDayKeyDown,handleOnMonthKeyDown:c.props.handleOnKeyDown,onDayMouseEnter:c.handleDayMouseEnter,onMouseLeave:c.handleMonthMouseLeave,orderInDisplay:u,selectingDate:c.state.selectingDate,monthShowsDuplicateDaysEnd:g,monthShowsDuplicateDaysStart:f}))))}return n}},c.renderYears=function(){if(!c.props.showTimeSelectOnly)return c.props.showYearPicker?pe.default.createElement("div",{className:"react-datepicker__year--container"},c.renderHeader({monthDate:c.state.date}),pe.default.createElement(Ut,fe({},i.defaultProps,c.props,{selectingDate:c.state.selectingDate,date:c.state.date,onDayClick:c.handleDayClick,clearSelectingDate:c.clearSelectingDate,onYearMouseEnter:c.handleYearMouseEnter,onYearMouseLeave:c.handleYearMouseLeave}))):void 0},c.renderTimeSection=function(){if(c.props.showTimeSelect&&(c.state.monthContainer||c.props.showTimeSelectOnly))return pe.default.createElement(Rt,fe({},i.defaultProps,c.props,{onChange:c.props.onTimeChange,format:c.props.timeFormat,intervals:c.props.timeIntervals,monthRef:c.state.monthContainer}))},c.renderInputTimeSection=function(){var e=c.props.selected?new Date(c.props.selected):void 0,t=e&&ke(e)&&Boolean(c.props.selected)?"".concat(mt(e.getHours()),":").concat(mt(e.getMinutes())):"";if(c.props.showTimeInput)return pe.default.createElement(wt,fe({},i.defaultProps,c.props,{date:e,timeString:t,onChange:c.props.onTimeChange}))},c.renderAriaLiveRegion=function(){var e,t,n=gt(c.state.date,null!==(e=c.props.yearItemNumber)&&void 0!==e?e:i.defaultProps.yearItemNumber),s=n.startPeriod,a=n.endPeriod;return t=c.props.showYearPicker?"".concat(s," - ").concat(a):c.props.showMonthYearPicker||c.props.showQuarterYearPicker?D.getYear(c.state.date):"".concat(We(j.getMonth(c.state.date),c.props.locale)," ").concat(D.getYear(c.state.date)),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},c.state.isRenderAriaLiveMessage&&t)},c.renderChildren=function(){if(c.props.children)return pe.default.createElement("div",{className:"react-datepicker__children-container"},c.props.children)},c.containerRef=n.createRef(),c.state={date:c.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},c}return ge(i,e),Object.defineProperty(i,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:12}},enumerable:!1,configurable:!0}),i.prototype.componentDidMount=function(){this.props.showTimeSelect&&(this.assignMonthContainer=void this.setState({monthContainer:this.monthContainer}))},i.prototype.componentDidUpdate=function(e){var t=this;if(!this.props.preSelection||Fe(this.props.preSelection,e.preSelection)&&this.props.monthSelectedIn===e.monthSelectedIn)this.props.openToDate&&!Fe(this.props.openToDate,e.openToDate)&&this.setState({date:this.props.openToDate});else{var n=!Ue(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},(function(){return n&&t.handleCustomMonthChange(t.state.date)}))}},i.prototype.render=function(){var e=this.props.container||ye;return pe.default.createElement(Se,{onClickOutside:this.handleClickOutside,style:{display:"contents"},containerRef:this.containerRef,ignoreClass:this.props.outsideClickIgnoreClass},pe.default.createElement(e,{className:t.clsx("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))},i}(n.Component),Wt=function(e){var t=e.icon,n=e.className,s=void 0===n?"":n,a=e.onClick,i="react-datepicker__calendar-icon";return"string"==typeof t?pe.default.createElement("i",{className:"".concat(i," ").concat(t," ").concat(s),"aria-hidden":"true",onClick:a}):pe.default.isValidElement(t)?pe.default.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(s),onClick:function(e){"function"==typeof t.props.onClick&&t.props.onClick(e),"function"==typeof a&&a(e)}}):pe.default.createElement("svg",{className:"".concat(i," ").concat(s),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:a},pe.default.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},$t=function(e){function t(t){var n=e.call(this,t)||this;return n.portalRoot=null,n.el=document.createElement("div"),n}return ge(t,e),t.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},t.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},t.prototype.render=function(){return he.default.createPortal(this.props.children,this.el)},t}(n.Component),zt=function(e){return(e instanceof HTMLAnchorElement||!e.disabled)&&-1!==e.tabIndex},qt=function(e){function t(t){var s=e.call(this,t)||this;return s.getTabChildren=function(){var e;return Array.prototype.slice.call(null===(e=s.tabLoopRef.current)||void 0===e?void 0:e.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(zt)},s.handleFocusStart=function(){var e=s.getTabChildren();e&&e.length>1&&e[e.length-1].focus()},s.handleFocusEnd=function(){var e=s.getTabChildren();e&&e.length>1&&e[0].focus()},s.tabLoopRef=n.createRef(),s}return ge(t,e),t.prototype.render=function(){var e;return(null!==(e=this.props.enableTabLoop)&&void 0!==e?e:t.defaultProps.enableTabLoop)?pe.default.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},pe.default.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,pe.default.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},t.defaultProps={enableTabLoop:!0},t}(n.Component),Gt=function(e){function s(){return null!==e&&e.apply(this,arguments)||this}return ge(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{hidePopper:!0}},enumerable:!1,configurable:!0}),s.prototype.render=function(){var e=this.props,a=e.className,i=e.wrapperClassName,r=e.hidePopper,o=void 0===r?s.defaultProps.hidePopper:r,l=e.popperComponent,c=e.targetComponent,u=e.enableTabLoop,d=e.popperOnKeyDown,p=e.portalId,h=e.portalHost,m=e.popperProps,g=e.showArrow,f=void 0;if(!o){var b=t.clsx("react-datepicker-popper",a);f=pe.default.createElement(qt,{enableTabLoop:u},pe.default.createElement("div",{ref:m.refs.setFloating,style:m.floatingStyles,className:b,"data-placement":m.placement,onKeyDown:d},l,g&&pe.default.createElement(ce.FloatingArrow,{ref:m.arrowRef,context:m.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}this.props.popperContainer&&(f=n.createElement(this.props.popperContainer,{},f)),p&&!o&&(f=pe.default.createElement($t,{portalId:p,portalHost:h},f));var v=t.clsx("react-datepicker-wrapper",i);return pe.default.createElement(pe.default.Fragment,null,pe.default.createElement("div",{ref:m.refs.setReference,className:v},c),f)},s}(n.Component),Kt=(Ft=Gt,function(e){var t,s="boolean"!=typeof e.hidePopper||e.hidePopper,a=n.useRef(null),i=ce.useFloating(fe({open:!s,whileElementsMounted:ce.autoUpdate,placement:e.popperPlacement,middleware:be([ce.flip({padding:15}),ce.offset(10),ce.arrow({element:a})],null!==(t=e.popperModifiers)&&void 0!==t?t:[],!0)},e.popperProps)),r=fe(fe({},e),{hidePopper:s,popperProps:fe(fe({},i),{arrowRef:a})});return pe.default.createElement(Ft,fe({},r))}),Qt="react-datepicker-ignore-onclickoutside",Jt="Date input not valid.",Xt=function(e){function s(i){var r=e.call(this,i)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:Ae()},r.modifyHolidays=function(){var e;return null===(e=r.props.holidays)||void 0===e?void 0:e.reduce((function(e,t){var n=new Date(t.date);return ke(n)?be(be([],e,!0),[fe(fe({},t),{date:n})],!1):e}),[])},r.calcInitialState=function(){var e,t=r.getPreSelection(),n=ct(r.props),s=ut(r.props),a=n&&O.isBefore(t,Te(n))?n:s&&P.isAfter(t,Ee(s))?s:t;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:null!==(e=r.props.selectsRange?r.props.startDate:r.props.selected)&&void 0!==e?e:a,highlightDates:dt(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.resetHiddenStatus=function(){r.setState(fe(fe({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(fe(fe({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){"hidden"===document.visibilityState&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.safeFocus=function(){setTimeout((function(){var e,t;null===(t=null===(e=r.input)||void 0===e?void 0:e.focus)||void 0===t||t.call(e,{preventScroll:!0})}),0)},r.safeBlur=function(){setTimeout((function(){var e,t;null===(t=null===(e=r.input)||void 0===e?void 0:e.blur)||void 0===t||t.call(e)}),0)},r.setFocus=function(){r.safeFocus()},r.setBlur=function(){r.safeBlur(),r.cancelFocusInput()},r.setOpen=function(e,t){void 0===t&&(t=!1),r.setState({open:e,preSelection:e&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:en},(function(){e||r.setState((function(e){return{focused:!!t&&e.focused}}),(function(){!t&&r.setBlur(),r.setState({inputValue:null})}))}))},r.inputOk=function(){return L.isDate(r.state.preSelection)},r.isCalendarOpen=function(){return void 0===r.props.open?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(e){var t,n,s=r.state.wasHidden,a=!s||r.state.open;s&&r.resetHiddenStatus(),!r.state.preventFocus&&a&&(null===(n=(t=r.props).onFocus)||void 0===n||n.call(t,e),r.props.preventOpenOnFocus||r.props.readOnly||r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},(function(){r.preventFocusTimeout=setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))}))},r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout((function(){return r.setFocus()}),1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.handleBlur=function(e){var t,n;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&(null===(n=(t=r.props).onBlur)||void 0===n||n.call(t,e)),r.setState({focused:!1})},r.handleCalendarClickOutside=function(e){var t,n;r.props.inline||r.setOpen(!1),null===(n=(t=r.props).onClickOutside)||void 0===n||n.call(t,e),r.props.withPortal&&e.preventDefault()},r.handleChange=function(){for(var e,t,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=n[0];if(!r.props.onChangeRaw||(r.props.onChangeRaw.apply(r,n),i&&"function"==typeof i.isDefaultPrevented&&!i.isDefaultPrevented())){r.setState({inputValue:(null==i?void 0:i.target)instanceof HTMLInputElement?i.target.value:null,lastPreSelectChange:Zt});var o=r.props,l=o.dateFormat,c=void 0===l?s.defaultProps.dateFormat:l,u=o.strictParsing,d=void 0===u?s.defaultProps.strictParsing:u,p=o.selectsRange,h=o.startDate,m=o.endDate,g=(null==i?void 0:i.target)instanceof HTMLInputElement?i.target.value:"";if(p){var f=g.split("-",2).map((function(e){return e.trim()})),b=f[0],v=f[1],y=_e(null!=b?b:"",c,r.props.locale,d),S=_e(null!=v?v:"",c,r.props.locale,d),w=(null==h?void 0:h.getTime())!==(null==y?void 0:y.getTime()),x=(null==m?void 0:m.getTime())!==(null==S?void 0:S.getTime());if(!w&&!x)return;if(y&&ze(y,r.props))return;if(S&&ze(S,r.props))return;null===(t=(e=r.props).onChange)||void 0===t||t.call(e,[y,S],i)}else{var _=_e(g,c,r.props.locale,d,r.props.minDate);r.props.showTimeSelectOnly&&r.props.selected&&_&&!Fe(_,r.props.selected)&&(_=$.set(r.props.selected,{hours:A.getHours(_),minutes:k.getMinutes(_),seconds:I.getSeconds(_)})),!_&&g||r.setSelected(_,i,!0)}}},r.handleSelect=function(e,t,n){if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&r.sendFocusBackToInput(),r.props.onChangeRaw&&r.props.onChangeRaw(t),r.setSelected(e,t,!1,n),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect)r.setPreSelection(e);else if(!r.props.inline){r.props.selectsRange||r.setOpen(!1);var s=r.props,a=s.startDate,i=s.endDate;!a||i||!r.props.swapRange&&vt(e,a)||r.setOpen(!1)}},r.setSelected=function(e,t,n,s){var a,i,o=e;if(r.props.showYearPicker){if(null!==o&&Ze(D.getYear(o),r.props))return}else if(r.props.showMonthYearPicker){if(null!==o&&Ge(o,r.props))return}else if(null!==o&&ze(o,r.props))return;var l=r.props,c=l.onChange,u=l.selectsRange,d=l.startDate,p=l.endDate,h=l.selectsMultiple,m=l.selectedDates,g=l.minTime,f=l.swapRange;if(!Be(r.props.selected,o)||r.props.allowSameDay||u||h)if(null!==o&&(!r.props.selected||n&&(r.props.showTimeSelect||r.props.showTimeSelectOnly||r.props.showTimeInput)||(o=Ie(o,{hour:A.getHours(r.props.selected),minute:k.getMinutes(r.props.selected),second:I.getSeconds(r.props.selected)})),n||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly||g&&(o=Ie(o,{hour:g.getHours(),minute:g.getMinutes(),second:g.getSeconds()})),r.props.inline||r.setState({preSelection:o}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:s})),u){var b=d&&p;d||p?d&&!p&&(null===o?null==c||c([null,null],t):vt(o,d)?f?null==c||c([o,d],t):null==c||c([o,null],t):null==c||c([d,o],t)):null==c||c([o,null],t),b&&(null==c||c([o,null],t))}else if(h){if(null!==o)if(null==m?void 0:m.length)if(m.some((function(e){return Fe(e,o)}))){var v=m.filter((function(e){return!Fe(e,o)}));null==c||c(v,t)}else null==c||c(be(be([],m,!0),[o],!1),t);else null==c||c([o],t)}else null==c||c(o,t);n||(null===(i=(a=r.props).onSelect)||void 0===i||i.call(a,o,t),r.setState({inputValue:null}))},r.setPreSelection=function(e){var t=L.isDate(r.props.minDate),n=L.isDate(r.props.maxDate),s=!0;if(e){var a=Te(e);if(t&&n)s=Ye(e,r.props.minDate,r.props.maxDate);else if(t){var i=Te(r.props.minDate);s=P.isAfter(e,i)||Be(a,i)}else if(n){var o=Ee(r.props.maxDate);s=O.isBefore(e,o)||Be(a,o)}}s&&r.setState({preSelection:e})},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(e){var t,n;if(!r.props.selectsRange&&!r.props.selectsMultiple){var s=r.props.selected?r.props.selected:r.getPreSelection(),a=r.props.selected?e:Ie(s,{hour:A.getHours(e),minute:k.getMinutes(e)});r.setState({preSelection:a}),null===(n=(t=r.props).onChange)||void 0===n||n.call(t,a),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var e,t;r.props.disabled||r.props.readOnly||r.setOpen(!0),null===(t=(e=r.props).onInputClick)||void 0===t||t.call(e)},r.onInputKeyDown=function(e){var t,n,s,a,i,o;null===(n=(t=r.props).onKeyDown)||void 0===n||n.call(t,e);var l=e.key;if(r.state.open||r.props.inline||r.props.preventOpenOnFocus){if(r.state.open){if(l===ve.ArrowDown||l===ve.ArrowUp){e.preventDefault();var c=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',u=(null===(a=r.calendar)||void 0===a?void 0:a.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(c);return void(u instanceof HTMLElement&&u.focus({preventScroll:!0}))}var d=Ae(r.state.preSelection);l===ve.Enter?(e.preventDefault(),e.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===en?(r.handleSelect(d,e),!r.props.shouldCloseOnSelect&&r.setPreSelection(d)):r.setOpen(!1)):l===ve.Escape?(e.preventDefault(),e.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):l===ve.Tab&&r.setOpen(!1),r.inputOk()||null===(o=(i=r.props).onInputError)||void 0===o||o.call(i,{code:1,msg:Jt})}}else l!==ve.ArrowDown&&l!==ve.ArrowUp&&l!==ve.Enter||null===(s=r.onInputClick)||void 0===s||s.call(r)},r.onPortalKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),r.setState({preventFocus:!0},(function(){r.setOpen(!1),setTimeout((function(){r.setFocus(),r.setState({preventFocus:!1})}))})))},r.onDayKeyDown=function(e){var t,n,s,i,l,c,p=r.props,h=p.minDate,m=p.maxDate,g=p.disabledKeyboardNavigation,f=p.showWeekPicker,b=p.shouldCloseOnSelect,y=p.locale,S=p.calendarStartDay,w=p.adjustDateOnChange,x=p.inline;if(null===(n=(t=r.props).onKeyDown)||void 0===n||n.call(t,e),!g){var A=e.key,_=e.shiftKey,k=Ae(r.state.preSelection),C=function(e,t){var n=t;switch(e){case ve.ArrowRight:n=f?u.addWeeks(t,1):a.addDays(t,1);break;case ve.ArrowLeft:n=f?re.subWeeks(t,1):se.subDays(t,1);break;case ve.ArrowUp:n=re.subWeeks(t,1);break;case ve.ArrowDown:n=u.addWeeks(t,1);break;case ve.PageUp:n=_?oe.subYears(t,1):ae.subMonths(t,1);break;case ve.PageDown:n=_?d.addYears(t,1):o.addMonths(t,1);break;case ve.Home:n=De(t,y,S);break;case ve.End:n=function(e){return v.endOfWeek(e)}(t)}return n};if(A===ve.Enter)return e.preventDefault(),r.handleSelect(k,e),void(!b&&r.setPreSelection(k));if(A===ve.Escape)return e.preventDefault(),r.setOpen(!1),void(r.inputOk()||null===(i=(s=r.props).onInputError)||void 0===i||i.call(s,{code:1,msg:Jt}));var I=null;switch(A){case ve.ArrowLeft:case ve.ArrowRight:case ve.ArrowUp:case ve.ArrowDown:case ve.PageUp:case ve.PageDown:case ve.Home:case ve.End:I=function(e,t){for(var n=e,s=!1,a=0,i=C(e,t);!s;){if(a>=40){i=t;break}h&&i<h&&(n=ve.ArrowRight,i=ze(h,r.props)?C(n,i):h),m&&i>m&&(n=ve.ArrowLeft,i=ze(m,r.props)?C(n,i):m),ze(i,r.props)?(n!==ve.PageUp&&n!==ve.Home||(n=ve.ArrowRight),n!==ve.PageDown&&n!==ve.End||(n=ve.ArrowLeft),i=C(n,i)):s=!0,a++}return i}(A,k)}if(I){if(e.preventDefault(),r.setState({lastPreSelectChange:en}),w&&r.setSelected(I),r.setPreSelection(I),x){var T=j.getMonth(k),P=j.getMonth(I),O=D.getYear(k),L=D.getYear(I);T!==P||O!==L?r.setState({shouldFocusDayInline:!0}):r.setState({shouldFocusDayInline:!1})}}else null===(c=(l=r.props).onInputError)||void 0===c||c.call(l,{code:1,msg:Jt})}},r.onPopperKeyDown=function(e){e.key===ve.Escape&&(e.preventDefault(),r.sendFocusBackToInput())},r.onClearClick=function(e){e&&e.preventDefault&&e.preventDefault(),r.sendFocusBackToInput();var t=r.props,n=t.selectsRange,s=t.onChange;n?null==s||s([null,null],e):null==s||s(null,e),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(e){"boolean"==typeof r.props.closeOnScroll&&r.props.closeOnScroll?e.target!==document&&e.target!==document.documentElement&&e.target!==document.body||r.setOpen(!1):"function"==typeof r.props.closeOnScroll&&r.props.closeOnScroll(e)&&r.setOpen(!1)},r.renderCalendar=function(){var e,t;return r.props.inline||r.isCalendarOpen()?pe.default.createElement(Vt,fe({showMonthYearDropdown:void 0,ref:function(e){r.calendar=e}},r.props,r.state,{setOpen:r.setOpen,dateFormat:null!==(e=r.props.dateFormatCalendar)&&void 0!==e?e:s.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:pt(r.modifyHolidays()),outsideClickIgnoreClass:Qt,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:null!==(t=r.props.dropdownMode)&&void 0!==t?t:s.defaultProps.dropdownMode}),r.props.children):null},r.renderAriaLiveRegion=function(){var e,t=r.props,n=t.dateFormat,a=void 0===n?s.defaultProps.dateFormat:n,i=t.locale,o=r.props.showTimeInput||r.props.showTimeSelect?"PPPPp":"PPPP";return e=r.props.selectsRange?"Selected start date: ".concat(Ce(r.props.startDate,{dateFormat:o,locale:i}),". ").concat(r.props.endDate?"End date: "+Ce(r.props.endDate,{dateFormat:o,locale:i}):""):r.props.showTimeSelectOnly?"Selected time: ".concat(Ce(r.props.selected,{dateFormat:a,locale:i})):r.props.showYearPicker?"Selected year: ".concat(Ce(r.props.selected,{dateFormat:"yyyy",locale:i})):r.props.showMonthYearPicker?"Selected month: ".concat(Ce(r.props.selected,{dateFormat:"MMMM yyyy",locale:i})):r.props.showQuarterYearPicker?"Selected quarter: ".concat(Ce(r.props.selected,{dateFormat:"yyyy, QQQ",locale:i})):"Selected date: ".concat(Ce(r.props.selected,{dateFormat:o,locale:i})),pe.default.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},e)},r.renderDateInput=function(){var e,a,i,o=t.clsx(r.props.className,((e={})[Qt]=r.state.open,e)),l=r.props.customInput||pe.default.createElement("input",{type:"text"}),c=r.props.customInputRef||"ref",u=r.props,d=u.dateFormat,p=void 0===d?s.defaultProps.dateFormat:d,h=u.locale,m="string"==typeof r.props.value?r.props.value:"string"==typeof r.state.inputValue?r.state.inputValue:r.props.selectsRange?function(e,t,n){if(!e)return"";var s=Ce(e,n),a=t?Ce(t,n):"";return"".concat(s," - ").concat(a)}(r.props.startDate,r.props.endDate,{dateFormat:p,locale:h}):r.props.selectsMultiple?function(e,t){if(!(null==e?void 0:e.length))return"";var n=e[0]?Ce(e[0],t):"";if(1===e.length)return n;if(2===e.length&&e[1]){var s=Ce(e[1],t);return"".concat(n,", ").concat(s)}var a=e.length-1;return"".concat(n," (+").concat(a,")")}(null!==(i=r.props.selectedDates)&&void 0!==i?i:[],{dateFormat:p,locale:h}):Ce(r.props.selected,{dateFormat:p,locale:h});return n.cloneElement(l,((a={})[c]=function(e){r.input=e},a.value=m,a.onBlur=r.handleBlur,a.onChange=r.handleChange,a.onClick=r.onInputClick,a.onFocus=r.handleFocus,a.onKeyDown=r.onInputKeyDown,a.id=r.props.id,a.name=r.props.name,a.form=r.props.form,a.autoFocus=r.props.autoFocus,a.placeholder=r.props.placeholderText,a.disabled=r.props.disabled,a.autoComplete=r.props.autoComplete,a.className=t.clsx(l.props.className,o),a.title=r.props.title,a.readOnly=r.props.readOnly,a.required=r.props.required,a.tabIndex=r.props.tabIndex,a["aria-describedby"]=r.props.ariaDescribedBy,a["aria-invalid"]=r.props.ariaInvalid,a["aria-labelledby"]=r.props.ariaLabelledBy,a["aria-required"]=r.props.ariaRequired,a))},r.renderClearButton=function(){var e=r.props,n=e.isClearable,s=e.disabled,a=e.selected,i=e.startDate,o=e.endDate,l=e.clearButtonTitle,c=e.clearButtonClassName,u=void 0===c?"":c,d=e.ariaLabelClose,p=void 0===d?"Close":d,h=e.selectedDates;return n&&(null!=a||null!=i||null!=o||(null==h?void 0:h.length))?pe.default.createElement("button",{type:"button",className:t.clsx("react-datepicker__close-icon",u,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":p,onClick:r.onClearClick,title:l,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return ge(s,e),Object.defineProperty(s,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:12,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),s.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},s.prototype.componentDidUpdate=function(e,t){var n,s,a,i,r,o;e.inline&&(r=e.selected,o=this.props.selected,r&&o?j.getMonth(r)!==j.getMonth(o)||D.getYear(r)!==D.getYear(o):r!==o)&&this.setPreSelection(this.props.selected),void 0!==this.state.monthSelectedIn&&e.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),e.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:dt(this.props.highlightDates)}),t.focused||Be(e.selected,this.props.selected)||this.setState({inputValue:null}),t.open!==this.state.open&&(!1===t.open&&!0===this.state.open&&(null===(s=(n=this.props).onCalendarOpen)||void 0===s||s.call(n)),!0===t.open&&!1===this.state.open&&(null===(i=(a=this.props).onCalendarClose)||void 0===i||i.call(a)))},s.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},s.prototype.renderInputContainer=function(){var e=this.props,n=e.showIcon,s=e.icon,a=e.calendarIconClassname,i=e.calendarIconClassName,r=e.toggleCalendarOnIconClick,o=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),pe.default.createElement("div",{className:"react-datepicker__input-container".concat(n?" react-datepicker__view-calendar-icon":"")},n&&pe.default.createElement(Wt,fe({icon:s,className:t.clsx(i,!i&&a,o&&"react-datepicker-ignore-onclickoutside")},r?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())},s.prototype.render=function(){var e=this.renderCalendar();if(this.props.inline)return e;if(this.props.withPortal){var t=this.state.open?pe.default.createElement(qt,{enableTabLoop:this.props.enableTabLoop},pe.default.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},e)):null;return this.state.open&&this.props.portalId&&(t=pe.default.createElement($t,fe({portalId:this.props.portalId},this.props),t)),pe.default.createElement("div",null,this.renderInputContainer(),t)}return pe.default.createElement(Kt,fe({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:e,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},s}(n.Component),Zt="input",en="navigate";e.CalendarContainer=ye,e.default=Xt,e.getDefaultLocale=He,e.registerLocale=function(e,t){var n=we();n.__localeData__||(n.__localeData__={}),n.__localeData__[e]=t},e.setDefaultLocale=function(e){we().__localeId__=e},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(71508),n(96540),n(21057),n(27761),n(83359),n(44461),n(55353),n(88823),n(2577),n(4481),n(60274),n(88676),n(8),n(13450),n(12701),n(75327),n(51411),n(98577),n(4820),n(81002),n(22901),n(4195),n(22918),n(29332),n(26688),n(98511),n(921),n(86392),n(77116),n(97328),n(65171),n(68330),n(76253),n(86925),n(17933),n(65137),n(90795),n(81322),n(89111),n(63727),n(56171),n(82377),n(75798),n(4793),n(75245),n(34386),n(28772),n(41819),n(80093),n(80356),n(46908),n(71228),n(39852),n(80066),n(36128),n(14745),n(37608),n(85380),n(18590),n(25278),n(857),n(34032),n(27376),n(40961))},91396(e,t){"use strict";t.addLeadingZeros=function(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}},79057(e,t,n){"use strict";Object.defineProperty(t,"defaultLocale",{enumerable:!0,get:function(){return s.enUS}});var s=n(34134)},20445(e,t){"use strict";t.getDefaultOptions=function(){return n},t.setDefaultOptions=function(e){n=e};let n={}},81889(e,t,n){"use strict";t.formatters=void 0;var s=n(627),a=n(29332),i=n(6253),r=n(63613),o=n(9804),l=n(91396),c=n(7019);function u(e,t=""){const n=e>0?"-":"+",s=Math.abs(e),a=Math.trunc(s/60),i=s%60;return 0===i?n+String(a):n+String(a)+t+(0,l.addLeadingZeros)(i,2)}function d(e,t){return e%60==0?(e>0?"-":"+")+(0,l.addLeadingZeros)(Math.abs(e)/60,2):p(e,t)}function p(e,t=""){const n=e>0?"-":"+",s=Math.abs(e);return n+(0,l.addLeadingZeros)(Math.trunc(s/60),2)+t+(0,l.addLeadingZeros)(s%60,2)}t.formatters={G:function(e,t,n){const s=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(s,{width:"abbreviated"});case"GGGGG":return n.era(s,{width:"narrow"});default:return n.era(s,{width:"wide"})}},y:function(e,t,n){if("yo"===t){const t=e.getFullYear(),s=t>0?t:1-t;return n.ordinalNumber(s,{unit:"year"})}return c.lightFormatters.y(e,t)},Y:function(e,t,n,s){const a=(0,o.getWeekYear)(e,s),i=a>0?a:1-a;if("YY"===t){const e=i%100;return(0,l.addLeadingZeros)(e,2)}return"Yo"===t?n.ordinalNumber(i,{unit:"year"}):(0,l.addLeadingZeros)(i,t.length)},R:function(e,t){const n=(0,i.getISOWeekYear)(e);return(0,l.addLeadingZeros)(n,t.length)},u:function(e,t){const n=e.getFullYear();return(0,l.addLeadingZeros)(n,t.length)},Q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(s);case"QQ":return(0,l.addLeadingZeros)(s,2);case"Qo":return n.ordinalNumber(s,{unit:"quarter"});case"QQQ":return n.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(s,{width:"narrow",context:"formatting"});default:return n.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,t,n){const s=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(s);case"qq":return(0,l.addLeadingZeros)(s,2);case"qo":return n.ordinalNumber(s,{unit:"quarter"});case"qqq":return n.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(s,{width:"narrow",context:"standalone"});default:return n.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,t,n){const s=e.getMonth();switch(t){case"M":case"MM":return c.lightFormatters.M(e,t);case"Mo":return n.ordinalNumber(s+1,{unit:"month"});case"MMM":return n.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(s,{width:"narrow",context:"formatting"});default:return n.month(s,{width:"wide",context:"formatting"})}},L:function(e,t,n){const s=e.getMonth();switch(t){case"L":return String(s+1);case"LL":return(0,l.addLeadingZeros)(s+1,2);case"Lo":return n.ordinalNumber(s+1,{unit:"month"});case"LLL":return n.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(s,{width:"narrow",context:"standalone"});default:return n.month(s,{width:"wide",context:"standalone"})}},w:function(e,t,n,s){const a=(0,r.getWeek)(e,s);return"wo"===t?n.ordinalNumber(a,{unit:"week"}):(0,l.addLeadingZeros)(a,t.length)},I:function(e,t,n){const s=(0,a.getISOWeek)(e);return"Io"===t?n.ordinalNumber(s,{unit:"week"}):(0,l.addLeadingZeros)(s,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getDate(),{unit:"date"}):c.lightFormatters.d(e,t)},D:function(e,t,n){const a=(0,s.getDayOfYear)(e);return"Do"===t?n.ordinalNumber(a,{unit:"dayOfYear"}):(0,l.addLeadingZeros)(a,t.length)},E:function(e,t,n){const s=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},e:function(e,t,n,s){const a=e.getDay(),i=(a-s.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return(0,l.addLeadingZeros)(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(a,{width:"short",context:"formatting"});default:return n.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,n,s){const a=e.getDay(),i=(a-s.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return(0,l.addLeadingZeros)(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(a,{width:"narrow",context:"standalone"});case"cccccc":return n.day(a,{width:"short",context:"standalone"});default:return n.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,n){const s=e.getDay(),a=0===s?7:s;switch(t){case"i":return String(a);case"ii":return(0,l.addLeadingZeros)(a,t.length);case"io":return n.ordinalNumber(a,{unit:"day"});case"iii":return n.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(s,{width:"short",context:"formatting"});default:return n.day(s,{width:"wide",context:"formatting"})}},a:function(e,t,n){const s=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,t,n){const s=e.getHours();let a;switch(a=12===s?"noon":0===s?"midnight":s/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,n){const s=e.getHours();let a;switch(a=s>=17?"evening":s>=12?"afternoon":s>=4?"morning":"night",t){case"B":case"BB":case"BBB":return n.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(a,{width:"narrow",context:"formatting"});default:return n.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),n.ordinalNumber(t,{unit:"hour"})}return c.lightFormatters.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getHours(),{unit:"hour"}):c.lightFormatters.H(e,t)},K:function(e,t,n){const s=e.getHours()%12;return"Ko"===t?n.ordinalNumber(s,{unit:"hour"}):(0,l.addLeadingZeros)(s,t.length)},k:function(e,t,n){let s=e.getHours();return 0===s&&(s=24),"ko"===t?n.ordinalNumber(s,{unit:"hour"}):(0,l.addLeadingZeros)(s,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):c.lightFormatters.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getSeconds(),{unit:"second"}):c.lightFormatters.s(e,t)},S:function(e,t){return c.lightFormatters.S(e,t)},X:function(e,t,n){const s=e.getTimezoneOffset();if(0===s)return"Z";switch(t){case"X":return d(s);case"XXXX":case"XX":return p(s);default:return p(s,":")}},x:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"x":return d(s);case"xxxx":case"xx":return p(s);default:return p(s,":")}},O:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+u(s,":");default:return"GMT"+p(s,":")}},z:function(e,t,n){const s=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+u(s,":");default:return"GMT"+p(s,":")}},t:function(e,t,n){const s=Math.trunc(e.getTime()/1e3);return(0,l.addLeadingZeros)(s,t.length)},T:function(e,t,n){const s=e.getTime();return(0,l.addLeadingZeros)(s,t.length)}}},7019(e,t,n){"use strict";t.lightFormatters=void 0;var s=n(91396);t.lightFormatters={y(e,t){const n=e.getFullYear(),a=n>0?n:1-n;return(0,s.addLeadingZeros)("yy"===t?a%100:a,t.length)},M(e,t){const n=e.getMonth();return"M"===t?String(n+1):(0,s.addLeadingZeros)(n+1,2)},d:(e,t)=>(0,s.addLeadingZeros)(e.getDate(),t.length),a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:(e,t)=>(0,s.addLeadingZeros)(e.getHours()%12||12,t.length),H:(e,t)=>(0,s.addLeadingZeros)(e.getHours(),t.length),m:(e,t)=>(0,s.addLeadingZeros)(e.getMinutes(),t.length),s:(e,t)=>(0,s.addLeadingZeros)(e.getSeconds(),t.length),S(e,t){const n=t.length,a=e.getMilliseconds(),i=Math.trunc(a*Math.pow(10,n-3));return(0,s.addLeadingZeros)(i,t.length)}}},85879(e,t){"use strict";t.longFormatters=void 0;const n=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},s=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}};t.longFormatters={p:s,P:(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],i=a[1],r=a[2];if(!r)return n(e,t);let o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;default:o=t.dateTime({width:"full"})}return o.replace("{{date}}",n(i,t)).replace("{{time}}",s(r,t))}}},72071(e,t){"use strict";t.getRoundingMethod=function(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return 0===n?0:n}}},62535(e,t,n){"use strict";t.getTimezoneOffsetInMilliseconds=function(e){const t=(0,s.toDate)(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n};var s=n(34032)},47602(e,t){"use strict";t.isProtectedDayOfYearToken=function(e){return n.test(e)},t.isProtectedWeekYearToken=function(e){return s.test(e)},t.warnOrThrowProtectedError=function(e,t,n){const s=function(e,t,n){const s="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${s} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,n);if(console.warn(s),a.includes(e))throw new RangeError(s)};const n=/^D+$/,s=/^Y+$/,a=["D","DD","YY","YYYY"]},82586(e,t,n){"use strict";t.add=function(e,t){const{years:n=0,months:o=0,weeks:l=0,days:c=0,hours:u=0,minutes:d=0,seconds:p=0}=t,h=(0,r.toDate)(e),m=o||n?(0,a.addMonths)(h,o+12*n):h,g=c||l?(0,s.addDays)(m,c+7*l):m,f=1e3*(p+60*(d+60*u));return(0,i.constructFrom)(e,g.getTime()+f)};var s=n(27761),a=n(55353),i=n(81516),r=n(34032)},38583(e,t,n){"use strict";t.addBusinessDays=function(e,t){const n=(0,o.toDate)(e),l=(0,r.isWeekend)(n);if(isNaN(t))return(0,s.constructFrom)(e,NaN);const c=n.getHours(),u=t<0?-1:1,d=Math.trunc(t/5);n.setDate(n.getDate()+7*d);let p=Math.abs(t%5);for(;p>0;)n.setDate(n.getDate()+u),(0,r.isWeekend)(n)||(p-=1);return l&&(0,r.isWeekend)(n)&&0!==t&&((0,a.isSaturday)(n)&&n.setDate(n.getDate()+(u<0?2:-1)),(0,i.isSunday)(n)&&n.setDate(n.getDate()+(u<0?1:-2))),n.setHours(c),n};var s=n(81516),a=n(84398),i=n(39957),r=n(52764),o=n(34032)},27761(e,t,n){"use strict";t.addDays=function(e,t){const n=(0,s.toDate)(e);return isNaN(t)?(0,a.constructFrom)(e,NaN):t?(n.setDate(n.getDate()+t),n):n};var s=n(34032),a=n(81516)},83359(e,t,n){"use strict";t.addHours=function(e,t){return(0,s.addMilliseconds)(e,t*a.millisecondsInHour)};var s=n(40276),a=n(69992)},21839(e,t,n){"use strict";t.addISOWeekYears=function(e,t){return(0,a.setISOWeekYear)(e,(0,s.getISOWeekYear)(e)+t)};var s=n(6253),a=n(93169)},40276(e,t,n){"use strict";t.addMilliseconds=function(e,t){const n=+(0,s.toDate)(e);return(0,a.constructFrom)(e,n+t)};var s=n(34032),a=n(81516)},44461(e,t,n){"use strict";t.addMinutes=function(e,t){return(0,s.addMilliseconds)(e,t*a.millisecondsInMinute)};var s=n(40276),a=n(69992)},55353(e,t,n){"use strict";t.addMonths=function(e,t){const n=(0,s.toDate)(e);if(isNaN(t))return(0,a.constructFrom)(e,NaN);if(!t)return n;const i=n.getDate(),r=(0,a.constructFrom)(e,n.getTime());r.setMonth(n.getMonth()+t+1,0);return i>=r.getDate()?r:(n.setFullYear(r.getFullYear(),r.getMonth(),i),n)};var s=n(34032),a=n(81516)},88823(e,t,n){"use strict";t.addQuarters=function(e,t){const n=3*t;return(0,s.addMonths)(e,n)};var s=n(55353)},2577(e,t,n){"use strict";t.addSeconds=function(e,t){return(0,s.addMilliseconds)(e,1e3*t)};var s=n(40276)},4481(e,t,n){"use strict";t.addWeeks=function(e,t){const n=7*t;return(0,s.addDays)(e,n)};var s=n(27761)},60274(e,t,n){"use strict";t.addYears=function(e,t){return(0,s.addMonths)(e,12*t)};var s=n(55353)},10794(e,t,n){"use strict";t.areIntervalsOverlapping=function(e,t,n){const[a,i]=[+(0,s.toDate)(e.start),+(0,s.toDate)(e.end)].sort(((e,t)=>e-t)),[r,o]=[+(0,s.toDate)(t.start),+(0,s.toDate)(t.end)].sort(((e,t)=>e-t));return n?.inclusive?a<=o&&r<=i:a<o&&r<i};var s=n(34032)},30418(e,t,n){"use strict";t.clamp=function(e,t){return(0,a.min)([(0,s.max)([e,t.start]),t.end])};var s=n(56171),a=n(82377)},2069(e,t,n){"use strict";t.closestIndexTo=function(e,t){const n=(0,s.toDate)(e);if(isNaN(Number(n)))return NaN;const a=n.getTime();let i,r;return t.forEach((function(e,t){const n=(0,s.toDate)(e);if(isNaN(Number(n)))return i=NaN,void(r=NaN);const o=Math.abs(a-n.getTime());(null==i||o<r)&&(i=t,r=o)})),i};var s=n(34032)},26703(e,t,n){"use strict";t.closestTo=function(e,t){const n=(0,a.toDate)(e);if(isNaN(Number(n)))return(0,s.constructFrom)(e,NaN);const i=n.getTime();let r,o;return t.forEach((t=>{const n=(0,a.toDate)(t);if(isNaN(Number(n)))return r=(0,s.constructFrom)(e,NaN),void(o=NaN);const l=Math.abs(i-n.getTime());(null==r||l<o)&&(r=n,o=l)})),r};var s=n(81516),a=n(34032)},84393(e,t,n){"use strict";t.compareAsc=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t),i=n.getTime()-a.getTime();return i<0?-1:i>0?1:i};var s=n(34032)},96267(e,t,n){"use strict";t.compareDesc=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t),i=n.getTime()-a.getTime();return i>0?-1:i<0?1:i};var s=n(34032)},69992(e,t){"use strict";t.secondsInYear=t.secondsInWeek=t.secondsInQuarter=t.secondsInMonth=t.secondsInMinute=t.secondsInHour=t.secondsInDay=t.quartersInYear=t.monthsInYear=t.monthsInQuarter=t.minutesInYear=t.minutesInMonth=t.minutesInHour=t.minutesInDay=t.minTime=t.millisecondsInWeek=t.millisecondsInSecond=t.millisecondsInMinute=t.millisecondsInHour=t.millisecondsInDay=t.maxTime=t.daysInYear=t.daysInWeek=void 0,t.daysInWeek=7;const n=t.daysInYear=365.2425,s=t.maxTime=24*Math.pow(10,8)*60*60*1e3,a=(t.minTime=-s,t.millisecondsInWeek=6048e5,t.millisecondsInDay=864e5,t.millisecondsInMinute=6e4,t.millisecondsInHour=36e5,t.millisecondsInSecond=1e3,t.minutesInYear=525600,t.minutesInMonth=43200,t.minutesInDay=1440,t.minutesInHour=60,t.monthsInQuarter=3,t.monthsInYear=12,t.quartersInYear=4,t.secondsInHour=3600),i=(t.secondsInMinute=60,t.secondsInDay=24*a),r=(t.secondsInWeek=7*i,t.secondsInYear=i*n),o=t.secondsInMonth=r/12;t.secondsInQuarter=3*o},81516(e,t){"use strict";t.constructFrom=function(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}},57270(e,t,n){"use strict";t.constructNow=function(e){return(0,s.constructFrom)(e,Date.now())};var s=n(81516)},90670(e,t,n){"use strict";t.daysToWeeks=function(e){const t=e/s.daysInWeek,n=Math.trunc(t);return 0===n?0:n};var s=n(69992)},66384(e,t,n){"use strict";t.differenceInBusinessDays=function(e,t){const n=(0,l.toDate)(e);let c=(0,l.toDate)(t);if(!(0,r.isValid)(n)||!(0,r.isValid)(c))return NaN;const u=(0,a.differenceInCalendarDays)(n,c),d=u<0?-1:1,p=Math.trunc(u/7);let h=5*p;for(c=(0,s.addDays)(c,7*p);!(0,i.isSameDay)(n,c);)h+=(0,o.isWeekend)(c)?0:d,c=(0,s.addDays)(c,d);return 0===h?0:h};var s=n(27761),a=n(88676),i=n(17933),r=n(89111),o=n(52764),l=n(34032)},88676(e,t,n){"use strict";t.differenceInCalendarDays=function(e,t){const n=(0,a.startOfDay)(e),r=(0,a.startOfDay)(t),o=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+r-(0,i.getTimezoneOffsetInMilliseconds)(r);return Math.round((o-l)/s.millisecondsInDay)};var s=n(69992),a=n(71228),i=n(62535)},87546(e,t,n){"use strict";t.differenceInCalendarISOWeekYears=function(e,t){return(0,s.getISOWeekYear)(e)-(0,s.getISOWeekYear)(t)};var s=n(6253)},7905(e,t,n){"use strict";t.differenceInCalendarISOWeeks=function(e,t){const n=(0,a.startOfISOWeek)(e),r=(0,a.startOfISOWeek)(t),o=+n-(0,i.getTimezoneOffsetInMilliseconds)(n),l=+r-(0,i.getTimezoneOffsetInMilliseconds)(r);return Math.round((o-l)/s.millisecondsInWeek)};var s=n(69992),a=n(20419),i=n(62535)},8(e,t,n){"use strict";t.differenceInCalendarMonths=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t);return 12*(n.getFullYear()-a.getFullYear())+(n.getMonth()-a.getMonth())};var s=n(34032)},13450(e,t,n){"use strict";t.differenceInCalendarQuarters=function(e,t){const n=(0,a.toDate)(e),i=(0,a.toDate)(t);return 4*(n.getFullYear()-i.getFullYear())+((0,s.getQuarter)(n)-(0,s.getQuarter)(i))};var s=n(921),a=n(34032)},2930(e,t,n){"use strict";t.differenceInCalendarWeeks=function(e,t,n){const r=(0,a.startOfWeek)(e,n),o=(0,a.startOfWeek)(t,n),l=+r-(0,i.getTimezoneOffsetInMilliseconds)(r),c=+o-(0,i.getTimezoneOffsetInMilliseconds)(o);return Math.round((l-c)/s.millisecondsInWeek)};var s=n(69992),a=n(36128),i=n(62535)},12701(e,t,n){"use strict";t.differenceInCalendarYears=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t);return n.getFullYear()-a.getFullYear()};var s=n(34032)},94210(e,t,n){"use strict";t.differenceInDays=function(e,t){const n=(0,a.toDate)(e),r=(0,a.toDate)(t),o=i(n,r),l=Math.abs((0,s.differenceInCalendarDays)(n,r));n.setDate(n.getDate()-o*l);const c=o*(l-Number(i(n,r)===-o));return 0===c?0:c};var s=n(88676),a=n(34032);function i(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}},97618(e,t,n){"use strict";t.differenceInHours=function(e,t,n){const r=(0,i.differenceInMilliseconds)(e,t)/a.millisecondsInHour;return(0,s.getRoundingMethod)(n?.roundingMethod)(r)};var s=n(72071),a=n(69992),i=n(29963)},32100(e,t,n){"use strict";t.differenceInISOWeekYears=function(e,t){let n=(0,r.toDate)(e);const o=(0,r.toDate)(t),l=(0,s.compareAsc)(n,o),c=Math.abs((0,a.differenceInCalendarISOWeekYears)(n,o));n=(0,i.subISOWeekYears)(n,l*c);const u=l*(c-Number((0,s.compareAsc)(n,o)===-l));return 0===u?0:u};var s=n(84393),a=n(87546),i=n(34830),r=n(34032)},29963(e,t,n){"use strict";t.differenceInMilliseconds=function(e,t){return+(0,s.toDate)(e)-+(0,s.toDate)(t)};var s=n(34032)},45092(e,t,n){"use strict";t.differenceInMinutes=function(e,t,n){const r=(0,i.differenceInMilliseconds)(e,t)/a.millisecondsInMinute;return(0,s.getRoundingMethod)(n?.roundingMethod)(r)};var s=n(72071),a=n(69992),i=n(29963)},20654(e,t,n){"use strict";t.differenceInMonths=function(e,t){const n=(0,r.toDate)(e),o=(0,r.toDate)(t),l=(0,s.compareAsc)(n,o),c=Math.abs((0,a.differenceInCalendarMonths)(n,o));let u;if(c<1)u=0;else{1===n.getMonth()&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-l*c);let t=(0,s.compareAsc)(n,o)===-l;(0,i.isLastDayOfMonth)((0,r.toDate)(e))&&1===c&&1===(0,s.compareAsc)(e,o)&&(t=!1),u=l*(c-Number(t))}return 0===u?0:u};var s=n(84393),a=n(8),i=n(82082),r=n(34032)},36587(e,t,n){"use strict";t.differenceInQuarters=function(e,t,n){const i=(0,a.differenceInMonths)(e,t)/3;return(0,s.getRoundingMethod)(n?.roundingMethod)(i)};var s=n(72071),a=n(20654)},46276(e,t,n){"use strict";t.differenceInSeconds=function(e,t,n){const i=(0,a.differenceInMilliseconds)(e,t)/1e3;return(0,s.getRoundingMethod)(n?.roundingMethod)(i)};var s=n(72071),a=n(29963)},17116(e,t,n){"use strict";t.differenceInWeeks=function(e,t,n){const i=(0,a.differenceInDays)(e,t)/7;return(0,s.getRoundingMethod)(n?.roundingMethod)(i)};var s=n(72071),a=n(94210)},18835(e,t,n){"use strict";t.differenceInYears=function(e,t){const n=(0,i.toDate)(e),r=(0,i.toDate)(t),o=(0,s.compareAsc)(n,r),l=Math.abs((0,a.differenceInCalendarYears)(n,r));n.setFullYear(1584),r.setFullYear(1584);const c=o*(l-+((0,s.compareAsc)(n,r)===-o));return 0===c?0:c};var s=n(84393),a=n(12701),i=n(34032)},33872(e,t,n){"use strict";t.eachDayOfInterval=function(e,t){const n=(0,s.toDate)(e.start),a=(0,s.toDate)(e.end);let i=+n>+a;const r=i?+n:+a,o=i?a:n;o.setHours(0,0,0,0);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setDate(o.getDate()+l),o.setHours(0,0,0,0);return i?c.reverse():c};var s=n(34032)},39646(e,t,n){"use strict";t.eachHourOfInterval=function(e,t){const n=(0,a.toDate)(e.start),i=(0,a.toDate)(e.end);let r=+n>+i;const o=r?+n:+i;let l=r?i:n;l.setMinutes(0,0,0);let c=t?.step??1;if(!c)return[];c<0&&(c=-c,r=!r);const u=[];for(;+l<=o;)u.push((0,a.toDate)(l)),l=(0,s.addHours)(l,c);return r?u.reverse():u};var s=n(83359),a=n(34032)},90044(e,t,n){"use strict";t.eachMinuteOfInterval=function(e,t){const n=(0,a.startOfMinute)((0,i.toDate)(e.start)),r=(0,i.toDate)(e.end);let o=+n>+r;const l=o?+n:+r;let c=o?r:n,u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);const d=[];for(;+c<=l;)d.push((0,i.toDate)(c)),c=(0,s.addMinutes)(c,u);return o?d.reverse():d};var s=n(44461),a=n(99800),i=n(34032)},31880(e,t,n){"use strict";t.eachMonthOfInterval=function(e,t){const n=(0,s.toDate)(e.start),a=(0,s.toDate)(e.end);let i=+n>+a;const r=i?+n:+a,o=i?a:n;o.setHours(0,0,0,0),o.setDate(1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setMonth(o.getMonth()+l);return i?c.reverse():c};var s=n(34032)},19674(e,t,n){"use strict";t.eachQuarterOfInterval=function(e,t){const n=(0,i.toDate)(e.start),r=(0,i.toDate)(e.end);let o=+n>+r;const l=o?+(0,a.startOfQuarter)(n):+(0,a.startOfQuarter)(r);let c=o?(0,a.startOfQuarter)(r):(0,a.startOfQuarter)(n),u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);const d=[];for(;+c<=l;)d.push((0,i.toDate)(c)),c=(0,s.addQuarters)(c,u);return o?d.reverse():d};var s=n(88823),a=n(80066),i=n(34032)},80932(e,t,n){"use strict";t.eachWeekOfInterval=function(e,t){const n=(0,i.toDate)(e.start),r=(0,i.toDate)(e.end);let o=+n>+r;const l=o?(0,a.startOfWeek)(r,t):(0,a.startOfWeek)(n,t),c=o?(0,a.startOfWeek)(n,t):(0,a.startOfWeek)(r,t);l.setHours(15),c.setHours(15);const u=+c.getTime();let d=l,p=t?.step??1;if(!p)return[];p<0&&(p=-p,o=!o);const h=[];for(;+d<=u;)d.setHours(0),h.push((0,i.toDate)(d)),d=(0,s.addWeeks)(d,p),d.setHours(15);return o?h.reverse():h};var s=n(4481),a=n(36128),i=n(34032)},50015(e,t,n){"use strict";t.eachWeekendOfInterval=function(e){const t=(0,s.eachDayOfInterval)(e),n=[];let i=0;for(;i<t.length;){const e=t[i++];(0,a.isWeekend)(e)&&n.push(e)}return n};var s=n(33872),a=n(52764)},45998(e,t,n){"use strict";t.eachWeekendOfMonth=function(e){const t=(0,i.startOfMonth)(e),n=(0,a.endOfMonth)(e);return(0,s.eachWeekendOfInterval)({start:t,end:n})};var s=n(50015),a=n(51411),i=n(39852)},76939(e,t,n){"use strict";t.eachWeekendOfYear=function(e){const t=(0,i.startOfYear)(e),n=(0,a.endOfYear)(e);return(0,s.eachWeekendOfInterval)({start:t,end:n})};var s=n(50015),a=n(4820),i=n(14745)},85261(e,t,n){"use strict";t.eachYearOfInterval=function(e,t){const n=(0,s.toDate)(e.start),a=(0,s.toDate)(e.end);let i=+n>+a;const r=i?+n:+a,o=i?a:n;o.setHours(0,0,0,0),o.setMonth(0,1);let l=t?.step??1;if(!l)return[];l<0&&(l=-l,i=!i);const c=[];for(;+o<=r;)c.push((0,s.toDate)(o)),o.setFullYear(o.getFullYear()+l);return i?c.reverse():c};var s=n(34032)},75327(e,t,n){"use strict";t.endOfDay=function(e){const t=(0,s.toDate)(e);return t.setHours(23,59,59,999),t};var s=n(34032)},20449(e,t,n){"use strict";t.endOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),a=9+10*Math.floor(n/10);return t.setFullYear(a,11,31),t.setHours(23,59,59,999),t};var s=n(34032)},72335(e,t,n){"use strict";t.endOfHour=function(e){const t=(0,s.toDate)(e);return t.setMinutes(59,59,999),t};var s=n(34032)},84792(e,t,n){"use strict";t.endOfISOWeek=function(e){return(0,s.endOfWeek)(e,{weekStartsOn:1})};var s=n(98577)},20873(e,t,n){"use strict";t.endOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const r=(0,a.startOfISOWeek)(n);return r.setMilliseconds(r.getMilliseconds()-1),r};var s=n(6253),a=n(20419),i=n(81516)},21193(e,t,n){"use strict";t.endOfMinute=function(e){const t=(0,s.toDate)(e);return t.setSeconds(59,999),t};var s=n(34032)},51411(e,t,n){"use strict";t.endOfMonth=function(e){const t=(0,s.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t};var s=n(34032)},67285(e,t,n){"use strict";t.endOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),a=n-n%3+3;return t.setMonth(a,0),t.setHours(23,59,59,999),t};var s=n(34032)},31001(e,t,n){"use strict";t.endOfSecond=function(e){const t=(0,s.toDate)(e);return t.setMilliseconds(999),t};var s=n(34032)},4344(e,t,n){"use strict";t.endOfToday=function(){return(0,s.endOfDay)(Date.now())};var s=n(75327)},93938(e,t){"use strict";t.endOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),a=new Date(0);return a.setFullYear(t,n,s+1),a.setHours(23,59,59,999),a}},98577(e,t,n){"use strict";t.endOfWeek=function(e,t){const n=(0,a.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=6+(o<i?-7:0)-(o-i);return r.setDate(r.getDate()+l),r.setHours(23,59,59,999),r};var s=n(34032),a=n(20445)},4820(e,t,n){"use strict";t.endOfYear=function(e){const t=(0,s.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t};var s=n(34032)},48333(e,t){"use strict";t.endOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),a=new Date(0);return a.setFullYear(t,n,s-1),a.setHours(23,59,59,999),a}},81002(e,t,n){"use strict";t.format=t.formatDate=function(e,t,n){const p=(0,a.getDefaultOptions)(),h=n?.locale??p.locale??s.defaultLocale,f=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??p.firstWeekContainsDate??p.locale?.options?.firstWeekContainsDate??1,b=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??p.weekStartsOn??p.locale?.options?.weekStartsOn??0,v=(0,c.toDate)(e);if(!(0,l.isValid)(v))throw new RangeError("Invalid time value");let y=t.match(d).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,r.longFormatters[t])(e,h.formatLong):e})).join("").match(u).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:g(e)};if(i.formatters[t])return{isToken:!0,value:e};if(t.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));h.localize.preprocessor&&(y=h.localize.preprocessor(v,y));const S={firstWeekContainsDate:f,weekStartsOn:b,locale:h};return y.map((s=>{if(!s.isToken)return s.value;const a=s.value;return(!n?.useAdditionalWeekYearTokens&&(0,o.isProtectedWeekYearToken)(a)||!n?.useAdditionalDayOfYearTokens&&(0,o.isProtectedDayOfYearToken)(a))&&(0,o.warnOrThrowProtectedError)(a,t,String(e)),(0,i.formatters[a[0]])(v,a,h.localize,S)})).join("")},Object.defineProperty(t,"formatters",{enumerable:!0,get:function(){return i.formatters}}),Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return r.longFormatters}});var s=n(79057),a=n(20445),i=n(81889),r=n(85879),o=n(47602),l=n(89111),c=n(34032);const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,p=/^'([^]*?)'?$/,h=/''/g,m=/[a-zA-Z]/;function g(e){const t=e.match(p);return t?t[1].replace(h,"'"):e}},35990(e,t,n){"use strict";t.formatDistance=function(e,t,n){const d=(0,c.getDefaultOptions)(),p=n?.locale??d.locale??l.defaultLocale,h=(0,s.compareAsc)(e,t);if(isNaN(h))throw new RangeError("Invalid time value");const m=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:h});let g,f;h>0?(g=(0,o.toDate)(t),f=(0,o.toDate)(e)):(g=(0,o.toDate)(e),f=(0,o.toDate)(t));const b=(0,r.differenceInSeconds)(f,g),v=((0,u.getTimezoneOffsetInMilliseconds)(f)-(0,u.getTimezoneOffsetInMilliseconds)(g))/1e3,y=Math.round((b-v)/60);let S;if(y<2)return n?.includeSeconds?b<5?p.formatDistance("lessThanXSeconds",5,m):b<10?p.formatDistance("lessThanXSeconds",10,m):b<20?p.formatDistance("lessThanXSeconds",20,m):b<40?p.formatDistance("halfAMinute",0,m):b<60?p.formatDistance("lessThanXMinutes",1,m):p.formatDistance("xMinutes",1,m):0===y?p.formatDistance("lessThanXMinutes",1,m):p.formatDistance("xMinutes",y,m);if(y<45)return p.formatDistance("xMinutes",y,m);if(y<90)return p.formatDistance("aboutXHours",1,m);if(y<a.minutesInDay){const e=Math.round(y/60);return p.formatDistance("aboutXHours",e,m)}if(y<2520)return p.formatDistance("xDays",1,m);if(y<a.minutesInMonth){const e=Math.round(y/a.minutesInDay);return p.formatDistance("xDays",e,m)}if(y<2*a.minutesInMonth)return S=Math.round(y/a.minutesInMonth),p.formatDistance("aboutXMonths",S,m);if(S=(0,i.differenceInMonths)(f,g),S<12){const e=Math.round(y/a.minutesInMonth);return p.formatDistance("xMonths",e,m)}{const e=S%12,t=Math.trunc(S/12);return e<3?p.formatDistance("aboutXYears",t,m):e<9?p.formatDistance("overXYears",t,m):p.formatDistance("almostXYears",t+1,m)}};var s=n(84393),a=n(69992),i=n(20654),r=n(46276),o=n(34032),l=n(79057),c=n(20445),u=n(62535)},10380(e,t,n){"use strict";t.formatDistanceStrict=function(e,t,n){const u=(0,a.getDefaultOptions)(),d=n?.locale??u.locale??s.defaultLocale,p=(0,o.compareAsc)(e,t);if(isNaN(p))throw new RangeError("Invalid time value");const h=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:p});let m,g;p>0?(m=(0,c.toDate)(t),g=(0,c.toDate)(e)):(m=(0,c.toDate)(e),g=(0,c.toDate)(t));const f=(0,i.getRoundingMethod)(n?.roundingMethod??"round"),b=g.getTime()-m.getTime(),v=b/l.millisecondsInMinute,y=(b-((0,r.getTimezoneOffsetInMilliseconds)(g)-(0,r.getTimezoneOffsetInMilliseconds)(m)))/l.millisecondsInMinute,S=n?.unit;let w;if(w=S||(v<1?"second":v<60?"minute":v<l.minutesInDay?"hour":y<l.minutesInMonth?"day":y<l.minutesInYear?"month":"year"),"second"===w){const e=f(b/1e3);return d.formatDistance("xSeconds",e,h)}if("minute"===w){const e=f(v);return d.formatDistance("xMinutes",e,h)}if("hour"===w){const e=f(v/60);return d.formatDistance("xHours",e,h)}if("day"===w){const e=f(y/l.minutesInDay);return d.formatDistance("xDays",e,h)}if("month"===w){const e=f(y/l.minutesInMonth);return 12===e&&"month"!==S?d.formatDistance("xYears",1,h):d.formatDistance("xMonths",e,h)}{const e=f(y/l.minutesInYear);return d.formatDistance("xYears",e,h)}};var s=n(79057),a=n(20445),i=n(72071),r=n(62535),o=n(84393),l=n(69992),c=n(34032)},13582(e,t,n){"use strict";t.formatDistanceToNow=function(e,t){return(0,a.formatDistance)(e,(0,s.constructNow)(e),t)};var s=n(57270),a=n(35990)},91043(e,t,n){"use strict";t.formatDistanceToNowStrict=function(e,t){return(0,s.formatDistanceStrict)(e,(0,a.constructNow)(e),t)};var s=n(10380),a=n(57270)},31010(e,t,n){"use strict";t.formatDuration=function(e,t){const n=(0,a.getDefaultOptions)(),r=t?.locale??n.locale??s.defaultLocale,o=t?.format??i,l=t?.zero??!1,c=t?.delimiter??" ";return r.formatDistance?o.reduce(((t,n)=>{const s=`x${n.replace(/(^.)/,(e=>e.toUpperCase()))}`,a=e[n];return void 0!==a&&(l||e[n])?t.concat(r.formatDistance(s,a)):t}),[]).join(c):""};var s=n(79057),a=n(20445);const i=["years","months","weeks","days","hours","minutes","seconds"]},68269(e,t,n){"use strict";t.formatISO=function(e,t){const n=(0,s.toDate)(e);if(isNaN(n.getTime()))throw new RangeError("Invalid time value");const i=t?.format??"extended",r=t?.representation??"complete";let o="",l="";const c="extended"===i?"-":"",u="extended"===i?":":"";if("time"!==r){const e=(0,a.addLeadingZeros)(n.getDate(),2),t=(0,a.addLeadingZeros)(n.getMonth()+1,2);o=`${(0,a.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}if("date"!==r){const e=n.getTimezoneOffset();if(0!==e){const t=Math.abs(e);l=`${e<0?"+":"-"}${(0,a.addLeadingZeros)(Math.trunc(t/60),2)}:${(0,a.addLeadingZeros)(t%60,2)}`}else l="Z";o=`${o}${""===o?"":"T"}${[(0,a.addLeadingZeros)(n.getHours(),2),(0,a.addLeadingZeros)(n.getMinutes(),2),(0,a.addLeadingZeros)(n.getSeconds(),2)].join(u)}${l}`}return o};var s=n(34032),a=n(91396)},44152(e,t,n){"use strict";t.formatISO9075=function(e,t){const n=(0,a.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const r=t?.format??"extended",o=t?.representation??"complete";let l="";const c="extended"===r?"-":"",u="extended"===r?":":"";if("time"!==o){const e=(0,i.addLeadingZeros)(n.getDate(),2),t=(0,i.addLeadingZeros)(n.getMonth()+1,2);l=`${(0,i.addLeadingZeros)(n.getFullYear(),4)}${c}${t}${c}${e}`}return"date"!==o&&(l=`${l}${""===l?"":" "}${(0,i.addLeadingZeros)(n.getHours(),2)}${u}${(0,i.addLeadingZeros)(n.getMinutes(),2)}${u}${(0,i.addLeadingZeros)(n.getSeconds(),2)}`),l};var s=n(89111),a=n(34032),i=n(91396)},69193(e,t){"use strict";t.formatISODuration=function(e){const{years:t=0,months:n=0,days:s=0,hours:a=0,minutes:i=0,seconds:r=0}=e;return`P${t}Y${n}M${s}DT${a}H${i}M${r}S`}},98215(e,t,n){"use strict";t.formatRFC3339=function(e,t){const n=(0,a.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const r=t?.fractionDigits??0,o=(0,i.addLeadingZeros)(n.getDate(),2),l=(0,i.addLeadingZeros)(n.getMonth()+1,2),c=n.getFullYear(),u=(0,i.addLeadingZeros)(n.getHours(),2),d=(0,i.addLeadingZeros)(n.getMinutes(),2),p=(0,i.addLeadingZeros)(n.getSeconds(),2);let h="";if(r>0){const e=n.getMilliseconds(),t=Math.trunc(e*Math.pow(10,r-3));h="."+(0,i.addLeadingZeros)(t,r)}let m="";const g=n.getTimezoneOffset();if(0!==g){const e=Math.abs(g);m=`${g<0?"+":"-"}${(0,i.addLeadingZeros)(Math.trunc(e/60),2)}:${(0,i.addLeadingZeros)(e%60,2)}`}else m="Z";return`${c}-${l}-${o}T${u}:${d}:${p}${h}${m}`};var s=n(89111),a=n(34032),i=n(91396)},4628(e,t,n){"use strict";t.formatRFC7231=function(e){const t=(0,a.toDate)(e);if(!(0,s.isValid)(t))throw new RangeError("Invalid time value");return`${r[t.getUTCDay()]}, ${(0,i.addLeadingZeros)(t.getUTCDate(),2)} ${o[t.getUTCMonth()]} ${t.getUTCFullYear()} ${(0,i.addLeadingZeros)(t.getUTCHours(),2)}:${(0,i.addLeadingZeros)(t.getUTCMinutes(),2)}:${(0,i.addLeadingZeros)(t.getUTCSeconds(),2)} GMT`};var s=n(89111),a=n(34032),i=n(91396);const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},53666(e,t,n){"use strict";t.formatRelative=function(e,t,n){const l=(0,i.toDate)(e),c=(0,i.toDate)(t),u=(0,o.getDefaultOptions)(),d=n?.locale??u.locale??r.defaultLocale,p=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??u.weekStartsOn??u.locale?.options?.weekStartsOn??0,h=(0,s.differenceInCalendarDays)(l,c);if(isNaN(h))throw new RangeError("Invalid time value");let m;m=h<-6?"other":h<-1?"lastWeek":h<0?"yesterday":h<1?"today":h<2?"tomorrow":h<7?"nextWeek":"other";const g=d.formatRelative(m,l,c,{locale:d,weekStartsOn:p});return(0,a.format)(l,g,{locale:d,weekStartsOn:p})};var s=n(88676),a=n(81002),i=n(34032),r=n(79057),o=n(20445)},64278(e,t,n){"use strict";t.fromUnixTime=function(e){return(0,s.toDate)(1e3*e)};var s=n(34032)},22901(e,t,n){"use strict";t.getDate=function(e){return(0,s.toDate)(e).getDate()};var s=n(34032)},4195(e,t,n){"use strict";t.getDay=function(e){return(0,s.toDate)(e).getDay()};var s=n(34032)},627(e,t,n){"use strict";t.getDayOfYear=function(e){const t=(0,i.toDate)(e);return(0,s.differenceInCalendarDays)(t,(0,a.startOfYear)(t))+1};var s=n(88676),a=n(14745),i=n(34032)},46087(e,t,n){"use strict";t.getDaysInMonth=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),i=t.getMonth(),r=(0,a.constructFrom)(e,0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()};var s=n(34032),a=n(81516)},39208(e,t,n){"use strict";t.getDaysInYear=function(e){const t=(0,a.toDate)(e);return"Invalid Date"===String(new Date(t))?NaN:(0,s.isLeapYear)(t)?366:365};var s=n(43674),a=n(34032)},79893(e,t,n){"use strict";t.getDecade=function(e){const t=(0,s.toDate)(e).getFullYear();return 10*Math.floor(t/10)};var s=n(34032)},63348(e,t,n){"use strict";t.getDefaultOptions=function(){return Object.assign({},(0,s.getDefaultOptions)())};var s=n(20445)},22918(e,t,n){"use strict";t.getHours=function(e){return(0,s.toDate)(e).getHours()};var s=n(34032)},19272(e,t,n){"use strict";t.getISODay=function(e){let t=(0,s.toDate)(e).getDay();return 0===t&&(t=7),t};var s=n(34032)},29332(e,t,n){"use strict";t.getISOWeek=function(e){const t=(0,r.toDate)(e),n=+(0,a.startOfISOWeek)(t)-+(0,i.startOfISOWeekYear)(t);return Math.round(n/s.millisecondsInWeek)+1};var s=n(69992),a=n(20419),i=n(91046),r=n(34032)},6253(e,t,n){"use strict";t.getISOWeekYear=function(e){const t=(0,i.toDate)(e),n=t.getFullYear(),r=(0,s.constructFrom)(e,0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);const o=(0,a.startOfISOWeek)(r),l=(0,s.constructFrom)(e,0);l.setFullYear(n,0,4),l.setHours(0,0,0,0);const c=(0,a.startOfISOWeek)(l);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1};var s=n(81516),a=n(20419),i=n(34032)},73785(e,t,n){"use strict";t.getISOWeeksInYear=function(e){const t=(0,i.startOfISOWeekYear)(e),n=+(0,i.startOfISOWeekYear)((0,s.addWeeks)(t,60))-+t;return Math.round(n/a.millisecondsInWeek)};var s=n(4481),a=n(69992),i=n(91046)},14191(e,t,n){"use strict";t.getMilliseconds=function(e){return(0,s.toDate)(e).getMilliseconds()};var s=n(34032)},26688(e,t,n){"use strict";t.getMinutes=function(e){return(0,s.toDate)(e).getMinutes()};var s=n(34032)},98511(e,t,n){"use strict";t.getMonth=function(e){return(0,s.toDate)(e).getMonth()};var s=n(34032)},76002(e,t,n){"use strict";t.getOverlappingDaysInIntervals=function(e,t){const[n,r]=[+(0,i.toDate)(e.start),+(0,i.toDate)(e.end)].sort(((e,t)=>e-t)),[o,l]=[+(0,i.toDate)(t.start),+(0,i.toDate)(t.end)].sort(((e,t)=>e-t));if(!(n<l&&o<r))return 0;const c=o<n?n:o,u=c-(0,s.getTimezoneOffsetInMilliseconds)(c),d=l>r?r:l,p=d-(0,s.getTimezoneOffsetInMilliseconds)(d);return Math.ceil((p-u)/a.millisecondsInDay)};var s=n(62535),a=n(69992),i=n(34032)},921(e,t,n){"use strict";t.getQuarter=function(e){const t=(0,s.toDate)(e);return Math.trunc(t.getMonth()/3)+1};var s=n(34032)},86392(e,t,n){"use strict";t.getSeconds=function(e){return(0,s.toDate)(e).getSeconds()};var s=n(34032)},77116(e,t,n){"use strict";t.getTime=function(e){return(0,s.toDate)(e).getTime()};var s=n(34032)},66790(e,t,n){"use strict";t.getUnixTime=function(e){return Math.trunc(+(0,s.toDate)(e)/1e3)};var s=n(34032)},63613(e,t,n){"use strict";t.getWeek=function(e,t){const n=(0,r.toDate)(e),o=+(0,a.startOfWeek)(n,t)-+(0,i.startOfWeekYear)(n,t);return Math.round(o/s.millisecondsInWeek)+1};var s=n(69992),a=n(36128),i=n(34241),r=n(34032)},69428(e,t,n){"use strict";t.getWeekOfMonth=function(e,t){const n=(0,r.getDefaultOptions)(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,l=(0,s.getDate)(e);if(isNaN(l))return NaN;let c=o-(0,a.getDay)((0,i.startOfMonth)(e));c<=0&&(c+=7);const u=l-c;return Math.ceil(u/7)+1};var s=n(22901),a=n(4195),i=n(39852),r=n(20445)},9804(e,t,n){"use strict";t.getWeekYear=function(e,t){const n=(0,i.toDate)(e),o=n.getFullYear(),l=(0,r.getDefaultOptions)(),c=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,u=(0,s.constructFrom)(e,0);u.setFullYear(o+1,0,c),u.setHours(0,0,0,0);const d=(0,a.startOfWeek)(u,t),p=(0,s.constructFrom)(e,0);p.setFullYear(o,0,c),p.setHours(0,0,0,0);const h=(0,a.startOfWeek)(p,t);return n.getTime()>=d.getTime()?o+1:n.getTime()>=h.getTime()?o:o-1};var s=n(81516),a=n(36128),i=n(34032),r=n(20445)},41593(e,t,n){"use strict";t.getWeeksInMonth=function(e,t){return(0,s.differenceInCalendarWeeks)((0,a.lastDayOfMonth)(e),(0,i.startOfMonth)(e),t)+1};var s=n(2930),a=n(80286),i=n(39852)},97328(e,t,n){"use strict";t.getYear=function(e){return(0,s.toDate)(e).getFullYear()};var s=n(34032)},90681(e,t,n){"use strict";t.hoursToMilliseconds=function(e){return Math.trunc(e*s.millisecondsInHour)};var s=n(69992)},64714(e,t,n){"use strict";t.hoursToMinutes=function(e){return Math.trunc(e*s.minutesInHour)};var s=n(69992)},11174(e,t,n){"use strict";t.hoursToSeconds=function(e){return Math.trunc(e*s.secondsInHour)};var s=n(69992)},21057(e,t,n){"use strict";var s=n(82586);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=n(38583);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var i=n(27761);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var r=n(83359);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var o=n(21839);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=n(40276);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var c=n(44461);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=n(55353);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var d=n(88823);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var p=n(2577);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var h=n(4481);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var m=n(60274);Object.keys(m).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===m[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return m[e]}}))}));var g=n(10794);Object.keys(g).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===g[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return g[e]}}))}));var f=n(30418);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var b=n(2069);Object.keys(b).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===b[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return b[e]}}))}));var v=n(26703);Object.keys(v).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===v[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return v[e]}}))}));var y=n(84393);Object.keys(y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return y[e]}}))}));var S=n(96267);Object.keys(S).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===S[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return S[e]}}))}));var w=n(81516);Object.keys(w).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===w[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return w[e]}}))}));var x=n(57270);Object.keys(x).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===x[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return x[e]}}))}));var A=n(90670);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var _=n(66384);Object.keys(_).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _[e]}}))}));var k=n(88676);Object.keys(k).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===k[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return k[e]}}))}));var j=n(87546);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))}));var C=n(7905);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var I=n(8);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var T=n(13450);Object.keys(T).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===T[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return T[e]}}))}));var D=n(2930);Object.keys(D).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===D[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return D[e]}}))}));var P=n(12701);Object.keys(P).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===P[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return P[e]}}))}));var O=n(94210);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var L=n(97618);Object.keys(L).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===L[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return L[e]}}))}));var M=n(32100);Object.keys(M).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===M[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return M[e]}}))}));var E=n(29963);Object.keys(E).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===E[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return E[e]}}))}));var R=n(45092);Object.keys(R).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===R[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return R[e]}}))}));var U=n(20654);Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===U[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))}));var N=n(36587);Object.keys(N).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===N[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return N[e]}}))}));var F=n(46276);Object.keys(F).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===F[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return F[e]}}))}));var B=n(17116);Object.keys(B).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===B[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return B[e]}}))}));var Y=n(18835);Object.keys(Y).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Y[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Y[e]}}))}));var H=n(33872);Object.keys(H).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===H[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return H[e]}}))}));var V=n(39646);Object.keys(V).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===V[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return V[e]}}))}));var W=n(90044);Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===W[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))}));var $=n(31880);Object.keys($).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $[e]}}))}));var z=n(19674);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var q=n(80932);Object.keys(q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return q[e]}}))}));var G=n(50015);Object.keys(G).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===G[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return G[e]}}))}));var K=n(45998);Object.keys(K).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===K[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return K[e]}}))}));var Q=n(76939);Object.keys(Q).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Q[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Q[e]}}))}));var J=n(85261);Object.keys(J).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===J[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return J[e]}}))}));var X=n(75327);Object.keys(X).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===X[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return X[e]}}))}));var Z=n(20449);Object.keys(Z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Z[e]}}))}));var ee=n(72335);Object.keys(ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ee[e]}}))}));var te=n(84792);Object.keys(te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return te[e]}}))}));var ne=n(20873);Object.keys(ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ne[e]}}))}));var se=n(21193);Object.keys(se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return se[e]}}))}));var ae=n(51411);Object.keys(ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ae[e]}}))}));var ie=n(67285);Object.keys(ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ie[e]}}))}));var re=n(31001);Object.keys(re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return re[e]}}))}));var oe=n(4344);Object.keys(oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return oe[e]}}))}));var le=n(93938);Object.keys(le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return le[e]}}))}));var ce=n(98577);Object.keys(ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ce[e]}}))}));var ue=n(4820);Object.keys(ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ue[e]}}))}));var de=n(48333);Object.keys(de).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===de[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return de[e]}}))}));var pe=n(81002);Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}}))}));var he=n(35990);Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===he[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}}))}));var me=n(10380);Object.keys(me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return me[e]}}))}));var ge=n(13582);Object.keys(ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ge[e]}}))}));var fe=n(91043);Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}}))}));var be=n(31010);Object.keys(be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return be[e]}}))}));var ve=n(68269);Object.keys(ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ve[e]}}))}));var ye=n(44152);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var Se=n(69193);Object.keys(Se).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Se[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Se[e]}}))}));var we=n(98215);Object.keys(we).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===we[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return we[e]}}))}));var xe=n(4628);Object.keys(xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xe[e]}}))}));var Ae=n(53666);Object.keys(Ae).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ae[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ae[e]}}))}));var _e=n(64278);Object.keys(_e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _e[e]}}))}));var ke=n(22901);Object.keys(ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}}))}));var je=n(4195);Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}}))}));var Ce=n(627);Object.keys(Ce).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ce[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ce[e]}}))}));var Ie=n(46087);Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ie[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}}))}));var Te=n(39208);Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Te[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}}))}));var De=n(79893);Object.keys(De).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===De[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return De[e]}}))}));var Pe=n(63348);Object.keys(Pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pe[e]}}))}));var Oe=n(22918);Object.keys(Oe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Oe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Oe[e]}}))}));var Le=n(19272);Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Le[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}}))}));var Me=n(29332);Object.keys(Me).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Me[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}}))}));var Ee=n(6253);Object.keys(Ee).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ee[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ee[e]}}))}));var Re=n(73785);Object.keys(Re).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Re[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Re[e]}}))}));var Ue=n(14191);Object.keys(Ue).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ue[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ue[e]}}))}));var Ne=n(26688);Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ne[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}}))}));var Fe=n(98511);Object.keys(Fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fe[e]}}))}));var Be=n(76002);Object.keys(Be).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Be[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Be[e]}}))}));var Ye=n(921);Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}}))}));var He=n(86392);Object.keys(He).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===He[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return He[e]}}))}));var Ve=n(77116);Object.keys(Ve).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ve[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ve[e]}}))}));var We=n(66790);Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===We[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}}))}));var $e=n(63613);Object.keys($e).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$e[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $e[e]}}))}));var ze=n(69428);Object.keys(ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ze[e]}}))}));var qe=n(9804);Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}}))}));var Ge=n(41593);Object.keys(Ge).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ge[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ge[e]}}))}));var Ke=n(97328);Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ke[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}}))}));var Qe=n(90681);Object.keys(Qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qe[e]}}))}));var Je=n(64714);Object.keys(Je).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Je[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Je[e]}}))}));var Xe=n(11174);Object.keys(Xe).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xe[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xe[e]}}))}));var Ze=n(34860);Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ze[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}}))}));var et=n(17625);Object.keys(et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return et[e]}}))}));var tt=n(72093);Object.keys(tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tt[e]}}))}));var nt=n(3578);Object.keys(nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nt[e]}}))}));var st=n(65171);Object.keys(st).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===st[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return st[e]}}))}));var at=n(68330);Object.keys(at).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===at[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return at[e]}}))}));var it=n(76253);Object.keys(it).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===it[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return it[e]}}))}));var rt=n(86925);Object.keys(rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rt[e]}}))}));var ot=n(86041);Object.keys(ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ot[e]}}))}));var lt=n(78048);Object.keys(lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return lt[e]}}))}));var ct=n(19302);Object.keys(ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ct[e]}}))}));var ut=n(45702);Object.keys(ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ut[e]}}))}));var dt=n(82082);Object.keys(dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dt[e]}}))}));var pt=n(43674);Object.keys(pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pt[e]}}))}));var ht=n(69220);Object.keys(ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ht[e]}}))}));var mt=n(31937);Object.keys(mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mt[e]}}))}));var gt=n(12161);Object.keys(gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gt[e]}}))}));var ft=n(17933);Object.keys(ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ft[e]}}))}));var bt=n(92801);Object.keys(bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bt[e]}}))}));var vt=n(29046);Object.keys(vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vt[e]}}))}));var yt=n(45755);Object.keys(yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yt[e]}}))}));var St=n(4111);Object.keys(St).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===St[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return St[e]}}))}));var wt=n(65137);Object.keys(wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wt[e]}}))}));var xt=n(90795);Object.keys(xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xt[e]}}))}));var At=n(72451);Object.keys(At).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===At[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return At[e]}}))}));var _t=n(4363);Object.keys(_t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _t[e]}}))}));var kt=n(81322);Object.keys(kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kt[e]}}))}));var jt=n(84398);Object.keys(jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jt[e]}}))}));var Ct=n(39957);Object.keys(Ct).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ct[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ct[e]}}))}));var It=n(45243);Object.keys(It).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===It[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return It[e]}}))}));var Tt=n(48108);Object.keys(Tt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tt[e]}}))}));var Dt=n(87229);Object.keys(Dt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dt[e]}}))}));var Pt=n(22231);Object.keys(Pt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pt[e]}}))}));var Ot=n(60609);Object.keys(Ot).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ot[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ot[e]}}))}));var Lt=n(53589);Object.keys(Lt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Lt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Lt[e]}}))}));var Mt=n(72389);Object.keys(Mt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mt[e]}}))}));var Et=n(6104);Object.keys(Et).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Et[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Et[e]}}))}));var Rt=n(26943);Object.keys(Rt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rt[e]}}))}));var Ut=n(21236);Object.keys(Ut).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ut[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ut[e]}}))}));var Nt=n(16062);Object.keys(Nt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nt[e]}}))}));var Ft=n(24758);Object.keys(Ft).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ft[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ft[e]}}))}));var Bt=n(89111);Object.keys(Bt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bt[e]}}))}));var Yt=n(3221);Object.keys(Yt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yt[e]}}))}));var Ht=n(52764);Object.keys(Ht).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ht[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ht[e]}}))}));var Vt=n(63727);Object.keys(Vt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vt[e]}}))}));var Wt=n(90705);Object.keys(Wt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wt[e]}}))}));var $t=n(30322);Object.keys($t).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$t[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $t[e]}}))}));var zt=n(36109);Object.keys(zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zt[e]}}))}));var qt=n(82748);Object.keys(qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qt[e]}}))}));var Gt=n(80286);Object.keys(Gt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gt[e]}}))}));var Kt=n(31684);Object.keys(Kt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kt[e]}}))}));var Qt=n(84774);Object.keys(Qt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qt[e]}}))}));var Jt=n(11067);Object.keys(Jt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jt[e]}}))}));var Xt=n(56982);Object.keys(Xt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xt[e]}}))}));var Zt=n(56171);Object.keys(Zt).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zt[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zt[e]}}))}));var en=n(63443);Object.keys(en).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===en[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return en[e]}}))}));var tn=n(61587);Object.keys(tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return tn[e]}}))}));var nn=n(41817);Object.keys(nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return nn[e]}}))}));var sn=n(50773);Object.keys(sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return sn[e]}}))}));var an=n(82377);Object.keys(an).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===an[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return an[e]}}))}));var rn=n(64146);Object.keys(rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rn[e]}}))}));var on=n(61099);Object.keys(on).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===on[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return on[e]}}))}));var ln=n(25156);Object.keys(ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ln[e]}}))}));var cn=n(70418);Object.keys(cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cn[e]}}))}));var un=n(17733);Object.keys(un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return un[e]}}))}));var dn=n(25240);Object.keys(dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return dn[e]}}))}));var pn=n(23427);Object.keys(pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return pn[e]}}))}));var hn=n(95128);Object.keys(hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hn[e]}}))}));var mn=n(20279);Object.keys(mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return mn[e]}}))}));var gn=n(18520);Object.keys(gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gn[e]}}))}));var fn=n(95346);Object.keys(fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fn[e]}}))}));var bn=n(24693);Object.keys(bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bn[e]}}))}));var vn=n(1034);Object.keys(vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vn[e]}}))}));var yn=n(75798);Object.keys(yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return yn[e]}}))}));var Sn=n(4793);Object.keys(Sn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Sn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Sn[e]}}))}));var wn=n(62328);Object.keys(wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return wn[e]}}))}));var xn=n(67480);Object.keys(xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xn[e]}}))}));var An=n(38883);Object.keys(An).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===An[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return An[e]}}))}));var _n=n(92504);Object.keys(_n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _n[e]}}))}));var kn=n(12631);Object.keys(kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return kn[e]}}))}));var jn=n(94360);Object.keys(jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return jn[e]}}))}));var Cn=n(74130);Object.keys(Cn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cn[e]}}))}));var In=n(56565);Object.keys(In).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===In[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return In[e]}}))}));var Tn=n(17834);Object.keys(Tn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Tn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Tn[e]}}))}));var Dn=n(54850);Object.keys(Dn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Dn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Dn[e]}}))}));var Pn=n(23335);Object.keys(Pn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Pn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Pn[e]}}))}));var On=n(76981);Object.keys(On).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===On[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return On[e]}}))}));var Ln=n(29271);Object.keys(Ln).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ln[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ln[e]}}))}));var Mn=n(3906);Object.keys(Mn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Mn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Mn[e]}}))}));var En=n(2683);Object.keys(En).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===En[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return En[e]}}))}));var Rn=n(628);Object.keys(Rn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Rn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Rn[e]}}))}));var Un=n(75245);Object.keys(Un).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Un[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Un[e]}}))}));var Nn=n(91697);Object.keys(Nn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Nn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Nn[e]}}))}));var Fn=n(40964);Object.keys(Fn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Fn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Fn[e]}}))}));var Bn=n(52063);Object.keys(Bn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Bn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Bn[e]}}))}));var Yn=n(81288);Object.keys(Yn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Yn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Yn[e]}}))}));var Hn=n(34386);Object.keys(Hn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Hn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Hn[e]}}))}));var Vn=n(2892);Object.keys(Vn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Vn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Vn[e]}}))}));var Wn=n(7472);Object.keys(Wn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Wn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Wn[e]}}))}));var $n=n(93169);Object.keys($n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===$n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return $n[e]}}))}));var zn=n(65931);Object.keys(zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return zn[e]}}))}));var qn=n(28772);Object.keys(qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return qn[e]}}))}));var Gn=n(41819);Object.keys(Gn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Gn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Gn[e]}}))}));var Kn=n(80093);Object.keys(Kn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Kn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Kn[e]}}))}));var Qn=n(80356);Object.keys(Qn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Qn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qn[e]}}))}));var Jn=n(10233);Object.keys(Jn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Jn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Jn[e]}}))}));var Xn=n(9504);Object.keys(Xn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Xn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Xn[e]}}))}));var Zn=n(46908);Object.keys(Zn).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Zn[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Zn[e]}}))}));var es=n(71228);Object.keys(es).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===es[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return es[e]}}))}));var ts=n(96376);Object.keys(ts).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ts[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ts[e]}}))}));var ns=n(15694);Object.keys(ns).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ns[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ns[e]}}))}));var ss=n(20419);Object.keys(ss).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ss[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ss[e]}}))}));var as=n(91046);Object.keys(as).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===as[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return as[e]}}))}));var is=n(99800);Object.keys(is).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===is[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return is[e]}}))}));var rs=n(39852);Object.keys(rs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===rs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return rs[e]}}))}));var os=n(80066);Object.keys(os).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===os[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return os[e]}}))}));var ls=n(42e3);Object.keys(ls).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ls[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ls[e]}}))}));var cs=n(24643);Object.keys(cs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===cs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return cs[e]}}))}));var us=n(58667);Object.keys(us).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===us[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return us[e]}}))}));var ds=n(36128);Object.keys(ds).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ds[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ds[e]}}))}));var ps=n(34241);Object.keys(ps).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ps[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ps[e]}}))}));var hs=n(14745);Object.keys(hs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===hs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return hs[e]}}))}));var ms=n(8458);Object.keys(ms).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ms[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ms[e]}}))}));var gs=n(58831);Object.keys(gs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===gs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return gs[e]}}))}));var fs=n(90106);Object.keys(fs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===fs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return fs[e]}}))}));var bs=n(37608);Object.keys(bs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===bs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return bs[e]}}))}));var vs=n(76724);Object.keys(vs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===vs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return vs[e]}}))}));var ys=n(34830);Object.keys(ys).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ys[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ys[e]}}))}));var Ss=n(8857);Object.keys(Ss).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ss[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ss[e]}}))}));var ws=n(12170);Object.keys(ws).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ws[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ws[e]}}))}));var xs=n(85380);Object.keys(xs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===xs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return xs[e]}}))}));var As=n(18590);Object.keys(As).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===As[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return As[e]}}))}));var _s=n(74982);Object.keys(_s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===_s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return _s[e]}}))}));var ks=n(25278);Object.keys(ks).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===ks[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ks[e]}}))}));var js=n(857);Object.keys(js).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===js[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return js[e]}}))}));var Cs=n(34032);Object.keys(Cs).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Cs[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Cs[e]}}))}));var Is=n(61306);Object.keys(Is).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Is[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Is[e]}}))}));var Ts=n(49914);Object.keys(Ts).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ts[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ts[e]}}))}));var Ds=n(94429);Object.keys(Ds).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ds[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ds[e]}}))}));var Ps=n(69181);Object.keys(Ps).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Ps[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ps[e]}}))}));var Os=n(8627);Object.keys(Os).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===Os[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return Os[e]}}))}))},34860(e,t,n){"use strict";t.interval=function(e,t,n){const a=(0,s.toDate)(e);if(isNaN(+a))throw new TypeError("Start date is invalid");const i=(0,s.toDate)(t);if(isNaN(+i))throw new TypeError("End date is invalid");if(n?.assertPositive&&+a>+i)throw new TypeError("End date must be after start date");return{start:a,end:i}};var s=n(34032)},17625(e,t,n){"use strict";t.intervalToDuration=function(e){const t=(0,u.toDate)(e.start),n=(0,u.toDate)(e.end),d={},p=(0,c.differenceInYears)(n,t);p&&(d.years=p);const h=(0,s.add)(t,{years:d.years}),m=(0,o.differenceInMonths)(n,h);m&&(d.months=m);const g=(0,s.add)(h,{months:d.months}),f=(0,a.differenceInDays)(n,g);f&&(d.days=f);const b=(0,s.add)(g,{days:d.days}),v=(0,i.differenceInHours)(n,b);v&&(d.hours=v);const y=(0,s.add)(b,{hours:d.hours}),S=(0,r.differenceInMinutes)(n,y);S&&(d.minutes=S);const w=(0,s.add)(y,{minutes:d.minutes}),x=(0,l.differenceInSeconds)(n,w);return x&&(d.seconds=x),d};var s=n(82586),a=n(94210),i=n(97618),r=n(45092),o=n(20654),l=n(46276),c=n(18835),u=n(34032)},72093(e,t,n){"use strict";t.intlFormat=function(e,t,n){let a;var i;return void 0===(i=t)||"locale"in i?n=t:a=t,new Intl.DateTimeFormat(n?.locale,a).format((0,s.toDate)(e))};var s=n(34032)},3578(e,t,n){"use strict";t.intlFormatDistance=function(e,t,n){let h,m=0;const g=(0,p.toDate)(e),f=(0,p.toDate)(t);if(n?.unit)h=n?.unit,"second"===h?m=(0,d.differenceInSeconds)(g,f):"minute"===h?m=(0,u.differenceInMinutes)(g,f):"hour"===h?m=(0,c.differenceInHours)(g,f):"day"===h?m=(0,a.differenceInCalendarDays)(g,f):"week"===h?m=(0,o.differenceInCalendarWeeks)(g,f):"month"===h?m=(0,i.differenceInCalendarMonths)(g,f):"quarter"===h?m=(0,r.differenceInCalendarQuarters)(g,f):"year"===h&&(m=(0,l.differenceInCalendarYears)(g,f));else{const e=(0,d.differenceInSeconds)(g,f);Math.abs(e)<s.secondsInMinute?(m=(0,d.differenceInSeconds)(g,f),h="second"):Math.abs(e)<s.secondsInHour?(m=(0,u.differenceInMinutes)(g,f),h="minute"):Math.abs(e)<s.secondsInDay&&Math.abs((0,a.differenceInCalendarDays)(g,f))<1?(m=(0,c.differenceInHours)(g,f),h="hour"):Math.abs(e)<s.secondsInWeek&&(m=(0,a.differenceInCalendarDays)(g,f))&&Math.abs(m)<7?h="day":Math.abs(e)<s.secondsInMonth?(m=(0,o.differenceInCalendarWeeks)(g,f),h="week"):Math.abs(e)<s.secondsInQuarter?(m=(0,i.differenceInCalendarMonths)(g,f),h="month"):Math.abs(e)<s.secondsInYear&&(0,r.differenceInCalendarQuarters)(g,f)<4?(m=(0,r.differenceInCalendarQuarters)(g,f),h="quarter"):(m=(0,l.differenceInCalendarYears)(g,f),h="year")}return new Intl.RelativeTimeFormat(n?.locale,{localeMatcher:n?.localeMatcher,numeric:n?.numeric||"auto",style:n?.style}).format(m,h)};var s=n(69992),a=n(88676),i=n(8),r=n(13450),o=n(2930),l=n(12701),c=n(97618),u=n(45092),d=n(46276),p=n(34032)},65171(e,t,n){"use strict";t.isAfter=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t);return n.getTime()>a.getTime()};var s=n(34032)},68330(e,t,n){"use strict";t.isBefore=function(e,t){return+(0,s.toDate)(e)<+(0,s.toDate)(t)};var s=n(34032)},76253(e,t){"use strict";t.isDate=function(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}},86925(e,t,n){"use strict";t.isEqual=function(e,t){return+(0,s.toDate)(e)==+(0,s.toDate)(t)};var s=n(34032)},86041(e,t){"use strict";t.isExists=function(e,t,n){const s=new Date(e,t,n);return s.getFullYear()===e&&s.getMonth()===t&&s.getDate()===n}},78048(e,t,n){"use strict";t.isFirstDayOfMonth=function(e){return 1===(0,s.toDate)(e).getDate()};var s=n(34032)},19302(e,t,n){"use strict";t.isFriday=function(e){return 5===(0,s.toDate)(e).getDay()};var s=n(34032)},45702(e,t,n){"use strict";t.isFuture=function(e){return+(0,s.toDate)(e)>Date.now()};var s=n(34032)},82082(e,t,n){"use strict";t.isLastDayOfMonth=function(e){const t=(0,i.toDate)(e);return+(0,s.endOfDay)(t)==+(0,a.endOfMonth)(t)};var s=n(75327),a=n(51411),i=n(34032)},43674(e,t,n){"use strict";t.isLeapYear=function(e){const t=(0,s.toDate)(e).getFullYear();return t%400==0||t%4==0&&t%100!=0};var s=n(34032)},69220(e,t,n){"use strict";t.isMatch=function(e,t,n){return(0,s.isValid)((0,a.parse)(e,t,new Date,n))};var s=n(89111),a=n(75798)},31937(e,t,n){"use strict";t.isMonday=function(e){return 1===(0,s.toDate)(e).getDay()};var s=n(34032)},12161(e,t,n){"use strict";t.isPast=function(e){return+(0,s.toDate)(e)<Date.now()};var s=n(34032)},17933(e,t,n){"use strict";t.isSameDay=function(e,t){return+(0,s.startOfDay)(e)==+(0,s.startOfDay)(t)};var s=n(71228)},92801(e,t,n){"use strict";t.isSameHour=function(e,t){return+(0,s.startOfHour)(e)==+(0,s.startOfHour)(t)};var s=n(15694)},29046(e,t,n){"use strict";t.isSameISOWeek=function(e,t){return(0,s.isSameWeek)(e,t,{weekStartsOn:1})};var s=n(4363)},45755(e,t,n){"use strict";t.isSameISOWeekYear=function(e,t){return+(0,s.startOfISOWeekYear)(e)==+(0,s.startOfISOWeekYear)(t)};var s=n(91046)},4111(e,t,n){"use strict";t.isSameMinute=function(e,t){return+(0,s.startOfMinute)(e)==+(0,s.startOfMinute)(t)};var s=n(99800)},65137(e,t,n){"use strict";t.isSameMonth=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t);return n.getFullYear()===a.getFullYear()&&n.getMonth()===a.getMonth()};var s=n(34032)},90795(e,t,n){"use strict";t.isSameQuarter=function(e,t){return+(0,s.startOfQuarter)(e)==+(0,s.startOfQuarter)(t)};var s=n(80066)},72451(e,t,n){"use strict";t.isSameSecond=function(e,t){return+(0,s.startOfSecond)(e)==+(0,s.startOfSecond)(t)};var s=n(42e3)},4363(e,t,n){"use strict";t.isSameWeek=function(e,t,n){return+(0,s.startOfWeek)(e,n)==+(0,s.startOfWeek)(t,n)};var s=n(36128)},81322(e,t,n){"use strict";t.isSameYear=function(e,t){const n=(0,s.toDate)(e),a=(0,s.toDate)(t);return n.getFullYear()===a.getFullYear()};var s=n(34032)},84398(e,t,n){"use strict";t.isSaturday=function(e){return 6===(0,s.toDate)(e).getDay()};var s=n(34032)},39957(e,t,n){"use strict";t.isSunday=function(e){return 0===(0,s.toDate)(e).getDay()};var s=n(34032)},45243(e,t,n){"use strict";t.isThisHour=function(e){return(0,a.isSameHour)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(92801)},48108(e,t,n){"use strict";t.isThisISOWeek=function(e){return(0,a.isSameISOWeek)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(29046)},87229(e,t,n){"use strict";t.isThisMinute=function(e){return(0,a.isSameMinute)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(4111)},22231(e,t,n){"use strict";t.isThisMonth=function(e){return(0,a.isSameMonth)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(65137)},60609(e,t,n){"use strict";t.isThisQuarter=function(e){return(0,a.isSameQuarter)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(90795)},53589(e,t,n){"use strict";t.isThisSecond=function(e){return(0,a.isSameSecond)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(72451)},72389(e,t,n){"use strict";t.isThisWeek=function(e,t){return(0,a.isSameWeek)(e,(0,s.constructNow)(e),t)};var s=n(57270),a=n(4363)},6104(e,t,n){"use strict";t.isThisYear=function(e){return(0,a.isSameYear)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(81322)},26943(e,t,n){"use strict";t.isThursday=function(e){return 4===(0,s.toDate)(e).getDay()};var s=n(34032)},21236(e,t,n){"use strict";t.isToday=function(e){return(0,a.isSameDay)(e,(0,s.constructNow)(e))};var s=n(57270),a=n(17933)},16062(e,t,n){"use strict";t.isTomorrow=function(e){return(0,i.isSameDay)(e,(0,s.addDays)((0,a.constructNow)(e),1))};var s=n(27761),a=n(57270),i=n(17933)},24758(e,t,n){"use strict";t.isTuesday=function(e){return 2===(0,s.toDate)(e).getDay()};var s=n(34032)},89111(e,t,n){"use strict";t.isValid=function(e){if(!(0,s.isDate)(e)&&"number"!=typeof e)return!1;const t=(0,a.toDate)(e);return!isNaN(Number(t))};var s=n(76253),a=n(34032)},3221(e,t,n){"use strict";t.isWednesday=function(e){return 3===(0,s.toDate)(e).getDay()};var s=n(34032)},52764(e,t,n){"use strict";t.isWeekend=function(e){const t=(0,s.toDate)(e).getDay();return 0===t||6===t};var s=n(34032)},63727(e,t,n){"use strict";t.isWithinInterval=function(e,t){const n=+(0,s.toDate)(e),[a,i]=[+(0,s.toDate)(t.start),+(0,s.toDate)(t.end)].sort(((e,t)=>e-t));return n>=a&&n<=i};var s=n(34032)},90705(e,t,n){"use strict";t.isYesterday=function(e){return(0,a.isSameDay)(e,(0,i.subDays)((0,s.constructNow)(e),1))};var s=n(57270),a=n(17933),i=n(37608)},30322(e,t,n){"use strict";t.lastDayOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),a=9+10*Math.floor(n/10);return t.setFullYear(a+1,0,0),t.setHours(0,0,0,0),t};var s=n(34032)},36109(e,t,n){"use strict";t.lastDayOfISOWeek=function(e){return(0,s.lastDayOfWeek)(e,{weekStartsOn:1})};var s=n(84774)},82748(e,t,n){"use strict";t.lastDayOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);n.setFullYear(t+1,0,4),n.setHours(0,0,0,0);const r=(0,a.startOfISOWeek)(n);return r.setDate(r.getDate()-1),r};var s=n(6253),a=n(20419),i=n(81516)},80286(e,t,n){"use strict";t.lastDayOfMonth=function(e){const t=(0,s.toDate)(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t};var s=n(34032)},31684(e,t,n){"use strict";t.lastDayOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),a=n-n%3+3;return t.setMonth(a,0),t.setHours(0,0,0,0),t};var s=n(34032)},84774(e,t,n){"use strict";t.lastDayOfWeek=function(e,t){const n=(0,a.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=6+(o<i?-7:0)-(o-i);return r.setHours(0,0,0,0),r.setDate(r.getDate()+l),r};var s=n(34032),a=n(20445)},11067(e,t,n){"use strict";t.lastDayOfYear=function(e){const t=(0,s.toDate)(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(0,0,0,0),t};var s=n(34032)},56982(e,t,n){"use strict";t.lightFormat=function(e,t){const n=(0,a.toDate)(e);if(!(0,s.isValid)(n))throw new RangeError("Invalid time value");const u=t.match(r);return u?u.map((e=>{if("''"===e)return"'";const t=e[0];if("'"===t)return function(e){const t=e.match(o);return t?t[1].replace(l,"'"):e}(e);const s=i.lightFormatters[t];if(s)return s(n,e);if(t.match(c))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return e})).join(""):""},Object.defineProperty(t,"lightFormatters",{enumerable:!0,get:function(){return i.lightFormatters}});var s=n(89111),a=n(34032),i=n(7019);const r=/(\w)\1*|''|'(''|[^'])+('|$)|./g,o=/^'([^]*?)'?$/,l=/''/g,c=/[a-zA-Z]/},804(e,t){"use strict";t.buildFormatLongFn=function(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}},75426(e,t){"use strict";t.buildLocalizeFn=function(e){return(t,n)=>{let s;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;s=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[t]}return s[e.argumentCallback?e.argumentCallback(t):t]}}},14568(e,t){"use strict";t.buildMatchFn=function(e){return(t,n={})=>{const s=n.width,a=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const r=i[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(r))return t}(o):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(r))return t}(o);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(r.length)}}}},64072(e,t){"use strict";t.buildMatchPatternFn=function(e){return(t,n={})=>{const s=t.match(e.matchPattern);if(!s)return null;const a=s[0],i=t.match(e.parsePattern);if(!i)return null;let r=e.valueCallback?e.valueCallback(i[0]):i[0];return r=n.valueCallback?n.valueCallback(r):r,{value:r,rest:t.slice(a.length)}}}},34134(e,t,n){"use strict";t.enUS=void 0;var s=n(50696),a=n(87153),i=n(67511),r=n(35415),o=n(7711);t.enUS={code:"en-US",formatDistance:s.formatDistance,formatLong:a.formatLong,formatRelative:i.formatRelative,localize:r.localize,match:o.match,options:{weekStartsOn:0,firstWeekContainsDate:1}}},50696(e,t){"use strict";t.formatDistance=void 0;const n={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"}};t.formatDistance=(e,t,s)=>{let a;const i=n[e];return a="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),s?.addSuffix?s.comparison&&s.comparison>0?"in "+a:a+" ago":a}},87153(e,t,n){"use strict";t.formatLong=void 0;var s=n(804);t.formatLong={date:(0,s.buildFormatLongFn)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,s.buildFormatLongFn)({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:(0,s.buildFormatLongFn)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})}},67511(e,t){"use strict";t.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};t.formatRelative=(e,t,s,a)=>n[e]},35415(e,t,n){"use strict";t.localize=void 0;var s=n(75426);t.localize={ordinalNumber:(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,s.buildLocalizeFn)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,s.buildLocalizeFn)({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:(0,s.buildLocalizeFn)({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:(0,s.buildLocalizeFn)({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:(0,s.buildLocalizeFn)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})}},7711(e,t,n){"use strict";t.match=void 0;var s=n(14568),a=n(64072);t.match={ordinalNumber:(0,a.buildMatchPatternFn)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,s.buildMatchFn)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,s.buildMatchFn)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,s.buildMatchFn)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})}},56171(e,t,n){"use strict";t.max=function(e){let t;return e.forEach((function(e){const n=(0,s.toDate)(e);(void 0===t||t<n||isNaN(Number(n)))&&(t=n)})),t||new Date(NaN)};var s=n(34032)},63443(e,t,n){"use strict";t.milliseconds=function({years:e,months:t,weeks:n,days:a,hours:i,minutes:r,seconds:o}){let l=0;e&&(l+=e*s.daysInYear),t&&(l+=t*(s.daysInYear/12)),n&&(l+=7*n),a&&(l+=a);let c=24*l*60*60;return i&&(c+=60*i*60),r&&(c+=60*r),o&&(c+=o),Math.trunc(1e3*c)};var s=n(69992)},61587(e,t,n){"use strict";t.millisecondsToHours=function(e){const t=e/s.millisecondsInHour;return Math.trunc(t)};var s=n(69992)},41817(e,t,n){"use strict";t.millisecondsToMinutes=function(e){const t=e/s.millisecondsInMinute;return Math.trunc(t)};var s=n(69992)},50773(e,t,n){"use strict";t.millisecondsToSeconds=function(e){const t=e/s.millisecondsInSecond;return Math.trunc(t)};var s=n(69992)},82377(e,t,n){"use strict";t.min=function(e){let t;return e.forEach((e=>{const n=(0,s.toDate)(e);(!t||t>n||isNaN(+n))&&(t=n)})),t||new Date(NaN)};var s=n(34032)},64146(e,t,n){"use strict";t.minutesToHours=function(e){const t=e/s.minutesInHour;return Math.trunc(t)};var s=n(69992)},61099(e,t,n){"use strict";t.minutesToMilliseconds=function(e){return Math.trunc(e*s.millisecondsInMinute)};var s=n(69992)},25156(e,t,n){"use strict";t.minutesToSeconds=function(e){return Math.trunc(e*s.secondsInMinute)};var s=n(69992)},70418(e,t,n){"use strict";t.monthsToQuarters=function(e){const t=e/s.monthsInQuarter;return Math.trunc(t)};var s=n(69992)},17733(e,t,n){"use strict";t.monthsToYears=function(e){const t=e/s.monthsInYear;return Math.trunc(t)};var s=n(69992)},25240(e,t,n){"use strict";t.nextDay=function(e,t){let n=t-(0,a.getDay)(e);return n<=0&&(n+=7),(0,s.addDays)(e,n)};var s=n(27761),a=n(4195)},23427(e,t,n){"use strict";t.nextFriday=function(e){return(0,s.nextDay)(e,5)};var s=n(25240)},95128(e,t,n){"use strict";t.nextMonday=function(e){return(0,s.nextDay)(e,1)};var s=n(25240)},20279(e,t,n){"use strict";t.nextSaturday=function(e){return(0,s.nextDay)(e,6)};var s=n(25240)},18520(e,t,n){"use strict";t.nextSunday=function(e){return(0,s.nextDay)(e,0)};var s=n(25240)},95346(e,t,n){"use strict";t.nextThursday=function(e){return(0,s.nextDay)(e,4)};var s=n(25240)},24693(e,t,n){"use strict";t.nextTuesday=function(e){return(0,s.nextDay)(e,2)};var s=n(25240)},1034(e,t,n){"use strict";t.nextWednesday=function(e){return(0,s.nextDay)(e,3)};var s=n(25240)},75798(e,t,n){"use strict";Object.defineProperty(t,"longFormatters",{enumerable:!0,get:function(){return o.longFormatters}}),t.parse=function(e,t,n,b){const v=(0,a.getDefaultOptions)(),y=b?.locale??v.locale??i.defaultLocale,S=b?.firstWeekContainsDate??b?.locale?.options?.firstWeekContainsDate??v.firstWeekContainsDate??v.locale?.options?.firstWeekContainsDate??1,w=b?.weekStartsOn??b?.locale?.options?.weekStartsOn??v.weekStartsOn??v.locale?.options?.weekStartsOn??0;if(""===t)return""===e?(0,r.toDate)(n):(0,s.constructFrom)(n,NaN);const x={firstWeekContainsDate:S,weekStartsOn:w,locale:y},A=[new u.DateToSystemTimezoneSetter],_=t.match(p).map((e=>{const t=e[0];return t in o.longFormatters?(0,o.longFormatters[t])(e,y.formatLong):e})).join("").match(d),k=[];for(let a of _){!b?.useAdditionalWeekYearTokens&&(0,l.isProtectedWeekYearToken)(a)&&(0,l.warnOrThrowProtectedError)(a,t,e),!b?.useAdditionalDayOfYearTokens&&(0,l.isProtectedDayOfYearToken)(a)&&(0,l.warnOrThrowProtectedError)(a,t,e);const i=a[0],r=c.parsers[i];if(r){const{incompatibleTokens:t}=r;if(Array.isArray(t)){const e=k.find((e=>t.includes(e.token)||e.token===i));if(e)throw new RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${a}\` at the same time`)}else if("*"===r.incompatibleTokens&&k.length>0)throw new RangeError(`The format string mustn't contain \`${a}\` and any other token at the same time`);k.push({token:i,fullToken:a});const o=r.run(e,a,y.match,x);if(!o)return(0,s.constructFrom)(n,NaN);A.push(o.setter),e=o.rest}else{if(i.match(f))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===a?a="'":"'"===i&&(a=a.match(h)[1].replace(m,"'")),0!==e.indexOf(a))return(0,s.constructFrom)(n,NaN);e=e.slice(a.length)}}if(e.length>0&&g.test(e))return(0,s.constructFrom)(n,NaN);const j=A.map((e=>e.priority)).sort(((e,t)=>t-e)).filter(((e,t,n)=>n.indexOf(e)===t)).map((e=>A.filter((t=>t.priority===e)).sort(((e,t)=>t.subPriority-e.subPriority)))).map((e=>e[0]));let C=(0,r.toDate)(n);if(isNaN(C.getTime()))return(0,s.constructFrom)(n,NaN);const I={};for(const e of j){if(!e.validate(C,x))return(0,s.constructFrom)(n,NaN);const t=e.set(C,I,x);Array.isArray(t)?(C=t[0],Object.assign(I,t[1])):C=t}return(0,s.constructFrom)(n,C)},Object.defineProperty(t,"parsers",{enumerable:!0,get:function(){return c.parsers}});var s=n(81516),a=n(63348),i=n(79057),r=n(34032),o=n(85879),l=n(47602),c=n(71122),u=n(60095);const d=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,h=/^'([^]*?)'?$/,m=/''/g,g=/\S/,f=/[a-zA-Z]/},56167(e,t,n){"use strict";t.Parser=void 0;var s=n(60095);t.Parser=class{run(e,t,n,a){const i=this.parse(e,t,n,a);return i?{setter:new s.ValueSetter(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}}},60095(e,t,n){"use strict";t.ValueSetter=t.Setter=t.DateToSystemTimezoneSetter=void 0;var s=n(61306),a=n(81516);class i{subPriority=0;validate(e,t){return!0}}t.Setter=i,t.ValueSetter=class extends i{constructor(e,t,n,s,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=s,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},t.DateToSystemTimezoneSetter=class extends i{priority=10;subPriority=-1;set(e,t){return t.timestampIsSet?e:(0,a.constructFrom)(e,(0,s.transpose)(e,Date))}}},18583(e,t){"use strict";t.timezonePatterns=t.numericPatterns=void 0,t.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},t.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}},71122(e,t,n){"use strict";t.parsers=void 0;var s=n(3048),a=n(45647),i=n(33476),r=n(42010),o=n(8614),l=n(50382),c=n(17211),u=n(17e3),d=n(51505),p=n(10977),h=n(85563),m=n(38250),g=n(25652),f=n(31116),b=n(76833),v=n(15402),y=n(58015),S=n(67507),w=n(35687),x=n(94697),A=n(88549),_=n(63322),k=n(45803),j=n(5068),C=n(15610),I=n(28458),T=n(85521),D=n(24782),P=n(50984),O=n(78959),L=n(85680);t.parsers={G:new s.EraParser,y:new a.YearParser,Y:new i.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new o.ExtendedYearParser,Q:new l.QuarterParser,q:new c.StandAloneQuarterParser,M:new u.MonthParser,L:new d.StandAloneMonthParser,w:new p.LocalWeekParser,I:new h.ISOWeekParser,d:new m.DateParser,D:new g.DayOfYearParser,E:new f.DayParser,e:new b.LocalDayParser,c:new v.StandAloneLocalDayParser,i:new y.ISODayParser,a:new S.AMPMParser,b:new w.AMPMMidnightParser,B:new x.DayPeriodParser,h:new A.Hour1to12Parser,H:new _.Hour0to23Parser,K:new k.Hour0To11Parser,k:new j.Hour1To24Parser,m:new C.MinuteParser,s:new I.SecondParser,S:new T.FractionOfSecondParser,X:new D.ISOTimezoneWithZParser,x:new P.ISOTimezoneParser,t:new O.TimestampSecondsParser,T:new L.TimestampMillisecondsParser}},35687(e,t,n){"use strict";t.AMPMMidnightParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=80;parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}t.AMPMMidnightParser=i},67507(e,t,n){"use strict";t.AMPMParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}t.AMPMParser=i},38250(e,t,n){"use strict";t.DateParser=void 0;var s=n(18583),a=n(56167),i=n(24871);const r=[31,28,31,30,31,30,31,31,30,31,30,31],o=[31,29,31,30,31,30,31,31,30,31,30,31];class l extends a.Parser{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return(0,i.parseNumericPattern)(s.numericPatterns.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear(),s=(0,i.isLeapYearIndex)(n),a=e.getMonth();return s?t>=1&&t<=o[a]:t>=1&&t<=r[a]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}t.DateParser=l},25652(e,t,n){"use strict";t.DayOfYearParser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return(0,i.parseNumericPattern)(s.numericPatterns.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){const n=e.getFullYear();return(0,i.isLeapYearIndex)(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}t.DayOfYearParser=r},31116(e,t,n){"use strict";t.DayParser=void 0;var s=n(40964),a=n(56167);class i extends a.Parser{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=(0,s.setDay)(e,n,a)).setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}t.DayParser=i},94697(e,t,n){"use strict";t.DayPeriodParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours((0,a.dayPeriodEnumToHours)(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]}t.DayPeriodParser=i},3048(e,t,n){"use strict";t.EraParser=void 0;var s=n(56167);class a extends s.Parser{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}t.EraParser=a},8614(e,t,n){"use strict";t.ExtendedYearParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=130;parse(e,t){return"u"===t?(0,a.parseNDigitsSigned)(4,e):(0,a.parseNDigitsSigned)(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}t.ExtendedYearParser=i},85521(e,t,n){"use strict";t.FractionOfSecondParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=30;parse(e,t){return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),(e=>Math.trunc(e*Math.pow(10,3-t.length))))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]}t.FractionOfSecondParser=i},45803(e,t,n){"use strict";t.Hour0To11Parser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=70;parse(e,t,n){switch(t){case"K":return(0,i.parseNumericPattern)(s.numericPatterns.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}t.Hour0To11Parser=r},63322(e,t,n){"use strict";t.Hour0to23Parser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=70;parse(e,t,n){switch(t){case"H":return(0,i.parseNumericPattern)(s.numericPatterns.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}t.Hour0to23Parser=r},5068(e,t,n){"use strict";t.Hour1To24Parser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=70;parse(e,t,n){switch(t){case"k":return(0,i.parseNumericPattern)(s.numericPatterns.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){const s=n<=24?n%24:n;return e.setHours(s,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}t.Hour1To24Parser=r},88549(e,t,n){"use strict";t.Hour1to12Parser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=70;parse(e,t,n){switch(t){case"h":return(0,i.parseNumericPattern)(s.numericPatterns.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){const s=e.getHours()>=12;return s&&n<12?e.setHours(n+12,0,0,0):s||12!==n?e.setHours(n,0,0,0):e.setHours(0,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}t.Hour1to12Parser=r},58015(e,t,n){"use strict";t.ISODayParser=void 0;var s=n(2892),a=n(56167),i=n(24871);class r extends a.Parser{priority=90;parse(e,t,n){const s=e=>0===e?7:e;switch(t){case"i":case"ii":return(0,i.parseNDigits)(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return(0,i.mapValue)(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s);case"iiiii":return(0,i.mapValue)(n.day(e,{width:"narrow",context:"formatting"}),s);case"iiiiii":return(0,i.mapValue)(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s);default:return(0,i.mapValue)(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),s)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return(e=(0,s.setISODay)(e,n)).setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}t.ISODayParser=r},50984(e,t,n){"use strict";t.ISOTimezoneParser=void 0;var s=n(81516),a=n(62535),i=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=10;parse(e,t){switch(t){case"x":return(0,o.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"xx":return(0,o.parseTimezonePattern)(i.timezonePatterns.basic,e);case"xxxx":return(0,o.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"xxxxx":return(0,o.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,o.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,s.constructFrom)(e,e.getTime()-(0,a.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","X"]}t.ISOTimezoneParser=l},24782(e,t,n){"use strict";t.ISOTimezoneWithZParser=void 0;var s=n(81516),a=n(62535),i=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=10;parse(e,t){switch(t){case"X":return(0,o.parseTimezonePattern)(i.timezonePatterns.basicOptionalMinutes,e);case"XX":return(0,o.parseTimezonePattern)(i.timezonePatterns.basic,e);case"XXXX":return(0,o.parseTimezonePattern)(i.timezonePatterns.basicOptionalSeconds,e);case"XXXXX":return(0,o.parseTimezonePattern)(i.timezonePatterns.extendedOptionalSeconds,e);default:return(0,o.parseTimezonePattern)(i.timezonePatterns.extended,e)}}set(e,t,n){return t.timestampIsSet?e:(0,s.constructFrom)(e,e.getTime()-(0,a.getTimezoneOffsetInMilliseconds)(e)-n)}incompatibleTokens=["t","T","x"]}t.ISOTimezoneWithZParser=l},85563(e,t,n){"use strict";t.ISOWeekParser=void 0;var s=n(7472),a=n(20419),i=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=100;parse(e,t,n){switch(t){case"I":return(0,o.parseNumericPattern)(i.numericPatterns.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return(0,a.startOfISOWeek)((0,s.setISOWeek)(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekParser=l},42010(e,t,n){"use strict";t.ISOWeekYearParser=void 0;var s=n(20419),a=n(81516),i=n(56167),r=n(24871);class o extends i.Parser{priority=130;parse(e,t){return"R"===t?(0,r.parseNDigitsSigned)(4,e):(0,r.parseNDigitsSigned)(t.length,e)}set(e,t,n){const i=(0,a.constructFrom)(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),(0,s.startOfISOWeek)(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}t.ISOWeekYearParser=o},76833(e,t,n){"use strict";t.LocalDayParser=void 0;var s=n(40964),a=n(56167),i=n(24871);class r extends a.Parser{priority=90;parse(e,t,n,s){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+s.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),a);case"eo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=(0,s.setDay)(e,n,a)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}t.LocalDayParser=r},10977(e,t,n){"use strict";t.LocalWeekParser=void 0;var s=n(10233),a=n(36128),i=n(18583),r=n(56167),o=n(24871);class l extends r.Parser{priority=100;parse(e,t,n){switch(t){case"w":return(0,o.parseNumericPattern)(i.numericPatterns.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return(0,o.parseNDigits)(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return(0,a.startOfWeek)((0,s.setWeek)(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}t.LocalWeekParser=l},33476(e,t,n){"use strict";t.LocalWeekYearParser=void 0;var s=n(9804),a=n(36128),i=n(56167),r=n(24871);class o extends i.Parser{priority=130;parse(e,t,n){const s=e=>({year:e,isTwoDigitYear:"YY"===t});switch(t){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,e),s);case"Yo":return(0,r.mapValue)(n.ordinalNumber(e,{unit:"year"}),s);default:return(0,r.mapValue)((0,r.parseNDigits)(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){const o=(0,s.getWeekYear)(e,i);if(n.isTwoDigitYear){const t=(0,r.normalizeTwoDigitYear)(n.year,o);return e.setFullYear(t,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),(0,a.startOfWeek)(e,i)}const l="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(l,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),(0,a.startOfWeek)(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}t.LocalWeekYearParser=o},15610(e,t,n){"use strict";t.MinuteParser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=60;parse(e,t,n){switch(t){case"m":return(0,i.parseNumericPattern)(s.numericPatterns.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]}t.MinuteParser=r},17e3(e,t,n){"use strict";t.MonthParser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){const a=e=>e-1;switch(t){case"M":return(0,i.mapValue)((0,i.parseNumericPattern)(s.numericPatterns.month,e),a);case"MM":return(0,i.mapValue)((0,i.parseNDigits)(2,e),a);case"Mo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),a);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}}t.MonthParser=r},50382(e,t,n){"use strict";t.QuarterParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return(0,a.parseNDigits)(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}t.QuarterParser=i},28458(e,t,n){"use strict";t.SecondParser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=50;parse(e,t,n){switch(t){case"s":return(0,i.parseNumericPattern)(s.numericPatterns.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return(0,i.parseNDigits)(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]}t.SecondParser=r},15402(e,t,n){"use strict";t.StandAloneLocalDayParser=void 0;var s=n(40964),a=n(56167),i=n(24871);class r extends a.Parser{priority=90;parse(e,t,n,s){const a=e=>{const t=7*Math.floor((e-1)/7);return(e+s.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return(0,i.mapValue)((0,i.parseNDigits)(t.length,e),a);case"co":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,a){return(e=(0,s.setDay)(e,n,a)).setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}t.StandAloneLocalDayParser=r},51505(e,t,n){"use strict";t.StandAloneMonthParser=void 0;var s=n(18583),a=n(56167),i=n(24871);class r extends a.Parser{priority=110;parse(e,t,n){const a=e=>e-1;switch(t){case"L":return(0,i.mapValue)((0,i.parseNumericPattern)(s.numericPatterns.month,e),a);case"LL":return(0,i.mapValue)((0,i.parseNDigits)(2,e),a);case"Lo":return(0,i.mapValue)(n.ordinalNumber(e,{unit:"month"}),a);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}t.StandAloneMonthParser=r},17211(e,t,n){"use strict";t.StandAloneQuarterParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return(0,a.parseNDigits)(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth(3*(n-1),1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}t.StandAloneQuarterParser=i},85680(e,t,n){"use strict";t.TimestampMillisecondsParser=void 0;var s=n(81516),a=n(56167),i=n(24871);class r extends a.Parser{priority=20;parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,s.constructFrom)(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampMillisecondsParser=r},78959(e,t,n){"use strict";t.TimestampSecondsParser=void 0;var s=n(81516),a=n(56167),i=n(24871);class r extends a.Parser{priority=40;parse(e){return(0,i.parseAnyDigitsSigned)(e)}set(e,t,n){return[(0,s.constructFrom)(e,1e3*n),{timestampIsSet:!0}]}incompatibleTokens="*"}t.TimestampSecondsParser=r},45647(e,t,n){"use strict";t.YearParser=void 0;var s=n(56167),a=n(24871);class i extends s.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){const s=e=>({year:e,isTwoDigitYear:"yy"===t});switch(t){case"y":return(0,a.mapValue)((0,a.parseNDigits)(4,e),s);case"yo":return(0,a.mapValue)(n.ordinalNumber(e,{unit:"year"}),s);default:return(0,a.mapValue)((0,a.parseNDigits)(t.length,e),s)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){const s=e.getFullYear();if(n.isTwoDigitYear){const t=(0,a.normalizeTwoDigitYear)(n.year,s);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}const i="era"in t&&1!==t.era?1-n.year:n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}}t.YearParser=i},24871(e,t,n){"use strict";t.dayPeriodEnumToHours=function(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}},t.isLeapYearIndex=function(e){return e%400==0||e%4==0&&e%100!=0},t.mapValue=function(e,t){return e?{value:t(e.value),rest:e.rest}:e},t.normalizeTwoDigitYear=function(e,t){const n=t>0,s=n?t:1-t;let a;if(s<=50)a=e||100;else{const t=s+50;a=e+100*Math.trunc(t/100)-(e>=t%100?100:0)}return n?a:1-a},t.parseAnyDigitsSigned=function(e){return i(a.numericPatterns.anyDigitsSigned,e)},t.parseNDigits=function(e,t){switch(e){case 1:return i(a.numericPatterns.singleDigit,t);case 2:return i(a.numericPatterns.twoDigits,t);case 3:return i(a.numericPatterns.threeDigits,t);case 4:return i(a.numericPatterns.fourDigits,t);default:return i(new RegExp("^\\d{1,"+e+"}"),t)}},t.parseNDigitsSigned=function(e,t){switch(e){case 1:return i(a.numericPatterns.singleDigitSigned,t);case 2:return i(a.numericPatterns.twoDigitsSigned,t);case 3:return i(a.numericPatterns.threeDigitsSigned,t);case 4:return i(a.numericPatterns.fourDigitsSigned,t);default:return i(new RegExp("^-?\\d{1,"+e+"}"),t)}},t.parseNumericPattern=i,t.parseTimezonePattern=function(e,t){const n=t.match(e);if(!n)return null;if("Z"===n[0])return{value:0,rest:t.slice(1)};const a="+"===n[1]?1:-1,i=n[2]?parseInt(n[2],10):0,r=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:a*(i*s.millisecondsInHour+r*s.millisecondsInMinute+o*s.millisecondsInSecond),rest:t.slice(n[0].length)}};var s=n(69992),a=n(18583);function i(e,t){const n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}},4793(e,t,n){"use strict";t.parseISO=function(e,t){const n=t?.additionalDigits??2,p=function(e){const t={},n=e.split(a.dateTimeDelimiter);let s;if(n.length>2)return t;if(/:/.test(n[0])?s=n[0]:(t.date=n[0],s=n[1],a.timeZoneDelimiter.test(t.date)&&(t.date=e.split(a.timeZoneDelimiter)[0],s=e.substr(t.date.length,e.length))),s){const e=a.timezone.exec(s);e?(t.time=s.replace(e[1],""),t.timezone=e[1]):t.time=s}return t}(e);let h;if(p.date){const e=function(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),s=e.match(n);if(!s)return{year:NaN,restDateString:""};const a=s[1]?parseInt(s[1]):null,i=s[2]?parseInt(s[2]):null;return{year:null===i?a:100*i,restDateString:e.slice((s[1]||s[2]).length)}}(p.date,n);h=function(e,t){if(null===t)return new Date(NaN);const n=e.match(i);if(!n)return new Date(NaN);const s=!!n[4],a=l(n[1]),r=l(n[2])-1,o=l(n[3]),c=l(n[4]),p=l(n[5])-1;if(s)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,c,p)?function(e,t,n){const s=new Date(0);s.setUTCFullYear(e,0,4);const a=7*(t-1)+n+1-(s.getUTCDay()||7);return s.setUTCDate(s.getUTCDate()+a),s}(t,c,p):new Date(NaN);{const e=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(u[t]||(d(e)?29:28))}(t,r,o)&&function(e,t){return t>=1&&t<=(d(e)?366:365)}(t,a)?(e.setUTCFullYear(t,r,Math.max(a,o)),e):new Date(NaN)}}(e.restDateString,e.year)}if(!h||isNaN(h.getTime()))return new Date(NaN);const m=h.getTime();let g,f=0;if(p.time&&(f=function(e){const t=e.match(r);if(!t)return NaN;const n=c(t[1]),a=c(t[2]),i=c(t[3]);return function(e,t,n){return 24===e?0===t&&0===n:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,a,i)?n*s.millisecondsInHour+a*s.millisecondsInMinute+1e3*i:NaN}(p.time),isNaN(f)))return new Date(NaN);if(!p.timezone){const e=new Date(m+f),t=new Date(0);return t.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),t.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),t}return g=function(e){if("Z"===e)return 0;const t=e.match(o);if(!t)return 0;const n="+"===t[1]?-1:1,a=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(a*s.millisecondsInHour+i*s.millisecondsInMinute):NaN}(p.timezone),isNaN(g)?new Date(NaN):new Date(m+f+g)};var s=n(69992);const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,r=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(e){return e?parseInt(e):1}function c(e){return e&&parseFloat(e.replace(",","."))||0}const u=[31,null,31,30,31,30,31,31,30,31,30,31];function d(e){return e%400==0||e%4==0&&e%100!=0}},62328(e,t){"use strict";t.parseJSON=function(e){const t=e.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return t?new Date(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4]-(+t[9]||0)*("-"==t[8]?-1:1),+t[5]-(+t[10]||0)*("-"==t[8]?-1:1),+t[6],+((t[7]||"0")+"00").substring(0,3))):new Date(NaN)}},67480(e,t,n){"use strict";t.previousDay=function(e,t){let n=(0,s.getDay)(e)-t;return n<=0&&(n+=7),(0,a.subDays)(e,n)};var s=n(4195),a=n(37608)},38883(e,t,n){"use strict";t.previousFriday=function(e){return(0,s.previousDay)(e,5)};var s=n(67480)},92504(e,t,n){"use strict";t.previousMonday=function(e){return(0,s.previousDay)(e,1)};var s=n(67480)},12631(e,t,n){"use strict";t.previousSaturday=function(e){return(0,s.previousDay)(e,6)};var s=n(67480)},94360(e,t,n){"use strict";t.previousSunday=function(e){return(0,s.previousDay)(e,0)};var s=n(67480)},74130(e,t,n){"use strict";t.previousThursday=function(e){return(0,s.previousDay)(e,4)};var s=n(67480)},56565(e,t,n){"use strict";t.previousTuesday=function(e){return(0,s.previousDay)(e,2)};var s=n(67480)},17834(e,t,n){"use strict";t.previousWednesday=function(e){return(0,s.previousDay)(e,3)};var s=n(67480)},54850(e,t,n){"use strict";t.quartersToMonths=function(e){return Math.trunc(e*s.monthsInQuarter)};var s=n(69992)},23335(e,t,n){"use strict";t.quartersToYears=function(e){const t=e/s.quartersInYear;return Math.trunc(t)};var s=n(69992)},76981(e,t,n){"use strict";t.roundToNearestHours=function(e,t){const n=t?.nearestTo??1;if(n<1||n>12)return(0,a.constructFrom)(e,NaN);const r=(0,i.toDate)(e),o=r.getMinutes()/60,l=r.getSeconds()/60/60,c=r.getMilliseconds()/1e3/60/60,u=r.getHours()+o+l+c,d=t?.roundingMethod??"round",p=(0,s.getRoundingMethod)(d)(u/n)*n,h=(0,a.constructFrom)(e,r);return h.setHours(p,0,0,0),h};var s=n(72071),a=n(81516),i=n(34032)},29271(e,t,n){"use strict";t.roundToNearestMinutes=function(e,t){const n=t?.nearestTo??1;if(n<1||n>30)return(0,a.constructFrom)(e,NaN);const r=(0,i.toDate)(e),o=r.getSeconds()/60,l=r.getMilliseconds()/1e3/60,c=r.getMinutes()+o+l,u=t?.roundingMethod??"round",d=(0,s.getRoundingMethod)(u)(c/n)*n,p=(0,a.constructFrom)(e,r);return p.setMinutes(d,0,0),p};var s=n(72071),a=n(81516),i=n(34032)},3906(e,t,n){"use strict";t.secondsToHours=function(e){const t=e/s.secondsInHour;return Math.trunc(t)};var s=n(69992)},2683(e,t,n){"use strict";t.secondsToMilliseconds=function(e){return e*s.millisecondsInSecond};var s=n(69992)},628(e,t,n){"use strict";t.secondsToMinutes=function(e){const t=e/s.secondsInMinute;return Math.trunc(t)};var s=n(69992)},75245(e,t,n){"use strict";t.set=function(e,t){let n=(0,i.toDate)(e);return isNaN(+n)?(0,s.constructFrom)(e,NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=(0,a.setMonth)(n,t.month)),null!=t.date&&n.setDate(t.date),null!=t.hours&&n.setHours(t.hours),null!=t.minutes&&n.setMinutes(t.minutes),null!=t.seconds&&n.setSeconds(t.seconds),null!=t.milliseconds&&n.setMilliseconds(t.milliseconds),n)};var s=n(81516),a=n(41819),i=n(34032)},91697(e,t,n){"use strict";t.setDate=function(e,t){const n=(0,s.toDate)(e);return n.setDate(t),n};var s=n(34032)},40964(e,t,n){"use strict";t.setDay=function(e,t,n){const r=(0,i.getDefaultOptions)(),o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=(0,a.toDate)(e),c=l.getDay(),u=7-o,d=t<0||t>6?t-(c+u)%7:((t%7+7)%7+u)%7-(c+u)%7;return(0,s.addDays)(l,d)};var s=n(27761),a=n(34032),i=n(20445)},52063(e,t,n){"use strict";t.setDayOfYear=function(e,t){const n=(0,s.toDate)(e);return n.setMonth(0),n.setDate(t),n};var s=n(34032)},81288(e,t,n){"use strict";t.setDefaultOptions=function(e){const t={},n=(0,s.getDefaultOptions)();for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e]);for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(void 0===e[n]?delete t[n]:t[n]=e[n]);(0,s.setDefaultOptions)(t)};var s=n(20445)},34386(e,t,n){"use strict";t.setHours=function(e,t){const n=(0,s.toDate)(e);return n.setHours(t),n};var s=n(34032)},2892(e,t,n){"use strict";t.setISODay=function(e,t){const n=(0,i.toDate)(e),r=t-(0,a.getISODay)(n);return(0,s.addDays)(n,r)};var s=n(27761),a=n(19272),i=n(34032)},7472(e,t,n){"use strict";t.setISOWeek=function(e,t){const n=(0,a.toDate)(e),i=(0,s.getISOWeek)(n)-t;return n.setDate(n.getDate()-7*i),n};var s=n(29332),a=n(34032)},93169(e,t,n){"use strict";t.setISOWeekYear=function(e,t){let n=(0,r.toDate)(e);const o=(0,a.differenceInCalendarDays)(n,(0,i.startOfISOWeekYear)(n)),l=(0,s.constructFrom)(e,0);return l.setFullYear(t,0,4),l.setHours(0,0,0,0),n=(0,i.startOfISOWeekYear)(l),n.setDate(n.getDate()+o),n};var s=n(81516),a=n(88676),i=n(91046),r=n(34032)},65931(e,t,n){"use strict";t.setMilliseconds=function(e,t){const n=(0,s.toDate)(e);return n.setMilliseconds(t),n};var s=n(34032)},28772(e,t,n){"use strict";t.setMinutes=function(e,t){const n=(0,s.toDate)(e);return n.setMinutes(t),n};var s=n(34032)},41819(e,t,n){"use strict";t.setMonth=function(e,t){const n=(0,i.toDate)(e),r=n.getFullYear(),o=n.getDate(),l=(0,s.constructFrom)(e,0);l.setFullYear(r,t,15),l.setHours(0,0,0,0);const c=(0,a.getDaysInMonth)(l);return n.setMonth(t,Math.min(o,c)),n};var s=n(81516),a=n(46087),i=n(34032)},80093(e,t,n){"use strict";t.setQuarter=function(e,t){const n=(0,a.toDate)(e),i=t-(Math.trunc(n.getMonth()/3)+1);return(0,s.setMonth)(n,n.getMonth()+3*i)};var s=n(41819),a=n(34032)},80356(e,t,n){"use strict";t.setSeconds=function(e,t){const n=(0,s.toDate)(e);return n.setSeconds(t),n};var s=n(34032)},10233(e,t,n){"use strict";t.setWeek=function(e,t,n){const i=(0,a.toDate)(e),r=(0,s.getWeek)(i,n)-t;return i.setDate(i.getDate()-7*r),i};var s=n(63613),a=n(34032)},9504(e,t,n){"use strict";t.setWeekYear=function(e,t,n){const l=(0,o.getDefaultOptions)(),c=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1;let u=(0,r.toDate)(e);const d=(0,a.differenceInCalendarDays)(u,(0,i.startOfWeekYear)(u,n)),p=(0,s.constructFrom)(e,0);return p.setFullYear(t,0,c),p.setHours(0,0,0,0),u=(0,i.startOfWeekYear)(p,n),u.setDate(u.getDate()+d),u};var s=n(81516),a=n(88676),i=n(34241),r=n(34032),o=n(20445)},46908(e,t,n){"use strict";t.setYear=function(e,t){const n=(0,a.toDate)(e);return isNaN(+n)?(0,s.constructFrom)(e,NaN):(n.setFullYear(t),n)};var s=n(81516),a=n(34032)},71228(e,t,n){"use strict";t.startOfDay=function(e){const t=(0,s.toDate)(e);return t.setHours(0,0,0,0),t};var s=n(34032)},96376(e,t,n){"use strict";t.startOfDecade=function(e){const t=(0,s.toDate)(e),n=t.getFullYear(),a=10*Math.floor(n/10);return t.setFullYear(a,0,1),t.setHours(0,0,0,0),t};var s=n(34032)},15694(e,t,n){"use strict";t.startOfHour=function(e){const t=(0,s.toDate)(e);return t.setMinutes(0,0,0),t};var s=n(34032)},20419(e,t,n){"use strict";t.startOfISOWeek=function(e){return(0,s.startOfWeek)(e,{weekStartsOn:1})};var s=n(36128)},91046(e,t,n){"use strict";t.startOfISOWeekYear=function(e){const t=(0,s.getISOWeekYear)(e),n=(0,i.constructFrom)(e,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),(0,a.startOfISOWeek)(n)};var s=n(6253),a=n(20419),i=n(81516)},99800(e,t,n){"use strict";t.startOfMinute=function(e){const t=(0,s.toDate)(e);return t.setSeconds(0,0),t};var s=n(34032)},39852(e,t,n){"use strict";t.startOfMonth=function(e){const t=(0,s.toDate)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var s=n(34032)},80066(e,t,n){"use strict";t.startOfQuarter=function(e){const t=(0,s.toDate)(e),n=t.getMonth(),a=n-n%3;return t.setMonth(a,1),t.setHours(0,0,0,0),t};var s=n(34032)},42e3(e,t,n){"use strict";t.startOfSecond=function(e){const t=(0,s.toDate)(e);return t.setMilliseconds(0),t};var s=n(34032)},24643(e,t,n){"use strict";t.startOfToday=function(){return(0,s.startOfDay)(Date.now())};var s=n(71228)},58667(e,t){"use strict";t.startOfTomorrow=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),a=new Date(0);return a.setFullYear(t,n,s+1),a.setHours(0,0,0,0),a}},36128(e,t,n){"use strict";t.startOfWeek=function(e,t){const n=(0,a.getDefaultOptions)(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,r=(0,s.toDate)(e),o=r.getDay(),l=(o<i?7:0)+o-i;return r.setDate(r.getDate()-l),r.setHours(0,0,0,0),r};var s=n(34032),a=n(20445)},34241(e,t,n){"use strict";t.startOfWeekYear=function(e,t){const n=(0,r.getDefaultOptions)(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,l=(0,a.getWeekYear)(e,t),c=(0,s.constructFrom)(e,0);return c.setFullYear(l,0,o),c.setHours(0,0,0,0),(0,i.startOfWeek)(c,t)};var s=n(81516),a=n(9804),i=n(36128),r=n(20445)},14745(e,t,n){"use strict";t.startOfYear=function(e){const t=(0,s.toDate)(e),n=(0,a.constructFrom)(e,0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n};var s=n(34032),a=n(81516)},8458(e,t){"use strict";t.startOfYesterday=function(){const e=new Date,t=e.getFullYear(),n=e.getMonth(),s=e.getDate(),a=new Date(0);return a.setFullYear(t,n,s-1),a.setHours(0,0,0,0),a}},58831(e,t,n){"use strict";t.sub=function(e,t){const{years:n=0,months:r=0,weeks:o=0,days:l=0,hours:c=0,minutes:u=0,seconds:d=0}=t,p=(0,a.subMonths)(e,r+12*n),h=(0,s.subDays)(p,l+7*o),m=1e3*(d+60*(u+60*c));return(0,i.constructFrom)(e,h.getTime()-m)};var s=n(37608),a=n(85380),i=n(81516)},90106(e,t,n){"use strict";t.subBusinessDays=function(e,t){return(0,s.addBusinessDays)(e,-t)};var s=n(38583)},37608(e,t,n){"use strict";t.subDays=function(e,t){return(0,s.addDays)(e,-t)};var s=n(27761)},76724(e,t,n){"use strict";t.subHours=function(e,t){return(0,s.addHours)(e,-t)};var s=n(83359)},34830(e,t,n){"use strict";t.subISOWeekYears=function(e,t){return(0,s.addISOWeekYears)(e,-t)};var s=n(21839)},8857(e,t,n){"use strict";t.subMilliseconds=function(e,t){return(0,s.addMilliseconds)(e,-t)};var s=n(40276)},12170(e,t,n){"use strict";t.subMinutes=function(e,t){return(0,s.addMinutes)(e,-t)};var s=n(44461)},85380(e,t,n){"use strict";t.subMonths=function(e,t){return(0,s.addMonths)(e,-t)};var s=n(55353)},18590(e,t,n){"use strict";t.subQuarters=function(e,t){return(0,s.addQuarters)(e,-t)};var s=n(88823)},74982(e,t,n){"use strict";t.subSeconds=function(e,t){return(0,s.addSeconds)(e,-t)};var s=n(2577)},25278(e,t,n){"use strict";t.subWeeks=function(e,t){return(0,s.addWeeks)(e,-t)};var s=n(4481)},857(e,t,n){"use strict";t.subYears=function(e,t){return(0,s.addYears)(e,-t)};var s=n(60274)},34032(e,t){"use strict";t.toDate=function(e){const t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new e.constructor(+e):"number"==typeof e||"[object Number]"===t||"string"==typeof e||"[object String]"===t?new Date(e):new Date(NaN)}},61306(e,t,n){"use strict";t.transpose=function(e,t){const n=t instanceof Date?(0,s.constructFrom)(t,0):new t(0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n};var s=n(81516)},49914(e,t,n){"use strict";t.weeksToDays=function(e){return Math.trunc(e*s.daysInWeek)};var s=n(69992)},94429(e,t,n){"use strict";t.yearsToDays=function(e){return Math.trunc(e*s.daysInYear)};var s=n(69992)},69181(e,t,n){"use strict";t.yearsToMonths=function(e){return Math.trunc(e*s.monthsInYear)};var s=n(69992)},8627(e,t,n){"use strict";t.yearsToQuarters=function(e){return Math.trunc(e*s.quartersInYear)};var s=n(69992)},22551(e,t,n){"use strict";var s=n(96540),a=n(69982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var u=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},m={};function g(e,t,n,s,a,i,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=r}var f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){f[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function y(e,t,n,s){var a=f.hasOwnProperty(t)?f[t]:null;(null!==a?0!==a.type:s||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,s){if(null==t||function(e,t,n,s){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!s&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,s))return!0;if(s)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,s)&&(n=null),s||null===a?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,s=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,v);f[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,v);f[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,v);f[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),x=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var L=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function E(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var R,U=Object.assign;function N(e){if(void 0===R)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var s=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){s=e}e.call(t.prototype)}else{try{throw Error()}catch(e){s=e}e()}}catch(t){if(t&&s&&"string"==typeof t.stack){for(var a=t.stack.split("\n"),i=s.stack.split("\n"),r=a.length-1,o=i.length-1;1<=r&&0<=o&&a[r]!==i[o];)o--;for(;1<=r&&0<=o;r--,o--)if(a[r]!==i[o]){if(1!==r||1!==o)do{if(r--,0>--o||a[r]!==i[o]){var l="\n"+a[r].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=r&&0<=o);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?N(e):""}function Y(e){switch(e.tag){case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case A:return"Fragment";case x:return"Portal";case k:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function z(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){s=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(e){s=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=$(e)?e.checked?"true":"false":e.value),(e=s)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function K(e,t){var n=t.checked;return U({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Q(e,t){var n=null==t.defaultValue?"":t.defaultValue,s=null!=t.checked?t.checked:t.defaultChecked;n=W(null!=t.value?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&y(e,"checked",t,!1)}function X(e,t){J(e,t);var n=W(t.value),s=t.type;if(null!=n)"number"===s?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===s||"reset"===s)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!("submit"!==s&&"reset"!==s||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,s){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+W(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(s&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return U({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:W(n)}}function ie(e,t){var n=W(t.value),s=W(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=s&&(e.defaultValue=""+s)}function re(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function oe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?oe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,s){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function ge(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var s=0===n.indexOf("--"),a=ge(n,t[n],s);"float"===n&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}Object.keys(he).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var be=U({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(be[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function ye(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Se=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,Ae=null,_e=null;function ke(e){if(e=ya(e)){if("function"!=typeof xe)throw Error(i(280));var t=e.stateNode;t&&(t=wa(t),xe(e.stateNode,e.type,t))}}function je(e){Ae?_e?_e.push(e):_e=[e]:Ae=e}function Ce(){if(Ae){var e=Ae,t=_e;if(_e=Ae=null,ke(e),t)for(e=0;e<t.length;e++)ke(t[e])}}function Ie(e,t){return e(t)}function Te(){}var De=!1;function Pe(e,t,n){if(De)return e(t,n);De=!0;try{return Ie(e,t,n)}finally{De=!1,(null!==Ae||null!==_e)&&(Te(),Ce())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var s=wa(n);if(null===s)return null;n=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(s=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!s;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Le=!1;if(u)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){Le=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ue){Le=!1}function Ee(e,t,n,s,a,i,r,o,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Re=!1,Ue=null,Ne=!1,Fe=null,Be={onError:function(e){Re=!0,Ue=e}};function Ye(e,t,n,s,a,i,r,o,l){Re=!1,Ue=null,Ee.apply(Be,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function We(e){if(He(e)!==e)throw Error(i(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,s=t;;){var a=n.return;if(null===a)break;var r=a.alternate;if(null===r){if(null!==(s=a.return)){n=s;continue}break}if(a.child===r.child){for(r=a.child;r;){if(r===n)return We(a),e;if(r===s)return We(a),t;r=r.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=r;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,s=r;break}if(l===s){o=!0,s=a,n=r;break}l=l.sibling}if(!o){for(l=r.child;l;){if(l===n){o=!0,n=r,s=a;break}if(l===s){o=!0,s=r,n=a;break}l=l.sibling}if(!o)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?ze(e):null}function ze(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=ze(e);if(null!==t)return t;e=e.sibling}return null}var qe=a.unstable_scheduleCallback,Ge=a.unstable_cancelCallback,Ke=a.unstable_shouldYield,Qe=a.unstable_requestPaint,Je=a.unstable_now,Xe=a.unstable_getCurrentPriorityLevel,Ze=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,st=a.unstable_IdlePriority,at=null,it=null,rt=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(ot(e)/lt|0)|0},ot=Math.log,lt=Math.LN2,ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var s=0,a=e.suspendedLanes,i=e.pingedLanes,r=268435455&n;if(0!==r){var o=r&~a;0!==o?s=dt(o):0!=(i&=r)&&(s=dt(i))}else 0!=(r=n&~a)?s=dt(r):0!==i&&(s=dt(i));if(0===s)return 0;if(0!==t&&t!==s&&!(t&a)&&((a=s&-s)>=(i=t&-t)||16===a&&4194240&i))return t;if(4&s&&(s|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=s;0<t;)a=1<<(n=31-rt(t)),s|=e[n],t&=~a;return s}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function gt(){var e=ct;return!(4194240&(ct<<=1))&&(ct=64),e}function ft(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-rt(n),a=1<<s;a&t|e[s]&t&&(e[s]|=t),n&=~a}}var yt=0;function St(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,xt,At,_t,kt,jt=!1,Ct=[],It=null,Tt=null,Dt=null,Pt=new Map,Ot=new Map,Lt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Et(e,t){switch(e){case"focusin":case"focusout":It=null;break;case"dragenter":case"dragleave":Tt=null;break;case"mouseover":case"mouseout":Dt=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Rt(e,t,n,s,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:i,targetContainers:[a]},null!==t&&null!==(t=ya(t))&&xt(t),e):(e.eventSystemFlags|=s,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Ut(e){var t=va(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,(function(){At(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ya(n))&&xt(t),e.blockedOn=n,!1;var s=new(n=e.nativeEvent).constructor(n.type,n);Se=s,n.target.dispatchEvent(s),Se=null,t.shift()}return!0}function Ft(e,t,n){Nt(e)&&n.delete(t)}function Bt(){jt=!1,null!==It&&Nt(It)&&(It=null),null!==Tt&&Nt(Tt)&&(Tt=null),null!==Dt&&Nt(Dt)&&(Dt=null),Pt.forEach(Ft),Ot.forEach(Ft)}function Yt(e,t){e.blockedOn===t&&(e.blockedOn=null,jt||(jt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Bt)))}function Ht(e){function t(t){return Yt(t,e)}if(0<Ct.length){Yt(Ct[0],e);for(var n=1;n<Ct.length;n++){var s=Ct[n];s.blockedOn===e&&(s.blockedOn=null)}}for(null!==It&&Yt(It,e),null!==Tt&&Yt(Tt,e),null!==Dt&&Yt(Dt,e),Pt.forEach(t),Ot.forEach(t),n=0;n<Lt.length;n++)(s=Lt[n]).blockedOn===e&&(s.blockedOn=null);for(;0<Lt.length&&null===(n=Lt[0]).blockedOn;)Ut(n),null===n.blockedOn&&Lt.shift()}var Vt=S.ReactCurrentBatchConfig,Wt=!0;function $t(e,t,n,s){var a=yt,i=Vt.transition;Vt.transition=null;try{yt=1,qt(e,t,n,s)}finally{yt=a,Vt.transition=i}}function zt(e,t,n,s){var a=yt,i=Vt.transition;Vt.transition=null;try{yt=4,qt(e,t,n,s)}finally{yt=a,Vt.transition=i}}function qt(e,t,n,s){if(Wt){var a=Kt(e,t,n,s);if(null===a)Ws(e,t,s,Gt,n),Et(e,s);else if(function(e,t,n,s,a){switch(t){case"focusin":return It=Rt(It,e,t,n,s,a),!0;case"dragenter":return Tt=Rt(Tt,e,t,n,s,a),!0;case"mouseover":return Dt=Rt(Dt,e,t,n,s,a),!0;case"pointerover":var i=a.pointerId;return Pt.set(i,Rt(Pt.get(i)||null,e,t,n,s,a)),!0;case"gotpointercapture":return i=a.pointerId,Ot.set(i,Rt(Ot.get(i)||null,e,t,n,s,a)),!0}return!1}(a,e,t,n,s))s.stopPropagation();else if(Et(e,s),4&t&&-1<Mt.indexOf(e)){for(;null!==a;){var i=ya(a);if(null!==i&&wt(i),null===(i=Kt(e,t,n,s))&&Ws(e,t,s,Gt,n),i===a)break;a=i}null!==a&&s.stopPropagation()}else Ws(e,t,s,null,n)}}var Gt=null;function Kt(e,t,n,s){if(Gt=null,null!==(e=va(e=we(s))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Xe()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case st:return 536870912;default:return 16}default:return 16}}var Jt=null,Xt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Xt,s=n.length,a="value"in Jt?Jt.value:Jt.textContent,i=a.length;for(e=0;e<s&&n[e]===a[e];e++);var r=s-e;for(t=1;t<=r&&n[s-t]===a[i-t];t++);return Zt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function sn(){return!1}function an(e){function t(t,n,s,a,i){for(var r in this._reactName=t,this._targetInst=s,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(r)&&(t=e[r],this[r]=t?t(a):a[r]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:sn,this.isPropagationStopped=sn,this}return U(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var rn,on,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=U({},cn,{view:0,detail:0}),pn=an(dn),hn=U({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(rn=e.screenX-ln.screenX,on=e.screenY-ln.screenY):on=rn=0,ln=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:on}}),mn=an(hn),gn=an(U({},hn,{dataTransfer:0})),fn=an(U({},dn,{relatedTarget:0})),bn=an(U({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=U({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=an(vn),Sn=an(U({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},An={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=An[e])&&!!t[e]}function kn(){return _n}var jn=U({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(jn),In=an(U({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=an(U({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Dn=an(U({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=U({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(Pn),Ln=[9,13,27,32],Mn=u&&"CompositionEvent"in window,En=null;u&&"documentMode"in document&&(En=document.documentMode);var Rn=u&&"TextEvent"in window&&!En,Un=u&&(!Mn||En&&8<En&&11>=En),Nn=String.fromCharCode(32),Fn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Ln.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1,Vn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function $n(e,t,n,s){je(s),0<(t=zs(t,"onChange")).length&&(n=new un("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var zn=null,qn=null;function Gn(e){Ns(e,0)}function Kn(e){if(q(Sa(e)))return e}function Qn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Xn;if(u){var Zn="oninput"in document;if(!Zn){var es=document.createElement("div");es.setAttribute("oninput","return;"),Zn="function"==typeof es.oninput}Xn=Zn}else Xn=!1;Jn=Xn&&(!document.documentMode||9<document.documentMode)}function ts(){zn&&(zn.detachEvent("onpropertychange",ns),qn=zn=null)}function ns(e){if("value"===e.propertyName&&Kn(qn)){var t=[];$n(t,qn,e,we(e)),Pe(Gn,t)}}function ss(e,t,n){"focusin"===e?(ts(),qn=n,(zn=t).attachEvent("onpropertychange",ns)):"focusout"===e&&ts()}function as(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn(qn)}function is(e,t){if("click"===e)return Kn(t)}function rs(e,t){if("input"===e||"change"===e)return Kn(t)}var os="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ls(e,t){if(os(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!d.call(t,a)||!os(e[a],t[a]))return!1}return!0}function cs(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function us(e,t){var n,s=cs(e);for(e=0;s;){if(3===s.nodeType){if(n=e+s.textContent.length,e<=t&&n>=t)return{node:s,offset:t-e};e=n}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=cs(s)}}function ds(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ds(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ps(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function hs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ms(e){var t=ps(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ds(n.ownerDocument.documentElement,n)){if(null!==s&&hs(n))if(t=s.start,void 0===(e=s.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(s.start,a);s=void 0===s.end?i:Math.min(s.end,a),!e.extend&&i>s&&(a=s,s=i,i=a),a=us(n,i);var r=us(n,s);a&&r&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>s?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var gs=u&&"documentMode"in document&&11>=document.documentMode,fs=null,bs=null,vs=null,ys=!1;function Ss(e,t,n){var s=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ys||null==fs||fs!==G(s)||(s="selectionStart"in(s=fs)&&hs(s)?{start:s.selectionStart,end:s.selectionEnd}:{anchorNode:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset},vs&&ls(vs,s)||(vs=s,0<(s=zs(bs,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=fs)))}function ws(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xs={animationend:ws("Animation","AnimationEnd"),animationiteration:ws("Animation","AnimationIteration"),animationstart:ws("Animation","AnimationStart"),transitionend:ws("Transition","TransitionEnd")},As={},_s={};function ks(e){if(As[e])return As[e];if(!xs[e])return e;var t,n=xs[e];for(t in n)if(n.hasOwnProperty(t)&&t in _s)return As[e]=n[t];return e}u&&(_s=document.createElement("div").style,"AnimationEvent"in window||(delete xs.animationend.animation,delete xs.animationiteration.animation,delete xs.animationstart.animation),"TransitionEvent"in window||delete xs.transitionend.transition);var js=ks("animationend"),Cs=ks("animationiteration"),Is=ks("animationstart"),Ts=ks("transitionend"),Ds=new Map,Ps="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Os(e,t){Ds.set(e,t),l(t,[e])}for(var Ls=0;Ls<Ps.length;Ls++){var Ms=Ps[Ls];Os(Ms.toLowerCase(),"on"+(Ms[0].toUpperCase()+Ms.slice(1)))}Os(js,"onAnimationEnd"),Os(Cs,"onAnimationIteration"),Os(Is,"onAnimationStart"),Os("dblclick","onDoubleClick"),Os("focusin","onFocus"),Os("focusout","onBlur"),Os(Ts,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rs=new Set("cancel close invalid load scroll toggle".split(" ").concat(Es));function Us(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,s,a,r,o,l,c){if(Ye.apply(this,arguments),Re){if(!Re)throw Error(i(198));var u=Ue;Re=!1,Ue=null,Ne||(Ne=!0,Fe=u)}}(s,t,void 0,e),e.currentTarget=null}function Ns(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var i=void 0;if(t)for(var r=s.length-1;0<=r;r--){var o=s[r],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==i&&a.isPropagationStopped())break e;Us(a,o,c),i=l}else for(r=0;r<s.length;r++){if(l=(o=s[r]).instance,c=o.currentTarget,o=o.listener,l!==i&&a.isPropagationStopped())break e;Us(a,o,c),i=l}}}if(Ne)throw e=Fe,Ne=!1,Fe=null,e}function Fs(e,t){var n=t[ga];void 0===n&&(n=t[ga]=new Set);var s=e+"__bubble";n.has(s)||(Vs(t,e,2,!1),n.add(s))}function Bs(e,t,n){var s=0;t&&(s|=4),Vs(n,e,s,t)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function Hs(e){if(!e[Ys]){e[Ys]=!0,r.forEach((function(t){"selectionchange"!==t&&(Rs.has(t)||Bs(t,!1,e),Bs(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ys]||(t[Ys]=!0,Bs("selectionchange",!1,t))}}function Vs(e,t,n,s){switch(Qt(t)){case 1:var a=$t;break;case 4:a=zt;break;default:a=qt}n=a.bind(null,t,n,e),a=void 0,!Le||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),s?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Ws(e,t,n,s,a){var i=s;if(!(1&t||2&t||null===s))e:for(;;){if(null===s)return;var r=s.tag;if(3===r||4===r){var o=s.stateNode.containerInfo;if(o===a||8===o.nodeType&&o.parentNode===a)break;if(4===r)for(r=s.return;null!==r;){var l=r.tag;if((3===l||4===l)&&((l=r.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;r=r.return}for(;null!==o;){if(null===(r=va(o)))return;if(5===(l=r.tag)||6===l){s=i=r;continue e}o=o.parentNode}}s=s.return}Pe((function(){var s=i,a=we(n),r=[];e:{var o=Ds.get(e);if(void 0!==o){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=fn;break;case"focusout":c="blur",l=fn;break;case"beforeblur":case"afterblur":l=fn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Tn;break;case js:case Cs:case Is:l=bn;break;case Ts:l=Dn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=In}var u=!!(4&t),d=!u&&"scroll"===e,p=u?null!==o?o+"Capture":null:o;u=[];for(var h,m=s;null!==m;){var g=(h=m).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==p&&null!=(g=Oe(m,p))&&u.push($s(m,g,h))),d)break;m=m.return}0<u.length&&(o=new l(o,c,null,n,a),r.push({event:o,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Se||!(c=n.relatedTarget||n.fromElement)||!va(c)&&!c[ma])&&(l||o)&&(o=a.window===a?a:(o=a.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=s,null!==(c=(c=n.relatedTarget||n.toElement)?va(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=s),l!==c)){if(u=mn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=In,g="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?o:Sa(l),h=null==c?o:Sa(c),(o=new u(g,m+"leave",l,n,a)).target=d,o.relatedTarget=h,g=null,va(a)===s&&((u=new u(p,m+"enter",c,n,a)).target=h,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(p=c,m=0,h=u=l;h;h=qs(h))m++;for(h=0,g=p;g;g=qs(g))h++;for(;0<m-h;)u=qs(u),m--;for(;0<h-m;)p=qs(p),h--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qs(u),p=qs(p)}u=null}else u=null;null!==l&&Gs(r,o,l,u,!1),null!==c&&null!==d&&Gs(r,d,c,u,!0)}if("select"===(l=(o=s?Sa(s):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var f=Qn;else if(Wn(o))if(Jn)f=rs;else{f=as;var b=ss}else(l=o.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(f=is);switch(f&&(f=f(e,s))?$n(r,f,n,a):(b&&b(e,o,s),"focusout"===e&&(b=o._wrapperState)&&b.controlled&&"number"===o.type&&ee(o,"number",o.value)),b=s?Sa(s):window,e){case"focusin":(Wn(b)||"true"===b.contentEditable)&&(fs=b,bs=s,vs=null);break;case"focusout":vs=bs=fs=null;break;case"mousedown":ys=!0;break;case"contextmenu":case"mouseup":case"dragend":ys=!1,Ss(r,n,a);break;case"selectionchange":if(gs)break;case"keydown":case"keyup":Ss(r,n,a)}var v;if(Mn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Hn?Bn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Un&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Hn&&(v=en()):(Xt="value"in(Jt=a)?Jt.value:Jt.textContent,Hn=!0)),0<(b=zs(s,y)).length&&(y=new Sn(y,e,null,n,a),r.push({event:y,listeners:b}),(v||null!==(v=Yn(n)))&&(y.data=v))),(v=Rn?function(e,t){switch(e){case"compositionend":return Yn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Mn&&Bn(e,t)?(e=en(),Zt=Xt=Jt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(s=zs(s,"onBeforeInput")).length&&(a=new Sn("onBeforeInput","beforeinput",null,n,a),r.push({event:a,listeners:s}),a.data=v)}Ns(r,t)}))}function $s(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zs(e,t){for(var n=t+"Capture",s=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Oe(e,n))&&s.unshift($s(e,i,a)),null!=(i=Oe(e,t))&&s.push($s(e,i,a))),e=e.return}return s}function qs(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gs(e,t,n,s,a){for(var i=t._reactName,r=[];null!==n&&n!==s;){var o=n,l=o.alternate,c=o.stateNode;if(null!==l&&l===s)break;5===o.tag&&null!==c&&(o=c,a?null!=(l=Oe(n,i))&&r.unshift($s(n,l,o)):a||null!=(l=Oe(n,i))&&r.push($s(n,l,o))),n=n.return}0!==r.length&&e.push({event:t,listeners:r})}var Ks=/\r\n?/g,Qs=/\u0000|\uFFFD/g;function Js(e){return("string"==typeof e?e:""+e).replace(Ks,"\n").replace(Qs,"")}function Xs(e,t,n){if(t=Js(t),Js(e)!==t&&n)throw Error(i(425))}function Zs(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var sa="function"==typeof setTimeout?setTimeout:void 0,aa="function"==typeof clearTimeout?clearTimeout:void 0,ia="function"==typeof Promise?Promise:void 0,ra="function"==typeof queueMicrotask?queueMicrotask:void 0!==ia?function(e){return ia.resolve(null).then(e).catch(oa)}:sa;function oa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===s)return e.removeChild(a),void Ht(t);s--}else"$"!==n&&"$?"!==n&&"$!"!==n||s++;n=a}while(n);Ht(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,ha="__reactProps$"+da,ma="__reactContainer$"+da,ga="__reactEvents$"+da,fa="__reactListeners$"+da,ba="__reactHandles$"+da;function va(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function ya(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Sa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function wa(e){return e[ha]||null}var xa=[],Aa=-1;function _a(e){return{current:e}}function ka(e){0>Aa||(e.current=xa[Aa],xa[Aa]=null,Aa--)}function ja(e,t){Aa++,xa[Aa]=e.current,e.current=t}var Ca={},Ia=_a(Ca),Ta=_a(!1),Da=Ca;function Pa(e,t){var n=e.type.contextTypes;if(!n)return Ca;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oa(e){return null!=e.childContextTypes}function La(){ka(Ta),ka(Ia)}function Ma(e,t,n){if(Ia.current!==Ca)throw Error(i(168));ja(Ia,t),ja(Ta,n)}function Ea(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,"function"!=typeof s.getChildContext)return n;for(var a in s=s.getChildContext())if(!(a in t))throw Error(i(108,V(e)||"Unknown",a));return U({},n,s)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Da=Ia.current,ja(Ia,e),ja(Ta,Ta.current),!0}function Ua(e,t,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=Ea(e,t,Da),s.__reactInternalMemoizedMergedChildContext=e,ka(Ta),ka(Ia),ja(Ia,e)):ka(Ta),ja(Ta,n)}var Na=null,Fa=!1,Ba=!1;function Ya(e){null===Na?Na=[e]:Na.push(e)}function Ha(){if(!Ba&&null!==Na){Ba=!0;var e=0,t=yt;try{var n=Na;for(yt=1;e<n.length;e++){var s=n[e];do{s=s(!0)}while(null!==s)}Na=null,Fa=!1}catch(t){throw null!==Na&&(Na=Na.slice(e+1)),qe(Ze,Ha),t}finally{yt=t,Ba=!1}}return null}var Va=[],Wa=0,$a=null,za=0,qa=[],Ga=0,Ka=null,Qa=1,Ja="";function Xa(e,t){Va[Wa++]=za,Va[Wa++]=$a,$a=e,za=t}function Za(e,t,n){qa[Ga++]=Qa,qa[Ga++]=Ja,qa[Ga++]=Ka,Ka=e;var s=Qa;e=Ja;var a=32-rt(s)-1;s&=~(1<<a),n+=1;var i=32-rt(t)+a;if(30<i){var r=a-a%5;i=(s&(1<<r)-1).toString(32),s>>=r,a-=r,Qa=1<<32-rt(t)+a|n<<a|s,Ja=i+e}else Qa=1<<i|n<<a|s,Ja=e}function ei(e){null!==e.return&&(Xa(e,1),Za(e,1,0))}function ti(e){for(;e===$a;)$a=Va[--Wa],Va[Wa]=null,za=Va[--Wa],Va[Wa]=null;for(;e===Ka;)Ka=qa[--Ga],qa[Ga]=null,Ja=qa[--Ga],qa[Ga]=null,Qa=qa[--Ga],qa[Ga]=null}var ni=null,si=null,ai=!1,ii=null;function ri(e,t){var n=Dc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function oi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,si=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,si=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ka?{id:Qa,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Dc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,si=null,!0);default:return!1}}function li(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ai){var t=si;if(t){var n=t;if(!oi(e,t)){if(li(e))throw Error(i(418));t=ca(n.nextSibling);var s=ni;t&&oi(e,t)?ri(s,n):(e.flags=-4097&e.flags|2,ai=!1,ni=e)}}else{if(li(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,ni=e}}}function ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ai)return ui(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=si)){if(li(e))throw pi(),Error(i(418));for(;t;)ri(e,t),t=ca(t.nextSibling)}if(ui(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){si=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}si=null}}else si=ni?ca(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=si;e;)e=ca(e.nextSibling)}function hi(){si=ni=null,ai=!1}function mi(e){null===ii?ii=[e]:ii.push(e)}var gi=S.ReactCurrentBatchConfig;function fi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,r=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===r?t.ref:(t=function(e){var t=a.refs;null===e?delete t[r]:t[r]=e},t._stringRef=r,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function bi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function vi(e){return(0,e._init)(e._payload)}function yi(e){function t(t,n){if(e){var s=t.deletions;null===s?(t.deletions=[n],t.flags|=16):s.push(n)}}function n(n,s){if(!e)return null;for(;null!==s;)t(n,s),s=s.sibling;return null}function s(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Oc(e,t)).index=0,e.sibling=null,e}function r(t,n,s){return t.index=s,e?null!==(s=t.alternate)?(s=s.index)<n?(t.flags|=2,n):s:(t.flags|=2,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,s){return null===t||6!==t.tag?((t=Rc(n,e.mode,s)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,s){var i=n.type;return i===A?d(e,t,n.props.children,s,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===O&&vi(i)===t.type)?((s=a(t,n.props)).ref=fi(e,t,n),s.return=e,s):((s=Lc(n.type,n.key,n.props,null,e.mode,s)).ref=fi(e,t,n),s.return=e,s)}function u(e,t,n,s){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Uc(n,e.mode,s)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,s,i){return null===t||7!==t.tag?((t=Mc(n,e.mode,s,i)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Rc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Lc(t.type,t.key,t.props,null,e.mode,n)).ref=fi(e,null,t),n.return=e,n;case x:return(t=Uc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||E(t))return(t=Mc(t,e.mode,n,null)).return=e,t;bi(e,t)}return null}function h(e,t,n,s){var a=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==a?null:l(e,t,""+n,s);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,s):null;case x:return n.key===a?u(e,t,n,s):null;case O:return h(e,t,(a=n._init)(n._payload),s)}if(te(n)||E(n))return null!==a?null:d(e,t,n,s,null);bi(e,n)}return null}function m(e,t,n,s,a){if("string"==typeof s&&""!==s||"number"==typeof s)return l(t,e=e.get(n)||null,""+s,a);if("object"==typeof s&&null!==s){switch(s.$$typeof){case w:return c(t,e=e.get(null===s.key?n:s.key)||null,s,a);case x:return u(t,e=e.get(null===s.key?n:s.key)||null,s,a);case O:return m(e,t,n,(0,s._init)(s._payload),a)}if(te(s)||E(s))return d(t,e=e.get(n)||null,s,a,null);bi(t,s)}return null}function g(a,i,o,l){for(var c=null,u=null,d=i,g=i=0,f=null;null!==d&&g<o.length;g++){d.index>g?(f=d,d=null):f=d.sibling;var b=h(a,d,o[g],l);if(null===b){null===d&&(d=f);break}e&&d&&null===b.alternate&&t(a,d),i=r(b,i,g),null===u?c=b:u.sibling=b,u=b,d=f}if(g===o.length)return n(a,d),ai&&Xa(a,g),c;if(null===d){for(;g<o.length;g++)null!==(d=p(a,o[g],l))&&(i=r(d,i,g),null===u?c=d:u.sibling=d,u=d);return ai&&Xa(a,g),c}for(d=s(a,d);g<o.length;g++)null!==(f=m(d,a,g,o[g],l))&&(e&&null!==f.alternate&&d.delete(null===f.key?g:f.key),i=r(f,i,g),null===u?c=f:u.sibling=f,u=f);return e&&d.forEach((function(e){return t(a,e)})),ai&&Xa(a,g),c}function f(a,o,l,c){var u=E(l);if("function"!=typeof u)throw Error(i(150));if(null==(l=u.call(l)))throw Error(i(151));for(var d=u=null,g=o,f=o=0,b=null,v=l.next();null!==g&&!v.done;f++,v=l.next()){g.index>f?(b=g,g=null):b=g.sibling;var y=h(a,g,v.value,c);if(null===y){null===g&&(g=b);break}e&&g&&null===y.alternate&&t(a,g),o=r(y,o,f),null===d?u=y:d.sibling=y,d=y,g=b}if(v.done)return n(a,g),ai&&Xa(a,f),u;if(null===g){for(;!v.done;f++,v=l.next())null!==(v=p(a,v.value,c))&&(o=r(v,o,f),null===d?u=v:d.sibling=v,d=v);return ai&&Xa(a,f),u}for(g=s(a,g);!v.done;f++,v=l.next())null!==(v=m(g,a,f,v.value,c))&&(e&&null!==v.alternate&&g.delete(null===v.key?f:v.key),o=r(v,o,f),null===d?u=v:d.sibling=v,d=v);return e&&g.forEach((function(e){return t(a,e)})),ai&&Xa(a,f),u}return function e(s,i,r,l){if("object"==typeof r&&null!==r&&r.type===A&&null===r.key&&(r=r.props.children),"object"==typeof r&&null!==r){switch(r.$$typeof){case w:e:{for(var c=r.key,u=i;null!==u;){if(u.key===c){if((c=r.type)===A){if(7===u.tag){n(s,u.sibling),(i=a(u,r.props.children)).return=s,s=i;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===O&&vi(c)===u.type){n(s,u.sibling),(i=a(u,r.props)).ref=fi(s,u,r),i.return=s,s=i;break e}n(s,u);break}t(s,u),u=u.sibling}r.type===A?((i=Mc(r.props.children,s.mode,l,r.key)).return=s,s=i):((l=Lc(r.type,r.key,r.props,null,s.mode,l)).ref=fi(s,i,r),l.return=s,s=l)}return o(s);case x:e:{for(u=r.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===r.containerInfo&&i.stateNode.implementation===r.implementation){n(s,i.sibling),(i=a(i,r.children||[])).return=s,s=i;break e}n(s,i);break}t(s,i),i=i.sibling}(i=Uc(r,s.mode,l)).return=s,s=i}return o(s);case O:return e(s,i,(u=r._init)(r._payload),l)}if(te(r))return g(s,i,r,l);if(E(r))return f(s,i,r,l);bi(s,r)}return"string"==typeof r&&""!==r||"number"==typeof r?(r=""+r,null!==i&&6===i.tag?(n(s,i.sibling),(i=a(i,r)).return=s,s=i):(n(s,i),(i=Rc(r,s.mode,l)).return=s,s=i),o(s)):n(s,i)}}var Si=yi(!0),wi=yi(!1),xi=_a(null),Ai=null,_i=null,ki=null;function ji(){ki=_i=Ai=null}function Ci(e){var t=xi.current;ka(xi),e._currentValue=t}function Ii(e,t,n){for(;null!==e;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==s&&(s.childLanes|=t)):null!==s&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Ti(e,t){Ai=e,ki=_i=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(yo=!0),e.firstContext=null)}function Di(e){var t=e._currentValue;if(ki!==e)if(e={context:e,memoizedValue:t,next:null},null===_i){if(null===Ai)throw Error(i(308));_i=e,Ai.dependencies={lanes:0,firstContext:e}}else _i=_i.next=e;return t}var Pi=null;function Oi(e){null===Pi?Pi=[e]:Pi.push(e)}function Li(e,t,n,s){var a=t.interleaved;return null===a?(n.next=n,Oi(t)):(n.next=a.next,a.next=n),t.interleaved=n,Mi(e,s)}function Mi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ei=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var s=e.updateQueue;if(null===s)return null;if(s=s.shared,2&Cl){var a=s.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),s.pending=t,Mi(e,n)}return null===(a=s.interleaved)?(t.next=t,Oi(s)):(t.next=a.next,a.next=t),s.interleaved=t,Mi(e,n)}function Bi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var s=t.lanes;n|=s&=e.pendingLanes,t.lanes=n,vt(e,n)}}function Yi(e,t){var n=e.updateQueue,s=e.alternate;if(null!==s&&n===(s=s.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=r:i=i.next=r,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:s.shared,effects:s.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hi(e,t,n,s){var a=e.updateQueue;Ei=!1;var i=a.firstBaseUpdate,r=a.lastBaseUpdate,o=a.shared.pending;if(null!==o){a.shared.pending=null;var l=o,c=l.next;l.next=null,null===r?i=c:r.next=c,r=l;var u=e.alternate;null!==u&&(o=(u=u.updateQueue).lastBaseUpdate)!==r&&(null===o?u.firstBaseUpdate=c:o.next=c,u.lastBaseUpdate=l)}if(null!==i){var d=a.baseState;for(r=0,u=c=l=null,o=i;;){var p=o.lane,h=o.eventTime;if((s&p)===p){null!==u&&(u=u.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var m=e,g=o;switch(p=t,h=n,g.tag){case 1:if("function"==typeof(m=g.payload)){d=m.call(h,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(h,d,p):m))break e;d=U({},d,p);break e;case 2:Ei=!0}}null!==o.callback&&0!==o.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[o]:p.push(o))}else h={eventTime:h,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===u?(c=u=h,l=d):u=u.next=h,r|=p;if(null===(o=o.next)){if(null===(o=a.shared.pending))break;o=(p=o).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{r|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);El|=r,e.lanes=r,e.memoizedState=d}}function Vi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var s=e[t],a=s.callback;if(null!==a){if(s.callback=null,s=n,"function"!=typeof a)throw Error(i(191,a));a.call(s)}}}var Wi={},$i=_a(Wi),zi=_a(Wi),qi=_a(Wi);function Gi(e){if(e===Wi)throw Error(i(174));return e}function Ki(e,t){switch(ja(qi,t),ja(zi,e),ja($i,Wi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ka($i),ja($i,t)}function Qi(){ka($i),ka(zi),ka(qi)}function Ji(e){Gi(qi.current);var t=Gi($i.current),n=le(t,e.type);t!==n&&(ja(zi,e),ja($i,n))}function Xi(e){zi.current===e&&(ka($i),ka(zi))}var Zi=_a(0);function er(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var tr=[];function nr(){for(var e=0;e<tr.length;e++)tr[e]._workInProgressVersionPrimary=null;tr.length=0}var sr=S.ReactCurrentDispatcher,ar=S.ReactCurrentBatchConfig,ir=0,rr=null,or=null,lr=null,cr=!1,ur=!1,dr=0,pr=0;function hr(){throw Error(i(321))}function mr(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!os(e[n],t[n]))return!1;return!0}function gr(e,t,n,s,a,r){if(ir=r,rr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,sr.current=null===e||null===e.memoizedState?Xr:Zr,e=n(s,a),ur){r=0;do{if(ur=!1,dr=0,25<=r)throw Error(i(301));r+=1,lr=or=null,t.updateQueue=null,sr.current=eo,e=n(s,a)}while(ur)}if(sr.current=Jr,t=null!==or&&null!==or.next,ir=0,lr=or=rr=null,cr=!1,t)throw Error(i(300));return e}function fr(){var e=0!==dr;return dr=0,e}function br(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===lr?rr.memoizedState=lr=e:lr=lr.next=e,lr}function vr(){if(null===or){var e=rr.alternate;e=null!==e?e.memoizedState:null}else e=or.next;var t=null===lr?rr.memoizedState:lr.next;if(null!==t)lr=t,or=e;else{if(null===e)throw Error(i(310));e={memoizedState:(or=e).memoizedState,baseState:or.baseState,baseQueue:or.baseQueue,queue:or.queue,next:null},null===lr?rr.memoizedState=lr=e:lr=lr.next=e}return lr}function yr(e,t){return"function"==typeof t?t(e):t}function Sr(e){var t=vr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var s=or,a=s.baseQueue,r=n.pending;if(null!==r){if(null!==a){var o=a.next;a.next=r.next,r.next=o}s.baseQueue=a=r,n.pending=null}if(null!==a){r=a.next,s=s.baseState;var l=o=null,c=null,u=r;do{var d=u.lane;if((ir&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,o=s):c=c.next=p,rr.lanes|=d,El|=d}u=u.next}while(null!==u&&u!==r);null===c?o=s:c.next=l,os(s,t.memoizedState)||(yo=!0),t.memoizedState=s,t.baseState=o,t.baseQueue=c,n.lastRenderedState=s}if(null!==(e=n.interleaved)){a=e;do{r=a.lane,rr.lanes|=r,El|=r,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wr(e){var t=vr(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,r=t.memoizedState;if(null!==a){n.pending=null;var o=a=a.next;do{r=e(r,o.action),o=o.next}while(o!==a);os(r,t.memoizedState)||(yo=!0),t.memoizedState=r,null===t.baseQueue&&(t.baseState=r),n.lastRenderedState=r}return[r,s]}function xr(){}function Ar(e,t){var n=rr,s=vr(),a=t(),r=!os(s.memoizedState,a);if(r&&(s.memoizedState=a,yo=!0),s=s.queue,Er(jr.bind(null,n,s,e),[e]),s.getSnapshot!==t||r||null!==lr&&1&lr.memoizedState.tag){if(n.flags|=2048,Dr(9,kr.bind(null,n,s,a,t),void 0,null),null===Il)throw Error(i(349));30&ir||_r(n,t,a)}return a}function _r(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=rr.updateQueue)?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function kr(e,t,n,s){t.value=n,t.getSnapshot=s,Cr(t)&&Ir(e)}function jr(e,t,n){return n((function(){Cr(t)&&Ir(e)}))}function Cr(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!os(e,n)}catch(e){return!0}}function Ir(e){var t=Mi(e,1);null!==t&&tc(t,e,1,-1)}function Tr(e){var t=br();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yr,lastRenderedState:e},t.queue=e,e=e.dispatch=qr.bind(null,rr,e),[t.memoizedState,e]}function Dr(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},null===(t=rr.updateQueue)?(t={lastEffect:null,stores:null},rr.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e),e}function Pr(){return vr().memoizedState}function Or(e,t,n,s){var a=br();rr.flags|=e,a.memoizedState=Dr(1|t,n,void 0,void 0===s?null:s)}function Lr(e,t,n,s){var a=vr();s=void 0===s?null:s;var i=void 0;if(null!==or){var r=or.memoizedState;if(i=r.destroy,null!==s&&mr(s,r.deps))return void(a.memoizedState=Dr(t,n,i,s))}rr.flags|=e,a.memoizedState=Dr(1|t,n,i,s)}function Mr(e,t){return Or(8390656,8,e,t)}function Er(e,t){return Lr(2048,8,e,t)}function Rr(e,t){return Lr(4,2,e,t)}function Ur(e,t){return Lr(4,4,e,t)}function Nr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fr(e,t,n){return n=null!=n?n.concat([e]):null,Lr(4,4,Nr.bind(null,t,e),n)}function Br(){}function Yr(e,t){var n=vr();t=void 0===t?null:t;var s=n.memoizedState;return null!==s&&null!==t&&mr(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Hr(e,t){var n=vr();t=void 0===t?null:t;var s=n.memoizedState;return null!==s&&null!==t&&mr(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function Vr(e,t,n){return 21&ir?(os(n,t)||(n=gt(),rr.lanes|=n,El|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yo=!0),e.memoizedState=n)}function Wr(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var s=ar.transition;ar.transition={};try{e(!1),t()}finally{yt=n,ar.transition=s}}function $r(){return vr().memoizedState}function zr(e,t,n){var s=ec(e);n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Gr(e)?Kr(t,n):null!==(n=Li(e,t,n,s))&&(tc(n,e,s,Zl()),Qr(n,t,s))}function qr(e,t,n){var s=ec(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Gr(e))Kr(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var r=t.lastRenderedState,o=i(r,n);if(a.hasEagerState=!0,a.eagerState=o,os(o,r)){var l=t.interleaved;return null===l?(a.next=a,Oi(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(e){}null!==(n=Li(e,t,a,s))&&(tc(n,e,s,a=Zl()),Qr(n,t,s))}}function Gr(e){var t=e.alternate;return e===rr||null!==t&&t===rr}function Kr(e,t){ur=cr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qr(e,t,n){if(4194240&n){var s=t.lanes;n|=s&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Jr={readContext:Di,useCallback:hr,useContext:hr,useEffect:hr,useImperativeHandle:hr,useInsertionEffect:hr,useLayoutEffect:hr,useMemo:hr,useReducer:hr,useRef:hr,useState:hr,useDebugValue:hr,useDeferredValue:hr,useTransition:hr,useMutableSource:hr,useSyncExternalStore:hr,useId:hr,unstable_isNewReconciler:!1},Xr={readContext:Di,useCallback:function(e,t){return br().memoizedState=[e,void 0===t?null:t],e},useContext:Di,useEffect:Mr,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Or(4194308,4,Nr.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Or(4194308,4,e,t)},useInsertionEffect:function(e,t){return Or(4,2,e,t)},useMemo:function(e,t){var n=br();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=br();return t=void 0!==n?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=zr.bind(null,rr,e),[s.memoizedState,e]},useRef:function(e){return e={current:e},br().memoizedState=e},useState:Tr,useDebugValue:Br,useDeferredValue:function(e){return br().memoizedState=e},useTransition:function(){var e=Tr(!1),t=e[0];return e=Wr.bind(null,e[1]),br().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=rr,a=br();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Il)throw Error(i(349));30&ir||_r(s,t,n)}a.memoizedState=n;var r={value:n,getSnapshot:t};return a.queue=r,Mr(jr.bind(null,s,r,e),[e]),s.flags|=2048,Dr(9,kr.bind(null,s,r,n,t),void 0,null),n},useId:function(){var e=br(),t=Il.identifierPrefix;if(ai){var n=Ja;t=":"+t+"R"+(n=(Qa&~(1<<32-rt(Qa)-1)).toString(32)+n),0<(n=dr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Zr={readContext:Di,useCallback:Yr,useContext:Di,useEffect:Er,useImperativeHandle:Fr,useInsertionEffect:Rr,useLayoutEffect:Ur,useMemo:Hr,useReducer:Sr,useRef:Pr,useState:function(){return Sr(yr)},useDebugValue:Br,useDeferredValue:function(e){return Vr(vr(),or.memoizedState,e)},useTransition:function(){return[Sr(yr)[0],vr().memoizedState]},useMutableSource:xr,useSyncExternalStore:Ar,useId:$r,unstable_isNewReconciler:!1},eo={readContext:Di,useCallback:Yr,useContext:Di,useEffect:Er,useImperativeHandle:Fr,useInsertionEffect:Rr,useLayoutEffect:Ur,useMemo:Hr,useReducer:wr,useRef:Pr,useState:function(){return wr(yr)},useDebugValue:Br,useDeferredValue:function(e){var t=vr();return null===or?t.memoizedState=e:Vr(t,or.memoizedState,e)},useTransition:function(){return[wr(yr)[0],vr().memoizedState]},useMutableSource:xr,useSyncExternalStore:Ar,useId:$r,unstable_isNewReconciler:!1};function to(e,t){if(e&&e.defaultProps){for(var n in t=U({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function no(e,t,n,s){n=null==(n=n(s,t=e.memoizedState))?t:U({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var so={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Zl(),a=ec(e),i=Ni(s,a);i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,a))&&(tc(t,e,a,s),Bi(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Zl(),a=ec(e),i=Ni(s,a);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Fi(e,i,a))&&(tc(t,e,a,s),Bi(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),s=ec(e),a=Ni(n,s);a.tag=2,null!=t&&(a.callback=t),null!==(t=Fi(e,a,s))&&(tc(t,e,s,n),Bi(t,e,s))}};function ao(e,t,n,s,a,i,r){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(s,i,r):!(t.prototype&&t.prototype.isPureReactComponent&&ls(n,s)&&ls(a,i))}function io(e,t,n){var s=!1,a=Ca,i=t.contextType;return"object"==typeof i&&null!==i?i=Di(i):(a=Oa(t)?Da:Ia.current,i=(s=null!=(s=t.contextTypes))?Pa(e,a):Ca),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=so,e.stateNode=t,t._reactInternals=e,s&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function ro(e,t,n,s){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,s),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function oo(e,t,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ri(e);var i=t.contextType;"object"==typeof i&&null!==i?a.context=Di(i):(i=Oa(t)?Da:Ia.current,a.context=Pa(e,i)),a.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(no(e,t,i,n),a.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof a.getSnapshotBeforeUpdate||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||(t=a.state,"function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&so.enqueueReplaceState(a,a.state,null),Hi(e,n,a,s),a.state=e.memoizedState),"function"==typeof a.componentDidMount&&(e.flags|=4194308)}function lo(e,t){try{var n="",s=t;do{n+=Y(s),s=s.return}while(s);var a=n}catch(e){a="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:a,digest:null}}function co(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function uo(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var po="function"==typeof WeakMap?WeakMap:Map;function ho(e,t,n){(n=Ni(-1,n)).tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){Vl||(Vl=!0,Wl=s),uo(0,t)},n}function mo(e,t,n){(n=Ni(-1,n)).tag=3;var s=e.type.getDerivedStateFromError;if("function"==typeof s){var a=t.value;n.payload=function(){return s(a)},n.callback=function(){uo(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){uo(0,t),"function"!=typeof s&&(null===$l?$l=new Set([this]):$l.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function go(e,t,n){var s=e.pingCache;if(null===s){s=e.pingCache=new po;var a=new Set;s.set(t,a)}else void 0===(a=s.get(t))&&(a=new Set,s.set(t,a));a.has(n)||(a.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function fo(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bo(e,t,n,s,a){return 1&e.mode?(e.flags|=65536,e.lanes=a,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ni(-1,1)).tag=2,Fi(n,t,1))),n.lanes|=1),e)}var vo=S.ReactCurrentOwner,yo=!1;function So(e,t,n,s){t.child=null===e?wi(t,null,n,s):Si(t,e.child,n,s)}function wo(e,t,n,s,a){n=n.render;var i=t.ref;return Ti(t,a),s=gr(e,t,n,s,i,a),n=fr(),null===e||yo?(ai&&n&&ei(t),t.flags|=1,So(e,t,s,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vo(e,t,a))}function xo(e,t,n,s,a){if(null===e){var i=n.type;return"function"!=typeof i||Pc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Lc(n.type,null,s,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ao(e,t,i,s,a))}if(i=e.child,!(e.lanes&a)){var r=i.memoizedProps;if((n=null!==(n=n.compare)?n:ls)(r,s)&&e.ref===t.ref)return Vo(e,t,a)}return t.flags|=1,(e=Oc(i,s)).ref=t.ref,e.return=t,t.child=e}function Ao(e,t,n,s,a){if(null!==e){var i=e.memoizedProps;if(ls(i,s)&&e.ref===t.ref){if(yo=!1,t.pendingProps=s=i,!(e.lanes&a))return t.lanes=e.lanes,Vo(e,t,a);131072&e.flags&&(yo=!0)}}return jo(e,t,n,s,a)}function _o(e,t,n){var s=t.pendingProps,a=s.children,i=null!==e?e.memoizedState:null;if("hidden"===s.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ja(Ol,Pl),Pl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=null!==i?i.baseLanes:n,ja(Ol,Pl),Pl|=s}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ja(Ol,Pl),Pl|=n;else null!==i?(s=i.baseLanes|n,t.memoizedState=null):s=n,ja(Ol,Pl),Pl|=s;return So(e,t,a,n),t.child}function ko(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jo(e,t,n,s,a){var i=Oa(n)?Da:Ia.current;return i=Pa(t,i),Ti(t,a),n=gr(e,t,n,s,i,a),s=fr(),null===e||yo?(ai&&s&&ei(t),t.flags|=1,So(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vo(e,t,a))}function Co(e,t,n,s,a){if(Oa(n)){var i=!0;Ra(t)}else i=!1;if(Ti(t,a),null===t.stateNode)Ho(e,t),io(t,n,s),oo(t,n,s,a),s=!0;else if(null===e){var r=t.stateNode,o=t.memoizedProps;r.props=o;var l=r.context,c=n.contextType;c="object"==typeof c&&null!==c?Di(c):Pa(t,c=Oa(n)?Da:Ia.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof r.getSnapshotBeforeUpdate;d||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==s||l!==c)&&ro(t,r,s,c),Ei=!1;var p=t.memoizedState;r.state=p,Hi(t,s,r,a),l=t.memoizedState,o!==s||p!==l||Ta.current||Ei?("function"==typeof u&&(no(t,n,u,s),l=t.memoizedState),(o=Ei||ao(t,n,o,s,p,l,c))?(d||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.flags|=4194308)):("function"==typeof r.componentDidMount&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=l),r.props=s,r.state=l,r.context=c,s=o):("function"==typeof r.componentDidMount&&(t.flags|=4194308),s=!1)}else{r=t.stateNode,Ui(e,t),o=t.memoizedProps,c=t.type===t.elementType?o:to(t.type,o),r.props=c,d=t.pendingProps,p=r.context,l="object"==typeof(l=n.contextType)&&null!==l?Di(l):Pa(t,l=Oa(n)?Da:Ia.current);var h=n.getDerivedStateFromProps;(u="function"==typeof h||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==d||p!==l)&&ro(t,r,s,l),Ei=!1,p=t.memoizedState,r.state=p,Hi(t,s,r,a);var m=t.memoizedState;o!==d||p!==m||Ta.current||Ei?("function"==typeof h&&(no(t,n,h,s),m=t.memoizedState),(c=Ei||ao(t,n,c,s,p,m,l)||!1)?(u||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(s,m,l),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(s,m,l)),"function"==typeof r.componentDidUpdate&&(t.flags|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=m),r.props=s,r.state=m,r.context=l,s=c):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),s=!1)}return Io(e,t,n,s,i,a)}function Io(e,t,n,s,a,i){ko(e,t);var r=!!(128&t.flags);if(!s&&!r)return a&&Ua(t,n,!1),Vo(e,t,i);s=t.stateNode,vo.current=t;var o=r&&"function"!=typeof n.getDerivedStateFromError?null:s.render();return t.flags|=1,null!==e&&r?(t.child=Si(t,e.child,null,i),t.child=Si(t,null,o,i)):So(e,t,o,i),t.memoizedState=s.state,a&&Ua(t,n,!0),t.child}function To(e){var t=e.stateNode;t.pendingContext?Ma(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ma(0,t.context,!1),Ki(e,t.containerInfo)}function Do(e,t,n,s,a){return hi(),mi(a),t.flags|=256,So(e,t,n,s),t.child}var Po,Oo,Lo,Mo={dehydrated:null,treeContext:null,retryLane:0};function Eo(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ro(e,t,n){var s,a=t.pendingProps,r=Zi.current,o=!1,l=!!(128&t.flags);if((s=l)||(s=(null===e||null!==e.memoizedState)&&!!(2&r)),s?(o=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(r|=1),ja(Zi,1&r),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=a.children,e=a.fallback,o?(a=t.mode,o=t.child,l={mode:"hidden",children:l},1&a||null===o?o=Ec(l,a,0,null):(o.childLanes=0,o.pendingProps=l),e=Mc(e,a,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Eo(n),t.memoizedState=Mo,e):Uo(t,l));if(null!==(r=e.memoizedState)&&null!==(s=r.dehydrated))return function(e,t,n,s,a,r,o){if(n)return 256&t.flags?(t.flags&=-257,No(e,t,o,s=co(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(r=s.fallback,a=t.mode,s=Ec({mode:"visible",children:s.children},a,0,null),(r=Mc(r,a,o,null)).flags|=2,s.return=t,r.return=t,s.sibling=r,t.child=s,1&t.mode&&Si(t,e.child,null,o),t.child.memoizedState=Eo(o),t.memoizedState=Mo,r);if(!(1&t.mode))return No(e,t,o,null);if("$!"===a.data){if(s=a.nextSibling&&a.nextSibling.dataset)var l=s.dgst;return s=l,No(e,t,o,s=co(r=Error(i(419)),s,void 0))}if(l=!!(o&e.childLanes),yo||l){if(null!==(s=Il)){switch(o&-o){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=a&(s.suspendedLanes|o)?0:a)&&a!==r.retryLane&&(r.retryLane=a,Mi(e,a),tc(s,e,a,-1))}return mc(),No(e,t,o,s=co(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=jc.bind(null,e),a._reactRetry=t,null):(e=r.treeContext,si=ca(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&(qa[Ga++]=Qa,qa[Ga++]=Ja,qa[Ga++]=Ka,Qa=e.id,Ja=e.overflow,Ka=t),(t=Uo(t,s.children)).flags|=4096,t)}(e,t,l,a,s,r,n);if(o){o=a.fallback,l=t.mode,s=(r=e.child).sibling;var c={mode:"hidden",children:a.children};return 1&l||t.child===r?(a=Oc(r,c)).subtreeFlags=14680064&r.subtreeFlags:((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null),null!==s?o=Oc(s,o):(o=Mc(o,l,n,null)).flags|=2,o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,l=null===(l=e.child.memoizedState)?Eo(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=Mo,a}return e=(o=e.child).sibling,a=Oc(o,{mode:"visible",children:a.children}),!(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Uo(e,t){return(t=Ec({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function No(e,t,n,s){return null!==s&&mi(s),Si(t,e.child,null,n),(e=Uo(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fo(e,t,n){e.lanes|=t;var s=e.alternate;null!==s&&(s.lanes|=t),Ii(e.return,t,n)}function Bo(e,t,n,s,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=a)}function Yo(e,t,n){var s=t.pendingProps,a=s.revealOrder,i=s.tail;if(So(e,t,s.children,n),2&(s=Zi.current))s=1&s|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fo(e,n,t);else if(19===e.tag)Fo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(ja(Zi,s),1&t.mode)switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===er(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Bo(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===er(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Bo(t,!0,n,null,i);break;case"together":Bo(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Ho(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),El|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Oc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Oc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Wo(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;null!==n;)null!==n.alternate&&(s=n),n=n.sibling;null===s?t||null===e.tail?e.tail=null:e.tail.sibling=null:s.sibling=null}}function $o(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,s=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,s|=14680064&a.subtreeFlags,s|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function zo(e,t,n){var s=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $o(t),null;case 1:case 17:return Oa(t.type)&&La(),$o(t),null;case 3:return s=t.stateNode,Qi(),ka(Ta),ka(Ia),nr(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ii&&(ic(ii),ii=null))),$o(t),null;case 5:Xi(t);var a=Gi(qi.current);if(n=t.type,null!==e&&null!=t.stateNode)Oo(e,t,n,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(null===t.stateNode)throw Error(i(166));return $o(t),null}if(e=Gi($i.current),di(t)){s=t.stateNode,n=t.type;var r=t.memoizedProps;switch(s[pa]=t,s[ha]=r,e=!!(1&t.mode),n){case"dialog":Fs("cancel",s),Fs("close",s);break;case"iframe":case"object":case"embed":Fs("load",s);break;case"video":case"audio":for(a=0;a<Es.length;a++)Fs(Es[a],s);break;case"source":Fs("error",s);break;case"img":case"image":case"link":Fs("error",s),Fs("load",s);break;case"details":Fs("toggle",s);break;case"input":Q(s,r),Fs("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!r.multiple},Fs("invalid",s);break;case"textarea":ae(s,r),Fs("invalid",s)}for(var l in ve(n,r),a=null,r)if(r.hasOwnProperty(l)){var c=r[l];"children"===l?"string"==typeof c?s.textContent!==c&&(!0!==r.suppressHydrationWarning&&Xs(s.textContent,c,e),a=["children",c]):"number"==typeof c&&s.textContent!==""+c&&(!0!==r.suppressHydrationWarning&&Xs(s.textContent,c,e),a=["children",""+c]):o.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fs("scroll",s)}switch(n){case"input":z(s),Z(s,r,!0);break;case"textarea":z(s),re(s);break;case"select":case"option":break;default:"function"==typeof r.onClick&&(s.onclick=Zs)}s=a,t.updateQueue=s,null!==s&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=oe(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof s.is?e=l.createElement(n,{is:s.is}):(e=l.createElement(n),"select"===n&&(l=e,s.multiple?l.multiple=!0:s.size&&(l.size=s.size))):e=l.createElementNS(e,n),e[pa]=t,e[ha]=s,Po(e,t),t.stateNode=e;e:{switch(l=ye(n,s),n){case"dialog":Fs("cancel",e),Fs("close",e),a=s;break;case"iframe":case"object":case"embed":Fs("load",e),a=s;break;case"video":case"audio":for(a=0;a<Es.length;a++)Fs(Es[a],e);a=s;break;case"source":Fs("error",e),a=s;break;case"img":case"image":case"link":Fs("error",e),Fs("load",e),a=s;break;case"details":Fs("toggle",e),a=s;break;case"input":Q(e,s),a=K(e,s),Fs("invalid",e);break;case"option":default:a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=U({},s,{value:void 0}),Fs("invalid",e);break;case"textarea":ae(e,s),a=se(e,s),Fs("invalid",e)}for(r in ve(n,a),c=a)if(c.hasOwnProperty(r)){var u=c[r];"style"===r?fe(e,u):"dangerouslySetInnerHTML"===r?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===r?"string"==typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"==typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==r&&"suppressHydrationWarning"!==r&&"autoFocus"!==r&&(o.hasOwnProperty(r)?null!=u&&"onScroll"===r&&Fs("scroll",e):null!=u&&y(e,r,u,l))}switch(n){case"input":z(e),Z(e,s,!1);break;case"textarea":z(e),re(e);break;case"option":null!=s.value&&e.setAttribute("value",""+W(s.value));break;case"select":e.multiple=!!s.multiple,null!=(r=s.value)?ne(e,!!s.multiple,r,!1):null!=s.defaultValue&&ne(e,!!s.multiple,s.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Zs)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return $o(t),null;case 6:if(e&&null!=t.stateNode)Lo(0,t,e.memoizedProps,s);else{if("string"!=typeof s&&null===t.stateNode)throw Error(i(166));if(n=Gi(qi.current),Gi($i.current),di(t)){if(s=t.stateNode,n=t.memoizedProps,s[pa]=t,(r=s.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Xs(s.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Xs(s.nodeValue,n,!!(1&e.mode))}r&&(t.flags|=4)}else(s=(9===n.nodeType?n:n.ownerDocument).createTextNode(s))[pa]=t,t.stateNode=s}return $o(t),null;case 13:if(ka(Zi),s=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==si&&1&t.mode&&!(128&t.flags))pi(),hi(),t.flags|=98560,r=!1;else if(r=di(t),null!==s&&null!==s.dehydrated){if(null===e){if(!r)throw Error(i(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(i(317));r[pa]=t}else hi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;$o(t),r=!1}else null!==ii&&(ic(ii),ii=null),r=!0;if(!r)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((s=null!==s)!=(null!==e&&null!==e.memoizedState)&&s&&(t.child.flags|=8192,1&t.mode&&(null===e||1&Zi.current?0===Ll&&(Ll=3):mc())),null!==t.updateQueue&&(t.flags|=4),$o(t),null);case 4:return Qi(),null===e&&Hs(t.stateNode.containerInfo),$o(t),null;case 10:return Ci(t.type._context),$o(t),null;case 19:if(ka(Zi),null===(r=t.memoizedState))return $o(t),null;if(s=!!(128&t.flags),null===(l=r.rendering))if(s)Wo(r,!1);else{if(0!==Ll||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=er(e))){for(t.flags|=128,Wo(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;null!==n;)e=s,(r=n).flags&=14680066,null===(l=r.alternate)?(r.childLanes=0,r.lanes=e,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,e=l.dependencies,r.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ja(Zi,1&Zi.current|2),t.child}e=e.sibling}null!==r.tail&&Je()>Yl&&(t.flags|=128,s=!0,Wo(r,!1),t.lanes=4194304)}else{if(!s)if(null!==(e=er(l))){if(t.flags|=128,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Wo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!ai)return $o(t),null}else 2*Je()-r.renderingStartTime>Yl&&1073741824!==n&&(t.flags|=128,s=!0,Wo(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Je(),t.sibling=null,n=Zi.current,ja(Zi,s?1&n|2:1&n),t):($o(t),null);case 22:case 23:return uc(),s=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==s&&(t.flags|=8192),s&&1&t.mode?!!(1073741824&Pl)&&($o(t),6&t.subtreeFlags&&(t.flags|=8192)):$o(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function qo(e,t){switch(ti(t),t.tag){case 1:return Oa(t.type)&&La(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Qi(),ka(Ta),ka(Ia),nr(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Xi(t),null;case 13:if(ka(Zi),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return ka(Zi),null;case 4:return Qi(),null;case 10:return Ci(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Po=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Oo=function(e,t,n,s){var a=e.memoizedProps;if(a!==s){e=t.stateNode,Gi($i.current);var i,r=null;switch(n){case"input":a=K(e,a),s=K(e,s),r=[];break;case"select":a=U({},a,{value:void 0}),s=U({},s,{value:void 0}),r=[];break;case"textarea":a=se(e,a),s=se(e,s),r=[];break;default:"function"!=typeof a.onClick&&"function"==typeof s.onClick&&(e.onclick=Zs)}for(u in ve(n,s),n=null,a)if(!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?r||(r=[]):(r=r||[]).push(u,null));for(u in s){var c=s[u];if(l=null!=a?a[u]:void 0,s.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&l[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(r||(r=[]),r.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(r=r||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(r=r||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fs("scroll",e),r||l===c||(r=[])):(r=r||[]).push(u,c))}n&&(r=r||[]).push("style",n);var u=r;(t.updateQueue=u)&&(t.flags|=4)}},Lo=function(e,t,n,s){n!==s&&(t.flags|=4)};var Go=!1,Ko=!1,Qo="function"==typeof WeakSet?WeakSet:Set,Jo=null;function Xo(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Ac(e,t,n)}else n.current=null}function Zo(e,t,n){try{n()}catch(n){Ac(e,t,n)}}var el=!1;function tl(e,t,n){var s=t.updateQueue;if(null!==(s=null!==s?s.lastEffect:null)){var a=s=s.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&Zo(t,n,i)}a=a.next}while(a!==s)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function sl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[pa],delete t[ha],delete t[ga],delete t[fa],delete t[ba]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function rl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ol(e,t,n){var s=e.tag;if(5===s||6===s)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zs));else if(4!==s&&null!==(e=e.child))for(ol(e,t,n),e=e.sibling;null!==e;)ol(e,t,n),e=e.sibling}function ll(e,t,n){var s=e.tag;if(5===s||6===s)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==s&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var cl=null,ul=!1;function dl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(e){}switch(n.tag){case 5:Ko||Xo(n,t);case 6:var s=cl,a=ul;cl=null,dl(e,t,n),ul=a,null!==(cl=s)&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),Ht(e)):la(cl,n.stateNode));break;case 4:s=cl,a=ul,cl=n.stateNode.containerInfo,ul=!0,dl(e,t,n),cl=s,ul=a;break;case 0:case 11:case 14:case 15:if(!Ko&&null!==(s=n.updateQueue)&&null!==(s=s.lastEffect)){a=s=s.next;do{var i=a,r=i.destroy;i=i.tag,void 0!==r&&(2&i||4&i)&&Zo(n,t,r),a=a.next}while(a!==s)}dl(e,t,n);break;case 1:if(!Ko&&(Xo(n,t),"function"==typeof(s=n.stateNode).componentWillUnmount))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(e){Ac(n,t,e)}dl(e,t,n);break;case 21:dl(e,t,n);break;case 22:1&n.mode?(Ko=(s=Ko)||null!==n.memoizedState,dl(e,t,n),Ko=s):dl(e,t,n);break;default:dl(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qo),t.forEach((function(t){var s=Cc.bind(null,e,t);n.has(t)||(n.add(t),t.then(s,s))}))}}function ml(e,t){var n=t.deletions;if(null!==n)for(var s=0;s<n.length;s++){var a=n[s];try{var r=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,ul=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===cl)throw Error(i(160));pl(r,o,a),cl=null,ul=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(e){Ac(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gl(t,e),t=t.sibling}function gl(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),fl(e),4&s){try{tl(3,e,e.return),nl(3,e)}catch(t){Ac(e,e.return,t)}try{tl(5,e,e.return)}catch(t){Ac(e,e.return,t)}}break;case 1:ml(t,e),fl(e),512&s&&null!==n&&Xo(n,n.return);break;case 5:if(ml(t,e),fl(e),512&s&&null!==n&&Xo(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(t){Ac(e,e.return,t)}}if(4&s&&null!=(a=e.stateNode)){var r=e.memoizedProps,o=null!==n?n.memoizedProps:r,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===r.type&&null!=r.name&&J(a,r),ye(l,o);var u=ye(l,r);for(o=0;o<c.length;o+=2){var d=c[o],p=c[o+1];"style"===d?fe(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):y(a,d,p,u)}switch(l){case"input":X(a,r);break;case"textarea":ie(a,r);break;case"select":var h=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!r.multiple;var m=r.value;null!=m?ne(a,!!r.multiple,m,!1):h!==!!r.multiple&&(null!=r.defaultValue?ne(a,!!r.multiple,r.defaultValue,!0):ne(a,!!r.multiple,r.multiple?[]:"",!1))}a[ha]=r}catch(t){Ac(e,e.return,t)}}break;case 6:if(ml(t,e),fl(e),4&s){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,r=e.memoizedProps;try{a.nodeValue=r}catch(t){Ac(e,e.return,t)}}break;case 3:if(ml(t,e),fl(e),4&s&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(t){Ac(e,e.return,t)}break;case 4:default:ml(t,e),fl(e);break;case 13:ml(t,e),fl(e),8192&(a=e.child).flags&&(r=null!==a.memoizedState,a.stateNode.isHidden=r,!r||null!==a.alternate&&null!==a.alternate.memoizedState||(Bl=Je())),4&s&&hl(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ko=(u=Ko)||d,ml(t,e),Ko=u):ml(t,e),fl(e),8192&s){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Jo=e,d=e.child;null!==d;){for(p=Jo=d;null!==Jo;){switch(m=(h=Jo).child,h.tag){case 0:case 11:case 14:case 15:tl(4,h,h.return);break;case 1:Xo(h,h.return);var g=h.stateNode;if("function"==typeof g.componentWillUnmount){s=h,n=h.return;try{t=s,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){Ac(s,n,e)}}break;case 5:Xo(h,h.return);break;case 22:if(null!==h.memoizedState){Sl(p);continue}}null!==m?(m.return=h,Jo=m):Sl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(r=a.style).setProperty?r.setProperty("display","none","important"):r.display="none":(l=p.stateNode,o=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=ge("display",o))}catch(t){Ac(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){Ac(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ml(t,e),fl(e),4&s&&hl(e);case 21:}}function fl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;32&s.flags&&(pe(a,""),s.flags&=-33),ll(e,rl(e),a);break;case 3:case 4:var r=s.stateNode.containerInfo;ol(e,rl(e),r);break;default:throw Error(i(161))}}catch(t){Ac(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Jo=e,vl(e,t,n)}function vl(e,t,n){for(var s=!!(1&e.mode);null!==Jo;){var a=Jo,i=a.child;if(22===a.tag&&s){var r=null!==a.memoizedState||Go;if(!r){var o=a.alternate,l=null!==o&&null!==o.memoizedState||Ko;o=Go;var c=Ko;if(Go=r,(Ko=l)&&!c)for(Jo=a;null!==Jo;)l=(r=Jo).child,22===r.tag&&null!==r.memoizedState?wl(a):null!==l?(l.return=r,Jo=l):wl(a);for(;null!==i;)Jo=i,vl(i,t,n),i=i.sibling;Jo=a,Go=o,Ko=c}yl(e)}else 8772&a.subtreeFlags&&null!==i?(i.return=a,Jo=i):yl(e)}}function yl(e){for(;null!==Jo;){var t=Jo;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ko||nl(5,t);break;case 1:var s=t.stateNode;if(4&t.flags&&!Ko)if(null===n)s.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:to(t.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var r=t.updateQueue;null!==r&&Vi(t,r,s);break;case 3:var o=t.updateQueue;if(null!==o){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Vi(t,o,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(i(163))}Ko||512&t.flags&&sl(t)}catch(e){Ac(t,t.return,e)}}if(t===e){Jo=null;break}if(null!==(n=t.sibling)){n.return=t.return,Jo=n;break}Jo=t.return}}function Sl(e){for(;null!==Jo;){var t=Jo;if(t===e){Jo=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Jo=n;break}Jo=t.return}}function wl(e){for(;null!==Jo;){var t=Jo;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(e){Ac(t,n,e)}break;case 1:var s=t.stateNode;if("function"==typeof s.componentDidMount){var a=t.return;try{s.componentDidMount()}catch(e){Ac(t,a,e)}}var i=t.return;try{sl(t)}catch(e){Ac(t,i,e)}break;case 5:var r=t.return;try{sl(t)}catch(e){Ac(t,r,e)}}}catch(e){Ac(t,t.return,e)}if(t===e){Jo=null;break}var o=t.sibling;if(null!==o){o.return=t.return,Jo=o;break}Jo=t.return}}var xl,Al=Math.ceil,_l=S.ReactCurrentDispatcher,kl=S.ReactCurrentOwner,jl=S.ReactCurrentBatchConfig,Cl=0,Il=null,Tl=null,Dl=0,Pl=0,Ol=_a(0),Ll=0,Ml=null,El=0,Rl=0,Ul=0,Nl=null,Fl=null,Bl=0,Yl=1/0,Hl=null,Vl=!1,Wl=null,$l=null,zl=!1,ql=null,Gl=0,Kl=0,Ql=null,Jl=-1,Xl=0;function Zl(){return 6&Cl?Je():-1!==Jl?Jl:Jl=Je()}function ec(e){return 1&e.mode?2&Cl&&0!==Dl?Dl&-Dl:null!==gi.transition?(0===Xl&&(Xl=gt()),Xl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Qt(e.type):1}function tc(e,t,n,s){if(50<Kl)throw Kl=0,Ql=null,Error(i(185));bt(e,n,s),2&Cl&&e===Il||(e===Il&&(!(2&Cl)&&(Rl|=n),4===Ll&&rc(e,Dl)),nc(e,s),1===n&&0===Cl&&!(1&t.mode)&&(Yl=Je()+500,Fa&&Ha()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var r=31-rt(i),o=1<<r,l=a[r];-1===l?o&n&&!(o&s)||(a[r]=ht(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}}(e,t);var s=pt(e,e===Il?Dl:0);if(0===s)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fa=!0,Ya(e)}(oc.bind(null,e)):Ya(oc.bind(null,e)),ra((function(){!(6&Cl)&&Ha()})),n=null;else{switch(St(s)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=st}n=Ic(n,sc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sc(e,t){if(Jl=-1,Xl=0,6&Cl)throw Error(i(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var s=pt(e,e===Il?Dl:0);if(0===s)return null;if(30&s||s&e.expiredLanes||t)t=gc(e,s);else{t=s;var a=Cl;Cl|=2;var r=hc();for(Il===e&&Dl===t||(Hl=null,Yl=Je()+500,dc(e,t));;)try{bc();break}catch(t){pc(e,t)}ji(),_l.current=r,Cl=a,null!==Tl?t=0:(Il=null,Dl=0,t=Ll)}if(0!==t){if(2===t&&0!==(a=mt(e))&&(s=a,t=ac(e,a)),1===t)throw n=Ml,dc(e,0),rc(e,s),nc(e,Je()),n;if(6===t)rc(e,s);else{if(a=e.current.alternate,!(30&s||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var s=0;s<n.length;s++){var a=n[s],i=a.getSnapshot;a=a.value;try{if(!os(i(),a))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)||(t=gc(e,s),2===t&&(r=mt(e),0!==r&&(s=r,t=ac(e,r))),1!==t)))throw n=Ml,dc(e,0),rc(e,s),nc(e,Je()),n;switch(e.finishedWork=a,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:case 5:Sc(e,Fl,Hl);break;case 3:if(rc(e,s),(130023424&s)===s&&10<(t=Bl+500-Je())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&s)!==s){Zl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=sa(Sc.bind(null,e,Fl,Hl),t);break}Sc(e,Fl,Hl);break;case 4:if(rc(e,s),(4194240&s)===s)break;for(t=e.eventTimes,a=-1;0<s;){var o=31-rt(s);r=1<<o,(o=t[o])>a&&(a=o),s&=~r}if(s=a,10<(s=(120>(s=Je()-s)?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Al(s/1960))-s)){e.timeoutHandle=sa(Sc.bind(null,e,Fl,Hl),s);break}Sc(e,Fl,Hl);break;default:throw Error(i(329))}}}return nc(e,Je()),e.callbackNode===n?sc.bind(null,e):null}function ac(e,t){var n=Nl;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fl,Fl=n,null!==t&&ic(t)),e}function ic(e){null===Fl?Fl=e:Fl.push.apply(Fl,e)}function rc(e,t){for(t&=~Ul,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),s=1<<n;e[n]=-1,t&=~s}}function oc(e){if(6&Cl)throw Error(i(327));wc();var t=pt(e,0);if(!(1&t))return nc(e,Je()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var s=mt(e);0!==s&&(t=s,n=ac(e,s))}if(1===n)throw n=Ml,dc(e,0),rc(e,t),nc(e,Je()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Fl,Hl),nc(e,Je()),null}function lc(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Yl=Je()+500,Fa&&Ha())}}function cc(e){null!==ql&&0===ql.tag&&!(6&Cl)&&wc();var t=Cl;Cl|=1;var n=jl.transition,s=yt;try{if(jl.transition=null,yt=1,e)return e()}finally{yt=s,jl.transition=n,!(6&(Cl=t))&&Ha()}}function uc(){Pl=Ol.current,ka(Ol)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Tl)for(n=Tl.return;null!==n;){var s=n;switch(ti(s),s.tag){case 1:null!=(s=s.type.childContextTypes)&&La();break;case 3:Qi(),ka(Ta),ka(Ia),nr();break;case 5:Xi(s);break;case 4:Qi();break;case 13:case 19:ka(Zi);break;case 10:Ci(s.type._context);break;case 22:case 23:uc()}n=n.return}if(Il=e,Tl=e=Oc(e.current,null),Dl=Pl=t,Ll=0,Ml=null,Ul=Rl=El=0,Fl=Nl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(s=(n=Pi[t]).interleaved)){n.interleaved=null;var a=s.next,i=n.pending;if(null!==i){var r=i.next;i.next=a,s.next=r}n.pending=s}Pi=null}return e}function pc(e,t){for(;;){var n=Tl;try{if(ji(),sr.current=Jr,cr){for(var s=rr.memoizedState;null!==s;){var a=s.queue;null!==a&&(a.pending=null),s=s.next}cr=!1}if(ir=0,lr=or=rr=null,ur=!1,dr=0,kl.current=null,null===n||null===n.return){Ll=1,Ml=t,Tl=null;break}e:{var r=e,o=n.return,l=n,c=t;if(t=Dl,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,p=d.tag;if(!(1&d.mode||0!==p&&11!==p&&15!==p)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=fo(o);if(null!==m){m.flags&=-257,bo(m,o,l,0,t),1&m.mode&&go(r,u,t),c=u;var g=(t=m).updateQueue;if(null===g){var f=new Set;f.add(c),t.updateQueue=f}else g.add(c);break e}if(!(1&t)){go(r,u,t),mc();break e}c=Error(i(426))}else if(ai&&1&l.mode){var b=fo(o);if(null!==b){!(65536&b.flags)&&(b.flags|=256),bo(b,o,l,0,t),mi(lo(c,l));break e}}r=c=lo(c,l),4!==Ll&&(Ll=2),null===Nl?Nl=[r]:Nl.push(r),r=o;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t,Yi(r,ho(0,c,t));break e;case 1:l=c;var v=r.type,y=r.stateNode;if(!(128&r.flags||"function"!=typeof v.getDerivedStateFromError&&(null===y||"function"!=typeof y.componentDidCatch||null!==$l&&$l.has(y)))){r.flags|=65536,t&=-t,r.lanes|=t,Yi(r,mo(r,l,t));break e}}r=r.return}while(null!==r)}yc(n)}catch(e){t=e,Tl===n&&null!==n&&(Tl=n=n.return);continue}break}}function hc(){var e=_l.current;return _l.current=Jr,null===e?Jr:e}function mc(){0!==Ll&&3!==Ll&&2!==Ll||(Ll=4),null===Il||!(268435455&El)&&!(268435455&Rl)||rc(Il,Dl)}function gc(e,t){var n=Cl;Cl|=2;var s=hc();for(Il===e&&Dl===t||(Hl=null,dc(e,t));;)try{fc();break}catch(t){pc(e,t)}if(ji(),Cl=n,_l.current=s,null!==Tl)throw Error(i(261));return Il=null,Dl=0,Ll}function fc(){for(;null!==Tl;)vc(Tl)}function bc(){for(;null!==Tl&&!Ke();)vc(Tl)}function vc(e){var t=xl(e.alternate,e,Pl);e.memoizedProps=e.pendingProps,null===t?yc(e):Tl=t,kl.current=null}function yc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=qo(n,t)))return n.flags&=32767,void(Tl=n);if(null===e)return Ll=6,void(Tl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=zo(n,t,Pl)))return void(Tl=n);if(null!==(t=t.sibling))return void(Tl=t);Tl=t=e}while(null!==t);0===Ll&&(Ll=5)}function Sc(e,t,n){var s=yt,a=jl.transition;try{jl.transition=null,yt=1,function(e,t,n,s){do{wc()}while(null!==ql);if(6&Cl)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var r=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-rt(n),i=1<<a;t[a]=0,s[a]=-1,e[a]=-1,n&=~i}}(e,r),e===Il&&(Tl=Il=null,Dl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||zl||(zl=!0,Ic(tt,(function(){return wc(),null}))),r=!!(15990&n.flags),15990&n.subtreeFlags||r){r=jl.transition,jl.transition=null;var o=yt;yt=1;var l=Cl;Cl|=4,kl.current=null,function(e,t){if(ea=Wt,hs(e=ps())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var s=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(s&&0!==s.rangeCount){n=s.anchorNode;var a=s.anchorOffset,r=s.focusNode;s=s.focusOffset;try{n.nodeType,r.nodeType}catch(e){n=null;break e}var o=0,l=-1,c=-1,u=0,d=0,p=e,h=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(l=o+a),p!==r||0!==s&&3!==p.nodeType||(c=o+s),3===p.nodeType&&(o+=p.nodeValue.length),null!==(m=p.firstChild);)h=p,p=m;for(;;){if(p===e)break t;if(h===n&&++u===a&&(l=o),h===r&&++d===s&&(c=o),null!==(m=p.nextSibling))break;h=(p=h).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Wt=!1,Jo=t;null!==Jo;)if(e=(t=Jo).child,1028&t.subtreeFlags&&null!==e)e.return=t,Jo=e;else for(;null!==Jo;){t=Jo;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var f=g.memoizedProps,b=g.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?f:to(t.type,f),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent="":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(i(163))}}catch(e){Ac(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Jo=e;break}Jo=t.return}g=el,el=!1}(e,n),gl(n,e),ms(ta),Wt=!!ea,ta=ea=null,e.current=n,bl(n,e,a),Qe(),Cl=l,yt=o,jl.transition=r}else e.current=n;if(zl&&(zl=!1,ql=e,Gl=a),0===(r=e.pendingLanes)&&($l=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(at,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),nc(e,Je()),null!==t)for(s=e.onRecoverableError,n=0;n<t.length;n++)s((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if(Vl)throw Vl=!1,e=Wl,Wl=null,e;!!(1&Gl)&&0!==e.tag&&wc(),1&(r=e.pendingLanes)?e===Ql?Kl++:(Kl=0,Ql=e):Kl=0,Ha()}(e,t,n,s)}finally{jl.transition=a,yt=s}return null}function wc(){if(null!==ql){var e=St(Gl),t=jl.transition,n=yt;try{if(jl.transition=null,yt=16>e?16:e,null===ql)var s=!1;else{if(e=ql,ql=null,Gl=0,6&Cl)throw Error(i(331));var a=Cl;for(Cl|=4,Jo=e.current;null!==Jo;){var r=Jo,o=r.child;if(16&Jo.flags){var l=r.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Jo=u;null!==Jo;){var d=Jo;switch(d.tag){case 0:case 11:case 15:tl(8,d,r)}var p=d.child;if(null!==p)p.return=d,Jo=p;else for(;null!==Jo;){var h=(d=Jo).sibling,m=d.return;if(al(d),d===u){Jo=null;break}if(null!==h){h.return=m,Jo=h;break}Jo=m}}}var g=r.alternate;if(null!==g){var f=g.child;if(null!==f){g.child=null;do{var b=f.sibling;f.sibling=null,f=b}while(null!==f)}}Jo=r}}if(2064&r.subtreeFlags&&null!==o)o.return=r,Jo=o;else e:for(;null!==Jo;){if(2048&(r=Jo).flags)switch(r.tag){case 0:case 11:case 15:tl(9,r,r.return)}var v=r.sibling;if(null!==v){v.return=r.return,Jo=v;break e}Jo=r.return}}var y=e.current;for(Jo=y;null!==Jo;){var S=(o=Jo).child;if(2064&o.subtreeFlags&&null!==S)S.return=o,Jo=S;else e:for(o=y;null!==Jo;){if(2048&(l=Jo).flags)try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(e){Ac(l,l.return,e)}if(l===o){Jo=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Jo=w;break e}Jo=l.return}}if(Cl=a,Ha(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(at,e)}catch(e){}s=!0}return s}finally{yt=n,jl.transition=t}}return!1}function xc(e,t,n){e=Fi(e,t=ho(0,t=lo(n,t),1),1),t=Zl(),null!==e&&(bt(e,1,t),nc(e,t))}function Ac(e,t,n){if(3===e.tag)xc(e,e,n);else for(;null!==t;){if(3===t.tag){xc(t,e,n);break}if(1===t.tag){var s=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&(null===$l||!$l.has(s))){t=Fi(t,e=mo(t,e=lo(n,e),1),1),e=Zl(),null!==t&&(bt(t,1,e),nc(t,e));break}}t=t.return}}function _c(e,t,n){var s=e.pingCache;null!==s&&s.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,Il===e&&(Dl&n)===n&&(4===Ll||3===Ll&&(130023424&Dl)===Dl&&500>Je()-Bl?dc(e,0):Ul|=n),nc(e,t)}function kc(e,t){0===t&&(1&e.mode?(t=ut,!(130023424&(ut<<=1))&&(ut=4194304)):t=1);var n=Zl();null!==(e=Mi(e,t))&&(bt(e,t,n),nc(e,n))}function jc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),kc(e,n)}function Cc(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}null!==s&&s.delete(t),kc(e,n)}function Ic(e,t){return qe(e,t)}function Tc(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dc(e,t,n,s){return new Tc(e,t,n,s)}function Pc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Oc(e,t){var n=e.alternate;return null===n?((n=Dc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Lc(e,t,n,s,a,r){var o=2;if(s=e,"function"==typeof e)Pc(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case A:return Mc(n.children,a,r,t);case _:o=8,a|=8;break;case k:return(e=Dc(12,n,t,2|a)).elementType=k,e.lanes=r,e;case T:return(e=Dc(13,n,t,a)).elementType=T,e.lanes=r,e;case D:return(e=Dc(19,n,t,a)).elementType=D,e.lanes=r,e;case L:return Ec(n,a,r,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:o=10;break e;case C:o=9;break e;case I:o=11;break e;case P:o=14;break e;case O:o=16,s=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Dc(o,n,t,a)).elementType=e,t.type=s,t.lanes=r,t}function Mc(e,t,n,s){return(e=Dc(7,e,s,t)).lanes=n,e}function Ec(e,t,n,s){return(e=Dc(22,e,s,t)).elementType=L,e.lanes=n,e.stateNode={isHidden:!1},e}function Rc(e,t,n){return(e=Dc(6,e,null,t)).lanes=n,e}function Uc(e,t,n){return(t=Dc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Nc(e,t,n,s,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ft(0),this.expirationTimes=ft(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ft(0),this.identifierPrefix=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,s,a,i,r,o,l){return e=new Nc(e,t,n,o,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Dc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Bc(e){if(!e)return Ca;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Oa(n))return Ea(e,n,t)}return t}function Yc(e,t,n,s,a,i,r,o,l){return(e=Fc(n,s,!0,e,0,i,0,o,l)).context=Bc(null),n=e.current,(i=Ni(s=Zl(),a=ec(n))).callback=null!=t?t:null,Fi(n,i,a),e.current.lanes=a,bt(e,a,s),nc(e,s),e}function Hc(e,t,n,s){var a=t.current,i=Zl(),r=ec(a);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ni(i,r)).payload={element:e},null!==(s=void 0===s?null:s)&&(t.callback=s),null!==(e=Fi(a,t,r))&&(tc(e,a,r,i),Bi(e,a,r)),r}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function $c(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}xl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ta.current)yo=!0;else{if(!(e.lanes&n||128&t.flags))return yo=!1,function(e,t,n){switch(t.tag){case 3:To(t),hi();break;case 5:Ji(t);break;case 1:Oa(t.type)&&Ra(t);break;case 4:Ki(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,a=t.memoizedProps.value;ja(xi,s._currentValue),s._currentValue=a;break;case 13:if(null!==(s=t.memoizedState))return null!==s.dehydrated?(ja(Zi,1&Zi.current),t.flags|=128,null):n&t.child.childLanes?Ro(e,t,n):(ja(Zi,1&Zi.current),null!==(e=Vo(e,t,n))?e.sibling:null);ja(Zi,1&Zi.current);break;case 19:if(s=!!(n&t.childLanes),128&e.flags){if(s)return Yo(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ja(Zi,Zi.current),s)break;return null;case 22:case 23:return t.lanes=0,_o(e,t,n)}return Vo(e,t,n)}(e,t,n);yo=!!(131072&e.flags)}else yo=!1,ai&&1048576&t.flags&&Za(t,za,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ho(e,t),e=t.pendingProps;var a=Pa(t,Ia.current);Ti(t,n),a=gr(null,t,s,e,a,n);var r=fr();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(s)?(r=!0,Ra(t)):r=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ri(t),a.updater=so,t.stateNode=a,a._reactInternals=t,oo(t,s,e,n),t=Io(null,t,s,!0,r,n)):(t.tag=0,ai&&r&&ei(t),So(null,t,a,n),t=t.child),t;case 16:s=t.elementType;e:{switch(Ho(e,t),e=t.pendingProps,s=(a=s._init)(s._payload),t.type=s,a=t.tag=function(e){if("function"==typeof e)return Pc(e)?1:0;if(null!=e){if((e=e.$$typeof)===I)return 11;if(e===P)return 14}return 2}(s),e=to(s,e),a){case 0:t=jo(null,t,s,e,n);break e;case 1:t=Co(null,t,s,e,n);break e;case 11:t=wo(null,t,s,e,n);break e;case 14:t=xo(null,t,s,to(s.type,e),n);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,a=t.pendingProps,jo(e,t,s,a=t.elementType===s?a:to(s,a),n);case 1:return s=t.type,a=t.pendingProps,Co(e,t,s,a=t.elementType===s?a:to(s,a),n);case 3:e:{if(To(t),null===e)throw Error(i(387));s=t.pendingProps,a=(r=t.memoizedState).element,Ui(e,t),Hi(t,s,null,n);var o=t.memoizedState;if(s=o.element,r.isDehydrated){if(r={element:s,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=r,t.memoizedState=r,256&t.flags){t=Do(e,t,s,n,a=lo(Error(i(423)),t));break e}if(s!==a){t=Do(e,t,s,n,a=lo(Error(i(424)),t));break e}for(si=ca(t.stateNode.containerInfo.firstChild),ni=t,ai=!0,ii=null,n=wi(t,null,s,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(hi(),s===a){t=Vo(e,t,n);break e}So(e,t,s,n)}t=t.child}return t;case 5:return Ji(t),null===e&&ci(t),s=t.type,a=t.pendingProps,r=null!==e?e.memoizedProps:null,o=a.children,na(s,a)?o=null:null!==r&&na(s,r)&&(t.flags|=32),ko(e,t),So(e,t,o,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ro(e,t,n);case 4:return Ki(t,t.stateNode.containerInfo),s=t.pendingProps,null===e?t.child=Si(t,null,s,n):So(e,t,s,n),t.child;case 11:return s=t.type,a=t.pendingProps,wo(e,t,s,a=t.elementType===s?a:to(s,a),n);case 7:return So(e,t,t.pendingProps,n),t.child;case 8:case 12:return So(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(s=t.type._context,a=t.pendingProps,r=t.memoizedProps,o=a.value,ja(xi,s._currentValue),s._currentValue=o,null!==r)if(os(r.value,o)){if(r.children===a.children&&!Ta.current){t=Vo(e,t,n);break e}}else for(null!==(r=t.child)&&(r.return=t);null!==r;){var l=r.dependencies;if(null!==l){o=r.child;for(var c=l.firstContext;null!==c;){if(c.context===s){if(1===r.tag){(c=Ni(-1,n&-n)).tag=2;var u=r.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}r.lanes|=n,null!==(c=r.alternate)&&(c.lanes|=n),Ii(r.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===r.tag)o=r.type===t.type?null:r.child;else if(18===r.tag){if(null===(o=r.return))throw Error(i(341));o.lanes|=n,null!==(l=o.alternate)&&(l.lanes|=n),Ii(o,n,t),o=r.sibling}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===t){o=null;break}if(null!==(r=o.sibling)){r.return=o.return,o=r;break}o=o.return}r=o}So(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,s=t.pendingProps.children,Ti(t,n),s=s(a=Di(a)),t.flags|=1,So(e,t,s,n),t.child;case 14:return a=to(s=t.type,t.pendingProps),xo(e,t,s,a=to(s.type,a),n);case 15:return Ao(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,a=t.pendingProps,a=t.elementType===s?a:to(s,a),Ho(e,t),t.tag=1,Oa(s)?(e=!0,Ra(t)):e=!1,Ti(t,n),io(t,s,a),oo(t,s,a,n),Io(null,t,s,!0,e,n);case 19:return Yo(e,t,n);case 22:return _o(e,t,n)}throw Error(i(156,t.tag))};var zc="function"==typeof reportError?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}function Gc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Xc(e,t,n,s,a){var i=n._reactRootContainer;if(i){var r=i;if("function"==typeof a){var o=a;a=function(){var e=Vc(r);o.call(e)}}Hc(t,r,e,a)}else r=function(e,t,n,s,a){if(a){if("function"==typeof s){var i=s;s=function(){var e=Vc(r);i.call(e)}}var r=Yc(t,s,e,0,null,!1,0,"",Jc);return e._reactRootContainer=r,e[ma]=r.current,Hs(8===e.nodeType?e.parentNode:e),cc(),r}for(;a=e.lastChild;)e.removeChild(a);if("function"==typeof s){var o=s;s=function(){var e=Vc(l);o.call(e)}}var l=Fc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[ma]=l.current,Hs(8===e.nodeType?e.parentNode:e),cc((function(){Hc(t,l,n,s)})),l}(n,t,e,a,s);return Vc(r)}Gc.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hc(e,t,null,null)},Gc.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc((function(){Hc(null,e,null,null)})),t[ma]=null}},Gc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lt.length&&0!==t&&t<Lt[n].priority;n++);Lt.splice(n,0,e),0===n&&Ut(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),nc(t,Je()),!(6&Cl)&&(Yl=Je()+500,Ha()))}break;case 13:cc((function(){var t=Mi(e,1);if(null!==t){var n=Zl();tc(t,e,1,n)}})),$c(e,1)}},xt=function(e){if(13===e.tag){var t=Mi(e,134217728);null!==t&&tc(t,e,134217728,Zl()),$c(e,134217728)}},At=function(e){if(13===e.tag){var t=ec(e),n=Mi(e,t);null!==n&&tc(n,e,t,Zl()),$c(e,t)}},_t=function(){return yt},kt=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},xe=function(e,t,n){switch(t){case"input":if(X(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var a=wa(s);if(!a)throw Error(i(90));q(s),X(s,a)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ie=lc,Te=cc;var Zc={usingClientEntryPoint:!1,Events:[ya,Sa,wa,je,Ce,lc]},eu={findFiberByHostInstance:va,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{at=nu.inject(tu),it=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(i(200));return function(e,t,n){var s=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==s?null:""+s,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(i(299));var n=!1,s="",a=zc;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(s=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Fc(e,1,!1,null,0,n,0,s,a),e[ma]=t.current,Hs(8===e.nodeType?e.parentNode:e),new qc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return cc(e)},t.hydrate=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(i(405));var s=null!=n&&n.hydratedSources||null,a=!1,r="",o=zc;if(null!=n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onRecoverableError&&(o=n.onRecoverableError)),t=Yc(t,null,e,1,null!=n?n:null,a,0,r,o),e[ma]=t.current,Hs(e),s)for(e=0;e<s.length;e++)a=(a=(n=s[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Gc(t)},t.render=function(e,t,n){if(!Qc(t))throw Error(i(200));return Xc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Qc(e))throw Error(i(40));return!!e._reactRootContainer&&(cc((function(){Xc(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Qc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Xc(e,t,n,!1,s)},t.version="18.3.1-next-f1338f8080-20240426"},5338(e,t,n){"use strict";var s=n(40961);t.H=s.createRoot,s.hydrateRoot},40961(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(22551)},22799(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,s=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,r=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,S=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case s:switch(e=e.type){case u:case d:case i:case o:case r:case h:return e;default:switch(e=e&&e.$$typeof){case c:case p:case f:case g:case l:return e;default:return t}}case a:return t}}}function x(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=s,t.ForwardRef=p,t.Fragment=i,t.Lazy=f,t.Memo=g,t.Portal=a,t.Profiler=o,t.StrictMode=r,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||w(e)===u},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===f},t.isMemo=function(e){return w(e)===g},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===o},t.isStrictMode=function(e){return w(e)===r},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===o||e===r||e===h||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===S||e.$$typeof===b)},t.typeOf=w},44363(e,t,n){"use strict";e.exports=n(22799)},28989(e,t){"use strict";var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case a:case r:case i:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case l:case u:case m:case h:case o:return e;default:return t}}case s:return t}}}(e)===l}},54737(e,t,n){"use strict";e.exports=n(28989)},21020(e,t,n){"use strict";var s=n(96540),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var s,i={},c=null,u=null;for(s in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)r.call(t,s)&&!l.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps)void 0===i[s]&&(i[s]=t[s]);return{$$typeof:a,type:e,key:c,ref:u,props:i,_owner:o.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},15287(e,t){"use strict";var n=Symbol.for("react.element"),s=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,f={};function b(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=f,this.updater=n||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var S=y.prototype=new v;S.constructor=y,g(S,b.prototype),S.isPureReactComponent=!0;var w=Array.isArray,x=Object.prototype.hasOwnProperty,A={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,s){var a,i={},r=null,o=null;if(null!=t)for(a in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(r=""+t.key),t)x.call(t,a)&&!_.hasOwnProperty(a)&&(i[a]=t[a]);var l=arguments.length-2;if(1===l)i.children=s;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===i[a]&&(i[a]=l[a]);return{$$typeof:n,type:e,key:r,ref:o,props:i,_owner:A.current}}function j(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function I(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,a,i,r){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l=!1;if(null===e)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case s:l=!0}}if(l)return r=r(l=e),e=""===i?"."+I(l,0):i,w(r)?(a="",null!=e&&(a=e.replace(C,"$&/")+"/"),T(r,t,a,"",(function(e){return e}))):null!=r&&(j(r)&&(r=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(r,a+(!r.key||l&&l.key===r.key?"":(""+r.key).replace(C,"$&/")+"/")+e)),t.push(r)),1;if(l=0,i=""===i?".":i+":",w(e))for(var c=0;c<e.length;c++){var u=i+I(o=e[c],c);l+=T(o,t,a,u,r)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"==typeof u)for(e=u.call(e),c=0;!(o=e.next()).done;)l+=T(o=o.value,t,a,u=i+I(o,c++),r);else if("object"===o)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var s=[],a=0;return T(e,s,"","",(function(e){return t.call(n,e,a++)})),s}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},L={transition:null},M={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:L,ReactCurrentOwner:A};function E(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:D,forEach:function(e,t,n){D(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return D(e,(function(){t++})),t},toArray:function(e){return D(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=b,t.Fragment=a,t.Profiler=r,t.PureComponent=y,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,t.act=E,t.cloneElement=function(e,t,s){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=g({},e.props),i=e.key,r=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(r=t.ref,o=A.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)x.call(t,c)&&!_.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=s;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:i,ref:r,props:a,_owner:o}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},t.unstable_act=E,t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.3.1"},96540(e,t,n){"use strict";e.exports=n(15287)},74848(e,t,n){"use strict";e.exports=n(21020)},74728(e,t,n){const s=n(30378),a=n(52834),{isPlainObject:i}=n(78682),r=n(14744),o=n(29466),{parse:l}=n(12895),{naughtyHref:c}=n(33624),u=["img","audio","video","picture","svg","object","map","iframe","embed"],d=["script","style"];function p(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function h(e,t){return{}.hasOwnProperty.call(e,t)}function m(e,t){const n=[];return p(e,(function(e){t(e)&&n.push(e)})),n}e.exports=f;const g=/^[^\0\t\n\f\r /<=>]+$/;function f(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let v="",y="";function S(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){P.length&&(P[P.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){P.length&&u.includes(this.tag)&&P[P.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},f.defaults,t)).parser=Object.assign({},b,t.parser);const w=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};d.forEach((function(e){w(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const x=t.nonTextTags||["script","style","textarea","option","xmp"];let A,_;t.allowedAttributes&&(A={},_={},p(t.allowedAttributes,(function(e,t){A[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(a(e).replace(/\\\*/g,".*")):A[t].push(e)})),n.length&&(_[t]=new RegExp("^("+n.join("|")+")$"))})));const k={},j={},C={};p(t.allowedClasses,(function(e,t){if(A&&(h(A,t)||(A[t]=[]),A[t].push("class")),k[t]=e,Array.isArray(e)){const n=[];k[t]=[],C[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(a(e).replace(/\\\*/g,".*")):e instanceof RegExp?C[t].push(e):k[t].push(e)})),n.length&&(j[t]=new RegExp("^("+n.join("|")+")$"))}}));const I={};let T,D,P,O,L,M,E;p(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=f.simpleTransform(e)),"*"===t?T=n:I[t]=n}));let R=!1;N();const U=new s.Parser({onopentag:function(e,n){if(t.onOpenTag&&t.onOpenTag(e,n),t.enforceHtmlBoundary&&"html"===e&&N(),M)return void E++;const s=new S(e,n);P.push(s);let a=!1;const c=!!s.text;let u;if(h(I,e)&&(u=I[e](e,n),s.attribs=n=u.attribs,void 0!==u.text&&(s.innerText=u.text),e!==u.tagName&&(s.name=e=u.tagName,L[D]=u.tagName)),T&&(u=T(e,n),s.attribs=n=u.attribs,e!==u.tagName&&(s.name=e=u.tagName,L[D]=u.tagName)),(!w(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(h(e,t))return!1;return!0}(O)||null!=t.nestingLimit&&D>=t.nestingLimit)&&(a=!0,O[D]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==x.indexOf(e)&&(M=!0,E=1)),D++,a){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode){if(s.innerText&&!c){const n=F(s.innerText);t.textFilter?v+=t.textFilter(n,e):v+=n,R=!0}return}y=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(s.innerText=""),a&&("escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode)&&t.preserveEscapedAttributes?p(n,(function(e,t){v+=" "+t+'="'+F(e||"",!0)+'"'})):(!A||h(A,e)||A["*"])&&p(n,(function(n,a){if(!g.test(a))return void delete s.attribs[a];if(""===n&&!t.allowedEmptyAttributes.includes(a)&&(t.nonBooleanAttributes.includes(a)||t.nonBooleanAttributes.includes("*")))return void delete s.attribs[a];let c=!1;if(!A||h(A,e)&&-1!==A[e].indexOf(a)||A["*"]&&-1!==A["*"].indexOf(a)||h(_,e)&&_[e].test(a)||_["*"]&&_["*"].test(a))c=!0;else if(A&&A[e])for(const t of A[e])if(i(t)&&t.name&&t.name===a){c=!0;let e="";if(!0===t.multiple){const s=n.split(" ");for(const n of s)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(a)&&B(e,n))return void delete s.attribs[a];if("script"===e&&"src"===a){let e=!0;try{const s=Y(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===s.url.hostname})),a=(t.allowedScriptDomains||[]).find((function(e){return s.url.hostname===e||s.url.hostname.endsWith(`.${e}`)}));e=n||a}}catch(t){e=!1}if(!e)return void delete s.attribs[a]}if("iframe"===e&&"src"===a){let e=!0;try{const s=Y(n);if(s.isRelativeUrl)e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===s.url.hostname})),a=(t.allowedIframeDomains||[]).find((function(e){return s.url.hostname===e||s.url.hostname.endsWith(`.${e}`)}));e=n||a}}catch(t){e=!1}if(!e)return void delete s.attribs[a]}if("srcset"===a)try{let e=o(n);if(e.forEach((function(e){B("srcset",e.url)&&(e.evil=!0)})),e=m(e,(function(e){return!e.evil})),!e.length)return void delete s.attribs[a];n=m(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(", "),s.attribs[a]=n}catch(e){return void delete s.attribs[a]}if("class"===a){const t=k[e],i=k["*"],o=j[e],l=C[e],c=C["*"],h=[o,j["*"]].concat(l,c).filter((function(e){return e}));if(!(u=n,d=t&&i?r(t,i):t||i,p=h,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||p.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete s.attribs[a]}if("style"===a)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let s;return s=t[n.selector]&&t["*"]?r(t[n.selector],t["*"]):t[n.selector]||t["*"],s&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return h(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(s),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete s.attribs[a]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete s.attribs[a]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");v+=" "+a,n&&n.length?v+='="'+F(n,!0)+'"':t.allowedEmptyAttributes.includes(a)&&(v+='=""')}else delete s.attribs[a];var u,d,p})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!s.innerText||c||t.textFilter||(v+=F(s.innerText),R=!0)),a&&(v=y+F(v),y=""),s.openingTagLength=v.length-s.tagPosition},ontext:function(e){if(M)return;const n=P[P.length-1];let s;if(n&&(s=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||w(s))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==s&&"style"!==s)if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"textarea"!==s&&"xmp"!==s){if(!R){const n=F(e,!1);t.textFilter?v+=t.textFilter(n,s):v+=n}}else v+=e;else v+=e;else e="";P.length&&(P[P.length-1].text+=e)},onclosetag:function(e,n){if(t.onCloseTag&&t.onCloseTag(e,n),M){if(E--,E)return;M=!1}const s=P.pop();if(!s)return;if(s.tag!==e)return void P.push(s);M=!!t.enforceHtmlBoundary&&"html"===e,D--;const a=O[D];if(a){if(delete O[D],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void s.updateParentNodeText();y=v,v=""}if(L[D]&&(e=L[D],delete L[D]),t.exclusiveFilter){const e=t.exclusiveFilter(s);if("excludeTag"===e)return a&&(v=y,y=""),void(v=v.substring(0,s.tagPosition)+v.substring(s.tagPosition+s.openingTagLength));if(e)return void(v=v.substring(0,s.tagPosition))}s.updateParentNodeMediaChildren(),s.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!w(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?a&&(v=y,y=""):(v+="</"+e+">",a&&(v=y+F(v),y=""),R=!1)}},t.parser);if(U.write(e),U.end(),"escape"===t.disallowedTagsMode||"recursiveEscape"===t.disallowedTagsMode){const t=U.endIndex;if(null!=t&&t>=0&&t<e.length){const n=e.substring(t);v+=F(n)}else(null==t||t<0)&&e.length>0&&""===v&&(v=F(e))}return v;function N(){v="",D=0,P=[],O={},L={},M=!1,E=0}function F(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),e}function B(e,n){const s=h(t.allowedSchemesByTag,e)?t.allowedSchemesByTag[e]:t.allowedSchemes||[];return c(n,{allowedSchemes:s,allowProtocolRelative:t.allowProtocolRelative})}function Y(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const b={decodeEntities:!0};f.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"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1},f.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(s,a){let i;if(n)for(i in t)a[i]=t[i];else a=t;return{tagName:e,attribs:a}}}},7463(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var s=n-1>>>1,a=e[s];if(!(0<i(a,t)))break e;e[s]=t,e[n]=a,n=s}}function s(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var s=0,a=e.length,r=a>>>1;s<r;){var o=2*(s+1)-1,l=e[o],c=o+1,u=e[c];if(0>i(l,n))c<a&&0>i(u,l)?(e[s]=u,e[c]=n,s=c):(e[s]=l,e[o]=n,s=o);else{if(!(c<a&&0>i(u,n)))break e;e[s]=u,e[c]=n,s=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var r=performance;t.unstable_now=function(){return r.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],u=[],d=1,p=null,h=3,m=!1,g=!1,f=!1,b="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var t=s(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=s(u)}}function w(e){if(f=!1,S(e),!g)if(null!==s(c))g=!0,L(x);else{var t=s(u);null!==t&&M(w,t.startTime-e)}}function x(e,n){g=!1,f&&(f=!1,v(j),j=-1),m=!0;var i=h;try{for(S(n),p=s(c);null!==p&&(!(p.expirationTime>n)||e&&!T());){var r=p.callback;if("function"==typeof r){p.callback=null,h=p.priorityLevel;var o=r(p.expirationTime<=n);n=t.unstable_now(),"function"==typeof o?p.callback=o:p===s(c)&&a(c),S(n)}else a(c);p=s(c)}if(null!==p)var l=!0;else{var d=s(u);null!==d&&M(w,d.startTime-n),l=!1}return l}finally{p=null,h=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var A,_=!1,k=null,j=-1,C=5,I=-1;function T(){return!(t.unstable_now()-I<C)}function D(){if(null!==k){var e=t.unstable_now();I=e;var n=!0;try{n=k(!0,e)}finally{n?A():(_=!1,k=null)}}else _=!1}if("function"==typeof y)A=function(){y(D)};else if("undefined"!=typeof MessageChannel){var P=new MessageChannel,O=P.port2;P.port1.onmessage=D,A=function(){O.postMessage(null)}}else A=function(){b(D,0)};function L(e){k=e,_||(_=!0,A())}function M(e,n){j=b((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||m||(g=!0,L(x))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return s(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,a,i){var r=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?r+i:r,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:i,expirationTime:o=i+o,sortIndex:-1},i>r?(e.sortIndex=i,n(u,e),null===s(c)&&e===s(u)&&(f?(v(j),j=-1):f=!0,M(w,i-r))):(e.sortIndex=o,n(c,e),g||m||(g=!0,L(x))),e},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},69982(e,t,n){"use strict";e.exports=n(7463)},45192(e,t,n){"use strict";n(93940),t.parse=n(29563)},29563(e){"use strict";for(var t="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",n=new RegExp("^"+t+"$"),s="|&;()<> \\t",a=/^#$/,i="",r=0;r<4;r++)i+=(4294967296*Math.random()).toString(16);var o=new RegExp("^"+i);e.exports=function(e,r,l){var c=function(e,r,o){o||(o={});var l=o.escape||"\\",c=new RegExp(["("+t+")","((\\"+l+"['\""+s+"]|[^\\s'\""+s+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),u=function(e,t){for(var n,s=t.lastIndex,a=[];n=t.exec(e);)a.push(n),t.lastIndex===n.index&&(t.lastIndex+=1);return t.lastIndex=s,a}(e,c);if(0===u.length)return[];r||(r={});var d=!1;return u.map((function(t){var s=t[0];if(s&&!d){if(n.test(s))return{op:s};var o,c=!1,u=!1,p="",h=!1;for(o=0;o<s.length;o++){var m=s.charAt(o);if(h=h||!c&&("*"===m||"?"===m),u)p+=m,u=!1;else if(c)m===c?c=!1:"'"==c?p+=m:m===l?(o+=1,p+='"'===(m=s.charAt(o))||m===l||"$"===m?m:l+m):p+="$"===m?f():m;else if('"'===m||"'"===m)c=m;else{if(n.test(m))return{op:s};if(a.test(m)){d=!0;var g={comment:e.slice(t.index+o+1)};return p.length?[p,g]:[g]}m===l?u=!0:p+="$"===m?f():m}}return h?{op:"glob",pattern:p}:p}function f(){var e,t;o+=1;var n=s.charAt(o);if("{"===n){if(o+=1,"}"===s.charAt(o))throw new Error("Bad substitution: "+s.slice(o-2,o+1));if((e=s.indexOf("}",o))<0)throw new Error("Bad substitution: "+s.slice(o));t=s.slice(o,e),o=e}else if(/[*@#?$!_-]/.test(n))t=n,o+=1;else{var a=s.slice(o);(e=a.match(/[^\w\d_]/))?(t=a.slice(0,e.index),o+=e.index-1):(t=a,o=s.length)}return function(e,t,n){var s="function"==typeof e?e(n):e[n];return void 0===s&&""!=n?s="":void 0===s&&(s="$"),"object"==typeof s?""+i+JSON.stringify(s)+i:""+s}(r,0,t)}})).reduce((function(e,t){return void 0===t?e:e.concat(t)}),[])}(e,r,l);return"function"!=typeof r?c:c.reduce((function(e,t){if("object"==typeof t)return e.concat(t);var n=t.split(RegExp("("+i+".*?"+i+")","g"));return 1===n.length?e.concat(n[0]):e.concat(n.filter(Boolean).map((function(e){return o.test(e)?JSON.parse(e.split(i)[1]):e})))}),[])}},93940(e){"use strict";var t=["||","&&",";;","|&","<(","<<<",">>",">&","<&","&",";","(",")","|","<",">"],n=/[\n\r\u2028\u2029]/,s=/[\s#!"$&'():;<=>@\\^`|]/g;e.exports=function(e){return e.map((function(e){if(""===e)return"''";if(e&&"object"==typeof e){if("glob"===e.op){if("string"!=typeof e.pattern)throw new TypeError("glob token requires a string `pattern`");if(n.test(e.pattern))throw new TypeError("glob `pattern` must not contain line terminators");return e.pattern.replace(s,"\\$&")}if("string"==typeof e.op){if(t.indexOf(e.op)<0)throw new TypeError("invalid `op` value: "+JSON.stringify(e.op));return e.op.replace(/[\s\S]/g,"\\$&")}if("string"==typeof e.comment){if(n.test(e.comment))throw new TypeError("`comment` must not contain line terminators");return"#"+e.comment}throw new TypeError("unrecognized object token shape")}return/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")})).join(" ")}},14803(e,t,n){"use strict";var s=n(58859),a=n(69675),i=function(e,t,n){for(var s,a=e;null!=(s=a.next);a=s)if(s.key===t)return a.next=s.next,n||(s.next=e.next,e.next=s),s};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new a("Side channel does not contain "+s(e))},delete:function(t){var n=e&&e.next,s=function(e,t){if(e)return i(e,t,!0)}(e,t);return s&&n&&n===s&&(e=void 0),!!s},get:function(t){return function(e,t){if(e){var n=i(e,t);return n&&n.value}}(e,t)},has:function(t){return function(e,t){return!!e&&!!i(e,t)}(e,t)},set:function(t,n){e||(e={next:void 0}),function(e,t,n){var s=i(e,t);s?s.value=n:e.next={key:t,next:e.next,value:n}}(e,t,n)}};return t}},80507(e,t,n){"use strict";var s=n(70453),a=n(36556),i=n(58859),r=n(69675),o=s("%Map%",!0),l=a("Map.prototype.get",!0),c=a("Map.prototype.set",!0),u=a("Map.prototype.has",!0),d=a("Map.prototype.delete",!0),p=a("Map.prototype.size",!0);e.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+i(e))},delete:function(t){if(e){var n=d(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return l(e,t)},has:function(t){return!!e&&u(e,t)},set:function(t,n){e||(e=new o),c(e,t,n)}};return t}},72271(e,t,n){"use strict";var s=n(70453),a=n(36556),i=n(58859),r=n(80507),o=n(69675),l=s("%WeakMap%",!0),c=a("WeakMap.prototype.get",!0),u=a("WeakMap.prototype.set",!0),d=a("WeakMap.prototype.has",!0),p=a("WeakMap.prototype.delete",!0);e.exports=l?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},delete:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(r&&t)return t.delete(n);return!1},get:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):t&&t.get(n)},has:function(n){return l&&n&&("object"==typeof n||"function"==typeof n)&&e?d(e,n):!!t&&t.has(n)},set:function(n,s){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),u(e,n,s)):r&&(t||(t=r()),t.set(n,s))}};return n}:r},920(e,t,n){"use strict";var s=n(69675),a=n(58859),i=n(14803),r=n(80507),o=n(72271)||r||i;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||(e=o()),e.set(t,n)}};return t}},38338(e,t){var n,s;s=this,void 0===(n=function(){return s.svg4everybody=function(){function e(e,t,n){if(n){var s=document.createDocumentFragment(),a=!t.hasAttribute("viewBox")&&n.getAttribute("viewBox");a&&t.setAttribute("viewBox",a);for(var i=n.cloneNode(!0);i.childNodes.length;)s.appendChild(i.firstChild);e.appendChild(s)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var n=t._cachedDocument;n||((n=t._cachedDocument=document.implementation.createHTMLDocument("")).body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map((function(s){var a=t._cachedTarget[s.id];a||(a=t._cachedTarget[s.id]=n.getElementById(s.id)),e(s.parent,s.svg,a)}))}},t.onreadystatechange()}function n(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return function(s){var a,i=Object(s),r=window.top!==window.self;a="polyfill"in i?i.polyfill:/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/.test(navigator.userAgent)||(navigator.userAgent.match(/\bEdge\/12\.(\d+)\b/)||[])[1]<10547||(navigator.userAgent.match(/\bAppleWebKit\/(\d+)\b/)||[])[1]<537||/\bEdge\/.(\d+)\b/.test(navigator.userAgent)&&r;var o={},l=window.requestAnimationFrame||setTimeout,c=document.getElementsByTagName("use"),u=0;a&&function s(){for(var r=0;r<c.length;){var d=c[r],p=d.parentNode,h=n(p),m=d.getAttribute("xlink:href")||d.getAttribute("href");if(!m&&i.attributeName&&(m=d.getAttribute(i.attributeName)),h&&m){if(a)if(!i.validate||i.validate(m,h,d)){p.removeChild(d);var g=m.split("#"),f=g.shift(),b=g.join("#");if(f.length){var v=o[f];v||((v=o[f]=new XMLHttpRequest).open("GET",f),v.send(),v._embeds=[]),v._embeds.push({parent:p,svg:h,id:b}),t(v)}else e(p,h,document.getElementById(b))}else++r,++u}else++r}(!c.length||c.length-u>0)&&l(s,67)}()}}()}.apply(t,[]))||(e.exports=n)},16426(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],s=0;s<e.rangeCount;s++)n.push(e.getRangeAt(s));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},21430(e,t,n){var s,a;!function(i,r){"use strict";e.exports?e.exports=r():void 0===(a="function"==typeof(s=r)?s.call(t,n,t,e):s)||(e.exports=a)}(0,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,n,s=e.toLowerCase().split(":"),a=s.length,i=8;for(""===s[0]&&""===s[1]&&""===s[2]?(s.shift(),s.shift()):""===s[0]&&""===s[1]?s.shift():""===s[a-1]&&""===s[a-2]&&s.pop(),-1!==s[(a=s.length)-1].indexOf(".")&&(i=7),t=0;t<a&&""!==s[t];t++);if(t<i)for(s.splice(t,1,"0000");s.length<i;)s.splice(t,0,"0000");for(var r=0;r<i;r++){n=s[r].split("");for(var o=0;o<3&&"0"===n[0]&&n.length>1;o++)n.splice(0,1);s[r]=n.join("")}var l=-1,c=0,u=0,d=-1,p=!1;for(r=0;r<i;r++)p?"0"===s[r]?u+=1:(p=!1,u>c&&(l=d,c=u)):"0"===s[r]&&(p=!0,d=r,u=1);u>c&&(l=d,c=u),c>1&&s.splice(l,c,""),a=s.length;var h="";for(""===s[0]&&(h=":"),r=0;r<a&&(h+=s[r],r!==a-1);r++)h+=":";return""===s[a-1]&&(h+=":"),h},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))},4704(e,t,n){var s,a;!function(i,r){"use strict";e.exports?e.exports=r():void 0===(a="function"==typeof(s=r)?s.call(t,n,t,e):s)||(e.exports=a)}(0,(function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var s=e.lastIndexOf(".",t-1);if(s<=0||s>=t-1)return!1;var a=n.list[e.slice(t+1)];return!!a&&a.indexOf(" "+e.slice(s+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var s=n.list[e.slice(t+1)];return!!s&&s.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var s=e.lastIndexOf(".",t-1);if(s<=0||s>=t-1)return null;var a=n.list[e.slice(t+1)];return a?a.indexOf(" "+e.slice(s+1,t)+" ")<0?null:e.slice(s+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n}))},84193(e,t,n){var s,a,i;!function(r,o){"use strict";e.exports?e.exports=o(n(39340),n(21430),n(4704)):(a=[n(39340),n(21430),n(4704)],void 0===(i="function"==typeof(s=o)?s.apply(t,a):s)||(e.exports=i))}(0,(function(e,t,n,s){"use strict";var a=s&&s.URI;function i(e,t){var n=arguments.length>=1;if(!(this instanceof i))return n?arguments.length>=2?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}if(null===e&&n)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}i.version="1.19.11";var r=i.prototype,o=Object.prototype.hasOwnProperty;function l(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function c(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function u(e){return"Array"===c(e)}function d(e,t){var n,s,a={};if("RegExp"===c(t))a=null;else if(u(t))for(n=0,s=t.length;n<s;n++)a[t[n]]=!0;else a[t]=!0;for(n=0,s=e.length;n<s;n++)(a&&void 0!==a[e[n]]||!a&&t.test(e[n]))&&(e.splice(n,1),s--,n--);return e}function p(e,t){var n,s;if(u(t)){for(n=0,s=t.length;n<s;n++)if(!p(e,t[n]))return!1;return!0}var a=c(t);for(n=0,s=e.length;n<s;n++)if("RegExp"===a){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function h(e,t){if(!u(e)||!u(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,s=e.length;n<s;n++)if(e[n]!==t[n])return!1;return!0}function m(e){return e.replace(/^\/+|\/+$/g,"")}function g(e){return escape(e)}function f(e){return encodeURIComponent(e).replace(/[!'()*]/g,g).replace(/\*/g,"%2A")}i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:i.preventInvalidHostname,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.preventInvalidHostname=!1,i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\._-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},i.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.hostProtocols=["http","https"],i.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=f,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=f,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var b,v={encode:"encode",decode:"decode"},y=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,(function(n){return i.characters[e][t].map[n]}))}catch(e){return n}}};for(b in v)i[b+"PathSegment"]=y("pathname",v[b]),i[b+"UrnPathSegment"]=y("urnpath",v[b]);var S=function(e,t,n){return function(s){var a;a=n?function(e){return i[t](i[n](e))}:i[t];for(var r=(s+"").split(e),o=0,l=r.length;o<l;o++)r[o]=a(r[o]);return r.join(e)}};function w(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function x(e,t){return function(n,s){return void 0===n?this._parts[e]||"":(null!==n&&(n+="").charAt(0)===t&&(n=n.substring(1)),this._parts[e]=n,this.build(!s),this)}}i.decodePath=S("/","decodePathSegment"),i.decodeUrnPath=S(":","decodeUrnPathSegment"),i.recodePath=S("/","encodePathSegment","decode"),i.recodeUrnPath=S(":","encodeUrnPathSegment","decode"),i.encodeReserved=y("reserved","encode"),i.parse=function(e,t){var n;return t||(t={preventInvalidHostname:i.preventInvalidHostname}),(n=(e=(e=e.replace(i.leading_whitespace_expression,"")).replace(i.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),(n=e.indexOf("?"))>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3).replace(/\\/g,"/")?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e||(e="");var n,s,a=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===a&&(a=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,a)||null,"/"===t.port&&(t.port=null);else{var r=e.indexOf(":"),o=e.indexOf("/"),l=e.indexOf(":",r+1);-1!==l&&(-1===o||l<o)?(t.hostname=e.substring(0,a)||null,t.port=null):(s=e.substring(0,a).split(":"),t.hostname=s[0]||null,t.port=s[1]||null)}return t.hostname&&"/"!==e.substring(a).charAt(0)&&(a++,e="/"+e),t.preventInvalidHostname&&i.ensureValidHostname(t.hostname,t.protocol),t.port&&i.ensureValidPort(t.port),e.substring(a)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var n=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var s,a=e.indexOf("/"),r=e.lastIndexOf("@",a>-1?a:e.length-1);return r>-1&&(-1===a||r<a)?(s=e.substring(0,r).split(":"),t.username=s[0]?i.decode(s[0]):null,s.shift(),t.password=s[0]?i.decode(s.join(":")):null,e=n.substring(r+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,s,a,r={},l=e.split("&"),c=l.length,u=0;u<c;u++)n=l[u].split("="),s=i.decodeQuery(n.shift(),t),a=n.length?i.decodeQuery(n.join("="),t):null,"__proto__"!==s&&(o.call(r,s)?("string"!=typeof r[s]&&null!==r[s]||(r[s]=[r[s]]),r[s].push(a)):r[s]=a);return r},i.build=function(e){var t="",n=!1;return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//",n=!0),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&n&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username)),e.password&&(t+=":"+i.encode(e.password)),t&&(t+="@"),t},i.buildQuery=function(e,t,n){var s,a,r,l,c="";for(a in e)if("__proto__"!==a&&o.call(e,a))if(u(e[a]))for(s={},r=0,l=e[a].length;r<l;r++)void 0!==e[a][r]&&void 0===s[e[a][r]+""]&&(c+="&"+i.buildQueryParameter(a,e[a][r],n),!0!==t&&(s[e[a][r]+""]=!0));else void 0!==e[a]&&(c+="&"+i.buildQueryParameter(a,e[a],n));return c.substring(1)},i.buildQueryParameter=function(e,t,n){return i.encodeQuery(e,n)+(null!==t?"="+i.encodeQuery(t,n):"")},i.addQuery=function(e,t,n){if("object"==typeof t)for(var s in t)o.call(t,s)&&i.addQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),u(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},i.setQuery=function(e,t,n){if("object"==typeof t)for(var s in t)o.call(t,s)&&i.setQuery(e,s,t[s]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===n?null:n}},i.removeQuery=function(e,t,n){var s,a,r;if(u(t))for(s=0,a=t.length;s<a;s++)e[t[s]]=void 0;else if("RegExp"===c(t))for(r in e)t.test(r)&&(e[r]=void 0);else if("object"==typeof t)for(r in t)o.call(t,r)&&i.removeQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===c(n)?!u(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=d(e[t],n):e[t]!==String(n)||u(n)&&1!==n.length?u(e[t])&&(e[t]=d(e[t],n)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,n,s){switch(c(t)){case"String":break;case"RegExp":for(var a in e)if(o.call(e,a)&&t.test(a)&&(void 0===n||i.hasQuery(e,a,n)))return!0;return!1;case"Object":for(var r in t)if(o.call(t,r)&&!i.hasQuery(e,r,t[r]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(c(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(u(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":return!!u(e[t])&&(s?p:h)(e[t],n);case"RegExp":return u(e[t])?!!s&&p(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return u(e[t])?!!s&&p(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.joinPaths=function(){for(var e=[],t=[],n=0,s=0;s<arguments.length;s++){var a=new i(arguments[s]);e.push(a);for(var r=a.segment(),o=0;o<r.length;o++)"string"==typeof r[o]&&t.push(r[o]),r[o]&&n++}if(!t.length||!n)return new i("");var l=new i("").segment(t);return""!==e[0].path()&&"/"!==e[0].path().slice(0,1)||l.path("/"+l.path()),l.normalize()},i.commonPath=function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n<s;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},i.withinString=function(e,t,n){n||(n={});var s=n.start||i.findUri.start,a=n.end||i.findUri.end,r=n.trim||i.findUri.trim,o=n.parens||i.findUri.parens,l=/[a-z0-9-]=["']?$/i;for(s.lastIndex=0;;){var c=s.exec(e);if(!c)break;var u=c.index;if(n.ignoreHtml){var d=e.slice(Math.max(u-3,0),u);if(d&&l.test(d))continue}for(var p=u+e.slice(u).search(a),h=e.slice(u,p),m=-1;;){var g=o.exec(h);if(!g)break;var f=g.index+g[0].length;m=Math.max(m,f)}if(!((h=m>-1?h.slice(0,m)+h.slice(m).replace(r,""):h.replace(r,"")).length<=c[0].length||n.ignore&&n.ignore.test(h))){var b=t(h,u,p=u+h.length,e);void 0!==b?(b=String(b),e=e.slice(0,u)+b+e.slice(p),s.lastIndex=u+b.length):s.lastIndex=p}}return s.lastIndex=0,e},i.ensureValidHostname=function(t,n){var s=!!t,a=!1;if(!!n&&(a=p(i.hostProtocols,n)),a&&!s)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(t&&t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},i.ensureValidPort=function(e){if(e){var t=Number(e);if(!(/^[0-9]+$/.test(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return s.URITemplate&&"function"==typeof s.URITemplate.noConflict&&(t.URITemplate=s.URITemplate.noConflict()),s.IPv6&&"function"==typeof s.IPv6.noConflict&&(t.IPv6=s.IPv6.noConflict()),s.SecondLevelDomains&&"function"==typeof s.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=s.SecondLevelDomains.noConflict()),t}return s.URI===this&&(s.URI=a),this},r.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},r.clone=function(){return new i(this)},r.valueOf=r.toString=function(){return this.build(!1)._string},r.protocol=w("protocol"),r.username=w("username"),r.password=w("password"),r.hostname=w("hostname"),r.port=w("port"),r.query=x("query","?"),r.fragment=x("fragment","#"),r.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},r.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},r.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},r.path=r.pathname,r.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var s=e instanceof i,a="object"==typeof e&&(e.hostname||e.path||e.pathname);if(e.nodeName&&(e=e[i.getDomAttribute(e)]||"",a=!1),!s&&a&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!s&&!a)throw new TypeError("invalid input");var r=s?e._parts:e;for(n in r)"query"!==n&&o.call(this._parts,n)&&(this._parts[n]=r[n]);r.query&&this.query(r.query,!1)}return this.build(!t),this},r.is=function(e){var t=!1,s=!1,a=!1,r=!1,o=!1,l=!1,c=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,s=i.ip4_expression.test(this._parts.hostname),a=i.ip6_expression.test(this._parts.hostname),o=(r=!(t=s||a))&&n&&n.has(this._parts.hostname),l=r&&i.idn_expression.test(this._parts.hostname),c=r&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return r;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return s;case"ip6":case"ipv6":case"inet6":return a;case"idn":return l;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return c}return null};var A=r.protocol,_=r.port,k=r.hostname;r.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(i.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return A.call(this,e,t)},r.scheme=r.protocol,r.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),i.ensureValidPort(e))),_.call(this,e,t))},r.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname,this._parts.preventInvalidHostname&&i.ensureValidHostname(e,this._parts.protocol)}return k.call(this,e,t)},r.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var s=i(e);return this.protocol(s.protocol()).authority(s.authority()).build(!t),this},r.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},r.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},r.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=i.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},r.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},r.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var s=this._parts.hostname.length-this.domain().length,a=this._parts.hostname.substring(0,s),r=new RegExp("^"+l(a));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&i.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(r,e),this.build(!t),this},r.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var s=this._parts.hostname.length-this.tld(t).length-1;return s=this._parts.hostname.lastIndexOf(".",s-1)+1,this._parts.hostname.substring(s)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(i.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var a=new RegExp(l(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(a,e)}return this.build(!t),this},r.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var s=this._parts.hostname.lastIndexOf("."),a=this._parts.hostname.substring(s+1);return!0!==t&&n&&n.list[a.toLowerCase()]&&n.get(this._parts.hostname)||a}var i;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');i=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");i=new RegExp(l(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(i,e)}return this.build(!t),this},r.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,s=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(s):s}var a=this._parts.path.length-this.filename().length,r=this._parts.path.substring(0,a),o=new RegExp("^"+l(r));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(o,e),this.build(!t),this},r.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),s=this._parts.path.substring(n+1);return e?i.decodePathSegment(s):s}var a=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(a=!0);var r=new RegExp(l(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(r,e),a?this.normalizePath(t):this.build(!t),this},r.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,s,a=this.filename(),r=a.lastIndexOf(".");return-1===r?"":(n=a.substring(r+1),s=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(s):s)}"."===e.charAt(0)&&(e=e.substring(1));var o,c=this.suffix();if(c)o=e?new RegExp(l(c)+"$"):new RegExp(l("."+c)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return o&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(o,e)),this.build(!t),this},r.segment=function(e,t,n){var s=this._parts.urn?":":"/",a=this.path(),i="/"===a.substring(0,1),r=a.split(s);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(i&&r.shift(),e<0&&(e=Math.max(r.length+e,0)),void 0===t)return void 0===e?r:r[e];if(null===e||void 0===r[e])if(u(t)){r=[];for(var o=0,l=t.length;o<l;o++)(t[o].length||r.length&&r[r.length-1].length)&&(r.length&&!r[r.length-1].length&&r.pop(),r.push(m(t[o])))}else(t||"string"==typeof t)&&(t=m(t),""===r[r.length-1]?r[r.length-1]=t:r.push(t));else t?r[e]=m(t):r.splice(e,1);return i&&r.unshift(""),this.path(r.join(s),n)},r.segmentCoded=function(e,t,n){var s,a,r;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(u(s=this.segment(e,t,n)))for(a=0,r=s.length;a<r;a++)s[a]=i.decode(s[a]);else s=void 0!==s?i.decode(s):void 0;return s}if(u(t))for(a=0,r=t.length;a<r;a++)t[a]=i.encode(t[a]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,n)};var j=r.query;return r.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),s=e.call(this,n);return this._parts.query=i.buildQuery(s||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):j.call(this,e,t)},r.setQuery=function(e,t,n){var s=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)s[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var a in e)o.call(e,a)&&(s[a]=e[a])}return this._parts.query=i.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.addQuery=function(e,t,n){var s=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(s,e,void 0===t?null:t),this._parts.query=i.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.removeQuery=function(e,t,n){var s=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(s,e,t),this._parts.query=i.buildQuery(s,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},r.hasQuery=function(e,t,n){var s=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(s,e,t,n)},r.setSearch=r.setQuery,r.addSearch=r.addQuery,r.removeSearch=r.removeQuery,r.hasSearch=r.hasQuery,r.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},r.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},r.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},r.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},r.normalizePath=function(e){var t,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var s,a,r="";for("/"!==(n=i.recodePath(n)).charAt(0)&&(t=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(r=n.substring(1).match(/^(\.\.\/)+/)||"")&&(r=r[0]);-1!==(s=n.search(/\/\.\.(\/|$)/));)0!==s?(-1===(a=n.substring(0,s).lastIndexOf("/"))&&(a=s),n=n.substring(0,a)+n.substring(s+3)):n=n.substring(3);return t&&this.is("relative")&&(n=r+n.substring(1)),this._parts.path=n,this.build(!e),this},r.normalizePathname=r.normalizePath,r.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},r.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},r.normalizeSearch=r.normalizeQuery,r.normalizeHash=r.normalizeFragment,r.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},r.unicode=function(){var e=i.encode,t=i.decode;i.encode=f,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},r.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var s="",a=0,r=t._parts.query.split("&"),o=r.length;a<o;a++){var l=(r[a]||"").split("=");s+="&"+i.decodeQuery(l[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==l[1]&&(s+="="+i.decodeQuery(l[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+s.substring(1)}return n+i.decodeQuery(t.hash(),!0)},r.absoluteTo=function(e){var t,n,s,a=this.clone(),r=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),a._parts.protocol)return a;if(a._parts.protocol=e._parts.protocol,this._parts.hostname)return a;for(n=0;s=r[n];n++)a._parts[s]=e._parts[s];return a._parts.path?(".."===a._parts.path.substring(-2)&&(a._parts.path+="/"),"/"!==a.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),a._parts.path=(t?t+"/":"")+a._parts.path,a.normalizePath())):(a._parts.path=e._parts.path,a._parts.query||(a._parts.query=e._parts.query)),a.build(),a},r.relativeTo=function(e){var t,n,s,a,r,o=this.clone().normalize();if(o._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=o._parts,n=e._parts,a=o.path(),r=e.path(),"/"!==a.charAt(0))throw new Error("URI is already relative");if("/"!==r.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return o.build();if(null!==t.protocol||null!==t.username||null!==t.password)return o.build();if(t.hostname!==n.hostname||t.port!==n.port)return o.build();if(t.hostname=null,t.port=null,a===r)return t.path="",o.build();if(!(s=i.commonPath(a,r)))return o.build();var l=n.path.substring(s.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=l+t.path.substring(s.length)||"./",o.build()},r.equals=function(e){var t,n,s,a,r,l=this.clone(),c=new i(e),d={};if(l.normalize(),c.normalize(),l.toString()===c.toString())return!0;if(s=l.query(),a=c.query(),l.query(""),c.query(""),l.toString()!==c.toString())return!1;if(s.length!==a.length)return!1;for(r in t=i.parseQuery(s,this._parts.escapeQuerySpace),n=i.parseQuery(a,this._parts.escapeQuerySpace),t)if(o.call(t,r)){if(u(t[r])){if(!h(t[r],n[r]))return!1}else if(t[r]!==n[r])return!1;d[r]=!0}for(r in n)if(o.call(n,r)&&!d[r])return!1;return!0},r.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},r.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},r.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i}))},39340(e,t,n){var s;e=n.nmd(e),function(){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof n.g&&n.g;a.global!==a&&a.window!==a&&a.self;var i,r=2147483647,o=36,l=/^xn--/,c=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function m(e){throw new RangeError(d[e])}function g(e,t){for(var n=e.length,s=[];n--;)s[n]=t(e[n]);return s}function f(e,t){var n=e.split("@"),s="";return n.length>1&&(s=n[0]+"@",e=n[1]),s+g((e=e.replace(u,".")).split("."),t).join(".")}function b(e){for(var t,n,s=[],a=0,i=e.length;a<i;)(t=e.charCodeAt(a++))>=55296&&t<=56319&&a<i?56320==(64512&(n=e.charCodeAt(a++)))?s.push(((1023&t)<<10)+(1023&n)+65536):(s.push(t),a--):s.push(t);return s}function v(e){return g(e,(function(e){var t="";return e>65535&&(t+=h((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+h(e)})).join("")}function y(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,n){var s=0;for(e=n?p(e/700):e>>1,e+=p(e/t);e>455;s+=o)e=p(e/35);return p(s+36*e/(e+38))}function w(e){var t,n,s,a,i,l,c,u,d,h,g,f=[],b=e.length,y=0,w=128,x=72;for((n=e.lastIndexOf("-"))<0&&(n=0),s=0;s<n;++s)e.charCodeAt(s)>=128&&m("not-basic"),f.push(e.charCodeAt(s));for(a=n>0?n+1:0;a<b;){for(i=y,l=1,c=o;a>=b&&m("invalid-input"),((u=(g=e.charCodeAt(a++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:o)>=o||u>p((r-y)/l))&&m("overflow"),y+=u*l,!(u<(d=c<=x?1:c>=x+26?26:c-x));c+=o)l>p(r/(h=o-d))&&m("overflow"),l*=h;x=S(y-i,t=f.length+1,0==i),p(y/t)>r-w&&m("overflow"),w+=p(y/t),y%=t,f.splice(y++,0,w)}return v(f)}function x(e){var t,n,s,a,i,l,c,u,d,g,f,v,w,x,A,_=[];for(v=(e=b(e)).length,t=128,n=0,i=72,l=0;l<v;++l)(f=e[l])<128&&_.push(h(f));for(s=a=_.length,a&&_.push("-");s<v;){for(c=r,l=0;l<v;++l)(f=e[l])>=t&&f<c&&(c=f);for(c-t>p((r-n)/(w=s+1))&&m("overflow"),n+=(c-t)*w,t=c,l=0;l<v;++l)if((f=e[l])<t&&++n>r&&m("overflow"),f==t){for(u=n,d=o;!(u<(g=d<=i?1:d>=i+26?26:d-i));d+=o)A=u-g,x=o-g,_.push(h(y(g+A%x,0))),u=p(A/x);_.push(h(y(u,0))),i=S(n,w,s==a),n=0,++s}++n,++t}return _.join("")}i={version:"1.3.2",ucs2:{decode:b,encode:v},decode:w,encode:x,toASCII:function(e){return f(e,(function(e){return c.test(e)?"xn--"+x(e):e}))},toUnicode:function(e){return f(e,(function(e){return l.test(e)?w(e.slice(4).toLowerCase()):e}))}},void 0===(s=function(){return i}.call(t,n,t,e))||(e.exports=s)}()},58493(e,t,n){"use strict";var s=n(96540),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,r=s.useEffect,o=s.useLayoutEffect,l=s.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=i({inst:{value:n,getSnapshot:t}}),a=s[0].inst,u=s[1];return o((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),r((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:u},22162(e,t,n){"use strict";var s=n(96540),a=n(19888),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=a.useSyncExternalStore,o=s.useRef,l=s.useEffect,c=s.useMemo,u=s.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,s,a){var d=o(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,r=e,e=s(e),void 0!==a&&p.hasValue){var t=p.value;if(a(t,e))return o=t}return o=e}if(t=o,i(r,e))return t;var n=s(e);return void 0!==a&&a(t,n)?(r=e,t):(r=e,o=n)}var r,o,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,s,a]);var h=r(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=h}),[h]),u(h),h}},19888(e,t,n){"use strict";e.exports=n(58493)},69242(e,t,n){"use strict";e.exports=n(22162)},42634(){},49746(){},19977(){},197(){},21866(){},52739(){},46942(e,t){var n;!function(){"use strict";var s={}.hasOwnProperty;function a(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)s.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},16036(e,t,n){"use strict";var s=n(19725);n(26148),n(46058),n(80081),n(95115),n(17978),n(6986),n(88177),n(54151),n(72400),n(73677),n(85901),e.exports=s},40188(e,t,n){"use strict";var s=n(57919);e.exports=s},26404(e,t,n){"use strict";var s=n(69609);e.exports=s},68211(e,t,n){"use strict";var s=n(29326);e.exports=s},53837(e,t,n){"use strict";var s=n(56344);n(43375),n(39225),n(13972),n(99209),n(25714),n(17561),n(66197),e.exports=s},29933(e,t,n){"use strict";var s=n(40160);e.exports=s},85448(e,t,n){"use strict";var s=n(12841);e.exports=s},45666(e,t,n){"use strict";n(23418),n(64346),n(31051),n(18107),n(28706),n(26835),n(88431),n(33771),n(2008),n(50113),n(48980),n(10838),n(13451),n(46449),n(78350),n(51629),n(74423),n(25276),n(23792),n(52407),n(48598),n(8921),n(62062),n(44114),n(72712),n(18863),n(94490),n(34782),n(15086),n(26910),n(87478),n(54554),n(9678),n(57145),n(71658),n(93514),n(30237),n(13609),n(11558),n(26099),n(47764),n(3362);var s=n(19167);e.exports=s.Array},17990(e,t,n){"use strict";n(5506);var s=n(19167);e.exports=s.Object.entries},94014(e,t,n){"use strict";n(16034);var s=n(19167);e.exports=s.Object.values},61137(e,t,n){"use strict";n(26099),n(3362),n(9391);var s=n(97015);e.exports=s("Promise","finally")},57655(e,t,n){"use strict";n(23792),n(26099),n(31415),n(17642),n(58004),n(33853),n(45876),n(32475),n(15024),n(31698),n(47764);var s=n(19167);e.exports=s.Set},70979(e,t,n){"use strict";n(21699);var s=n(97015);e.exports=s("String","includes")},74209(e,t,n){"use strict";n(92327)},83835(e,t,n){"use strict";n(83405)},68029(e,t,n){"use strict";n(69311)},66130(e,t,n){"use strict";n(81880)},40828(e,t,n){"use strict";n(92582)},6396(e,t,n){"use strict";n(66290)},72701(e,t,n){"use strict";n(98255)},92327(e,t,n){"use strict";var s=n(16036);n(36033),n(34504),n(87370),n(31659),n(45490),n(55105),n(17656),n(61938),e.exports=s},83405(e,t,n){"use strict";var s=n(40188);e.exports=s},69311(e,t,n){"use strict";var s=n(26404);e.exports=s},81880(e,t,n){"use strict";var s=n(68211);e.exports=s},92582(e,t,n){"use strict";var s=n(53837);n(49522),n(23283),n(25509),n(65223),n(41927),n(60321),n(11632),n(64377),n(66771),n(12516),n(68931),n(52514),n(35694),n(52774),n(49536),n(21926),n(94483),n(16215),e.exports=s},66290(e,t,n){"use strict";var s=n(29933);e.exports=s},98255(e,t,n){"use strict";var s=n(85448);e.exports=s},79306(e,t,n){"use strict";var s=n(94901),a=n(16823),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(a(e)+" is not a function")}},35548(e,t,n){"use strict";var s=n(33517),a=n(16823),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(a(e)+" is not a constructor")}},73506(e,t,n){"use strict";var s=n(13925),a=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+a(e)+" as a prototype")}},97080(e,t,n){"use strict";var s=n(94402).has;e.exports=function(e){return s(e),e}},6469(e,t,n){"use strict";var s=n(78227),a=n(2360),i=n(24913).f,r=s("unscopables"),o=Array.prototype;void 0===o[r]&&i(o,r,{configurable:!0,value:a(null)}),e.exports=function(e){o[r][e]=!0}},90679(e,t,n){"use strict";var s=n(1625),a=TypeError;e.exports=function(e,t){if(s(t,e))return e;throw new a("Incorrect invocation")}},28551(e,t,n){"use strict";var s=n(20034),a=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(a(e)+" is not an object")}},15652(e,t,n){"use strict";var s=n(79039);e.exports=s((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},57029(e,t,n){"use strict";var s=n(48981),a=n(35610),i=n(26198),r=n(84606),o=Math.min;e.exports=[].copyWithin||function(e,t){var n=s(this),l=i(n),c=a(e,l),u=a(t,l),d=arguments.length>2?arguments[2]:void 0,p=o((void 0===d?l:a(d,l))-u,l-c),h=1;for(u<c&&c<u+p&&(h=-1,u+=p-1,c+=p-1);p-- >0;)u in n?n[c]=n[u]:r(n,c),c+=h,u+=h;return n}},84373(e,t,n){"use strict";var s=n(48981),a=n(35610),i=n(26198);e.exports=function(e){for(var t=s(this),n=i(t),r=arguments.length,o=a(r>1?arguments[1]:void 0,n),l=r>2?arguments[2]:void 0,c=void 0===l?n:a(l,n);c>o;)t[o++]=e;return t}},90235(e,t,n){"use strict";var s=n(59213).forEach,a=n(34598)("forEach");e.exports=a?[].forEach:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}},8045(e,t,n){"use strict";var s=n(76080),a=n(79504),i=n(33517),r=n(1886),o=n(70081),l=n(1767),c=n(50851),u=n(55966),d=n(97751),p=n(44124),h=n(78227),m=n(24074),g=n(36639).toArray,f=h("asyncIterator"),b=a(p("Array","values")),v=a(b([]).next),y=function(){return new S(this)},S=function(e){this.iterator=b(e)};S.prototype.next=function(){return v(this.iterator)},e.exports=function(e){var t=this,n=arguments.length,a=n>1?arguments[1]:void 0,p=n>2?arguments[2]:void 0;return new(d("Promise"))((function(n){void 0!==a&&(a=s(a,p));var d=u(e,f),h=d?void 0:c(e)||y,b=i(t)?new t:[],v=d?r(e,d):new m(l(o(e,h)));n(g(v,a,b))}))}},35370(e,t,n){"use strict";var s=n(26198);e.exports=function(e,t,n){for(var a=0,i=arguments.length>2?n:s(t),r=new e(i);i>a;)r[a]=t[a++];return r}},97916(e,t,n){"use strict";var s=n(76080),a=n(69565),i=n(48981),r=n(96319),o=n(44209),l=n(33517),c=n(26198),u=n(97040),d=n(34527),p=n(70081),h=n(50851),m=n(9539),g=Array;e.exports=function(e){var t=l(this),n=arguments.length,f=n>1?arguments[1]:void 0,b=void 0!==f;b&&(f=s(f,n>2?arguments[2]:void 0));var v,y,S,w,x,A,_=i(e),k=h(_),j=0;if(!k||this===g&&o(k))for(v=c(_),y=t?new this(v):g(v);v>j;j++)A=b?f(_[j],j):_[j],u(y,j,A);else for(y=t?new this:[],x=(w=p(_,k)).next;!(S=a(x,w)).done;j++){A=b?r(w,f,[S.value,j],!0):S.value;try{u(y,j,A)}catch(e){m(w,"throw",e)}}return d(y,j),y}},2952(e,t,n){"use strict";var s=n(76080),a=n(79504),i=n(47055),r=n(48981),o=n(26198),l=n(72248),c=l.Map,u=l.get,d=l.has,p=l.set,h=a([].push);e.exports=function(e){for(var t,n,a=r(this),l=i(a),m=s(e,arguments.length>1?arguments[1]:void 0),g=new c,f=o(l),b=0;f>b;b++)t=m(n=l[b],b,a),d(g,t)?h(u(g,t),n):p(g,t,[n]);return g}},77957(e,t,n){"use strict";var s=n(76080),a=n(79504),i=n(47055),r=n(48981),o=n(56969),l=n(26198),c=n(2360),u=n(35370),d=Array,p=a([].push);e.exports=function(e,t,n,a){for(var h,m,g,f=r(e),b=i(f),v=s(t,n),y=c(null),S=l(b),w=0;S>w;w++)g=b[w],(m=o(v(g,w,f)))in y?p(y[m],g):y[m]=[g];if(a&&(h=a(f))!==d)for(m in y)y[m]=u(h,y[m]);return y}},19617(e,t,n){"use strict";var s=n(25397),a=n(35610),i=n(26198),r=function(e){return function(t,n,r){var o=s(t),l=i(o);if(0===l)return!e&&-1;var c,u=a(r,l);if(e&&n!=n){for(;l>u;)if((c=o[u++])!=c)return!0}else for(;l>u;u++)if((e||u in o)&&o[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:r(!0),indexOf:r(!1)}},43839(e,t,n){"use strict";var s=n(76080),a=n(47055),i=n(48981),r=n(26198),o=function(e){var t=1===e;return function(n,o,l){for(var c,u=i(n),d=a(u),p=r(d),h=s(o,l);p-- >0;)if(h(c=d[p],p,u))switch(e){case 0:return c;case 1:return p}return t?-1:void 0}};e.exports={findLast:o(0),findLastIndex:o(1)}},59213(e,t,n){"use strict";var s=n(76080),a=n(47055),i=n(48981),r=n(26198),o=n(1469),l=n(97040),c=function(e){var t=1===e,n=2===e,c=3===e,u=4===e,d=6===e,p=7===e,h=5===e||d;return function(m,g,f){for(var b,v,y=i(m),S=a(y),w=r(S),x=s(g,f),A=0,_=0,k=t?o(m,w):n||p?o(m,0):void 0;w>A;A++)if((h||A in S)&&(v=x(b=S[A],A,y),e))if(t)l(k,A,v);else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return A;case 2:l(k,_++,b)}else switch(e){case 4:return!1;case 7:l(k,_++,b)}return d?-1:c||u?u:k}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},8379(e,t,n){"use strict";var s=n(18745),a=n(25397),i=n(91291),r=n(26198),o=n(34598),l=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),p=u||!d;e.exports=p?function(e){if(u)return s(c,this,arguments)||0;var t=a(this),n=r(t);if(0===n)return-1;var o=n-1;for(arguments.length>1&&(o=l(o,i(arguments[1]))),o<0&&(o=n+o);o>=0;o--)if(o in t&&t[o]===e)return o||0;return-1}:c},70597(e,t,n){"use strict";var s=n(79039),a=n(78227),i=n(39519),r=a("species");e.exports=function(e){return i>=51||!s((function(){var t=[];return(t.constructor={})[r]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},34598(e,t,n){"use strict";var s=n(79039);e.exports=function(e,t){var n=[][e];return!!n&&s((function(){n.call(null,t||function(){return 1},1)}))}},80926(e,t,n){"use strict";var s=n(79306),a=n(48981),i=n(47055),r=n(26198),o=TypeError,l="Reduce of empty array with no initial value",c=function(e){return function(t,n,c,u){var d=a(t),p=i(d),h=r(d);if(s(n),0===h&&c<2)throw new o(l);var m=e?h-1:0,g=e?-1:1;if(c<2)for(;;){if(m in p){u=p[m],m+=g;break}if(m+=g,e?m<0:h<=m)throw new o(l)}for(;e?m>=0:h>m;m+=g)m in p&&(u=n(u,p[m],m,d));return u}};e.exports={left:c(!1),right:c(!0)}},34527(e,t,n){"use strict";var s=n(43724),a=n(34376),i=TypeError,r=Object.getOwnPropertyDescriptor,o=s&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=o?function(e,t){if(a(e)&&!r(e,"length").writable)throw new i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},67680(e,t,n){"use strict";var s=n(79504);e.exports=s([].slice)},74488(e,t,n){"use strict";var s=n(67680),a=Math.floor,i=function(e,t){var n=e.length;if(n<8)for(var r,o,l=1;l<n;){for(o=l,r=e[l];o&&t(e[o-1],r)>0;)e[o]=e[--o];o!==l++&&(e[o]=r)}else for(var c=a(n/2),u=i(s(e,0,c),t),d=i(s(e,c),t),p=u.length,h=d.length,m=0,g=0;m<p||g<h;)e[m+g]=m<p&&g<h?t(u[m],d[g])<=0?u[m++]:d[g++]:m<p?u[m++]:d[g++];return e};e.exports=i},87433(e,t,n){"use strict";var s=n(34376),a=n(33517),i=n(20034),r=n(78227)("species"),o=Array;e.exports=function(e){var t;return s(e)&&(t=e.constructor,(a(t)&&(t===o||s(t.prototype))||i(t)&&null===(t=t[r]))&&(t=void 0)),void 0===t?o:t}},1469(e,t,n){"use strict";var s=n(87433);e.exports=function(e,t){return new(s(e))(0===t?0:t)}},79565(e,t,n){"use strict";var s=n(79306),a=n(64117),i=n(26198),r=n(48981),o=n(97040),l=n(72248),c=n(26223),u=l.Map,d=l.has,p=l.set;e.exports=function(e){var t,n,l,h=r(this),m=i(h),g=[],f=new u,b=a(e)?function(e){return e}:s(e);for(t=0;t<m;t++)l=b(n=h[t]),d(f,l)||p(f,l,n);return t=0,c(f,(function(e){o(g,t++,e)})),g}},24074(e,t,n){"use strict";var s=n(69565),a=n(28551),i=n(2360),r=n(55966),o=n(56279),l=n(91181),c=n(9539),u=n(97751),d=n(53982),p=n(62529),h=u("Promise"),m="AsyncFromSyncIterator",g=l.set,f=l.getterFor(m),b=function(e,t,n,s,a){var i=e.done;h.resolve(e.value).then((function(e){t(p(e,i))}),(function(e){if(!i&&a)try{c(s,"throw",e)}catch(t){e=t}n(e)}))},v=function(e){e.type=m,g(this,e)};v.prototype=o(i(d),{next:function(){var e=f(this),t=arguments.length>0,n=t?arguments[0]:void 0;return new h((function(i,r){var o=a(t?s(e.next,e.iterator,n):s(e.next,e.iterator));b(o,i,r,e.iterator,!0)}))},return:function(){var e=f(this).iterator,t=arguments.length>0,n=t?arguments[0]:void 0;return new h((function(i,o){var l=r(e,"return");if(void 0===l)return i(p(n,!0));var c=a(t?s(l,e,n):s(l,e));b(c,i,o,e)}))},throw:function(){var e=f(this).iterator,t=arguments.length>0,n=t?arguments[0]:void 0;return new h((function(i,o){var l=r(e,"throw");if(void 0===l){try{c(e,"normal")}catch(e){return o(e)}return o(new TypeError("The iterator does not provide a throw method"))}var u=a(t?s(l,e,n):s(l,e));b(u,i,o,e,!0)}))}}),e.exports=v},20772(e,t,n){"use strict";var s=n(69565),a=n(28551),i=n(97751),r=n(55966);e.exports=function(e,t,n,o){try{var l=r(e,"return");if(l)return i("Promise").resolve(s(l,e)).then((function(e){try{t!==o&&a(e)}catch(e){return void o(e)}t(n)}),(function(e){t===o?t(n):o(e)}))}catch(e){return o(t===o?n:e)}t(n)}},36639(e,t,n){"use strict";var s=n(69565),a=n(79306),i=n(28551),r=n(20034),o=n(96837),l=n(97751),c=n(97040),u=n(34527),d=n(1767),p=n(20772),h=function(e){var t=0===e,n=1===e,h=2===e,m=3===e;return function(e,g,f){i(e);var b=void 0!==g;!b&&t||a(g);var v=d(e),y=l("Promise"),S=v.iterator,w=v.next,x=0;return new y((function(e,a){var l=function(e){p(S,a,e,a)},d=function(){try{try{o(x)}catch(e){return l(e)}y.resolve(i(s(w,S))).then((function(s){try{if(i(s).done)t?(u(f,x),e(f)):e(!m&&(h||void 0));else{var o=s.value;try{if(b){var v=x++,w=g(o,v),A=function(s){if(n)d();else if(h)s?d():p(S,e,!1,a);else if(t)try{c(f,v,s),d()}catch(e){l(e)}else s?p(S,e,m||o,a):d()};r(w)?y.resolve(w).then(A,l):A(w)}else c(f,x++,o),d()}catch(e){l(e)}}}catch(e){a(e)}}),a)}catch(e){a(e)}};d()}))}};e.exports={toArray:h(0),forEach:h(1),every:h(2),some:h(3),find:h(4)}},53982(e,t,n){"use strict";var s,a,i=n(44576),r=n(77629),o=n(94901),l=n(2360),c=n(42787),u=n(36840),d=n(78227),p=n(96395),h="USE_FUNCTION_CONSTRUCTOR",m=d("asyncIterator"),g=i.AsyncIterator,f=r.AsyncIteratorPrototype;if(f)s=f;else if(o(g))s=g.prototype;else if(r[h]||i[h])try{a=c(c(c(Function("return async function*(){}()")()))),c(a)===Object.prototype&&(s=a)}catch(e){}s?p&&(s=l(s)):s={},o(s[m])||u(s,m,(function(){return this})),e.exports=s},96319(e,t,n){"use strict";var s=n(28551),a=n(9539);e.exports=function(e,t,n,i){try{return i?t(s(n)[0],n[1]):t(n)}catch(t){a(e,"throw",t)}}},84428(e,t,n){"use strict";var s=n(78227)("iterator"),a=!1;try{var i=0,r={next:function(){return{done:!!i++}},return:function(){a=!0}};r[s]=function(){return this},Array.from(r,(function(){throw 2}))}catch(e){}e.exports=function(e,t){try{if(!t&&!a)return!1}catch(e){return!1}var n=!1;try{var i={};i[s]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},22195(e,t,n){"use strict";var s=n(79504),a=s({}.toString),i=s("".slice);e.exports=function(e){return i(a(e),8,-1)}},36955(e,t,n){"use strict";var s=n(92140),a=n(94901),i=n(22195),r=n(78227)("toStringTag"),o=Object,l="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o(e),r))?n:l?i(t):"Object"===(s=i(t))&&a(t.callee)?"Arguments":s}},70933(e,t,n){"use strict";var s=n(76080),a=n(28551),i=n(48981),r=n(72652);e.exports=function(e,t,n){return function(o){var l=i(o),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,p=d?s(u,c>2?arguments[2]:void 0):void 0,h=new e,m=0;return r(l,(function(e){var s=d?p(e,m++):e;n?t(h,a(s)[0],s[1]):t(h,s)})),h}}},87500(e,t,n){"use strict";var s=n(28551);e.exports=function(e,t,n){return function(){for(var a=new e,i=arguments.length,r=0;r<i;r++){var o=arguments[r];n?t(a,s(o)[0],o[1]):t(a,o)}return a}}},86938(e,t,n){"use strict";var s=n(2360),a=n(62106),i=n(56279),r=n(76080),o=n(90679),l=n(64117),c=n(72652),u=n(51088),d=n(62529),p=n(87633),h=n(43724),m=n(3451).fastKey,g=n(91181),f=g.set,b=g.getterFor;e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,a){o(e,p),f(e,{type:t,index:s(null),first:null,last:null,size:0}),h||(e.size=0),l(a)||c(a,e[u],{that:e,AS_ENTRIES:n})})),p=d.prototype,g=b(t),v=function(e,t,n){var s,a,i=g(e),r=y(e,t);return r?r.value=n:(i.last=r={index:a=m(t,!0),key:t,value:n,previous:s=i.last,next:null,removed:!1},i.first||(i.first=r),s&&(s.next=r),h?i.size++:e.size++,"F"!==a&&(i.index[a]=r)),e},y=function(e,t){var n,s=g(e),a=m(t);if("F"!==a)return s.index[a];for(n=s.first;n;n=n.next)if(n.key===t)return n};return i(p,{clear:function(){for(var e=g(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=s(null),h?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),s=y(t,e);if(s){var a=s.next,i=s.previous;delete n.index[s.index],s.removed=!0,i&&(i.next=a),a&&(a.previous=i),n.first===s&&(n.first=a),n.last===s&&(n.last=i),h?n.size--:t.size--}return!!s},forEach:function(e){for(var t,n=g(this),s=r(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(s(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!y(this,e)}}),i(p,n?{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)}}),h&&a(p,"size",{configurable:!0,get:function(){return g(this).size}}),d},setStrong:function(e,t,n){var s=t+" Iterator",a=b(t),i=b(s);u(e,t,(function(e,t){f(this,{type:s,target:e,state:a(e),kind:t,last:null})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?d("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=null,d(void 0,!0))}),n?"entries":"values",!n,!0),p(t)}}},16468(e,t,n){"use strict";var s=n(46518),a=n(44576),i=n(79504),r=n(92796),o=n(36840),l=n(3451),c=n(72652),u=n(90679),d=n(94901),p=n(64117),h=n(20034),m=n(79039),g=n(84428),f=n(10687),b=n(23167);e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),y=-1!==e.indexOf("Weak"),S=v?"set":"add",w=a[e],x=w&&w.prototype,A=w,_={},k=function(e){var t=i(x[e]);o(x,e,"add"===e?function(e){return t(this,0===e?0:e),this}:"delete"===e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:"get"===e?function(e){return y&&!h(e)?void 0:t(this,0===e?0:e)}:"has"===e?function(e){return!(y&&!h(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};if(r(e,!d(w)||!(y||x.forEach&&!m((function(){(new w).entries().next()})))))A=n.getConstructor(t,e,v,S),l.enable();else if(r(e,!0)){var j=new A,C=j[S](y?{}:-0,1)!==j,I=m((function(){j.has(1)})),T=g((function(e){new w(e)})),D=!y&&m((function(){for(var e=new w,t=5;t--;)e[S](t,t);return!e.has(-0)}));T||((A=t((function(e,t){u(e,x);var n=b(new w,e,A);return p(t)||c(t,n[S],{that:n,AS_ENTRIES:v}),n}))).prototype=x,x.constructor=A),(I||D)&&(k("delete"),k("has"),v&&k("get")),(D||C)&&k(S),y&&x.clear&&delete x.clear}return _[e]=A,s({global:!0,constructor:!0,forced:A!==w},_),f(A,e),y||n.setStrong(A,e,v),A}},77740(e,t,n){"use strict";var s=n(39297),a=n(35031),i=n(77347),r=n(24913);e.exports=function(e,t,n){for(var o=a(t),l=r.f,c=i.f,u=0;u<o.length;u++){var d=o[u];s(e,d)||n&&s(n,d)||l(e,d,c(t,d))}}},41436(e,t,n){"use strict";var s=n(78227)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[s]=!1,"/./"[e](t)}catch(e){}}return!1}},12211(e,t,n){"use strict";var s=n(79039);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},62529(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},66699(e,t,n){"use strict";var s=n(43724),a=n(24913),i=n(6980);e.exports=s?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},6980(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040(e,t,n){"use strict";var s=n(43724),a=n(24913),i=n(6980);e.exports=function(e,t,n){s?a.f(e,t,i(0,n)):e[t]=n}},62106(e,t,n){"use strict";var s=n(50283),a=n(24913);e.exports=function(e,t,n){return n.get&&s(n.get,t,{getter:!0}),n.set&&s(n.set,t,{setter:!0}),a.f(e,t,n)}},36840(e,t,n){"use strict";var s=n(94901),a=n(24913),i=n(50283),r=n(39433);e.exports=function(e,t,n,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:t;if(s(n)&&i(n,c,o),o.global)l?e[t]=n:r(t,n);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:a.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},56279(e,t,n){"use strict";var s=n(36840);e.exports=function(e,t,n){for(var a in t)s(e,a,t[a],n);return e}},39433(e,t,n){"use strict";var s=n(44576),a=Object.defineProperty;e.exports=function(e,t){try{a(s,e,{value:t,configurable:!0,writable:!0})}catch(n){s[e]=t}return t}},84606(e,t,n){"use strict";var s=n(16823),a=TypeError;e.exports=function(e,t){if(!delete e[t])throw new a("Cannot delete property "+s(t)+" of "+s(e))}},43724(e,t,n){"use strict";var s=n(79039);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055(e,t,n){"use strict";var s=n(44576),a=n(20034),i=s.document,r=a(i)&&a(i.createElement);e.exports=function(e){return r?i.createElement(e):{}}},96837(e){"use strict";var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},67400(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},79296(e,t,n){"use strict";var s=n(4055)("span").classList,a=s&&s.constructor&&s.constructor.prototype;e.exports=a===Object.prototype?void 0:a},97015(e,t,n){"use strict";var s=n(44576),a=n(79504);e.exports=function(e,t){return a(s[e].prototype[t])}},88727(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},13709(e,t,n){"use strict";var s=n(82839).match(/firefox\/(\d+)/i);e.exports=!!s&&+s[1]},13763(e,t,n){"use strict";var s=n(82839);e.exports=/MSIE|Trident/.test(s)},44265(e,t,n){"use strict";var s=n(82839);e.exports=/ipad|iphone|ipod/i.test(s)&&"undefined"!=typeof Pebble},89544(e,t,n){"use strict";var s=n(82839);e.exports=/ipad|iphone|ipod/i.test(s)&&/applewebkit/i.test(s)},16193(e,t,n){"use strict";var s=n(84215);e.exports="NODE"===s},7860(e,t,n){"use strict";var s=n(82839);e.exports=/web0s(?!.*chrome)/i.test(s)},82839(e,t,n){"use strict";var s=n(44576).navigator,a=s&&s.userAgent;e.exports=a?String(a):""},39519(e,t,n){"use strict";var s,a,i=n(44576),r=n(82839),o=i.process,l=i.Deno,c=o&&o.versions||l&&l.version,u=c&&c.v8;u&&(a=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!a&&r&&(!(s=r.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=r.match(/Chrome\/(\d+)/))&&(a=+s[1]),e.exports=a},3607(e,t,n){"use strict";var s=n(82839).match(/AppleWebKit\/(\d+)\./);e.exports=!!s&&+s[1]},84215(e,t,n){"use strict";var s=n(44576),a=n(82839),i=n(22195),r=function(e){return a.slice(0,e.length)===e};e.exports=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":s.Bun&&"string"==typeof Bun.version?"BUN":s.Deno&&"object"==typeof Deno.version?"DENO":"process"===i(s.process)?"NODE":s.window&&s.document?"BROWSER":"REST"},46518(e,t,n){"use strict";var s=n(44576),a=n(77347).f,i=n(66699),r=n(36840),o=n(39433),l=n(77740),c=n(92796);e.exports=function(e,t){var n,u,d,p,h,m=e.target,g=e.global,f=e.stat;if(n=g?s:f?s[m]||o(m,{}):s[m]&&s[m].prototype)for(u in t){if(p=t[u],d=e.dontCallGetSet?(h=a(n,u))&&h.value:n[u],!c(g?u:m+(f?".":"#")+u,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;l(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),r(n,u,p,e)}}},79039(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},70259(e,t,n){"use strict";var s=n(34376),a=n(26198),i=n(96837),r=n(76080),o=n(97040),l=function(e,t,n,c,u,d,p,h){for(var m,g,f=u,b=0,v=!!p&&r(p,h);b<c;)b in n&&(m=v?v(n[b],b,t):n[b],d>0&&s(m)?(g=a(m),f=l(e,t,m,g,f,d-1)-1):(i(f+1),o(e,f,m)),f++),b++;return f};e.exports=l},92744(e,t,n){"use strict";var s=n(79039);e.exports=!s((function(){return Object.isExtensible(Object.preventExtensions({}))}))},18745(e,t,n){"use strict";var s=n(40616),a=Function.prototype,i=a.apply,r=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?r.bind(i):function(){return r.apply(i,arguments)})},76080(e,t,n){"use strict";var s=n(27476),a=n(79306),i=n(40616),r=s(s.bind);e.exports=function(e,t){return a(e),void 0===t?e:i?r(e,t):function(){return e.apply(t,arguments)}}},40616(e,t,n){"use strict";var s=n(79039);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},69565(e,t,n){"use strict";var s=n(40616),a=Function.prototype.call;e.exports=s?a.bind(a):function(){return a.apply(a,arguments)}},10350(e,t,n){"use strict";var s=n(43724),a=n(39297),i=Function.prototype,r=s&&Object.getOwnPropertyDescriptor,o=a(i,"name"),l=o&&"something"===function(){}.name,c=o&&(!s||s&&r(i,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},46706(e,t,n){"use strict";var s=n(79504),a=n(79306);e.exports=function(e,t,n){try{return s(a(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},27476(e,t,n){"use strict";var s=n(22195),a=n(79504);e.exports=function(e){if("Function"===s(e))return a(e)}},79504(e,t,n){"use strict";var s=n(40616),a=Function.prototype,i=a.call,r=s&&a.bind.bind(i,i);e.exports=s?r:function(e){return function(){return i.apply(e,arguments)}}},1886(e,t,n){"use strict";var s=n(69565),a=n(24074),i=n(28551),r=n(70081),o=n(1767),l=n(55966),c=n(78227)("asyncIterator");e.exports=function(e,t){var n=arguments.length<2?l(e,c):t;return n?i(s(n,e)):new a(o(r(e)))}},44124(e,t,n){"use strict";var s=n(44576);e.exports=function(e,t){var n=s[e],a=n&&n.prototype;return a&&a[t]}},97751(e,t,n){"use strict";var s=n(44576),a=n(94901);e.exports=function(e,t){return arguments.length<2?(n=s[e],a(n)?n:void 0):s[e]&&s[e][t];var n}},1767(e){"use strict";e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},50851(e,t,n){"use strict";var s=n(36955),a=n(55966),i=n(64117),r=n(26269),o=n(78227)("iterator");e.exports=function(e){if(!i(e))return a(e,o)||a(e,"@@iterator")||r[s(e)]}},70081(e,t,n){"use strict";var s=n(69565),a=n(79306),i=n(28551),r=n(16823),o=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?o(e):t;if(a(n))return i(s(n,e));throw new l(r(e)+" is not iterable")}},55966(e,t,n){"use strict";var s=n(79306),a=n(64117);e.exports=function(e,t){var n=e[t];return a(n)?void 0:s(n)}},83789(e,t,n){"use strict";var s=n(79306),a=n(28551),i=n(69565),r=n(91291),o=n(1767),l="Invalid size",c=RangeError,u=TypeError,d=Math.max,p=function(e,t){this.set=e,this.size=d(t,0),this.has=s(e.has),this.keys=s(e.keys)};p.prototype={getIterator:function(){return o(a(i(this.keys,this.set)))},includes:function(e){return i(this.has,this.set,e)}},e.exports=function(e){a(e);var t=+e.size;if(t!=t)throw new u(l);var n=r(t);if(n<0)throw new c(l);return new p(e,n)}},44576(e,t,n){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof n.g&&n.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297(e,t,n){"use strict";var s=n(79504),a=n(48981),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(a(e),t)}},30421(e){"use strict";e.exports={}},90757(e){"use strict";e.exports=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}}},20397(e,t,n){"use strict";var s=n(97751);e.exports=s("document","documentElement")},35917(e,t,n){"use strict";var s=n(43724),a=n(79039),i=n(4055);e.exports=!s&&!a((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},47055(e,t,n){"use strict";var s=n(79504),a=n(79039),i=n(22195),r=Object,o=s("".split);e.exports=a((function(){return!r("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?o(e,""):r(e)}:r},23167(e,t,n){"use strict";var s=n(94901),a=n(20034),i=n(52967);e.exports=function(e,t,n){var r,o;return i&&s(r=t.constructor)&&r!==n&&a(o=r.prototype)&&o!==n.prototype&&i(e,o),e}},33706(e,t,n){"use strict";var s=n(79504),a=n(94901),i=n(77629),r=s(Function.toString);a(i.inspectSource)||(i.inspectSource=function(e){return r(e)}),e.exports=i.inspectSource},3451(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(30421),r=n(20034),o=n(39297),l=n(24913).f,c=n(38480),u=n(10298),d=n(34124),p=n(33392),h=n(92744),m=!1,g=p("meta"),f=0,b=function(e){l(e,g,{value:{objectID:"O"+f++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},m=!0;var e=c.f,t=a([].splice),n={};n[g]=1,e(n).length&&(c.f=function(n){for(var s=e(n),a=0,i=s.length;a<i;a++)if(s[a]===g){t(s,a,1);break}return s},s({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:u.f}))},fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,g)){if(!d(e))return"F";if(!t)return"E";b(e)}return e[g].objectID},getWeakData:function(e,t){if(!o(e,g)){if(!d(e))return!0;if(!t)return!1;b(e)}return e[g].weakData},onFreeze:function(e){return h&&m&&d(e)&&!o(e,g)&&b(e),e}};i[g]=!0},91181(e,t,n){"use strict";var s,a,i,r=n(58622),o=n(44576),l=n(20034),c=n(66699),u=n(39297),d=n(77629),p=n(66119),h=n(30421),m="Object already initialized",g=o.TypeError,f=o.WeakMap;if(r||d.state){var b=d.state||(d.state=new f);b.get=b.get,b.has=b.has,b.set=b.set,s=function(e,t){if(b.has(e))throw new g(m);return t.facade=e,b.set(e,t),t},a=function(e){return b.get(e)||{}},i=function(e){return b.has(e)}}else{var v=p("state");h[v]=!0,s=function(e,t){if(u(e,v))throw new g(m);return t.facade=e,c(e,v,t),t},a=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:s,get:a,has:i,enforce:function(e){return i(e)?a(e):s(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=a(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},44209(e,t,n){"use strict";var s=n(78227),a=n(26269),i=s("iterator"),r=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||r[i]===e)}},34376(e,t,n){"use strict";var s=n(22195);e.exports=Array.isArray||function(e){return"Array"===s(e)}},94901(e){"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},33517(e,t,n){"use strict";var s=n(79504),a=n(79039),i=n(94901),r=n(36955),o=n(97751),l=n(33706),c=function(){},u=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,p=s(d.exec),h=!d.test(c),m=function(e){if(!i(e))return!1;try{return u(c,[],e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(d,l(e))}catch(e){return!0}};g.sham=!0,e.exports=!u||a((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},92796(e,t,n){"use strict";var s=n(79039),a=n(94901),i=/#|\.prototype\./,r=function(e,t){var n=l[o(e)];return n===u||n!==c&&(a(t)?s(t):!!t)},o=r.normalize=function(e){return String(e).replace(i,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",u=r.POLYFILL="P";e.exports=r},31563(e,t,n){"use strict";var s=n(36955),a=n(39297),i=n(64117),r=n(78227),o=n(26269),l=r("iterator"),c=Object;e.exports=function(e){if(i(e))return!1;var t=c(e);return void 0!==t[l]||"@@iterator"in t||a(o,s(t))}},64117(e){"use strict";e.exports=function(e){return null==e}},20034(e,t,n){"use strict";var s=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},13925(e,t,n){"use strict";var s=n(20034);e.exports=function(e){return s(e)||null===e}},96395(e){"use strict";e.exports=!1},60788(e,t,n){"use strict";var s=n(20034),a=n(22195),i=n(78227)("match");e.exports=function(e){var t;return s(e)&&(void 0!==(t=e[i])?!!t:"RegExp"===a(e))}},10757(e,t,n){"use strict";var s=n(97751),a=n(94901),i=n(1625),r=n(7040),o=Object;e.exports=r?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return a(t)&&i(t.prototype,o(e))}},40507(e,t,n){"use strict";var s=n(69565);e.exports=function(e,t,n){for(var a,i,r=n?e:e.iterator,o=e.next;!(a=s(o,r)).done;)if(void 0!==(i=t(a.value)))return i}},72652(e,t,n){"use strict";var s=n(76080),a=n(69565),i=n(28551),r=n(16823),o=n(44209),l=n(26198),c=n(1625),u=n(70081),d=n(50851),p=n(9539),h=TypeError,m=function(e,t){this.stopped=e,this.result=t},g=m.prototype;e.exports=function(e,t,n){var f,b,v,y,S,w,x,A=n&&n.that,_=!(!n||!n.AS_ENTRIES),k=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),I=s(t,A),T=function(e){var t=f;return f=void 0,t&&p(t,"normal"),new m(!0,e)},D=function(e){return _?(i(e),C?I(e[0],e[1],T):I(e[0],e[1])):C?I(e,T):I(e)};if(k)f=e.iterator;else if(j)f=e;else{if(!(b=d(e)))throw new h(r(e)+" is not iterable");if(o(b)){for(v=0,y=l(e);y>v;v++)if((S=D(e[v]))&&c(g,S))return S;return new m(!1)}f=u(e,b)}for(w=k?e.next:f.next;!(x=a(w,f)).done;){var P=x.value;try{S=D(P)}catch(e){if(!f)throw e;p(f,"throw",e)}if("object"==typeof S&&S&&c(g,S))return S}return new m(!1)}},9539(e,t,n){"use strict";var s=n(69565),a=n(28551),i=n(55966);e.exports=function(e,t,n){var r,o;a(e);try{if(!(r=i(e,"return"))){if("throw"===t)throw n;return n}r=s(r,e)}catch(e){o=!0,r=e}if("throw"===t)throw n;if(o)throw r;return a(r),n}},33994(e,t,n){"use strict";var s=n(57657).IteratorPrototype,a=n(2360),i=n(6980),r=n(10687),o=n(26269),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=a(s,{next:i(+!c,n)}),r(e,u,!1,!0),o[u]=l,e}},51088(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(96395),r=n(10350),o=n(94901),l=n(33994),c=n(42787),u=n(52967),d=n(10687),p=n(66699),h=n(36840),m=n(78227),g=n(26269),f=n(57657),b=r.PROPER,v=r.CONFIGURABLE,y=f.IteratorPrototype,S=f.BUGGY_SAFARI_ITERATORS,w=m("iterator"),x="keys",A="values",_="entries",k=function(){return this};e.exports=function(e,t,n,r,m,f,j){l(n,t,r);var C,I,T,D=function(e){if(e===m&&E)return E;if(!S&&e&&e in L)return L[e];switch(e){case x:case A:case _:return function(){return new n(this,e)}}return function(){return new n(this)}},P=t+" Iterator",O=!1,L=e.prototype,M=L[w]||L["@@iterator"]||m&&L[m],E=!S&&M||D(m),R="Array"===t&&L.entries||M;if(R&&(C=c(R.call(new e)))!==Object.prototype&&C.next&&(i||c(C)===y||(u?u(C,y):o(C[w])||h(C,w,k)),d(C,P,!0,!0),i&&(g[P]=k)),b&&m===A&&M&&M.name!==A&&(!i&&v?p(L,"name",A):(O=!0,E=function(){return a(M,this)})),m)if(I={values:D(A),keys:f?E:D(x),entries:D(_)},j)for(T in I)(S||O||!(T in L))&&h(L,T,I[T]);else s({target:t,proto:!0,forced:S||O},I);return i&&!j||L[w]===E||h(L,w,E,{name:m}),g[t]=E,I}},57657(e,t,n){"use strict";var s,a,i,r=n(79039),o=n(94901),l=n(20034),c=n(2360),u=n(42787),d=n(36840),p=n(78227),h=n(96395),m=p("iterator"),g=!1;[].keys&&("next"in(i=[].keys())?(a=u(u(i)))!==Object.prototype&&(s=a):g=!0),!l(s)||r((function(){var e={};return s[m].call(e)!==e}))?s={}:h&&(s=c(s)),o(s[m])||d(s,m,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:g}},26269(e){"use strict";e.exports={}},26198(e,t,n){"use strict";var s=n(18014);e.exports=function(e){return s(e.length)}},50283(e,t,n){"use strict";var s=n(79504),a=n(79039),i=n(94901),r=n(39297),o=n(43724),l=n(10350).CONFIGURABLE,c=n(33706),u=n(91181),d=u.enforce,p=u.get,h=String,m=Object.defineProperty,g=s("".slice),f=s("".replace),b=s([].join),v=o&&!a((function(){return 8!==m((function(){}),"length",{value:8}).length})),y=String(String).split("String"),S=e.exports=function(e,t,n){"Symbol("===g(h(t),0,7)&&(t="["+f(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||l&&e.name!==t)&&(o?m(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&r(n,"arity")&&e.length!==n.arity&&m(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?o&&m(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=d(e);return r(s,"source")||(s.source=b(y,"string"==typeof t?t:"")),e};Function.prototype.toString=S((function(){return i(this)&&p(this).source||c(this)}),"toString")},72248(e,t,n){"use strict";var s=n(79504),a=Map.prototype;e.exports={Map,set:s(a.set),get:s(a.get),has:s(a.has),remove:s(a.delete),proto:a}},26223(e,t,n){"use strict";var s=n(79504),a=n(40507),i=n(72248),r=i.Map,o=i.proto,l=s(o.forEach),c=s(o.entries),u=c(new r).next;e.exports=function(e,t,n){return n?a({iterator:c(e),next:u},(function(e){return t(e[1],e[0])})):l(e,t)}},80741(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?n:t)(s)}},91955(e,t,n){"use strict";var s,a,i,r,o,l=n(44576),c=n(93389),u=n(76080),d=n(59225).set,p=n(18265),h=n(89544),m=n(44265),g=n(7860),f=n(16193),b=l.MutationObserver||l.WebKitMutationObserver,v=l.document,y=l.process,S=l.Promise,w=c("queueMicrotask");if(!w){var x=new p,A=function(){var e,t;for(f&&(e=y.domain)&&e.exit();t=x.get();)try{t()}catch(e){throw x.head&&s(),e}e&&e.enter()};h||f||g||!b||!v?!m&&S&&S.resolve?((r=S.resolve(void 0)).constructor=S,o=u(r.then,r),s=function(){o(A)}):f?s=function(){y.nextTick(A)}:(d=u(d,l),s=function(){d(A)}):(a=!0,i=v.createTextNode(""),new b(A).observe(i,{characterData:!0}),s=function(){i.data=a=!a}),w=function(e){x.head||s(),x.add(e)}}e.exports=w},36043(e,t,n){"use strict";var s=n(79306),a=TypeError,i=function(e){var t,n;this.promise=new e((function(e,s){if(void 0!==t||void 0!==n)throw new a("Bad Promise constructor");t=e,n=s})),this.resolve=s(t),this.reject=s(n)};e.exports.f=function(e){return new i(e)}},60511(e,t,n){"use strict";var s=n(60788),a=TypeError;e.exports=function(e){if(s(e))throw new a("The method doesn't accept regular expressions");return e}},44213(e,t,n){"use strict";var s=n(43724),a=n(79504),i=n(69565),r=n(79039),o=n(71072),l=n(33717),c=n(48773),u=n(48981),d=n(47055),p=Object.assign,h=Object.defineProperty,m=a([].concat);e.exports=!p||r((function(){if(s&&1!==p({b:1},p(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!==p({},e)[n]||o(p({},t)).join("")!==a}))?function(e,t){for(var n=u(e),a=arguments.length,r=1,p=l.f,h=c.f;a>r;)for(var g,f=d(arguments[r++]),b=p?m(o(f),p(f)):o(f),v=b.length,y=0;v>y;)g=b[y++],s&&!i(h,f,g)||(n[g]=f[g]);return n}:p},2360(e,t,n){"use strict";var s,a=n(28551),i=n(96801),r=n(88727),o=n(30421),l=n(20397),c=n(4055),u=n(66119),d="prototype",p="script",h=u("IE_PROTO"),m=function(){},g=function(e){return"<"+p+">"+e+"</"+p+">"},f=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;b="undefined"!=typeof document?document.domain&&s?f(s):(t=c("iframe"),n="java"+p+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):f(s);for(var a=r.length;a--;)delete b[d][r[a]];return b()};o[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=a(e),n=new m,m[d]=null,n[h]=e):n=b(),void 0===t?n:i.f(n,t)}},96801(e,t,n){"use strict";var s=n(43724),a=n(48686),i=n(24913),r=n(28551),o=n(25397),l=n(71072);t.f=s&&!a?Object.defineProperties:function(e,t){r(e);for(var n,s=o(t),a=l(t),c=a.length,u=0;c>u;)i.f(e,n=a[u++],s[n]);return e}},24913(e,t,n){"use strict";var s=n(43724),a=n(35917),i=n(48686),r=n(28551),o=n(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,d="enumerable",p="configurable",h="writable";t.f=s?i?function(e,t,n){if(r(e),t=o(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&h in n&&!n[h]){var s=u(e,t);s&&s[h]&&(e[t]=n.value,n={configurable:p in n?n[p]:s[p],enumerable:d in n?n[d]:s[d],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(r(e),t=o(t),r(n),a)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},77347(e,t,n){"use strict";var s=n(43724),a=n(69565),i=n(48773),r=n(6980),o=n(25397),l=n(56969),c=n(39297),u=n(35917),d=Object.getOwnPropertyDescriptor;t.f=s?d:function(e,t){if(e=o(e),t=l(t),u)try{return d(e,t)}catch(e){}if(c(e,t))return r(!a(i.f,e,t),e[t])}},10298(e,t,n){"use strict";var s=n(22195),a=n(25397),i=n(38480).f,r=n(67680),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"Window"===s(e)?function(e){try{return i(e)}catch(e){return r(o)}}(e):i(a(e))}},38480(e,t,n){"use strict";var s=n(61828),a=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,a)}},33717(e,t){"use strict";t.f=Object.getOwnPropertySymbols},42787(e,t,n){"use strict";var s=n(39297),a=n(94901),i=n(48981),r=n(66119),o=n(12211),l=r("IE_PROTO"),c=Object,u=c.prototype;e.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(s(t,l))return t[l];var n=t.constructor;return a(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},34124(e,t,n){"use strict";var s=n(79039),a=n(20034),i=n(22195),r=n(15652),o=Object.isExtensible,l=s((function(){o(1)}));e.exports=l||r?function(e){return!!a(e)&&(!r||"ArrayBuffer"!==i(e))&&(!o||o(e))}:o},1625(e,t,n){"use strict";var s=n(79504);e.exports=s({}.isPrototypeOf)},61828(e,t,n){"use strict";var s=n(79504),a=n(39297),i=n(25397),r=n(19617).indexOf,o=n(30421),l=s([].push);e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)!a(o,n)&&a(s,n)&&l(u,n);for(;t.length>c;)a(s,n=t[c++])&&(~r(u,n)||l(u,n));return u}},71072(e,t,n){"use strict";var s=n(61828),a=n(88727);e.exports=Object.keys||function(e){return s(e,a)}},48773(e,t){"use strict";var n={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,a=s&&!n.call({1:2},1);t.f=a?function(e){var t=s(this,e);return!!t&&t.enumerable}:n},52967(e,t,n){"use strict";var s=n(46706),a=n(20034),i=n(67750),r=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=s(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,s){return i(n),r(s),a(n)?(t?e(n,s):n.__proto__=s,n):n}}():void 0)},32357(e,t,n){"use strict";var s=n(43724),a=n(79039),i=n(79504),r=n(42787),o=n(71072),l=n(25397),c=i(n(48773).f),u=i([].push),d=s&&a((function(){var e=Object.create(null);return e[2]=2,!c(e,2)})),p=function(e){return function(t){for(var n,a=l(t),i=o(a),p=d&&null===r(a),h=i.length,m=0,g=[];h>m;)n=i[m++],s&&!(p?n in a:c(a,n))||u(g,e?[n,a[n]]:a[n]);return g}};e.exports={entries:p(!0),values:p(!1)}},53179(e,t,n){"use strict";var s=n(92140),a=n(36955);e.exports=s?{}.toString:function(){return"[object "+a(this)+"]"}},84270(e,t,n){"use strict";var s=n(69565),a=n(94901),i=n(20034),r=TypeError;e.exports=function(e,t){var n,o;if("string"===t&&a(n=e.toString)&&!i(o=s(n,e)))return o;if(a(n=e.valueOf)&&!i(o=s(n,e)))return o;if("string"!==t&&a(n=e.toString)&&!i(o=s(n,e)))return o;throw new r("Can't convert object to primitive value")}},35031(e,t,n){"use strict";var s=n(97751),a=n(79504),i=n(38480),r=n(33717),o=n(28551),l=a([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(o(e)),n=r.f;return n?l(t,n(e)):t}},19167(e,t,n){"use strict";var s=n(44576);e.exports=s},1103(e){"use strict";e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},10916(e,t,n){"use strict";var s=n(44576),a=n(80550),i=n(94901),r=n(92796),o=n(33706),l=n(78227),c=n(84215),u=n(96395),d=n(39519),p=a&&a.prototype,h=l("species"),m=!1,g=i(s.PromiseRejectionEvent),f=r("Promise",(function(){var e=o(a),t=e!==String(a);if(!t&&66===d)return!0;if(u&&(!p.catch||!p.finally))return!0;if(!d||d<51||!/native code/.test(e)){var n=new a((function(e){e(1)})),s=function(e){e((function(){}),(function(){}))};if((n.constructor={})[h]=s,!(m=n.then((function(){}))instanceof s))return!0}return!(t||"BROWSER"!==c&&"DENO"!==c||g)}));e.exports={CONSTRUCTOR:f,REJECTION_EVENT:g,SUBCLASSING:m}},80550(e,t,n){"use strict";var s=n(44576);e.exports=s.Promise},93438(e,t,n){"use strict";var s=n(28551),a=n(20034),i=n(36043);e.exports=function(e,t){if(s(e),a(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},90537(e,t,n){"use strict";var s=n(80550),a=n(84428),i=n(10916).CONSTRUCTOR;e.exports=i||!a((function(e){s.all(e).then(void 0,(function(){}))}))},18265(e){"use strict";var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}},e.exports=t},67750(e,t,n){"use strict";var s=n(64117),a=TypeError;e.exports=function(e){if(s(e))throw new a("Can't call method on "+e);return e}},93389(e,t,n){"use strict";var s=n(44576),a=n(43724),i=Object.getOwnPropertyDescriptor;e.exports=function(e){if(!a)return s[e];var t=i(s,e);return t&&t.value}},89286(e,t,n){"use strict";var s=n(94402),a=n(38469),i=s.Set,r=s.add;e.exports=function(e){var t=new i;return a(e,(function(e){r(t,e)})),t}},83440(e,t,n){"use strict";var s=n(97080),a=n(94402),i=n(89286),r=n(25170),o=n(83789),l=n(38469),c=n(40507),u=a.has,d=a.remove;e.exports=function(e){var t=s(this),n=o(e),a=i(t);return r(a)<=n.size?l(a,(function(e){n.includes(e)&&d(a,e)})):c(n.getIterator(),(function(e){u(a,e)&&d(a,e)})),a}},94402(e,t,n){"use strict";var s=n(79504),a=Set.prototype;e.exports={Set,add:s(a.add),has:s(a.has),remove:s(a.delete),proto:a}},68750(e,t,n){"use strict";var s=n(97080),a=n(94402),i=n(25170),r=n(83789),o=n(38469),l=n(40507),c=a.Set,u=a.add,d=a.has;e.exports=function(e){var t=s(this),n=r(e),a=new c;return i(t)>n.size?l(n.getIterator(),(function(e){d(t,e)&&u(a,e)})):o(t,(function(e){n.includes(e)&&u(a,e)})),a}},64449(e,t,n){"use strict";var s=n(97080),a=n(94402).has,i=n(25170),r=n(83789),o=n(38469),l=n(40507),c=n(9539);e.exports=function(e){var t=s(this),n=r(e);if(i(t)<=n.size)return!1!==o(t,(function(e){if(n.includes(e))return!1}),!0);var u=n.getIterator();return!1!==l(u,(function(e){if(a(t,e))return c(u.iterator,"normal",!1)}))}},53838(e,t,n){"use strict";var s=n(97080),a=n(25170),i=n(38469),r=n(83789);e.exports=function(e){var t=s(this),n=r(e);return!(a(t)>n.size)&&!1!==i(t,(function(e){if(!n.includes(e))return!1}),!0)}},28527(e,t,n){"use strict";var s=n(97080),a=n(94402).has,i=n(25170),r=n(83789),o=n(40507),l=n(9539);e.exports=function(e){var t=s(this),n=r(e);if(i(t)<n.size)return!1;var c=n.getIterator();return!1!==o(c,(function(e){if(!a(t,e))return l(c.iterator,"normal",!1)}))}},38469(e,t,n){"use strict";var s=n(79504),a=n(40507),i=n(94402),r=i.Set,o=i.proto,l=s(o.forEach),c=s(o.keys),u=c(new r).next;e.exports=function(e,t,n){return n?a({iterator:c(e),next:u},t):l(e,t)}},84916(e,t,n){"use strict";var s=n(97751),a=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},i=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var n=s("Set");try{(new n)[e](a(0));try{return(new n)[e](a(-1)),!1}catch(s){if(!t)return!0;try{return(new n)[e](i(-1/0)),!1}catch(s){return t(new n([1,2])[e](i(1/0)))}}}catch(e){return!1}}},39835(e){"use strict";e.exports=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},s=t[e](n);return 1===s.size&&4===s.values().next().value}catch(e){return!1}}},25170(e,t,n){"use strict";var s=n(46706),a=n(94402);e.exports=s(a.proto,"size","get")||function(e){return e.size}},87633(e,t,n){"use strict";var s=n(97751),a=n(62106),i=n(78227),r=n(43724),o=i("species");e.exports=function(e){var t=s(e);r&&t&&!t[o]&&a(t,o,{configurable:!0,get:function(){return this}})}},83650(e,t,n){"use strict";var s=n(97080),a=n(94402),i=n(89286),r=n(83789),o=n(40507),l=a.add,c=a.has,u=a.remove;e.exports=function(e){var t=s(this),n=r(e).getIterator(),a=i(t);return o(n,(function(e){c(t,e)?u(a,e):l(a,e)})),a}},10687(e,t,n){"use strict";var s=n(24913).f,a=n(39297),i=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!a(e,i)&&s(e,i,{configurable:!0,value:t})}},44204(e,t,n){"use strict";var s=n(97080),a=n(94402).add,i=n(89286),r=n(83789),o=n(40507);e.exports=function(e){var t=s(this),n=r(e).getIterator(),l=i(t);return o(n,(function(e){a(l,e)})),l}},66119(e,t,n){"use strict";var s=n(25745),a=n(33392),i=s("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},77629(e,t,n){"use strict";var s=n(96395),a=n(44576),i=n(39433),r="__core-js_shared__",o=e.exports=a[r]||i(r,{});(o.versions||(o.versions=[])).push({version:"3.49.0",mode:s?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745(e,t,n){"use strict";var s=n(77629);e.exports=function(e,t){return s[e]||(s[e]=t||{})}},2293(e,t,n){"use strict";var s=n(28551),a=n(35548),i=n(64117),r=n(78227)("species");e.exports=function(e,t){var n,o=s(e).constructor;return void 0===o||i(n=s(o)[r])?t:a(n)}},68183(e,t,n){"use strict";var s=n(79504),a=n(91291),i=n(655),r=n(67750),o=s("".charAt),l=s("".charCodeAt),c=s("".slice),u=function(e){return function(t,n){var s,u,d=i(r(t)),p=a(n),h=d.length;return p<0||p>=h?e?"":void 0:(s=l(d,p))<55296||s>56319||p+1===h||(u=l(d,p+1))<56320||u>57343?e?o(d,p):s:e?c(d,p,p+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3717(e,t,n){"use strict";var s=n(79504),a=2147483647,i=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",l=RangeError,c=s(r.exec),u=Math.floor,d=String.fromCharCode,p=s("".charCodeAt),h=s([].join),m=s([].push),g=s("".replace),f=s("".split),b=s("".toLowerCase),v=function(e){return e+22+75*(e<26)},y=function(e,t,n){var s=0;for(e=n?u(e/700):e>>1,e+=u(e/t);e>455;)e=u(e/35),s+=36;return u(s+36*e/(e+38))},S=function(e){var t=[];e=function(e){for(var t=[],n=0,s=e.length;n<s;){var a=p(e,n++);if(a>=55296&&a<=56319&&n<s){var i=p(e,n++);56320==(64512&i)?m(t,((1023&a)<<10)+(1023&i)+65536):(m(t,a),n--)}else m(t,a)}return t}(e);var n,s,i=e.length,r=128,c=0,g=72;for(n=0;n<e.length;n++)(s=e[n])<128&&m(t,d(s));var f=t.length,b=f;for(f&&m(t,"-");b<i;){var S=a;for(n=0;n<e.length;n++)(s=e[n])>=r&&s<S&&(S=s);var w=b+1;if(S-r>u((a-c)/w))throw new l(o);for(c+=(S-r)*w,r=S,n=0;n<e.length;n++){if((s=e[n])<r&&++c>a)throw new l(o);if(s===r){for(var x=c,A=36;;){var _=A<=g?1:A>=g+26?26:A-g;if(x<_)break;var k=x-_,j=36-_;m(t,d(v(_+k%j))),x=u(k/j),A+=36}m(t,d(v(x))),g=y(c,w,b===f),c=0,b++}}c++,r++}return h(t,"")};e.exports=function(e){var t,n,s=[],a=f(g(b(e),r,"."),".");for(t=0;t<a.length;t++)n=a[t],m(s,c(i,n)?"xn--"+S(n):n);return h(s,".")}},4495(e,t,n){"use strict";var s=n(39519),a=n(79039),i=n(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},59225(e,t,n){"use strict";var s,a,i,r,o=n(44576),l=n(18745),c=n(76080),u=n(94901),d=n(39297),p=n(79039),h=n(20397),m=n(67680),g=n(4055),f=n(22812),b=n(89544),v=n(16193),y=o.setImmediate,S=o.clearImmediate,w=o.process,x=o.Dispatch,A=o.Function,_=o.MessageChannel,k=o.String,j=0,C={},I="onreadystatechange";p((function(){s=o.location}));var T=function(e){if(d(C,e)){var t=C[e];delete C[e],t()}},D=function(e){return function(){T(e)}},P=function(e){T(e.data)},O=function(e){o.postMessage(k(e),s.protocol+"//"+s.host)};y&&S||(y=function(e){f(arguments.length,1);var t=u(e)?e:A(e),n=m(arguments,1);return C[++j]=function(){l(t,void 0,n)},a(j),j},S=function(e){delete C[e]},v?a=function(e){w.nextTick(D(e))}:x&&x.now?a=function(e){x.now(D(e))}:_&&!b?(r=(i=new _).port2,i.port1.onmessage=P,a=c(r.postMessage,r)):o.addEventListener&&u(o.postMessage)&&!o.importScripts&&s&&"file:"!==s.protocol&&!p(O)?(a=O,o.addEventListener("message",P,!1)):a=I in g("script")?function(e){h.appendChild(g("script"))[I]=function(){h.removeChild(this),T(e)}}:function(e){setTimeout(D(e),0)}),e.exports={set:y,clear:S}},35610(e,t,n){"use strict";var s=n(91291),a=Math.max,i=Math.min;e.exports=function(e,t){var n=s(e);return n<0?a(n+t,0):i(n,t)}},25397(e,t,n){"use strict";var s=n(47055),a=n(67750);e.exports=function(e){return s(a(e))}},91291(e,t,n){"use strict";var s=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},18014(e,t,n){"use strict";var s=n(91291),a=Math.min;e.exports=function(e){var t=s(e);return t>0?a(t,9007199254740991):0}},48981(e,t,n){"use strict";var s=n(67750),a=Object;e.exports=function(e){return a(s(e))}},72777(e,t,n){"use strict";var s=n(69565),a=n(20034),i=n(10757),r=n(55966),o=n(84270),l=n(78227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!a(e)||i(e))return e;var n,l=r(e,u);if(l){if(void 0===t&&(t="default"),n=s(l,e,t),!a(n)||i(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},56969(e,t,n){"use strict";var s=n(72777),a=n(10757);e.exports=function(e){var t=s(e,"string");return a(t)?t:t+""}},47650(e,t,n){"use strict";var s=n(97751),a=n(94901),i=n(31563),r=n(20034),o=s("Set");e.exports=function(e){return function(e){return r(e)&&"number"==typeof e.size&&a(e.has)&&a(e.keys)}(e)?e:i(e)?new o(e):e}},92140(e,t,n){"use strict";var s={};s[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(s)},655(e,t,n){"use strict";var s=n(36955),a=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return a(e)}},16823(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},33392(e,t,n){"use strict";var s=n(79504),a=0,i=Math.random(),r=s(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++a+i,36)}},67416(e,t,n){"use strict";var s=n(79039),a=n(78227),i=n(43724),r=n(96395),o=a("iterator");e.exports=!s((function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,n=new URLSearchParams("a=1&a=2&b=3"),s="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),s+=n+e})),n.delete("a",2),n.delete("b",void 0),r&&(!e.toJSON||!n.has("a",1)||n.has("a",2)||!n.has("a",void 0)||n.has("b"))||!t.size&&(r||!i)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[o]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host}))},7040(e,t,n){"use strict";var s=n(4495);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686(e,t,n){"use strict";var s=n(43724),a=n(79039);e.exports=s&&a((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},22812(e){"use strict";var t=TypeError;e.exports=function(e,n){if(e<n)throw new t("Not enough arguments");return e}},58622(e,t,n){"use strict";var s=n(44576),a=n(94901),i=s.WeakMap;e.exports=a(i)&&/native code/.test(String(i))},78227(e,t,n){"use strict";var s=n(44576),a=n(25745),i=n(39297),r=n(33392),o=n(4495),l=n(7040),c=s.Symbol,u=a("wks"),d=l?c.for||c:c&&c.withoutSetter||r;e.exports=function(e){return i(u,e)||(u[e]=o&&i(c,e)?c[e]:d("Symbol."+e)),u[e]}},18107(e,t,n){"use strict";var s=n(46518),a=n(48981),i=n(26198),r=n(91291),o=n(6469);s({target:"Array",proto:!0},{at:function(e){var t=a(this),n=i(t),s=r(e),o=s>=0?s:n+s;return o<0||o>=n?void 0:t[o]}}),o("at")},28706(e,t,n){"use strict";var s=n(46518),a=n(79039),i=n(34376),r=n(20034),o=n(48981),l=n(26198),c=n(96837),u=n(97040),d=n(34527),p=n(1469),h=n(70597),m=n(78227),g=n(39519),f=m("isConcatSpreadable"),b=g>=51||!a((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),v=function(e){if(!r(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};s({target:"Array",proto:!0,arity:1,forced:!b||!h("concat")},{concat:function(e){var t,n,s,a,i,r=o(this),h=p(r,0),m=0;for(t=-1,s=arguments.length;t<s;t++)if(v(i=-1===t?r:arguments[t]))for(a=l(i),c(m+a),n=0;n<a;n++,m++)n in i&&u(h,m,i[n]);else c(m+1),u(h,m++,i);return d(h,m),h}})},26835(e,t,n){"use strict";var s=n(46518),a=n(57029),i=n(6469);s({target:"Array",proto:!0},{copyWithin:a}),i("copyWithin")},88431(e,t,n){"use strict";var s=n(46518),a=n(59213).every;s({target:"Array",proto:!0,forced:!n(34598)("every")},{every:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},33771(e,t,n){"use strict";var s=n(46518),a=n(84373),i=n(6469);s({target:"Array",proto:!0},{fill:a}),i("fill")},2008(e,t,n){"use strict";var s=n(46518),a=n(59213).filter;s({target:"Array",proto:!0,forced:!n(70597)("filter")},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},48980(e,t,n){"use strict";var s=n(46518),a=n(59213).findIndex,i=n(6469),r="findIndex",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),s({target:"Array",proto:!0,forced:o},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(r)},13451(e,t,n){"use strict";var s=n(46518),a=n(43839).findLastIndex,i=n(6469);s({target:"Array",proto:!0},{findLastIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},10838(e,t,n){"use strict";var s=n(46518),a=n(43839).findLast,i=n(6469);s({target:"Array",proto:!0},{findLast:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLast")},50113(e,t,n){"use strict";var s=n(46518),a=n(59213).find,i=n(6469),r="find",o=!0;r in[]&&Array(1)[r]((function(){o=!1})),s({target:"Array",proto:!0,forced:o},{find:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i(r)},78350(e,t,n){"use strict";var s=n(46518),a=n(70259),i=n(79306),r=n(48981),o=n(26198),l=n(1469);s({target:"Array",proto:!0},{flatMap:function(e){var t,n=r(this),s=o(n);return i(e),t=l(n,0),a(t,n,n,s,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},46449(e,t,n){"use strict";var s=n(46518),a=n(70259),i=n(48981),r=n(26198),o=n(91291),l=n(1469);s({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=r(t),s=void 0===e?1:o(e),c=l(t,0);return a(c,t,t,n,0,s),c}})},51629(e,t,n){"use strict";var s=n(46518),a=n(90235);s({target:"Array",proto:!0,forced:[].forEach!==a},{forEach:a})},52407(e,t,n){"use strict";var s=n(46518),a=n(8045),i=n(79039),r=Array.fromAsync;s({target:"Array",stat:!0,forced:!r||i((function(){var e=0;return r.call((function(){return e++,[]}),{length:0}),1!==e}))},{fromAsync:a})},23418(e,t,n){"use strict";var s=n(46518),a=n(97916);s({target:"Array",stat:!0,forced:!n(84428)((function(e){Array.from(e)}))},{from:a})},74423(e,t,n){"use strict";var s=n(46518),a=n(19617).includes,i=n(79039),r=n(6469),o=i((function(){return!Array(1).includes()})),l=i((function(){return[,1].includes(void 0,1)}));s({target:"Array",proto:!0,forced:o||l},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("includes")},25276(e,t,n){"use strict";var s=n(46518),a=n(27476),i=n(19617).indexOf,r=n(34598),o=a([].indexOf),l=!!o&&1/o([1],1,-0)<0;s({target:"Array",proto:!0,forced:l||!r("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return l?o(this,e,t)||0:i(this,e,t)}})},64346(e,t,n){"use strict";n(46518)({target:"Array",stat:!0},{isArray:n(34376)})},23792(e,t,n){"use strict";var s=n(25397),a=n(6469),i=n(26269),r=n(91181),o=n(24913).f,l=n(51088),c=n(62529),u=n(96395),d=n(43724),p="Array Iterator",h=r.set,m=r.getterFor(p);e.exports=l(Array,"Array",(function(e,t){h(this,{type:p,target:s(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var g=i.Arguments=i.Array;if(a("keys"),a("values"),a("entries"),!u&&d&&"values"!==g.name)try{o(g,"name",{value:"values"})}catch(e){}},48598(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(47055),r=n(25397),o=n(34598),l=a([].join);s({target:"Array",proto:!0,forced:i!==Object||!o("join",",")},{join:function(e){return l(r(this),void 0===e?",":e)}})},8921(e,t,n){"use strict";var s=n(46518),a=n(8379);s({target:"Array",proto:!0,forced:a!==[].lastIndexOf},{lastIndexOf:a})},62062(e,t,n){"use strict";var s=n(46518),a=n(59213).map;s({target:"Array",proto:!0,forced:!n(70597)("map")},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},31051(e,t,n){"use strict";var s=n(46518),a=n(79039),i=n(33517),r=n(97040),o=n(34527),l=Array;s({target:"Array",stat:!0,forced:a((function(){function e(){}return!(l.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(i(this)?this:l)(t);t>e;)r(n,e,arguments[e++]);return o(n,t),n}})},44114(e,t,n){"use strict";var s=n(46518),a=n(48981),i=n(26198),r=n(34527),o=n(96837);s({target:"Array",proto:!0,arity:1,forced:n(79039)((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=a(this),n=i(t),s=arguments.length;o(n+s);for(var l=0;l<s;l++)t[n]=arguments[l],n++;return r(t,n),n}})},18863(e,t,n){"use strict";var s=n(46518),a=n(80926).right,i=n(34598),r=n(39519);s({target:"Array",proto:!0,forced:!n(16193)&&r>79&&r<83||!i("reduceRight")},{reduceRight:function(e){return a(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},72712(e,t,n){"use strict";var s=n(46518),a=n(80926).left,i=n(34598),r=n(39519);s({target:"Array",proto:!0,forced:!n(16193)&&r>79&&r<83||!i("reduce")},{reduce:function(e){var t=arguments.length;return a(this,e,t,t>1?arguments[1]:void 0)}})},94490(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(34376),r=a([].reverse),o=[1,2];s({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),r(this)}})},34782(e,t,n){"use strict";var s=n(46518),a=n(34376),i=n(33517),r=n(20034),o=n(35610),l=n(26198),c=n(25397),u=n(97040),d=n(34527),p=n(78227),h=n(70597),m=n(67680),g=h("slice"),f=p("species"),b=Array,v=Math.max;s({target:"Array",proto:!0,forced:!g},{slice:function(e,t){var n,s,p,h=c(this),g=l(h),y=o(e,g),S=o(void 0===t?g:t,g);if(a(h)&&(n=h.constructor,(i(n)&&(n===b||a(n.prototype))||r(n)&&null===(n=n[f]))&&(n=void 0),n===b||void 0===n))return m(h,y,S);for(s=new(void 0===n?b:n)(v(S-y,0)),p=0;y<S;y++,p++)y in h&&u(s,p,h[y]);return d(s,p),s}})},15086(e,t,n){"use strict";var s=n(46518),a=n(59213).some;s({target:"Array",proto:!0,forced:!n(34598)("some")},{some:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},26910(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(79306),r=n(48981),o=n(26198),l=n(84606),c=n(655),u=n(79039),d=n(74488),p=n(34598),h=n(13709),m=n(13763),g=n(39519),f=n(3607),b=[],v=a(b.sort),y=a(b.push),S=u((function(){b.sort(void 0)})),w=u((function(){b.sort(null)})),x=p("sort"),A=!u((function(){if(g)return g<70;if(!(h&&h>3)){if(m)return!0;if(f)return f<603;var e,t,n,s,a="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(s=0;s<47;s++)b.push({k:t+s,v:n})}for(b.sort((function(e,t){return t.v-e.v})),s=0;s<b.length;s++)t=b[s].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}}));s({target:"Array",proto:!0,forced:S||!w||!x||!A},{sort:function(e){void 0!==e&&i(e);var t=r(this);if(A)return void 0===e?v(t):v(t,e);var n,s,a=[],u=o(t);for(s=0;s<u;s++)s in t&&y(a,t[s]);for(d(a,function(e){return function(t,n){if(void 0===n)return-1;if(void 0===t)return 1;if(void 0!==e)return+e(t,n)||0;var s=c(t),a=c(n);return s===a?0:s>a?1:-1}}(e)),n=o(a),s=0;s<n;)t[s]=a[s++];for(;s<u;)l(t,s++);return t}})},87478(e,t,n){"use strict";n(87633)("Array")},54554(e,t,n){"use strict";var s=n(46518),a=n(48981),i=n(35610),r=n(91291),o=n(26198),l=n(34527),c=n(96837),u=n(1469),d=n(97040),p=n(84606),h=n(70597)("splice"),m=Math.max,g=Math.min;s({target:"Array",proto:!0,forced:!h},{splice:function(e,t){var n,s,h,f,b,v,y=a(this),S=o(y),w=i(e,S),x=arguments.length;for(0===x?n=s=0:1===x?(n=0,s=S-w):(n=x-2,s=g(m(r(t),0),S-w)),c(S+n-s),h=u(y,s),f=0;f<s;f++)(b=w+f)in y&&d(h,f,y[b]);if(l(h,s),n<s){for(f=w;f<S-s;f++)v=f+n,(b=f+s)in y?y[v]=y[b]:p(y,v);for(f=S;f>S-s+n;f--)p(y,f-1)}else if(n>s)for(f=S-s;f>w;f--)v=f+n-1,(b=f+s-1)in y?y[v]=y[b]:p(y,v);for(f=0;f<n;f++)y[f+w]=arguments[f+2];return l(y,S-s+n),h}})},9678(e,t,n){"use strict";var s=n(46518),a=n(26198),i=n(25397),r=n(97040),o=n(6469),l=Array;s({target:"Array",proto:!0},{toReversed:function(){for(var e=i(this),t=a(e),n=new l(t),s=0;s<t;s++)r(n,s,e[t-s-1]);return n}}),o("toReversed")},57145(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(79306),r=n(25397),o=n(35370),l=n(44124),c=n(6469),u=Array,d=a(l("Array","sort"));s({target:"Array",proto:!0},{toSorted:function(e){void 0!==e&&i(e);var t=r(this),n=o(u,t);return d(n,e)}}),c("toSorted")},71658(e,t,n){"use strict";var s=n(46518),a=n(6469),i=n(96837),r=n(26198),o=n(35610),l=n(25397),c=n(91291),u=n(97040),d=Array,p=Math.max,h=Math.min;s({target:"Array",proto:!0},{toSpliced:function(e,t){var n,s,a,m,g=l(this),f=r(g),b=o(e,f),v=arguments.length,y=0;for(0===v?n=s=0:1===v?(n=0,s=f-b):(n=v-2,s=h(p(c(t),0),f-b)),a=i(f+n-s),m=d(a);y<b;y++)u(m,y,g[y]);for(;y<b+n;y++)u(m,y,arguments[y-b+2]);for(;y<a;y++)u(m,y,g[y+s-n]);return m}}),a("toSpliced")},30237(e,t,n){"use strict";n(6469)("flatMap")},93514(e,t,n){"use strict";n(6469)("flat")},13609(e,t,n){"use strict";var s=n(46518),a=n(48981),i=n(26198),r=n(34527),o=n(84606),l=n(96837);s({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var t=a(this),n=i(t),s=arguments.length;if(s){l(n+s);for(var c=n;c--;){var u=c+s;c in t?t[u]=t[c]:o(t,u)}for(var d=0;d<s;d++)t[d]=arguments[d]}return r(t,n+s)}})},11558(e,t,n){"use strict";var s=n(46518),a=n(26198),i=n(91291),r=n(25397),o=n(97040),l=Array,c=RangeError;s({target:"Array",proto:!0,forced:function(){try{[].with({valueOf:function(){throw 4}},null)}catch(e){return 4!==e}}()},{with:function(e,t){var n=r(this),s=a(n),u=i(e),d=u<0?s+u:u;if(d>=s||d<0)throw new c("Incorrect index");for(var p=new l(s),h=0;h<s;h++)o(p,h,h===d?t:n[h]);return p}})},48523(e,t,n){"use strict";n(16468)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},36033(e,t,n){"use strict";n(48523)},5506(e,t,n){"use strict";var s=n(46518),a=n(32357).entries;s({target:"Object",stat:!0},{entries:function(e){return a(e)}})},26099(e,t,n){"use strict";var s=n(92140),a=n(36840),i=n(53179);s||a(Object.prototype,"toString",i,{unsafe:!0})},16034(e,t,n){"use strict";var s=n(46518),a=n(32357).values;s({target:"Object",stat:!0},{values:function(e){return a(e)}})},16499(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(79306),r=n(36043),o=n(1103),l=n(72652);s({target:"Promise",stat:!0,forced:n(90537)},{all:function(e){var t=this,n=r.f(t),s=n.resolve,c=n.reject,u=o((function(){var n=i(t.resolve),r=[],o=0,u=1;l(e,(function(e){var i=o++,l=!1;u++,a(n,t,e).then((function(e){l||(l=!0,r[i]=e,--u||s(r))}),c)})),--u||s(r)}));return u.error&&c(u.value),n.promise}})},82003(e,t,n){"use strict";var s=n(46518),a=n(96395),i=n(10916).CONSTRUCTOR,r=n(80550),o=n(97751),l=n(94901),c=n(36840),u=r&&r.prototype;if(s({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!a&&l(r)){var d=o("Promise").prototype.catch;u.catch!==d&&c(u,"catch",d,{unsafe:!0})}},10436(e,t,n){"use strict";var s,a,i,r,o=n(46518),l=n(96395),c=n(16193),u=n(44576),d=n(19167),p=n(69565),h=n(36840),m=n(52967),g=n(10687),f=n(87633),b=n(79306),v=n(94901),y=n(20034),S=n(90679),w=n(2293),x=n(59225).set,A=n(91955),_=n(90757),k=n(1103),j=n(18265),C=n(91181),I=n(80550),T=n(10916),D=n(36043),P="Promise",O=T.CONSTRUCTOR,L=T.REJECTION_EVENT,M=T.SUBCLASSING,E=C.getterFor(P),R=C.set,U=I&&I.prototype,N=I,F=U,B=u.TypeError,Y=u.document,H=u.process,V=D.f,W=V,$=!!(Y&&Y.createEvent&&u.dispatchEvent),z="unhandledrejection",q=function(e){var t;return!(!y(e)||!v(t=e.then))&&t},G=function(e,t){var n,s,a,i=t.value,r=1===t.state,o=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{o?(r||(2===t.rejection&&Z(t),t.rejection=1),!0===o?n=i:(u&&u.enter(),n=o(i),u&&(u.exit(),a=!0)),n===e.promise?c(new B("Promise-chain cycle")):(s=q(n))?p(s,n,l,c):l(n)):c(i)}catch(e){u&&!a&&u.exit(),c(e)}},K=function(e,t){e.notified||(e.notified=!0,A((function(){for(var n,s=e.reactions;n=s.get();)G(n,e);e.notified=!1,t&&!e.rejection&&J(e)})))},Q=function(e,t,n){var s,a;$?((s=Y.createEvent("Event")).promise=t,s.reason=n,s.initEvent(e,!1,!0),u.dispatchEvent(s)):s={promise:t,reason:n},!L&&(a=u["on"+e])?a(s):e===z&&_("Unhandled promise rejection",n)},J=function(e){p(x,u,(function(){var t,n=e.facade,s=e.value;if(X(e)&&(t=k((function(){c?H.emit("unhandledRejection",s,n):Q(z,n,s)})),e.rejection=c||X(e)?2:1,t.error))throw t.value}))},X=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){p(x,u,(function(){var t=e.facade;c?H.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},ee=function(e,t,n){return function(s){e(t,s,n)}},te=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K(e,!0))},ne=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new B("Promise can't be resolved itself");var s=q(t);s?A((function(){var n={done:!1};try{p(s,t,ee(ne,n,e),ee(te,n,e))}catch(t){te(n,t,e)}})):(e.value=t,e.state=1,K(e,!1))}catch(t){te({done:!1},t,e)}}};if(O&&(F=(N=function(e){S(this,F),b(e),p(s,this);var t=E(this);try{e(ee(ne,t),ee(te,t))}catch(e){te(t,e)}}).prototype,(s=function(e){R(this,{type:P,done:!1,notified:!1,parent:!1,reactions:new j,rejection:!1,state:0,value:null})}).prototype=h(F,"then",(function(e,t){var n=E(this),s=V(w(this,N));return n.parent=!0,s.ok=!v(e)||e,s.fail=v(t)&&t,s.domain=c?H.domain:void 0,0===n.state?n.reactions.add(s):A((function(){G(s,n)})),s.promise})),a=function(){var e=new s,t=E(e);this.promise=e,this.resolve=ee(ne,t),this.reject=ee(te,t)},D.f=V=function(e){return e===N||e===i?new a(e):W(e)},!l&&v(I)&&U!==Object.prototype)){r=U.then,M||h(U,"then",(function(e,t){var n=this;return new N((function(e,t){p(r,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete U.constructor}catch(e){}m&&m(U,F)}o({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:N}),i=d.Promise,g(N,P,!1,!0),f(P)},9391(e,t,n){"use strict";var s=n(46518),a=n(96395),i=n(80550),r=n(79039),o=n(97751),l=n(94901),c=n(2293),u=n(93438),d=n(36840),p=i&&i.prototype;if(s({target:"Promise",proto:!0,real:!0,forced:!!i&&r((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,o("Promise")),n=l(e);return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),!a&&l(i)){var h=o("Promise").prototype.finally;p.finally!==h&&d(p,"finally",h,{unsafe:!0})}},3362(e,t,n){"use strict";n(10436),n(16499),n(82003),n(7743),n(51481),n(40280)},7743(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(79306),r=n(36043),o=n(1103),l=n(72652);s({target:"Promise",stat:!0,forced:n(90537)},{race:function(e){var t=this,n=r.f(t),s=n.reject,c=o((function(){var r=i(t.resolve);l(e,(function(e){a(r,t,e).then(n.resolve,s)}))}));return c.error&&s(c.value),n.promise}})},51481(e,t,n){"use strict";var s=n(46518),a=n(36043);s({target:"Promise",stat:!0,forced:n(10916).CONSTRUCTOR},{reject:function(e){var t=a.f(this);return(0,t.reject)(e),t.promise}})},40280(e,t,n){"use strict";var s=n(46518),a=n(97751),i=n(96395),r=n(80550),o=n(10916).CONSTRUCTOR,l=n(93438),c=a("Promise"),u=i&&!o;s({target:"Promise",stat:!0,forced:i||o},{resolve:function(e){return l(u&&this===c?r:this,e)}})},92405(e,t,n){"use strict";n(16468)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(86938))},17642(e,t,n){"use strict";var s=n(46518),a=n(83440),i=n(79039);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("difference",(function(e){return 0===e.size}))||i((function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size}))},{difference:a})},58004(e,t,n){"use strict";var s=n(46518),a=n(79039),i=n(68750);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("intersection",(function(e){return 2===e.size&&e.has(1)&&e.has(2)}))||a((function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))}))},{intersection:i})},33853(e,t,n){"use strict";var s=n(46518),a=n(64449);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isDisjointFrom",(function(e){return!e}))},{isDisjointFrom:a})},45876(e,t,n){"use strict";var s=n(46518),a=n(53838);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSubsetOf",(function(e){return e}))},{isSubsetOf:a})},32475(e,t,n){"use strict";var s=n(46518),a=n(28527);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("isSupersetOf",(function(e){return!e}))},{isSupersetOf:a})},31415(e,t,n){"use strict";n(92405)},15024(e,t,n){"use strict";var s=n(46518),a=n(83650),i=n(39835);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("symmetricDifference")||!i("symmetricDifference")},{symmetricDifference:a})},31698(e,t,n){"use strict";var s=n(46518),a=n(44204),i=n(39835);s({target:"Set",proto:!0,real:!0,forced:!n(84916)("union")||!i("union")},{union:a})},27337(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(35610),r=RangeError,o=String.fromCharCode,l=String.fromCodePoint,c=a([].join);s({target:"String",stat:!0,arity:1,forced:!!l&&1!==l.length},{fromCodePoint:function(e){for(var t,n=[],s=arguments.length,a=0;s>a;){if(i(t=+arguments[a],1114111)!==t)throw new r(t+" is not a valid code point");n[a++]=t<65536?o(t):o(55296+((t-=65536)>>10),t%1024+56320)}return c(n,"")}})},21699(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(60511),r=n(67750),o=n(655),l=n(41436),c=a("".indexOf);s({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~c(o(r(this)),o(i(e)),arguments.length>1?arguments[1]:void 0)}})},47764(e,t,n){"use strict";var s=n(68183).charAt,a=n(655),i=n(91181),r=n(51088),o=n(62529),l="String Iterator",c=i.set,u=i.getterFor(l);r(String,"String",(function(e){c(this,{type:l,string:a(e),index:0})}),(function(){var e,t=u(this),n=t.string,a=t.index;return a>=n.length?o(void 0,!0):(e=s(n,a),t.index+=e.length,o(e,!1))}))},34504(e,t,n){"use strict";n(18107)},87370(e,t,n){"use strict";var s=n(46518),a=n(59213).filterReject,i=n(6469);s({target:"Array",proto:!0,forced:!0},{filterOut:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("filterOut")},31659(e,t,n){"use strict";var s=n(46518),a=n(59213).filterReject,i=n(6469);s({target:"Array",proto:!0,forced:!0},{filterReject:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("filterReject")},17978(e,t,n){"use strict";n(13451)},95115(e,t,n){"use strict";n(10838)},26148(e,t,n){"use strict";n(52407)},88177(e,t,n){"use strict";var s=n(46518),a=n(34598),i=n(6469),r=n(2952);s({target:"Array",proto:!0,name:"groupToMap",forced:n(96395)||!a("groupByToMap")},{groupByToMap:r}),i("groupByToMap")},6986(e,t,n){"use strict";var s=n(46518),a=n(77957),i=n(34598),r=n(6469);s({target:"Array",proto:!0,forced:!i("groupBy")},{groupBy:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("groupBy")},80081(e,t,n){"use strict";var s=n(46518),a=n(6469),i=n(2952);s({target:"Array",proto:!0,forced:n(96395)},{groupToMap:i}),a("groupToMap")},46058(e,t,n){"use strict";var s=n(46518),a=n(77957),i=n(6469);s({target:"Array",proto:!0},{group:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),i("group")},45490(e,t,n){"use strict";var s=n(46518),a=n(34376),i=Object.isFrozen,r=function(e,t){if(!i||!a(e)||!i(e))return!1;for(var n,s=0,r=e.length;s<r;)if(!("string"==typeof(n=e[s++])||t&&void 0===n))return!1;return 0!==r};s({target:"Array",stat:!0,sham:!0,forced:!0},{isTemplateObject:function(e){if(!r(e,!0))return!1;var t=e.raw;return r(t,!1)&&t.length===e.length}})},17656(e,t,n){"use strict";var s=n(43724),a=n(6469),i=n(48981),r=n(26198),o=n(62106);s&&(o(Array.prototype,"lastIndex",{configurable:!0,get:function(){var e=i(this),t=r(e);return 0===t?0:t-1}}),a("lastIndex"))},55105(e,t,n){"use strict";var s=n(43724),a=n(6469),i=n(48981),r=n(26198),o=n(62106);s&&(o(Array.prototype,"lastItem",{configurable:!0,get:function(){var e=i(this),t=r(e);return 0===t?void 0:e[t-1]},set:function(e){var t=i(this),n=r(t);return t[0===n?0:n-1]=e}}),a("lastItem"))},54151(e,t,n){"use strict";n(9678)},72400(e,t,n){"use strict";n(57145)},73677(e,t,n){"use strict";n(71658)},61938(e,t,n){"use strict";var s=n(46518),a=n(6469);s({target:"Array",proto:!0,forced:!0},{uniqueBy:n(79565)}),a("uniqueBy")},85901(e,t,n){"use strict";n(11558)},25509(e,t,n){"use strict";var s=n(46518),a=n(97080),i=n(94402).add;s({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var e=a(this),t=0,n=arguments.length;t<n;t++)i(e,arguments[t]);return e}})},65223(e,t,n){"use strict";var s=n(46518),a=n(97080),i=n(94402).remove;s({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var e,t=a(this),n=!0,s=0,r=arguments.length;s<r;s++)e=i(t,arguments[s]),n=n&&e;return!!n}})},60321(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(83440);s({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(e){return a(r,this,i(e))}})},43375(e,t,n){"use strict";n(17642)},41927(e,t,n){"use strict";var s=n(46518),a=n(76080),i=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{every:function(e){var t=i(this),n=a(e,arguments.length>1?arguments[1]:void 0);return!1!==r(t,(function(e){if(!n(e,e,t))return!1}),!0)}})},11632(e,t,n){"use strict";var s=n(46518),a=n(76080),i=n(97080),r=n(94402),o=n(38469),l=r.Set,c=r.add;s({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(e){var t=i(this),n=a(e,arguments.length>1?arguments[1]:void 0),s=new l;return o(t,(function(e){n(e,e,t)&&c(s,e)})),s}})},64377(e,t,n){"use strict";var s=n(46518),a=n(76080),i=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{find:function(e){var t=i(this),n=a(e,arguments.length>1?arguments[1]:void 0),s=r(t,(function(e){if(n(e,e,t))return{value:e}}),!0);return s&&s.value}})},49522(e,t,n){"use strict";var s=n(46518),a=n(94402);s({target:"Set",stat:!0,forced:!0},{from:n(70933)(a.Set,a.add,!1)})},66771(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(68750);s({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(e){return a(r,this,i(e))}})},39225(e,t,n){"use strict";n(58004)},12516(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(64449);s({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(e){return a(r,this,i(e))}})},13972(e,t,n){"use strict";n(33853)},68931(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(53838);s({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(e){return a(r,this,i(e))}})},99209(e,t,n){"use strict";n(45876)},52514(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(28527);s({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(e){return a(r,this,i(e))}})},25714(e,t,n){"use strict";n(32475)},35694(e,t,n){"use strict";var s=n(46518),a=n(79504),i=n(97080),r=n(38469),o=n(655),l=a([].join),c=a([].push);s({target:"Set",proto:!0,real:!0,forced:!0},{join:function(e){var t=i(this),n=void 0===e?",":o(e),s=[];return r(t,(function(e){c(s,e)})),l(s,n)}})},52774(e,t,n){"use strict";var s=n(46518),a=n(76080),i=n(97080),r=n(94402),o=n(38469),l=r.Set,c=r.add;s({target:"Set",proto:!0,real:!0,forced:!0},{map:function(e){var t=i(this),n=a(e,arguments.length>1?arguments[1]:void 0),s=new l;return o(t,(function(e){c(s,n(e,e,t))})),s}})},23283(e,t,n){"use strict";var s=n(46518),a=n(94402);s({target:"Set",stat:!0,forced:!0},{of:n(87500)(a.Set,a.add,!1)})},49536(e,t,n){"use strict";var s=n(46518),a=n(79306),i=n(97080),r=n(38469),o=TypeError;s({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(e){var t=i(this),n=arguments.length<2,s=n?void 0:arguments[1];if(a(e),r(t,(function(a){n?(n=!1,s=a):s=e(s,a,a,t)})),n)throw new o("Reduce of empty set with no initial value");return s}})},21926(e,t,n){"use strict";var s=n(46518),a=n(76080),i=n(97080),r=n(38469);s({target:"Set",proto:!0,real:!0,forced:!0},{some:function(e){var t=i(this),n=a(e,arguments.length>1?arguments[1]:void 0);return!0===r(t,(function(e){if(n(e,e,t))return!0}),!0)}})},94483(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(83650);s({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(e){return a(r,this,i(e))}})},17561(e,t,n){"use strict";n(15024)},16215(e,t,n){"use strict";var s=n(46518),a=n(69565),i=n(47650),r=n(44204);s({target:"Set",proto:!0,real:!0,forced:!0},{union:function(e){return a(r,this,i(e))}})},66197(e,t,n){"use strict";n(31698)},62953(e,t,n){"use strict";var s=n(44576),a=n(67400),i=n(79296),r=n(23792),o=n(66699),l=n(10687),c=n(78227)("iterator"),u=r.values,d=function(e,t){if(e){if(e[c]!==u)try{o(e,c,u)}catch(t){e[c]=u}if(l(e,t,!0),a[t])for(var n in r)if(e[n]!==r[n])try{o(e,n,r[n])}catch(t){e[n]=r[n]}}};for(var p in a)d(s[p]&&s[p].prototype,p);d(i,"DOMTokenList")},98406(e,t,n){"use strict";n(23792),n(27337);var s=n(46518),a=n(44576),i=n(93389),r=n(97751),o=n(69565),l=n(79504),c=n(43724),u=n(67416),d=n(36840),p=n(62106),h=n(56279),m=n(10687),g=n(33994),f=n(91181),b=n(90679),v=n(94901),y=n(39297),S=n(76080),w=n(36955),x=n(28551),A=n(20034),_=n(655),k=n(2360),j=n(6980),C=n(70081),I=n(50851),T=n(62529),D=n(22812),P=n(78227),O=n(74488),L=P("iterator"),M="URLSearchParams",E=M+"Iterator",R=f.set,U=f.getterFor(M),N=f.getterFor(E),F=i("fetch"),B=i("Request"),Y=i("Headers"),H=B&&B.prototype,V=Y&&Y.prototype,W=a.TypeError,$=a.encodeURIComponent,z=String.fromCharCode,q=r("String","fromCodePoint"),G=parseInt,K=l("".charAt),Q=l([].join),J=l([].push),X=l("".replace),Z=l([].shift),ee=l([].splice),te=l("".split),ne=l("".slice),se=l(/./.exec),ae=/\+/g,ie=/^[0-9a-f]+$/i,re=function(e,t){var n=ne(e,t,t+2);return se(ie,n)?G(n,16):NaN},oe=function(e){for(var t=0,n=128;n>0&&e&n;n>>=1)t++;return t},le=function(e){var t=null,n=e.length;switch(n){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return null===t||t>1114111||t>=55296&&t<=57343||t<(n>3?65536:n>2?2048:n>1?128:0)?null:t},ce=function(e){for(var t=(e=X(e,ae," ")).length,n="",s=0;s<t;){var a=K(e,s);if("%"===a){if("%"===K(e,s+1)||s+3>t){n+="%",s++;continue}var i=re(e,s+1);if(i!=i){n+=a,s++;continue}s+=2;var r=oe(i);if(0===r)a=z(i);else{if(1===r||r>4){n+="�",s++;continue}for(var o=[i],l=1;l<r&&!(3+ ++s>t||"%"!==K(e,s));){var c=re(e,s+1);if(c!=c||c>191||c<128)break;if(1===l){if(224===i&&c<160)break;if(237===i&&c>159)break;if(240===i&&c<144)break;if(244===i&&c>143)break}J(o,c),s+=2,l++}if(o.length!==r){n+="�";continue}var u=le(o);if(null===u){for(var d=0;d<r;d++)n+="�";s++;continue}a=q(u)}}n+=a,s++}return n},ue=/[!'()~]|%20/g,de={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pe=function(e){return de[e]},he=function(e){return X($(e),ue,pe)},me=g((function(e,t){R(this,{type:E,target:U(e).entries,index:0,kind:t})}),M,(function(){var e=N(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,T(void 0,!0);var s=t[n];switch(e.kind){case"keys":return T(s.key,!1);case"values":return T(s.value,!1)}return T([s.key,s.value],!1)}),!0),ge=function(e){this.entries=[],this.url=null,void 0!==e&&(A(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===K(e,0)?ne(e,1):e:_(e)))};ge.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,s,a,i,r,l,c=this.entries,u=I(e);if(u)for(n=(t=C(e,u)).next;!(s=o(n,t)).done;){if(i=(a=C(x(s.value))).next,(r=o(i,a)).done||(l=o(i,a)).done||!o(i,a).done)throw new W("Expected sequence with length 2");J(c,{key:_(r.value),value:_(l.value)})}else for(var d in e)y(e,d)&&J(c,{key:d,value:_(e[d])})},parseQuery:function(e){if(e)for(var t,n,s=this.entries,a=te(e,"&"),i=0;i<a.length;)(t=a[i++]).length&&(n=te(t,"="),J(s,{key:ce(Z(n)),value:ce(Q(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],s=0;s<t.length;)e=t[s++],J(n,he(e.key)+"="+he(e.value));return Q(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var fe=function(){b(this,be);var e=R(this,new ge(arguments.length>0?arguments[0]:void 0));c||(this.size=e.entries.length)},be=fe.prototype;if(h(be,{append:function(e,t){var n=U(this);D(arguments.length,2),J(n.entries,{key:_(e),value:_(t)}),c||this.size++,n.updateURL()},delete:function(e){for(var t=U(this),n=D(arguments.length,1),s=t.entries,a=_(e),i=n<2?void 0:arguments[1],r=void 0===i?i:_(i),o=0;o<s.length;){var l=s[o];l.key!==a||void 0!==r&&l.value!==r?o++:ee(s,o,1)}c||(this.size=s.length),t.updateURL()},get:function(e){var t=U(this).entries;D(arguments.length,1);for(var n=_(e),s=0;s<t.length;s++)if(t[s].key===n)return t[s].value;return null},getAll:function(e){var t=U(this).entries;D(arguments.length,1);for(var n=_(e),s=[],a=0;a<t.length;a++)t[a].key===n&&J(s,t[a].value);return s},has:function(e){for(var t=U(this).entries,n=D(arguments.length,1),s=_(e),a=n<2?void 0:arguments[1],i=void 0===a?a:_(a),r=0;r<t.length;){var o=t[r++];if(o.key===s&&(void 0===i||o.value===i))return!0}return!1},set:function(e,t){var n=U(this);D(arguments.length,2);for(var s,a=n.entries,i=!1,r=_(e),o=_(t),l=0;l<a.length;l++)(s=a[l]).key===r&&(i?ee(a,l--,1):(i=!0,s.value=o));i||J(a,{key:r,value:o}),c||(this.size=a.length),n.updateURL()},sort:function(){var e=U(this);O(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=U(this).entries,s=S(e,arguments.length>1?arguments[1]:void 0),a=0;a<n.length;)s((t=n[a++]).value,t.key,this)},keys:function(){return new me(this,"keys")},values:function(){return new me(this,"values")},entries:function(){return new me(this,"entries")}},{enumerable:!0}),d(be,L,be.entries,{name:"entries"}),d(be,"toString",(function(){return U(this).serialize()}),{enumerable:!0}),c&&p(be,"size",{get:function(){return U(this).entries.length},configurable:!0,enumerable:!0}),m(fe,M),s({global:!0,constructor:!0,forced:!u},{URLSearchParams:fe}),!u&&v(Y)){var ve=l(V.has),ye=l(V.set),Se=function(e){if(A(e)){var t,n=e.body;if(w(n)===M)return t=e.headers?new Y(e.headers):new Y,ve(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k(e,{body:j(0,_(n)),headers:j(0,t)})}return e};if(v(F)&&s({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return F(e,arguments.length>1?Se(arguments[1]):{})}}),v(B)){var we=function(e){return b(this,H),new B(e,arguments.length>1?Se(arguments[1]):{})};H.constructor=we,we.prototype=H,s({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:we})}}e.exports={URLSearchParams:fe,getState:U}},14603(e,t,n){"use strict";var s=n(36840),a=n(79504),i=n(655),r=n(22812),o=URLSearchParams,l=o.prototype,c=a(l.append),u=a(l.delete),d=a(l.forEach),p=a([].push),h=new o("a=1&a=2&b=3");h.delete("a",1),h.delete("b",void 0),h+""!="a=2"&&s(l,"delete",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var s=[];d(this,(function(e,t){p(s,{key:t,value:e})})),r(t,1);for(var a,o=i(e),l=i(n),h=0,m=s.length;h<m;)u(this,(a=s[h]).key),h++;for(h=0;h<m;)(a=s[h++]).key===o&&a.value===l||c(this,a.key,a.value)}),{enumerable:!0,unsafe:!0})},47566(e,t,n){"use strict";var s=n(36840),a=n(79504),i=n(655),r=n(22812),o=URLSearchParams,l=o.prototype,c=a(l.getAll),u=a(l.has),d=new o("a=1");!d.has("a",2)&&d.has("a",void 0)||s(l,"has",(function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&void 0===n)return u(this,e);var s=c(this,e);r(t,1);for(var a=i(n),o=0;o<s.length;)if(s[o++]===a)return!0;return!1}),{enumerable:!0,unsafe:!0})},48408(e,t,n){"use strict";n(98406)},98721(e,t,n){"use strict";var s=n(43724),a=n(79504),i=n(62106),r=URLSearchParams.prototype,o=a(r.forEach);s&&!("size"in r)&&i(r,"size",{get:function(){var e=0;return o(this,(function(){e++})),e},configurable:!0,enumerable:!0})},2222(e,t,n){"use strict";var s=n(46518),a=n(97751),i=n(79039),r=n(22812),o=n(655),l=n(67416),c=a("URL"),u=l&&i((function(){c.canParse()})),d=i((function(){return 1!==c.canParse.length}));s({target:"URL",stat:!0,forced:!u||d},{canParse:function(e){var t=r(arguments.length,1),n=o(e),s=t<2||void 0===arguments[1]?void 0:o(arguments[1]);try{return!!new c(n,s)}catch(e){return!1}}})},45806(e,t,n){"use strict";n(47764);var s,a=n(46518),i=n(43724),r=n(67416),o=n(44576),l=n(76080),c=n(79504),u=n(36840),d=n(62106),p=n(90679),h=n(39297),m=n(44213),g=n(97916),f=n(67680),b=n(68183).codeAt,v=n(3717),y=n(655),S=n(10687),w=n(22812),x=n(98406),A=n(91181),_=A.set,k=A.getterFor("URL"),j=x.URLSearchParams,C=x.getState,I=o.URL,T=o.TypeError,D=o.encodeURIComponent,P=o.parseInt,O=Math.floor,L=Math.pow,M=c("".charAt),E=c(/./.exec),R=c([].join),U=c(1.1.toString),N=c([].pop),F=c([].push),B=c("".replace),Y=c([].shift),H=c("".split),V=c("".slice),W=c("".toLowerCase),$=c([].unshift),z="Invalid scheme",q="Invalid host",G="Invalid port",K=/[a-z]/i,Q=/[\d+\-.a-z]/i,J=/\d/,X=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,se=/[\0\t\n\r #/:<>?@[\\\]^|]/,ae=/^[\u0000-\u0020]+/,ie=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,re=/[\t\n\r]/g,oe=function(e){var t,n,s,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)$(t,e%256),e=O(e/256);return R(t,".")}if("object"==typeof e){for(t="",s=function(e){for(var t=null,n=1,s=null,a=0,i=0;i<8;i++)0!==e[i]?(a>n&&(t=s,n=a),s=null,a=0):(null===s&&(s=i),++a);return a>n?s:t}(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),s===n?(t+=n?":":"::",a=!0):(t+=U(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},le={},ce=m({},le,{" ":1,'"':1,"#":1,"<":1,">":1}),ue=m({},ce,{"'":1}),de=m({},le,{" ":1,'"':1,"<":1,">":1,"`":1}),pe=m({},de,{"#":1,"?":1,"{":1,"}":1,"^":1}),he=m({},pe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),me=function(e,t){var n=b(e,0);return n>=32&&n<127&&!h(t,e)?e:"'"===e&&h(t,e)?"%27":D(e)},ge={ftp:21,file:null,http:80,https:443,ws:80,wss:443},fe=function(e,t){var n;return 2===e.length&&E(K,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},be=function(e){var t;return e.length>1&&fe(V(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ve=function(e){return"."===e||"%2e"===W(e)},ye={},Se={},we={},xe={},Ae={},_e={},ke={},je={},Ce={},Ie={},Te={},De={},Pe={},Oe={},Le={},Me={},Ee={},Re={},Ue={},Ne={},Fe={},Be=function(e,t,n){var s,a,i,r=y(e);if(t){if(a=this.parse(r))throw new T(a);this.searchParams=null}else{if(void 0!==n&&(s=new Be(n,!0)),a=this.parse(r,null,s))throw new T(a);(i=C(new j)).bindURL(this),this.searchParams=i}};Be.prototype={type:"URL",parse:function(e,t,n){var a,i,r,o,l,c=this,u=t||ye,d=0,p="",m=!1,b=!1,v=!1;for(e=y(e),t||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,e=B(e,ae,""),e=B(e,ie,"$1")),e=B(e,re,""),a=g(e);d<=a.length;){switch(i=a[d],u){case ye:if(!i||!E(K,i)){if(t)return z;u=we;continue}p+=W(i),u=Se;break;case Se:if(i&&E(Q,i))p+=W(i);else{if(":"!==i){if(t)return z;p="",u=we,d=0;continue}if(t&&(c.isSpecial()!==h(ge,p)||"file"===p&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&""===c.host))return;if(c.scheme=p,t)return void(c.isSpecial()&&ge[c.scheme]===c.port&&(c.port=null));p="","file"===c.scheme?u=Oe:c.isSpecial()&&n&&n.scheme===c.scheme?u=xe:c.isSpecial()?u=je:"/"===a[d+1]?(u=Ae,d++):(c.cannotBeABaseURL=!0,F(c.path,""),u=Ue)}break;case we:if(!n||n.cannotBeABaseURL&&"#"!==i)return z;if(n.cannotBeABaseURL&&"#"===i){c.scheme=n.scheme,c.path=f(n.path),c.query=n.query,c.fragment="",c.cannotBeABaseURL=!0,u=Fe;break}u="file"===n.scheme?Oe:_e;continue;case xe:if("/"!==i||"/"!==a[d+1]){u=_e;continue}u=Ce,d++;break;case Ae:if("/"===i){u=Ie;break}u=Re;continue;case _e:if(c.scheme=n.scheme,i===s)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=f(n.path),c.query=n.query;else if("/"===i||"\\"===i&&c.isSpecial())u=ke;else if("?"===i)c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=f(n.path),c.query="",u=Ne;else{if("#"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=f(n.path),c.path.length&&c.path.length--,u=Re;continue}c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,c.path=f(n.path),c.query=n.query,c.fragment="",u=Fe}break;case ke:if(!c.isSpecial()||"/"!==i&&"\\"!==i){if("/"!==i){c.username=n.username,c.password=n.password,c.host=n.host,c.port=n.port,u=Re;continue}u=Ie}else u=Ce;break;case je:if(u=Ce,"/"!==i||"/"!==a[d+1])continue;d++;break;case Ce:if("/"!==i&&"\\"!==i){u=Ie;continue}break;case Ie:if("@"===i){m&&(p="%40"+p),m=!0,r=g(p);for(var S=0;S<r.length;S++){var w=r[S];if(":"!==w||v){var x=me(w,he);v?c.password+=x:c.username+=x}else v=!0}p=""}else if(i===s||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(m&&""===p)return"Invalid authority";d-=g(p).length+1,p="",u=Te}else p+=i;break;case Te:case De:if(t&&"file"===c.scheme){u=Me;continue}if(":"!==i||b){if(i===s||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()){if(c.isSpecial()&&""===p)return q;if(t&&""===p&&(c.includesCredentials()||null!==c.port))return;if(o=c.parseHost(p))return o;if(p="",u=Ee,t)return;continue}"["===i?b=!0:"]"===i&&(b=!1),p+=i}else{if(""===p)return q;if(t===De)return;if(o=c.parseHost(p))return o;p="",u=Pe}break;case Pe:if(!E(J,i)){if(i===s||"/"===i||"?"===i||"#"===i||"\\"===i&&c.isSpecial()||t){if(""!==p){var A=P(p,10);if(A>65535)return G;c.port=c.isSpecial()&&A===ge[c.scheme]?null:A,p=""}if(t)return;u=Ee;continue}return G}p+=i;break;case Oe:if(c.scheme="file",c.host="","/"===i||"\\"===i)u=Le;else{if(!n||"file"!==n.scheme){u=Re;continue}switch(i){case s:c.host=n.host,c.path=f(n.path),c.query=n.query;break;case"?":c.host=n.host,c.path=f(n.path),c.query="",u=Ne;break;case"#":c.host=n.host,c.path=f(n.path),c.query=n.query,c.fragment="",u=Fe;break;default:c.host=n.host,be(R(f(a,d),""))||(c.path=f(n.path),c.shortenPath()),u=Re;continue}}break;case Le:if("/"===i||"\\"===i){u=Me;break}n&&"file"===n.scheme&&(c.host=n.host,!be(R(f(a,d),""))&&fe(n.path[0],!0)&&F(c.path,n.path[0])),u=Re;continue;case Me:if(i===s||"/"===i||"\\"===i||"?"===i||"#"===i){if(!t&&fe(p))u=Re;else if(""===p){if(c.host="",t)return;u=Ee}else{if(o=c.parseHost(p))return o;if("localhost"===c.host&&(c.host=""),t)return;p="",u=Ee}continue}p+=i;break;case Ee:if(c.isSpecial()){if(u=Re,"/"!==i&&"\\"!==i)continue}else if(t||"?"!==i)if(t||"#"!==i){if(i!==s&&(u=Re,"/"!==i))continue}else c.fragment="",u=Fe;else c.query="",u=Ne;break;case Re:if(i===s||"/"===i||"\\"===i&&c.isSpecial()||!t&&("?"===i||"#"===i)){if(".."===(l=W(l=p))||"%2e."===l||".%2e"===l||"%2e%2e"===l?(c.shortenPath(),"/"===i||"\\"===i&&c.isSpecial()||F(c.path,"")):ve(p)?"/"===i||"\\"===i&&c.isSpecial()||F(c.path,""):("file"===c.scheme&&!c.path.length&&fe(p)&&(null!==c.host&&""!==c.host&&(c.host=""),p=M(p,0)+":"),F(c.path,p)),p="","file"===c.scheme&&(i===s||"?"===i||"#"===i))for(;c.path.length>1&&""===c.path[0];)Y(c.path);"?"===i?(c.query="",u=Ne):"#"===i&&(c.fragment="",u=Fe)}else p+=me(i,pe);break;case Ue:"?"===i?(c.query="",u=Ne):"#"===i?(c.fragment="",u=Fe):i!==s&&(c.path[0]+=me(i,le));break;case Ne:t||"#"!==i?i!==s&&(c.query+=me(i,c.isSpecial()?ue:ce)):(c.fragment="",u=Fe);break;case Fe:i!==s&&(c.fragment+=me(i,de))}d++}},parseHost:function(e){var t,n,s;if("["===M(e,0)){if("]"!==M(e,e.length-1))return q;if(t=function(e){var t,n,s,a,i,r,o,l=[0,0,0,0,0,0,0,0],c=0,u=null,d=0,p=function(){return M(e,d)};if(":"===p()){if(":"!==M(e,1))return;d+=2,u=++c}for(;p();){if(8===c)return;if(":"!==p()){for(t=n=0;n<4&&E(te,p());)t=16*t+P(p(),16),d++,n++;if("."===p()){if(0===n)return;if(d-=n,c>6)return;for(s=0;p();){if(a=null,s>0){if(!("."===p()&&s<4))return;d++}if(!E(J,p()))return;for(;E(J,p());){if(i=P(p(),10),null===a)a=i;else{if(0===a)return;a=10*a+i}if(a>255)return;d++}l[c]=256*l[c]+a,2!=++s&&4!==s||c++}if(4!==s)return;break}if(":"===p()){if(d++,!p())return}else if(p())return;l[c++]=t}else{if(null!==u)return;d++,u=++c}}if(null!==u)for(r=c-u,c=7;0!==c&&r>0;)o=l[c],l[c--]=l[u+r-1],l[u+--r]=o;else if(8!==c)return;return l}(V(e,1,-1)),!t)return q;this.host=t}else if(this.isSpecial()){if(e=v(e),E(ne,e))return q;if(function(e){var t,n,s=H(e,".");if(""===s[s.length-1]){if(1===s.length)return!1;s.length--}return t=s[s.length-1],!!E(ee,t)||!!E(X,t)&&(""===(n=V(t,2))||!!E(te,n))}(e)){if(t=function(e){var t,n,s,a,i,r,o,l=H(e,".");if(l.length&&""===l[l.length-1]&&l.length--,(t=l.length)>4)return null;for(n=[],s=0;s<t;s++){if(""===(a=l[s]))return null;if(i=10,a.length>1&&"0"===M(a,0)&&(i=E(X,a)?16:8,a=V(a,8===i?1:2)),""===a)r=0;else{if(!E(10===i?ee:8===i?Z:te,a))return null;r=P(a,i)}F(n,r)}for(s=0;s<t;s++)if(r=n[s],s===t-1){if(r>=L(256,5-t))return null}else if(r>255)return null;for(o=N(n),s=0;s<n.length;s++)o+=n[s]*L(256,3-s);return o}(e),null===t)return q;this.host=t}else this.host=e}else{if(E(se,e))return q;for(t="",n=g(e),s=0;s<n.length;s++)t+=me(n[s],le);this.host=t}},cannotHaveUsernamePasswordPort:function(){return null===this.host||""===this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(ge,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&fe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,s=e.password,a=e.host,i=e.port,r=e.path,o=e.query,l=e.fragment,c=t+":";return null!==a?(c+="//",e.includesCredentials()&&(c+=n+(s?":"+s:"")+"@"),c+=oe(a),null!==i&&(c+=":"+i)):"file"===t&&(c+="//"),null===a&&!e.cannotBeABaseURL&&r.length>1&&""===r[0]&&(c+="/."),c+=e.cannotBeABaseURL?r[0]:r.length?"/"+R(r,"/"):"",null!==o&&(c+="?"+o),null!==l&&(c+="#"+l),c},setHref:function(e){var t=this.parse(e);if(t)throw new T(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new Ye(this.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+oe(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(y(e)+":",ye)},getUsername:function(){return this.username},setUsername:function(e){var t=g(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=me(t[n],he)}},getPassword:function(){return this.password},setPassword:function(e){var t=g(y(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=me(t[n],he)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?oe(e):oe(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Te)},getHostname:function(){var e=this.host;return null===e?"":oe(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,De)},getPort:function(){var e=this.port;return null===e?"":y(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=y(e))?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+R(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ee))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=y(e))?this.query=null:("?"===M(e,0)&&(e=V(e,1)),this.query="",this.parse(e,Ne)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=y(e))?("#"===M(e,0)&&(e=V(e,1)),this.fragment="",this.parse(e,Fe)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Ye=function(e){var t=p(this,He),n=w(arguments.length,1)>1?arguments[1]:void 0,s=_(t,new Be(e,!1,n));i||(t.href=s.serialize(),t.origin=s.getOrigin(),t.protocol=s.getProtocol(),t.username=s.getUsername(),t.password=s.getPassword(),t.host=s.getHost(),t.hostname=s.getHostname(),t.port=s.getPort(),t.pathname=s.getPathname(),t.search=s.getSearch(),t.searchParams=s.getSearchParams(),t.hash=s.getHash())},He=Ye.prototype,Ve=function(e,t){return{get:function(){return k(this)[e]()},set:t&&function(e){return k(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(d(He,"href",Ve("serialize","setHref")),d(He,"origin",Ve("getOrigin")),d(He,"protocol",Ve("getProtocol","setProtocol")),d(He,"username",Ve("getUsername","setUsername")),d(He,"password",Ve("getPassword","setPassword")),d(He,"host",Ve("getHost","setHost")),d(He,"hostname",Ve("getHostname","setHostname")),d(He,"port",Ve("getPort","setPort")),d(He,"pathname",Ve("getPathname","setPathname")),d(He,"search",Ve("getSearch","setSearch")),d(He,"searchParams",Ve("getSearchParams")),d(He,"hash",Ve("getHash","setHash"))),u(He,"toJSON",(function(){return k(this).serialize()}),{enumerable:!0}),u(He,"toString",(function(){return k(this).serialize()}),{enumerable:!0}),I){var We=I.createObjectURL,$e=I.revokeObjectURL;We&&u(Ye,"createObjectURL",l(We,I)),$e&&u(Ye,"revokeObjectURL",l($e,I))}S(Ye,"URL"),a({global:!0,constructor:!0,forced:!r,sham:!i},{URL:Ye})},3296(e,t,n){"use strict";n(45806)},45781(e,t,n){"use strict";var s=n(46518),a=n(97751),i=n(22812),r=n(655),o=n(67416),l=a("URL");s({target:"URL",stat:!0,forced:!o},{parse:function(e){var t=i(arguments.length,1),n=r(e),s=t<2||void 0===arguments[1]?void 0:r(arguments[1]);try{return new l(n,s)}catch(e){return null}}})},27208(e,t,n){"use strict";var s=n(46518),a=n(69565);s({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return a(URL.prototype.toString,this)}})},19725(e,t,n){"use strict";var s=n(45666);e.exports=s},57919(e,t,n){"use strict";var s=n(17990);e.exports=s},69609(e,t,n){"use strict";var s=n(94014);e.exports=s},29326(e,t,n){"use strict";var s=n(61137);e.exports=s},56344(e,t,n){"use strict";var s=n(57655);n(62953),e.exports=s},40160(e,t,n){"use strict";var s=n(70979);e.exports=s},12841(e,t,n){"use strict";var s=n(98367);e.exports=s},16811(e,t,n){"use strict";n(48408),n(14603),n(47566),n(98721);var s=n(19167);e.exports=s.URLSearchParams},98367(e,t,n){"use strict";n(16811),n(3296),n(2222),n(45781),n(27208);var s=n(19167);e.exports=s.URL},52067(e,t,n){"use strict";var s,a=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),r=0;r<n.length;r++)"default"!==n[r]&&a(t,e,n[r]);return i(t,e),t});Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;const o=r(n(28391)),l=n(1823),c=new Set(["input","option","optgroup","select","button","datalist","textarea"]),u=new Set(["p"]),d=new Set(["thead","tbody"]),p=new Set(["dd","dt"]),h=new Set(["rt","rp"]),m=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",u],["h1",u],["h2",u],["h3",u],["h4",u],["h5",u],["h6",u],["select",c],["input",c],["output",c],["button",c],["datalist",c],["textarea",c],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",p],["dt",p],["address",u],["article",u],["aside",u],["blockquote",u],["details",u],["div",u],["dl",u],["fieldset",u],["figcaption",u],["figure",u],["footer",u],["form",u],["header",u],["hr",u],["main",u],["nav",u],["ol",u],["pre",u],["section",u],["table",u],["ul",u],["rt",h],["rp",h],["tbody",d],["tfoot",d]]),g=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),f=new Set(["math","svg"]),b=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),v=/\s|\//;t.Parser=class{constructor(e,t={}){var n,s,a,i,r,l;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:this.htmlMode,this.lowerCaseAttributeNames=null!==(s=t.lowerCaseAttributeNames)&&void 0!==s?s:this.htmlMode,this.recognizeSelfClosing=null!==(a=t.recognizeSelfClosing)&&void 0!==a?a:!this.htmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:o.default)(this.options,this),this.foreignContext=[!this.htmlMode],null===(l=(r=this.cbs).onparserinit)||void 0===l||l.call(r,this)}ontext(e,t){var n,s;const a=this.getSlice(e,t);this.endIndex=t-1,null===(s=(n=this.cbs).ontext)||void 0===s||s.call(n,a),this.startIndex=t}ontextentity(e,t){var n,s;this.endIndex=t-1,null===(s=(n=this.cbs).ontext)||void 0===s||s.call(n,(0,l.fromCodePoint)(e)),this.startIndex=t}isVoidElement(e){return this.htmlMode&&g.has(e)}onopentagname(e,t){this.endIndex=t;let n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)}emitOpenTag(e){var t,n,s,a;this.openTagStart=this.startIndex,this.tagname=e;const i=this.htmlMode&&m.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[0]);){const e=this.stack.shift();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.unshift(e),this.htmlMode&&(f.has(e)?this.foreignContext.unshift(!0):b.has(e)&&this.foreignContext.unshift(!1))),null===(a=(s=this.cbs).onopentagname)||void 0===a||a.call(s,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,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){var n,s,a,i,r,o,l,c;this.endIndex=t;let u=this.getSlice(e,t);if(this.lowerCaseTagNames&&(u=u.toLowerCase()),this.htmlMode&&(f.has(u)||b.has(u))&&this.foreignContext.shift(),this.isVoidElement(u))this.htmlMode&&"br"===u&&(null===(i=(a=this.cbs).onopentagname)||void 0===i||i.call(a,"br"),null===(o=(r=this.cbs).onopentag)||void 0===o||o.call(r,"br",{},!0),null===(c=(l=this.cbs).onclosetag)||void 0===c||c.call(l,"br",!1));else{const e=this.stack.indexOf(u);if(-1!==e)for(let t=0;t<=e;t++){const a=this.stack.shift();null===(s=(n=this.cbs).onclosetag)||void 0===s||s.call(n,a,t!==e)}else this.htmlMode&&"p"===u&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const s=this.tagname;this.endOpenTag(e),this.stack[0]===s&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,s,!e),this.stack.shift())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=(0,l.fromCodePoint)(e)}onattribend(e,t){var n,s;this.endIndex=t,null===(s=(n=this.cbs).onattribute)||void 0===s||s.call(n,this.attribname,this.attribvalue,e===o.QuoteType.Double?'"':e===o.QuoteType.Single?"'":e===o.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(v);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var s,a,i,r;this.endIndex=t,null===(a=(s=this.cbs).oncomment)||void 0===a||a.call(s,this.getSlice(e,t-n)),null===(r=(i=this.cbs).oncommentend)||void 0===r||r.call(i),this.startIndex=t+1}oncdata(e,t,n){var s,a,i,r,o,l,c,u,d,p;this.endIndex=t;const h=this.getSlice(e,t-n);!this.htmlMode||this.options.recognizeCDATA?(null===(a=(s=this.cbs).oncdatastart)||void 0===a||a.call(s),null===(r=(i=this.cbs).ontext)||void 0===r||r.call(i,h),null===(l=(o=this.cbs).oncdataend)||void 0===l||l.call(o)):(null===(u=(c=this.cbs).oncomment)||void 0===u||u.call(c,`[CDATA[${h}]]`),null===(p=(d=this.cbs).oncommentend)||void 0===p||p.call(d)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=0;e<this.stack.length;e++)this.cbs.onclosetag(this.stack[e],!0)}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,n,s;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(s=(n=this.cbs).onparserinit)||void 0===s||s.call(n,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,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()}parseChunk(e){this.write(e)}done(e){this.end(e)}}},28391(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;const s=n(1823);var a,i,r;function o(e){return e===a.Space||e===a.NewLine||e===a.Tab||e===a.FormFeed||e===a.CarriageReturn}function l(e){return e===a.Slash||e===a.Gt||o(e)}!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"}(a||(a={})),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.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"}(i||(i={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(r||(t.QuoteType=r={}));const c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),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])};t.default=class{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=e,this.decodeEntities=t,this.entityDecoder=new s.EntityDecoder(e?s.xmlDecodeTree:s.htmlDecodeTree,((e,t)=>this.emitCodePoint(e,t)))}reset(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 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===a.Lt||!this.decodeEntities&&this.fastForwardTo(a.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===a.Amp&&this.startEntity()}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?l(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===a.Gt||o(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===c.TitleEnd?this.decodeEntities&&e===a.Amp&&this.startEntity():this.fastForwardTo(a.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===a.Lt)}stateCDATASequence(e){e===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(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}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.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?!l(e):function(e){return e>=a.LowerA&&e<=a.LowerZ||e>=a.UpperA&&e<=a.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=i.SpecialStartSequence}stateBeforeTagName(e){if(e===a.ExclamationMark)this.state=i.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===a.Questionmark)this.state=i.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode?this.state=i.InTagName:t===c.ScriptEnd[2]?this.state=i.BeforeSpecialS:t===c.TitleEnd[2]||t===c.XmpEnd[2]?this.state=i.BeforeSpecialT:this.state=i.InTagName}else e===a.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(e))}stateInTagName(e){l(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){o(e)||(e===a.Gt?this.state=i.Text:(this.state=this.isTagStartChar(e)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===a.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===a.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.sectionStart=this.index+1):e===a.Slash?this.state=i.InSelfClosingTag:o(e)||(this.state=i.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===a.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===a.Eq||l(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=i.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===a.Eq?this.state=i.BeforeAttributeValue:e===a.Slash||e===a.Gt?(this.cbs.onattribend(r.NoValue,this.sectionStart),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(r.NoValue,this.sectionStart),this.state=i.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===a.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):e===a.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=i.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===a.DoubleQuote?r.Double:r.Single,this.index+1),this.state=i.BeforeAttributeName):this.decodeEntities&&e===a.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,a.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,a.SingleQuote)}stateInAttributeValueNoQuotes(e){o(e)||e===a.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===a.Amp&&this.startEntity()}stateBeforeDeclaration(e){e===a.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=e===a.Dash?i.BeforeComment:i.InDeclaration}stateInDeclaration(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===a.Dash?(this.state=i.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration}stateInSpecialComment(e){(e===a.Gt||this.fastForwardTo(a.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):t===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(e))}stateBeforeSpecialT(e){switch(32|e){case c.TitleEnd[3]:this.startSpecial(c.TitleEnd,4);break;case c.TextareaEnd[3]:this.startSpecial(c.TextareaEnd,4);break;case c.XmpEnd[3]:this.startSpecial(c.XmpEnd,4);break;default:this.state=i.InTagName,this.stateInTagName(e)}}startEntity(){this.baseState=this.state,this.state=i.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?s.DecodingMode.Strict:this.baseState===i.Text||this.baseState===i.InSpecialTag?s.DecodingMode.Legacy:s.DecodingMode.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)===a.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===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.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 i.Text:this.stateText(e);break;case i.SpecialStartSequence:this.stateSpecialStartSequence(e);break;case i.InSpecialTag:this.stateInSpecialTag(e);break;case i.CDATASequence:this.stateCDATASequence(e);break;case i.InAttributeValueDq:this.stateInAttributeValueDoubleQuotes(e);break;case i.InAttributeName:this.stateInAttributeName(e);break;case i.InCommentLike:this.stateInCommentLike(e);break;case i.InSpecialComment:this.stateInSpecialComment(e);break;case i.BeforeAttributeName:this.stateBeforeAttributeName(e);break;case i.InTagName:this.stateInTagName(e);break;case i.InClosingTagName:this.stateInClosingTagName(e);break;case i.BeforeTagName:this.stateBeforeTagName(e);break;case i.AfterAttributeName:this.stateAfterAttributeName(e);break;case i.InAttributeValueSq:this.stateInAttributeValueSingleQuotes(e);break;case i.BeforeAttributeValue:this.stateBeforeAttributeValue(e);break;case i.BeforeClosingTagName:this.stateBeforeClosingTagName(e);break;case i.AfterClosingTagName:this.stateAfterClosingTagName(e);break;case i.BeforeSpecialS:this.stateBeforeSpecialS(e);break;case i.BeforeSpecialT:this.stateBeforeSpecialT(e);break;case i.InAttributeValueNq:this.stateInAttributeValueNoQuotes(e);break;case i.InSelfClosingTag:this.stateInSelfClosingTag(e);break;case i.InDeclaration:this.stateInDeclaration(e);break;case i.BeforeDeclaration:this.stateBeforeDeclaration(e);break;case i.BeforeComment:this.stateBeforeComment(e);break;case i.InProcessingInstruction:this.stateInProcessingInstruction(e);break;case i.InEntity:this.stateInEntity()}this.index++}this.cleanup()}finish(){this.state===i.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.sectionStart>=e||(this.state===i.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){this.baseState!==i.Text&&this.baseState!==i.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))}}},30378(e,t,n){"use strict";var s,a=this&&this.__createBinding||(Object.create?function(e,t,n,s){void 0===s&&(s=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,s,a)}:function(e,t,n,s){void 0===s&&(s=n),e[s]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||(s=function(e){return s=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},s(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n=s(e),r=0;r<n.length;r++)"default"!==n[r]&&a(t,e,n[r]);return i(t,e),t}),o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.getFeed=t.ElementType=t.QuoteType=t.Tokenizer=t.DefaultHandler=t.DomHandler=t.Parser=void 0,t.parseDocument=p,t.parseDOM=h,t.createDocumentStream=function(e,t,n){const s=new u.DomHandler((t=>e(t,s.root)),t,n);return new l.Parser(s,t)},t.createDomStream=function(e,t,n){const s=new u.DomHandler(e,t,n);return new l.Parser(s,t)},t.parseFeed=function(e,t=b){return(0,g.getFeed)(h(e,t))};const l=n(52067);var c=n(52067);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return c.Parser}});const u=n(66443);var d=n(66443);function p(e,t){const n=new u.DomHandler(void 0,t);return new l.Parser(n,t).end(e),n.root}function h(e,t){return p(e,t).children}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return d.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return d.DomHandler}});var m=n(28391);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(m).default}}),Object.defineProperty(t,"QuoteType",{enumerable:!0,get:function(){return m.QuoteType}}),t.ElementType=r(n(23775));const g=n(43970);var f=n(43970);Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return f.getFeed}});const b={xmlMode:!0};t.DomUtils=r(n(43970))},98639(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.fromCodePoint=void 0,t.replaceCodePoint=a,t.decodeCodePoint=function(e){return(0,t.fromCodePoint)(a(e))};const s=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 a(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=s.get(e))&&void 0!==t?t:e}t.fromCodePoint=null!==(n=String.fromCodePoint)&&void 0!==n?n:e=>{let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t}},1823(e,t,n){"use strict";t.xmlDecodeTree=t.htmlDecodeTree=t.fromCodePoint=t.EntityDecoder=t.DecodingMode=void 0;const s=n(98639),a=n(6390),i=n(78722),r=n(75229);var o,l,c;function u(e){return e>=o.ZERO&&e<=o.NINE}!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"}(o||(o={})),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"}(l||(l={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(c||(t.DecodingMode=c={}));class d{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=l.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=c.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=l.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case l.EntityStart:return e.charCodeAt(t)===o.NUM?(this.state=l.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=l.NamedEntity,this.stateNamedEntity(e,t));case l.NumericStart:return this.stateNumericStart(e,t);case l.NumericDecimal:return this.stateNumericDecimal(e,t);case l.NumericHex:return this.stateNumericHex(e,t);case l.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===o.LOWER_X?(this.state=l.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=l.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){const s=e.charCodeAt(t);if(!(u(s)||(n=s,n>=o.UPPER_A&&n<=o.UPPER_F||n>=o.LOWER_A&&n<=o.LOWER_F)))return this.emitNumericEntity(s,3);{const e=s<=o.NINE?s-o.ZERO:(32|s)-o.LOWER_A+10;this.result=16*this.result+e,this.consumed++,t++}}var n;return-1}stateNumericDecimal(e,t){for(;t<e.length;){const n=e.charCodeAt(t);if(!u(n))return this.emitNumericEntity(n,2);this.result=10*this.result+(n-o.ZERO),this.consumed++,t++}return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===o.SEMI)this.consumed+=1;else if(this.decodeMode===c.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(e!==o.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let s=n[this.treeIndex],a=(s&r.BinTrieFlags.VALUE_LENGTH)>>14;for(;t<e.length;){if(0===a&&s&r.BinTrieFlags.FLAG13){const i=(s&r.BinTrieFlags.BRANCH_LENGTH)>>7;if(0===this.runConsumed){const n=s&r.BinTrieFlags.JUMP_TABLE;if(e.charCodeAt(t)!==n)return 0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<i;){if(t>=e.length)return-1;const s=this.runConsumed-1,a=n[this.treeIndex+1+(s>>1)],i=s%2==0?255&a:a>>8&255;if(e.charCodeAt(t)!==i)return this.runConsumed=0,0===this.result?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(i>>1),s=n[this.treeIndex],a=(s&r.BinTrieFlags.VALUE_LENGTH)>>14}if(t>=e.length)break;const l=e.charCodeAt(t);if(l===o.SEMI&&0!==a&&s&r.BinTrieFlags.FLAG13)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);if(this.treeIndex=h(n,s,this.treeIndex+Math.max(1,a),l),this.treeIndex<0)return 0===this.result||this.decodeMode===c.Attribute&&(0===a||((i=l)===o.EQUALS||function(e){return e>=o.UPPER_A&&e<=o.UPPER_Z||e>=o.LOWER_A&&e<=o.LOWER_Z||u(e)}(i)))?0:this.emitNotTerminatedNamedEntity();if(s=n[this.treeIndex],a=(s&r.BinTrieFlags.VALUE_LENGTH)>>14,0!==a){if(l===o.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode===c.Strict||s&r.BinTrieFlags.FLAG13||(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}var i;return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,s=(n[t]&r.BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,s,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:s}=this;return this.emitCodePoint(1===t?s[e]&~(r.BinTrieFlags.VALUE_LENGTH|r.BinTrieFlags.FLAG13):s[e+1],n),3===t&&this.emitCodePoint(s[e+2],n),n}end(){var e;switch(this.state){case l.NamedEntity:return 0===this.result||this.decodeMode===c.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case l.NumericDecimal:return this.emitNumericEntity(0,2);case l.NumericHex:return this.emitNumericEntity(0,3);case l.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case l.EntityStart:return 0}}}function p(e){let t="";const n=new d(e,(e=>t+=(0,s.fromCodePoint)(e)));return function(e,s){let a=0,i=0;for(;(i=e.indexOf("&",i))>=0;){t+=e.slice(a,i),n.startEntity(s);const r=n.write(e,i+1);if(r<0){a=i+n.end();break}a=i+r,i=0===r?a+1:a}const r=t+e.slice(a);return t="",r}}function h(e,t,n,s){const a=(t&r.BinTrieFlags.BRANCH_LENGTH)>>7,i=t&r.BinTrieFlags.JUMP_TABLE;if(0===a)return 0!==i&&s===i?n:-1;if(i){const t=s-i;return t<0||t>=a?-1:e[n+t]-1}const o=a+1>>1;let l=0,c=a-1;for(;l<=c;){const t=l+c>>>1,a=e[n+(t>>1)]>>8*(1&t)&255;if(a<s)l=t+1;else{if(!(a>s))return e[n+o+t];c=t-1}}return-1}t.EntityDecoder=d;a.htmlDecodeTree,i.xmlDecodeTree;var m=n(98639);Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return m.fromCodePoint}});var g=n(6390);Object.defineProperty(t,"htmlDecodeTree",{enumerable:!0,get:function(){return g.htmlDecodeTree}});var f=n(78722);Object.defineProperty(t,"xmlDecodeTree",{enumerable:!0,get:function(){return f.xmlDecodeTree}})},6390(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.htmlDecodeTree=void 0;const s=n(99575);t.htmlDecodeTree=(0,s.decodeBase64)("QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg")},78722(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xmlDecodeTree=void 0;const s=n(99575);t.xmlDecodeTree=(0,s.decodeBase64)("AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg")},75229(e,t){"use strict";var n;t.BinTrieFlags=void 0,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"}(n||(t.BinTrieFlags=n={}))},99575(e,t){"use strict";t.decodeBase64=function(e){const t="function"==typeof atob?atob(e):"function"==typeof Buffer.from?Buffer.from(e,"base64").toString("binary"):new Buffer(e,"base64").toString("binary"),n=-2&t.length,s=new Uint16Array(n/2);for(let e=0,a=0;e<n;e+=2){const n=t.charCodeAt(e),i=t.charCodeAt(e+1);s[a++]=n|i<<8}return s}},95042(e){e.exports={nanoid:(e=21)=>{let t="",n=0|e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let s="",a=0|n;for(;a--;)s+=e[Math.random()*e.length|0];return s}}},43145(e,t,n){"use strict";function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}n.d(t,{A:()=>s})},9417(e,t,n){"use strict";function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>s})},23029(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>s})},92901(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(20816);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,(0,s.A)(a.key),a)}}function i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},64467(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(20816);function a(e,t,n){return(t=(0,s.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},58168(e,t,n){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},s.apply(null,arguments)}n.d(t,{A:()=>s})},53954(e,t,n){"use strict";function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}n.d(t,{A:()=>s})},85501(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(63662);function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,s.A)(e,t)}},80045(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(98587);function a(e,t){if(null==e)return{};var n,a,i=(0,s.A)(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a<r.length;a++)n=r[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},98587(e,t,n){"use strict";function s(e,t){if(null==e)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(-1!==t.indexOf(s))continue;n[s]=e[s]}return n}n.d(t,{A:()=>s})},56822(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(82284),a=n(9417);function i(e,t){if(t&&("object"==(0,s.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,a.A)(e)}},63662(e,t,n){"use strict";function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}n.d(t,{A:()=>s})},80296(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(27800);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,i,r,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(s=i.call(n)).done)&&(o.push(s.value),o.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(c)throw a}}return o}}(e,t)||(0,s.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},45458(e,t,n){"use strict";n.d(t,{A:()=>i});var s=n(43145),a=n(27800);function i(e){return function(e){if(Array.isArray(e))return(0,s.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,a.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},20816(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(82284);function a(e){var t=function(e){if("object"!=(0,s.A)(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=(0,s.A)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,s.A)(t)?t:t+""}},82284(e,t,n){"use strict";function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}n.d(t,{A:()=>s})},27800(e,t,n){"use strict";n.d(t,{A:()=>a});var s=n(43145);function a(e,t){if(e){if("string"==typeof e)return(0,s.A)(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,s.A)(e,t):void 0}}},7315(e,t,n){"use strict";n.d(t,{UE:()=>ce,RK:()=>ae,ll:()=>te,rD:()=>pe,__:()=>ne,UU:()=>re,jD:()=>le,mG:()=>ue,ER:()=>de,cY:()=>se,iD:()=>Z,BN:()=>ie,Ej:()=>oe});const s=["top","right","bottom","left"],a=["start","end"],i=s.reduce(((e,t)=>e.concat(t,t+"-"+a[0],t+"-"+a[1])),[]),r=Math.min,o=Math.max,l=Math.round,c=Math.floor,u=e=>({x:e,y:e}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function h(e,t,n){return o(e,r(t,n))}function m(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function f(e){return e.split("-")[1]}function b(e){return"x"===e?"y":"x"}function v(e){return"y"===e?"height":"width"}const y=new Set(["top","bottom"]);function S(e){return y.has(g(e))?"y":"x"}function w(e){return b(S(e))}function x(e,t,n){void 0===n&&(n=!1);const s=f(e),a=w(e),i=v(a);let r="x"===a?s===(n?"end":"start")?"right":"left":"start"===s?"bottom":"top";return t.reference[i]>t.floating[i]&&(r=I(r)),[r,I(r)]}function A(e){return e.replace(/start|end/g,(e=>p[e]))}const _=["left","right"],k=["right","left"],j=["top","bottom"],C=["bottom","top"];function I(e){return e.replace(/left|right|bottom|top/g,(e=>d[e]))}function T(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 D(e){const{x:t,y:n,width:s,height:a}=e;return{width:s,height:a,top:n,left:t,right:t+s,bottom:n+a,x:t,y:n}}function P(e,t,n){let{reference:s,floating:a}=e;const i=S(t),r=w(t),o=v(r),l=g(t),c="y"===i,u=s.x+s.width/2-a.width/2,d=s.y+s.height/2-a.height/2,p=s[o]/2-a[o]/2;let h;switch(l){case"top":h={x:u,y:s.y-a.height};break;case"bottom":h={x:u,y:s.y+s.height};break;case"right":h={x:s.x+s.width,y:d};break;case"left":h={x:s.x-a.width,y:d};break;default:h={x:s.x,y:s.y}}switch(f(t)){case"start":h[r]-=p*(n&&c?-1:1);break;case"end":h[r]+=p*(n&&c?-1:1)}return h}async function O(e,t){var n;void 0===t&&(t={});const{x:s,y:a,platform:i,rects:r,elements:o,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=m(t,e),g=T(h),f=o[p?"floating"===d?"reference":"floating":d],b=D(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(f)))||n?f:f.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:s,y:a,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(o.floating)),S=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},w=D(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:v,offsetParent:y,strategy:l}):v);return{top:(b.top-w.top+g.top)/S.y,bottom:(w.bottom-b.bottom+g.bottom)/S.y,left:(b.left-w.left+g.left)/S.x,right:(w.right-b.right+g.right)/S.x}}function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function M(e){return s.some((t=>e[t]>=0))}function E(e){const t=r(...e.map((e=>e.left))),n=r(...e.map((e=>e.top)));return{x:t,y:n,width:o(...e.map((e=>e.right)))-t,height:o(...e.map((e=>e.bottom)))-n}}const R=new Set(["left","top"]);var U=n(86635);function N(e){const t=(0,U.L9)(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const a=(0,U.sb)(e),i=a?e.offsetWidth:n,r=a?e.offsetHeight:s,o=l(n)!==i||l(s)!==r;return o&&(n=i,s=r),{width:n,height:s,$:o}}function F(e){return(0,U.vq)(e)?e:e.contextElement}function B(e){const t=F(e);if(!(0,U.sb)(t))return u(1);const n=t.getBoundingClientRect(),{width:s,height:a,$:i}=N(t);let r=(i?l(n.width):n.width)/s,o=(i?l(n.height):n.height)/a;return r&&Number.isFinite(r)||(r=1),o&&Number.isFinite(o)||(o=1),{x:r,y:o}}const Y=u(0);function H(e){const t=(0,U.zk)(e);return(0,U.Tc)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Y}function V(e,t,n,s){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),i=F(e);let r=u(1);t&&(s?(0,U.vq)(s)&&(r=B(s)):r=B(e));const o=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==(0,U.zk)(e))&&t}(i,n,s)?H(i):u(0);let l=(a.left+o.x)/r.x,c=(a.top+o.y)/r.y,d=a.width/r.x,p=a.height/r.y;if(i){const e=(0,U.zk)(i),t=s&&(0,U.vq)(s)?(0,U.zk)(s):s;let n=e,a=(0,U._m)(n);for(;a&&s&&t!==n;){const e=B(a),t=a.getBoundingClientRect(),s=(0,U.L9)(a),i=t.left+(a.clientLeft+parseFloat(s.paddingLeft))*e.x,r=t.top+(a.clientTop+parseFloat(s.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=i,c+=r,n=(0,U.zk)(a),a=(0,U._m)(n)}}return D({width:d,height:p,x:l,y:c})}function W(e,t){const n=(0,U.CP)(e).scrollLeft;return t?t.left+n:V((0,U.ep)(e)).left+n}function $(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-W(e,n),y:n.top+t.scrollTop}}const z=new Set(["absolute","fixed"]);function q(e,t,n){let s;if("viewport"===t)s=function(e,t){const n=(0,U.zk)(e),s=(0,U.ep)(e),a=n.visualViewport;let i=s.clientWidth,r=s.clientHeight,o=0,l=0;if(a){i=a.width,r=a.height;const e=(0,U.Tc)();(!e||e&&"fixed"===t)&&(o=a.offsetLeft,l=a.offsetTop)}const c=W(s);if(c<=0){const e=s.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,r=Math.abs(s.clientWidth-t.clientWidth-a);r<=25&&(i-=r)}else c<=25&&(i+=c);return{width:i,height:r,x:o,y:l}}(e,n);else if("document"===t)s=function(e){const t=(0,U.ep)(e),n=(0,U.CP)(e),s=e.ownerDocument.body,a=o(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=o(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let r=-n.scrollLeft+W(e);const l=-n.scrollTop;return"rtl"===(0,U.L9)(s).direction&&(r+=o(t.clientWidth,s.clientWidth)-a),{width:a,height:i,x:r,y:l}}((0,U.ep)(e));else if((0,U.vq)(t))s=function(e,t){const n=V(e,!0,"fixed"===t),s=n.top+e.clientTop,a=n.left+e.clientLeft,i=(0,U.sb)(e)?B(e):u(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:a*i.x,y:s*i.y}}(t,n);else{const n=H(e);s={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return D(s)}function G(e,t){const n=(0,U.$4)(e);return!(n===t||!(0,U.vq)(n)||(0,U.eu)(n))&&("fixed"===(0,U.L9)(n).position||G(n,t))}function K(e,t,n){const s=(0,U.sb)(t),a=(0,U.ep)(t),i="fixed"===n,r=V(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=u(0);function c(){l.x=W(a)}if(s||!s&&!i)if(("body"!==(0,U.mq)(t)||(0,U.ZU)(a))&&(o=(0,U.CP)(t)),s){const e=V(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&c();i&&!s&&a&&c();const d=!a||s||i?u(0):$(a,o);return{x:r.left+o.scrollLeft-l.x-d.x,y:r.top+o.scrollTop-l.y-d.y,width:r.width,height:r.height}}function Q(e){return"static"===(0,U.L9)(e).position}function J(e,t){if(!(0,U.sb)(e)||"fixed"===(0,U.L9)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,U.ep)(e)===n&&(n=n.ownerDocument.body),n}function X(e,t){const n=(0,U.zk)(e);if((0,U.Tf)(e))return n;if(!(0,U.sb)(e)){let t=(0,U.$4)(e);for(;t&&!(0,U.eu)(t);){if((0,U.vq)(t)&&!Q(t))return t;t=(0,U.$4)(t)}return n}let s=J(e,t);for(;s&&(0,U.Lv)(s)&&Q(s);)s=J(s,t);return s&&(0,U.eu)(s)&&Q(s)&&!(0,U.sQ)(s)?n:s||(0,U.gJ)(e)||n}const Z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:s,strategy:a}=e;const i="fixed"===a,r=(0,U.ep)(s),o=!!t&&(0,U.Tf)(t.floating);if(s===r||o&&i)return n;let l={scrollLeft:0,scrollTop:0},c=u(1);const d=u(0),p=(0,U.sb)(s);if((p||!p&&!i)&&(("body"!==(0,U.mq)(s)||(0,U.ZU)(r))&&(l=(0,U.CP)(s)),(0,U.sb)(s))){const e=V(s);c=B(s),d.x=e.x+s.clientLeft,d.y=e.y+s.clientTop}const h=!r||p||i?u(0):$(r,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}},getDocumentElement:U.ep,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:a}=e;const i=[..."clippingAncestors"===n?(0,U.Tf)(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let s=(0,U.v9)(e,[],!1).filter((e=>(0,U.vq)(e)&&"body"!==(0,U.mq)(e))),a=null;const i="fixed"===(0,U.L9)(e).position;let r=i?(0,U.$4)(e):e;for(;(0,U.vq)(r)&&!(0,U.eu)(r);){const t=(0,U.L9)(r),n=(0,U.sQ)(r);n||"fixed"!==t.position||(a=null),(i?!n&&!a:!n&&"static"===t.position&&a&&z.has(a.position)||(0,U.ZU)(r)&&!n&&G(e,r))?s=s.filter((e=>e!==r)):a=t,r=(0,U.$4)(r)}return t.set(e,s),s}(t,this._c):[].concat(n),s],l=i[0],c=i.reduce(((e,n)=>{const s=q(t,n,a);return e.top=o(s.top,e.top),e.right=r(s.right,e.right),e.bottom=r(s.bottom,e.bottom),e.left=o(s.left,e.left),e}),q(t,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:X,getElementRects:async function(e){const t=this.getOffsetParent||X,n=this.getDimensions,s=await n(e.floating);return{reference:K(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=N(e);return{width:t,height:n}},getScale:B,isElement:U.vq,isRTL:function(e){return"rtl"===(0,U.L9)(e).direction}};function ee(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function te(e,t,n,s){void 0===s&&(s={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:d=!1}=s,p=F(e),h=a||i?[...p?(0,U.v9)(p):[],...(0,U.v9)(t)]:[];h.forEach((e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const m=p&&u?function(e,t){let n,s=null;const a=(0,U.ep)(e);function i(){var e;clearTimeout(n),null==(e=s)||e.disconnect(),s=null}return function l(u,d){void 0===u&&(u=!1),void 0===d&&(d=1),i();const p=e.getBoundingClientRect(),{left:h,top:m,width:g,height:f}=p;if(u||t(),!g||!f)return;const b={rootMargin:-c(m)+"px "+-c(a.clientWidth-(h+g))+"px "+-c(a.clientHeight-(m+f))+"px "+-c(h)+"px",threshold:o(0,r(1,d))||1};let v=!0;function y(t){const s=t[0].intersectionRatio;if(s!==d){if(!v)return l();s?l(!1,s):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}1!==s||ee(p,e.getBoundingClientRect())||l(),v=!1}try{s=new IntersectionObserver(y,{...b,root:a.ownerDocument})}catch(e){s=new IntersectionObserver(y,b)}s.observe(e)}(!0),i}(p,n):null;let g,f=-1,b=null;l&&(b=new ResizeObserver((e=>{let[s]=e;s&&s.target===p&&b&&(b.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=b)||e.observe(t)}))),n()})),p&&!d&&b.observe(p),b.observe(t));let v=d?V(e):null;return d&&function t(){const s=V(e);v&&!ee(v,s)&&n(),v=s,g=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach((e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==m||m(),null==(e=b)||e.disconnect(),b=null,d&&cancelAnimationFrame(g)}}const ne=O,se=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:a,y:i,placement:r,middlewareData:o}=t,l=await async function(e,t){const{placement:n,platform:s,elements:a}=e,i=await(null==s.isRTL?void 0:s.isRTL(a.floating)),r=g(n),o=f(n),l="y"===S(n),c=R.has(r)?-1:1,u=i&&l?-1:1,d=m(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:b}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&"number"==typeof b&&(h="end"===o?-1*b:b),l?{x:h*u,y:p*c}:{x:p*c,y:h*u}}(t,e);return r===(null==(n=o.offset)?void 0:n.placement)&&null!=(s=o.arrow)&&s.alignmentOffset?{}:{x:a+l.x,y:i+l.y,data:{...l,placement:r}}}}},ae=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,a;const{rects:r,middlewareData:o,placement:l,platform:c,elements:u}=t,{crossAxis:d=!1,alignment:p,allowedPlacements:h=i,autoAlignment:b=!0,...v}=m(e,t),y=void 0!==p||h===i?function(e,t,n){return(e?[...n.filter((t=>f(t)===e)),...n.filter((t=>f(t)!==e))]:n.filter((e=>g(e)===e))).filter((n=>!e||f(n)===e||!!t&&A(n)!==n))}(p||null,b,h):h,S=await O(t,v),w=(null==(n=o.autoPlacement)?void 0:n.index)||0,_=y[w];if(null==_)return{};const k=x(_,r,await(null==c.isRTL?void 0:c.isRTL(u.floating)));if(l!==_)return{reset:{placement:y[0]}};const j=[S[g(_)],S[k[0]],S[k[1]]],C=[...(null==(s=o.autoPlacement)?void 0:s.overflows)||[],{placement:_,overflows:j}],I=y[w+1];if(I)return{data:{index:w+1,overflows:C},reset:{placement:I}};const T=C.map((e=>{const t=f(e.placement);return[e.placement,t&&d?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),D=(null==(a=T.filter((e=>e[2].slice(0,f(e[0])?2:3).every((e=>e<=0))))[0])?void 0:a[0])||T[0][0];return D!==l?{data:{index:w+1,overflows:C},reset:{placement:D}}:{}}}},ie=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:a}=t,{mainAxis:i=!0,crossAxis:r=!1,limiter:o={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=m(e,t),c={x:n,y:s},u=await O(t,l),d=S(g(a)),p=b(d);let f=c[p],v=c[d];if(i){const e="y"===p?"bottom":"right";f=h(f+u["y"===p?"top":"left"],f,f-u[e])}if(r){const e="y"===d?"bottom":"right";v=h(v+u["y"===d?"top":"left"],v,v-u[e])}const y=o.fn({...t,[p]:f,[d]:v});return{...y,data:{x:y.x-n,y:y.y-s,enabled:{[p]:i,[d]:r}}}}}},re=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:a,middlewareData:i,rects:r,initialPlacement:o,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:v=!0,...y}=m(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const w=g(a),T=S(o),D=g(o)===o,P=await(null==l.isRTL?void 0:l.isRTL(c.floating)),L=p||(D||!v?[I(o)]:function(e){const t=I(e);return[A(e),t,A(t)]}(o)),M="none"!==b;!p&&M&&L.push(...function(e,t,n,s){const a=f(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?k:_:t?_:k;case"left":case"right":return t?j:C;default:return[]}}(g(e),"start"===n,s);return a&&(i=i.map((e=>e+"-"+a)),t&&(i=i.concat(i.map(A)))),i}(o,v,b,P));const E=[o,...L],R=await O(t,y),U=[];let N=(null==(s=i.flip)?void 0:s.overflows)||[];if(u&&U.push(R[w]),d){const e=x(a,r,P);U.push(R[e[0]],R[e[1]])}if(N=[...N,{placement:a,overflows:U}],!U.every((e=>e<=0))){var F,B;const e=((null==(F=i.flip)?void 0:F.index)||0)+1,t=E[e];if(t&&("alignment"!==d||T===S(t)||N.every((e=>S(e.placement)!==T||e.overflows[0]>0))))return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(B=N.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:B.placement;if(!n)switch(h){case"bestFit":{var Y;const e=null==(Y=N.filter((e=>{if(M){const t=S(e.placement);return t===T||"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:Y[0];e&&(n=e);break}case"initialPlacement":n=o}if(a!==n)return{reset:{placement:n}}}return{}}}},oe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:a,rects:i,platform:l,elements:c}=t,{apply:u=()=>{},...d}=m(e,t),p=await O(t,d),h=g(a),b=f(a),v="y"===S(a),{width:y,height:w}=i.floating;let x,A;"top"===h||"bottom"===h?(x=h,A=b===(await(null==l.isRTL?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(A=h,x="end"===b?"top":"bottom");const _=w-p.top-p.bottom,k=y-p.left-p.right,j=r(w-p[x],_),C=r(y-p[A],k),I=!t.middlewareData.shift;let T=j,D=C;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(D=k),null!=(s=t.middlewareData.shift)&&s.enabled.y&&(T=_),I&&!b){const e=o(p.left,0),t=o(p.right,0),n=o(p.top,0),s=o(p.bottom,0);v?D=y-2*(0!==e||0!==t?e+t:o(p.left,p.right)):T=w-2*(0!==n||0!==s?n+s:o(p.top,p.bottom))}await u({...t,availableWidth:D,availableHeight:T});const P=await l.getDimensions(c.floating);return y!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}},le=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...a}=m(e,t);switch(s){case"referenceHidden":{const e=L(await O(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:M(e)}}}case"escaped":{const e=L(await O(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:M(e)}}}default:return{}}}}},ce=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:a,rects:i,platform:o,elements:l,middlewareData:c}=t,{element:u,padding:d=0}=m(e,t)||{};if(null==u)return{};const p=T(d),g={x:n,y:s},b=w(a),y=v(b),S=await o.getDimensions(u),x="y"===b,A=x?"top":"left",_=x?"bottom":"right",k=x?"clientHeight":"clientWidth",j=i.reference[y]+i.reference[b]-g[b]-i.floating[y],C=g[b]-i.reference[b],I=await(null==o.getOffsetParent?void 0:o.getOffsetParent(u));let D=I?I[k]:0;D&&await(null==o.isElement?void 0:o.isElement(I))||(D=l.floating[k]||i.floating[y]);const P=j/2-C/2,O=D/2-S[y]/2-1,L=r(p[A],O),M=r(p[_],O),E=L,R=D-S[y]-M,U=D/2-S[y]/2+P,N=h(E,U,R),F=!c.arrow&&null!=f(a)&&U!==N&&i.reference[y]/2-(U<E?L:M)-S[y]/2<0,B=F?U<E?U-E:U-R:0;return{[b]:g[b]+B,data:{[b]:N,centerOffset:U-N-B,...F&&{alignmentOffset:B}},reset:F}}}),ue=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:s,rects:a,platform:i,strategy:l}=t,{padding:c=2,x:u,y:d}=m(e,t),p=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(s.reference))||[]),h=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let s=null;for(let e=0;e<t.length;e++){const a=t[e];!s||a.y-s.y>s.height/2?n.push([a]):n[n.length-1].push(a),s=a}return n.map((e=>D(E(e))))}(p),f=D(E(p)),b=T(c),v=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=u&&null!=d)return h.find((e=>u>e.left-b.left&&u<e.right+b.right&&d>e.top-b.top&&d<e.bottom+b.bottom))||f;if(h.length>=2){if("y"===S(n)){const e=h[0],t=h[h.length-1],s="top"===g(n),a=e.top,i=t.bottom,r=s?e.left:t.left,o=s?e.right:t.right;return{top:a,bottom:i,left:r,right:o,width:o-r,height:i-a,x:r,y:a}}const e="left"===g(n),t=o(...h.map((e=>e.right))),s=r(...h.map((e=>e.left))),a=h.filter((n=>e?n.left===s:n.right===t)),i=a[0].top,l=a[a.length-1].bottom;return{top:i,bottom:l,left:s,right:t,width:t-s,height:l-i,x:s,y:i}}return f}},floating:s.floating,strategy:l});return a.reference.x!==v.reference.x||a.reference.y!==v.reference.y||a.reference.width!==v.reference.width||a.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},de=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:a,rects:i,middlewareData:r}=t,{offset:o=0,mainAxis:l=!0,crossAxis:c=!0}=m(e,t),u={x:n,y:s},d=S(a),p=b(d);let h=u[p],f=u[d];const v=m(o,t),y="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(l){const e="y"===p?"height":"width",t=i.reference[p]-i.floating[e]+y.mainAxis,n=i.reference[p]+i.reference[e]-y.mainAxis;h<t?h=t:h>n&&(h=n)}if(c){var w,x;const e="y"===p?"width":"height",t=R.has(g(a)),n=i.reference[d]-i.floating[e]+(t&&(null==(w=r.offset)?void 0:w[d])||0)+(t?0:y.crossAxis),s=i.reference[d]+i.reference[e]+(t?0:(null==(x=r.offset)?void 0:x[d])||0)-(t?y.crossAxis:0);f<n?f=n:f>s&&(f=s)}return{[p]:h,[d]:f}}}},pe=(e,t,n)=>{const s=new Map,a={platform:Z,...n},i={...a.platform,_c:s};return(async(e,t,n)=>{const{placement:s="bottom",strategy:a="absolute",middleware:i=[],platform:r}=n,o=i.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:d}=P(c,s,l),p=s,h={},m=0;for(let n=0;n<o.length;n++){const{name:i,fn:g}=o[n],{x:f,y:b,data:v,reset:y}=await g({x:u,y:d,initialPlacement:s,placement:p,strategy:a,middlewareData:h,rects:c,platform:r,elements:{reference:e,floating:t}});u=null!=f?f:u,d=null!=b?b:d,h={...h,[i]:{...h[i],...v}},y&&m<=50&&(m++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await r.getElementRects({reference:e,floating:t,strategy:a}):y.rects),({x:u,y:d}=P(c,p,l))),n=-1)}return{x:u,y:d,placement:p,strategy:a,middlewareData:h}})(e,t,{...a,platform:i})}},34743(e,t,n){"use strict";n.d(t,{BN:()=>m,ER:()=>g,Ej:()=>b,RK:()=>v,UE:()=>w,UU:()=>f,cY:()=>h,jD:()=>y,mG:()=>S,we:()=>d});var s=n(7315),a=n(96540),i=n(40961),r="undefined"!=typeof document?a.useLayoutEffect:function(){};function o(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,s,a;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;0!=s--;)if(!o(e[s],t[s]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(s=n;0!=s--;)if(!{}.hasOwnProperty.call(t,a[s]))return!1;for(s=n;0!=s--;){const n=a[s];if(!("_owner"===n&&e.$$typeof||o(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function l(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function c(e,t){const n=l(e);return Math.round(t*n)/n}function u(e){const t=a.useRef(e);return r((()=>{t.current=e})),t}function d(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:p,elements:{reference:h,floating:m}={},transform:g=!0,whileElementsMounted:f,open:b}=e,[v,y]=a.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[S,w]=a.useState(d);o(S,d)||w(d);const[x,A]=a.useState(null),[_,k]=a.useState(null),j=a.useCallback((e=>{e!==D.current&&(D.current=e,A(e))}),[]),C=a.useCallback((e=>{e!==P.current&&(P.current=e,k(e))}),[]),I=h||x,T=m||_,D=a.useRef(null),P=a.useRef(null),O=a.useRef(v),L=null!=f,M=u(f),E=u(p),R=u(b),U=a.useCallback((()=>{if(!D.current||!P.current)return;const e={placement:t,strategy:n,middleware:S};E.current&&(e.platform=E.current),(0,s.rD)(D.current,P.current,e).then((e=>{const t={...e,isPositioned:!1!==R.current};N.current&&!o(O.current,t)&&(O.current=t,i.flushSync((()=>{y(t)})))}))}),[S,t,n,E,R]);r((()=>{!1===b&&O.current.isPositioned&&(O.current.isPositioned=!1,y((e=>({...e,isPositioned:!1}))))}),[b]);const N=a.useRef(!1);r((()=>(N.current=!0,()=>{N.current=!1})),[]),r((()=>{if(I&&(D.current=I),T&&(P.current=T),I&&T){if(M.current)return M.current(I,T,U);U()}}),[I,T,U,M,L]);const F=a.useMemo((()=>({reference:D,floating:P,setReference:j,setFloating:C})),[j,C]),B=a.useMemo((()=>({reference:I,floating:T})),[I,T]),Y=a.useMemo((()=>{const e={position:n,left:0,top:0};if(!B.floating)return e;const t=c(B.floating,v.x),s=c(B.floating,v.y);return g?{...e,transform:"translate("+t+"px, "+s+"px)",...l(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:s}}),[n,g,B.floating,v.x,v.y]);return a.useMemo((()=>({...v,update:U,refs:F,elements:B,floatingStyles:Y})),[v,U,F,B,Y])}const p=e=>({name:"arrow",options:e,fn(t){const{element:n,padding:a}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?(0,s.UE)({element:n.current,padding:a}).fn(t):{}:n?(0,s.UE)({element:n,padding:a}).fn(t):{};var i}}),h=(e,t)=>({...(0,s.cY)(e),options:[e,t]}),m=(e,t)=>({...(0,s.BN)(e),options:[e,t]}),g=(e,t)=>({...(0,s.ER)(e),options:[e,t]}),f=(e,t)=>({...(0,s.UU)(e),options:[e,t]}),b=(e,t)=>({...(0,s.Ej)(e),options:[e,t]}),v=(e,t)=>({...(0,s.RK)(e),options:[e,t]}),y=(e,t)=>({...(0,s.jD)(e),options:[e,t]}),S=(e,t)=>({...(0,s.mG)(e),options:[e,t]}),w=(e,t)=>({...p(e),options:[e,t]})},86635(e,t,n){"use strict";function s(){return"undefined"!=typeof window}function a(e){return o(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function r(e){var t;return null==(t=(o(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function o(e){return!!s()&&(e instanceof Node||e instanceof i(e).Node)}function l(e){return!!s()&&(e instanceof Element||e instanceof i(e).Element)}function c(e){return!!s()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function u(e){return!(!s()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{$4:()=>C,CP:()=>j,L9:()=>k,Lv:()=>m,Tc:()=>x,Tf:()=>f,ZU:()=>p,_m:()=>D,ep:()=>r,eu:()=>_,gJ:()=>w,mq:()=>a,sQ:()=>S,sb:()=>c,v9:()=>T,vq:()=>l,zk:()=>i});const d=new Set(["inline","contents"]);function p(e){const{overflow:t,overflowX:n,overflowY:s,display:a}=k(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!d.has(a)}const h=new Set(["table","td","th"]);function m(e){return h.has(a(e))}const g=[":popover-open",":modal"];function f(e){return g.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const b=["transform","translate","scale","rotate","perspective"],v=["transform","translate","scale","rotate","perspective","filter"],y=["paint","layout","strict","content"];function S(e){const t=x(),n=l(e)?k(e):e;return b.some((e=>!!n[e]&&"none"!==n[e]))||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||v.some((e=>(n.willChange||"").includes(e)))||y.some((e=>(n.contain||"").includes(e)))}function w(e){let t=C(e);for(;c(t)&&!_(t);){if(S(t))return t;if(f(t))return null;t=C(t)}return null}function x(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const A=new Set(["html","body","#document"]);function _(e){return A.has(a(e))}function k(e){return i(e).getComputedStyle(e)}function j(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function C(e){if("html"===a(e))return e;const t=e.assignedSlot||e.parentNode||u(e)&&e.host||r(e);return u(t)?t.host:t}function I(e){const t=C(e);return _(t)?e.ownerDocument?e.ownerDocument.body:e.body:c(t)&&p(t)?t:I(t)}function T(e,t,n){var s;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=I(e),r=a===(null==(s=e.ownerDocument)?void 0:s.body),o=i(a);if(r){const e=D(o);return t.concat(o,o.visualViewport||[],p(a)?a:[],e&&n?T(e):[])}return t.concat(a,T(a,[],n))}function D(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},14644(e,t,n){"use strict";function s(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.d(t,{HY:()=>c,Qd:()=>o,Tw:()=>h,Zz:()=>p,y$:()=>l,zH:()=>d});var a=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),i=()=>Math.random().toString(36).substring(7).split("").join("."),r={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function o(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function l(e,t,n){if("function"!=typeof e)throw new Error(s(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(s(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(s(1));return n(l)(e,t)}let i=e,c=t,u=new Map,d=u,p=0,h=!1;function m(){d===u&&(d=new Map,u.forEach(((e,t)=>{d.set(t,e)})))}function g(){if(h)throw new Error(s(3));return c}function f(e){if("function"!=typeof e)throw new Error(s(4));if(h)throw new Error(s(5));let t=!0;m();const n=p++;return d.set(n,e),function(){if(t){if(h)throw new Error(s(6));t=!1,m(),d.delete(n),u=null}}}function b(e){if(!o(e))throw new Error(s(7));if(void 0===e.type)throw new Error(s(8));if("string"!=typeof e.type)throw new Error(s(17));if(h)throw new Error(s(9));try{h=!0,c=i(c,e)}finally{h=!1}return(u=d).forEach((e=>{e()})),e}return b({type:r.INIT}),{dispatch:b,subscribe:f,getState:g,replaceReducer:function(e){if("function"!=typeof e)throw new Error(s(10));i=e,b({type:r.REPLACE})},[a]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(s(11));function n(){const e=t;e.next&&e.next(g())}return n(),{unsubscribe:e(n)}},[a](){return this}}}}}function c(e){const t=Object.keys(e),n={};for(let s=0;s<t.length;s++){const a=t[s];"function"==typeof e[a]&&(n[a]=e[a])}const a=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:r.INIT}))throw new Error(s(12));if(void 0===n(void 0,{type:r.PROBE_UNKNOWN_ACTION()}))throw new Error(s(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let r=!1;const o={};for(let i=0;i<a.length;i++){const l=a[i],c=n[l],u=e[l],d=c(u,t);if(void 0===d)throw t&&t.type,new Error(s(14));o[l]=d,r=r||d!==u}return r=r||a.length!==Object.keys(e).length,r?o:e}}function u(e,t){return function(...n){return t(e.apply(this,n))}}function d(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(s(16));const n={};for(const s in e){const a=e[s];"function"==typeof a&&(n[s]=u(a,t))}return n}function p(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}function h(...e){return t=>(n,a)=>{const i=t(n,a);let r=()=>{throw new Error(s(15))};const o={getState:i.getState,dispatch:(e,...t)=>r(e,...t)},l=e.map((e=>e(o)));return r=p(...l)(i.dispatch),{...i,dispatch:r}}}},25508(e,t,n){"use strict";n.d(t,{Mz:()=>o});var s=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var a="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function i(e,t={}){let n={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:s}=t;let i,r=0;function o(){let t=n;const{length:o}=arguments;for(let e=0,n=o;e<n;e++){const n=arguments[e];if("function"==typeof n||"object"==typeof n&&null!==n){let e=t.o;null===e&&(t.o=e=new WeakMap);const s=e.get(n);void 0===s?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=s}else{let e=t.p;null===e&&(t.p=e=new Map);const s=e.get(n);void 0===s?(t={s:0,v:void 0,o:null,p:null},e.set(n,t)):t=s}}const l=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),r++,s){const e=i?.deref?.()??i;null!=e&&s(e,c)&&(c=e,0!==r&&r--),i="object"==typeof c&&null!==c||"function"==typeof c?new a(c):c}return l.s=1,l.v=c,c}return o.clearCache=()=>{n={s:0,v:void 0,o:null,p:null},o.resetResultsCount()},o.resultsCount=()=>r,o.resetResultsCount=()=>{r=0},o}function r(e,...t){const n="function"==typeof e?{memoize:e,memoizeOptions:t}:e,a=(...e)=>{let t,a=0,r=0,o={},l=e.pop();"object"==typeof l&&(o=l,l=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const c={...n,...o},{memoize:u,memoizeOptions:d=[],argsMemoize:p=i,argsMemoizeOptions:h=[],devModeChecks:m={}}=c,g=s(d),f=s(h),b=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every((e=>"function"==typeof e))){const n=e.map((e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e)).join(", ");throw new TypeError(`${t}[${n}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),v=u((function(){return a++,l.apply(null,arguments)}),...g),y=p((function(){r++;const e=function(e,t){const n=[],{length:s}=e;for(let a=0;a<s;a++)n.push(e[a].apply(null,t));return n}(b,arguments);return t=v.apply(null,e),t}),...f);return Object.assign(y,{resultFunc:l,memoizedResultFunc:v,dependencies:b,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>t,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:u,argsMemoize:p})};return Object.assign(a,{withTypes:()=>a}),a}var o=r(i),l=Object.assign(((e,t=o)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const n=Object.keys(e);return t(n.map((t=>e[t])),((...e)=>e.reduce(((e,t,s)=>(e[n[s]]=t,e)),{})))}),{withTypes:()=>l})},31635(e,t,n){"use strict";n.d(t,{C6:()=>a,Cl:()=>i,Tt:()=>r,fX:()=>l,sH:()=>o});var s=function(e,t){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},s(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function r(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}function o(e,t,n,s){return new(n||(n=Promise))((function(a,i){function r(e){try{l(s.next(e))}catch(e){i(e)}}function o(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}l((s=s.apply(e,t||[])).next())}))}function l(e,t,n){if(n||2===arguments.length)for(var s,a=0,i=t.length;a<i;a++)!s&&a in t||(s||(s=Array.prototype.slice.call(t,0,a)),s[a]=t[a]);return e.concat(s||Array.prototype.slice.call(t))}Object.create,Object.create}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,r),n.loaded=!0,n.exports}r.m=a,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(n,s){if(1&s&&(n=this(n)),8&s)return n;if("object"==typeof n&&n){if(4&s&&n.__esModule)return n;if(16&s&&"function"==typeof n.then)return n}var a=Object.create(null);r.r(a);var i={};e=e||[null,t({}),t([]),t(t)];for(var o=2&s&&n;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,r.d(a,i),a},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>(({204:"react-sortable-hoc",213:"react-movable"}[e]||e)+"."+{204:"5b2f3290130a35b5f716",213:"a5a0e33b00cce84972bb",299:"33c26eedacb9bcbb776f"}[e]+".bundle.js"),r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},s="wptCpanelMain:",r.l=(e,t,a,i)=>{if(n[e])n[e].push(t);else{var o,l;if(void 0!==a)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==s+a){o=d;break}}o||(l=!0,(o=document.createElement("script")).charset="utf-8",r.nc&&o.setAttribute("nonce",r.nc),o.setAttribute("data-webpack",s+a),o.src=e),n[e]=[t];var p=(t,s)=>{o.onerror=o.onload=null,clearTimeout(h);var a=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),a&&a.forEach((e=>e(s))),t)return t(s)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),l&&document.head.appendChild(o)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})(),(()=>{var e={792:0};r.f.j=(t,n)=>{var s=r.o(e,t)?e[t]:void 0;if(0!==s)if(s)n.push(s[2]);else{var a=new Promise(((n,a)=>s=e[t]=[n,a]));n.push(s[2]=a);var i=r.p+r.u(t),o=new Error;r.l(i,(n=>{if(r.o(e,t)&&(0!==(s=e[t])&&(e[t]=void 0),s)){var a=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+a+": "+i+")",o.name="ChunkLoadError",o.type=a,o.request=i,s[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var s,a,[i,o,l]=n,c=0;if(i.some((t=>0!==e[t]))){for(s in o)r.o(o,s)&&(r.m[s]=o[s]);l&&l(r)}for(t&&t(n);c<i.length;c++)a=i[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0},n=self.webpackChunkwptCpanelMain=self.webpackChunkwptCpanelMain||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o={};(()=>{"use strict";r(74209),r(68029),r(83835),r(66130),r(40828),r(72701),r(6396),function(e){var t=e.Element.prototype;"function"!=typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),s=0;n[s]&&n[s]!==t;)++s;return Boolean(n[s])}),"function"!=typeof t.closest&&(t.closest=function(e){for(var t=this;t&&1===t.nodeType;){if(t.matches(e))return t;t=t.parentNode}return null})}(window)})(),(()=>{"use strict";r.r(o),r.d(o,{default:()=>vJ,whmHomeBlocks:()=>yJ});var e={};r.r(e),r.d(e,{hasBrowserEnv:()=>Ym,hasStandardBrowserEnv:()=>Vm,hasStandardBrowserWebWorkerEnv:()=>Wm,navigator:()=>Hm,origin:()=>$m});var t={};r.r(t),r.d(t,{addAppMessage:()=>rb,addErrorMessage:()=>ab,addInfoMessage:()=>sb,addSuccessMessage:()=>nb,addWarningMessage:()=>ib,checkSession:()=>tb,clearAppMessage:()=>ob,closeFlashMessage:()=>mb,closeGlobalAlert:()=>gb,disableSmartUpdatePromoForInstances:()=>ub,disableSmartUpdatePromoForMultipleSitesUpdatesScreen:()=>pb,disableSmartUpdatePromoForUpdatesScreen:()=>db,displayErrorMessageFromMeta:()=>Zf,displayErrorMessagesFromFormErrors:()=>Xf,fetchInitialData:()=>_b,getInitialOptions:()=>hb,getLicenseInfo:()=>xb,getPremiumUsers:()=>vb,getWhmcsUpsellLink:()=>yb,loadChangelog:()=>fb,parseResponseMessages:()=>eb,sendMainPagePerfStat:()=>jb,setSearch:()=>lb,upVoteForFeature:()=>wb,updateLicenseInfo:()=>Ab});var n={};r.r(n),r.d(n,{closeDrawer:()=>Yb,loadSettings:()=>Nb,loadSettingsIfFirstOpen:()=>Ub,openDrawer:()=>Bb,settingsLoaded:()=>Vb,settingsLoadingError:()=>Wb,settingsRequested:()=>Hb,settingsSubmitted:()=>$b,settingsUpdateError:()=>qb,settingsUpdated:()=>zb,updateSettings:()=>Fb});var s={};r.r(s),r.d(s,{activateOrDeactivatePlugin:()=>dw,addAssetsToRemoval:()=>ow,getInstallationPlugins:()=>mw,getPluginInfo:()=>gw,remove:()=>pw,removeAssetsFromRemoval:()=>lw,removePluginsSuccess:()=>uw,setPluginsAutoUpdates:()=>hw});var a={};r.r(a),r.d(a,{activateTheme:()=>xw,getInstallationThemes:()=>kw,remove:()=>Aw,setThemesAutoUpdates:()=>_w});var i={};r.r(i),r.d(i,{acceptSmartPhpUpdate:()=>qx,activateVirtualPatchesSubscription:()=>C_,appendDomainInstallationsIds:()=>UA,applySmartUpdate:()=>Zx,calculateVulnerabilityProtectionUsageStatistics:()=>T_,checkExpiredExpandedInstanceIds:()=>BA,checkInstallationsVulnerability:()=>d_,checkUpdates:()=>Ox,cleanUpUpdatesStore:()=>Mx,createInstallation:()=>PA,createMaintenancePreview:()=>cx,deleteSnapshot:()=>Nx,detach:()=>px,detachVirtualPatchesSubscription:()=>I_,discardSmartPhpUpdate:()=>Gx,discardSmartUpdate:()=>eA,executeWpCliCommand:()=>P_,fetchAvailableUpdates:()=>Lx,forgetExpandedInstanceId:()=>FA,getAdminSettings:()=>nA,getAutoUpdateSettings:()=>hA,getAvailablePhpHandlers:()=>ox,getDbSettings:()=>Vx,getHotlinkProtectionSettingsMeta:()=>vx,getInstallationData:()=>Bx,getInstallationLabelsMeta:()=>KA,getInstallationStub:()=>l_,getInstallationsRemoveConfiguration:()=>Cx,getInstancesData:()=>Hx,getMaintenanceSettings:()=>i_,getMaintenanceTemplateCustomizationUrl:()=>dx,getPasswordProtection:()=>kA,getRemoteAgentInstallationProperties:()=>w_,getRemoteServerInstallationProperties:()=>S_,getSetDetails:()=>c_,getSmartPhpUpdateResult:()=>zx,getSmartPhpUpdateStub:()=>$x,getSmartUpdateResult:()=>tA,getSynchronizeSiteUrlParams:()=>s_,getVirtualPatchesSubscriptionGuid:()=>__,getVirtualPatchesSubscriptionInfo:()=>A_,getVirtualPatchesSubscriptionPurchaseUrlAndGuid:()=>k_,getWordPressDebugSettings:()=>u_,getWpCliCommandsList:()=>D_,getWpCredentials:()=>a_,getWpCronTakeoverMeta:()=>fx,getWpUser:()=>iA,installationStarted:()=>DA,instanceUpdateFailed:()=>VA,instanceUpdateFinished:()=>HA,instancesCheckUpdatesFailed:()=>qA,instancesCheckUpdatesFinished:()=>zA,instancesDetachFinished:()=>hx,instancesMassUpdateFailed:()=>$A,instancesMassUpdateFinished:()=>WA,keepExpandedInstanceId:()=>NA,loadInstancesList:()=>MA,loginToInstance:()=>JA,loginToInstancePerformed:()=>XA,recordHireDeveloperTransition:()=>x_,redetectRemoteInstanceProperties:()=>xA,redetectRemoteInstancePropertiesFinished:()=>SA,redetectRemoteInstancePropertiesFinishedWithError:()=>wA,refresh:()=>ix,refreshScreenshot:()=>_x,reload:()=>ax,remove:()=>lx,resetInstancesList:()=>LA,restoreMaintenanceTemplate:()=>Qx,restoreSnapshot:()=>Ex,restoreSnapshotFinished:()=>Ux,runSmartPhpUpdate:()=>p_,saveRemoteAgentInstancePropertiesFinished:()=>fA,saveRemoteAgentInstancePropertiesFinishedWithError:()=>bA,saveRemoteInstancePropertiesFinished:()=>mA,saveRemoteInstancePropertiesFinishedWithError:()=>gA,scan:()=>Tx,scanFinished:()=>Px,setAdminSettings:()=>sA,setAdminSettingsFinished:()=>aA,setDbSettings:()=>Wx,setDebugSettings:()=>cA,setExpandedInstanceId:()=>RA,setHotlinkProtectionSettings:()=>yx,setIndexingStatus:()=>mx,setInstallationAfterInstallStarted:()=>OA,setInstallationLabels:()=>QA,setInstallationPhpHandler:()=>h_,setInstanceActiveTab:()=>GA,setInstanceName:()=>AA,setInstancesFilter:()=>Jx,setIsNeedToUpdateInstancesFilter:()=>TA,setIsNeedToUpdateInstancesList:()=>IA,setLastInstalledInstanceId:()=>YA,setMaintenanceFullMode:()=>ux,setNginxCachingStatus:()=>lA,setSelectedInstanceId:()=>EA,setSmartUpdatesStatus:()=>Ax,setWpUser:()=>rA,smartPhpUpdateFinished:()=>f_,smartPhpUpdateResultApplied:()=>b_,smartPhpUpdateResultDiscarded:()=>v_,smartPhpUpdateStarted:()=>m_,smartPhpUpdateStubLoaded:()=>y_,smartPhpUpdateTaskStatusUpdated:()=>g_,switchPhpHandler:()=>rx,synchronizeSiteUrl:()=>ZA,synchronizeSiteUrlFinished:()=>n_,synchronizeSiteUrlStarted:()=>t_,synchronizeSiteUrlSync:()=>e_,toggleDebug:()=>uA,toggleHotlinkProtection:()=>bx,togglePasswordProtectionStatus:()=>CA,toggleWpCronTakeoverStatus:()=>gx,updateAutoUpdateSettings:()=>dA,updateInstallationsAutoUpdatesSettings:()=>pA,updateItems:()=>Xx,updateMaintenanceSettings:()=>Kx,updateMaintenanceStatus:()=>wx,updatePasswordProtection:()=>jA,updateRemoteAgentInstanceProperties:()=>yA,updateRemoteInstanceProperties:()=>vA,updateVirtualPatchingSubscriptionInfo:()=>j_,validateInstallationPath:()=>o_,vulnerabilityCheckerStatsUpdate:()=>r_});var l={};r.r(l),r.d(l,{activatePlugins:()=>Xk,activatePluginsFinished:()=>Jk,deactivatePlugins:()=>tj,deactivatePluginsFinished:()=>ej,getPluginsList:()=>Rk,installPlugins:()=>Wk,installPluginsFinished:()=>Vk,reloadPlugins:()=>Fk,reloadPluginsFinished:()=>Nk,removePlugins:()=>oj,removePluginsFinished:()=>rj,resetPluginsList:()=>Uk,searchPlugins:()=>Yk,searchPluginsFinished:()=>Bk,uninstallPlugins:()=>aj,uninstallPluginsFinished:()=>sj,updatePlugins:()=>uj,updatePluginsFinished:()=>cj,uploadAndInstallPlugin:()=>Kk,uploadAndInstallPluginTaskFinished:()=>qk,uploadAndInstallPluginTaskStarted:()=>Gk,uploadPluginToStorage:()=>zk,uploadPluginToStorageFinished:()=>$k});var c={};r.r(c),r.d(c,{createInstanceBackup:()=>oO,instanceBackupCreationFinished:()=>uO,instanceBackupCreationFinishedWithError:()=>cO,instanceBackupCreationStarted:()=>lO,instanceBackupRestoringFinished:()=>mO,instanceBackupRestoringFinishedWithError:()=>hO,instanceBackupRestoringStarted:()=>pO,loadInstanceBackupsMetaData:()=>aO,removeInstanceBackups:()=>rO,resetInstanceBackupList:()=>iO,restoreInstanceBackup:()=>dO});var u={};r.r(u),r.d(u,{INSTANCE_TYPE_LOCAL_CPANEL:()=>gO,INSTANCE_TYPE_LOCAL_PLESK_LINUX:()=>bO,INSTANCE_TYPE_LOCAL_PLESK_WINDOWS:()=>vO,INSTANCE_TYPE_MANAGED_BY_PLUGIN:()=>SO,INSTANCE_TYPE_REMOTE_CPANEL:()=>fO,INSTANCE_TYPE_REMOTE_GENERIC:()=>yO});var d={};r.r(d),r.d(d,{activateThemeOnAllInstances:()=>OE,activateThemeOnAllInstancesFinished:()=>PE,getThemesList:()=>oE,installThemes:()=>gE,installThemesFinished:()=>mE,reloadThemes:()=>uE,reloadThemesFinished:()=>cE,removeThemes:()=>jE,removeThemesOnAllInstancesFinished:()=>kE,resetThemesList:()=>lE,searchThemes:()=>pE,searchThemesFinished:()=>dE,uninstallThemes:()=>AE,uninstallThemesOnAllInstancesFinished:()=>xE,updateThemes:()=>TE,updateThemesOnAllInstancesFinished:()=>IE,uploadAndInstallTheme:()=>SE,uploadAndInstallThemeTaskFinished:()=>vE,uploadAndInstallThemeTaskStarted:()=>yE,uploadThemeToStorage:()=>bE,uploadThemeToStorageFinished:()=>fE});var p={};r.r(p),r.d(p,{addPluginsToSet:()=>uR,addSet:()=>aR,addThemesToSet:()=>vR,getPluginDescription:()=>FR,getPluginDescriptionFinished:()=>NR,getSetsList:()=>tR,getThemeDescription:()=>YR,getThemeDescriptionFinished:()=>BR,installSetFinished:()=>HR,installSetInto:()=>CR,removeAllPluginsFromSet:()=>ER,removeAllPluginsFromSetFinished:()=>MR,removeAllThemesFromSet:()=>UR,removeAllThemesFromSetFinished:()=>RR,removePluginFromSet:()=>SR,removePluginFromSetFinished:()=>yR,removeSet:()=>LR,removeSetFinished:()=>OR,removeSets:()=>rR,removeThemeFromSet:()=>xR,removeThemeFromSetFinished:()=>wR,renameSet:()=>lR,resetSetsList:()=>nR,searchPlugins:()=>TR,searchPluginsFinished:()=>IR,searchThemes:()=>PR,searchThemesFinished:()=>DR,setPluginActivationState:()=>gR,setThemeActivationState:()=>fR,uploadPlugin:()=>_R,uploadPluginFinished:()=>AR,uploadTheme:()=>jR,uploadThemeFinished:()=>kR});var h={};r.r(h),r.d(h,{acceptFingerprint:()=>pU,addServer:()=>fU,addServerFinished:()=>SU,addServerFinishedWithError:()=>wU,addServerStarted:()=>bU,addServerToList:()=>vU,detachServers:()=>uU,disableBetaDialog:()=>_U,getServer:()=>dU,getServersList:()=>AU,refreshInstancesLog:()=>jU,resetInstancesLog:()=>IU,resetServersList:()=>xU,scanServers:()=>hU,scanServersFinished:()=>gU,setInstancesLog:()=>CU,updateServerInList:()=>yU});var m={};r.r(m),r.d(m,{getAvailable:()=>rF,install:()=>lF,uploadAndInstallAssetToSingleInstance:()=>dF,uploadAndInstallAssetToSingleInstanceFinished:()=>mF,uploadAndInstallAssetToSingleInstanceFinishedWithError:()=>hF,uploadAndInstallAssetToSingleInstanceStarted:()=>pF});var g={};r.r(g),r.d(g,{getSyncSettings:()=>wV,syncFinished:()=>_V,syncInstance:()=>AV,syncStarted:()=>xV});var f={};r.r(f),r.d(f,{cloneFinished:()=>bq,cloneInstallation:()=>fq,cloneStarted:()=>gq,getCloneStub:()=>vq,validateClonePath:()=>mq});var b=r(58168);function v(e){return"/"===e.charAt(0)}function y(e,t){for(var n=t,s=n+1,a=e.length;s<a;n+=1,s+=1)e[n]=e[s];e.pop()}const S=function(e,t){if(!e)throw new Error("Invariant failed")};function w(e){return"/"===e.charAt(0)?e:"/"+e}function x(e){return"/"===e.charAt(0)?e.substr(1):e}function A(e){var t=e.pathname,n=e.search,s=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),s&&"#"!==s&&(a+="#"===s.charAt(0)?s:"#"+s),a}function _(e,t,n,s){var a;"string"==typeof e?(a=function(e){var t=e||"/",n="",s="",a=t.indexOf("#");-1!==a&&(s=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===s?"":s}}(e),a.state=t):(void 0===(a=(0,b.A)({},e)).pathname&&(a.pathname=""),a.search?"?"!==a.search.charAt(0)&&(a.search="?"+a.search):a.search="",a.hash?"#"!==a.hash.charAt(0)&&(a.hash="#"+a.hash):a.hash="",void 0!==t&&void 0===a.state&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(a.key=n),s?a.pathname?"/"!==a.pathname.charAt(0)&&(a.pathname=function(e,t){void 0===t&&(t="");var n,s=e&&e.split("/")||[],a=t&&t.split("/")||[],i=e&&v(e),r=t&&v(t),o=i||r;if(e&&v(e)?a=s:s.length&&(a.pop(),a=a.concat(s)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var c=0,u=a.length;u>=0;u--){var d=a[u];"."===d?y(a,u):".."===d?(y(a,u),c++):c&&(y(a,u),c--)}if(!o)for(;c--;c)a.unshift("..");!o||""===a[0]||a[0]&&v(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p}(a.pathname,s.pathname)):a.pathname=s.pathname:a.pathname||(a.pathname="/"),a}var k=!("undefined"==typeof window||!window.document||!window.document.createElement);function j(e,t){t(window.confirm(e))}var C="hashchange",I={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+x(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:x,decodePath:w},slash:{encodePath:w,decodePath:w}};function T(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function D(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function P(e){window.location.replace(T(window.location.href)+"#"+e)}function O(e){void 0===e&&(e={}),k||S(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),s=n.getUserConfirmation,a=void 0===s?j:s,i=n.hashType,r=void 0===i?"slash":i,o=e.basename?function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}(w(e.basename)):"",l=I[r],c=l.encodePath,u=l.decodePath;function d(){var e=u(D());return o&&(e=function(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}(e,o)),_(e)}var p,h,m=(p=null,h=[],{setPrompt:function(e){return p=e,function(){p===e&&(p=null)}},confirmTransitionTo:function(e,t,n,s){if(null!=p){var a="function"==typeof p?p(e,t):p;"string"==typeof a?"function"==typeof n?n(a,s):s(!0):s(!1!==a)}else s(!0)},appendListener:function(e){var t=!0;function n(){t&&e.apply(void 0,arguments)}return h.push(n),function(){t=!1,h=h.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];h.forEach((function(e){return e.apply(void 0,t)}))}});function g(e){(0,b.A)(F,e),F.length=t.length,m.notifyListeners(F.location,F.action)}var f=!1,v=null;function y(){var e,t,n=D(),s=c(n);if(n!==s)P(s);else{var i=d(),r=F.location;if(!f&&(t=i,(e=r).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(v===A(i))return;v=null,function(e){if(f)f=!1,g();else{m.confirmTransitionTo(e,"POP",a,(function(t){t?g({action:"POP",location:e}):function(e){var t=F.location,n=M.lastIndexOf(A(t));-1===n&&(n=0);var s=M.lastIndexOf(A(e));-1===s&&(s=0);var a=n-s;a&&(f=!0,E(a))}(e)}))}}(i)}}var x=D(),O=c(x);x!==O&&P(O);var L=d(),M=[A(L)];function E(e){t.go(e)}var R=0;function U(e){1===(R+=e)&&1===e?window.addEventListener(C,y):0===R&&window.removeEventListener(C,y)}var N=!1,F={length:t.length,action:"POP",location:L,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=T(window.location.href)),n+"#"+c(o+A(e))},push:function(e,t){var n="PUSH",s=_(e,void 0,void 0,F.location);m.confirmTransitionTo(s,n,a,(function(e){if(e){var t=A(s),a=c(o+t);if(D()!==a){v=t,function(e){window.location.hash=e}(a);var i=M.lastIndexOf(A(F.location)),r=M.slice(0,i+1);r.push(t),M=r,g({action:n,location:s})}else g()}}))},replace:function(e,t){var n="REPLACE",s=_(e,void 0,void 0,F.location);m.confirmTransitionTo(s,n,a,(function(e){if(e){var t=A(s),a=c(o+t);D()!==a&&(v=t,P(a));var i=M.indexOf(A(F.location));-1!==i&&(M[i]=t),g({action:n,location:s})}}))},go:E,goBack:function(){E(-1)},goForward:function(){E(1)},block:function(e){void 0===e&&(e=!1);var t=m.setPrompt(e);return N||(U(1),N=!0),function(){return N&&(N=!1,U(-1)),t()}},listen:function(e){var t=m.appendListener(e);return U(1),function(){U(-1),t()}}};return F}var L=r(74848),M=r(38338),E=r.n(M),R=r(96540),U=r.t(R,2),N=r(46942),F=r.n(N),B=r(54280),Y=r(64467);const H=e=>"object"==typeof e&&null!=e&&1===e.nodeType,V=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,W=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return V(n.overflowY,t)||V(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},$=(e,t,n,s,a,i,r,o)=>i<e&&r>t||i>e&&r<t?0:i<=e&&o<=n||r>=t&&o>=n?i-e-s:r>t&&o<n||i<e&&o>n?r-t+a:0,z=e=>e.parentElement??(e.getRootNode().host||null),q=(e,t)=>{var n,s,a,i;if("undefined"==typeof document)return[];const{scrollMode:r,block:o,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!H(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,h=[];let m=e;for(;H(m)&&d(m);){if(m=z(m),m===p){h.push(m);break}null!=m&&m===document.body&&W(m)&&!W(document.documentElement)||null!=m&&W(m,u)&&h.push(m)}const g=null!=(s=null==(n=window.visualViewport)?void 0:n.width)?s:innerWidth,f=null!=(i=null==(a=window.visualViewport)?void 0:a.height)?i:innerHeight,{scrollX:b,scrollY:v}=window,{height:y,width:S,top:w,right:x,bottom:A,left:_}=e.getBoundingClientRect(),{top:k,right:j,bottom:C,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let T="start"===o||"nearest"===o?w-k:"end"===o?A+C:w+y/2-k+C,D="center"===l?_+S/2-I+j:"end"===l?x+j:_-I;const P=[];for(let e=0;e<h.length;e++){const t=h[e],{height:n,width:s,top:a,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===r&&w>=0&&_>=0&&A<=f&&x<=g&&(t===p&&!W(t)||w>=a&&A<=c&&_>=u&&x<=i))return P;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),k=parseInt(d.borderTopWidth,10),j=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let I=0,O=0;const L="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-j:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-k-C:0,E="offsetWidth"in t?0===t.offsetWidth?0:s/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)I="start"===o?T:"end"===o?T-f:"nearest"===o?$(v,v+f,f,k,C,v+T,v+T+y,y):T-f/2,O="start"===l?D:"center"===l?D-g/2:"end"===l?D-g:$(b,b+g,g,m,j,b+D,b+D+S,S),I=Math.max(0,I+v),O=Math.max(0,O+b);else{I="start"===o?T-a-k:"end"===o?T-c+C+M:"nearest"===o?$(a,c,n,k,C+M,T,T+y,y):T-(a+n/2)+M/2,O="start"===l?D-u-m:"center"===l?D-(u+s/2)+L/2:"end"===l?D-i+j+L:$(u,i,s,m,j+L,D,D+S,S);const{scrollLeft:e,scrollTop:r}=t;I=0===R?0:Math.max(0,Math.min(r+I/R,t.scrollHeight-n/R+M)),O=0===E?0:Math.max(0,Math.min(e+O/E,t.scrollWidth-s/E+L)),T+=r-I,D+=e-O}P.push({el:t,top:I,left:O})}return P};const G=(e,...t)=>{"function"==typeof e&&e(...t)},K=(e,t)=>(...n)=>{G(e,...n),G(t,...n)},Q=e=>{const{target:t,currentTarget:n}=e;if(!1===(t instanceof HTMLElement&&n.contains(t)))return!0;if(t instanceof HTMLElement&&t.hasAttribute("disabled"))return!1;let s=t;for(;s&&s!==n;){if(!(s instanceof HTMLElement))return!0;switch(s.nodeName){case"A":case"INPUT":case"BUTTON":case"LABEL":return!0}if("button"===s.getAttribute("role"))return!0;s=s.parentNode}return!1},J=e=>{const t=t=>e(t);return(0,L.jsx)(t,{})},X=(e,t)=>function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(q(e,t));const s="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:a,top:i,left:r}of q(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=r-n.left+n.right;a.scroll({top:e,left:t,behavior:s})}}(e,{block:"center",behavior:"smooth",...t});class Z{constructor(){(0,Y.A)(this,"listeners",{})}on(e,t){void 0===this.listeners[e]&&(this.listeners[e]=[]),this.listeners[e].push(t)}emit(e,...t){const n=this.listeners[e];n&&n.forEach((e=>{"function"==typeof e&&e(...t)}))}}const ee=(e,t=()=>!0,n=(()=>({getNext:(e,t)=>{const n=e.children,s=Array.prototype.indexOf.call(n,t);if(-1!==s)return n[s+1]},getPrev:(e,t)=>{const n=e.children,s=Array.prototype.indexOf.call(n,t);if(-1!==s)return n[s-1]},getFirst:e=>e.firstElementChild,getLast:e=>e.lastElementChild}))())=>{const s=e=>!!(t(e)&&e instanceof HTMLElement)&&(e.focus(),!0),a=(t=document.activeElement,i=0)=>{if(!e.current)return!1;const o=n.getNext(e.current,t);return!(!o||!s(o)&&!a(o,i))||r(i+1)},i=(t=document.activeElement,a=0)=>{if(!e.current)return!1;const r=n.getPrev(e.current,t);return!(!r||!s(r)&&!i(r,a))||o(a+1)},r=(t=0)=>{if(t>1)return!1;if(!e.current)return!1;const i=n.getFirst(e.current);return!(!i||!s(i)&&!a(i,t))},o=(t=0)=>{if(t>1)return!1;if(!e.current)return!1;const a=n.getLast(e.current);return!(!a||!s(a)&&!i(a,t))};return{focusNext:a,focusPrev:i,focusFirst:r,focusLast:o}},te=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},ne=e=>String(Number(e))===String(e)?`${e}px`:e,se=({existingHandler:e,disabled:t=!1}={})=>K(e,(e=>{t||"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())})),ae=e=>{try{return e.matches(":focus-visible")}catch{}return!1},ie={"i-filter-02":"filter","i-filter-check-mark":"filter-check-mark","i-sliders":"sliders","i-two-sheets-blank":"copy","i-server-refresh":"backup","i-two-arrows-refresh-04":"refresh","i-circle-check-mark":"check-mark-circle","i-check-mark":"check-mark","i-three-dots":"three-dots-horizontal","tree-dots-horizontal":"three-dots-horizontal","i-square-arrow-up-04":"arrow-up-in","i-square-arrow-down-04":"arrow-down-in","i-shield-star":"shield","i-menu":"menu","i-folder-blank-closed-02":"folder-closed","i-arrow-refresh-02":"reload","i-eye-03":"eye-closed","i-www-site-picture-text":"site-page","i-broken-chain":"chain-broken","i-eye-02":"eye","i-arrows-looping-06":"arrows-loop","i-circle-question-mark-02":"question-mark-circle-filled","i-circle-check-mark-02":"check-mark-circle-filled","i-circle-info-02":"info-circle-filled","i-circle-exclamation-mark-02":"exclamation-mark-circle-filled","i-magnifying-glass":"search","i-circle-exclamation-mark":"exclamation-mark-circle","i-cross-mark":"cross-mark","i-plus":"plus","i-circle-question-mark":"question-mark-circle","i-arrow-up-07":"chevron-down","i-arrow-down-07":"chevron-up","i-arrow-right-07":"chevron-right","i-arrow-left-07":"chevron-left","i-arrow-up-06":"arrow-up-tray","i-arrow-down-06":"arrow-down-tray","i-trashcan":"remove","i-four-squares":"four-squares","i-shopping-cart-02":"shopping-cart","i-chain":"chain","i-gear":"gear","i-list":"list","i-pencil":"pencil","i-circle-cross-mark":"clean","i-circle-minus":"minus-circle","i-circle-info":"info-circle","i-folder-blank-open":"folder-open",world:"globe","circle-check-mark":"check-mark-circle","circle-check-mark-filled":"check-mark-circle-filled","circle-exclamation-mark":"exclamation-mark-circle","circle-exclamation-mark-filled":"exclamation-mark-circle-filled","circle-info":"info-circle","circle-info-filled":"info-circle-filled","circle-minus":"minus-circle","circle-question-mark":"question-mark-circle","circle-question-mark-filled":"question-mark-circle-filled",sertificate:"ribbon"},re=r.p+"images/symbols.svg",oe=["advisor","archive","arrow-back","arrow-diagonal-out","arrow-down","arrow-down-circle-filled","arrow-down-in","arrow-down-out","arrow-down-tray","arrow-left","arrow-left-circle-filled","arrow-right","arrow-right-circle-filled","arrow-right-in","arrow-right-out","arrow-up","arrow-up-circle","arrow-up-circle-filled","arrow-up-in","arrow-up-in-cloud","arrow-up-out","arrow-up-tray","arrows-four-directions","arrows-inward","arrows-loop","arrows-opposite","arrows-outward","backup","backup2","bar-chart-vertical","bar-chart-vertical-arrow-up","bar-chart-vertical-lock","bell","book-email","boost","boundary","box-diagonal-bottom-in","box-diagonal-top-in","brush","bug","calendar","calendar-clock","camera","card","card-ribbon","card-row","card-tile","cd","cd-up-in-cloud","chain","chain-broken","chat","check-list","check-mark","check-mark-circle","check-mark-circle-filled","chevron-double-down","chevron-double-up","chevron-down","chevron-left","chevron-right","chevron-up","circle-diagonal","clean","clip","clock","clone","cloud","cloud-checkmark","cloud-crossed","cloud-graph","code","connection","console","console-filled","copy","copy-indicator","cpu","crane","credit-cards","cross-mark","cross-mark-circle","cross-mark-circle-filled","crown-transfer","dashboard","database","database-box","database-filled","database-plus","deploy","docker-filled","dollar","dollar-filled","dot","dot-big","emoticon-confused","emoticon-dead","emoticon-excited","emoticon-happy","emoticon-neutral","emoticon-sad","emoticon-smile","enter","exclamation-mark-circle","exclamation-mark-circle-filled","eye","eye-closed","facebook","facebook-filled","feedback","file","filter","filter-check-mark","fire","flag","flag-filled","flag-globe","floppy-disk","folder-closed","folder-key","folder-network","folder-open","folders-tree","forward-circle-filled","four-squares","gear","git","github","globe","hard-drive","hard-drive-key","hat","hexagons","home","info-circle","info-circle-filled","ip-addresses","joomla","kebab","key","label","label-plus","laravel","lifebuoy","lightbulb","limit","linux","list","list-check-mark","location","lock-closed","lock-closed-check","lock-closed-filled","lock-open","lock-open-cross","lock-open-filled","mail","mail-circle-filled","mail-settings","megaphone","menu","menu-thin","microsoft","minimize","minus","minus-circle","minus-circle-filled","monitoring","monitoring-off","my-little-admin","net","nine-dots","node-js","package","panel","panel-check","panel-eye","panel-key","panel-settings","panels","pause-circle","pencil","pencil-dialog","php","phpmyadmin","pin","pipette","plans","plugins","plus","plus-circle","plus-circle-filled","power","projects","puzzle","python","question-mark-circle","question-mark-circle-filled","ram","react-js","recycle","redirect-circle-filled","refresh","reload","remove","reset","resource","ribbon","rocket","ruby","sand-clock","scan","screen","search","security-check","send","server","servers","share","shield","shield-attention-filled","shield-chain","shield-filled","shopping-cart","sidebar-right-hide","sidebar-right-show","signal-light","site-page","sleep","sliders","square-with-circles","ssl-it","star","star-circle-filled","star-filled","star-half-filled","start","start-circle","start-filled","stop","stop-circle","storage","themes","three-dots-horizontal","three-dots-vertical","tools","transfer","triangle-exclamation-mark","triangle-exclamation-mark-filled","unarchive","user","volume","web","web-plus","web-settings","windows","woocommerce","wordpress","wordpress-minus","zero-circle-filled"],le=["advisor","archive","arrow-back","arrow-diagonal-out","arrow-down","arrow-down-circle-filled","arrow-down-in","arrow-down-out","arrow-down-tray","arrow-left","arrow-left-circle-filled","arrow-right","arrow-right-circle-filled","arrow-right-in","arrow-right-out","arrow-up","arrow-up-circle","arrow-up-circle-filled","arrow-up-in","arrow-up-in-cloud","arrow-up-out","arrow-up-tray","arrows-four-directions","arrows-inward","arrows-loop","arrows-opposite","arrows-outward","backup","backup2","bar-chart-vertical","bar-chart-vertical-arrow-up","bar-chart-vertical-lock","bell","book-email","boost","boundary","box-diagonal-bottom-in","box-diagonal-top-in","brush","bug","calendar","calendar-clock","camera","card","card-ribbon","card-row","card-tile","cd","cd-up-in-cloud","chain","chain-broken","chat","check-list","check-mark","check-mark-circle","check-mark-circle-filled","chevron-double-down","chevron-double-up","chevron-down","chevron-left","chevron-right","chevron-up","circle-diagonal","clean","clip","clock","clone","cloud","cloud-checkmark","cloud-crossed","cloud-graph","code","connection","console","console-filled","copy","copy-indicator","cpu","crane","credit-cards","cross-mark","cross-mark-circle","cross-mark-circle-filled","crown-transfer","dashboard","database","database-box","database-filled","database-plus","deploy","docker-filled","dollar","dollar-filled","dot","dot-big","emoticon-confused","emoticon-dead","emoticon-excited","emoticon-happy","emoticon-neutral","emoticon-sad","emoticon-smile","enter","exclamation-mark-circle","exclamation-mark-circle-filled","eye","eye-closed","facebook","facebook-filled","feedback","file","filter","filter-check-mark","fire","flag","flag-filled","flag-globe","floppy-disk","folder-closed","folder-key","folder-network","folder-open","folders-tree","forward-circle-filled","four-squares","gear","git","github","globe","hard-drive","hard-drive-key","hat","hexagons","home","info-circle","info-circle-filled","ip-addresses","joomla","kebab","key","label","label-plus","laravel","lifebuoy","lightbulb","limit","linux","list","list-check-mark","location","lock-closed","lock-closed-check","lock-closed-filled","lock-open","lock-open-cross","lock-open-filled","mail","mail-circle-filled","mail-settings","megaphone","menu","menu-thin","microsoft","minimize","minus","minus-circle","minus-circle-filled","monitoring","monitoring-off","my-little-admin","net","nine-dots","node-js","package","panel","panel-check","panel-eye","panel-key","panel-settings","panels","pause-circle","pencil","pencil-dialog","php","phpmyadmin","pin","pipette","plans","plugins","plus","plus-circle","plus-circle-filled","power","projects","puzzle","python","question-mark-circle","question-mark-circle-filled","ram","react-js","recycle","redirect-circle-filled","refresh","reload","remove","reset","resource","ribbon","rocket","ruby","sand-clock","scan","screen","search","security-check","send","server","servers","share","shield","shield-attention-filled","shield-chain","shield-filled","shopping-cart","sidebar-right-hide","sidebar-right-show","signal-light","site-page","sleep","sliders","square-with-circles","ssl-it","star","star-circle-filled","star-filled","star-half-filled","start","start-circle","start-filled","stop","stop-circle","storage","themes","three-dots-horizontal","three-dots-vertical","tools","transfer","triangle-exclamation-mark","triangle-exclamation-mark-filled","unarchive","user","volume","web","web-plus","web-settings","windows","woocommerce","wordpress","wordpress-minus","zero-circle-filled"],ce=(0,R.createContext)(!1),ue="12",de="16",pe="24",he="32",me="48",ge="64",fe="96",be="128",ve="192",ye={sm:de,md:he,lg:"48",xl:"64",xxl:"96"},Se=(e,t)=>{let n="16";return"12"!==t&&"24"!==t||-1===oe.indexOf(e)||(n="12"),`${re}#${e}:${n}`},we=({ariaLabel:e,baseClassName:t=`${B.CLS_PREFIX}icon`,className:n,name:s,src:a,size:i,intent:r,animation:o,rotate:l,flipHorizontal:c=!1,flipVertical:u=!1,children:d,alt:p="",...h})=>{const m=i&&ye[i]||i,g=s?ie[s]||s:null;return(0,L.jsx)("span",{className:F()(t,{[`${t}--size-${m}`]:m,[`${t}--intent ${t}--${r}`]:r,[`${t}--animation-${o}`]:o,[`${t}--rotate-${l}`]:l,[`${t}--flip-horizontal`]:c,[`${t}--flip-vertical`]:u,[`${t}--on-dark`]:(0,R.useContext)(ce)},n),...e||h["aria-label"]?{"aria-label":e||h["aria-label"]}:{"aria-hidden":"true"},...h,children:g?(0,L.jsx)("svg",{focusable:"false",children:(0,L.jsx)("use",{href:Se(g,m)})}):a&&(0,L.jsx)("img",{src:a,alt:p})||d})};we.create=(e,t={})=>{if(!e)return e;const n={...t};if("aria-hidden"in t||"aria-label"in t||"ariaLabel"in t||(n["aria-hidden"]="true"),(0,R.isValidElement)(e)){const{className:t,...s}=e.props,a={...n};return Object.keys(s).forEach((e=>{null!==s[e]&&void 0!==s[e]&&(a[e]=s[e])})),(n.className||t)&&(a.className=F()(n.className,t)),(0,R.cloneElement)(e,a)}if("object"==typeof e){const{className:t,...s}=e;return(0,L.jsx)(xe,{...n,className:n.className||t?F()(n.className,t):null,...s})}return(0,L.jsx)(xe,{...n,name:e})};const xe=we,Ae=({baseClassName:e=`${B.CLS_PREFIX}spinner`,className:t,colorAnimation:n=!0,...s})=>(0,L.jsx)("svg",{"aria-hidden":!0,className:F()(e,t,{[`${e}--color-animation`]:n}),...s,viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg",children:(0,L.jsx)("circle",{className:`${e}__path`,fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"24",cy:"24",r:"21"})}),_e=({baseClassName:e=`${B.CLS_PREFIX}action`,component:t="a",icon:n,onClick:s,rightAddon:a,bottomAddon:i,children:r,progress:o=!1,primary:l=!1,nowrap:c=!1,outerProps:u={},...d})=>{const{className:p,component:h="span",...m}=u;n=xe.create(n,{className:`${e}__icon`,size:de});let g=de;(0,R.isValidElement)(n)&&n.props.size&&({size:g}=n.props);const f={...d,onClick:s,className:F()(d.className,`${e}__content`)||void 0};o&&(n=(0,L.jsx)(xe,{size:g,className:`${e}__icon`,children:(0,L.jsx)(Ae,{})}),f.onClick=e=>e.preventDefault(),f.tabIndex=-1),s&&(f.tabIndex=f.tabIndex||0,f.role="button",f.onKeyDown=K(f.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())})));const b=!R.Children.toArray(r).length&&!a&&!i;return(0,L.jsxs)(h,{className:F()(e,{[`${e}--size-${g}`]:n||o,[`${e}--progress`]:o,[`${e}--primary`]:l,[`${e}--nowrap`]:c,[`${e}--icon`]:b},p),...m,children:[(0,L.jsxs)(t,{...f,children:[n,r]}),a?(0,L.jsx)("span",{className:`${e}__right-addon`,children:a}):null,i?(0,L.jsx)("span",{className:`${e}__bottom-addon`,children:i}):null]})};var ke=r(5556),je=r.n(ke);const Ce={"en-US":{language:"en",messages:{Alert:{close:"Close"},Card:{select:"Select",titleLinkTooltip:"Go to page",collapseCardTooltip:"Collapse the card",expandCardTooltip:"Expand the card"},CardList:{loadMore:"Load more",notFound:"No items found.",toolbarSelect:"Select",viewCards:"Cards",viewTiles:"Tiles",viewList:"List",toolbarView:"View"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Leave",cancel:"Go Back",content:"Are you sure you want to close and leave this window? Any data changes you've made won't be saved."},Cuttable:{showMore:"Show more",showLess:"Show less"},Dialog:{closeButton:"Close",cancelButton:"Cancel"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancel"},Dropdown:{close:"Close"},Form:{submitButton:"Save",applyButton:"Apply",cancelButton:"Cancel"},FormField:{clear:"Clear",remove:"Remove",addMore:"Add one more",showDescription:"Show description"},FormFieldPassword:{improvePassword:"To improve your password:",passwordTooShort:"Make the password longer.",lettersLowerCase:"Use at least one lower-case character.",lettersUpperCase:"Use at least one upper-case character.",numbers1:"Use at least one number.",numbers3:"Use at least three numbers.",specialChar1:"Use at least one special character (for example: !, @, #, $, % ,^, &, *, ?, _, ~).",specialChar2:"Use at least two special characters (for example: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Use both upper and lower-case characters.",comboLettersAndNumbers:"Use both numbers and characters.",comboLettersNumbersSpecial:"Use numbers, characters and special characters.",yourPasswordIsStrong:"You can make it even stronger by increasing its length.",passwordStrength:"The password strength is %%strength%%.",strengthVeryStrong:"VERY STRONG",strengthStrong:"STRONG",strengthVeryWeak:"VERY WEAK",strengthWeak:"WEAK",strengthMedium:"MEDIUM",hidePassword:"Hide password",showPassword:"Show password",generateButton:"Generate",copyButtonHint:"Copy password",copySuccessToast:"Password has been copied",generateButtonHint:"Generate a strong password"},InPlaceEdit:{cancelButtonHint:"Discard changes",editButtonHint:"Edit value",okButtonHint:"Save changes"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Choose file..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% items total",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% of %%totalRows%% items selected",all:"All",allItemsOnPageSelected:"All items on the page selected",allItemsSelected:"All items selected",selectAllItems:"Select all items",selectAllItemsOnPage:"Select all items on the page",deselectAll:"Deselect",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Could not find any items matching the filter",emptyTitle:"Looks like there's nothing here",filteredDescription:"Refine your query or remove some of the criteria from the filter and try again."},ListOperation:{cancelButton:"Cancel"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"of %%total%%",itemsPerPage:"Items per page",all:"All",total:"Page %%current%% of %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Close",cancelButton:"Cancel"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"No options",placeholder:"Select..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% of %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Close group"},Toast:{closeButton:"Close"}}},ar:{language:"ar",messages:{Alert:{close:"Close"},Card:{select:"تحديد",titleLinkTooltip:"الانتقال إلى الصفحة",collapseCardTooltip:"طي البطاقة",expandCardTooltip:"توسيع البطاقة"},CardList:{loadMore:"تحميل المزيد",notFound:"لم يُعثر على أي عناصر.",toolbarSelect:"تحديد",viewCards:"البطاقات",viewTiles:"الإطارات المتجانبة",viewList:"القائمة",toolbarView:"العرض"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"المغادرة",cancel:"العودة",content:"هل تريد بالتأكيد إغلاق هذه النافذة ومغادرتها؟ لن تُحفظ أي تغييرات أجريتها على البيانات."},Cuttable:{showMore:"إظهار المزيد",showLess:"إظهار أقل"},Dialog:{closeButton:"Close",cancelButton:"الإلغاء"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"الإلغاء"},Dropdown:{close:"الإغلاق"},Form:{submitButton:"الحفظ",applyButton:"التطبيق",cancelButton:"الإلغاء"},FormField:{clear:"مسح التحديد",remove:"الإزالة",addMore:"إضافة حقل إدخال آخر",showDescription:"Show description"},FormFieldPassword:{improvePassword:"لتحسين كلمة مرورك:",passwordTooShort:"اجعل كلمة المرور أطول.",lettersLowerCase:"استخدم حرفًا واحدًا صغيرًا على الأقل.",lettersUpperCase:"استخدم حرفًا واحدًا كبيرًا على الأقل.",numbers1:"استخدم رقمًا واحدًا على الأقل.",numbers3:"استخدم ثلاثة أرقام على الأقل.",specialChar1:"استخدم حرفًا خاصًا واحدًا على الأقل (على سبيل المثال: !، @، #، $، %، ^، &، *، ؟، _، ~).",specialChar2:"استخدم حرفين خاصين على الأقل (على سبيل المثال: !، @، #، $، %، ^، &، *، ؟، _، ~).",comboUpperAndLower:"استخدم كلاً من الأحرف الكبيرة والصغيرة.",comboLettersAndNumbers:"استخدم كلاً من الأرقام والأحرف.",comboLettersNumbersSpecial:"استخدم الأرقام والأحرف والأحرف الخاصة.",yourPasswordIsStrong:"يمكنك جعلها أقوى عن طريق زيادة طولها.",passwordStrength:"قوة كلمة المرور %%strength%%.",strengthVeryStrong:"قوية جدًا",strengthStrong:"قوية",strengthVeryWeak:"ضعيفة جدًا",strengthWeak:"ضعيفة",strengthMedium:"متوسطة",hidePassword:"إخفاء كلمة المرور",showPassword:"إظهار كلمة المرور",generateButton:"الإنشاء",copyButtonHint:"نسخ كلمة المرور",copySuccessToast:"تم نسخ كلمة المرور",generateButtonHint:"إنشاء كلمة مرور قوية"},InPlaceEdit:{cancelButtonHint:"تجاهل التغييرات",editButtonHint:"تحرير القيمة",okButtonHint:"حفظ التغييرات"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"اختيار ملف..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% عناصر إجمالًا",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"تم تحديد %%selectedRows%% عناصر من أصل %%totalRows%%",all:"الكل",allItemsOnPageSelected:"تم تحديد جميع العناصر الموجودة في الصفحة",allItemsSelected:"تم تحديد جميع العناصر",selectAllItems:"تحديد جميع العناصر",selectAllItemsOnPage:"تحديد جميع العناصر الموجودة في الصفحة",deselectAll:"إلغاء التحديد",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"تعذر العثور على أي عناصر مطابقة لعامل التصفية",emptyTitle:"يبدو أنه لا يوجد شيء هنا",filteredDescription:"عليك تحسين استعلامك أو إزالة بعض المعايير من عامل التصفية ثم المحاولة مرة أخرى."},ListOperation:{cancelButton:"الإلغاء"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"من %%total%%",itemsPerPage:"عدد العناصر في كل صفحة",all:"الكل",total:"صفحة %%current%% من %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"الإغلاق",cancelButton:"الإلغاء"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"لا توجد خيارات",placeholder:"تحديد..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% من %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"إغلاق المجموعة"},Toast:{closeButton:"Close"}}},"ca-ES":{language:"ca",messages:{Alert:{close:"Close"},Card:{select:"Seleccionar",titleLinkTooltip:"Anar a la pàgina",collapseCardTooltip:"Contraure la targeta",expandCardTooltip:"Expandir la targeta"},CardList:{loadMore:"Carregar-ne més",notFound:"No s'ha trobat cap element.",toolbarSelect:"Seleccionar",viewCards:"Targetes",viewTiles:"Mosaic",viewList:"Llista",toolbarView:"Vista"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Sortir",cancel:"Tornar",content:"Segur que vol tancar la finestra? No es desaran els canvis."},Cuttable:{showMore:"Mostrar-ne més",showLess:"Mostrar-ne menys"},Dialog:{closeButton:"Close",cancelButton:"Cancel·lar"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancel·lar"},Dropdown:{close:"Tancar"},Form:{submitButton:"Desar",applyButton:"Aplicar",cancelButton:"Cancel·lar"},FormField:{clear:"Esborrar",remove:"Eliminar",addMore:"Afegir-ne un altre",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Per millorar la seva contrasenya:",passwordTooShort:"Augmenti la longitud de la contrasenya.",lettersLowerCase:"Utilitzi almenys un caràcter en minúscula.",lettersUpperCase:"Utilitzi almenys un caràcter en majúscula.",numbers1:"Utilitzi almenys un número.",numbers3:"Utilitzi almenys tres números.",specialChar1:"Utilitzi almenys un caràcter especial (per exemple: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Utilitzi almenys dos caràcters especials (per exemple: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Utilitzi caràcters tant en majúscules com en minúscules.",comboLettersAndNumbers:"Utilitzi tant números com lletres.",comboLettersNumbersSpecial:"Utilitzi números, lletres i caràcters especials.",yourPasswordIsStrong:"Pot fer-la encara més segura augmentant-ne la longitud.",passwordStrength:"Seguretat de la contrasenya: %%strength%%.",strengthVeryStrong:"MOLT SEGURA",strengthStrong:"SEGURA",strengthVeryWeak:"MOLT POC SEGURA",strengthWeak:"POC SEGURA",strengthMedium:"MITJANA",hidePassword:"Ocultar la contrasenya",showPassword:"Mostrar la contrasenya",generateButton:"Generar",copyButtonHint:"Copiï la contrasenya",copySuccessToast:"S'ha copiat la contrasenya",generateButtonHint:"Generi una contrasenya segura"},InPlaceEdit:{cancelButtonHint:"Descarti els canvis",editButtonHint:"Editi el valor",okButtonHint:"Desi els canvis"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Seleccionar un arxiu..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Elements en total: %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Elements seleccionats: %%selectedRows%% de %%totalRows%%",all:"tots",allItemsOnPageSelected:"Tots els elements de la pàgina seleccionats",allItemsSelected:"Tots els elements seleccionats",selectAllItems:"Seleccionar tots els elements",selectAllItemsOnPage:"Seleccionar tots els elements de la pàgina",deselectAll:"Deseleccionar",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"No s'ha trobat cap element que coincideixi amb el filtre",emptyTitle:"Sembla que aquí no hi ha res",filteredDescription:"Restringeixi la seva consulta o elimini alguns dels criteris del filtre i torni-ho a provar."},ListOperation:{cancelButton:"Cancel·lar"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"de %%total%%",itemsPerPage:"Elements per pàgina",all:"Tot",total:"Pàgina %%current%% de %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Tancar",cancelButton:"Cancel·lar"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"No hi ha opcions",placeholder:"Seleccionar..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% de %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Tancar el grup"},Toast:{closeButton:"Close"}}},"cs-CZ":{language:"cs",messages:{Alert:{close:"Close"},Card:{select:"Vybrat",titleLinkTooltip:"Přejít na stránku",collapseCardTooltip:"Sbalit kartu",expandCardTooltip:"Rozbalit kartu"},CardList:{loadMore:"Načíst další",notFound:"Nebyly nalezeny žádné položky.",toolbarSelect:"Vybrat",viewCards:"Karty",viewTiles:"Dlaždice",viewList:"Seznam",toolbarView:"Zobrazení"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Opustit",cancel:"Zpět",content:"Určitě chcete toto okno zavřít? Pokud jste provedli jakékoliv změny, neuloží se."},Cuttable:{showMore:"Zobrazit více",showLess:"Zobrazit méně"},Dialog:{closeButton:"Close",cancelButton:"Zrušit"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Zrušit"},Dropdown:{close:"Zavřít"},Form:{submitButton:"Uložit",applyButton:"Použít",cancelButton:"Zrušit"},FormField:{clear:"Vymazat",remove:"Odebrat",addMore:"Přidat další",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Jak vylepšit heslo:",passwordTooShort:"Použijte delší heslo.",lettersLowerCase:"Použijte alespoň jedno malé písmeno.",lettersUpperCase:"Použijte alespoň jedno velké písmeno.",numbers1:"Použijte alespoň jedno číslo.",numbers3:"Použijte alespoň tři čísla.",specialChar1:"Použijte alespoň jeden speciální znak (například: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Použijte alespoň dva speciální znaky (například: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Použijte velká i malá písmena.",comboLettersAndNumbers:"Použijte kombinaci čísel a písmen.",comboLettersNumbersSpecial:"Použijte kombinaci čísel, písmen a speciálních znaků.",yourPasswordIsStrong:"Sílu hesla ještě vylepšíte tím, že použijete delší heslo.",passwordStrength:"Síla hesla: %%strength%%.",strengthVeryStrong:"VELMI SILNÉ",strengthStrong:"SILNÉ",strengthVeryWeak:"VELMI SLABÉ",strengthWeak:"SLABÉ",strengthMedium:"STŘEDNÍ",hidePassword:"Skrýt heslo",showPassword:"Ukázat heslo",generateButton:"Vygenerovat",copyButtonHint:"Kopírovat heslo",copySuccessToast:"Heslo zkopírováno",generateButtonHint:"Vygenerovat silné heslo"},InPlaceEdit:{cancelButtonHint:"Zahodit změny",editButtonHint:"Upravit hodnotu",okButtonHint:"Uložit změny"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Vybrat soubor..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Celkem položek: %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Vybráno položek: %%selectedRows%% z %%totalRows%%",all:"všechny",allItemsOnPageSelected:"Vybrány všechny položky na stránce",allItemsSelected:"Vybrány všechny položky",selectAllItems:"Vybrat všechny položky",selectAllItemsOnPage:"Vybrat všechny položky na stránce",deselectAll:"Zrušit výběr",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Nepodařilo se najít žádné položky odpovídající filtru",emptyTitle:"Zdá se, že tady nic není",filteredDescription:"Upřesněte dotaz nebo odstraňte část kritérií z filtru a zkuste to znovu."},ListOperation:{cancelButton:"Zrušit"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"z %%total%%",itemsPerPage:"Položek na stránku",all:"Všechny",total:"Stránka %%current%% z %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Zavřít",cancelButton:"Zrušit"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Žádné možnosti",placeholder:"Vybrat..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% z %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Zavřít skupinu"},Toast:{closeButton:"Close"}}},"da-DK":{language:"da",messages:{Alert:{close:"Close"},Card:{select:"Vælg",titleLinkTooltip:"Gå til side",collapseCardTooltip:"Skjul kortet",expandCardTooltip:"Udvid kortet"},CardList:{loadMore:"Indlæs mere",notFound:"Ingen ellemter fundet.",toolbarSelect:"Vælg",viewCards:"Kort",viewTiles:"Felter",viewList:"Liste",toolbarView:"Vis"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Afslut",cancel:"Gå tilbage",content:"Er du sikker på, at du vil lukke og afslutte vinduet? Dine dataændringer vil ikke blive gemt."},Cuttable:{showMore:"Vis mere",showLess:"Vis mindre"},Dialog:{closeButton:"Close",cancelButton:"Annuller"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Annuller"},Dropdown:{close:"Luk"},Form:{submitButton:"Gem",applyButton:"Anvend",cancelButton:"Annuller"},FormField:{clear:"Ryd",remove:"Fjern",addMore:"Tilføj en mere",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Sådan forbedrer du din adgangskode:",passwordTooShort:"Gør adgangskoden længere.",lettersLowerCase:"Brug mindst ét lille bogstav.",lettersUpperCase:"Brug mindst ét stort bogstav.",numbers1:"Brug mindst ét tal.",numbers3:"Brug mindst tre tal.",specialChar1:"Brug mindst ét specialtegn (f. eks.: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Brug mindst to specialtegn (f. eks.: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Brug både store og små bogstaver.",comboLettersAndNumbers:"Brug både tal og bogstaver.",comboLettersNumbersSpecial:"Brug tal, bogstaver og specialtegn.",yourPasswordIsStrong:"Du kan gøre den endnu stærkere ved at øge længden.",passwordStrength:"Adgangskodens styrke er %%strength%%.",strengthVeryStrong:"MEGET STÆRK",strengthStrong:"STÆRK",strengthVeryWeak:"MEGET SVAG",strengthWeak:"SVAG",strengthMedium:"MIDDEL",hidePassword:"Skjul adgangskode",showPassword:"Vis adgangskode",generateButton:"Generer",copyButtonHint:"Kopiér adgangskode",copySuccessToast:"Adgangskode kopieret",generateButtonHint:"Generer en stærk adgangskode"},InPlaceEdit:{cancelButtonHint:"Kassér ændringer",editButtonHint:"Rediger værdi",okButtonHint:"Gem ændringer"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Vælg fil..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% elementer i alt",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% af %%totalRows%% elementer valgt",all:"Alle",allItemsOnPageSelected:"Alle elementer på siden er valgt",allItemsSelected:"Alle elementer er valgt",selectAllItems:"Vælg alle elementer",selectAllItemsOnPage:"Vælg alle elementer på siden",deselectAll:"Fravælg",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Kunne ikke finde nogen elementer, der matcher filteret",emptyTitle:"Det ser ud til, at der ikke er noget her",filteredDescription:"Afgræns din forespørgsel, eller fjern nogle af kriterierne fra filteret, og prøv igen."},ListOperation:{cancelButton:"Annuller"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"af %%total%%",itemsPerPage:"Elementer pr. side",all:"Alle",total:"Side %%current%% af %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Luk",cancelButton:"Annuller"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Intet alternativ",placeholder:"Vælg..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% af %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Luk gruppe"},Toast:{closeButton:"Close"}}},"de-DE":{language:"de",messages:{Alert:{close:"Close"},Card:{select:"Auswählen",titleLinkTooltip:"Seite öffnen",collapseCardTooltip:"Karte minimieren",expandCardTooltip:"Karte maximieren"},CardList:{loadMore:"Mehr anzeigen",notFound:"Keine Elemente gefunden.",toolbarSelect:"Auswählen",viewCards:"Karten",viewTiles:"Kacheln",viewList:"Liste",toolbarView:"Ansicht"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Schließen",cancel:"Zurück",content:"Sind Sie sicher, dass Sie dieses Fenster schließen wollen? Ihre Änderungen werden nicht übernommen."},Cuttable:{showMore:"Mehr anzeigen",showLess:"Weniger anzeigen"},Dialog:{closeButton:"Close",cancelButton:"Abbrechen"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Abbrechen"},Dropdown:{close:"Schließen"},Form:{submitButton:"Speichern",applyButton:"Anwenden",cancelButton:"Abbrechen"},FormField:{clear:"Löschen",remove:"Entfernen",addMore:"Weiteres Element hinzufügen",showDescription:"Show description"},FormFieldPassword:{improvePassword:"So erhöhen Sie die Sicherheit Ihres Passworts:",passwordTooShort:"Verwenden Sie ein längeres Passwort.",lettersLowerCase:"Verwenden Sie mindestens einen Kleinbuchstaben.",lettersUpperCase:"Verwenden Sie mindestens einen Großbuchstaben.",numbers1:"Verwenden Sie mindestens eine Ziffer.",numbers3:"Verwenden Sie mindestens drei Ziffern.",specialChar1:"Verwenden Sie mindestens ein Sonderzeichen (zum Beispiel: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Verwenden Sie mindestens zwei Sonderzeichen (zum Beispiel: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Verwenden Sie sowohl Groß- als auch Kleinbuchstaben.",comboLettersAndNumbers:"Verwenden Sie sowohl Ziffern als auch Zeichen.",comboLettersNumbersSpecial:"Verwenden Sie sowohl Ziffern, Zeichen als auch Sonderzeichen.",yourPasswordIsStrong:"Je länger das Passwort ist, umso sicherer ist es.",passwordStrength:"Passwortsicherheit: %%strength%%.",strengthVeryStrong:"SEHR SICHER",strengthStrong:"SICHER",strengthVeryWeak:"SEHR SCHWACH",strengthWeak:"SCHWACH",strengthMedium:"MITTEL",hidePassword:"Passwort ausblenden",showPassword:"Passwort einblenden",generateButton:"Erstellen",copyButtonHint:"Passwort kopieren",copySuccessToast:"Passwort wurde kopiert",generateButtonHint:"Sicheres Passwort erstellen"},InPlaceEdit:{cancelButtonHint:"Änderungen verwerfen",editButtonHint:"Wert bearbeiten",okButtonHint:"Änderungen speichern"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Datei auswählen..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% Elemente insgesamt",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% von %%totalRows%% Elementen ausgewählt",all:"Alle",allItemsOnPageSelected:"Alle Elemente auf der Seite ausgewählt",allItemsSelected:"Alle Elemente ausgewählt",selectAllItems:"Alle Elemente auswählen",selectAllItemsOnPage:"Alle Elemente auf der Seite auswählen",deselectAll:"Auswahl aufheben",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Keine mit dem Filter übereinstimmende Elemente gefunden",emptyTitle:"Keine Elemente vorhanden",filteredDescription:"Passen Sie Ihre Anfrage an oder entfernen Sie einige der Filterkriterien und versuchen Sie es erneut."},ListOperation:{cancelButton:"Abbrechen"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"von %%total%%",itemsPerPage:"Elemente pro Seite",all:"Alle",total:"Seite %%current%% von %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Schließen",cancelButton:"Abbrechen"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Keine Optionen",placeholder:"Auswählen..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% von %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Gruppe schließen"},Toast:{closeButton:"Close"}}},"el-GR":{language:"el",messages:{Alert:{close:"Close"},Card:{select:"Επιλογή",titleLinkTooltip:"Μετάβαση στη σελίδα",collapseCardTooltip:"Σύμπτυξη κάρτας",expandCardTooltip:"Ανάπτυξη κάρτας"},CardList:{loadMore:"Φόρτωση περισσότερων",notFound:"Δεν βρέθηκαν στοιχεία.",toolbarSelect:"Επιλογή",viewCards:"Κάρτες",viewTiles:"Πλακίδια",viewList:"Λίστα",toolbarView:"Προβολή"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Έξοδος",cancel:"Επιστροφή",content:"Θέλετε σίγουρα να κλείσετε αυτό το παράθυρο; Δεν θα είναι δυνατή η αποθήκευση τυχόν αλλαγών σε δεδομένα."},Cuttable:{showMore:"Εμφάνιση περισσότερων",showLess:"Εμφάνιση λιγότερων"},Dialog:{closeButton:"Close",cancelButton:"Ακύρωση"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Ακύρωση"},Dropdown:{close:"Κλείσιμο"},Form:{submitButton:"Αποθήκευση",applyButton:"Εφαρμογή",cancelButton:"Ακύρωση"},FormField:{clear:"Απαλοιφή",remove:"Κατάργηση",addMore:"Προσθήκη επιπλέον στοιχείου",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Για να βελτιώσετε τον κωδικό πρόσβασής σας:",passwordTooShort:"Αυξήστε το μήκος του κωδικού πρόσβασης.",lettersLowerCase:"Χρησιμοποιήστε τουλάχιστον έναν πεζό χαρακτήρα.",lettersUpperCase:"Χρησιμοποιήστε τουλάχιστον έναν κεφαλαίο χαρακτήρα.",numbers1:"Χρησιμοποιήστε τουλάχιστον έναν αριθμό.",numbers3:"Χρησιμοποιήστε τουλάχιστον τρεις αριθμούς.",specialChar1:"Χρησιμοποιήστε τουλάχιστον έναν ειδικό χαρακτήρα (για παράδειγμα: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Χρησιμοποιήστε τουλάχιστον δύο ειδικούς χαρακτήρες (για παράδειγμα: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Χρησιμοποιήστε κεφαλαίους και πεζούς χαρακτήρες.",comboLettersAndNumbers:"Χρησιμοποιήστε αριθμούς και χαρακτήρες.",comboLettersNumbersSpecial:"Χρησιμοποιήστε αριθμούς, χαρακτήρες και ειδικούς χαρακτήρες.",yourPasswordIsStrong:"Μπορείτε να κάνετε τον κωδικό πρόσβασης πιο ισχυρό αυξάνοντας το μήκος του.",passwordStrength:"Ισχύς κωδικού πρόσβασης: %%strength%%.",strengthVeryStrong:"ΠΟΛΥ ΙΣΧΥΡΟΣ",strengthStrong:"ΙΣΧΥΡΟΣ",strengthVeryWeak:"ΠΟΛΥ ΑΔΥΝΑΜΟΣ",strengthWeak:"ΑΔΥΝΑΜΟΣ",strengthMedium:"ΜΕΤΡΙΟΣ",hidePassword:"Απόκρυψη κωδικού πρόσβασης",showPassword:"Εμφάνιση κωδικού πρόσβασης",generateButton:"Δημιουργία",copyButtonHint:"Αντιγραφή κωδικού πρόσβασης",copySuccessToast:"Ο κωδικός πρόσβασης αντιγράφηκε",generateButtonHint:"Δημιουργία ισχυρού κωδικού πρόσβασης"},InPlaceEdit:{cancelButtonHint:"Απόρριψη αλλαγών",editButtonHint:"Επεξεργασία τιμής",okButtonHint:"Αποθήκευση αλλαγών"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Επιλογή αρχείου..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% στοιχεία συνολικά",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% από %%totalRows%% στοιχεία επιλέχθηκαν",all:"Όλα",allItemsOnPageSelected:"Επιλέχθηκαν όλα τα στοιχεία στη σελίδα",allItemsSelected:"Επιλέχθηκαν όλα τα στοιχεία",selectAllItems:"Επιλογή όλων των στοιχείων",selectAllItemsOnPage:"Επιλογή όλων των στοιχείων στη σελίδα",deselectAll:"Αποεπιλογή",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Δεν ήταν δυνατή η εύρεση στοιχείων που να ταιριάζουν με το φίλτρο",emptyTitle:"Φαίνεται ότι δεν υπάρχει τίποτα εδώ",filteredDescription:"Βελτιστοποιήστε το ερώτημά σας ή αφαιρέστε κάποια από τα κριτήρια από το φίλτρο και δοκιμάστε ξανά."},ListOperation:{cancelButton:"Ακύρωση"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"από %%total%%",itemsPerPage:"Στοιχεία ανά σελίδα",all:"Όλες",total:"Σελίδα %%current%% από %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Κλείσιμο",cancelButton:"Ακύρωση"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Δεν υπάρχουν επιλογές",placeholder:"Επιλογή..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% από %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Κλείσιμο ομάδας"},Toast:{closeButton:"Close"}}},"es-ES":{language:"es",messages:{Alert:{close:"Close"},Card:{select:"Seleccionar",titleLinkTooltip:"Ir a la página",collapseCardTooltip:"Contraer la tarjeta",expandCardTooltip:"Expandir la tarjeta"},CardList:{loadMore:"Cargar más",notFound:"No se ha encontrado ningún elemento.",toolbarSelect:"Seleccionar",viewCards:"Tarjetas",viewTiles:"Mosaico",viewList:"Lista",toolbarView:"Vista"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Salir",cancel:"Volver",content:"¿Seguro que quiere cerrar la ventana? Se perderán los cambios."},Cuttable:{showMore:"Mostrar más",showLess:"Mostrar menos"},Dialog:{closeButton:"Close",cancelButton:"Cancelar"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancelar"},Dropdown:{close:"Cerrar"},Form:{submitButton:"Guardar",applyButton:"Aplicar",cancelButton:"Cancelar"},FormField:{clear:"Borrar",remove:"Eliminar",addMore:"Añadir otro",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Para mejorar su contraseña:",passwordTooShort:"Aumente la longitud de la contraseña.",lettersLowerCase:"Use al menos una letra en minúscula.",lettersUpperCase:"Use al menos una letra en mayúscula.",numbers1:"Use al menos un número.",numbers3:"Use al menos tres números.",specialChar1:"Use al menos un carácter especial (por ejemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Use al menos dos caracteres especiales (por ejemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Use letras en minúsculas y mayúsculas.",comboLettersAndNumbers:"Use números y letras.",comboLettersNumbersSpecial:"Use números, letras y caracteres especiales.",yourPasswordIsStrong:"Puede hacerla aún más segura aumentando su longitud.",passwordStrength:"Seguridad de la contraseña: %%strength%%.",strengthVeryStrong:"MUY SEGURA",strengthStrong:"SEGURA",strengthVeryWeak:"MUY POCO SEGURA",strengthWeak:"POCO SEGURA",strengthMedium:"MEDIANA",hidePassword:"Ocultar contraseña",showPassword:"Mostrar contraseña",generateButton:"Generar",copyButtonHint:"Copie la contraseña",copySuccessToast:"Se ha copiado la contraseña",generateButtonHint:"Genere una contraseña segura"},InPlaceEdit:{cancelButtonHint:"Descarte los cambios",editButtonHint:"Edite el valor",okButtonHint:"Guarde los cambios"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Seleccionar archivo..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Elementos en total: %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Elementos seleccionados: %%selectedRows%% de %%totalRows%%",all:"todos",allItemsOnPageSelected:"Todos los elementos de la página seleccionados",allItemsSelected:"Todos los elementos seleccionados",selectAllItems:"Seleccionar todos los elementos",selectAllItemsOnPage:"Seleccionar todos los elementos de la página",deselectAll:"Deseleccionar",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"No se encontró ningún elemento que coincida con el filtro",emptyTitle:"Parece que aquí no hay nada",filteredDescription:"Restrinja su consulta o elimine algunos de los criterios del filtro e inténtelo de nuevo."},ListOperation:{cancelButton:"Cancelar"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"of %%total%%",itemsPerPage:"Elementos por página",all:"Todo",total:"Página %%current%% de %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Cerrar",cancelButton:"Cancelar"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"No hay opciones",placeholder:"Seleccionar..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% de %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Cerrar grupo"},Toast:{closeButton:"Close"}}},"fi-FI":{language:"fi",messages:{Alert:{close:"Close"},Card:{select:"Valitse",titleLinkTooltip:"Siirry sivulle",collapseCardTooltip:"Sulje kortti",expandCardTooltip:"Laajenna kortti"},CardList:{loadMore:"Lataa lisää",notFound:"Kohteita ei löytynyt.",toolbarSelect:"Valitse",viewCards:"Kortit",viewTiles:"Ruudut",viewList:"Luettelo",toolbarView:"Näytä"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Poistu",cancel:"Palaa takaisin",content:"Haluatko varmasti sulkea ja poistua tästä ikkunasta? Tekemiäsi tietomuutoksia ei tallenneta."},Cuttable:{showMore:"Näytä enemmän",showLess:"Näytä vähemmän"},Dialog:{closeButton:"Close",cancelButton:"Peruuta"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Peruuta"},Dropdown:{close:"Sulje"},Form:{submitButton:"Tallenna",applyButton:"Hyväksy",cancelButton:"Peruuta"},FormField:{clear:"Tyhjennä",remove:"Poista",addMore:"Lisää vielä yksi",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Näin parannat salasanaasi:",passwordTooShort:"Tee salasanasta pitempi.",lettersLowerCase:"Käytä vähintään yhtä pientä kirjainta.",lettersUpperCase:"Käytä vähintään yhtä isoa kirjainta.",numbers1:"Käytä vähintään yhtä numeroa.",numbers3:"Käytä vähintään kolmea numeroa.",specialChar1:"Käytä vähintään yhtä erikoismerkkiä (esim. !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Käytä vähintään kahta erikoismerkkiä (esim. !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Käytä sekä isoja että pieniä kirjaimia.",comboLettersAndNumbers:"Käytä sekä numeroita että kirjaimia.",comboLettersNumbersSpecial:"Käytä numeroita, kirjaimia ja erikoismerkkejä.",yourPasswordIsStrong:"Voit tehdä siitä vielä vahvemman lisäämällä sen pituutta.",passwordStrength:"Salasanan vahvuus on %%strength%%.",strengthVeryStrong:"HYVIN VAHVA",strengthStrong:"VAHVA",strengthVeryWeak:"HYVIN HEIKKO",strengthWeak:"HEIKKO",strengthMedium:"KOHTALAINEN",hidePassword:"Piilota salasana",showPassword:"Näytä salasana",generateButton:"Luo",copyButtonHint:"Kopioi salasana",copySuccessToast:"Salasana kopioitiin",generateButtonHint:"Luo vahva salasana"},InPlaceEdit:{cancelButtonHint:"Hylkää muutokset",editButtonHint:"Muokkaa arvoa",okButtonHint:"Tallenna muutokset"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Valitse tiedosto..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Yhteensä %%totalRows%% kohdetta",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%totalRows%% kohteesta %%selectedRows%% valittu",all:"kaikki",allItemsOnPageSelected:"Kaikki kohteet valittu sivulla",allItemsSelected:"Kaikki kohteet valittu",selectAllItems:"Valitse kaikki kohteet",selectAllItemsOnPage:"Valitse kaikki kohteet sivulla",deselectAll:"Poista valinta",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Suodattimella ei löytynyt kohteita",emptyTitle:"Täällä ei näytä olevan mitään",filteredDescription:"Muokkaa hakua tai poista osa suodattimen kriteereistä ja yritä uudelleen."},ListOperation:{cancelButton:"Peruuta"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"/%%total%%",itemsPerPage:"Kohdetta per sivu",all:"Kaikki",total:"Sivu %%current%%/%%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Sulje",cancelButton:"Peruuta"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Ei vaihtoehtoja",placeholder:"Valitse..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%%/%%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Sulje ryhmä"},Toast:{closeButton:"Close"}}},"fr-FR":{language:"fr",messages:{Alert:{close:"Close"},Card:{select:"Sélectionner",titleLinkTooltip:"Ouvrir la page",collapseCardTooltip:"Réduire la carte",expandCardTooltip:"Étendre la carte"},CardList:{loadMore:"Charger plus",notFound:"Aucun élément trouvé.",toolbarSelect:"Sélectionner",viewCards:"Cartes",viewTiles:"Tuiles",viewList:"Liste",toolbarView:"Vue"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Quitter",cancel:"Revenir",content:"Voulez-vous fermer et quitter cette fenêtre ? Toutes les modifications de vos données seront perdues."},Cuttable:{showMore:"Afficher plus",showLess:"Afficher moins"},Dialog:{closeButton:"Close",cancelButton:"Annuler"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Annuler"},Dropdown:{close:"Fermer"},Form:{submitButton:"Enregistrer",applyButton:"Appliquer",cancelButton:"Annuler"},FormField:{clear:"Effacer",remove:"Supprimer",addMore:"Ajouter un champ",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Pour améliorer votre mot de passe :",passwordTooShort:"Ajoutez des caractères.",lettersLowerCase:"Utilisez au moins une minuscule.",lettersUpperCase:"Utilisez au moins une majuscule.",numbers1:"Utilisez au moins un chiffre.",numbers3:"Utilisez au moins trois chiffres.",specialChar1:"Utilisez au moins un caractère spécial (par exemple : !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Utilisez au moins deux caractères spéciaux (par exemple : !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Utilisez des majuscules et des minuscules.",comboLettersAndNumbers:"Utilisez des nombres et des caractères.",comboLettersNumbersSpecial:"Utilisez des nombres, des caractères et des caractères spéciaux.",yourPasswordIsStrong:"Vous pouvez renforcer la sécurité du mot de passe en utilisant plus de caractères.",passwordStrength:"Sécurité du mot de passe :",strengthVeryStrong:"TRÈS ÉLEVÉE",strengthStrong:"ÉLEVÉE",strengthVeryWeak:"TRÈS FAIBLE",strengthWeak:"FAIBLE",strengthMedium:"MOYENNE",hidePassword:"Masquer le mot de passe",showPassword:"Afficher le mot de passe",generateButton:"Générer",copyButtonHint:"Copier le mot de passe",copySuccessToast:"Le mot de passe a été copié.",generateButtonHint:"Générer un mot de passe fort"},InPlaceEdit:{cancelButtonHint:"Ignorer les modifications",editButtonHint:"Modifier la valeur",okButtonHint:"Enregistrer les modifications"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Choisir le fichier…"},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Total : %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Sélection : %%selectedRows%% sur %%totalRows%%",all:"Tous",allItemsOnPageSelected:"Tous les éléments de la page sont sélectionnés",allItemsSelected:"Tous les éléments sont sélectionnés",selectAllItems:"Sélectionner tous les éléments",selectAllItemsOnPage:"Sélectionner tous les éléments sur la page",deselectAll:"Retirer de la sélection",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Aucun élément ne correspond au filtre",emptyTitle:"Oups, il n'y a rien ici…",filteredDescription:"Ajustez votre demande ou retirez des critères du filtre, puis réessayez."},ListOperation:{cancelButton:"Annuler"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"sur %%total%%",itemsPerPage:"Éléments par page",all:"Tous",total:"Page %%current%% sur %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Fermer",cancelButton:"Annuler"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Aucune option",placeholder:"Sélectionner…"},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% sur %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Fermer le groupe"},Toast:{closeButton:"Close"}}},"he-IL":{language:"he",messages:{Alert:{close:"Close"},Card:{select:"בחירה",titleLinkTooltip:"מעבר לדף",collapseCardTooltip:"צמצום הכרטיס",expandCardTooltip:"הרחבת הכרטיס"},CardList:{loadMore:"לטעון עוד",notFound:"לא נמצאו פריטים.",toolbarSelect:"בחירה",viewCards:"כרטיסים",viewTiles:"אריחים",viewList:"רשימה",toolbarView:"תצוגה"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"יציאה",cancel:"חזרה",content:"בטוחים שאתם רוצים לסגור ולצאת מהחלון הזה? כל השינויים שביצעתם בנתונים לא יישמרו."},Cuttable:{showMore:"להציג עוד",showLess:"להציג פחות"},Dialog:{closeButton:"Close",cancelButton:"ביטול"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"ביטול"},Dropdown:{close:"סגירה"},Form:{submitButton:"שמירה",applyButton:"החלה",cancelButton:"ביטול"},FormField:{clear:"ניקוי",remove:"הסרה",addMore:"הוספת שורה לשדה",showDescription:"Show description"},FormFieldPassword:{improvePassword:"כדי לשפר את הסיסמה:",passwordTooShort:"האריכו את הסיסמה.",lettersLowerCase:"השתמשו לפחות באות קטנה אחת.",lettersUpperCase:"השתמשו לפחות באות גדולה אחת.",numbers1:"השתמשו לפחות בספרה אחת.",numbers3:"השתמשו לפחות ב-3 מספרים.",specialChar1:"השתמשו לפחות בתו מיוחד אחד (למשל: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"השתמשו לפחות בשני תווים מיוחדים (למשל: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"השתמש גם באותיות גדולות וגם באותיות קטנות.",comboLettersAndNumbers:"השתמש גם במספרים וגם בתווים.",comboLettersNumbersSpecial:"השתמש במספרים, בתווים ובתווים מיוחדים.",yourPasswordIsStrong:"כדי להפוך אותה לעוד יותר חזקה, אתם יכולים להאריך אותה.",passwordStrength:"חוזק הסיסמה הוא %%strength%%.",strengthVeryStrong:"חזק מאוד",strengthStrong:"חזק",strengthVeryWeak:"חלש מאוד",strengthWeak:"חלש",strengthMedium:"בינוני",hidePassword:"הסתרת הסיסמה",showPassword:"הצגת הסיסמה",generateButton:"יצירה",copyButtonHint:"העתקת הסיסמה",copySuccessToast:"הסיסמה הועתקה",generateButtonHint:"יצירת סיסמה חזקה"},InPlaceEdit:{cancelButtonHint:"ביטול השינויים",editButtonHint:"עריכת הערך",okButtonHint:"שמירת השינויים"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"בחירת קובץ…"},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% פריטים סך הכול",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% מתוך %%totalRows%% פריטים נבחרו",all:"כל הפריטים",allItemsOnPageSelected:"כל הפריטים בדף נבחרו",allItemsSelected:"כל הפריטים נבחרו",selectAllItems:"בחירת כל הפריטים",selectAllItemsOnPage:"בחירת כל הפריטים בדף",deselectAll:"ביטול הבחירה",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"לא הצלחנו למצוא פריטים שתואמים למסנן",emptyTitle:"נראה שאין שום דבר כאן",filteredDescription:"שפרו את השאילתה או הסירו מהמסנן כמה מהקריטריונים ונסו שוב."},ListOperation:{cancelButton:"ביטול"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"מתוך %%total%%",itemsPerPage:"פריטים בכל דף",all:"הכול",total:"דף %%current%% מתוך %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"סגירה",cancelButton:"ביטול"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"אין אפשרויות לבחירה",placeholder:"בחירה…"},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% מתוך %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"סגירת הקבוצה"},Toast:{closeButton:"Close"}}},"hu-HU":{language:"hu",messages:{Alert:{close:"Close"},Card:{select:"Kiválasztás",titleLinkTooltip:"Ugrás a következő oldalra",collapseCardTooltip:"A kártya összecsukása",expandCardTooltip:"A kártya kibontása"},CardList:{loadMore:"Továbbiak betöltése",notFound:"Nem találhatóak elemek.",toolbarSelect:"Kiválasztás",viewCards:"Kártyák",viewTiles:"Csempék",viewList:"Lista",toolbarView:"Nézet"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Elhagyás",cancel:"Vissza",content:"Biztosan be akarja zárni és el akarja hagyni ezt az ablakot? Nem t6rténik meg az adatváltoztatások mentése."},Cuttable:{showMore:"Több információ megjelenítése",showLess:"Kevesebb megjelenítése"},Dialog:{closeButton:"Close",cancelButton:"Mégse"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Mégse"},Dropdown:{close:"Bezárás"},Form:{submitButton:"Mentés",applyButton:"Alkalmaz",cancelButton:"Mégse"},FormField:{clear:"Törlés",remove:"Eltávolítás",addMore:"Eggyel több hozzáadása",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Jelszava javítása érdekében:",passwordTooShort:"Hosszabbítsa meg a jelszót.",lettersLowerCase:"Legalább egy kisbetűt használjon.",lettersUpperCase:"Legalább egy nagybetűt használjon.",numbers1:"Legalább egy számot használjon.",numbers3:"Legalább három számot használjon.",specialChar1:"Legalább egy speciális karaktert használjon (például: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Legalább két speciális karaktert használjon (például: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Nagy- és kisbetűket használjon.",comboLettersAndNumbers:"Számokat és karaktereket használjon.",comboLettersNumbersSpecial:"Számoka, karaktereket és speciális karaktereket használjon.",yourPasswordIsStrong:"A hossza növelésével még erősebbé teheti.",passwordStrength:"%%strength%% a jelszó erőssége.",strengthVeryStrong:"NAGYON ERŐS",strengthStrong:"ERŐS",strengthVeryWeak:"NAGYON GYENGE",strengthWeak:"GYENGE",strengthMedium:"KÖZEPES",hidePassword:"Jelszó elrejtése",showPassword:"Jelszó megjelenítése",generateButton:"Létrehozás",copyButtonHint:"Jelszó másolása",copySuccessToast:"Megtörtént a jelszó másolása.",generateButtonHint:"Egy erős jelszó létrehozása"},InPlaceEdit:{cancelButtonHint:"Módosítások elvetése",editButtonHint:"Érték szerkesztése",okButtonHint:"Módosítások mentése"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Fájlválasztás folyamatban"},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% elem összesen",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% / %%totalRows%% elem van kiválasztva.",all:"Az összes",allItemsOnPageSelected:"Az oldalon található összes elem kiválasztásra került",allItemsSelected:"Az összes elem kiválasztásra került",selectAllItems:"Az összes elem kiválasztása",selectAllItemsOnPage:"Az oldalon található összes elem kiválasztása",deselectAll:"Kijelölés megszüntetése",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Nem találhatóak a szűrővel egyező elemek.",emptyTitle:"Úgy látszik, hogy semmi sincs itt.",filteredDescription:"Finomítsa a lekérdezést, vagy távolítsa el a szűrőből a kritériumokat, majd próbálja meg újból."},ListOperation:{cancelButton:"Mégse"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"/ %%total%%",itemsPerPage:"Elem oldalanként",all:"Az összes",total:"%%current%% / %%total%% oldal",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Bezárás",cancelButton:"Mégse"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Nincsenek választási lehetőségek.",placeholder:"Kiválasztás folyamatban"},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% / %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Csoport bezárása"},Toast:{closeButton:"Close"}}},"id-ID":{language:"id",messages:{Alert:{close:"Close"},Card:{select:"Pilih",titleLinkTooltip:"Pergi ke halaman",collapseCardTooltip:"Tutup kartu",expandCardTooltip:"Perluas kartu"},CardList:{loadMore:"Muat lebih banyak",notFound:"Tidak ada item yang ditemukan.",toolbarSelect:"Pilih",viewCards:"Kartu",viewTiles:"Ubin",viewList:"Daftar",toolbarView:"Lihat"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Keluar",cancel:"Kembali",content:"Apakah Anda yakin mau menutup dan meninggalkan jendela ini? Semua perubahan data yang Anda lakukan tidak akan disimpan."},Cuttable:{showMore:"Tampilkan lebih banyak",showLess:"Tampilkan lebih sedikit"},Dialog:{closeButton:"Close",cancelButton:"Batalkan"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Batalkan"},Dropdown:{close:"Tutup"},Form:{submitButton:"Simpan",applyButton:"Terapkan",cancelButton:"Batalkan"},FormField:{clear:"Bersihkan",remove:"Hapus",addMore:"Tambahkan satu lagi",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Untuk memperkuat kata sandi Anda:",passwordTooShort:"Buat kata sandi lebih panjang.",lettersLowerCase:"Gunakan sedikitnya satu huruf kecil.",lettersUpperCase:"Gunakan sedikitnya satu huruf besar.",numbers1:"Gunakan sedikitnya satu angka.",numbers3:"Gunakan sedikitnya tiga angka.",specialChar1:"Gunakan sedikitnya satu karakter khusus (sebagai contoh: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Gunakan sedikitnya dua karakter khusus (sebagai contoh: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Gunakan huruf besar dan huruf kecil.",comboLettersAndNumbers:"Gunakan angka dan karakter.",comboLettersNumbersSpecial:"Gunakan angka, karakter, dan karakter khusus.",yourPasswordIsStrong:"Anda dapat membuatnya lebih kuat dengan memperpanjangnya.",passwordStrength:"Kekuatan kata sandi adalah %%strength%%.",strengthVeryStrong:"SANGAT KUAT",strengthStrong:"KUAT",strengthVeryWeak:"SANGAT LEMAH",strengthWeak:"LEMAH",strengthMedium:"SEDANG",hidePassword:"Sembunyikan kata sandi",showPassword:"Tunjukkan kata sandi",generateButton:"Hasilkan",copyButtonHint:"Salin kata sandi",copySuccessToast:"Kata sandi sudah disalin",generateButtonHint:"Hasilkan kata sandi kuat"},InPlaceEdit:{cancelButtonHint:"Buang perubahan",editButtonHint:"Edit nilai",okButtonHint:"Simpan perubahan"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Pilih file..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% total item",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% dari %%totalRows%% item dipilih",all:"Semua",allItemsOnPageSelected:"Semua item di halaman dipilih",allItemsSelected:"Semua item dipilih",selectAllItems:"Pilih semua item",selectAllItemsOnPage:"Pilih semua item di halaman",deselectAll:"Batalkan pilihan",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Tidak dapat menemukan item yang sesuai dengan filter",emptyTitle:"Sepertinya tidak ada apa pun di sini",filteredDescription:"Perbaiki kueri Anda atau hapus beberapa kriteria dari filter dan coba lagi."},ListOperation:{cancelButton:"Batalkan"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"dari %%total%%",itemsPerPage:"Item per halaman",all:"Semua",total:"Halaman %%current%% dari %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Tutup",cancelButton:"Batalkan"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Tidak ada pilihan",placeholder:"Pilih..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% dari %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Tutup grup"},Toast:{closeButton:"Close"}}},"it-IT":{language:"it",messages:{Alert:{close:"Close"},Card:{select:"Seleziona",titleLinkTooltip:"Vai alla pagina",collapseCardTooltip:"Comprimi la scheda",expandCardTooltip:"Espandi la scheda"},CardList:{loadMore:"Carica altro",notFound:"Nessun elemento trovato.",toolbarSelect:"Seleziona",viewCards:"Schede",viewTiles:"Riquadri",viewList:"Lista",toolbarView:"Vista"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Abbandona",cancel:"Indietro",content:"Confermi di voler chiudere e abbandonare questa finestra? Eventuali modifiche apportate non verranno salvate."},Cuttable:{showMore:"Mostra di più",showLess:"Mostra meno"},Dialog:{closeButton:"Close",cancelButton:"Annulla"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Annulla"},Dropdown:{close:"Chiudi"},Form:{submitButton:"Salva",applyButton:"Applica",cancelButton:"Annulla"},FormField:{clear:"Cancella",remove:"Rimuovi",addMore:"Aggiungine un altro",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Per migliorare la password:",passwordTooShort:"Aggiungi caratteri.",lettersLowerCase:"Usa almeno un carattere minuscolo.",lettersUpperCase:"Usa almeno un carattere maiuscolo.",numbers1:"Usa almeno un numero.",numbers3:"Usa almeno tre numeri.",specialChar1:"Usa almeno un carattere speciale (per esempio: !,@,#,$,%,^,&,*,?,_,~).",specialChar2:"Usa almeno due caratteri speciali (per esempio: !,@,#,$,%,^,&,*,?,_,~).",comboUpperAndLower:"Usa caratteri maiuscoli e minuscoli.",comboLettersAndNumbers:"Usa sia numeri che caratteri.",comboLettersNumbersSpecial:"Usa numeri, caratteri e caratteri speciali.",yourPasswordIsStrong:"Puoi renderla ancora più efficace aggiungendo caratteri.",passwordStrength:"La password è %%strength%%.",strengthVeryStrong:"MOLTO EFFICACE",strengthStrong:"EFFICACE",strengthVeryWeak:"MOLTO DEBOLE",strengthWeak:"DEBOLE",strengthMedium:"MEDIA",hidePassword:"Nascondi password",showPassword:"Mostra password",generateButton:"Genera",copyButtonHint:"Copia password",copySuccessToast:"Password copiata",generateButtonHint:"Genera una password efficace"},InPlaceEdit:{cancelButtonHint:"Annulla modifiche",editButtonHint:"Modifica valore",okButtonHint:"Salva modifiche"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Scegli file..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% elementi in totale",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Elementi selezionati: %%selectedRows%% di %%totalRows%%",all:"Tutti",allItemsOnPageSelected:"Tutti gli elementi della pagina sono stati selezionati",allItemsSelected:"Tutti gli elementi sono stati selezionati",selectAllItems:"Seleziona tutti gli elementi",selectAllItemsOnPage:"Seleziona tutti gli elementi sulla pagina",deselectAll:"Deseleziona",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Impossibile trovare elementi corrispondenti al filtro",emptyTitle:"Qui non c'è nulla",filteredDescription:"Perfeziona la query o rimuovi alcuni criteri dal filtro e riprova."},ListOperation:{cancelButton:"Annulla"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"di %%total%%",itemsPerPage:"Elementi per pagina",all:"Tutti",total:"Pagina %%current%% di %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Chiudi",cancelButton:"Annulla"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Nessuna opzione",placeholder:"Seleziona..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% di %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Chiudi gruppo"},Toast:{closeButton:"Close"}}},"ja-JP":{language:"ja",messages:{Alert:{close:"Close"},Card:{select:"選択",titleLinkTooltip:"ページへ移動",collapseCardTooltip:"カードを閉じる",expandCardTooltip:"カードを開く"},CardList:{loadMore:"さらに読み込む",notFound:"アイテムが見つかりません。",toolbarSelect:"選択",viewCards:"カード",viewTiles:"タイル",viewList:"リスト",toolbarView:"表示"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"終了",cancel:"戻る",content:"このウィンドウを終了してよろしいですか?変更したデータは保存されません。"},Cuttable:{showMore:"さらに表示",showLess:"表示数を減らす"},Dialog:{closeButton:"Close",cancelButton:"キャンセル"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"キャンセル"},Dropdown:{close:"閉じる"},Form:{submitButton:"保存",applyButton:"適用",cancelButton:"キャンセル"},FormField:{clear:"クリア",remove:"削除",addMore:"もう 1 つ追加",showDescription:"Show description"},FormFieldPassword:{improvePassword:"パスワードを強化するには:",passwordTooShort:"パスワードを長くします。",lettersLowerCase:"小文字を 1 つ以上使用します。",lettersUpperCase:"大文字を 1 つ以上使用します。",numbers1:"数字を 1 つ以上使用します。",numbers3:"数字を 3 つ以上使用します。",specialChar1:"特殊文字 (!、@、#、$、%、^、&、*、?、_、~ など) を 1 つ以上使用します。",specialChar2:"特殊文字 (!、@、#、$、%、^、&、*、?、_、~ など) を 2 つ以上使用します。",comboUpperAndLower:"大文字と小文字の両方を使用します。",comboLettersAndNumbers:"数字と文字の両方を使用します。",comboLettersNumbersSpecial:"数字、文字、および特殊文字を使用します。",yourPasswordIsStrong:"長さを長くすると、さらに強力になります。",passwordStrength:"パスワードの強度は %%strength%% です。",strengthVeryStrong:"非常に強い",strengthStrong:"強い",strengthVeryWeak:"非常に弱い",strengthWeak:"弱い",strengthMedium:"普通",hidePassword:"パスワードを隠す",showPassword:"パスワードを表示",generateButton:"生成",copyButtonHint:"パスワードをコピー",copySuccessToast:"パスワードがコピーされました",generateButtonHint:"強いパスワードを生成"},InPlaceEdit:{cancelButtonHint:"変更を破棄",editButtonHint:"値を編集",okButtonHint:"変更を保存"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"ファイルを選択..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"全 %%totalRows%% 件",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% / %%totalRows%% 件が選択されています",all:"すべて",allItemsOnPageSelected:"ページのすべてのアイテムが選択されています",allItemsSelected:"すべてのアイテムが選択されています",selectAllItems:"すべてのアイテムを選択",selectAllItemsOnPage:"ページのすべてのアイテムを選択",deselectAll:"選択解除",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"フィルタと一致するアイテムは見つかりませんでした",emptyTitle:"ここには何もないようです",filteredDescription:"クエリを絞り込むかフィルタ条件の一部を削除して、やり直してください。"},ListOperation:{cancelButton:"キャンセル"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"/ %%total%%",itemsPerPage:"ページあたりのアイテム数",all:"すべて",total:"%%current%% / %%total%% ページ",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"閉じる",cancelButton:"キャンセル"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"オプションなし",placeholder:"選択..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% / %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"グループを閉じる"},Toast:{closeButton:"Close"}}},"ko-KR":{language:"ko",messages:{Alert:{close:"Close"},Card:{select:"선택하기",titleLinkTooltip:"페이지로 이동",collapseCardTooltip:"카드 접기",expandCardTooltip:"카드 펼치기"},CardList:{loadMore:"더 불러오기",notFound:"아이템 찾을 수 없음.",toolbarSelect:"선택하기",viewCards:"카드",viewTiles:"타일",viewList:"목록",toolbarView:"보기"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"나가기",cancel:"돌아가기",content:"정말로 이 창을 닫고 나가시겠습니까? 데이터 변경 사항이 저장되지 않습니다."},Cuttable:{showMore:"더 보기",showLess:"간단히"},Dialog:{closeButton:"Close",cancelButton:"취소"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"취소"},Dropdown:{close:"닫기"},Form:{submitButton:"저장하기",applyButton:"적용하기",cancelButton:"취소"},FormField:{clear:"비우기",remove:"제거하기",addMore:"하나 더 추가",showDescription:"Show description"},FormFieldPassword:{improvePassword:"비밀번호 개선하기:",passwordTooShort:"비밀번호를 더 길게 만드세요.",lettersLowerCase:"소문자를 한 개 이상 사용하세요.",lettersUpperCase:"대문자를 한 개 이상 사용하세요.",numbers1:"숫자를 한 개 이상 사용하세요.",numbers3:"숫자를 세 개 이상 사용하세요.",specialChar1:"특수 기호를 한 개 이상 사용하세요(예: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"특수 기호를 추 개 이상 사용하세요(예: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"대문자와 소문자를 둘 다 사용하세요.",comboLettersAndNumbers:"숫자와 글자를 둘 다 사용하세요.",comboLettersNumbersSpecial:"숫자, 글자 및 특수 기호를 사용하세요.",yourPasswordIsStrong:"길이를 늘려서 더 강하게 만들 수 있습니다.",passwordStrength:"비밀번호 강도는 %%strength%%입니다.",strengthVeryStrong:"아주 강함",strengthStrong:"강함",strengthVeryWeak:"아주 약함",strengthWeak:"약함",strengthMedium:"보통",hidePassword:"비밀번호 숨기기",showPassword:"비밀번호 표시하기",generateButton:"생성하기",copyButtonHint:"비밀번호를 복사합니다",copySuccessToast:"비밀번호를 복사했습니다",generateButtonHint:"강력한 비밀번호를 생성합니다"},InPlaceEdit:{cancelButtonHint:"변경 사항 버리기",editButtonHint:"값 수정하기",okButtonHint:"변경 사항 저장하기"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"파일 선택..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"아이템 총 %%totalRows%%개",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"아이템 %%selectedRows%%/%%totalRows%% 선택",all:"전체",allItemsOnPageSelected:"페이지의 아이템 전부 선택함",allItemsSelected:"아이템 전부 선택함",selectAllItems:"아이템 전부 선택하기",selectAllItemsOnPage:"페이지의 아이템 전부 선택하기",deselectAll:"선택 해제",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"필터와 일치하는 아이템을 찾을 수 없습니다",emptyTitle:"여기엔 아무것도 없는 것 같습니다",filteredDescription:"쿼리를 다듬거나 필터의 일부 기준을 제거하고 다시 시도하십시오."},ListOperation:{cancelButton:"취소"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"/%%total%%",itemsPerPage:"페이지당 아이템",all:"전체",total:"%%current%%/%%total%%페이지",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"닫기",cancelButton:"취소"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"옵션 없음",placeholder:"선택하기..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%%/%%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"그룹 닫기"},Toast:{closeButton:"Close"}}},"ms-MY":{language:"ms",messages:{Alert:{close:"Close"},Card:{select:"Select",titleLinkTooltip:"Go to page",collapseCardTooltip:"Collapse the card",expandCardTooltip:"Expand the card"},CardList:{loadMore:"Load more",notFound:"No items found.",toolbarSelect:"Select",viewCards:"Cards",viewTiles:"Tiles",viewList:"List",toolbarView:"View"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Leave",cancel:"Go Back",content:"Are you sure you want to close and leave this window? Any data changes you've made won't be saved."},Cuttable:{showMore:"Show more",showLess:"Show less"},Dialog:{closeButton:"Close",cancelButton:"Cancel"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancel"},Dropdown:{close:"Close"},Form:{submitButton:"Save",applyButton:"Apply",cancelButton:"Cancel"},FormField:{clear:"Clear",remove:"Remove",addMore:"Add one more",showDescription:"Show description"},FormFieldPassword:{improvePassword:"To improve your password:",passwordTooShort:"Make the password longer.",lettersLowerCase:"Use at least one lower-case character.",lettersUpperCase:"Use at least one upper-case character.",numbers1:"Use at least one number.",numbers3:"Use at least three numbers.",specialChar1:"Use at least one special character (for example: !, @, #, $, % ,^, &, *, ?, _, ~).",specialChar2:"Use at least two special characters (for example: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Use both upper and lower-case characters.",comboLettersAndNumbers:"Use both numbers and characters.",comboLettersNumbersSpecial:"Use numbers, characters and special characters.",yourPasswordIsStrong:"You can make it even stronger by increasing its length.",passwordStrength:"The password strength is %%strength%%.",strengthVeryStrong:"VERY STRONG",strengthStrong:"STRONG",strengthVeryWeak:"VERY WEAK",strengthWeak:"WEAK",strengthMedium:"MEDIUM",hidePassword:"Hide password",showPassword:"Show password",generateButton:"Generate",copyButtonHint:"Copy password",copySuccessToast:"Password has been copied",generateButtonHint:"Generate a strong password"},InPlaceEdit:{cancelButtonHint:"Discard changes",editButtonHint:"Edit value",okButtonHint:"Save changes"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Choose file..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% items total",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% of %%totalRows%% items selected",all:"All",allItemsOnPageSelected:"All items on the page selected",allItemsSelected:"All items selected",selectAllItems:"Select all items",selectAllItemsOnPage:"Select all items on the page",deselectAll:"Deselect",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Could not find any items matching the filter",emptyTitle:"Looks like there's nothing here",filteredDescription:"Refine your query or remove some of the criteria from the filter and try again."},ListOperation:{cancelButton:"Cancel"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"of %%total%%",itemsPerPage:"Items per page",all:"All",total:"Page %%current%% of %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Close",cancelButton:"Cancel"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"No options",placeholder:"Select..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% of %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Close group"},Toast:{closeButton:"Close"}}},"nb-NO":{language:"nb",messages:{Alert:{close:"Close"},Card:{select:"Velg",titleLinkTooltip:"Gå til siden",collapseCardTooltip:"Slå sammen kortet",expandCardTooltip:"Utvid kortet"},CardList:{loadMore:"Last inn flere",notFound:"Fant ingen elementer.",toolbarSelect:"Velg",viewCards:"Kort",viewTiles:"Fliser",viewList:"Liste",toolbarView:"Vis"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Avslutt",cancel:"Gå tilbake",content:"Er du sikker på at du vil avslutte og lukke dette vinduet? Endringene du har gjort, blir ikke lagret."},Cuttable:{showMore:"Vis mer",showLess:"Vis mindre"},Dialog:{closeButton:"Close",cancelButton:"Avbryt"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Avbryt"},Dropdown:{close:"Lukk"},Form:{submitButton:"Lagre",applyButton:"Bruk",cancelButton:"Avbryt"},FormField:{clear:"Tøm",remove:"Fjern",addMore:"Legg til ett til",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Slik forbedrer du passordet:",passwordTooShort:"Gjør passordet lengre.",lettersLowerCase:"Bruk minst én liten bokstav.",lettersUpperCase:"Bruk minst én stor bokstav.",numbers1:"Bruk minst ett tall.",numbers3:"Bruk minst tre tall.",specialChar1:"Bruk minst ett spesialtegn (for eksempel: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Bruk minst to spesialtegn (for eksempel: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Bruk både små og store bokstaver.",comboLettersAndNumbers:"Bruk både tall og bokstaver.",comboLettersNumbersSpecial:"Bruk tall, bokstaver og spesialtegn.",yourPasswordIsStrong:"Du kan gjøre passordet enda sterkere ved å gjøre det lengre.",passwordStrength:"Passordet er %%strength%%.",strengthVeryStrong:"VELDIG STERKT",strengthStrong:"STERKT",strengthVeryWeak:"VELDIG SVAKT",strengthWeak:"SVAKT",strengthMedium:"MIDDELS",hidePassword:"Skjul passordet",showPassword:"Vis passordet",generateButton:"Generer",copyButtonHint:"Kopier passordet",copySuccessToast:"Passordet ble kopiert",generateButtonHint:"Generer et sterkt passord"},InPlaceEdit:{cancelButtonHint:"Forkast endringene",editButtonHint:"Endre verdi",okButtonHint:"Lagre endringene"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Velg fil..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% elementer totalt",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% av %%totalRows%% elementer er valgt",all:"Alle",allItemsOnPageSelected:"Alle elementene på siden er valgt",allItemsSelected:"Alle elementene er valgt",selectAllItems:"Velg alle elementene",selectAllItemsOnPage:"Velg alle elementene på siden",deselectAll:"Fjern valg",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Fant ingen elementer som stemmer med filteret",emptyTitle:"Det er ingenting her",filteredDescription:"Begrens søket eller fjern noen av kriteriene fra filteret, og prøv igjen."},ListOperation:{cancelButton:"Avbryt"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"av %%total%%",itemsPerPage:"Elementer per side",all:"Alle",total:"Side %%current%% av %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Lukk",cancelButton:"Avbryt"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Ingen alternativer",placeholder:"Velg..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% av %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Lukk gruppen"},Toast:{closeButton:"Close"}}},"nl-NL":{language:"nl",messages:{Alert:{close:"Close"},Card:{select:"Selecteren",titleLinkTooltip:"Ga naar pagina",collapseCardTooltip:"Kaart sluiten",expandCardTooltip:"Kaart openen"},CardList:{loadMore:"Meer laden",notFound:"Niets gevonden.",toolbarSelect:"Selecteren",viewCards:"Kaarten",viewTiles:"Tegels",viewList:"Lijst",toolbarView:"Weergave"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Toch sluiten",cancel:"Terug",content:"Weet u zeker dat u dit venster wilt sluiten? Uw wijzigingen zullen verloren gaan."},Cuttable:{showMore:"Meer weergeven",showLess:"Minder weergeven"},Dialog:{closeButton:"Close",cancelButton:"Annuleren"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Annuleren"},Dropdown:{close:"Sluiten"},Form:{submitButton:"Opslaan",applyButton:"Toepassen",cancelButton:"Annuleren"},FormField:{clear:"Leeg maken",remove:"Verwijderen",addMore:"Extra toevoegen",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Zo maakt u uw wachtwoord sterker:",passwordTooShort:"Maak het wachtwoord langer.",lettersLowerCase:"Gebruik ten minste één kleine letter.",lettersUpperCase:"Gebruik ten minste één hoofdletter.",numbers1:"Gebruik ten minste één cijfer.",numbers3:"Gebruik ten minste drie cijfers.",specialChar1:"Gebruik ten minste één speciaal teken (bijvoorbeeld: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Gebruik ten minste twee speciale tekens (bijvoorbeeld: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Gebruik zowel kleine letters als hoofdletters.",comboLettersAndNumbers:"Gebruik zowel cijfers als letters.",comboLettersNumbersSpecial:"Gebruik cijfers, letters en speciale tekens.",yourPasswordIsStrong:"U kunt het nog verder versterken door het langer te maken.",passwordStrength:"De sterkte van het wachtwoord is %%strength%%.",strengthVeryStrong:"ZEER STERK",strengthStrong:"STERK",strengthVeryWeak:"ZEER ZWAK",strengthWeak:"ZWAK",strengthMedium:"GEMIDDELD",hidePassword:"Wachtwoord verbergen",showPassword:"Wachtwoord tonen",generateButton:"Genereren",copyButtonHint:"Wachtwoord kopiëren",copySuccessToast:"Wachtwoord is gekopieerd",generateButtonHint:"Sterk wachtwoord genereren"},InPlaceEdit:{cancelButtonHint:"Wijzigingen ongedaan maken",editButtonHint:"Waarde bewerken",okButtonHint:"Wijzigingen opslaan"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Bestand selecteren..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% items in totaal",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% van %%totalRows%% items geselecteerd",all:"Alle",allItemsOnPageSelected:"Alle items op de pagina geselecteerd",allItemsSelected:"Alle items geselecteerd",selectAllItems:"Alle items selecteren",selectAllItemsOnPage:"Alle items op de pagina selecteren",deselectAll:"Selectie opheffen",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Kan niets vinden dat voldoet aan de filter-criteria",emptyTitle:"Hier is helemaal niets",filteredDescription:"Pas uw zoekopdracht aan of verwijder enkele criteria uit het filter en probeer het opnieuw."},ListOperation:{cancelButton:"Annuleren"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"van %%total%%",itemsPerPage:"Items per pagina",all:"Alles",total:"Pagina %%current%% van %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Sluiten",cancelButton:"Annuleren"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Geen opties",placeholder:"Selecteren..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% van %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Groep sluiten"},Toast:{closeButton:"Close"}}},"pl-PL":{language:"pl",messages:{Alert:{close:"Close"},Card:{select:"Wybierz",titleLinkTooltip:"Przejdź do strony",collapseCardTooltip:"Zwiń kartę",expandCardTooltip:"Rozwiń kartę"},CardList:{loadMore:"Załaduj więcej",notFound:"Nie znaleziono żadnych elementów.",toolbarSelect:"Wybierz",viewCards:"Karty",viewTiles:"Kafelki",viewList:"Lista",toolbarView:"Widok"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Wyjdź",cancel:"Wróć",content:"Czy na pewno chcesz zamknąć i opuścić to okno? Wszelkie zmiany w danych, które dokonałeś, nie zostaną zapisane."},Cuttable:{showMore:"Pokaż więcej",showLess:"Pokaż mniej"},Dialog:{closeButton:"Close",cancelButton:"Anuluj"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Anuluj"},Dropdown:{close:"Zamknij"},Form:{submitButton:"Zapisz",applyButton:"Zastosuj",cancelButton:"Anuluj"},FormField:{clear:"Wyczyść",remove:"Usuń",addMore:"Dodaj jeszcze jeden",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Aby ulepszyć Twoje hasło:",passwordTooShort:"Wydłuż swoje hasło.",lettersLowerCase:"Wykorzystaj co najmniej jedną małą literę.",lettersUpperCase:"Wykorzystaj co najmniej jedną dużą literę.",numbers1:"Wykorzystaj co najmniej jedną cyfrę.",numbers3:"Wykorzystaj co najmniej trzy cyfry.",specialChar1:"Wykorzystaj co najmniej jeden znak specjalny (np. !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Wykorzystaj co najmniej dwa znaki specjalne (np. !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Wykorzystaj małe i duże litery.",comboLettersAndNumbers:"Wykorzystaj cyfry i litery.",comboLettersNumbersSpecial:"Wykorzystaj cyfry, litery i znaki specjalne.",yourPasswordIsStrong:"Możesz je jeszcze wzmocnić poprzez wydłużenie.",passwordStrength:"Siła hasła to: %%strength%%.",strengthVeryStrong:"BARDZO SILNE",strengthStrong:"SILNE",strengthVeryWeak:"BARDZO SŁABE",strengthWeak:"SŁABE",strengthMedium:"ŚREDNIE",hidePassword:"Ukryj hasło",showPassword:"Pokaż hasło",generateButton:"Wygeneruj",copyButtonHint:"Kopiuj hasło",copySuccessToast:"Hasło zostało skopiowane",generateButtonHint:"Wygeneruj silne hasło"},InPlaceEdit:{cancelButtonHint:"Odrzuć zmiany",editButtonHint:"Edytuj wartość",okButtonHint:"Zapisz zmiany"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Wybierz plik..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Łącznie %%totalRows%% elementów",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Wybrano %%selectedRows%% z %%totalRows%% elementów",all:"Wszystkie",allItemsOnPageSelected:"Wybrano wszystkie elementy na stronie",allItemsSelected:"Wybrano wszystkie elementy",selectAllItems:"Wybierz wszystkie elementy",selectAllItemsOnPage:"Wybierz wszystkie elementy na stronie",deselectAll:"Odznacz",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Nie można znaleźć żadnych elementów pasujących do filtra",emptyTitle:"Wygląda na to, że nic tu nie ma",filteredDescription:"Doprecyzuj zapytanie lub usuń niektóre kryteria z filtra i spróbuj ponownie."},ListOperation:{cancelButton:"Anuluj"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"z %%total%%",itemsPerPage:"Elementów na stronę",all:"Wszystkie",total:"Strona %%current%% z %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Zamknij",cancelButton:"Anuluj"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Brak opcji",placeholder:"Wybierz..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% z %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Zamknij grupę"},Toast:{closeButton:"Close"}}},"pt-BR":{language:"pt",messages:{Alert:{close:"Close"},Card:{select:"Selecione",titleLinkTooltip:"Ir para a página",collapseCardTooltip:"Recolher o cartão",expandCardTooltip:"Expandir o cartão"},CardList:{loadMore:"Carregar mais",notFound:"Nenhum item encontrado.",toolbarSelect:"Selecione",viewCards:"Cartões",viewTiles:"Mosaicos",viewList:"Lista",toolbarView:"Visualizar"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Deixar",cancel:"Voltar",content:"Tem certeza de que deseja fechar e sair esta janela? Quaisquer alterações de dados que você tenha feito não serão salvas."},Cuttable:{showMore:"Mostrar mais",showLess:"Mostrar menos"},Dialog:{closeButton:"Close",cancelButton:"Cancelar"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancelar"},Dropdown:{close:"Fechar"},Form:{submitButton:"Salvar",applyButton:"Aplicar",cancelButton:"Cancelar"},FormField:{clear:"Limpar",remove:"Remover",addMore:"Adicionar mais um",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Para melhorar sua senha:",passwordTooShort:"Use um maior comprimento de senha.",lettersLowerCase:"Utilize no mínimo um caractere minúsculo.",lettersUpperCase:"Utilize no mínimo um caractere maiúsculo.",numbers1:"Utilize no mínimo um número.",numbers3:"Utilize no mínimo três números.",specialChar1:"Use no mínimo um caractere especial (por exemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Use no mínimo dois caracteres especiais (por exemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Utilize caracteres maiúsculos e minúsculos.",comboLettersAndNumbers:"Utilize números e caracteres.",comboLettersNumbersSpecial:"Utilize números, caracteres e caracteres especiais.",yourPasswordIsStrong:"Você pode torná-la ainda mais forte aumentando seu comprimento.",passwordStrength:"A força da senha é %%strength%%.",strengthVeryStrong:"MUITO FORTE",strengthStrong:"FORTE",strengthVeryWeak:"MUITO FRACA",strengthWeak:"FRACA",strengthMedium:"MÉDIA",hidePassword:"Ocultar senha",showPassword:"Mostrar senha",generateButton:"Gerar",copyButtonHint:"Copiar senha",copySuccessToast:"A senha foi copiada",generateButtonHint:"Gere uma senha forte"},InPlaceEdit:{cancelButtonHint:"Descartar as alterações",editButtonHint:"Editar valor",okButtonHint:"Salvar alterações"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Escolher arquivo..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Total de %%totalRows%% itens",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% de %%totalRows%% itens selecionados",all:"Todos",allItemsOnPageSelected:"Todos os itens na página selecionados",allItemsSelected:"Todos os itens selecionados",selectAllItems:"Selecionar todos os itens",selectAllItemsOnPage:"Selecione todos os itens na página",deselectAll:"Desmarcar",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Não foi possível encontrar nenhum item que corresponda ao filtro",emptyTitle:"Parece que não tem nada aqui",filteredDescription:"Refine sua consulta ou remova alguns dos critérios do filtro e tente novamente."},ListOperation:{cancelButton:"Cancelar"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"de %%total%%",itemsPerPage:"Itens por página",all:"Todas",total:"Página %%current%% de %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Fechar",cancelButton:"Cancelar"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Nenhima opção",placeholder:"Selecione..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% de %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Grupo fechado"},Toast:{closeButton:"Close"}}},"pt-PT":{language:"pt",messages:{Alert:{close:"Close"},Card:{select:"Selecionar",titleLinkTooltip:"Ir para a página",collapseCardTooltip:"Contrair o cartão",expandCardTooltip:"Expandir o cartão"},CardList:{loadMore:"Carregar mais",notFound:"Sem resultados.",toolbarSelect:"Selecionar",viewCards:"Cartões",viewTiles:"Mosaico",viewList:"Lista",toolbarView:"Visualizar"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Sair",cancel:"Retroceder",content:"Tem a certeza de que fechar esta janela? Quaisquer alterações que tenha efetuado não serão guardadas."},Cuttable:{showMore:"Mostrar mais",showLess:"Mostrar menos"},Dialog:{closeButton:"Close",cancelButton:"Cancelar"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancelar"},Dropdown:{close:"Fechar"},Form:{submitButton:"Guardar",applyButton:"Aplicar",cancelButton:"Cancelar"},FormField:{clear:"Limpar",remove:"Remover",addMore:"Adicionar mais um",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Para melhorar a sua palavra-passe:",passwordTooShort:"Torne a sua palavra-passe mais longa.",lettersLowerCase:"Utilize, pelo menos, um caractere minúsculo.",lettersUpperCase:"Utilize, pelo menos, um caractere maiúsculo.",numbers1:"Utilize, pelo menos, um número.",numbers3:"Utilize, pelo menos, três números.",specialChar1:"Utilize, pelo menos, um caractere especial (por exemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Utilize, pelo menos, dois caracteres especiais (por exemplo: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Utilize caracteres maiúsculos e minúsculos.",comboLettersAndNumbers:"Utilize números e caracteres.",comboLettersNumbersSpecial:"Utilize números, caracteres e caracteres especiais.",yourPasswordIsStrong:"Pode torná-la ainda mais forte aumentando o seu comprimento.",passwordStrength:"A força da sua palavra-passe é: %%strength%%.",strengthVeryStrong:"MUITO FORTE",strengthStrong:"FORTE",strengthVeryWeak:"MUITO FRACA",strengthWeak:"FRACA",strengthMedium:"MÉDIA",hidePassword:"Ocultar a palavra-passe",showPassword:"Mostrar a palavra-passe",generateButton:"Gerar",copyButtonHint:"Copiar a palavra-passe",copySuccessToast:"A palavra-passe foi copiada",generateButtonHint:"Gerar uma palavra-passe mais forte"},InPlaceEdit:{cancelButtonHint:"Rejeitar as alterações",editButtonHint:"Editar o valor",okButtonHint:"Guardar as alterações"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Escolha o ficheiro..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Total de %%totalRows%% artigos",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% de %%totalRows%% artigos selecionados",all:"Todos",allItemsOnPageSelected:"Todos os artigos da página foram selecionados",allItemsSelected:"Todos os artigos selecionados",selectAllItems:"Selecionar todos os artigos",selectAllItemsOnPage:"Selecionar todos os artigos da página",deselectAll:"Anular seleção",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Não foi possível encontrar artigos correspondentes ao filtro",emptyTitle:"Parece que não há nada aqui",filteredDescription:"Refine a sua consulta ou remova alguns critérios do filtro e tente novamente."},ListOperation:{cancelButton:"Cancelar"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"de %%total%%",itemsPerPage:"Artigos por página",all:"Tudo",total:"Página %%current%% de %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Fechar",cancelButton:"Cancelar"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Sem opções",placeholder:"Selecione..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% de %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Fechar o grupo"},Toast:{closeButton:"Close"}}},"ro-RO":{language:"ro",messages:{Alert:{close:"Close"},Card:{select:"Selectare",titleLinkTooltip:"Salt la pagină",collapseCardTooltip:"Restrângerea cardului",expandCardTooltip:"Extinderea cardului"},CardList:{loadMore:"Mai multe",notFound:"Nu s-a găsit niciun element.",toolbarSelect:"Selectare",viewCards:"Carduri",viewTiles:"Dale",viewList:"Listă",toolbarView:"Vizualizare"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Ieșire",cancel:"Revenire",content:"Sigur doriți să închideți și să părăsiți această pagină? Dacă ați făcut modificări, acestea nu vor fi salvate."},Cuttable:{showMore:"Mai multe",showLess:"Mai puține"},Dialog:{closeButton:"Close",cancelButton:"Anulare"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Anulare"},Dropdown:{close:"Închidere"},Form:{submitButton:"Salvare",applyButton:"Aplicare",cancelButton:"Anulare"},FormField:{clear:"Golire",remove:"Ștergere",addMore:"Adăugarea unei adrese suplimentare",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Pentru a îmbunătăți parola:",passwordTooShort:"Creați o parolă mai lungă.",lettersLowerCase:"Utilizați cel puțin o literă mică.",lettersUpperCase:"Utilizați cel puțin o literă mare.",numbers1:"Utilizați cel puțin o cifră.",numbers3:"Utilizați cel puțin trei cifre.",specialChar1:"Utilizați cel puțin un caracter special (de exemplu: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Utilizați cel puțin două caractere speciale (de exemplu: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Utilizați atât litere mari, cât și litere mici.",comboLettersAndNumbers:"Utilizați atât cifre, cât și litere.",comboLettersNumbersSpecial:"Utilizați cifre, litere și caractere speciale.",yourPasswordIsStrong:"Puteți crea o parolă și mai complexă dacă o faceți mai lungă.",passwordStrength:"Parola este: %%strength%%.",strengthVeryStrong:"FOARTE COMPLEXĂ",strengthStrong:"COMPLEXĂ",strengthVeryWeak:"FOARTE SIMPLĂ",strengthWeak:"SIMPLĂ",strengthMedium:"DE COMPLEXITATE MEDIE",hidePassword:"Ascundere parolă",showPassword:"Afișare parolă",generateButton:"Generare",copyButtonHint:"Copiere parolă",copySuccessToast:"Parola a fost copiată",generateButtonHint:"Generarea unei parole complexe"},InPlaceEdit:{cancelButtonHint:"Renunțare la modificări",editButtonHint:"Editare valoare",okButtonHint:"Salvare modificări"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Alegeți fișierul..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Nr. total de elemente %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Ați selectat %%selectedRows%% din %%totalRows%% elemente",all:"Toate",allItemsOnPageSelected:"Toate elementele din pagină sunt selectate",allItemsSelected:"Toate elementele selectate",selectAllItems:"Selectarea tuturor elementelor",selectAllItemsOnPage:"Selectarea tuturor elementelor din pagină",deselectAll:"Deselectare",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Imposibil de găsit elemente care să se potrivească cu filtrul",emptyTitle:"Se pare că nu e nimic pe aici",filteredDescription:"Rafinați interogarea sau eliminați unele criterii din filtru, apoi încercați din nou."},ListOperation:{cancelButton:"Anulare"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"din %%total%%",itemsPerPage:"Elem. pe pagină",all:"Toate",total:"Pagina %%current%% din %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Închidere",cancelButton:"Anulare"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Nicio opțiune",placeholder:"Selectați..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% din %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Închidere grup"},Toast:{closeButton:"Close"}}},"ru-RU":{language:"ru",messages:{Alert:{close:"Close"},Card:{select:"Выбрать",titleLinkTooltip:"Перейти на страницу",collapseCardTooltip:"Свернуть карточку",expandCardTooltip:"Развернуть карточку"},CardList:{loadMore:"Загрузить больше",notFound:"Не найдено ни одного элемента.",toolbarSelect:"Выбрать",viewCards:"Карточки",viewTiles:"Плитка",viewList:"Список",toolbarView:"Вид"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Выйти",cancel:"Вернуться",content:"Вы уверены, что хотите закрыть это окно? Все сделанные вами изменения будут потеряны."},Cuttable:{showMore:"Показать все",showLess:"Свернуть"},Dialog:{closeButton:"Close",cancelButton:"Отменить"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Отменить"},Dropdown:{close:"Закрыть"},Form:{submitButton:"Сохранить",applyButton:"Применить",cancelButton:"Отменить"},FormField:{clear:"Очистить",remove:"Удалить",addMore:"Добавить еще",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Чтобы улучшить пароль:",passwordTooShort:"Сделайте пароль длиннее.",lettersLowerCase:"Используйте хотя бы одну букву в нижнем регистре.",lettersUpperCase:"Используйте хотя бы одну букву в верхнем регистре.",numbers1:"Используйте хотя бы одну цифру.",numbers3:"Используйте хотя бы три цифры.",specialChar1:"Используйте хотя бы один специальный символ (например: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Используйте хотя бы два специальных символа (например: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Используйте буквы и в верхнем, и в нижнем регистре.",comboLettersAndNumbers:"Используйте и цифры, и буквы.",comboLettersNumbersSpecial:"Используйте цифры, буквы и специальные символы.",yourPasswordIsStrong:"Вы можете сделать его еще более надежным, увеличив его длину.",passwordStrength:"Надежность пароля ― %%strength%%.",strengthVeryStrong:"ОЧЕНЬ НАДЕЖНЫЙ",strengthStrong:"НАДЕЖНЫЙ",strengthVeryWeak:"ОЧЕНЬ НЕНАДЕЖНЫЙ",strengthWeak:"НЕНАДЕЖНЫЙ",strengthMedium:"СРЕДНИЙ",hidePassword:"Скрыть пароль",showPassword:"Показать пароль",generateButton:"Создать",copyButtonHint:"Скопировать пароль",copySuccessToast:"Пароль скопирован",generateButtonHint:"Создать надежный пароль"},InPlaceEdit:{cancelButtonHint:"Отменить изменения",editButtonHint:"Изменить значение",okButtonHint:"Сохранить изменения"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Выбрать файл..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Всего элементов: %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Выбрано элементов: %%selectedRows%% из %%totalRows%%",all:"все",allItemsOnPageSelected:"Выбраны все элементы на странице",allItemsSelected:"Выбраны все элементы",selectAllItems:"Выбрать все элементы",selectAllItemsOnPage:"Выбрать все элементы на странице",deselectAll:"Отменить выбор",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Не удалось найти элементы, соответствующие фильтру",emptyTitle:"Похоже, список пуст",filteredDescription:"Уточните запрос или удалите некоторые критерии из фильтра и повторите попытку."},ListOperation:{cancelButton:"Отменить"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"из %%total%%",itemsPerPage:"Элементов на странице",all:"Все",total:"Страница %%current%% из %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Закрыть",cancelButton:"Отменить"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Нет опций",placeholder:"Выбрать..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% из %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Закрыть группу"},Toast:{closeButton:"Close"}}},"sv-SE":{language:"sv",messages:{Alert:{close:"Close"},Card:{select:"Välj",titleLinkTooltip:"Gå till sida",collapseCardTooltip:"Kollapsa kortet",expandCardTooltip:"Expandera kortet"},CardList:{loadMore:"Ladda fler",notFound:"Inga objekt funna.",toolbarSelect:"Välj",viewCards:"Kort",viewTiles:"Rutor",viewList:"Lista",toolbarView:"Vy"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Lämna",cancel:"Gå tillbaka",content:"Vill du verkligen stänga och lämna det här fönstret? Alla dataändringar du gjort kommer inte att sparas."},Cuttable:{showMore:"Visa mer",showLess:"Visa mindre"},Dialog:{closeButton:"Close",cancelButton:"Avbryt"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Avbryt"},Dropdown:{close:"Stäng"},Form:{submitButton:"Spara",applyButton:"Tillämpa",cancelButton:"Avbryt"},FormField:{clear:"Rensa",remove:"Ta bort",addMore:"Lägg till ett till",showDescription:"Show description"},FormFieldPassword:{improvePassword:"För att förbättra ditt lösenord:",passwordTooShort:"Gör lösenordet längre.",lettersLowerCase:"Använd minst ett gement tecken.",lettersUpperCase:"Använd minst ett versalt tecken.",numbers1:"Använd minst en siffra.",numbers3:"Använd minst tre siffror.",specialChar1:"Använd minst ett specialtecken (exempelvis: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Använd minst två specialtecken (exempelvis: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Använd både gemener och versaler.",comboLettersAndNumbers:"Använd både siffror och tecken.",comboLettersNumbersSpecial:"Använd siffror, tecken och specialtecken.",yourPasswordIsStrong:"Du kan göra det ännu starkare genom att göra det längre.",passwordStrength:"Lösenordsstyrkan är %%strength%%.",strengthVeryStrong:"VÄLDIGT STARK",strengthStrong:"STARK",strengthVeryWeak:"VÄLDIGT SVAG",strengthWeak:"SVAG",strengthMedium:"MEDEL",hidePassword:"Dölj lösenord",showPassword:"Visa lösenord",generateButton:"Generera",copyButtonHint:"Kopiera lösenord",copySuccessToast:"Lösenord har kopierats",generateButtonHint:"Generera ett starkt lösenord"},InPlaceEdit:{cancelButtonHint:"Ångra ändringar",editButtonHint:"Redigera värde",okButtonHint:"Spara ändringar"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Välj fil..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% objekt totalt",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% av %%totalRows%% objekt valda",all:"Alla",allItemsOnPageSelected:"Alla objekt på sidan har valts",allItemsSelected:"Alla objekt valda",selectAllItems:"Välj alla objekt",selectAllItemsOnPage:"Välj alla objekt på sidan",deselectAll:"Avmarkera",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Hittade inga objekt som matchar filtret",emptyTitle:"Det verkar inte finnas nåt här",filteredDescription:"Förfina din sökning eller ta bort vissa kriterier från filtret och försök igen."},ListOperation:{cancelButton:"Avbryt"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"av %%total%%",itemsPerPage:"Objekt per sida",all:"Alla",total:"Sida %%current%% av %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Stäng",cancelButton:"Avbryt"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Inga alternativ",placeholder:"Välj..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% av %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Stäng grupp"},Toast:{closeButton:"Close"}}},"th-TH":{language:"th",messages:{Alert:{close:"Close"},Card:{select:"เลือก",titleLinkTooltip:"ไปที่หน้า",collapseCardTooltip:"ย่อแผง",expandCardTooltip:"ขยายแผง"},CardList:{loadMore:"โหลดเพิ่ม",notFound:"ไม่พบรายการใดๆ",toolbarSelect:"เลือก",viewCards:"แผง",viewTiles:"หัวข้อ",viewList:"รายการ",toolbarView:"มุมมอง"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"ออก",cancel:"กลับ",content:"แน่ใจหรือไม่ว่าคุณต้องการปิดและออกจากหน้าต่างนี้? การเปลี่ยนแปลงข้อมูลใดๆ ที่คุณทำจะไม่ได้รับการบันทึก"},Cuttable:{showMore:"แสดงเพิ่ม",showLess:"แสดงน้อยลง"},Dialog:{closeButton:"Close",cancelButton:"ยกเลิก"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"ยกเลิก"},Dropdown:{close:"ปิด"},Form:{submitButton:"บันทึก",applyButton:"ใช้",cancelButton:"ยกเลิก"},FormField:{clear:"ล้าง",remove:"ลบ",addMore:"เพิ่มอีกหนึ่งรายการ",showDescription:"Show description"},FormFieldPassword:{improvePassword:"วิธีปรับปรุงความรัดกุมของรหัสผ่าน:",passwordTooShort:"ตั้งรหัสผ่านให้ยาวๆ",lettersLowerCase:"ใช้ตัวอักษรตัวเล็กอย่างน้อยหนึ่งตัว",lettersUpperCase:"ใช้ตัวอักษรตัวใหญ่อย่างน้อยหนึ่งตัว",numbers1:"ใช้ตัวเลขอย่างน้อยหนึ่งตัว",numbers3:"ใช้ตัวเลขอย่างน้อยสามตัว",specialChar1:"ใช้ตัวอักษรพิเศษอย่างน้อยหนึ่งตัว (เช่น: !, @, #, $, %, ^, &, *, ?, _, ~)",specialChar2:"ใช้ตัวอักษรพิเศษอย่างน้อยสองตัว (เช่น: !, @, #, $, %, ^, &, *, ?, _, ~)",comboUpperAndLower:"ใช้ทั้งตัวอักษรใหญ่และตัวอักษรเล็ก",comboLettersAndNumbers:"ใช้ทั้งตัวเลขและตัวอักษร",comboLettersNumbersSpecial:"ใช้ตัวเลข ตัวอักษร และตัวอักษรพิเศษ",yourPasswordIsStrong:"คุณสามารถทำให้รหัสเดายากขึ้นด้วยการตั้งให้ยาวขึ้น",passwordStrength:"ความรัดกุมของรหัสผ่าน %%strength%%",strengthVeryStrong:"เดายากมาก",strengthStrong:"เดายาก",strengthVeryWeak:"เดาง่ายมาก",strengthWeak:"เดาง่าย",strengthMedium:"ปานกลาง",hidePassword:"ซ่อนรหัสผ่าน",showPassword:"แสดงรหัสผ่าน",generateButton:"สร้างรหัสผ่าน",copyButtonHint:"คัดลอกรหัสผ่าน",copySuccessToast:"คัดลอกรหัสผ่านแล้ว",generateButtonHint:"สร้างรหัสผ่านที่รัดกุม"},InPlaceEdit:{cancelButtonHint:"ละทิ้งการเปลี่ยนแปลง",editButtonHint:"แก้ไขค่า",okButtonHint:"บันทึกการเปลี่ยนแปลง"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"เลือกไฟล์..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"รวม %%totalRows%% รายการ",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"เลือก %%selectedRows%% จาก %%totalRows%% รายการแล้ว",all:"ทั้งหมด",allItemsOnPageSelected:"เลือกรายการทั้งหมดบนหน้าแล้ว",allItemsSelected:"เลือกรายการทั้งหมดแล้ว",selectAllItems:"เลือกทุกรายการ",selectAllItemsOnPage:"เลือกทุกรายการบนหน้า",deselectAll:"ยกเลิกการเลือก",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"ไม่พบรายการใดที่ตรงกับตัวกรอง",emptyTitle:"ไม่พบอะไรในนี้",filteredDescription:"ปรับการค้นหาของคุณใหม่และลบเกณฑ์บางชนิดจากตัวกรอง จากนั้นลองอีกครั้ง"},ListOperation:{cancelButton:"ยกเลิก"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"จาก %%total%%",itemsPerPage:"รายการต่อหน้า",all:"ทั้งหมด",total:"หน้า %%current%% จาก %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"ปิด",cancelButton:"ยกเลิก"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"ไม่มีตัวเลือก",placeholder:"เลือก..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% จาก %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"ปิดกลุ่ม"},Toast:{closeButton:"Close"}}},"tl-PH":{language:"tl",messages:{Alert:{close:"Close"},Card:{select:"Select",titleLinkTooltip:"Go to page",collapseCardTooltip:"Collapse the card",expandCardTooltip:"Expand the card"},CardList:{loadMore:"Load more",notFound:"No items found.",toolbarSelect:"Select",viewCards:"Cards",viewTiles:"Tiles",viewList:"List",toolbarView:"View"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Leave",cancel:"Go Back",content:"Are you sure you want to close and leave this window? Any data changes you've made won't be saved."},Cuttable:{showMore:"Show more",showLess:"Show less"},Dialog:{closeButton:"Close",cancelButton:"Cancel"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Cancel"},Dropdown:{close:"Close"},Form:{submitButton:"Save",applyButton:"Apply",cancelButton:"Cancel"},FormField:{clear:"Clear",remove:"Remove",addMore:"Add one more",showDescription:"Show description"},FormFieldPassword:{improvePassword:"To improve your password:",passwordTooShort:"Make the password longer.",lettersLowerCase:"Use at least one lower-case character.",lettersUpperCase:"Use at least one upper-case character.",numbers1:"Use at least one number.",numbers3:"Use at least three numbers.",specialChar1:"Use at least one special character (for example: !, @, #, $, % ,^, &, *, ?, _, ~).",specialChar2:"Use at least two special characters (for example: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Use both upper and lower-case characters.",comboLettersAndNumbers:"Use both numbers and characters.",comboLettersNumbersSpecial:"Use numbers, characters and special characters.",yourPasswordIsStrong:"You can make it even stronger by increasing its length.",passwordStrength:"The password strength is %%strength%%.",strengthVeryStrong:"VERY STRONG",strengthStrong:"STRONG",strengthVeryWeak:"VERY WEAK",strengthWeak:"WEAK",strengthMedium:"MEDIUM",hidePassword:"Hide password",showPassword:"Show password",generateButton:"Generate",copyButtonHint:"Copy password",copySuccessToast:"Password has been copied",generateButtonHint:"Generate a strong password"},InPlaceEdit:{cancelButtonHint:"Discard changes",editButtonHint:"Edit value",okButtonHint:"Save changes"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Choose file..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"%%totalRows%% items total",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%% of %%totalRows%% items selected",all:"All",allItemsOnPageSelected:"All items on the page selected",allItemsSelected:"All items selected",selectAllItems:"Select all items",selectAllItemsOnPage:"Select all items on the page",deselectAll:"Deselect",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Could not find any items matching the filter",emptyTitle:"Looks like there's nothing here",filteredDescription:"Refine your query or remove some of the criteria from the filter and try again."},ListOperation:{cancelButton:"Cancel"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"of %%total%%",itemsPerPage:"Items per page",all:"All",total:"Page %%current%% of %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Close",cancelButton:"Cancel"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"No options",placeholder:"Select..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% of %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Close group"},Toast:{closeButton:"Close"}}},"tr-TR":{language:"tr",messages:{Alert:{close:"Close"},Card:{select:"Seç",titleLinkTooltip:"Sayfaya git",collapseCardTooltip:"Kartı daralt",expandCardTooltip:"Kartı genişlet"},CardList:{loadMore:"Daha fazlasını yükle",notFound:"Hiçbir öğe bulunmadı.",toolbarSelect:"Seç",viewCards:"Kartlar",viewTiles:"Döşemeler",viewList:"Liste",toolbarView:"Görüntüleme"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Ayrıl",cancel:"Geri Dön",content:"Bu pencereyi kapatıp ayrılmak istediğinizden emin misiniz? Yaptığınız hiçbir veri değişikliği kaydedilmeyecektir."},Cuttable:{showMore:"Daha fazla göster",showLess:"Daha az göster"},Dialog:{closeButton:"Close",cancelButton:"İptal"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"İptal"},Dropdown:{close:"Kapat"},Form:{submitButton:"Kaydet",applyButton:"Uygula",cancelButton:"İptal"},FormField:{clear:"Temizle",remove:"Sil",addMore:"Bir tane daha ekle",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Şifrenizi iyileştirmek için:",passwordTooShort:"Şifreyi uzatın.",lettersLowerCase:"En az bir küçük harf kullanın.",lettersUpperCase:"En az bir büyük harf kullanın.",numbers1:"En az bir rakam kullanın.",numbers3:"En az üç rakam kullanın.",specialChar1:"En az bir özel karakter kullanın (örneğin: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"En az iki özel karakter kullanın (örneğin: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Hem büyük harf hem de küçük harf kullanın.",comboLettersAndNumbers:"Hem rakamlar hem de karakterler kullanın.",comboLettersNumbersSpecial:"Rakamlar, karakterler ve özel karakterler kullanın.",yourPasswordIsStrong:"Uzunluğunu artırarak şifrenizi daha da güçlü hâle getirebilirsiniz.",passwordStrength:"Şifre gücü: %%strength%%.",strengthVeryStrong:"ÇOK GÜÇLÜ",strengthStrong:"GÜÇLÜ",strengthVeryWeak:"ÇOK ZAYIF",strengthWeak:"ZAYIF",strengthMedium:"ORTA",hidePassword:"Şifreyi gizle",showPassword:"Şifreyi göster",generateButton:"Üret",copyButtonHint:"Şifreyi kopyalayın",copySuccessToast:"Şifre kopyalandı",generateButtonHint:"Güçlü bir şifre üretin"},InPlaceEdit:{cancelButtonHint:"Değişiklikleri iptal edin",editButtonHint:"Değeri düzenleyin",okButtonHint:"Değişiklikleri kaydedin"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Dosya seç..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Toplam %%totalRows%% öğe",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"%%selectedRows%%/%%totalRows%% öğe seçildi",all:"Hepsi",allItemsOnPageSelected:"Sayfadaki öğelerin hepsi seçildi",allItemsSelected:"Öğelerin hepsi seçildi",selectAllItems:"Öğelerin hepsini seç",selectAllItemsOnPage:"Sayfadaki öğelerin hepsini seç",deselectAll:"Seçimi kaldır",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Filtre ile eşleşen herhangi bir öğe bulunamadı",emptyTitle:"Görünüşe göre burada bir şey yok",filteredDescription:"Sorgunuzu düzenleyin veya filtredeki bazı kriterleri kaldırıp tekrar deneyin."},ListOperation:{cancelButton:"İptal"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"/%%total%%",itemsPerPage:"Sayfa başına öğe",all:"Hepsi",total:"Sayfa %%current%%/%%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Kapat",cancelButton:"İptal"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Seçenek yok",placeholder:"Seç..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%%/%%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Grubu kapat"},Toast:{closeButton:"Close"}}},"uk-UA":{language:"uk",messages:{Alert:{close:"Close"},Card:{select:"Вибрати",titleLinkTooltip:"Перейти на сторінку",collapseCardTooltip:"Згорнути картку",expandCardTooltip:"Розгорнути картку"},CardList:{loadMore:"Завантажити більше",notFound:"Елементи не знайдено.",toolbarSelect:"Вибрати",viewCards:"Картки",viewTiles:"Плитки",viewList:"Список",toolbarView:"Вигляд"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Вийти",cancel:"Повернутися",content:"Ви впевнені, що хочете закрити це вікно й вийти з нього? Будь-які внесені зміни до даних не збережуться."},Cuttable:{showMore:"Показати більше",showLess:"Показати менше"},Dialog:{closeButton:"Close",cancelButton:"Скасувати"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Скасувати"},Dropdown:{close:"Закрити"},Form:{submitButton:"Зберегти",applyButton:"Застосувати",cancelButton:"Скасувати"},FormField:{clear:"Очистити",remove:"Видалити",addMore:"Додати ще одне",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Для поліпшення вашого пароля:",passwordTooShort:"Зробіть пароль довшим.",lettersLowerCase:"Використайте щонайменше одну малу літеру.",lettersUpperCase:"Використайте щонайменше одну велику літеру.",numbers1:"Використайте щонайменше одну цифру.",numbers3:"Використайте щонайменше три цифри.",specialChar1:"Використайте щонайменше один спеціальний символ (наприклад: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Використайте щонайменше два спеціальні символи (наприклад: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Використайте як великі, так і малі літери.",comboLettersAndNumbers:"Використайте як цифри, так і літери.",comboLettersNumbersSpecial:"Використайте цифри, літери та спеціальні символи.",yourPasswordIsStrong:"Ви можете зробити свій пароль ще надійнішим, збільшивши його довжину.",passwordStrength:"Надійність пароля: %%strength%%.",strengthVeryStrong:"ДУЖЕ НАДІЙНИЙ",strengthStrong:"НАДІЙНИЙ",strengthVeryWeak:"ДУЖЕ СЛАБКИЙ",strengthWeak:"СЛАБКИЙ",strengthMedium:"СЕРЕДНІЙ",hidePassword:"Приховати пароль",showPassword:"Показати пароль",generateButton:"Згенерувати",copyButtonHint:"Скопіювати пароль",copySuccessToast:"Пароль скопійовано",generateButtonHint:"Згенерувати надійний пароль"},InPlaceEdit:{cancelButtonHint:"Вилучити зміни",editButtonHint:"Редагувати значення",okButtonHint:"Зберегти зміни"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Вибрати файл..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Загалом елементів: %%totalRows%%",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Вибрано елементів: %%selectedRows%% з %%totalRows%%",all:"Усі",allItemsOnPageSelected:"Вибрано всі елементи на сторінці",allItemsSelected:"Вибрано всі елементи",selectAllItems:"Вибрати всі елементи",selectAllItemsOnPage:"Вибрати всі елементи на сторінці",deselectAll:"Скасувати вибір",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Неможливо знайти елементи, що відповідають фільтру",emptyTitle:"Схоже, тут нічого немає",filteredDescription:"Уточніть запит або видаліть кілька умов із фільтру й спробуйте ще раз."},ListOperation:{cancelButton:"Скасувати"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"з %%total%%",itemsPerPage:"Елементів на сторінку",all:"Усі",total:"Сторінка %%current%% з %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Закрити",cancelButton:"Скасувати"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Порожньо",placeholder:"Вибрати..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% з %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Закрити групу"},Toast:{closeButton:"Close"}}},"vi-VN":{language:"vi",messages:{Alert:{close:"Close"},Card:{select:"Chọn",titleLinkTooltip:"Đi tới trang",collapseCardTooltip:"Thu gọn thẻ",expandCardTooltip:"Mở rộng thẻ"},CardList:{loadMore:"Tải thêm",notFound:"Không tìm thấy mục nào.",toolbarSelect:"Chọn",viewCards:"Thẻ",viewTiles:"Ô",viewList:"Danh sách",toolbarView:"Chế độ xem"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"Rời đi",cancel:"Quay lại",content:"Bạn có chắc muốn đóng và rời khỏi cửa sổ này không? Mọi thay đổi về dữ liệu bạn đã thực hiện sẽ không được lưu."},Cuttable:{showMore:"Hiện thêm",showLess:"Ẩn bớt"},Dialog:{closeButton:"Close",cancelButton:"Hủy"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"Hủy"},Dropdown:{close:"Đóng"},Form:{submitButton:"Lưu",applyButton:"Áp dụng",cancelButton:"Hủy"},FormField:{clear:"Xóa",remove:"Gỡ bỏ",addMore:"Thêm một mục",showDescription:"Show description"},FormFieldPassword:{improvePassword:"Để tăng độ khó cho mật khẩu:",passwordTooShort:"Dùng mật khẩu dài hơn.",lettersLowerCase:"Sử dụng ít nhất một ký tự viết thường.",lettersUpperCase:"Sử dụng ít nhất một ký tự viết hoa.",numbers1:"Sử dụng ít nhất một số.",numbers3:"Sử dụng ít nhất ba số.",specialChar1:"Sử dụng ít nhất một ký tự đặc biệt (ví dụ: !, @, #, $, %, ^, &, *, ?, _, ~).",specialChar2:"Sử dụng ít nhất hai ký tự đặc biệt (ví dụ: !, @, #, $, %, ^, &, *, ?, _, ~).",comboUpperAndLower:"Sử dụng cả ký tự viết hoa và thường.",comboLettersAndNumbers:"Sử dụng cả số và ký tự.",comboLettersNumbersSpecial:"Sử dụng số, ký tự và ký tự đặc biệt.",yourPasswordIsStrong:"Bạn có thể tăng độ khó bằng cách đặt mật khẩu dài.",passwordStrength:"Độ mạnh của mật khẩu là %%strength%%.",strengthVeryStrong:"RẤT MẠNH",strengthStrong:"MẠNH",strengthVeryWeak:"RẤT YẾU",strengthWeak:"YẾU",strengthMedium:"TRUNG BÌNH",hidePassword:"Ẩn mật khẩu",showPassword:"Hiện mật khẩu",generateButton:"Khởi tạo",copyButtonHint:"Sao chép mật khẩu",copySuccessToast:"Mật khẩu đã được sao chép",generateButtonHint:"Khởi tạo một mật khẩu mạnh"},InPlaceEdit:{cancelButtonHint:"Hủy bỏ thay đổi",editButtonHint:"Chỉnh sửa giá trị",okButtonHint:"Lưu thay đổi"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"Chọn tập tin..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"Tổng cộng %%totalRows%% mục",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"Đã chọn %%selectedRows%% trong số %%totalRows%% mục",all:"Tất cả",allItemsOnPageSelected:"Đã chọn tất cả mục trên trang",allItemsSelected:"Đã chọn tất cả mục",selectAllItems:"Chọn tất cả mục",selectAllItemsOnPage:"Chọn tất cả mục trên trang",deselectAll:"Bỏ chọn",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"Không tìm thấy mục nào phù hợp với bộ lọc",emptyTitle:"Dường như không có gì ở đây",filteredDescription:"Tinh chỉnh truy vấn của bạn hoặc xóa một số tiêu chí khỏi bộ lọc và thử lại."},ListOperation:{cancelButton:"Hủy"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"trên %%total%%",itemsPerPage:"Mục mỗi trang",all:"Tất cả",total:"Trang %%current%% trên %%total%%",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"Đóng",cancelButton:"Hủy"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"Không có tùy chọn",placeholder:"Chọn..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%% trên %%total%%"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"Đóng nhóm"},Toast:{closeButton:"Close"}}},"zh-CN":{language:"zh",messages:{Alert:{close:"Close"},Card:{select:"选择",titleLinkTooltip:"转到页面",collapseCardTooltip:"折叠卡片",expandCardTooltip:"展开卡片"},CardList:{loadMore:"加载更多",notFound:"未找到项目。",toolbarSelect:"选择",viewCards:"卡片",viewTiles:"磁贴",viewList:"列表",toolbarView:"视图"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"离开",cancel:"返回",content:"您确定要关闭并离开此窗口吗?您所做的任何数据更改都不会被保存。"},Cuttable:{showMore:"显示更多",showLess:"显示更少"},Dialog:{closeButton:"Close",cancelButton:"取消"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"取消"},Dropdown:{close:"关闭"},Form:{submitButton:"保存",applyButton:"应用",cancelButton:"取消"},FormField:{clear:"清除",remove:"移除",addMore:"再添加一个",showDescription:"Show description"},FormFieldPassword:{improvePassword:"若要提升密码强度:",passwordTooShort:"请加长密码。",lettersLowerCase:"至少使用一个小写字母。",lettersUpperCase:"至少使用一个大写字母。",numbers1:"至少使用一个数字。",numbers3:"至少使用三个数字。",specialChar1:"至少使用一个特殊字符(如:!,@,#,$,%,^,&,*,?,_,~)。",specialChar2:"至少使用两个特殊字符(如:!,@,#,$,%,^,&,*,?,_,~)。",comboUpperAndLower:"使用大写和小写字符。",comboLettersAndNumbers:"使用数字与字符。",comboLettersNumbersSpecial:"使用数字、字符与特殊字符。",yourPasswordIsStrong:"您可以通过增加长度来提升密码强度。",passwordStrength:"密码强度为 %%strength%%。",strengthVeryStrong:"非常强",strengthStrong:"强",strengthVeryWeak:"非常弱",strengthWeak:"弱",strengthMedium:"中等",hidePassword:"隐藏密码",showPassword:"显示密码",generateButton:"生成",copyButtonHint:"复制密码",copySuccessToast:"密码已复制",generateButtonHint:"生成一个高强度密码"},InPlaceEdit:{cancelButtonHint:"取消修改",editButtonHint:"编辑数值",okButtonHint:"保存更改"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"选择文件..."},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"共计 %%totalRows%% 个项目",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"已选定 %%selectedRows%%(共计: %%totalRows%%)个项目",all:"所有",allItemsOnPageSelected:"已选定页面上的所有项目",allItemsSelected:"已选定所有项目",selectAllItems:"所选所有项目",selectAllItemsOnPage:"选择页面上的所有项目",deselectAll:"取消选定",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"找不到匹配该过滤器的任何项目",emptyTitle:"看来这里什么都没有",filteredDescription:"优化查询或从过滤器中移除一些标准,然后重试。"},ListOperation:{cancelButton:"取消"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"%%total%%",itemsPerPage:"每页的项目",all:"所有",total:"第 %%current%% 页(共计 %%total%% 页)",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"关闭",cancelButton:"取消"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"无选项",placeholder:"选择..."},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%%(共计 %%total%%)"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"关闭群组"},Toast:{closeButton:"Close"}}},"zh-TW":{language:"zh",messages:{Alert:{close:"Close"},Card:{select:"選擇",titleLinkTooltip:"前往頁面",collapseCardTooltip:"摺疊卡片",expandCardTooltip:"展開卡片"},CardList:{loadMore:"載入更多",notFound:"找不到物件。",toolbarSelect:"選擇",viewCards:"卡片",viewTiles:"方塊",viewList:"清單",toolbarView:"查看"},Carousel:{nextSlide:"Next slide",previousSlide:"Previous slide",viewSlide:"View slide %%slideNumber%%"},ComboBox:{close:"Close",open:"Open",search:"Search value"},ClosingConfirmation:{confirm:"離開",cancel:"返回",content:"確定想要關閉及離開此視窗嗎?將不會儲存任何資料變更。"},Cuttable:{showMore:"顯示更多",showLess:"顯示更少"},Dialog:{closeButton:"Close",cancelButton:"取消"},Drawer:{backButton:"Back",closeButton:"Close",hideButton:"Hide"},DrawerProgress:{cancelButton:"取消"},Dropdown:{close:"關閉"},Form:{submitButton:"儲存",applyButton:"套用",cancelButton:"取消"},FormField:{clear:"清除",remove:"移除",addMore:"再新增一個",showDescription:"Show description"},FormFieldPassword:{improvePassword:"若要提升密碼強度:",passwordTooShort:"加長密碼。",lettersLowerCase:"至少使用一個小寫字母。",lettersUpperCase:"至少使用一個大寫字母。",numbers1:"至少使用一個數字。",numbers3:"至少使用三個數字。",specialChar1:"至少使用一個特殊字元(如:!,@,#,$,%,^,&,*,?,_,~)。",specialChar2:"至少使用兩個特殊字元(如:!,@,#,$,%,^,&,*,?,_,~)。",comboUpperAndLower:"使用大寫和小寫字元。",comboLettersAndNumbers:"使用數字與字元。",comboLettersNumbersSpecial:"使用數字、字元與特殊字元。",yourPasswordIsStrong:"增加長度,使其變得更強。",passwordStrength:"密碼強度為%%strength%%。",strengthVeryStrong:"非常強",strengthStrong:"強",strengthVeryWeak:"非常弱",strengthWeak:"弱",strengthMedium:"中等",hidePassword:"隱藏密碼",showPassword:"顯示密碼",generateButton:"生成",copyButtonHint:"複製密碼",copySuccessToast:"密碼已複製",generateButtonHint:"生成強的密碼"},InPlaceEdit:{cancelButtonHint:"放棄變更",editButtonHint:"編輯數值",okButtonHint:"儲存變更"},InputNumber:{decrement:"Decrement",increment:"Increment"},InputFile:{browseButton:"選擇檔案……"},Layout:{openSidebar:"Expand sidebar",closeSidebar:"Collapse sidebar"},List:{totalRows:"共計 %%totalRows%% 個項目",toggleAllRows:"Toggle all rows",toggleRow:"Toggle row",selectedRows:"已選定 %%selectedRows%%(共計: %%totalRows%%)個項目",all:"全部",allItemsOnPageSelected:"已選擇頁面上所有的項目",allItemsSelected:"已選擇所有項目",selectAllItems:"選擇所有項目",selectAllItemsOnPage:"選擇頁面上所有的項目",deselectAll:"取消選擇",selectRow:"Select row",selectAllRows:"Select all rows",sort:"Sort by %%columnName%% column"},ListActions:{menuButton:"Open menu"},ListEmptyView:{filteredTitle:"找不到符合篩檢程式的任何項目",emptyTitle:"看來這裡什麼都沒有",filteredDescription:"最佳化查詢或從篩檢程式中移除一些標準,然後重試。"},ListOperation:{cancelButton:"取消"},Panel:{collapse:"Collapse",expand:"Expand"},Pagination:{totalShort:"共 %%total%% 項",itemsPerPage:"每頁的項目",all:"全部",total:"第 %%current%% 頁,共 %%total%% 頁",enterPageNumber:"Enter page number"},Popover:{closeButton:"Close"},ProgressDialog:{closeButton:"關閉",cancelButton:"取消"},Section:{collapse:"Collapse",closeButton:"Close",expand:"Expand"},Select:{clearButton:"Clear",noOptions:"無選項",placeholder:"選擇……"},SearchBar:{clearButton:"Clear",searchButton:"Search",collapseSearch:"Hide search input",expandSearch:"Show search input",searchInput:"Search"},SpotPopup:{total:"%%current%%(共計 %%total%%)"},SwitchesPanelItem:{showDescription:"Show description"},Tabs:{closeButton:"Close tab"},Toaster:{closeGroup:"關閉群組"},Toast:{closeButton:"Close"}}}},Ie="en-US";let Te=Ie;const De=()=>(Ce[Te]??Object.values(Ce).find((({language:e})=>e===`${Te}`.toLocaleLowerCase()))??Ce[Ie])?.messages,Pe=(e,t={})=>{const n=[];let s,a=!1;for(;s=e.match(/%%(\w+)%%/);){const{index:i=0}=s;i>0&&n.push(e.substr(0,i));const r=t[s[1]];void 0===r?n.push(s[0]):"object"==typeof r&&(0,R.isValidElement)(r)?(n.push((0,R.cloneElement)(r,{key:s[1]})),a=!0):n.push(r),e=e.substr(i+s[0].length)}return""!==e&&n.push(e),a?n:n.join("")},Oe=(e,t)=>{const[n,...s]=e.split("."),a=t[n];return"object"==typeof a&&s.length?Oe(s.join("."),a):t[e]},Le=e=>(t,n={},s,a)=>{if("string"!=typeof t)return"";let i=Oe(t,e);return"string"!=typeof i&&a&&(i=Oe(t,a)),"string"!=typeof i&&(i="string"==typeof s?s:`[${t}]`),Pe(i,n)},Me=(0,R.createContext)(void 0);class Ee extends R.PureComponent{getChildContext(){const{messages:e}=this.props;return{locale:{lmsg:Le(e)}}}render(){const{children:e}=this.props;return(0,L.jsx)(Me.Provider,{value:this.getChildContext(),children:e})}}(0,Y.A)(Ee,"childContextTypes",{locale:je().object});const Re=Ee,Ue=e=>{const t=(0,R.useContext)(Me);return(0,R.useCallback)(((n,s,a,i)=>t||i?(t?.locale.lmsg??Le({}))(e?`${e}.${n}`:n,s,a,i):"string"==typeof a?Pe(a,s):`[${n}]`),[t,e])},Ne=e=>{const t=Ue(e);return(e,n,s)=>{const a=De();return t(e,n,s,a)}},Fe=({baseClassName:e=`${B.CLS_PREFIX}alert`,className:t,intent:n,children:s,onClose:a,...i})=>{const r=Ne("Alert");return(0,L.jsxs)("div",{className:F()(e,{[`${e}--${n}`]:n},t),role:"warning"===n||"danger"===n?"alert":"status",...i,children:[a&&(0,L.jsx)("button",{"aria-label":r("close"),type:"button",className:"close",onClick:a}),s]})},Be=({baseClassName:e=`${B.CLS_PREFIX}auxiliary-actions`,className:t,separator:n=(0,L.jsx)("span",{className:`${e}__separator`,children:" | "}),children:s,...a})=>(0,L.jsx)("span",{className:F()(e,t),...a,children:R.Children.toArray(s).reduce(((e,t,s)=>{let a=t;return(0,R.isValidElement)(t)&&(a=(0,R.cloneElement)(t,{role:"button"})),0===e.length?[a]:[...e,(0,R.isValidElement)(n)?(0,R.cloneElement)(n,{key:s}):n,a]}),[])}),Ye="span",He=({baseClassName:e=`${B.CLS_PREFIX}label`,children:t,className:n,component:s=Ye,icon:a,intent:i="inactive",view:r,size:o,caps:l,...c})=>{a=xe.create(a,{className:`${e}__icon`,size:"lg"===o?"16":"12"}),void 0!==l||o&&"sm"!==o||(l=!0);let u=s;u===Ye&&c.onClick&&(u="button");const d={};return"button"===u&&(d.type="button"),(0,L.jsxs)(u,{className:F()(e,{[`${e}--${r}`]:r,[`${e}--${o}`]:o,[`${e}--${i}`]:i,[`${e}--caps`]:l},n),...d,...c,children:[a,t&&(0,L.jsx)("span",{className:`${e}__content`,children:t})]})},Ve=({baseClassName:e=`${B.CLS_PREFIX}badge`,className:t,children:n,label:s,intent:a,hidden:i,...r})=>{const o=!s&&0!==s;if(R.Children.toArray(n).length&&!i){if((0,R.isValidElement)(s)||(s=(0,L.jsx)(He,{intent:"danger",children:s})),(0,R.isValidElement)(s)){const t={className:F()(`${e}__value`,{[`${e}__value--dot`]:o},s.props.className)};!a||s.type!==He&&s.type!==xe||(t.intent=a),s=(0,R.cloneElement)(s,t)}}else s=null;return(0,L.jsxs)("div",{className:F()(e,t),...r,children:[(0,L.jsx)("div",{children:n}),s]})};var We=r(34743),$e=r(40961);const ze=(0,R.createContext)(0),qe=(0,R.createContext)(void 0),Ge=({baseClassName:e=`${B.CLS_PREFIX}layer`,className:t,children:n,innerRef:s,level:a=0,...i})=>{const r=(0,R.useContext)(ze),o=(0,R.useContext)(qe)||document.body;return(0,$e.createPortal)((0,L.jsx)(ze.Provider,{value:r+a,children:(0,L.jsx)("div",{className:F()(e,t),ref:s,...i,children:(0,R.isValidElement)(n)?(0,R.cloneElement)(n,{style:{...n.props.style,zIndex:r+a}}):n})}),o)},Ke=e=>null!==e&&!(e instanceof HTMLElement),Qe=({title:e,visible:t,virtualElement:n,trigger:s,onEscapeKeyDown:a,className:i,style:r,id:o,...l})=>{(e=>{const t=(0,R.useRef)(e);t.current=e,(0,R.useEffect)((()=>{const e=e=>{"Escape"===e.key&&t.current?.(e)};return document.addEventListener("keydown",e,{capture:!0}),()=>document.removeEventListener("keydown",e,{capture:!0})}),[])})(a);const{refs:c,floatingStyles:u}=(0,We.we)({middleware:[(0,We.cY)((({placement:e,elements:t})=>{if(!Ke(t.reference))return{mainAxis:8};const[n]=e.split("-");return{mainAxis:"bottom"===n?16:8,alignmentAxis:8}})),(0,We.UU)((({elements:e})=>{let t=["bottom-end","bottom","top-start","top-end","top"];return Ke(e.reference)||(t=["top-start","top-end","bottom","bottom-start","bottom-end","right","left"]),{padding:5,fallbackPlacements:t}}))],placement:n?"bottom-start":"top",elements:{reference:n||s}});return(0,L.jsx)(Ge,{level:B.Z_INDEX_TOOLTIP,children:(0,L.jsx)("span",{ref:c.setFloating,id:o,className:i,style:{...r,visibility:t?"visible":"hidden",...u},role:"tooltip",...l,children:e})})},Je=({asLabel:e,title:t,ready:n,id:s})=>e?"string"==typeof t?{"aria-label":t}:{"aria-labelledby":n?s:void 0}:{"aria-describedby":n?s:void 0},Xe=({title:e,children:t,delay:n=550,asLabel:s=!1,className:a,baseClassName:i=`${B.CLS_PREFIX}tooltip`,...r})=>{const[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(!1),[d,p]=(0,R.useState)(null),h=(0,R.useId)(),m=(0,R.useRef)(null),g=(0,R.useRef)(!1),f=()=>{m.current&&(clearTimeout(m.current),m.current=null)};(0,R.useEffect)((()=>()=>f()),[]);const[b,v,y]=(()=>{const[e,t]=(0,R.useState)(null);return[e,({clientX:e,clientY:n})=>{t({getBoundingClientRect:()=>({width:0,height:0,x:e,y:n,left:e,right:e,top:n,bottom:n})})},()=>t(null)]})(),S=()=>{f(),u(!0)},w=()=>{f(),u(!1),l(!1),y()};return(0,L.jsxs)(L.Fragment,{children:[(0,R.cloneElement)(t,{onPointerEnter:K(t.props.onPointerEnter,(e=>{"touch"!==e.pointerType&&(v(e),l(!0),m.current=setTimeout((()=>S()),n))})),onPointerMove:K(t.props.onPointerMove,(e=>{v(e)})),onPointerLeave:K(t.props.onPointerLeave,w),onPointerUp:K(t.props.onPointerUp,(()=>{g.current=!1})),onPointerDown:K(t.props.onPointerDown,(()=>{w(),g.current=!0})),onFocus:K(t.props.onFocus,(e=>{if(g.current)return;if(!ae(e.target)&&!ae(e.currentTarget))return;l(!0),p(e.currentTarget);const t=(e=>{const t=e.getAttribute("data-pul-focus-returned");return t?parseInt(t,10):0})(e.target);t?m.current=setTimeout((()=>S()),t):S()})),onBlur:K(t.props.onBlur,w),...Je({asLabel:s,title:e,ready:o,id:r.id??h})}),o&&(0,L.jsx)(Qe,{title:e,className:F()(i,a),...r,id:r.id??h,visible:c,virtualElement:b,trigger:d,onEscapeKeyDown:w})]})},Ze=(0,R.createContext)(void 0);Ze.displayName="ResponsiveContext";const et=Ze,tt={defaultProps:{size:void 0}},nt=(0,R.createContext)(tt),st=e=>({...tt,...e,defaultProps:{...tt.defaultProps,...e.defaultProps||{}}}),at=nt,it={"customize-order":"arrows-four-directions",download:"arrow-down-tray",edit:"pencil",folder:"folder-closed","globe-alt":"globe",import:"arrow-down-in",invisible:"eye-closed",link:"chain",lock:"lock-closed","ok-circle":"check-mark-circle","question-circle":"question-mark-circle","security-scan":"shield",settings:"sliders",suspend:"sleep",unlock:"lock-open",upload:"arrow-up-tray",visible:"eye"},rt=({baseClassName:e,icon:t,size:n,empty:s})=>xe.create(it[t]||t,{className:`${e}__icon`,size:"lg"===n||s?"16":"12"}),ot=({baseClassName:e,size:t,caret:n})=>{let s;return s="boolean"==typeof n&&n?(0,L.jsx)(xe,{name:"chevron-down",size:"lg"===t?"16":"12"}):n,(0,R.isValidElement)(s)&&(s=(0,R.cloneElement)(s,{className:F()(`${e}__caret`,s.props.className)})),s},lt=["size","intent","ghost","selected","onToggle","state","disabled","tooltip","icon","caret","fill","children","component","className","baseClassName","arrow","onClick"],ct=(0,R.forwardRef)((({baseClassName:e=`${B.CLS_PREFIX}button`,className:t,component:n,size:s,intent:a,ghost:i=!1,selected:r,onToggle:o,state:l,icon:c,caret:u,fill:d=!1,tooltip:p,tooltipAsLabel:h,children:m,arrow:g,disabled:f=!1,...b},v)=>{const y=n||"button",[S,w]=(0,R.useState)(!1),x=(0,R.useContext)(et),A=(0,R.useContext)(at),_=s||A.defaultProps.size,k={};"button"===y?k.type="button":"a"===y&&(k.role="button",k.tabIndex=0,f&&(b.href=void 0)),b.onClick&&f&&(b.onClick=e=>{e.preventDefault()});let j=m,C=p;x&&c&&m&&(j=null,p||(C=m)),!b.onClick&&o&&(b.onClick=e=>{e.preventDefault(),o((w(!S),!S))});const I=void 0===r?S:r;(void 0!==r||o)&&(k["aria-pressed"]=`${I}`);const T="forward"===g||"backward"===g,D="button"===y&&f&&p;let P=(0,L.jsxs)(y,{ref:v,role:"button"===y?void 0:"button",className:F()(e,{[`${e}--${_}`]:_,[`${e}--${a}`]:a&&!i,[`${e}--ghost`]:i,[`${e}--${l}`]:l,[`${e}--selected`]:I,[`${e}--disabled`]:f,[`${e}--empty`]:!j,[`${e}--caret`]:u,[`${e}--fill`]:d,[`${e}--arrow ${e}--arrow-${g}`]:T&&!i,[`${e}--on-dark`]:(0,R.useContext)(ce)},t),disabled:D?void 0:f,"aria-disabled":D?"true":void 0,...k,...b,children:[(0,L.jsxs)("span",{className:`${e}__inner`,children:["loading"===l?(0,L.jsx)(Ae,{className:`${e}__spinner`}):rt({baseClassName:e,icon:c,size:_,empty:!j}),(0,L.jsx)("span",{children:j}),ot({baseClassName:e,size:_,caret:u})]}),T&&!i&&(0,L.jsx)("span",{className:`${e}__arrow`})]});return C&&(P=(0,L.jsx)(Xe,{title:C,asLabel:h,children:P})),P}));ct.displayName="Button";const ut=ct,dt=({baseClassName:e=`${B.CLS_PREFIX}button-group`,className:t,children:n,innerRef:s,...a})=>(0,L.jsx)("div",{className:F()(e,t),ref:s,...a,children:n});var pt=r(98587),ht=r(63662);function mt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,ht.A)(e,t)}function gt(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const ft=R.createContext(null);var bt=function(e){return e.scrollTop},vt="unmounted",yt="exited",St="entering",wt="entered",xt="exiting",At=function(e){function t(t,n){var s;s=e.call(this,t,n)||this;var a,i=n&&!n.isMounting?t.enter:t.appear;return s.appearStatus=null,t.in?i?(a=yt,s.appearStatus=St):a=wt:a=t.unmountOnExit||t.mountOnEnter?vt:yt,s.state={status:a},s.nextCallback=null,s}mt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vt?{status:yt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==St&&n!==wt&&(t=St):n!==St&&n!==wt||(t=xt)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,s=this.props.timeout;return e=t=n=s,null!=s&&"number"!=typeof s&&(e=s.exit,t=s.enter,n=void 0!==s.appear?s.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===St){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:$e.findDOMNode(this);n&&bt(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yt&&this.setState({status:vt})},n.performEnter=function(e){var t=this,n=this.props.enter,s=this.context?this.context.isMounting:e,a=this.props.nodeRef?[s]:[$e.findDOMNode(this),s],i=a[0],r=a[1],o=this.getTimeouts(),l=s?o.appear:o.enter;e||n?(this.props.onEnter(i,r),this.safeSetState({status:St},(function(){t.props.onEntering(i,r),t.onTransitionEnd(l,(function(){t.safeSetState({status:wt},(function(){t.props.onEntered(i,r)}))}))}))):this.safeSetState({status:wt},(function(){t.props.onEntered(i)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),s=this.props.nodeRef?void 0:$e.findDOMNode(this);t?(this.props.onExit(s),this.safeSetState({status:xt},(function(){e.props.onExiting(s),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:yt},(function(){e.props.onExited(s)}))}))}))):this.safeSetState({status:yt},(function(){e.props.onExited(s)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(s){n&&(n=!1,t.nextCallback=null,e(s))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:$e.findDOMNode(this),s=null==e&&!this.props.addEndListener;if(n&&!s){if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=a[0],r=a[1];this.props.addEndListener(i,r)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===vt)return null;var t=this.props,n=t.children,s=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,pt.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return R.createElement(ft.Provider,{value:null},"function"==typeof n?n(e,s):R.cloneElement(R.Children.only(n),s))},t}(R.Component);function _t(){}At.contextType=ft,At.propTypes={},At.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:_t,onEntering:_t,onEntered:_t,onExit:_t,onExiting:_t,onExited:_t},At.UNMOUNTED=vt,At.EXITED=yt,At.ENTERING=St,At.ENTERED=wt,At.EXITING=xt;const kt=At;var jt=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return s=t,void((n=e).classList?n.classList.remove(s):"string"==typeof n.className?n.className=gt(n.className,s):n.setAttribute("class",gt(n.className&&n.className.baseVal||"",s)));var n,s}))},Ct=function(e){function t(){for(var t,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(t=e.call.apply(e,[this].concat(s))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var s=t.resolveArguments(e,n),a=s[0],i=s[1];t.removeClasses(a,"exit"),t.addClass(a,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var s=t.resolveArguments(e,n),a=s[0],i=s[1]?"appear":"enter";t.addClass(a,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var s=t.resolveArguments(e,n),a=s[0],i=s[1]?"appear":"enter";t.removeClasses(a,i),t.addClass(a,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,s="string"==typeof n,a=s?(s&&n?n+"-":"")+e:n[e];return{baseClassName:a,activeClassName:s?a+"-active":n[e+"Active"],doneClassName:s?a+"-done":n[e+"Done"]}},t}mt(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var s=this.getClassNames(t)[n+"ClassName"],a=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&a&&(s+=" "+a),"active"===n&&e&&bt(e),s&&(this.appliedClasses[t][n]=s,function(e,t){e&&t&&t.split(" ").forEach((function(t){return s=t,void((n=e).classList?n.classList.add(s):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,s)||("string"==typeof n.className?n.className=n.className+" "+s:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+s)));var n,s}))}(e,s))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],s=n.base,a=n.active,i=n.done;this.appliedClasses[t]={},s&&jt(e,s),a&&jt(e,a),i&&jt(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,pt.A)(e,["classNames"]));return R.createElement(kt,(0,b.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(R.Component);Ct.defaultProps={classNames:""},Ct.propTypes={};const It=Ct,Tt=({baseClassName:e=`${B.CLS_PREFIX}checkbox`,className:t,children:n,onChange:s,tooltip:a,checked:i,defaultChecked:r,disabled:o=!1,name:l,indeterminate:c=!1,inputProps:u,rightAddon:d,...p})=>{let h=(0,L.jsxs)("div",{className:F()(e,{[`${e}--disabled`]:o,[`${e}--indeterminate`]:c},t),...p,children:[(0,L.jsxs)("label",{className:`${e}__label`,children:[(0,L.jsx)("input",{className:`${e}__input`,type:"checkbox",onChange:e=>{!o&&s&&s(e.target.checked)},checked:!c&&i,defaultChecked:r,disabled:o,name:l,...u}),(0,L.jsx)("span",{className:`${e}__indicator`}),n?(0,L.jsx)("span",{className:`${e}__text`,children:n}):null]}),d||null]});return a&&(h=(0,L.jsx)(Xe,{title:a,children:h})),h},Dt=()=>"rtl"===getComputedStyle(document.documentElement).direction;let Pt=!0;class Ot{constructor(e){this.ignoreNodesRef=e,(0,Y.A)(this,"children",[]),(0,Y.A)(this,"addChild",(e=>{this.children.push(e)})),(0,Y.A)(this,"removeChild",(e=>{this.children=this.children.filter((t=>t!==e))})),(0,Y.A)(this,"getIgnoreNodes",(()=>[...this.ignoreNodesRef.current(),...this.children.map((e=>e.getIgnoreNodes())).flat()].filter((e=>e instanceof Node))))}}const Lt=(0,R.createContext)(null),Mt=({onClose:e,ignoreNodes:t,nodeRef:n,children:s})=>{const a=(0,R.useRef)(e);a.current=e;const i=()=>[n?.current??null,...t?.()??[]],r=(0,R.useRef)(i);r.current=i;const o=(0,R.useContext)(Lt),l=(0,R.useRef)(new Ot(r)).current;return(0,R.useEffect)((()=>{const e=e=>{const t=e.target,n=l.getIgnoreNodes(),s=t instanceof Node&&n.some((e=>e.contains(t)));s||a.current?.()};return o?.addChild(l),document.body.addEventListener("click",e,{capture:!0}),()=>{o?.removeChild(l),document.body.removeEventListener("click",e,{capture:!0})}}),[o,l]),(0,L.jsx)(Lt.Provider,{value:l,children:s})};var Et="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,Rt=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Et&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),Ut=Et&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Rt))}};function Nt(e){return e&&"[object Function]"==={}.toString.call(e)}function Ft(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function Bt(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function Yt(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Ft(e),n=t.overflow,s=t.overflowX,a=t.overflowY;return/(auto|scroll|overlay)/.test(n+a+s)?e:Yt(Bt(e))}function Ht(e){return e&&e.referenceNode?e.referenceNode:e}var Vt=Et&&!(!window.MSInputMethodContext||!document.documentMode),Wt=Et&&/MSIE 10/.test(navigator.userAgent);function $t(e){return 11===e?Vt:10===e?Wt:Vt||Wt}function zt(e){if(!e)return document.documentElement;for(var t=$t(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var s=n&&n.nodeName;return s&&"BODY"!==s&&"HTML"!==s?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===Ft(n,"position")?zt(n):n:e?e.ownerDocument.documentElement:document.documentElement}function qt(e){return null!==e.parentNode?qt(e.parentNode):e}function Gt(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,s=n?e:t,a=n?t:e,i=document.createRange();i.setStart(s,0),i.setEnd(a,0);var r,o,l=i.commonAncestorContainer;if(e!==l&&t!==l||s.contains(a))return"BODY"===(o=(r=l).nodeName)||"HTML"!==o&&zt(r.firstElementChild)!==r?zt(l):l;var c=qt(e);return c.host?Gt(c.host,t):Gt(e,qt(t).host)}function Kt(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var s=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||s)[t]}return e[t]}function Qt(e,t){var n="x"===t?"Left":"Top",s="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+s+"Width"])}function Jt(e,t,n,s){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],$t(10)?parseInt(n["offset"+e])+parseInt(s["margin"+("Height"===e?"Top":"Left")])+parseInt(s["margin"+("Height"===e?"Bottom":"Right")]):0)}function Xt(e){var t=e.body,n=e.documentElement,s=$t(10)&&getComputedStyle(n);return{height:Jt("Height",t,n,s),width:Jt("Width",t,n,s)}}var Zt=function(){function e(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}return function(t,n,s){return n&&e(t.prototype,n),s&&e(t,s),t}}(),en=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e};function nn(e){return tn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function sn(e){var t={};try{if($t(10)){t=e.getBoundingClientRect();var n=Kt(e,"top"),s=Kt(e,"left");t.top+=n,t.left+=s,t.bottom+=n,t.right+=s}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?Xt(e.ownerDocument):{},r=i.width||e.clientWidth||a.width,o=i.height||e.clientHeight||a.height,l=e.offsetWidth-r,c=e.offsetHeight-o;if(l||c){var u=Ft(e);l-=Qt(u,"x"),c-=Qt(u,"y"),a.width-=l,a.height-=c}return nn(a)}function an(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=$t(10),a="HTML"===t.nodeName,i=sn(e),r=sn(t),o=Yt(e),l=Ft(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&a&&(r.top=Math.max(r.top,0),r.left=Math.max(r.left,0));var d=nn({top:i.top-r.top-c,left:i.left-r.left-u,width:i.width,height:i.height});if(d.marginTop=0,d.marginLeft=0,!s&&a){var p=parseFloat(l.marginTop),h=parseFloat(l.marginLeft);d.top-=c-p,d.bottom-=c-p,d.left-=u-h,d.right-=u-h,d.marginTop=p,d.marginLeft=h}return(s&&!n?t.contains(o):t===o&&"BODY"!==o.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=Kt(t,"top"),a=Kt(t,"left"),i=n?-1:1;return e.top+=s*i,e.bottom+=s*i,e.left+=a*i,e.right+=a*i,e}(d,t)),d}function rn(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===Ft(e,"position"))return!0;var n=Bt(e);return!!n&&rn(n)}function on(e){if(!e||!e.parentElement||$t())return document.documentElement;for(var t=e.parentElement;t&&"none"===Ft(t,"transform");)t=t.parentElement;return t||document.documentElement}function ln(e,t,n,s){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},r=a?on(e):Gt(e,Ht(t));if("viewport"===s)i=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,s=an(e,n),a=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),r=t?0:Kt(n),o=t?0:Kt(n,"left");return nn({top:r-s.top+s.marginTop,left:o-s.left+s.marginLeft,width:a,height:i})}(r,a);else{var o=void 0;"scrollParent"===s?"BODY"===(o=Yt(Bt(t))).nodeName&&(o=e.ownerDocument.documentElement):o="window"===s?e.ownerDocument.documentElement:s;var l=an(o,r,a);if("HTML"!==o.nodeName||rn(r))i=l;else{var c=Xt(e.ownerDocument),u=c.height,d=c.width;i.top+=l.top-l.marginTop,i.bottom=u+l.top,i.left+=l.left-l.marginLeft,i.right=d+l.left}}var p="number"==typeof(n=n||0);return i.left+=p?n:n.left||0,i.top+=p?n:n.top||0,i.right-=p?n:n.right||0,i.bottom-=p?n:n.bottom||0,i}function cn(e){return e.width*e.height}function un(e,t,n,s,a){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var r=ln(n,s,i,a),o={top:{width:r.width,height:t.top-r.top},right:{width:r.right-t.right,height:r.height},bottom:{width:r.width,height:r.bottom-t.bottom},left:{width:t.left-r.left,height:r.height}},l=Object.keys(o).map((function(e){return tn({key:e},o[e],{area:cn(o[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,s=e.height;return t>=n.clientWidth&&s>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function dn(e,t,n){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return an(n,s?on(t):Gt(t,Ht(n)),s)}function pn(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),s=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+s,height:e.offsetHeight+n}}function hn(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function mn(e,t,n){n=n.split("-")[0];var s=pn(e),a={width:s.width,height:s.height},i=-1!==["right","left"].indexOf(n),r=i?"top":"left",o=i?"left":"top",l=i?"height":"width",c=i?"width":"height";return a[r]=t[r]+t[l]/2-s[l]/2,a[o]=n===o?t[o]-s[c]:t[hn(o)],a}function gn(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function fn(e,t,n){var s=void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var s=gn(e,(function(e){return e[t]===n}));return e.indexOf(s)}(e,"name",n));return s.forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Nt(n)&&(t.offsets.popper=nn(t.offsets.popper),t.offsets.reference=nn(t.offsets.reference),t=n(t,e))})),t}function bn(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=dn(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=un(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=mn(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=fn(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function vn(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function yn(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),s=0;s<t.length;s++){var a=t[s],i=a?""+a+n:e;if(void 0!==document.body.style[i])return i}return null}function Sn(){return this.state.isDestroyed=!0,vn(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[yn("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function wn(e){var t=e.ownerDocument;return t?t.defaultView:window}function xn(e,t,n,s){var a="BODY"===e.nodeName,i=a?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),a||xn(Yt(i.parentNode),t,n,s),s.push(i)}function An(e,t,n,s){n.updateBound=s,wn(e).addEventListener("resize",n.updateBound,{passive:!0});var a=Yt(e);return xn(a,"scroll",n.updateBound,n.scrollParents),n.scrollElement=a,n.eventsEnabled=!0,n}function _n(){this.state.eventsEnabled||(this.state=An(this.reference,this.options,this.state,this.scheduleUpdate))}function kn(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,wn(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function jn(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Cn(e,t){Object.keys(t).forEach((function(n){var s="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&jn(t[n])&&(s="px"),e.style[n]=t[n]+s}))}var In=Et&&/Firefox/i.test(navigator.userAgent);function Tn(e,t,n){var s=gn(e,(function(e){return e.name===t})),a=!!s&&e.some((function(e){return e.name===n&&e.enabled&&e.order<s.order}));if(!a){var i="`"+t+"`",r="`"+n+"`";console.warn(r+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}var Dn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Pn=Dn.slice(3);function On(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Pn.indexOf(e),s=Pn.slice(n+1).concat(Pn.slice(0,n));return t?s.reverse():s}var Ln={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],s=t.split("-")[1];if(s){var a=e.offsets,i=a.reference,r=a.popper,o=-1!==["bottom","top"].indexOf(n),l=o?"left":"top",c=o?"width":"height",u={start:en({},l,i[l]),end:en({},l,i[l]+i[c]-r[c])};e.offsets.popper=tn({},r,u[s])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,s=t.offset,a=e.placement,i=e.offsets,r=i.popper,o=i.reference,l=a.split("-")[0];return n=jn(+s)?[+s,0]:function(e,t,n,s){var a=[0,0],i=-1!==["right","left"].indexOf(s),r=e.split(/(\+|\-)/).map((function(e){return e.trim()})),o=r.indexOf(gn(r,(function(e){return-1!==e.search(/,|\s/)})));r[o]&&-1===r[o].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==o?[r.slice(0,o).concat([r[o].split(l)[0]]),[r[o].split(l)[1]].concat(r.slice(o+1))]:[r];return(c=c.map((function(e,s){var a=(1===s?!i:i)?"height":"width",r=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,r=!0,e):r?(e[e.length-1]+=t,r=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,s){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],r=a[2];return i?0===r.indexOf("%")?nn("%p"===r?n:s)[t]/100*i:"vh"===r||"vw"===r?("vh"===r?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,a,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,s){jn(n)&&(a[t]+=n*("-"===e[s-1]?-1:1))}))})),a}(s,r,o,l),"left"===l?(r.top+=n[0],r.left-=n[1]):"right"===l?(r.top+=n[0],r.left+=n[1]):"top"===l?(r.left+=n[0],r.top-=n[1]):"bottom"===l&&(r.left+=n[0],r.top+=n[1]),e.popper=r,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||zt(e.instance.popper);e.instance.reference===n&&(n=zt(n));var s=yn("transform"),a=e.instance.popper.style,i=a.top,r=a.left,o=a[s];a.top="",a.left="",a[s]="";var l=ln(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);a.top=i,a.left=r,a[s]=o,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),en({},e,n)},secondary:function(e){var n="right"===e?"left":"top",s=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(s=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),en({},n,s)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=tn({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,s=t.reference,a=e.placement.split("-")[0],i=Math.floor,r=-1!==["top","bottom"].indexOf(a),o=r?"right":"bottom",l=r?"left":"top",c=r?"width":"height";return n[o]<i(s[l])&&(e.offsets.popper[l]=i(s[l])-n[c]),n[l]>i(s[o])&&(e.offsets.popper[l]=i(s[o])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Tn(e.instance.modifiers,"arrow","keepTogether"))return e;var s=t.element;if("string"==typeof s){if(!(s=e.instance.popper.querySelector(s)))return e}else if(!e.instance.popper.contains(s))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,l=-1!==["left","right"].indexOf(a),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=pn(s)[c];o[h]-m<r[d]&&(e.offsets.popper[d]-=r[d]-(o[h]-m)),o[d]+m>r[h]&&(e.offsets.popper[d]+=o[d]+m-r[h]),e.offsets.popper=nn(e.offsets.popper);var g=o[d]+o[c]/2-m/2,f=Ft(e.instance.popper),b=parseFloat(f["margin"+u]),v=parseFloat(f["border"+u+"Width"]),y=g-e.offsets.popper[d]-b-v;return y=Math.max(Math.min(r[c]-m,y),0),e.arrowElement=s,e.offsets.arrow=(en(n={},d,Math.round(y)),en(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(vn(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=ln(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),s=e.placement.split("-")[0],a=hn(s),i=e.placement.split("-")[1]||"",r=[];switch(t.behavior){case"flip":r=[s,a];break;case"clockwise":r=On(s);break;case"counterclockwise":r=On(s,!0);break;default:r=t.behavior}return r.forEach((function(o,l){if(s!==o||r.length===l+1)return e;s=e.placement.split("-")[0],a=hn(s);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,p="left"===s&&d(c.right)>d(u.left)||"right"===s&&d(c.left)<d(u.right)||"top"===s&&d(c.bottom)>d(u.top)||"bottom"===s&&d(c.top)<d(u.bottom),h=d(c.left)<d(n.left),m=d(c.right)>d(n.right),g=d(c.top)<d(n.top),f=d(c.bottom)>d(n.bottom),b="left"===s&&h||"right"===s&&m||"top"===s&&g||"bottom"===s&&f,v=-1!==["top","bottom"].indexOf(s),y=!!t.flipVariations&&(v&&"start"===i&&h||v&&"end"===i&&m||!v&&"start"===i&&g||!v&&"end"===i&&f),S=!!t.flipVariationsByContent&&(v&&"start"===i&&m||v&&"end"===i&&h||!v&&"start"===i&&f||!v&&"end"===i&&g),w=y||S;(p||b||w)&&(e.flipped=!0,(p||b)&&(s=r[l+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=s+(i?"-"+i:""),e.offsets.popper=tn({},e.offsets.popper,mn(e.instance.popper,e.offsets.reference,e.placement)),e=fn(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],s=e.offsets,a=s.popper,i=s.reference,r=-1!==["left","right"].indexOf(n),o=-1===["top","left"].indexOf(n);return a[r?"left":"top"]=i[n]-(o?a[r?"width":"height"]:0),e.placement=hn(t),e.offsets.popper=nn(a),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Tn(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=gn(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,s=t.y,a=e.offsets.popper,i=gn(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,o,l=void 0!==i?i:t.gpuAcceleration,c=zt(e.instance.popper),u=sn(c),d={position:a.position},p=function(e,t){var n=e.offsets,s=n.popper,a=n.reference,i=Math.round,r=Math.floor,o=function(e){return e},l=i(a.width),c=i(s.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?u||d||l%2==c%2?i:r:o,h=t?i:o;return{left:p(l%2==1&&c%2==1&&!d&&t?s.left-1:s.left),top:h(s.top),bottom:h(s.bottom),right:p(s.right)}}(e,window.devicePixelRatio<2||!In),h="bottom"===n?"top":"bottom",m="right"===s?"left":"right",g=yn("transform");if(o="bottom"===h?"HTML"===c.nodeName?-c.clientHeight+p.bottom:-u.height+p.bottom:p.top,r="right"===m?"HTML"===c.nodeName?-c.clientWidth+p.right:-u.width+p.right:p.left,l&&g)d[g]="translate3d("+r+"px, "+o+"px, 0)",d[h]=0,d[m]=0,d.willChange="transform";else{var f="bottom"===h?-1:1,b="right"===m?-1:1;d[h]=o*f,d[m]=r*b,d.willChange=h+", "+m}var v={"x-placement":e.placement};return e.attributes=tn({},v,e.attributes),e.styles=tn({},d,e.styles),e.arrowStyles=tn({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return Cn(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&Cn(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,s,a){var i=dn(a,t,e,n.positionFixed),r=un(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",r),Cn(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},Mn={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Ln},En=function(){function e(t,n){var s=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(s.update)},this.update=Ut(this.update.bind(this)),this.options=tn({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(tn({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){s.options.modifiers[t]=tn({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return tn({name:e},s.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Nt(e.onLoad)&&e.onLoad(s.reference,s.popper,s.options,e,s.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return Zt(e,[{key:"update",value:function(){return bn.call(this)}},{key:"destroy",value:function(){return Sn.call(this)}},{key:"enableEventListeners",value:function(){return _n.call(this)}},{key:"disableEventListeners",value:function(){return kn.call(this)}}]),e}();En.Utils=("undefined"!=typeof window?window:r.g).PopperUtils,En.placements=Dn,En.Defaults=Mn;const Rn=En;class Un extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{popperStyle:null,arrowStyle:null,actualPlacement:this.props.placement}),(0,Y.A)(this,"popper",null),(0,Y.A)(this,"contentRef",(0,R.createRef)()),(0,Y.A)(this,"arrowRef",null),(0,Y.A)(this,"extractStyles",(e=>{const{onUpdate:t}=this.props,n={popperStyle:{...e.hide?{visibility:"hidden",pointerEvents:"none"}:void 0,...e.styles,position:e.offsets.popper.position},actualPlacement:e.placement,arrowStyle:e.arrowStyles};this.setState(n),t?.(n)}))}componentDidMount(){this.updatePopper(this.props)}componentDidUpdate(e){const{show:t,boundariesElement:n,placement:s,offset:a,behavior:i,arrow:r,children:o}=this.props;e.show===t&&e.boundariesElement===n&&e.placement===s&&e.offset===a&&e.behavior===i&&e.arrow===r&&e.children===o||setTimeout((()=>{this.updatePopper(this.props)}),0)}componentWillUnmount(){this.popper&&this.popper.destroy()}updatePopper({show:e,boundariesElement:t,placement:n,offset:s,behavior:a,arrow:i,targetRef:r}){if(this.popper&&this.popper.destroy(),!this.contentRef.current||!e)return;const o={placement:n,modifiers:{applyStyle:{enabled:!1},applyReactStyle:{enabled:!0,fn:this.extractStyles,order:900},preventOverflow:{enabled:!0,boundariesElement:t},hide:{enabled:!0},offset:{enabled:!0,offset:s},flip:{enabled:!0,padding:0,behavior:a},arrow:i&&this.arrowRef?{enabled:!0,element:this.arrowRef}:void 0}};let l;l=r&&r.current?r.current:(0,$e.findDOMNode)(this),this.popper=new Rn(l,this.contentRef.current,o)}render(){const{baseClassName:e,className:t,children:n,target:s,targetRef:a,arrow:i,placement:r,behavior:o,offset:l,onUpdate:c,zIndex:u,show:d,boundariesElement:p,style:h,...m}=this.props,{popperStyle:g}=this.state,{arrowStyle:f,actualPlacement:b}=this.state,v=i&&(0,R.cloneElement)(i,{ref:e=>this.arrowRef=e,style:f});return(0,L.jsxs)(R.Fragment,{children:[s,d?(0,L.jsx)(Ge,{level:u,children:(0,L.jsxs)("div",{ref:this.contentRef,className:F()(e,t,`${e}--placement-${b}`),style:{...h,...g||{position:"fixed",opacity:0}},...m,children:[n,v]})}):null]})}}(0,Y.A)(Un,"defaultProps",{show:!0,children:null,arrow:null,placement:"bottom-start",behavior:"flip",offset:"0, 0",onUpdate:null,className:null,baseClassName:`${B.CLS_PREFIX}popper`,zIndex:null,boundariesElement:"window",style:void 0,targetRef:void 0});const Nn=Un,Fn=({className:e,baseClassName:t=`${B.CLS_PREFIX}menu__divider`,...n})=>(0,L.jsx)("div",{className:F()(t,e),role:"separator",...n}),Bn=({className:e,children:t,icon:n,label:s,component:a="div",baseClassName:i=`${B.CLS_PREFIX}menu__base-item`,...r})=>(0,L.jsxs)(a,{className:F()(i,e),...r,children:[(0,L.jsx)("div",{className:`${i}-icon`,children:xe.create(n,{size:de})}),(0,L.jsx)("div",{className:`${i}-content`,children:t}),(0,L.jsx)("div",{className:`${i}-label`,children:s})]}),Yn=({className:e,children:t,onClick:n,icon:s,label:a,tooltip:i,menuRole:r="menu",baseClassName:o=`${B.CLS_PREFIX}menu__item`,disabled:l=!1,active:c=!1,...u})=>{const d=(0,L.jsx)(Bn,{className:F()(o,e,{[`${o}--active`]:c,[`${o}--disabled`]:l}),onClick:e=>{n&&!l&&n(e)},role:"listbox"===r?"option":"menuitem","aria-disabled":l?"true":void 0,tabIndex:l?-1:0,icon:s,label:a,...u,onKeyDown:se({disabled:l,existingHandler:u.onKeyDown}),children:t});return i?J((e=>(0,L.jsx)(Xe,{title:i,children:(0,R.cloneElement)(d,e)}))):d},Hn=({component:e,content:t,children:n,params:s,unsafe:a,fallback:i,namespace:r,translators:o,defaultMessages:l,...c})=>{const u=e||"span",d=Ue(r),p=t||n||"",h=o&&o[p];if(h)return"function"==typeof h?h(s):h;const m=d(p,s,i,l),g={...c};return a?g.dangerouslySetInnerHTML={__html:m}:g.children=m,(0,L.jsx)(u,{...g})},Vn=Hn,Wn=e=>{const t=De();return(0,L.jsx)(Hn,{...e,defaultMessages:t})},$n=e=>{const[t,n]=e.split("-");return n&&Dt()&&-1!==["top","bottom"].indexOf(t)?`${t}-${"start"===n?"end":"start"}`:e},zn=({baseClassName:e=`${B.CLS_PREFIX}dropdown`,className:t,children:n,menu:s,menuPlacement:a="bottom-start",overlay:i=!1,locale:r,onToggle:o,...l})=>{const[c,u]=(0,R.useState)(!1),[d,p]=(0,R.useState)(!1),h=(0,R.useRef)();(0,R.useEffect)((()=>()=>{clearTimeout(h.current)}),[]);const m=()=>{h.current=setTimeout((()=>{u(!1),o?.(!1)}),0)},{enhancedMenu:g,menuRef:f}=((e,{baseClassName:t,onClose:n,overlay:s,locale:a,autoFocus:i})=>{const r=(0,R.useRef)(),o=(0,R.useRef)();(0,R.useEffect)((()=>{r.current&&!s&&(o.current=document.activeElement,setTimeout((()=>{r.current&&r.current.focus()})))}));const l=()=>{o.current&&o.current.focus(),n()};let{children:c}=e.props;s&&(c=[...e.props.children,(0,L.jsx)(Fn,{className:`${t}__overlay-menu-divider`},"divider"),(0,L.jsx)(Yn,{onClick:l,children:(0,L.jsx)(Wn,{namespace:"Dropdown",content:"close",translators:a})},"close")]);const u=(0,R.cloneElement)(e,{onItemClick:K(e.props.onItemClick,l),className:F()(`${t}__menu`,e.props.className),overlay:s,ref:r,children:c,onKeyDown:e=>{switch(e.stopPropagation(),e.key){case"Enter":e.preventDefault(),document.activeElement.click();break;case"Escape":e.preventDefault(),l();break;case"Tab":l()}},autoFocus:i,role:"listbox"});return{enhancedMenu:u,menuRef:r}})(s,{baseClassName:e,onClose:m,overlay:i,locale:r,autoFocus:d}),b=(0,R.useRef)(),v=((e,{onToggle:t,targetRef:n,opened:s})=>{(0,R.isValidElement)(e)&&e.type!==Vn||(e=(0,L.jsx)(ut,{caret:!0,children:e}));let a=!1;return(0,R.cloneElement)(e,{onKeyDown:K(e.props.onKeyDown,(e=>{a=" "===e.key||"Enter"===e.key})),onClick:K(e.props.onClick,(e=>{n.current=e.currentTarget,t(a),a=!1})),"aria-haspopup":"listbox","aria-expanded":s})})(n,{onToggle:e=>{p(e),u(!0),o?.(!0)},targetRef:b,opened:c});return(0,L.jsx)("div",{className:F()(e,{[`${e}--opened`]:c},t),...l,children:i?(0,L.jsxs)(L.Fragment,{children:[v,c&&(0,L.jsx)(Ge,{level:B.Z_INDEX_OVERLAY,children:(0,L.jsx)("div",{className:`${e}__overlay`,children:(0,L.jsx)(Mt,{onClose:m,nodeRef:f,children:(0,L.jsx)("div",{className:`${e}__overlay-menu`,children:g})})})})]}):(0,L.jsx)(Nn,{target:v,targetRef:b,placement:$n(a),show:c,className:`${e}__popper`,zIndex:B.Z_INDEX_DROPDOWN,children:(0,L.jsx)(Mt,{onClose:m,nodeRef:f,children:g})})})},qn=["clock","emoticon-smile","rocket","sand-clock","sleep","web","star"],Gn=(e,t,n)=>{const s=(0,R.useRef)(null),[a,i]=(0,R.useState)(t);return(0,R.useEffect)((()=>{const t=s.current,a=()=>{n()&&i((t=>(t+2)%e.length))};return t&&t.addEventListener("animationiteration",a),()=>{t&&t.removeEventListener("animationiteration",a)}}),[e]),[e[a],s]},Kn=({baseClassName:e=`${B.CLS_PREFIX}icons-loader`,className:t,icons:n,size:s,style:a,...i})=>{const r=(0,R.useRef)("icon1");n?.length?1===n.length&&(n=[n[0],n[0]]):n=qn;const[o,l]=Gn(n,0,(()=>"icon1"===r.current&&(r.current="icon2",!0))),[c,u]=Gn(n,1,(()=>"icon2"===r.current&&(r.current="icon1",!0)));return(0,L.jsxs)("div",{className:F()(e,t),style:{...a,"--icons-loader-size":s||void 0},...i,children:[(0,L.jsx)("div",{className:F()(`${e}__icon`,`${e}__icon--1`),ref:l,children:xe.create(o,{size:s||"64"})}),(0,L.jsx)("div",{className:F()(`${e}__icon`,`${e}__icon--2`),ref:u,children:xe.create(c,{size:s||"64"})})]})},Qn=({baseClassName:e=`${B.CLS_PREFIX}content-loader`,className:t,text:n,overlay:s=!1,children:a,backdrop:i=!1,blur:r=!1,loading:o=!0,loader:l="spinner",spinner:c,...u})=>{if(!o)return a;R.Children.toArray(a).length&&s&&(a=(0,L.jsx)("div",{className:F()(`${e}__content`,r&&`${e}__content--blur`),children:a}));const{loaderType:d,loaderProps:p}=(e=>{let t,n={};return"object"==typeof e&&({type:t,...n}=e),"string"==typeof e&&(t=e),{loaderType:t,loaderProps:n}})(l);return p.className=F()(`${e}__indicator`,{[`${e}__indicator--sm`]:"spinner"===d&&c&&"sm"===c.size}),(0,L.jsxs)("div",{className:F()(e,!R.Children.toArray(a).length&&s&&`${e}--overlay`,t),...u,children:[a,(0,L.jsx)("div",{className:F()(`${e}__container`,s&&`${e}__overlay`,i&&`${e}__backdrop`),children:(0,L.jsxs)("div",{className:F()(`${e}__loader`,`${e}__loader--${d}`),children:["spinner"===d&&(0,L.jsx)(Ae,{...p}),"icons"===d&&(0,L.jsx)(Kn,{...p}),n&&(0,L.jsx)("div",{className:`${e}__text`,children:n})]})})]})},Jn=({icon:e,baseClassName:t=`${B.CLS_PREFIX}card-button`,...n})=>(0,L.jsx)(ut,{icon:xe.create(e),baseClassName:t,...n});Jn.propTypes={baseClassName:je().string,icon:je().oneOfType([je().string,je().object,je().element]).isRequired};const Xn=Jn,Zn=r.p+"images/no-image.svg",es=({background:e,image:t,padding:n=0,alt:s,children:a,className:i,baseClassName:r=`${B.CLS_PREFIX}preview-panel`,html:o,...l})=>{const c=(({image:e,background:t})=>e?{url:e,type:"image"}:t?{url:t,type:"background"}:{url:Zn,type:"noImage"})({image:t,background:e}),[u,d]=(0,R.useState)("noImage"===c.type?"success":"loading");return(0,R.useEffect)((()=>{let e=d;const t=()=>{e=()=>{}};return"noImage"===c.type?(e("success"),t):(d("loading"),((e,{onSuccess:t,onFailure:n})=>{const s=new Image;s.onload=t,s.onerror=n,s.src=e})(c.url,{onSuccess:()=>e("success"),onFailure:()=>e("failure")}),t)}),[c.type,c.url]),(0,L.jsxs)("div",{className:F()(r,{[`${r}--background`]:"background"===c.type},`${r}--${u}`,i),...l,...(()=>{if("background"!==c.type)return null;let e;switch(u){case"success":e=c.url;break;case"failure":e=Zn;break;default:return null}return{style:{...l.style,backgroundImage:`url("${e}")`}}})(),children:["loading"===u?(0,L.jsx)("div",{className:`${r}__loader`,children:(0,L.jsx)(Qn,{})}):null,(()=>{if("image"!==c.type&&"noImage"!==c.type)return null;let e;switch(u){case"success":e=c.url;break;case"failure":e=Zn}const t={};return"loading"!==u&&(t.src=e,s&&(t.alt=s)),n&&(t.style={padding:`${n instanceof Array?n.join("px "):n}px`}),t.src?(0,L.jsx)("img",{className:`${r}__image`,...t}):null})(),(0,L.jsx)("div",{className:F()(`${r}__content`,{[`${r}__content--empty`]:!a}),children:(0,L.jsx)("div",{className:`${r}__content-inner`,children:a})})]})},ts="tile",ns="extended",ss="row";class as extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{}),(0,Y.A)(this,"rootRef",(0,R.createRef)()),(0,Y.A)(this,"handleToggleView",(()=>{const{view:e}=this.state;this.setState({view:e===ns?ss:ns})}))}static getDerivedStateFromProps(e,t){const{view:n}=e,{prevView:s}=t,a={};return n!==s&&(a.view=n),a.prevView=n,a}renderSelection(){const{baseClassName:e,selection:t}=this.props;if(!t)return null;const{isSelected:n,onSelectionChange:s}=t;return(0,L.jsx)("div",{className:`${e}__selection`,children:(0,L.jsx)(Tt,{checked:n,onChange:e=>s({isSelected:e}),children:this.isExtended()?(0,L.jsx)(Wn,{content:"Card.select"}):null})})}renderTitle(){const{baseClassName:e,title:t,titleLink:n}=this.props,s="string"==typeof n?{href:n}:n;return(0,L.jsxs)("div",{className:`${e}__title`,children:[(0,L.jsx)("span",{className:`${e}__title-text`,children:t}),s&&(0,L.jsx)(Xn,{component:"a",icon:"chain",tooltip:(0,L.jsx)(Wn,{content:"Card.titleLinkTooltip"}),...s}),this.isExtended()&&this.renderTitleLabels()]})}renderTitleLabels(){const{baseClassName:e,titleLabels:t}=this.props;return 0===t.length?null:(0,L.jsx)("div",{className:`${e}__title-labels`,children:R.Children.map(t,(t=>(0,R.cloneElement)(t,{className:F()(`${e}__label`,t.props.className)})))})}renderLabels(){const{baseClassName:e,labels:t}=this.props;return 0===t.length?null:(0,L.jsx)("div",{className:`${e}__labels`,children:R.Children.map(t,(t=>(0,R.cloneElement)(t,{className:F()(`${e}__label`,t.props.className)})))})}renderHeader(){const{baseClassName:e}=this.props;return(0,L.jsxs)("div",{className:`${e}__header`,children:[this.renderSelection(),this.renderTitle(),this.isExtended()&&this.renderLabels(),this.renderButtons()]})}renderRowHeader(){const{baseClassName:e,subtitle:t}=this.props;return(0,L.jsxs)("div",{className:`${e}__header`,children:[t&&(0,L.jsx)("div",{className:`${e}__subtitle`,children:t}),this.renderTitle()]})}renderContent(){const{baseClassName:e,children:t}=this.props;return(0,L.jsx)("div",{className:`${e}__main`,children:(0,L.jsx)("div",{className:`${e}__main-content`,children:t})})}isExtended(){const{view:e}=this.state;return!this.isTile()&&e===ns}isTile(){const{view:e}=this.state;return e===ts}isRow(){const{view:e}=this.state;return!this.isTile()&&e===ss}renderButtons(){const{baseClassName:e,rowContent:t,menu:n,buttons:s}=this.props,a=[];return this.isRow()||s.forEach(((e,t)=>{a.push((0,L.jsx)(Xn,{...e},e.key||t))})),n&&a.push((0,L.jsx)(zn,{menu:n,menuPlacement:"bottom-end",children:(0,L.jsx)(Xn,{icon:"menu"})},"menu")),t&&!this.isTile()&&a.push((0,L.jsx)(Xn,{icon:{name:"chevron-down",flipVertical:this.isExtended()},onClick:this.handleToggleView,tooltip:this.isExtended()?(0,L.jsx)(Wn,{content:"Card.collapseCardTooltip"}):(0,L.jsx)(Wn,{content:"Card.expandCardTooltip"})},"toggleView")),0===a.length?null:(0,L.jsx)("div",{className:`${e}__buttons`,children:a})}renderSideHeader(){const{sideHeader:e,baseClassName:t}=this.props;if(!e)return null;let n=e;if(e.type===es){const s={className:F()(e.props.className,`${t}__preview-panel`)};this.isRow()&&(s.children=null),n=(0,R.cloneElement)(e,s)}return(0,L.jsx)("div",{className:`${t}__side-header`,children:n})}renderSideContent(){const{sideContent:e,baseClassName:t}=this.props;return e?(0,L.jsx)("div",{className:`${t}__side-content`,children:e}):null}renderRow(){const{baseClassName:e,rowContent:t}=this.props;return(0,L.jsx)("div",{className:`${e}__inner`,children:(0,L.jsxs)("div",{className:`${e}__body`,children:[this.renderSelection(),this.renderSideHeader(),this.renderRowHeader(),(0,L.jsx)("div",{className:`${e}__main`,children:(0,L.jsx)("div",{className:`${e}__main-content`,children:t})}),this.renderButtons()]})})}renderTile(){const{baseClassName:e}=this.props;return(0,L.jsxs)("div",{className:`${e}__inner`,children:[this.renderHeader(),(0,L.jsxs)("div",{className:`${e}__body`,children:[this.renderSideHeader(),this.renderContent()]}),this.renderSideContent()]})}renderExtended(){const{baseClassName:e}=this.props,t=this.renderSideHeader(),n=this.renderSideContent();return(0,L.jsxs)("div",{className:`${e}__inner`,children:[this.renderHeader(),(0,L.jsxs)("div",{className:`${e}__body`,children:[t||n?(0,L.jsxs)("div",{className:`${e}__side`,children:[t,n]}):null,this.renderContent()]})]})}render(){const{baseClassName:e,className:t,children:n,view:s,intent:a,title:i,subtitle:r,titleLink:o,titleLabels:l,selection:c,rowContent:u,sideHeader:d,sideContent:p,buttons:h,menu:m,labels:g,progress:f,...b}=this.props;return(0,L.jsx)(It,{classNames:`${e}-`,in:this.isExtended(),timeout:300,nodeRef:this.rootRef,children:(0,L.jsxs)("div",{className:F()(e,{[`${e}--extended`]:this.isExtended(),[`${e}--tile`]:this.isTile(),[`${e}--row`]:this.isRow(),[`${e}--${a}`]:a,[`${e}--progress`]:f},t),...b,ref:this.rootRef,children:[this.isExtended()&&this.renderExtended(),this.isTile()&&this.renderTile(),this.isRow()&&this.renderRow(),f&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0,text:!0===f?null:f})]})})}}as.propTypes={children:je().node,view:je().oneOf([ns,ts,ss]),intent:je().oneOf(["warning","danger","inactive"]),title:je().node.isRequired,titleLink:je().oneOfType([je().string,je().object]),titleLabels:je().arrayOf(je().element),subtitle:je().node,labels:je().arrayOf(je().element),buttons:je().arrayOf(je().shape({icon:je().oneOfType([je().string,je().object,je().element]).isRequired,onClick:je().func.isRequired,tooltip:je().node})),menu:je().element,selection:je().shape({isSelected:je().bool.isRequired,onSelectionChange:je().func.isRequired}),sideHeader:je().element,sideContent:je().element,rowContent:je().any,progress:je().oneOfType([je().bool,je().node]),className:je().string,baseClassName:je().string},as.defaultProps={children:null,view:ns,intent:null,subtitle:"",titleLink:null,titleLabels:[],labels:[],buttons:[],menu:null,selection:null,sideHeader:null,sideContent:null,rowContent:null,progress:!1,className:null,baseClassName:`${B.CLS_PREFIX}card`};const is=as;var rs=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,s){return e[0]===t&&(n=s,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),s=this.__entries__[n];return s&&s[1]},t.prototype.set=function(t,n){var s=e(this.__entries__,t);~s?this.__entries__[s][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,s=e(n,t);~s&&n.splice(s,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,s=this.__entries__;n<s.length;n++){var a=s[n];e.call(t,a[1],a[0])}},t}()}(),os="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,ls=void 0!==r.g&&r.g.Math===Math?r.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),cs="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(ls):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},us=["top","right","bottom","left","width","height","size","weight"],ds="undefined"!=typeof MutationObserver,ps=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,s=0;function a(){t&&(t=!1,e()),n&&r()}function i(){cs(a)}function r(){var e=Date.now();if(t){if(e-s<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);s=e}return r}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){os&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ds?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){os&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;us.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),hs=function(e,t){for(var n=0,s=Object.keys(t);n<s.length;n++){var a=s[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},ms=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||ls},gs=Ss(0,0,0,0);function fs(e){return parseFloat(e)||0}function bs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+fs(e["border-"+n+"-width"])}),0)}var vs="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof ms(e).SVGGraphicsElement}:function(e){return e instanceof ms(e).SVGElement&&"function"==typeof e.getBBox};function ys(e){return os?vs(e)?function(e){var t=e.getBBox();return Ss(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return gs;var s=ms(e).getComputedStyle(e),a=function(e){for(var t={},n=0,s=["top","right","bottom","left"];n<s.length;n++){var a=s[n],i=e["padding-"+a];t[a]=fs(i)}return t}(s),i=a.left+a.right,r=a.top+a.bottom,o=fs(s.width),l=fs(s.height);if("border-box"===s.boxSizing&&(Math.round(o+i)!==t&&(o-=bs(s,"left","right")+i),Math.round(l+r)!==n&&(l-=bs(s,"top","bottom")+r)),!function(e){return e===ms(e).document.documentElement}(e)){var c=Math.round(o+i)-t,u=Math.round(l+r)-n;1!==Math.abs(c)&&(o-=c),1!==Math.abs(u)&&(l-=u)}return Ss(a.left,a.top,o,l)}(e):gs}function Ss(e,t,n,s){return{x:e,y:t,width:n,height:s}}var ws=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ss(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=ys(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),xs=function(e,t){var n=function(e){var t=e.x,n=e.y,s=e.width,a=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,r=Object.create(i.prototype);return hs(r,{x:t,y:n,width:s,height:a,top:n,right:t+s,bottom:a+n,left:t}),r}(t);hs(this,{target:e,contentRect:n})},As=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new rs,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ms(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new ws(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof ms(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new xs(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_s="undefined"!=typeof WeakMap?new WeakMap:new rs,ks=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=ps.getInstance(),s=new As(t,n,this);_s.set(this,s)};["observe","unobserve","disconnect"].forEach((function(e){ks.prototype[e]=function(){var t;return(t=_s.get(this))[e].apply(t,arguments)}}));const js=void 0!==ls.ResizeObserver?ls.ResizeObserver:ks;var Cs=["client","offset","scroll","bounds","margin"];function Is(e){var t=[];return Cs.forEach((function(n){e[n]&&t.push(n)})),t}function Ts(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var s=e.getBoundingClientRect();n.bounds={top:s.top,right:s.right,bottom:s.bottom,left:s.left,width:s.width,height:s.height}}if(t.indexOf("margin")>-1){var a=getComputedStyle(e);n.margin={top:a?parseInt(a.marginTop):0,right:a?parseInt(a.marginRight):0,bottom:a?parseInt(a.marginBottom):0,left:a?parseInt(a.marginLeft):0}}return n}var Ds=function(e){var t,n;return n=t=function(t){function n(){for(var e,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(e=t.call.apply(t,[this].concat(s))||this).state={contentRect:{entry:{},client:{},offset:{},scroll:{},bounds:{},margin:{}}},e._animationFrameID=null,e._resizeObserver=null,e._node=null,e._window=null,e.measure=function(t){var n=Ts(e._node,Is(e.props));t&&(n.entry=t[0].contentRect),e._animationFrameID=e._window.requestAnimationFrame((function(){null!==e._resizeObserver&&(e.setState({contentRect:n}),"function"==typeof e.props.onResize&&e.props.onResize(n))}))},e._handleRef=function(t){var n;null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.unobserve(e._node),e._node=t,e._window=(n=e._node)&&n.ownerDocument&&n.ownerDocument.defaultView||window;var s=e.props.innerRef;s&&("function"==typeof s?s(e._node):s.current=e._node),null!==e._resizeObserver&&null!==e._node&&e._resizeObserver.observe(e._node)},e}mt(n,t);var s=n.prototype;return s.componentDidMount=function(){this._resizeObserver=null!==this._window&&this._window.ResizeObserver?new this._window.ResizeObserver(this.measure):new js(this.measure),null!==this._node&&(this._resizeObserver.observe(this._node),"function"==typeof this.props.onResize&&this.props.onResize(Ts(this._node,Is(this.props))))},s.componentWillUnmount=function(){null!==this._window&&this._window.cancelAnimationFrame(this._animationFrameID),null!==this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=null)},s.render=function(){var t=this.props,n=(t.innerRef,t.onResize,(0,pt.A)(t,["innerRef","onResize"]));return(0,R.createElement)(e,(0,b.A)({},n,{measureRef:this._handleRef,measure:this.measure,contentRect:this.state.contentRect}))},n}(R.Component),t.propTypes={client:je().bool,offset:je().bool,scroll:je().bool,bounds:je().bool,margin:je().bool,innerRef:je().oneOfType([je().object,je().func]),onResize:je().func},n}((function(e){var t=e.measure,n=e.measureRef,s=e.contentRect;return(0,e.children)({measure:t,measureRef:n,contentRect:s})}));Ds.displayName="Measure",Ds.propTypes.children=je().func;const Ps=Ds,Os=({baseClassName:e=`${B.CLS_PREFIX}input`,className:t,size:n="md",type:s="text",textAlign:a,prefix:i,suffix:r,innerRef:o,rootProps:l,...c})=>{const u="string"==typeof n&&-1!==["sm","md","lg","xl","fill"].indexOf(n);return(0,L.jsxs)("span",{className:F()(e,{[`${e}--size-${n}`]:u,[`${e}--text-${a}`]:a,[`${e}--affix`]:i||r},t),...l,children:[i&&(0,L.jsx)("span",{className:`${e}__prefix`,children:i}),(0,L.jsx)("input",{ref:o,type:s,size:"number"==typeof n?n:void 0,className:`${e}__input`,...c}),r&&(0,L.jsx)("span",{className:`${e}__suffix`,children:r})]})},Ls=(e,t=Number.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),n=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1)=>void 0!==n&&e>n?n:void 0!==t&&e<t?t:e,Ms=e=>{if(""===String(e).trim())return!1;const t=parseFloat(String(e));return"number"==typeof t&&!isNaN(t)},Es=e=>{if("string"==typeof e){const t=parseFloat(e);return Ms(t)?t:0}return e},Rs=({baseClassName:e=`${B.CLS_PREFIX}input-number`,className:t,defaultValue:n,value:s,disabled:a,onChange:i,min:r,max:o,step:l=1,decrementIcon:c="minus",incrementIcon:u="plus",...d})=>{const p=Ne("InputNumber"),h=(0,R.useRef)(null),m=void 0!==s,g="number"==typeof n?n:"",f="number"==typeof s?s:"",[b,v]=(0,R.useState)(m?f:g),y=(0,R.useRef)(Number(m?f:g));(0,R.useLayoutEffect)((()=>{m&&v(f)}),[m,f]);const S=e=>{y.current!==e&&(y.current=e,G(i,e))},w=e=>()=>{const t=Ls(Es(b)+e,r,o);m&&t!==f||v(t),S(t)},x=w(+l),A=w(-l),_=()=>{let e;Ms(b)?(e=Ls(Es(b),r,o),S(e)):e="",v(m?f:e)},k=e=>{e.preventDefault(),e.currentTarget.hasAttribute("disabled")||h.current&&document.activeElement!==h.current&&h.current.focus()},j=a||((e,t)=>void 0!==t&&""!==e&&+e<=t)(b,r),C=a||((e,t)=>void 0!==t&&""!==e&&+e>=t)(b,o);return(0,L.jsx)(Os,{textAlign:"center",size:"sm",...d,value:b,disabled:a,onChange:e=>{const t=e.target.value;let n=t;""===String(t).trim()&&(n=""),v(n)},onKeyDown:e=>{switch(e.key){case"ArrowUp":x();break;case"ArrowDown":A();break;case"Enter":_()}},onBlur:_,className:F()(e,t),innerRef:h,prefix:(0,L.jsx)(ut,{"aria-label":p("decrement"),icon:c,ghost:!0,disabled:j,onClick:A,onMouseDown:k,className:`${e}__dec`}),suffix:(0,L.jsx)(ut,{"aria-label":p("increment"),icon:u,ghost:!0,disabled:C,onClick:x,onMouseDown:k,className:`${e}__inc`})})},Us=({baseClassName:e=`${B.CLS_PREFIX}link`,className:t,onClick:n,disabled:s=!1,pseudo:a=!1,component:i,children:r,...o})=>{const l=i||"a",c=(0,R.useContext)(ce),u={...o,onClick:n,className:F()(e,t,{[`${e}--disabled`]:s,[`${e}--pseudo`]:a,[`${e}--on-dark`]:c})},{target:d}=o,p=!a&&"_blank"===d;return p&&!u.rel&&(u.rel="noopener noreferrer"),s&&(u.onClick=e=>e.preventDefault(),u.tabIndex=-1,u["aria-disabled"]=!0),n&&(u.tabIndex=u.tabIndex||0,u.onKeyDown=K(u.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())})),u.role="button"),(0,L.jsxs)(l,{...u,children:[r,p&&(0,L.jsx)(xe,{flipHorizontal:Dt(),name:"arrow-diagonal-out",className:`${e}__external-icon`})]})},Ns=({baseClassName:e=`${B.CLS_PREFIX}heading`,className:t,icon:n,children:s,component:a,level:i=1,...r})=>{a||(a=`h${i}`);let o=de;return 1===i&&(o=he),2!==i&&3!==i||(o="24"),6===i&&(o="12"),(0,L.jsxs)(a,{className:F()(e,{[`${e}--h${i}`]:i,[`${e}--icon`]:n},t),...r,children:[xe.create(n,{className:`${e}__icon`,size:o}),n?(0,L.jsx)("span",{className:`${e}__text`,children:s}):s]})},Fs=e=>{if("string"==typeof e)return!0;if((0,R.isValidElement)(e)&&e.type===Vn){const{component:t,children:n}=e.props;if(void 0===t&&("string"==typeof n||null==n))return!0}return!1},Bs=e=>{if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};class Ys{constructor(){(0,Y.A)(this,"ignoreFocusChange",!1)}canIgnoreFocusChange(){return this.ignoreFocusChange}focusFirstDescendant(e,t){for(let n=0;n<e.childNodes.length;n++){const s=e.childNodes[n];if((!t||"function"!=typeof t.canSkip||!t.canSkip(s))&&(this.attemptFocus(s)||this.focusFirstDescendant(s)))return!0}return!1}focusLastDescendant(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(this.attemptFocus(n)||this.focusLastDescendant(n))return!0}return!1}attemptFocus(e){if(!Bs(e))return!1;this.ignoreFocusChange=!0;try{e.focus()}catch{}return this.ignoreFocusChange=!1,document.activeElement===e}}const Hs=e=>e instanceof HTMLElement&&e.dataset&&e.dataset.skipAutoFocus,Vs=e=>({elements:[],collect(t,n=!1){n&&(this.elements=[]);for(let n=0;n<t.children.length;n++){const s=t.children[n];e.current&&Hs(s)||(this.elements.push(s),this.collect(s))}},getFirst(e){return this.collect(e,!0),this.elements[0]},getLast(e){return this.collect(e,!0),this.elements[this.elements.length-1]},getNext(e,t){if(t){const e=this.elements.indexOf(t);if(-1!==e)return this.elements[e+1]}},getPrev(e,t){if(t){const e=this.elements.indexOf(t);if(-1!==e)return this.elements[e-1]}}}),Ws=({children:e,onFocus:t,onKeyDown:n,...s},a)=>{const i=(0,R.useRef)(null),r=(0,R.useRef)(null),o=(0,R.useRef)(null),l=(0,R.useRef)(!1),c=e=>e!==r.current&&e!==o.current&&Bs(e),{focusFirst:u,focusLast:d}=(0,R.useMemo)((()=>{const e=Vs(l);return ee(i,c,e)}),[]),p=K(t,(e=>{if(i.current)switch(!0){case e.target===r.current:i.current!==e.relatedTarget&&e.relatedTarget instanceof HTMLElement&&i.current.contains(e.relatedTarget)?d():u();break;case e.target===o.current:i.current!==e.relatedTarget&&e.relatedTarget instanceof HTMLElement&&i.current.contains(e.relatedTarget)?u():d()}})),h=e=>{e.preventDefault(),e.stopPropagation();const t=e;t.nativeEvent?.stopImmediatePropagation?.()},m=K(n,(e=>{if("Tab"!==e.key)return;const t=i.current;if(!t)return;const n=document.activeElement;if(n&&n.closest(".CodeMirror"))return;const s=(()=>{const e=i.current;return e?Array.from(e.querySelectorAll('a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]:not([contenteditable="false"])')).filter((e=>e!==r.current&&e!==o.current&&!!Bs(e)&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)&&"hidden"!==window.getComputedStyle(e).visibility)):[]})(),a=s.length,l=!(!n||!t.contains(n)),c=e.shiftKey?-1:1;let u=0;if(0===a)return h(e),void t.focus();if(!l||n===t)return u=e.shiftKey?a-1:0,h(e),void s[u].focus();let d=s.indexOf(n);if(-1===d){const e=n.closest("[tabindex],button,a,input,select,textarea");d=e?s.indexOf(e):-1}u=-1===d?e.shiftKey?a-1:0:(d+c+a)%a,h(e),s[u].focus()}));return(0,L.jsxs)("div",{onFocus:p,onKeyDownCapture:m,ref:te(i,a),tabIndex:-1,...s,children:[(0,L.jsx)("div",{tabIndex:0,ref:r}),e,(0,L.jsx)("div",{tabIndex:0,ref:o})]})};Ws.displayName="FocusTrap";const $s=(0,R.forwardRef)(Ws),zs={"top-left":"top-end","top-right":"top-start","right-top":"right-end","right-bottom":"right-start","bottom-left":"bottom-end","bottom-right":"bottom-start","left-top":"left-end","left-bottom":"left-start",top:"top",right:"right",bottom:"bottom",left:"left",auto:"auto"},qs=e=>null!==e.visible;class Gs extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{show:this.props.defaultVisible,arrowInHeader:!1}),(0,Y.A)(this,"contentRef",(0,R.createRef)()),(0,Y.A)(this,"targetRef",(0,R.createRef)()),(0,Y.A)(this,"prevFocusElement",void 0),(0,Y.A)(this,"popperData",void 0),(0,Y.A)(this,"headerBounds",void 0),(0,Y.A)(this,"checkArrowPosition",(()=>{const{title:e}=this.props,{show:t,arrowInHeader:n}=this.state;if(!t||!this.popperData)return;const{actualPlacement:s,arrowStyle:a}=this.popperData,i=parseInt(a?.top||""),[r]=s?.split("-")||[];let o=!1;const l="bottom"===r||null!==i&&this.headerBounds&&i<this.headerBounds.height-13,c="top"!==r&&l;e&&this.headerBounds&&c&&(o=!0),n!==o&&this.setState({arrowInHeader:o})})),(0,Y.A)(this,"hotkeyHandler",(e=>{e.isDefaultPrevented()||"Escape"!==e.key||(this.handleClose(),e.preventDefault())})),(0,Y.A)(this,"handleTargetClick",(e=>{const{show:t}=this.state,{canCloseOnOutsideClick:n}=this.props;t&&!n||(this.targetRef.current=e.currentTarget,this.setState((e=>({show:!e.show}))))})),(0,Y.A)(this,"handleClose",(()=>{const{show:e}=this.state;if(!e)return;const{onClose:t,canCloseOnEscapePress:n,autoFocus:s}=this.props,a=s&&n&&this.prevFocusElement&&(!document.activeElement||this.contentRef.current?.contains(document.activeElement));t?t():this.setState({show:!1}),a&&this.prevFocusElement?.focus()})),(0,Y.A)(this,"handleHeaderResize",(e=>{this.headerBounds=e.bounds,this.checkArrowPosition()})),(0,Y.A)(this,"handlePopperUpdate",(e=>{this.popperData=e,this.checkArrowPosition()})),(0,Y.A)(this,"getIgnoreNodes",(()=>{const{targetRef:e}=this.props;return e||this.targetRef.current?[e?.current??null,this.targetRef.current??null]:[(0,$e.findDOMNode)(this)]}))}static getDerivedStateFromProps(e,t){return{show:qs(e)?e.visible:t.show}}componentDidUpdate(e,t){const{canCloseOnEscapePress:n,autoFocus:s}=this.props,{show:a}=this.state;s&&n&&!t.show&&a&&setTimeout((()=>this.focus()),0)}focus(){if(null!==this.contentRef.current&&null!==document.activeElement&&this.state.show&&(this.prevFocusElement=document.activeElement,!this.contentRef.current.contains(document.activeElement))){const e=this.contentRef.current.querySelector("[autofocus]");null!==e?e.focus():this.contentRef.current&&this.contentRef.current.focus()}}render(){const{baseClassName:e,className:t,visible:n,defaultVisible:s,title:a,placement:i,canCloseOnOutsideClick:r,canCloseOnEscapePress:o,target:l,targetRef:c,intent:u,wide:d,width:p,height:h,extra:m,onClose:g,children:f,translate:b,...v}=this.props,{show:y,arrowInHeader:S}=this.state;let w;if("auto"!==i){const[e]=i?.split("-")||[];"top"===e?w=["top","bottom","right","left"]:"right"===e?w=["right","left","bottom","top"]:"bottom"===e?w=["bottom","top","left","right"]:"left"===e&&(w=["left","right","top","bottom"])}const x=(0,L.jsx)(ut,{"aria-label":b?.("closeButton"),className:F()(`${e}__close`,a&&`${e}__close--heading`),onClick:this.handleClose,ghost:!0,icon:{name:"cross-mark",size:a?"16":"12"}}),A=a&&(0,L.jsx)(Ps,{onResize:this.handleHeaderResize,bounds:!0,children:({measureRef:t})=>(0,L.jsxs)("div",{ref:t,className:`${e}__heading`,children:[Fs(a)?(0,L.jsx)(Ns,{level:5,className:`${e}__title`,children:a}):a,(0,L.jsxs)("div",{className:`${e}__extra`,children:[m,x]})]})}),_=qs(this.props)?l:(0,R.cloneElement)(l,{className:F()(l.props.className,`${e}__target`),onClick:K(l.props.onClick,this.handleTargetClick)}),k=i?zs[i]:void 0;let j;var C;h&&(j={height:(C=h,String(Number(C))===String(C)?`${C}px`:C)});const I=(0,L.jsxs)($s,{ref:this.contentRef,onKeyUp:o&&y?this.hotkeyHandler:void 0,className:`${e}__inner`,style:j,children:[h?A:A||x,(0,L.jsx)("div",{className:`${e}__content`,children:(0,L.jsx)("div",{className:`${e}__content-inner`,children:"function"==typeof f?f({onClose:this.handleClose}):f})})]});return(0,L.jsx)(Nn,{target:_,targetRef:c||this.targetRef,arrow:(0,L.jsx)("span",{className:F()(`${e}__arrow`,S&&`${e}__arrow--heading`)}),placement:k,onUpdate:this.handlePopperUpdate,className:F()({[`${e}--heading`]:a,[`${e}--${u}`]:u,[`${e}--wide`]:d||p,[`${e}--width-${p}`]:p,[`${e}--on-dark`]:!0===this.context},t),baseClassName:e,behavior:w,zIndex:B.Z_INDEX_POPOVER,show:y,...v,children:r?(0,L.jsx)(Mt,{onClose:this.handleClose,ignoreNodes:this.getIgnoreNodes,nodeRef:this.contentRef,children:I}):I})}}(0,Y.A)(Gs,"contextType",ce),(0,Y.A)(Gs,"defaultProps",{visible:null,defaultVisible:!1,title:void 0,onClose:void 0,placement:"auto",canCloseOnOutsideClick:!0,canCloseOnEscapePress:!0,children:void 0,intent:void 0,wide:void 0,width:void 0,height:void 0,extra:void 0,className:void 0,baseClassName:`${B.CLS_PREFIX}popover`,boundariesElement:void 0,autoFocus:!0,targetRef:void 0});const Ks=e=>{const t=Ne("Popover");return(0,L.jsx)(Gs,{...e,translate:t})},Qs=({ref:e,onResize:t,callOnInit:n=!0})=>{const s=(0,R.useRef)(!0),a=(0,R.useRef)(void 0);a.current=t,(0,R.useEffect)((()=>{if(!e.current)return;if("undefined"==typeof window||!("ResizeObserver"in window))return;const t=new ResizeObserver((()=>{n||!s.current?a.current?.():s.current=!1}));return t.observe(e.current),()=>{t.disconnect()}}),[e,n])},Js={subtree:!0,childList:!0,characterData:!0},Xs=({ref:e,compact:t,expand:n})=>{const s=(0,R.useRef)(0),a=(0,R.useRef)(null),[i,r]=(0,R.useState)(!1),o=(0,R.useRef)(),l=()=>{if(!e.current)return;const i=e.current,o=Math.ceil(i.getBoundingClientRect().width),{scrollWidth:l}=i;let c=!1;l>o?(c=t(),s.current=l,a.current="compact"):(s.current&&o>s.current||"expand"===a.current)&&(c=n(),a.current="expand"),c&&r((e=>!e))};o.current=l,(0,R.useLayoutEffect)((()=>{o.current?.()}),[i]),Qs({ref:e,onResize:l}),(({ref:e,onMutate:t,options:n})=>{const s=(0,R.useRef)(void 0);s.current=t,(0,R.useEffect)((()=>{if(!e.current)return;if("undefined"==typeof window||!("MutationObserver"in window))return;const t=new MutationObserver((()=>{s.current?.()}));return t.observe(e.current,n),()=>{t.disconnect()}}),[e,n])})({ref:e,onMutate:l,options:Js})},Zs=(0,R.forwardRef)(((e,t)=>(Xs({ref:t,...e}),null)));Zs.displayName="Squeezer";const ea=Zs,ta=({className:e,children:t,selected:n=!1,baseClassName:s=`${B.CLS_PREFIX}menu__item`,...a})=>(0,L.jsx)(Yn,{className:F()(s,e),icon:n?"check-mark":null,role:"menuitemcheckbox","aria-checked":n?"true":"false",...a,children:t}),na=e=>{let t=!1;return R.Children.forEach(e,(e=>{(0,R.isValidElement)(e)&&(e.type===ta||e.props.icon)&&(t=!0)})),t},sa=(0,R.forwardRef)((function({className:e,children:t,onItemClick:n,onKeyDown:s,onFocus:a,autoFocus:i,overlay:r=!1,role:o="menu",baseClassName:l=`${B.CLS_PREFIX}menu`,...c},u){const d=(0,R.useRef)(null),{focusNext:p,focusPrev:h,focusFirst:m,focusLast:g}=(0,R.useMemo)((()=>ee(d,(e=>("menu"===o&&("menuitem"===e.getAttribute("role")||"menuitemcheckbox"===e.getAttribute("role"))||"listbox"===o&&"option"===e.getAttribute("role"))&&"true"!==e.getAttribute("aria-disabled")))),[o]);let f=!1;const b=R.Children.map(t,((e,t)=>{if(!(0,R.isValidElement)(e))return e;const s={tabIndex:-1};return n&&(s.onClick=K(e.props.onClick,n.bind(null,e,t))),f||e.type!==Yn&&e.type!==ta||e.props.disabled||(s.tabIndex=0,f=!0),"listbox"!==o||e.type!==Yn&&e.type!==ta||(s.role="option"),(0,R.cloneElement)(e,s)}));return(0,L.jsx)("div",{className:F()(l,e,{[`${l}--icons`]:na(t),[`${l}--overlay`]:r}),role:o,...c,ref:e=>{d.current=e,u&&"function"!=typeof u&&(u.current=e)},onKeyDown:e=>{switch(e.key){case"ArrowUp":e.preventDefault(),h();break;case"ArrowDown":e.preventDefault(),p();break;case"Home":case"PageUp":e.preventDefault(),m();break;case"End":case"PageDown":e.preventDefault(),g()}G(s,e)},onFocus:e=>{e.target===d.current&&i&&m(),G(a,e)},tabIndex:-1,children:b})}));sa.displayName="Menu";const aa=sa,ia=({buttons:e,selected:t,onClick:n})=>{const{title:s=""}=e.find((e=>e.value===t))||{},a=(0,L.jsx)(aa,{children:e.map((({title:e,value:t,...s})=>(0,L.jsx)(Yn,{...s,onClick:()=>{n(t)},children:e},`${t}`)))});return(0,L.jsx)(zn,{menu:a,children:s})},ra=({buttons:e,selectedValues:t,onClick:n,ghost:s,monospaced:a,isResponsive:i,baseClassName:r})=>{const o=(0,R.useRef)([]),[l,c]=(0,R.useState)(0);return(0,R.useLayoutEffect)((()=>{if(!a)return;const e=o.current.map((e=>e.getBoundingClientRect().width)),t=Math.max(...e);l!==t&&c(t)}),[a,l]),(0,L.jsx)(dt,{className:`${r}__button-group`,children:e.map((({value:e,title:c,style:u={},...d},p)=>{const h={width:!i&&a&&l?l:u.width,...u};return(0,L.jsx)("div",{role:"listitem",children:(0,L.jsx)(ut,{ref:e=>{0===p&&(o.current=[]),e&&o.current.push(e)},selected:t.includes(e),ghost:s,onClick:()=>n(e),...d,className:F()(d.className,`${r}__button`),style:h,children:c})},`${e}`)}))})},oa=e=>void 0===e?[]:Array.isArray(e)?e:[e],la=(e,t)=>e>t?1:-1,ca=`${B.CLS_PREFIX}segmented-control`,ua=({label:e,labelPlacement:t="top",buttons:n,monospaced:s=!1,multiple:a=!1,selected:i,onChange:r,inline:o=!1,ghost:l=!1,className:c,baseClassName:u=ca,...d})=>{const p=(0,R.useRef)(null),{isResponsive:h,isInResponsiveContext:m,...g}=(()=>{const e=(0,R.useContext)(et),t="boolean"==typeof e,[n,s]=(0,R.useState)(!1);return{isResponsive:t?e:n,isInResponsiveContext:t,compact:()=>(s(!0),!1),expand:()=>(s(!1),!1)}})(),{selectedValues:f,handleChange:b}=(({multiple:e,externalSelected:t,onChange:n})=>{const s=()=>e?oa(t):t,[a,i]=(0,R.useState)(s()),[r,o]=(0,R.useState)(t);return r!==t&&(o(t),a!==t&&i(s())),{selectedValues:oa(a),handleChange:t=>{let s,r=a;if(e){const e=Array.isArray(a);s=e?[...a]:[],e&&-1!==a.indexOf(t)?s.splice(a.indexOf(t),1):s.push(t),s.sort(la),e&&(r=[...a].sort(la))}else s=t;JSON.stringify(r)!==JSON.stringify(s)&&(i(s),n?.(s))}}})({multiple:a,externalSelected:i,onChange:r});return(0,L.jsxs)("div",{ref:p,className:F()(u,{[`${u}--inline`]:o,[`${u}--collapsed`]:h,[`${u}--vertical`]:e&&"top"===t},c),role:"list",...d,children:[e&&(0,L.jsx)("div",{className:`${u}__label`,children:e}),n.some((({icon:e})=>!!e))||a||!h?(0,L.jsx)(et.Provider,{value:h,children:(0,L.jsx)(ra,{buttons:n,selectedValues:f,onClick:b,ghost:l,isResponsive:h,monospaced:s,baseClassName:u})}):(0,L.jsx)(ia,{buttons:n,selected:f[0],onClick:b}),!m&&(0,L.jsx)(ea,{ref:p,...g})]})},da=({baseClassName:e=`${B.CLS_PREFIX}text`,className:t,children:n,component:s,intent:a,fontSize:i,bold:r=!1,italic:o=!1,mark:l=!1,truncate:c=!1,nowrap:u=!1,...d})=>{s||(s=l?"mark":"span");const p=(0,R.useContext)(ce);return(0,L.jsx)(s,{className:F()(e,{[`${e}--${a}`]:a,[`${e}--${i}`]:i,[`${e}--bold`]:r,[`${e}--italic`]:o,[`${e}--truncate`]:c,[`${e}--nowrap`]:u,[`${e}--mark`]:l,[`${e}--on-dark`]:p},t),...d,children:n})},pa=[25,100,"all"],ha=({baseClassName:e=`${B.CLS_PREFIX}pagination`,className:t,current:n=1,total:s,onSelect:a,itemsPerPage:i,itemsPerPageOptions:r=pa,onItemsPerPageChange:o,isShowNavigationButtons:l,isShowPageButtons:c,maxPageButtons:u,view:d="default",loading:p=!1,...h})=>{const m=Ne(),g=(0,L.jsxs)("div",{className:F()(e,t),...h,children:[(0,L.jsxs)("div",{className:`${e}__pages`,children:[(0,L.jsx)(Qn,{loading:p,overlay:!0,spinner:{size:"sm"},className:`${e}__loader`,children:(0,L.jsx)(Rs,{value:p?void 0:n,onChange:e=>G(a,e),min:1,max:s,decrementIcon:"arrow-left",incrementIcon:"arrow-right",className:`${e}__input`,"aria-label":m("Pagination.enterPageNumber")})}),(0,L.jsx)(Wn,{content:"Pagination.totalShort",params:{total:s},className:`${e}__text`})]}),o?(0,L.jsxs)("div",{className:`${e}__options`,children:[(0,L.jsx)(Wn,{content:"Pagination.itemsPerPage",className:`${e}__text`}),(0,L.jsx)(ua,{ghost:!0,buttons:r.map((e=>{let t=e;return"all"===e&&(t=(0,L.jsx)(Wn,{content:"Pagination.all"})),{value:e,title:t}})),selected:i,onChange:e=>G(o,e),className:`${e}__control`})]}):null]});return"popover"===d?(0,L.jsx)(Ks,{target:(0,L.jsx)(da,{fontSize:"sm",component:Us,nowrap:!0,children:(0,L.jsx)(Wn,{content:"Pagination.total",params:{current:n,total:s}})}),placement:"top",className:`${e}__popover`,children:g}):g};class ma extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{xs:this.props.xs}),(0,Y.A)(this,"handleResize",(({bounds:e})=>{const{width:t}=e;let{maxColumnsNumber:n}=this.props;"function"==typeof n&&(n=n({width:t}));const s=Math.max(Math.floor((t+this.getGapSize())/(this.props.minColumnWidth+this.getGapSize())),1);this.setState({xs:Math.min(s,n)}),this.props.onColumnsChange&&this.props.onColumnsChange(s)}))}getGapSize(){switch(this.props.gap){case"xs":return 8;case"sm":return 12;case"md":return 16;case"lg":return 24;case"xl":return 32;default:return 0}}render(){const{baseClassName:e,className:t,minColumnWidth:n,onColumnsChange:s,maxColumnsNumber:a,xs:i,sm:r,md:o,lg:l,xl:c,gap:u,children:d,...p}=this.props,h=F()(e,{[`${e}--xs-${this.state.xs}`]:this.state.xs,[`${e}--sm-${r}`]:r,[`${e}--md-${o}`]:o,[`${e}--lg-${l}`]:l,[`${e}--xl-${c}`]:c,[`${e}--gap-xs`]:"xs"===u,[`${e}--gap-sm`]:"sm"===u,[`${e}--gap-md`]:"md"===u,[`${e}--gap-lg`]:"lg"===u,[`${e}--gap-xl`]:"xl"===u},t),m=(0,L.jsx)("div",{className:h,...p,children:n&&!this.state.xs?null:d});return n?(0,L.jsx)(Ps,{bounds:!0,onResize:this.handleResize,children:({measureRef:e})=>(0,R.cloneElement)(m,{ref:e})}):m}}(0,Y.A)(ma,"defaultProps",{children:null,className:null,baseClassName:`${B.CLS_PREFIX}grid`,minColumnWidth:null,maxColumnsNumber:6,xs:null,sm:null,md:null,lg:null,xl:null,gap:null,onColumnsChange:null});const ga=ma,fa=({baseClassName:e=`${B.CLS_PREFIX}grid__col`,className:t,children:n,xs:s,sm:a,md:i,lg:r,xl:o,...l})=>{const c=F()(e,{[`${e}--xs-${s}`]:s,[`${e}--sm-${a}`]:a,[`${e}--md-${i}`]:i,[`${e}--lg-${r}`]:r,[`${e}--xl-${o}`]:o},t);return(0,L.jsx)("div",{className:c,...l,children:n})},ba=({className:e,children:t,baseClassName:n=`${B.CLS_PREFIX}menu__header`,...s})=>(0,L.jsx)(Bn,{className:F()(n,e),role:"none",...s,children:t}),va=(0,R.createContext)(void 0);va.displayName="DistractionFreeModeContext";const ya=va,Sa=({baseClassName:e=`${B.CLS_PREFIX}toolbar__expander`,className:t,children:n,...s})=>{const a=(0,R.useContext)(ya);return a&&a.enabled?null:(0,L.jsx)("div",{className:F()(e,t),...s,children:n})},wa=(0,R.createContext)({selectedRows:0});wa.displayName="ListOperationContext";const xa=wa,Aa=({className:e,children:t,title:n,titleAddon:s,titleSize:a,image:i,imageSpacing:r,imageAlign:o,align:l,vertical:c=!1,baseClassName:u=`${B.CLS_PREFIX}media`,...d})=>(!r&&(0,R.isValidElement)(i)&&i.type===xe&&(r={[ue]:"sm",[de]:"sm",[pe]:"md",[he]:"md",[me]:"lg",[ge]:"xl",[fe]:"xxl",[be]:"xxl",[ve]:"xxl"}[i.props.size]),(0,L.jsxs)("div",{className:F()(u,{[`${u}--${l}`]:l,[`${u}--vertical`]:c},e),...d,children:[i&&(0,L.jsx)("figure",{className:F()(`${u}__figure`,{[`${u}__figure--${r}`]:r,[`${u}__figure--${o}`]:o}),children:i}),(0,L.jsxs)("div",{className:`${u}__body`,children:[n||s?(0,L.jsxs)("div",{className:F()(`${u}__header`,{[`${u}__header--${a}`]:a}),children:[(e=>e?"string"==typeof e?(0,L.jsx)(Ns,{level:5,className:`${u}__title`,children:e}):(0,R.isValidElement)(e)?(0,R.cloneElement)(e,{className:F()(`${u}__title`,e.props.className)}):null:null)(n),s&&(0,L.jsx)("div",{className:`${u}__title-addon`,children:s})]}):null,R.Children.toArray(t).length?(0,L.jsx)("div",{className:`${u}__content`,children:t}):null]})]})),_a=({baseClassName:e=`${B.CLS_PREFIX}paragraph`,className:t,children:n,component:s="p",...a})=>(0,L.jsx)(s,{className:F()(e,t),...a,children:n}),ka=e=>void 0===e?void 0:(0,L.jsx)(da,{bold:!0,children:e}),ja=e=>{const t=`ListOperation.${e}`;return(0,L.jsx)(Wn,{content:t})},Ca=({critical:e=!1,noSelectionText:t,confirmationText:n,actionButtonText:s,cancelButtonText:a,children:i,...r})=>{const{selectedRows:o,selectedRowTitle:l}=(0,R.useContext)(xa),[c,u]=(0,R.useState)(null),d=(0,R.useRef)(null);if(!(0,R.isValidElement)(i))throw new Error('The "children" property must be an element.');const p=e=>"function"==typeof e?e({selectedRows:ka(o),selectedRowTitle:ka(l)}):e,h=()=>{u(null)},m=(0,R.cloneElement)(i,{...r,onClick:r=>{switch(d.current=r.currentTarget,!0){case o&&e:u({message:p(n),actionButtonText:p(s),actionButtonIntent:"danger",cancelButtonText:p(a)||ja("cancelButton")});break;case!o&&!e:u({message:p(t),actionButtonText:p(s),actionButtonIntent:"primary",cancelButtonText:p(a)||ja("cancelButton")});break;case!o&&e:u({message:p(t),icon:(0,L.jsx)(xe,{intent:"info",name:"info-circle-filled"})});break;case o&&!e:G(i.props.onClick,r)}}});return(0,L.jsx)(Ks,{visible:!!c,target:m,targetRef:d,placement:"top",onClose:h,children:c&&(0,L.jsxs)(Aa,{image:c.icon,children:[(0,L.jsx)(_a,{children:c.message}),c.actionButtonText&&(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{onClick:e=>{u(null),G(i.props.onClick,e)},intent:c.actionButtonIntent,children:c.actionButtonText})," ",(0,L.jsx)(ut,{ghost:!0,onClick:h,children:c.cancelButtonText})]})]})})},Ia=(e,t,n)=>{switch(e.type){case ut:{const t={};let s={};return({disabled:t.disabled,icon:t.icon,onClick:t.onClick,children:t.children,...s}=e.props),t.onClick=K(t.onClick,n),Object.keys(s).forEach((e=>{lt.includes(e)||(t[e]=s[e])})),"a"!==e.props.component&&"function"!=typeof e.props.component||(t.component=e.props.component),(0,L.jsx)(Yn,{...t,children:t.children})}case Ya:{const{title:s,children:a}=e.props;return[(0,L.jsx)(ba,{children:s},s),Ta(a,n),t?null:(0,L.jsx)(Fn,{})]}case Sa:return null;case zn:{let s;return(0,R.isValidElement)(e.props.menu)&&({onItemClick:s}=e.props.menu.props),[e.props.children?(0,L.jsx)(ba,{children:e.props.children}):null,Ta(e.props.menu.props.children,K(s,n)),t?null:(0,L.jsx)(Fn,{})]}case Ca:{const t=Ia(e.props.children,!0,n);return(0,R.isValidElement)(t)?(0,R.cloneElement)(e,{children:(0,R.cloneElement)(t,{onClick:e=>{t.props.onClick(e),n?.(e)}})}):null}case Yn:case Bn:return(0,R.cloneElement)(e,{onClick:K(e.props.onClick,n)});case Fn:return e;default:return(0,L.jsx)(Bn,{onClick:n,children:e})}},Ta=(e,t)=>{const n=R.Children.count(e);return R.Children.map(e,((e,s)=>(0,R.isValidElement)(e)?Ia(e,s===n-1,t):e))},Da=(0,R.forwardRef)((function({onItemClick:e,children:t,...n},s){return(0,L.jsx)(aa,{...n,ref:s,children:Ta(t,e)})})),Pa=Da,Oa=(0,R.createContext)(void 0);Oa.displayName="RegistryContext";const La=()=>(0,R.useContext)(Oa),Ma=Oa;class Ea{constructor(){(0,Y.A)(this,"items",[])}register(e){this.items.push(e)}unregister(e){this.items=this.items.filter((t=>t!==e))}compact(){let e=!1;for(const t of[...this.items].reverse())if(!t.isCompact){t.compact(),e=!0;break}return e}expand(){let e=!1;for(const t of this.items)if(t.isExpandable){t.expand(),e=!0;break}return e}get isCompact(){return this.items.every((({isCompact:e})=>e))}get isExpandable(){return this.items.some((({isExpandable:e})=>e))}}class Ra{constructor({onCompactStateChange:e}){(0,Y.A)(this,"_isCompact",!1),(0,Y.A)(this,"onCompactStateChange",void 0),this.onCompactStateChange=e}compact(){this._isCompact=!0,this.onCompactStateChange(!0)}expand(){this._isCompact=!1,this.onCompactStateChange(!1)}get isCompact(){return this._isCompact}get isExpandable(){return this._isCompact}}const Ua=()=>{const e=La(),[t]=(0,R.useState)((()=>new Ea));return(0,R.useLayoutEffect)((()=>{if(e)return e.register(t),()=>{e.unregister(t)}}),[e,t]),t},Na=()=>{const e=La(),[t,n]=(0,R.useState)(!1),[s]=(0,R.useState)((()=>new Ra({onCompactStateChange:n})));return(0,R.useLayoutEffect)((()=>{if(e)return e.register(s),()=>{e.unregister(s)}}),[e,s]),[t]},Fa=({children:e})=>{const[t]=Na();return(0,L.jsx)(et.Provider,{value:t,children:e})},Ba=e=>R.Children.map(e,(e=>(0,R.isValidElement)(e)?e.type===Ya||e.type===Sa?e:(0,L.jsx)(Fa,{children:(0,R.cloneElement)(e,{className:F()(e.props.className,`${B.CLS_PREFIX}toolbar__group-item`)})}):e)),Ya=({baseClassName:e=`${B.CLS_PREFIX}toolbar__group`,className:t,title:n,children:s,groupable:a=!0,...i})=>{const[r]=Na(),o=Ua(),[l,c]=(0,R.useState)(!1),u=(0,R.useContext)(ya),d={enabled:u?.enabled??!1,toggle:()=>{u&&(u.toggle(),c((e=>!e)))}};let p=R.Children.toArray(s).some((e=>(0,R.isValidElement)(e)&&e.type===Sa));return a&&r&&R.Children.count(s)>1?(p=!1,s=(0,L.jsx)(zn,{menu:(0,L.jsx)(Pa,{onItemClick:()=>{},children:s}),children:n})):s=(0,L.jsx)(Ma.Provider,{value:o,children:(0,L.jsx)(ya.Provider,{value:d,children:Ba(s)})}),d.enabled&&!l?null:(0,L.jsx)("div",{className:F()(e,t,{[`${e}--grow`]:p||d.enabled&&l}),...i,children:s})},Ha=({children:e,className:t,baseClassName:n=`${B.CLS_PREFIX}toolbar`,...s})=>{const a=(0,R.useRef)(null),[i,r]=(0,R.useState)(!1),o=(0,R.useMemo)((()=>({enabled:i,toggle:()=>r((e=>!e))})),[i]),l=Ua();Xs({ref:a,compact:()=>l.compact(),expand:()=>l.expand()});const c=Ba(e);return(0,L.jsx)("div",{ref:a,className:F()(n,t),...s,children:(0,L.jsx)(Ma.Provider,{value:l,children:(0,L.jsx)(ya.Provider,{value:o,children:c})})})},Va=e=>(0,R.isValidElement)(e)&&e.type===Sa,Wa=({baseClassName:e=`${B.CLS_PREFIX}card-list__toolbar`,selection:t=null,onViewChange:n=null,currentView:s,groups:a})=>{let i=[];return t&&i.push((({onSelectAll:e,onSelectNone:t,checked:n,badge:s,menuItems:a=[]},i)=>{const r=a.length>0,o={},l={};r?(o.caret=!0,l.onClick=e=>e.stopPropagation(),o.component="span"):o.component="label";let c=(0,L.jsx)(ut,{...o,className:`${i}--select-all-btn`,children:(0,L.jsx)(Tt,{checked:n,onChange:n=>{n?e():t()},...l})});return s&&("string"==typeof s&&(s={label:s}),c=(0,L.jsx)(Ve,{...s,children:c})),r&&(c=(0,L.jsx)(zn,{menu:(0,L.jsx)(aa,{children:a}),children:c})),(0,L.jsx)(Ya,{title:(0,L.jsx)(Wn,{content:"CardList.toolbarSelect"}),children:c},"selection")})(t,e)),i=i.concat(a),n&&s!==qa&&(a.filter(Va).length>0||i.push((0,L.jsx)(Sa,{},"expander")),i.push(((e,t)=>{const n=[{value:Ga,title:(0,L.jsx)(Wn,{content:"CardList.viewCards"}),icon:"site-page"},{value:za,title:(0,L.jsx)(Wn,{content:"CardList.viewTiles"}),icon:"four-squares"},{value:Ka,title:(0,L.jsx)(Wn,{content:"CardList.viewList"}),icon:"list"}];return(0,L.jsx)(Ya,{title:(0,L.jsx)(Wn,{content:"CardList.toolbarView"}),children:(0,L.jsx)(ua,{buttons:n,selected:t,onChange:t=>e(t)})},"view")})(n,s))),0===i.length?null:(0,L.jsx)(Ha,{className:e,children:i})};Wa.propTypes={selection:je().object,groups:je().arrayOf(je().element).isRequired,onViewChange:je().func,currentView:je().string.isRequired,baseClassName:je().string};const $a=Wa,za="tile",qa="responsive",Ga="extended",Ka="row";class Qa extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{page:this.props.defaultPage,totalItems:this.props.totalItems||this.props.items.length,pageSize:10,items:this.props.items,view:this.props.view}),(0,Y.A)(this,"selectAll",(()=>{const{items:e}=this.state;this.select(e.map(this.getItemKey))})),(0,Y.A)(this,"selectNone",(()=>{this.select([])})),(0,Y.A)(this,"getItemKey",(e=>{const{itemKey:t}=this.props;return e[t]})),(0,Y.A)(this,"renderItem",(e=>{const{baseClassName:t,itemRender:n,onSelectionChange:s}=this.props,{view:a}=this.state;return(0,R.cloneElement)(n(e),{key:this.getItemKey(e),view:this.isTile()?za:a,className:F()(`${t}__list-item`),selection:s?this.itemSelection(e):null})})),(0,Y.A)(this,"previousView",null),(0,Y.A)(this,"handleResize",(({bounds:{width:e}})=>{const t=e>584?this.previousView:qa;t!==qa||this.previousView?t!==qa&&(this.previousView=null):this.previousView=this.state.view,t&&t!==this.state.view&&this.changeView(t)}))}static getDerivedStateFromProps(e,t){const{items:n,totalItems:s}=e,{prevItems:a,prevTotalItems:i}=t,r={};return n!==a&&(r.items=n),s!==i&&(r.totalItems=s||n.length),r.prevItems=n,r.prevTotalItems=s||n.length,r}componentDidMount(){this.fetchItems()}componentDidUpdate(e){const{view:t}=this.props;t!==e.view&&this.state.view!==qa&&this.fetchItems({page:1,view:t})}totalPages(){const{totalItems:e,pageSize:t}=this.state;return Math.ceil(e/t)}fetchItems({page:e=this.state.page,view:t=this.state.view}={}){const{onItemsFetch:n}=this.props,s=t===Ka?40:10;this.setState({view:t,page:e,pageSize:s}),G(n,{page:e,pageSize:s})}loadMore(){const{onItemsFetch:e}=this.props,{page:t}=this.state,n=t+1;this.setState({page:n,pageSize:10}),G(e,{page:n,pageSize:10})}isTile(){const{view:e}=this.state;return e===za||e===qa}renderPagination(){const{baseClassName:e}=this.props,{page:t,view:n}=this.state,s=this.totalPages();return s<2?null:n===qa&&t<s?(0,L.jsx)("div",{className:`${e}__pagination`,children:(0,L.jsx)(ut,{onClick:()=>this.loadMore(),children:(0,L.jsx)(Wn,{content:"CardList.loadMore"})})}):(0,L.jsx)(ha,{className:`${e}__pagination`,total:s,current:t,onSelect:e=>this.fetchItems({page:e})})}changeView(e){const{onViewChange:t}=this.props;this.fetchItems({page:1,view:e}),G(t,e)}select(e){const{onSelectionChange:t}=this.props;t(e)}itemSelection(e){const t=this.getItemKey(e),{selection:n}=this.props;return{isSelected:n.indexOf(t)>-1,onSelectionChange:({isSelected:e})=>{const s=e?[...n,t]:n.filter((e=>e!==t));this.select(s)}}}renderLoader(){const{baseClassName:e,loading:t}=this.props;return t?(0,L.jsx)("div",{className:`${e}__content-blocker`,children:(0,L.jsx)("div",{className:`${e}__loader`,children:(0,L.jsx)(Ae,{className:`${e}__loader-spinner`})})}):null}render(){const{baseClassName:e,className:t,items:n,onItemsFetch:s,view:a,itemKey:i,itemRender:r,onViewChange:o,selection:l,onSelectionChange:c,selectionButton:u,viewSwitcher:d,toolbarGroups:p,totalItems:h,defaultPage:m,loading:g,...f}=this.props;let b=this.state.items.map(this.renderItem);return this.isTile()&&(b=(0,L.jsx)(ga,{minColumnWidth:400,gap:"md",children:R.Children.map(b,(e=>(0,L.jsx)(fa,{children:e},e.props.key)))})),(0,L.jsx)(Ps,{bounds:!0,onResize:this.handleResize,children:({measureRef:n})=>(0,L.jsxs)("div",{ref:n,className:F()(e,t),...f,children:[(0,L.jsx)($a,{selection:c&&this.state.totalItems>1?{...u,total:this.state.totalItems,onSelectAll:this.selectAll,onSelectNone:this.selectNone,checked:this.state.items.length===l.length}:null,onViewChange:d?e=>this.changeView(e):null,currentView:this.state.view,groups:p}),this.state.items.length>0&&(0,L.jsx)("div",{className:`${e}__list ${e}__list--${this.state.view}`,children:b}),0===this.state.items.length&&!g&&(0,L.jsx)(Wn,{content:"CardList.notFound"}),this.renderPagination(),this.renderLoader()]})})}}Qa.propTypes={items:je().array.isRequired,onItemsFetch:je().func,totalItems:je().number,defaultPage:je().number,view:je().oneOf([Ga,za,Ka,qa]),onViewChange:je().func,viewSwitcher:je().bool,selection:je().array,onSelectionChange:je().func,selectionButton:je().shape({badge:je().oneOfType([je().string,je().object]),menuItems:je().arrayOf(je().element)}),toolbarGroups:je().arrayOf(je().element),itemKey:je().string.isRequired,itemRender:je().func.isRequired,loading:je().bool,className:je().string,baseClassName:je().string},Qa.defaultProps={onItemsFetch:null,totalItems:null,defaultPage:1,view:Ga,onViewChange:null,viewSwitcher:!1,selection:[],onSelectionChange:null,selectionButton:{badge:null,menuItems:[]},toolbarGroups:[],loading:!1,className:null,baseClassName:`${B.CLS_PREFIX}card-list`};const Ja=Qa;let Xa=0;const Za=({baseClassName:e=`${B.CLS_PREFIX}radio`,className:t,children:n,onChange:s,checked:a,defaultChecked:i,disabled:r=!1,name:o,inputProps:l={},...c})=>{const u=l&&l.id||"radio-"+Xa++;return(0,L.jsxs)("label",{htmlFor:u,className:F()(e,{[`${e}--disabled`]:r},t),...c,children:[(0,L.jsx)("input",{className:`${e}__input`,type:"radio",name:o,id:u,onChange:e=>{!r&&s&&s(e.target.checked)},checked:a,defaultChecked:i,disabled:r,...l}),(0,L.jsx)("span",{className:`${e}__indicator`}),n?(0,L.jsx)("span",{className:`${e}__text`,children:n}):null]})},ei=450,ti=(0,R.createContext)(void 0);ti.displayName="VerticalContext";const ni=ti,si=({baseClassName:e=`${B.CLS_PREFIX}columns`,className:t,children:n,vertical:s,gap:a,...i})=>{let[r,o]=(0,R.useState)(!1);const l=(0,R.useContext)(ni);void 0===s&&(s=void 0===l?ei:l),"boolean"==typeof s&&(r=s);const c=s=>(0,L.jsx)("div",{ref:s,className:F()(e,{[`${e}--vertical`]:r,[`${e}--gap-${a}`]:a},t),...i,children:(0,L.jsx)(ni.Provider,{value:r,children:n})});return"number"==typeof s?(0,L.jsx)(Ps,{bounds:!0,onResize:({bounds:e})=>{o(e.width<s)},children:({measureRef:e})=>c(e)}):c()},ai=e=>String(Number(e))===String(e)?`${e}px`:e,ii=({baseClassName:e=`${B.CLS_PREFIX}columns__column`,className:t,children:n,fill:s,ratio:a,style:i,width:r,minWidth:o,maxWidth:l,...c})=>{const u=(0,R.useContext)(ni);return(0,L.jsx)("div",{className:F()(e,{[`${e}--fill`]:s&&!u,[`${e}--ratio-${a}`]:a&&!u,[`${e}--has-width`]:r&&!u},t),style:u?i:{width:ai(r),flexBasis:ai(o),maxWidth:ai(l),...i},...c,children:n})},ri=e=>{e.scrollTop=e.scrollHeight};class oi extends R.PureComponent{constructor(...e){super(...e),(0,Y.A)(this,"rootRef",(0,R.createRef)()),(0,Y.A)(this,"prevScrollTop",0),(0,Y.A)(this,"autoscrollCancelled",!1),(0,Y.A)(this,"handleScroll",(()=>{const e=this.rootRef.current;e&&(e.scrollTop<this.prevScrollTop?this.autoscrollCancelled=!0:e.clientHeight+e.scrollTop>=e.scrollHeight&&(this.autoscrollCancelled=!1))}))}componentDidMount(){const{autoscroll:e}=this.props,t=this.rootRef.current;e&&t&&ri(t)}componentDidUpdate(){const{autoscroll:e}=this.props,t=this.rootRef.current;e&&t&&(this.prevScrollTop=t.scrollTop,this.autoscrollCancelled||ri(t))}render(){const{baseClassName:e,className:t,wide:n,cursor:s,children:a,autoscroll:i,...r}=this.props,o=i?this.handleScroll:void 0;return(0,L.jsxs)("pre",{className:F()(e,{[`${e}--wide`]:n},t),ref:this.rootRef,onScroll:o,...r,children:[a,s?(0,L.jsx)("span",{className:`${e}__cursor`}):null]})}}(0,Y.A)(oi,"defaultProps",{baseClassName:`${B.CLS_PREFIX}console-output`,wide:!1,cursor:!1,autoscroll:!0});const li=oi;let ci=0;const ui=({baseClassName:e=`${B.CLS_PREFIX}overlay`,className:t,children:n=null,isOpen:s,placement:a="center",size:i="md",sideBanner:r,sideBannerContainer:o,onClose:l,canCloseOnBackdropClick:c=!0,canCloseOnEscapePress:u=!0,style:d={},containerProps:p={},onAnimationExited:h,...m})=>{const g=(0,R.useRef)(null),f=(0,R.useRef)(null),[b,v]=(0,R.useState)(!1);(0,R.useEffect)((()=>v(s)),[s]);const y=()=>{if(null!==f.current&&null!==document.activeElement&&!f.current.contains(document.activeElement)){const e=f.current.querySelector("[autofocus]");e instanceof HTMLElement?e.focus():f.current.focus()}};(0,R.useLayoutEffect)((()=>{b&&y()}),[b]);const S=`${e}--open`,w={in:b,classNames:{enterActive:S,enterDone:S},timeout:300};return(0,L.jsx)(Ge,{level:B.Z_INDEX_OVERLAY,children:(0,L.jsxs)("div",{className:F()(e,`${e}--${a}`,`${e}--${i}`,r&&`${e}--side`,t),style:{"--overlay-side-banner-background":o?.background,"--overlay-side-banner-align":o?.align,...d},...m,children:[(0,L.jsx)(It,{nodeRef:g,...w,children:(0,L.jsx)("div",{ref:g,className:`${e}__backdrop`,onClick:()=>{c?G(l):b&&y()}})}),(0,L.jsx)(It,{onExited:h,nodeRef:f,...w,children:(0,L.jsxs)($s,{className:`${e}__content`,onKeyUp:u?e=>{const t=document.activeElement;t&&t.closest(".CodeMirror")||e.isDefaultPrevented()||"Escape"!==e.key||(G(l),e.preventDefault())}:void 0,ref:f,role:"dialog","aria-modal":"true",...p,children:[(0,L.jsx)("div",{className:`${e}__body`,children:n}),r&&(t=>{const n=`${e}__side`;let s=null;return s=(0,R.isValidElement)(t)?t:"string"==typeof t?(0,L.jsx)("img",{className:`${n}-image`,src:t,alt:""}):(0,L.jsx)("img",{className:`${n}-image`,...t}),(0,L.jsx)("div",{className:n,children:s})})(r)]})})]})})},di=({isOpen:e=!1,...t})=>{const n=(0,R.useRef)(!1),[s,a]=(0,R.useState)(!1),i=(0,R.useRef)(null),r=(0,R.useCallback)((()=>{n.current&&(n.current=!1,0==--ci&&(()=>{if(!Pt){const e=Math.abs(parseInt(document.body.style.marginTop||"0"));document.documentElement.style.position="",document.body.style.marginTop="",window.scrollTo(0,e),Pt=!0}})(),((e,t=500)=>{document.body!==e&&(e?.setAttribute("data-pul-focus-returned",t.toString()),setTimeout((()=>{e?.removeAttribute("data-pul-focus-returned")}),t))})(i.current,300),i.current?.focus())}),[]);return(0,R.useEffect)((()=>{e?(n.current=!0,(()=>{if(Pt){const e=-window.pageYOffset+"px";document.documentElement.style.position="fixed",document.body.style.marginTop=e,Pt=!1}})(),ci++,document.activeElement instanceof HTMLElement&&(i.current=document.activeElement),a(!0)):r()}),[e,r]),(0,R.useEffect)((()=>()=>r()),[r]),s?(0,L.jsx)(ui,{isOpen:e,onAnimationExited:()=>{a(!1)},...t}):null},pi=({onClose:e,closingConfirmation:t})=>{const[n,s]=(0,R.useState)(!1),[a,i]=(0,R.useState)(!1),r=()=>{i(!1)};let o;"function"==typeof e&&(o=()=>{t?(s(!0),i(!0)):e()});let l=null;return n&&(l=(0,L.jsx)(Wi,{isOpen:a,size:"sm",onClose:r,buttons:[(0,L.jsx)(ut,{intent:"primary",onClick:r,children:(0,L.jsx)(Wn,{content:"ClosingConfirmation.cancel"})},"cancel"),(0,L.jsx)(ut,{onClick:()=>{i(!1),G(e)},children:(0,L.jsx)(Wn,{content:"ClosingConfirmation.confirm"})},"confirm")],cancelButton:!1,children:(0,L.jsx)(_a,{children:(0,L.jsx)(Wn,{content:"ClosingConfirmation.content"})})})),{onCloseWithConfirmation:o,closingConfirmationDialog:l}},hi=e=>e.replace(/]/g,"").split("["),mi=(e,t)=>isNaN(t)&&(Array.isArray(e)||"object"!=typeof e||null===e)?{}:isNaN(t)||Array.isArray(e)?isNaN(t)?{...e}:[...e]:[],gi=(e,t,n)=>{const s=hi(t);let a;try{a=s.reduce(((e,t)=>e[t]),e)}catch{}return void 0===a?n:a},fi=(e,t,n)=>{const s=hi(t),a=mi(e,s[0]);let i,r=a;for(;(i=s.shift())&&s.length;)r[i]=mi(r[i],s[0]),r=r[i];return i&&(r[i]=n),a},bi=`${B.CLS_PREFIX}section-item`,vi=({baseClassName:e=bi,className:t,children:n,title:s,actions:a=!1,vertical:i,...r})=>{const o=(0,R.useContext)(ni);return(0,L.jsxs)("div",{className:F()(e,{[`${e}--actions`]:a,[`${e}--vertical`]:void 0===i?o:i},t),...r,children:[null==s?null:(0,L.jsx)("div",{className:`${e}__title`,children:s}),(0,L.jsx)("div",{className:`${e}__value`,children:n})]})},yi=({baseClassName:e=`${B.CLS_PREFIX}hint`,className:t,children:n,component:s,...a})=>{const i=s||"span";return(0,L.jsx)(i,{className:F()(e,t),...a,children:n})},Si=(0,R.createContext)(void 0);Si.displayName="FormContext";const wi=Si,xi=(0,R.createContext)(null),Ai=(0,R.createContext)(null);Ai.displayName="ScrollableElementFormContext";const _i=Ai,ki=(0,R.createContext)(void 0);ki.displayName="DisabledContext";const ji=ki,Ci=`${B.CLS_PREFIX}form-field`,Ii=void 0,Ti=(e,t=!1)=>{if(Array.isArray(e)&&e.length>0)return e;const n=[];return t&&n.push(void 0),n},Di=e=>!e&&0!==e||Array.isArray(e)&&0===e.length||!Array.isArray(e)&&"object"==typeof e&&0===Object.values(e).filter((e=>Boolean(e))).length;class Pi extends R.Component{constructor(e){super(e),(0,Y.A)(this,"fieldApi",void 0),(0,Y.A)(this,"targetRefs",void 0),(0,Y.A)(this,"focusTimer",null),(0,Y.A)(this,"getFieldApi",(e=>this.props.multi?{getValues:()=>this.fieldApi.getValues(),getId:()=>{const t=this.fieldApi.getId();return t?`${t}-${e}`:t},getDescriptionLabelId:()=>this.fieldApi.getDescriptionLabelId(),getName:()=>{const t=this.fieldApi.getName();return t?`${t}[${e}]`:t},getValue:t=>{const n=this.fieldApi.getValue();return n instanceof Array&&n[e]?n[e]:t},setValue:t=>{const n=Ti(this.fieldApi.getValue(),!0);return this.fieldApi.setValue(n.map(((n,s)=>s===e?t:n)))},getErrors:()=>{const t=this.fieldApi.getErrors();return t instanceof Array&&t[e]?t[e]:{}},getRequiredMark:()=>0===e?this.fieldApi.getRequiredMark():null,getSeparator:()=>(0,L.jsx)("span",{className:`${this.props.baseClassName}__separator`}),isDisabled:()=>!!this.props.disabled,getFullDescription:()=>0===e?this.fieldApi.getFullDescription():null}:this.fieldApi)),(0,Y.A)(this,"focus",(e=>{let t=0;Array.isArray(e)&&(t=e.findIndex((e=>Boolean(e))));const{scrollableElement:n}=this.props,s=this.targetRefs[t];s&&(setTimeout((()=>{X(s,{boundary:n})}),0),this.focusTimer=setTimeout((()=>{s&&(new Ys).focusFirstDescendant(s)}),500))})),(0,Y.A)(this,"handleAddMore",(()=>{const e=Ti(this.fieldApi.getValue(),!0);this.fieldApi.setValue([...e,Ii])})),(0,Y.A)(this,"handleRemove",(e=>{const t=Ti(this.fieldApi.getValue());this.fieldApi.setValue(t.filter(((t,n)=>n!==e))),G(this.props.onRemoveRow,e),this.setState((t=>t.errors&&t.errors.filter?{errors:t.errors.filter(((t,n)=>n!==e))}:{}))})),(0,Y.A)(this,"setTargetRef",(e=>t=>{this.targetRefs[e]=t})),(0,Y.A)(this,"renderRemoveButton",(e=>{const{multi:t,disabled:n,locale:s}=this.props,a=Ti(this.fieldApi.getValue()),i=t&&1===a.length&&!Di(a[0]);if(!t||a.length<1||1===a.length&&Di(a[0]))return null;const r=i?"clear":"remove",o=s?.[r],l=this.props.translate?.(r),c=o??l;return(0,L.jsx)(ut,{className:`${this.props.baseClassName}__remove`,icon:i?"clean":"cross-mark",tooltip:c,tooltipAsLabel:!0,onClick:()=>this.handleRemove(e),disabled:n,ghost:!0})})),(0,Y.A)(this,"renderDescription",((e,t)=>{const{baseClassName:n,description:s,multi:a}=this.props;return!s||a&&Ti(this.fieldApi.getValue()).length-1>e?null:(0,L.jsx)(yi,{id:t?`${t}-description`:void 0,component:"div",className:`${n}__description`,children:s})})),(0,Y.A)(this,"renderField",((e=0,t=!1)=>{const{baseClassName:n,className:s,id:a,name:i,value:r,onChange:o,label:l,description:c,errors:u,required:d,children:p,multi:h,disabled:m,addMoreValidator:g,onRemoveRow:f,locale:b,form:v,section:y,vertical:S,scrollableElement:w,fullDescription:x,translate:A,..._}=this.props,k=this.getFieldApi(e),j=k.getErrors(),C=j&&Object.keys(j).length>0;let I=l;I&&e&&(I="");let T="function"==typeof p?p(k):p;h&&(T=(0,L.jsxs)("div",{className:`${n}__multi`,children:[T," ",this.renderRemoveButton(e)]}));const D=k.getId(),P=b?.addMore??this.props.translate?.("addMore");return(0,L.jsxs)(vi,{className:F()(n,{[`${n}--error`]:C,[`${n}--vertical-multi`]:h&&S},s),title:null===I?null:(0,L.jsxs)("div",{className:`${n}__label`,children:[(0,L.jsx)("label",{htmlFor:D,children:I}),k.getFullDescription(),d?k.getRequiredMark():null]}),vertical:S,..._,children:[(0,L.jsx)("div",{ref:this.setTargetRef(e),children:T}),C&&Object.keys(j).map((e=>(0,L.jsxs)("span",{id:D?`${D}-${e}`:void 0,className:`${n}__error`,children:[(0,L.jsx)(xe,{className:`${n}__error-icon`,name:"exclamation-mark-circle-filled",size:"12"}),j[e]]},e))),this.renderDescription(e,D),t&&(0,L.jsx)(Us,{role:"button",onClick:this.handleAddMore,className:`${n}__add-more`,disabled:m,children:P})]},e)}));const{value:t,multi:n}=this.props;let s=t;n&&!s&&(s=[Ii]),this.state={value:s,errors:this.props.errors};const a=()=>this.props.form&&this.props.name?this.props.form.getErrors(this.props.name):this.state.errors;this.fieldApi={getId:()=>this.props.id?this.props.id:this.props.name?this.props.name.replace(/[[\]]+/g,"-").replace(/-+$/,""):void 0,getDescriptionLabelId:()=>{const e=a(),t=this.fieldApi.getId();if(t){if(e&&Object.keys(e).length>0){const[n]=Object.keys(e);return`${t}-${n}`}return this.props.description?`${t}-description`:void 0}},getName:()=>this.props.name,getValues:()=>this.props.form?this.props.form.getValues():null,getValue:e=>this.props.form&&this.props.name?this.props.form.getValue(this.props.name,e):this.state.value||e,setValue:e=>{this.setState({value:e}),this.props.form&&this.props.name&&this.props.form.setValue(this.props.name,e),G(this.props.onChange,e)},getErrors:a,getRequiredMark:()=>this.props.form?this.props.form.getRequiredMark():null,isDisabled:()=>Boolean(this.props.disabled),getFullDescription:()=>this.props.fullDescription?(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{"aria-label":this.props.translate?.("showDescription"),outerProps:{className:`${this.props.baseClassName}__full-description`},icon:{name:"info-circle",size:"12",className:`${this.props.baseClassName}__full-description-icon`}}),placement:"right",intent:"info",children:this.props.fullDescription}):null},this.targetRefs=[]}static getDerivedStateFromProps(e,t){const n={},{errors:s,form:a,required:i,name:r}=e,{prevErrors:o,prevRequired:l}=t;return void 0!==e.value&&(n.value=e.value),s!==o&&(n.errors=s),r&&a&&i!==l&&a.setRequiredField(r,!!i),n.prevErrors=s,n.prevRequired=i,n}componentDidMount(){this.props.form&&this.props.name&&(this.props.form.setRequiredField(this.props.name,!!this.props.required),this.props.form.registerField(this.props.name,{focus:this.focus,sectionContext:this.props.section}))}componentWillUnmount(){this.props.form&&this.props.name&&(this.props.form.setRequiredField(this.props.name,!1),this.props.form.unregisterField(this.props.name)),this.focusTimer&&clearTimeout(this.focusTimer)}render(){if(!this.props.multi)return this.renderField();const e="object"==typeof this.props.multi&&this.props.multi.max?this.props.multi.max:1/0;let t=0;const n=(this.fieldApi.getValue()||[]).length||1,s=[];do{s.push(this.renderField(t++,n===t&&n<e))}while(t<n);return s}}const Oi=({value:e,errors:t={},required:n=!1,baseClassName:s=Ci,...a})=>{const i=(0,R.useContext)(wi),r=(0,R.useContext)(xi),o=(0,R.useContext)(ni),l=void 0===a.vertical?o:a.vertical,c=(0,R.useContext)(_i),u=(0,R.useContext)(ji),d=Ne("FormField");return(0,L.jsx)(Pi,{...a,form:i,section:r,vertical:l,scrollableElement:c,disabled:a.disabled||u,value:e,errors:t,required:n,baseClassName:s,translate:d})};Oi.displayName="FormField";const Li=Oi,Mi=({value:e="",onSave:t,onCancel:n,baseClassName:s})=>{const a=Ne("InPlaceEdit"),[i,r]=(0,R.useState)(e),o=()=>t(i);return(0,L.jsxs)("div",{className:`${s}__edit`,children:[(0,L.jsx)(Os,{className:`${s}__edit-input`,value:i,onChange:e=>{r(e.target.value)},onKeyDown:e=>{"Escape"===e.key?n():"Enter"===e.key&&o()},autoFocus:!0}),(0,L.jsxs)("div",{className:`${s}__edit-actions`,children:[(0,L.jsx)(ut,{ghost:!0,className:F()(`${s}__control-button`,`${s}__control-button--ok`),icon:"check-mark",onClick:o,tooltip:a("okButtonHint"),tooltipAsLabel:!0}),(0,L.jsx)(ut,{ghost:!0,className:F()(`${s}__control-button`,`${s}__control-button--cancel`),icon:"cross-mark",onClick:n,tooltip:a("cancelButtonHint"),tooltipAsLabel:!0})]})]})},Ei=({baseClassName:e=`${B.CLS_PREFIX}in-place-edit`,className:t,onChange:n,value:s,...a})=>{const i=Ne("InPlaceEdit"),[r,o]=(0,R.useState)(!1),l=()=>o((e=>!e));return(0,L.jsxs)("div",{className:F()(e,t),...a,children:[!r&&s,!r&&n&&(0,L.jsx)(ut,{ghost:!0,className:F()(`${e}__control-button`,`${e}__control-button--edit`),onClick:l,icon:{name:"pencil",className:`${e}__control-button-icon`},tooltip:i("editButtonHint"),tooltipAsLabel:!0}),r&&(0,L.jsx)(Mi,{baseClassName:e,value:`${s}`,onSave:e=>{n?.(e),l()},onCancel:l})]})},Ri=e=>{if(!e.current)return!1;const{width:t}=e.current.getBoundingClientRect();return t<ei},Ui=`${B.CLS_PREFIX}section`,Ni=({baseClassName:e=Ui,className:t,intent:n,collapsible:s=!1,collapsed:a=!1,onToggle:i,title:r,onTitleChange:o,onClose:l,buttons:c,vertical:u,children:d,...p})=>{const h=Ne("Section"),m=(0,R.useRef)(null),g=(0,R.useRef)(null),f=((e,t)=>{const n=(0,R.useContext)(ni),[s,a]=(0,R.useState)(!1);return(0,R.useLayoutEffect)((()=>{a(Ri(t))}),[t]),Qs({ref:t,onResize:()=>{a(Ri(t))},callOnInit:!1}),[e,n,s].find((e=>"boolean"==typeof e))})(u,m),[b,v]=(e=>{const[t,n]=(0,R.useState)(e??!1),[s,a]=(0,R.useState)(e);return e!==s&&(a(e),n(e??!1)),[t,n]})(a),y=(0,R.useContext)(xi),S=(0,R.useMemo)((()=>({expand:()=>{y?.expand(),v(!1)}})),[v,y]);return(0,L.jsx)(xi.Provider,{value:S,children:(0,L.jsx)(ni.Provider,{value:f,children:(0,L.jsxs)("div",{ref:m,className:F()(e,{[`${e}--${n}`]:n,[`${e}--collapsible`]:s,[`${e}--collapsed`]:b,[`${e}--vertical`]:f},t),...p,children:[r&&(0,L.jsxs)("div",{className:`${e}__header`,children:[s&&(0,L.jsx)(ut,{"aria-label":h(b?"expand":"collapse"),ref:g,ghost:!0,className:F()(`${e}__control-button`,`${e}__control-button--collapse`),icon:{name:"chevron-up",flipVertical:b},onClick:()=>{v((e=>(i?.(!e),!e)))},"aria-expanded":!b}),(0,L.jsx)(Ei,{className:`${e}__title`,value:r,onChange:o,onClick:e=>{s&&!Q(e)&&g.current?.click()}}),(l||c)&&(0,L.jsxs)("div",{className:`${e}__header-buttons`,children:[c,l&&(0,L.jsx)(ut,{ghost:!0,"aria-label":h("closeButton"),className:F()(`${e}__control-button`,`${e}__control-button--close`),onClick:l,icon:"cross-mark"})]})]}),(0,L.jsx)("div",{style:{display:b?"none":void 0},children:d})]})})})},Fi=st({defaultProps:{size:"lg"}});class Bi extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{values:this.props.values,vertical:this.props.vertical||!1,requiredFields:[],formContext:{getValues:()=>this.state.values,getValue:(e,t)=>this.state.values?gi(this.state.values,e,t):t,setValue:(e,t)=>{this.setState((({values:n})=>n?{values:fi(n,e,t)}:null)),G(this.props.onFieldChange,e,t)},getErrors:e=>this.props.errors?gi(this.props.errors,e,{}):{},registerField:(e,t)=>{e&&(this.fields[e]=t)},unregisterField:e=>{e&&delete this.fields[e]},setRequiredField:(e,t)=>{this.setState((n=>t?{requiredFields:[...n.requiredFields,e]}:{requiredFields:n.requiredFields.filter((t=>t!==e))}))},getRequiredMark:()=>this.props.requiredMark}}),(0,Y.A)(this,"fields",{}),(0,Y.A)(this,"handleSubmit",(e=>{e.preventDefault(),this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!1)})),(0,Y.A)(this,"handleSubmitClick",(e=>{"submit"!==e.currentTarget.type&&this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!1)})),(0,Y.A)(this,"handleApplyClick",(e=>{"submit"!==e.currentTarget.type&&this.props.onSubmit&&this.state.values&&this.props.onSubmit(this.state.values,!0)})),(0,Y.A)(this,"handleResize",(({bounds:e})=>{const{vertical:t}=this.props;void 0===t?this.setState({vertical:e.width<ei}):this.setState({vertical:t})})),(0,Y.A)(this,"renderForm",(({actionButtons:e}={})=>{const{innerRef:t,baseClassName:n,className:s,children:a,requiredMark:i,hideRequiredLegend:r,values:o,errors:l,submitButton:c,applyButton:u,cancelButton:d,onFieldChange:p,onSubmit:h,additionalButtons:m,footerClassName:g,state:f,render:b,vertical:v,...y}=this.props;return(0,L.jsx)(wi.Provider,{value:this.state.formContext,children:(0,L.jsx)(ni.Provider,{value:this.state.vertical,children:(0,L.jsx)(ji.Provider,{value:!!f,children:(0,L.jsx)(Ps,{onResize:this.handleResize,innerRef:t,bounds:!0,children:({measureRef:t})=>(0,L.jsxs)("form",{ref:t,className:F()(n,{[`${n}--has-required`]:this.hasRequiredField()},s),onSubmit:this.handleSubmit,...y,children:[a,e,(0,L.jsx)("input",{type:"image",src:"data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=",style:{border:0,height:0,width:0,position:"absolute",display:"none"},"aria-hidden":"true",tabIndex:-1})]})})})})})})),(0,Y.A)(this,"renderActionButtons",(()=>{const{submitButton:e,applyButton:t,cancelButton:n,state:s,additionalButtons:a,baseClassName:i,footerClassName:r}=this.props;return(0,L.jsx)(Ni,{className:F()(`${i}__footer`,r),children:(0,L.jsx)(Li,{children:(0,L.jsxs)(nt.Provider,{value:Fi,children:[this.renderSubmitButton({submitButton:e,state:s}),this.renderApplyButton({applyButton:t,state:s}),this.renderAdditionalButtons({additionalButtons:a}),this.renderCancelButton({cancelButton:n,state:s})]})})})}))}static getDerivedStateFromProps(e,t){const{values:n,errors:s,requiredMark:a}=e,{prevValues:i,prevErrors:r,prevRequiredMark:o}=t,l={};return n!==i&&(l.values=n),n===i&&s===r&&a===o||(l.formContext={...t.formContext}),l.prevValues=n,l.prevErrors=s,l.prevRequiredMark=a,l}componentDidUpdate(e){const{errors:t}=this.props;if(t!==e.errors){let e,n;Object.keys(this.fields).forEach((s=>{const a=gi(t,s);if(!a||"object"!=typeof a||0===Object.keys(a).length)return;const i=this.fields[s];i.sectionContext?.expand(),e||(e=i,n=a)})),e&&e.focus(n)}}hasRequiredField(){return this.props.requiredMark&&this.state.requiredFields.length>0}renderSubmitButton({submitButton:e,state:t}){return e?(0,L.jsx)(ut,{intent:"primary",state:"submit"===t?"loading":void 0,disabled:!!t,onClick:this.handleSubmitClick,children:(0,L.jsx)(Wn,{content:"Form.submitButton"}),..."object"==typeof e?e:{}}):null}renderApplyButton({applyButton:e,state:t}){return e?(0,L.jsx)(ut,{intent:"primary",state:"apply"===t?"loading":void 0,disabled:!!t,onClick:this.handleApplyClick,children:(0,L.jsx)(Wn,{content:"Form.applyButton"}),..."object"==typeof e?e:{}}):null}renderCancelButton({cancelButton:e,state:t}){return e?(0,L.jsx)(ut,{state:"cancel"===t?"loading":void 0,disabled:!!t,children:(0,L.jsx)(Wn,{content:"Form.cancelButton"}),..."object"==typeof e?e:{}}):null}renderAdditionalButtons({additionalButtons:e}){const{baseClassName:t}=this.props;return Array.isArray(e)?e.map((e=>{if((0,R.isValidElement)(e)){const n={className:F()(e.props.className,`${t}__additional-button`)};return(0,R.cloneElement)(e,n)}return e})):null}render(){const{render:e}=this.props;return"function"==typeof e?e({renderForm:this.renderForm,renderActionButtons:this.renderActionButtons}):this.renderForm({actionButtons:this.renderActionButtons()})}}(0,Y.A)(Bi,"defaultProps",{children:void 0,requiredMark:(0,L.jsx)("span",{className:`${B.CLS_PREFIX}form__required`}),hideRequiredLegend:!1,values:{},errors:{},state:void 0,submitButton:!0,applyButton:!0,cancelButton:!0,additionalButtons:[],onFieldChange:void 0,onSubmit:void 0,className:void 0,footerClassName:void 0,vertical:void 0,baseClassName:`${B.CLS_PREFIX}form`,render:void 0,innerRef:void 0});const Yi=(0,R.forwardRef)(((e,t)=>{const n=(0,R.useRef)(null);return(0,R.useImperativeHandle)(t,(()=>({submit(){n.current?.dispatchEvent(new Event("submit",{cancelable:!0,bubbles:!0}))}}))),(0,L.jsx)(Bi,{innerRef:n,...e})}));Yi.displayName="Form";const Hi=Yi,Vi=e=>e&&"object"==typeof e&&!(0,R.isValidElement)(e),Wi=({baseClassName:e=`${B.CLS_PREFIX}dialog`,isOpen:t=!1,size:n="md",closable:s=!0,canClose:a=!0,className:i,children:r,actions:o,banner:l,image:c,title:u,subtitle:d,cancelTitle:p,cancelButton:h,buttons:m,form:g,onClose:f,closingConfirmation:b,...v})=>{const y=Ne("Dialog"),[S,w]=(0,R.useState)(t),{onCloseWithConfirmation:x,closingConfirmationDialog:A}=pi({onClose:()=>{w(!1),G(f)},closingConfirmation:b});(0,R.useEffect)((()=>{w(t)}),[t]);const _=(t,n)=>{const s=`${e}__${n}`;return(0,R.isValidElement)(t)?(0,L.jsx)("div",{className:s,children:t}):"string"==typeof t?(0,L.jsx)("div",{className:s,children:(0,L.jsx)("img",{alt:"",className:`${s}-inner`,src:t})}):(0,L.jsx)("div",{className:s,children:(0,L.jsx)("img",{alt:"",className:`${s}-inner`,...t})})},k=(e=g)=>{if(!s)return!1;if(!1===h||e&&!1===e.cancelButton)return!1;let t={onClick:x,children:p||(0,L.jsx)(Wn,{content:"Dialog.cancelButton"})};return e&&Vi(e.cancelButton)&&(t={...t,...e.cancelButton}),Vi(h)&&(t={...t,...h}),t};let j;g?(0,R.isValidElement)(g)?j=(0,R.cloneElement)(g,{cancelButton:k(g.props),footerClassName:F()(g.props.footerClassName,`${e}__form-footer`)}):"object"==typeof g&&(g.cancelButton=k(),g.footerClassName=F()(g.footerClassName,`${e}__form-footer`),g.applyButton=g.applyButton||!1,j=(0,L.jsx)(Hi,{...g,children:r})):j=r;const C=(0,R.useId)();return(0,L.jsxs)(di,{className:F()(e,i),isOpen:S,onClose:x,canCloseOnBackdropClick:a&&s,canCloseOnEscapePress:a&&s,size:n,containerProps:{"aria-labelledby":u?C:void 0},...v,children:[(u||d||o)&&(0,L.jsxs)("header",{className:`${e}__header`,children:[l&&_(l,"banner"),(0,L.jsx)("div",{className:`${e}__header-inner`,children:(0,L.jsxs)("div",{className:`${e}__header-body`,children:[(0,L.jsxs)("div",{className:`${e}__header-content`,children:[(0,L.jsx)("div",{id:C,children:Fs(u)?(0,L.jsx)(Ns,{level:2,className:`${e}__title`,children:u}):(0,L.jsx)("div",{className:`${e}__title`,children:u})}),d&&(0,L.jsx)("div",{className:`${e}__subtitle`,children:Fs(d)?(0,L.jsx)(da,{intent:"muted",children:d}):d})]}),(o||s)&&(0,L.jsxs)("div",{className:`${e}__header-actions`,children:[o,s&&(0,L.jsx)(ut,{"aria-label":y("closeButton"),className:`${e}__header-close`,disabled:!a,ghost:!0,size:"lg",icon:"cross-mark",onClick:x})]})]})})]}),(0,L.jsxs)("div",{className:`${e}__content`,children:[c&&_(c,"image"),j,(()=>{if(g)return null;let t;const n=k();return n&&(t=(0,L.jsx)(ut,{...n})),m||t?(0,L.jsxs)("div",{className:`${e}__buttons`,children:[m,t]}):null})()]}),A]})},$i=({baseClassName:e=`${B.CLS_PREFIX}drawer-header`,onClose:t,children:n,backButton:s=!1,hideButton:a=!1,tabs:i,...r})=>{const o=Ne("Drawer");let l,c;return t&&(s?l=(0,L.jsx)(ut,{ghost:!0,"aria-label":o("backButton"),className:F()(`${e}__button`,`${e}__button--back`),size:"lg",icon:(0,L.jsx)(xe,{name:"chevron-left",flipHorizontal:Dt(),className:`${e}__icon`}),onClick:t}):c=a?(0,L.jsx)("div",{className:`${e}__actions`,children:(0,L.jsx)(ut,{ghost:!0,"aria-label":o("hideButton"),className:F()(`${e}__button`,`${e}__button--hide`),size:"lg",icon:(0,L.jsx)(xe,{className:`${e}__icon`,name:"minimize"}),onClick:t})}):(0,L.jsx)("div",{className:`${e}__actions`,children:(({disabled:n=!1}={})=>(0,L.jsx)(ut,{ghost:!0,"aria-label":o("closeButton"),className:F()(`${e}__button`,`${e}__button--close`),size:"lg",icon:(0,L.jsx)(xe,{name:"cross-mark",className:`${e}__icon`}),onClick:t,disabled:n}))()})),(0,L.jsx)("div",{className:e,...r,children:(0,L.jsxs)("div",{className:`${e}__inner`,children:[l,(0,L.jsxs)("div",{className:`${e}__content`,children:[n,i&&(0,L.jsx)("div",{className:`${e}__tabs`,children:(0,L.jsx)("div",{className:`${e}__tabs-inner`,children:i})})]}),c]})})},zi={info:"info-circle-filled",success:"check-mark-circle-filled",warning:"triangle-exclamation-mark-filled",danger:"exclamation-mark-circle-filled",inactive:"cross-mark-circle-filled"},qi=(e,t)=>{if(!1!==e)return!0!==e&&e||!t||(e=zi[t]),xe.create(e,t?{name:zi[t]}:void 0)},Gi=({baseClassName:e=`${B.CLS_PREFIX}status`,className:t,children:n,icon:s,intent:a,progress:i,compact:r,flip:o,outerProps:l={},...c})=>("muted"===a&&(a="inactive"),(0,L.jsx)(_e,{component:"span",icon:r?void 0:qi(s,a),className:F()(e,{[`${e}--${a}`]:a&&!i,[`${e}--on-dark`]:(0,R.useContext)(ce)},t),role:"warning"===a||"danger"===a?"alert":"status",outerProps:{...l,className:F()({[`${e}--compact`]:r,[`${e}--flip`]:o},l.className)},progress:i,...c,children:n})),Ki=({baseClassName:e=`${B.CLS_PREFIX}progress-bar__indicator`,className:t,intent:n,progress:s=-1,...a})=>(0,L.jsx)("div",{className:F()(e,{[`${e}--${n}`]:n,[`${e}--indeterminate`]:-1===s},t),style:s>=0&&s<=100?{width:`${s}%`}:void 0,...a}),Qi=({baseClassName:e=`${B.CLS_PREFIX}progress-bar`,className:t,intent:n,progress:s=-1,...a})=>(0,L.jsx)("div",{className:F()(e,{[`${e}--on-dark`]:(0,R.useContext)(ce)},t),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s>=0&&s<=100?s:void 0,role:"progressbar",...a,children:(0,L.jsx)(Ki,{intent:n,progress:s})}),Ji="not_started",Xi="running",Zi="done",er="warning",tr="error",nr=Ji,sr=({className:e,children:t,icon:n,title:s,statusText:a,progress:i=-1,status:r=nr,baseClassName:o=`${B.CLS_PREFIX}progress-step`,...l})=>{let c=null;switch(r){case Ji:c="inactive",n="dot";break;case Xi:c=!1,n="dot";break;case Zi:c="success",n="check-mark-circle-filled";break;case er:c="warning",n="triangle-exclamation-mark-filled";break;case tr:c="danger",n="exclamation-mark-circle-filled";break;case"canceled":i=0,c="inactive",n="cross-mark-circle-filled"}return n=xe.create(n,{className:`${o}__icon`,size:de,intent:c}),!a||(0,R.isValidElement)(a)&&a.type===Gi||(a=(0,L.jsx)(Gi,{children:a})),(0,L.jsxs)("div",{className:F()(o,{[`${o}--${c}`]:c,[`${o}--content`]:R.Children.toArray(t).length,[`${o}--on-dark`]:(0,R.useContext)(ce)},e),...l,children:[n&&(0,L.jsx)("div",{className:`${o}__media`,children:n}),(0,L.jsxs)("div",{className:`${o}__body`,children:[(s||a||R.Children.toArray(t).length>0)&&(0,L.jsxs)("div",{className:`${o}__labels`,children:[(0,L.jsxs)("div",{className:`${o}__labels-body`,children:[s&&(0,L.jsx)("div",{className:`${o}__title`,children:s}),R.Children.toArray(t).length?(0,L.jsx)("div",{className:`${o}__content`,children:t}):null]}),a&&(0,L.jsx)("div",{className:`${o}__status`,children:a})]}),Xi===r&&(0,L.jsx)(Qi,{className:`${o}__progress`,intent:"info",progress:i})]})]})};class ar extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{status:null})}static getDerivedStateFromProps({children:e}){let t=!0,n=!0,s=!0,a=!1;return e&&R.Children.forEach(e,(e=>{if((0,R.isValidElement)(e)){const i=e.props.status??nr;t=t&&i===Ji,n=n&&i===Zi,s=s&&[Zi,er].includes(i),a=a||i===tr}})),n?{status:Zi}:s?{status:er}:t?{status:Ji}:a?{status:tr}:{status:Xi}}componentDidMount(){const{status:e}=this.state,{onStatusChange:t}=this.props;e&&G(t,e)}componentDidUpdate(e,t){const{status:n}=this.state,{onStatusChange:s}=this.props;t.status!==n&&n&&G(s,n)}render(){const{baseClassName:e,className:t,children:n,onStatusChange:s,...a}=this.props;return(0,L.jsx)("div",{className:F()(e,t),...a,children:n})}}(0,Y.A)(ar,"defaultProps",{onStatusChange:null,children:null,className:null,baseClassName:`${B.CLS_PREFIX}progress`});const ir=ar,rr=st({defaultProps:{size:"lg"}});class or extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{status:null}),(0,Y.A)(this,"closeTimeout",void 0),(0,Y.A)(this,"handleStatusChange",(e=>{const{onClosableChange:t,onFinish:n,onFail:s,cancelable:a,onStatusChange:i}=this.props,r=e===Zi,o=e===tr;G(i,e),this.setState({status:e}),G(t,a||r||o),r?G(n):o&&G(s)})),(0,Y.A)(this,"handleClose",(()=>{const{onClose:e,onCancel:t,cancelable:n}=this.props;window.clearTimeout(this.closeTimeout),n&&G(t),G(e)})),(0,Y.A)(this,"handleCancel",(()=>{const{onCancel:e,onClose:t,cancelable:n}=this.props;window.clearTimeout(this.closeTimeout),n&&G(e),G(t)}))}componentDidUpdate(e,t){const{autoCloseTimeout:n,onStart:s}=this.props,{status:a}=this.state;t.status!==Zi&&a===Zi&&(window.clearTimeout(this.closeTimeout),null!==n&&(this.closeTimeout=window.setTimeout(this.handleClose,n))),t.status===Ji&&a!==Ji&&G(s)}componentWillUnmount(){window.clearTimeout(this.closeTimeout)}render(){const{baseClassName:e,title:t,steps:n,buttons:s,cancelable:a,render:i}=this.props,{status:r}=this.state,o=a&&!(r===Zi||r===tr),l=!(!s&&!o),c=(0,L.jsxs)(R.Fragment,{children:[t&&(0,L.jsx)("div",{className:`${e}__title`,children:t}),(0,L.jsx)(ir,{onStatusChange:this.handleStatusChange,className:`${e}__progress`,children:n.map(((e,t)=>(0,L.jsx)(sr,{...e},t.toString())))})]}),u=l?(0,L.jsxs)("div",{className:`${e}__footer`,children:[(0,L.jsx)(nt.Provider,{value:rr,children:s}),o&&(0,L.jsx)(ut,{onClick:this.handleCancel,size:"lg",children:(0,L.jsx)(Wn,{content:"DrawerProgress.cancelButton"})})]}):null;return"function"==typeof i?i({content:c,footer:u}):(0,L.jsxs)(R.Fragment,{children:[c,u]})}}(0,Y.A)(or,"defaultProps",{baseClassName:`${B.CLS_PREFIX}drawer-progress`,autoCloseTimeout:0,cancelable:!1,steps:[]});const lr=or,cr=({baseClassName:e=`${B.CLS_PREFIX}drawer`,isOpen:t=!1,placement:n="left",size:s="md",className:a,children:i,title:r,subtitle:o,backButton:l,hideButton:c,tabs:u,onClose:d,form:p,progress:h,closingConfirmation:m,...g})=>{const f=(0,R.useRef)(null),[b,v]=(0,R.useState)(!0),{onCloseWithConfirmation:y,closingConfirmationDialog:S}=pi({onClose:d,closingConfirmation:m}),w=(0,R.useId)();return(0,L.jsxs)(di,{className:F()(e,{[`${e}--form`]:p},a),onClose:y,canCloseOnBackdropClick:!0,isOpen:t,placement:n,size:s,containerProps:{"aria-labelledby":w},...g,children:[(t=>{if(h){h.onClose=y,h.onClosableChange=v;const n=({content:n,footer:s})=>t({content:(0,L.jsx)("div",{className:`${e}__form`,children:n}),footer:s});return(0,L.jsx)(lr,{render:n,...h})}if(p){if((0,R.isValidElement)(p))return(0,R.cloneElement)(p,{className:F()(`${e}__form`,p.props.className),cancelButton:!1!==p.props.cancelButton&&{onClick:y,..."object"==typeof p.props.cancelButton&&p.props.cancelButton},render:({renderForm:e,renderActionButtons:n})=>t({content:e(),footer:n()})});if("object"==typeof p)return p.className=F()(`${e}__form`,p.className),!1!==p.cancelButton&&(p.cancelButton={onClick:y,..."object"==typeof p.cancelButton&&p.cancelButton}),(0,L.jsx)(Hi,{...p,render:({renderForm:e,renderActionButtons:n})=>t({content:e(),footer:n()}),children:i})}return t({content:(0,L.jsx)("div",{className:`${e}__inner-body`,children:i})})})((({content:t,footer:n})=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)($i,{backButton:l,hideButton:"boolean"==typeof c?c:Boolean(h&&!b),onClose:y,tabs:u,children:[(0,L.jsx)("div",{id:w,children:Fs(r)?(0,L.jsx)(Ns,{level:2,className:`${e}__title`,children:r}):(0,L.jsx)("div",{className:`${e}__title`,children:r})}),o&&(0,L.jsx)("div",{className:`${e}__subtitle`,children:o})]}),(0,L.jsx)("div",{className:`${e}__body`,ref:f,children:(0,L.jsx)(_i.Provider,{value:f.current,children:t})}),n&&(0,L.jsx)("footer",{className:`${e}__footer`,children:(0,L.jsx)("div",{className:`${e}__footer-inner`,children:n})})]}))),S]})},ur=({baseClassName:e=`${B.CLS_PREFIX}extended-status-message`,className:t,intent:n,image:s,children:a=!1,loading:i,...r})=>(0,L.jsx)("div",{className:`${e}__container`,children:(0,L.jsxs)("div",{className:F()(e,{[`${e}--${n}`]:n,[`${e}--loading`]:i},t),role:"warning"===n||"danger"===n?"alert":"status",...r,children:[s?(0,L.jsx)("div",{className:`${e}__image`,children:s}):null,(0,L.jsx)("div",{className:`${e}__body`,children:a}),i&&(0,L.jsx)(Qn,{overlay:!0,text:!0===i?null:i})]})}),dr=({baseClassName:e=`${B.CLS_PREFIX}extended-status-message`,className:t,children:n,...s})=>(0,L.jsx)("div",{className:F()(`${e}__actions`,t),...s,children:n}),pr=({baseClassName:e=`${B.CLS_PREFIX}extended-status-message`,className:t,children:n,...s})=>(0,L.jsx)("div",{className:F()(`${e}__description`,t),...s,children:n}),hr=({baseClassName:e=`${B.CLS_PREFIX}extended-status-message`,className:t,children:n,...s})=>(0,L.jsx)(Ns,{level:3,className:F()(`${e}__title`,t),...s,children:n}),mr=({className:e,label:t,autoFocus:n,required:s=!1,checkedValue:a=!0,uncheckedValue:i=!1,baseClassName:r=`${B.CLS_PREFIX}form-field-checkbox`,...o})=>(0,L.jsx)(Li,{className:F()(r,e),label:null,required:s,...o,children:({getId:e,getName:r,getValue:o,setValue:l,getRequiredMark:c,getFullDescription:u,isDisabled:d,getErrors:p,getDescriptionLabelId:h})=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("input",{type:"hidden",name:r(),value:i.toString()}),(0,L.jsx)(Tt,{checked:o()===a,onChange:e=>l(e?a:i),inputProps:{id:e(),name:r(),value:a.toString(),autoFocus:n,"aria-invalid":!!Object.keys(p()??{}).length,"aria-describedby":h()},disabled:d(),rightAddon:(0,L.jsxs)(L.Fragment,{children:[u(),s?c():null]}),children:t})]})}),gr=({baseClassName:e=`${B.CLS_PREFIX}toast`,className:t,message:n,intent:s,accent:a,icon:i=s&&(0,L.jsx)(xe,{name:zi[s]}),onClose:r,closable:o=!0,autoClosable:l,autoCloseTimeout:c,innerRef:u,groupKey:d,...p})=>{const h=Ne("Toast");(({autoClosable:e,autoCloseTimeout:t,onClose:n})=>{const s=(0,R.useRef)(n);s.current=n,(0,R.useEffect)((()=>{const n=((e,t)=>"boolean"!=typeof e?t:e?6e3:void 0)(e,t);let a;return n&&s.current&&(a=window.setTimeout(s.current,n)),()=>window.clearTimeout(a)}),[e,t])})({autoClosable:l,autoCloseTimeout:c,onClose:r});const m=(0,L.jsxs)("div",{tabIndex:0,role:"status",className:F()(e,s&&`${e}--${s}`,a&&`${e}--accent`,t),...p,ref:u,children:[i&&(0,L.jsx)("div",{className:`${e}__icon`,children:xe.create(i,{intent:s})}),(0,L.jsx)("div",{className:`${e}__content`,children:n}),o&&(0,L.jsx)("div",{className:`${e}__action`,children:(0,L.jsx)(ut,{ghost:!0,"aria-label":h("closeButton"),icon:{name:"cross-mark",size:"12"},className:`${e}__close`,onClick:r})})]});return a?m:(0,L.jsx)(ce.Provider,{value:!0,children:m})},fr={numbers1:"numbers3",specialChar1:"specialChar2",lettersLowerCase:"comboUpperAndLower",lettersUpperCase:"comboUpperAndLower"},br=[{name:"passwordTooShort",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.passwordTooShort"}),score:e=>e.length<5?-1:0},{name:"passwordLength",score:e=>e.length<5?3:e.length>4&&e.length<8?6:e.length>7&&e.length<16?12:18},{name:"lettersLowerCase",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.lettersLowerCase"}),score:e=>e.match(/[a-z]/)?1:-1},{name:"lettersUpperCase",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.lettersUpperCase"}),score:e=>e.match(/[A-Z]/)?5:-1},{name:"numbers1",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.numbers1"}),score:e=>e.match(/\d+/)?5:-1},{name:"numbers3",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.numbers3"}),score:e=>e.match(/(.*[0-9].*[0-9].*[0-9])/)?5:-1},{name:"specialChar1",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.specialChar1"}),score:e=>e.match(/[!@#$%^&*?_~]/)?5:-1},{name:"specialChar2",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.specialChar2"}),score:e=>e.match(/(.*[!@#$%^&*?_~].*[!@#$%^&*?_~])/)?5:-1},{name:"comboUpperAndLower",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.comboUpperAndLower"}),score:e=>e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)?2:-1},{name:"comboLettersAndNumbers",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.comboLettersAndNumbers"}),score:e=>e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)?2:-1},{name:"comboLettersNumbersSpecial",suggestion:(0,L.jsx)(Wn,{content:"FormFieldPassword.comboLettersNumbersSpecial"}),score:e=>e.match(/([a-zA-Z0-9].*[!@#$%^&*?_~])|([!@#$%^&*?_~].*[a-zA-Z0-9])/)?2:-1}],vr=(e,t=br)=>{let n=0;const s=[],a=new Set;let i;switch(t.forEach((t=>{const i=t.score(e);i>=0?n+=i:(a.add(fr[t.name]),!a.has(t.name)&&t.suggestion&&s.push(t.suggestion))})),!0){case n<16:i="VeryWeak";break;case n<25:i="Weak";break;case n<35:i="Medium";break;case n<45:i="Strong";break;default:i="VeryStrong"}return{strength:i,suggestions:s}};const yr={VeryWeak:"danger",Weak:"danger",Medium:"warning",Strong:"success",VeryStrong:"success"},Sr=({value:e,visible:t,onEstimate:n,children:s,...a})=>{const[i,r]=(0,R.useState)(null);return(0,R.useEffect)((()=>{if(!t)return;const s=n??null;Promise.resolve(s?s(e,vr,br):vr(e)).then((e=>{r(e)}))}),[t,e,n]),(0,L.jsxs)(Ks,{visible:t&&null!==i,placement:"top-right",intent:i?yr[i.strength]:void 0,canCloseOnOutsideClick:!1,canCloseOnEscapePress:!1,...a,target:s,children:[i?.strength?(0,L.jsx)(Wn,{component:"div",content:"FormFieldPassword.passwordStrength",params:{strength:(0,L.jsx)("b",{children:(0,L.jsx)(Wn,{content:`FormFieldPassword.strength${i?.strength}`})})}}):null,i?.suggestions.length?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Wn,{content:"FormFieldPassword.improvePassword"}),(0,L.jsx)("br",{}),(0,L.jsx)("ul",{children:i.suggestions.slice(0,3).map(((e,t)=>(0,L.jsx)("li",{children:e},t.toString())))})]}):(0,L.jsx)(Wn,{content:"FormFieldPassword.yourPasswordIsStrong"})]})},wr={upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",lower:"abcdefghijklmnopqrstuvwxyz",number:"0123456789",special:"!@#$%^&*?_~"};class xr extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{copyToastVisible:!1,visible:!1,passwordMeterVisible:!1,passwordGenerated:!1}),(0,Y.A)(this,"targetRef",(0,R.createRef)()),(0,Y.A)(this,"handleToggleClick",(()=>{this.setState((({visible:e})=>({visible:!e})))})),(0,Y.A)(this,"handleClosePasswordMeter",(()=>{this.setState({passwordMeterVisible:!1})})),(0,Y.A)(this,"handleBlur",this.handleClosePasswordMeter),(0,Y.A)(this,"handleCopyToClipboard",(e=>{(e=>{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)})(e),this.setState({copyToastVisible:!0})}))}renderCopyButton({value:e,isDisabled:t}){const{baseClassName:n,copyButton:s,translate:a}=this.props,i={className:`${n}__button--copy`,icon:"copy",onClick:()=>this.handleCopyToClipboard(e),tooltip:a?.("copyButtonHint"),tooltipAsLabel:!0,disabled:t()};let r;return r="function"==typeof s?s(i):(0,L.jsx)(ut,{...i}),(0,L.jsxs)(R.Fragment,{children:[" ",r]})}renderGenerateButton({setValue:e,isDisabled:t}){const{baseClassName:n,generateButton:s,translate:a}=this.props,i={className:`${n}__button--generate`,onClick:()=>{e(["upper","upper","upper","lower","lower","lower","lower","lower","lower","lower","lower","number","number","number","special","special"].sort(((e,t)=>Math.floor(t.length*Math.random())-Math.floor(e.length*Math.random()))).map((e=>wr[e][Math.floor(wr[e].length*Math.random())])).join("")),this.setState({passwordGenerated:!0})},tooltip:a?.("generateButtonHint"),tooltipAsLabel:!0,disabled:t(),children:(0,L.jsx)(Wn,{content:"FormFieldPassword.generateButton"})};let r;return r="function"==typeof s?s(i):(0,L.jsx)(ut,{...i}),(0,L.jsxs)(R.Fragment,{children:[" ",r]})}render(){const{baseClassName:e,className:t,hideShowButton:n,copyButton:s,generateButton:a,hideCopyButton:i,hideGenerateButton:r,hidePasswordMeter:o,passwordMeterProps:l,size:c,autoFocus:u,autoComplete:d,translate:p,...h}=this.props,{visible:m,passwordMeterVisible:g}=this.state;return(0,L.jsx)(Li,{className:F()(e,t),...h,children:({getId:t,getName:s,getValue:a,setValue:h,getErrors:f,isDisabled:b,getDescriptionLabelId:v})=>{const y=a(""),S=(0,L.jsx)(Os,{id:t(),name:s(),type:m?"text":"password",value:y,onChange:e=>{h(e.target.value),this.setState({passwordMeterVisible:!0})},onBlur:this.handleBlur,autoFocus:u,autoComplete:d,className:`${e}__input`,size:c,"aria-invalid":!!Object.keys(f()??{}).length,"aria-describedby":v(),suffix:n?null:(0,L.jsx)(ut,{className:`${e}__button--show`,onClick:this.handleToggleClick,icon:m?"visible":"invisible",tooltip:p?.(m?"hidePassword":"showPassword"),tooltipAsLabel:!0,ghost:!0,disabled:b()}),disabled:b(),rootProps:{ref:this.targetRef}});return(0,L.jsxs)("div",{className:F()(`${e}__control`,`${e}__control--${c}`),children:[this.state.copyToastVisible&&(0,L.jsx)("div",{className:`${e}__toast`,children:(0,L.jsx)(gr,{autoClosable:!0,onClose:()=>this.setState({copyToastVisible:!1}),icon:"check-mark-circle-filled",intent:"success",message:(0,L.jsx)(Wn,{content:"FormFieldPassword.copySuccessToast"})})}),(0,L.jsx)("div",{className:F()(`${e}__field`,`${e}__field--${c}`),children:o?S:(0,L.jsx)(Sr,{value:y,targetRef:this.targetRef,visible:g&&""!==y,onClose:this.handleClosePasswordMeter,...l,children:S})}),r?null:this.renderGenerateButton({setValue:h,isDisabled:b}),i||!this.state.passwordGenerated?null:this.renderCopyButton({value:y,isDisabled:b})]})}})}}(0,Y.A)(xr,"defaultProps",{hideShowButton:!1,copyButton:void 0,generateButton:void 0,hideCopyButton:!1,hideGenerateButton:!1,hidePasswordMeter:!1,passwordMeterProps:{},size:"md",autoFocus:void 0,autoComplete:void 0,className:void 0,baseClassName:`${B.CLS_PREFIX}form-field-password`});const Ar=e=>{const t=Ne("FormFieldPassword");return(0,L.jsx)(xr,{...e,translate:t})},_r=({baseClassName:e=`${B.CLS_PREFIX}form-field-radio-buttons`,className:t,options:n,autoFocus:s,...a})=>(0,L.jsx)(Li,{className:F()(e,t),...a,children:({getId:t,getName:i,getValue:r,setValue:o,isDisabled:l,getErrors:c,getDescriptionLabelId:u})=>(0,L.jsxs)("fieldset",{"aria-invalid":!!Object.keys(c()??{}).length,"aria-describedby":u(),className:`${e}__fieldset`,children:[a.label&&(0,L.jsx)("legend",{className:`${e}__legend`,children:a.label}),n.map((({value:n,label:a,description:c,disabled:u,indentFields:d=[]},p)=>(0,L.jsxs)("div",{className:`${e}__radio`,children:[(0,L.jsx)(Za,{name:i(),checked:r()===n,onChange:e=>{e&&o(n)},disabled:l()||u,inputProps:{id:t()?`${t()}-${n}`:void 0,name:i(),value:n,autoFocus:!(0!==p||!s)||void 0},children:a||n}),c||d?(0,L.jsxs)("div",{className:`${e}__content`,children:[c&&(0,L.jsx)(yi,{component:"div",className:`${Ci}__description`,children:c}),d.map((e=>l()||u||r()!==n?(0,R.cloneElement)(e,{disabled:!0}):e))]}):null]},n)))]})}),kr=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"],jr=new Map;let Cr;const Ir=new Set(["sm","md","lg","xl","fill"]),Tr=({baseClassName:e=`${B.CLS_PREFIX}textarea`,className:t,rows:n=4,size:s="md",autoheight:a=!1,onChange:i,style:r,...o})=>{const l=(0,R.useRef)(null),c=s&&Ir.has(s),{minRows:u,maxRows:d}=(e=>"number"==typeof e?{minRows:e}:"object"==typeof e&&"number"==typeof e.min&&"number"==typeof e.max?{minRows:e.min,maxRows:e.max}:{})(n),[p,h]=(0,R.useState)(),m=(0,R.useCallback)((()=>{a&&l.current?h(function(e,t=!1,n,s){Cr||(Cr=document.createElement("textarea"),document.body.appendChild(Cr)),e.getAttribute("wrap")?Cr.setAttribute("wrap",e.getAttribute("wrap")):Cr.removeAttribute("wrap");const{paddingSize:a,borderSize:i,boxSizing:r,sizingStyle:o}=((e,t=!1)=>{if(t&&jr.has(e))return jr.get(e);const n=window.getComputedStyle(e),s=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),r={sizingStyle:kr.map((e=>`${e}:${n.getPropertyValue(e)}`)).join(";"),paddingSize:a,borderSize:i,boxSizing:s};return t&&jr.set(e,r),r})(e,t);let l,c;Cr.setAttribute("style",`${o};\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n`),Cr.value=e.value||e.placeholder||"";let u,d=Cr.scrollHeight;if("border-box"===r?d+=i:"content-box"===r&&(d-=a),void 0!==n||void 0!==s){Cr.value=" ";const e=Cr.scrollHeight-a;void 0!==n&&(l=e*n,"border-box"===r&&(l=l+a+i),d=Math.max(l,d)),void 0!==s&&(c=e*s,"border-box"===r&&(c=c+a+i),u=d>c?void 0:"hidden",d=Math.min(c,d))}return{height:d,minHeight:l,maxHeight:c,overflowY:u}}(l.current,!1,u,d)):h(void 0)}),[a,d,u]);return(0,R.useLayoutEffect)((()=>{m()}),[m]),(0,R.useEffect)((()=>{a&&m()}),[o.value,a,m]),(0,L.jsx)("textarea",{ref:l,className:F()(e,{[`${e}--size-${s}`]:c},t),style:{...r,...p},onChange:e=>{a&&m(),"function"==typeof i&&i(e)},rows:u,...o})},Dr=e=>{const{baseClassName:t=`${B.CLS_PREFIX}form-field-text`,className:n,size:s,placeholder:a,rows:i=4,autoFocus:r,multiline:o=!1,autoComplete:l,autoheight:c=!1,inputProps:u,...d}=e;return(0,L.jsx)(Li,{className:F()(t,{[`${t}--multiline`]:o},n),...d,children:({getId:n,getName:o,getValue:u,setValue:d,getErrors:p,isDisabled:h,getDescriptionLabelId:m})=>e.multiline?(0,L.jsx)(Tr,{id:n(),name:o(),value:u(""),onChange:e=>d(e.currentTarget.value),disabled:h(),size:s,rows:i,placeholder:a,autoFocus:r,autoComplete:l,autoheight:c,"aria-invalid":!!Object.keys(p()??{}).length,"aria-describedby":m(),...e.inputProps??{}}):(0,L.jsx)(Os,{id:n(),name:o(),className:`${t}__input`,value:u(""),onChange:e=>d(e.currentTarget.value),disabled:h(),size:s,placeholder:a,autoFocus:r,autoComplete:l,"aria-invalid":!!Object.keys(p()??{}).length,"aria-describedby":m(),...e.inputProps??{}})})},Pr=(e,t)=>`${e}-option-${t}`,Or=({baseClassName:e=`${B.CLS_PREFIX}combobox-dropdown`,className:t,control:n,controlRef:s,opened:a,disabled:i,groups:r,options:o,onHighlightedIndexChange:l,onClose:c,value:u,highlightedIndex:d,onSelect:p,noOptions:h,emitter:m,listboxId:g,...f})=>{const b=(0,R.useRef)(null),v=(0,R.useRef)(null),[y,S]=(0,R.useState)(0);(0,R.useLayoutEffect)((()=>{if(a&&b.current){const{width:e}=b.current.getBoundingClientRect();e!==y&&S(e)}}),[a,y]),(0,R.useEffect)((()=>{if(!a)return;const e=()=>{G(c)};return window.addEventListener("resize",e,{once:!0}),()=>window.removeEventListener("resize",e)}),[a,c]),(0,R.useEffect)((()=>{m&&m.on("focus",(e=>{if(v.current){const t=v.current.querySelector(`[data-index="${e}"]`);t&&X(t,{behavior:"instant",block:"nearest",boundary:v.current})}}))}),[m]);const w=(0,L.jsx)(Mt,{onClose:()=>{setTimeout((()=>{G(c)}),0)},ignoreNodes:()=>[v.current],nodeRef:s,children:n});return(0,L.jsx)("div",{className:t,...f,ref:b,children:(0,L.jsx)(Nn,{target:w,targetRef:s,show:a&&!i,className:`${e}__popper`,zIndex:B.Z_INDEX_DROPDOWN,children:(0,L.jsxs)(aa,{style:{minWidth:y},ref:v,className:`${e}__menu`,role:"listbox",id:g,children:[r.reduce(((t,n)=>(n.label&&t.push((0,R.createElement)(ba,{...n.props,key:`group_${n.label}`},n.label)),n.options.forEach((n=>{const s=o.indexOf(n);let a,i,r;n.disabled||(a=e=>{e.preventDefault(),G(p,n.value)},i=()=>{G(l,s)},r=e=>{e.preventDefault()});const c={id:g?Pr(g,s):void 0,...n.props,active:u===n.value,className:F()(`${e}__option`,{[`${e}__option--selected`]:s===d}),disabled:n.disabled,onClick:a,onMouseOver:i,onMouseDown:r,"data-index":s,"aria-selected":u===n.value};t.push((0,L.jsx)(Yn,{...c,children:n.children},`option_${n.value}`))})),t)),[]),0===o.length&&h&&(0,L.jsx)(Yn,{disabled:!0,className:`${e}__no-options`,children:h})]})})})},Lr=({baseClassName:e=`${B.CLS_PREFIX}select-multi-value`,onRemove:t,children:n,...s})=>(0,L.jsx)("div",{className:F()(e),...s,children:(0,L.jsxs)("div",{className:`${e}__content`,children:[(0,L.jsx)("span",{className:`${e}__label`,children:n}),(0,L.jsx)(xe,{className:`${e}__remove`,size:"12",onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()},children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12",focusable:"false","aria-hidden":"true",children:(0,L.jsx)("path",{d:"M3.85 8.854a.498.498 0 1 1-.704-.704L5.296 6l-2.15-2.15a.498.498 0 0 1 .704-.704L6 5.296l2.15-2.15a.498.498 0 1 1\r .704.704L6.704 6l2.15 2.15a.498.498 0 0 1-.704.704L6 6.704l-2.15 2.15z"})})})]})});let Mr;const Er=(0,R.forwardRef)((function({baseClassName:e=`${B.CLS_PREFIX}select-control`,id:t,name:n,current:s,disabled:a,searchable:i,clearable:r,multiple:o,filterValue:l,onFilterChange:c,onHighlightChange:u,onHighlightConfirm:d,onHighlightSearch:p,onOpen:h,onClose:m,onClear:g,onValueRemove:f,placeholder:b,opened:v=!1,ariaId:y,listboxId:S,"aria-label":w,"aria-labelledby":x,"aria-activedescendant":A,..._},k){const j=(0,R.useRef)(null),C=(0,R.useRef)(""),I=(0,R.useRef)(0),[T,D]=(0,R.useState)(2),[P,O]=(0,R.useState)(!1),M=Ne("Select");void 0===b&&(b=M("placeholder"));let E=[];Array.isArray(s)?E=s.map((({value:e})=>e)):s&&(E=[s.value]);const U=E.length>0,N=`${y}-value`;(0,R.useLayoutEffect)((()=>{""===l&&D(2)}),[l]);const Y=e=>{f(e)};return(0,L.jsxs)("div",{className:F()(e,{[`${e}--disabled`]:a,[`${e}--focused`]:P,[`${e}--multiple`]:o}),..._,onClick:()=>{a||(h(),j.current&&j.current.focus())},ref:k,children:[(0,L.jsxs)("span",{id:N,className:`${e}__value-container`,children:[Array.isArray(s)&&s.map((({value:e,label:t})=>(0,L.jsx)(Lr,{onRemove:()=>Y(e),children:t},e))),(0,L.jsx)("input",{id:t,className:`${e}__input`,value:l,type:"text",onChange:e=>{const t=(e=>{Mr||(Mr=document.createElement("pre"),document.body.appendChild(Mr));const t=window.getComputedStyle(e);Mr.style.fontFamily=t.fontFamily,Mr.style.fontSize=t.fontSize,Mr.style.padding="0",Mr.style.display="inline-block",Mr.style.width="auto",Mr.style.position="absolute",Mr.style.right="0",Mr.style.top="-9999px",Mr.style.visibility="hidden",Mr.textContent=e.value;const{width:n}=Mr.getBoundingClientRect();return n||2})(e.target);D(t),c(e.target.value)},onKeyDown:e=>{switch(e.key){case" ":if(i)break;e.preventDefault(),v?d():u(0);break;case"ArrowUp":e.preventDefault(),u(-1);break;case"ArrowDown":e.preventDefault(),u(1);break;case"PageUp":e.preventDefault(),u(-10);break;case"PageDown":e.preventDefault(),u(10);break;case"Enter":e.preventDefault(),d();break;case"Escape":e.preventDefault(),c(""),m();break;case"Backspace":""===l&&(o||r)&&Y();break;default:i||1!==e.key.length||(C.current+=e.key,p(C.current),window.clearTimeout(I.current),I.current=window.setTimeout((()=>{C.current=""}),1e3))}},onFocus:()=>{O(!0)},onBlur:()=>{O(!1)},onClick:e=>{0===e.detail&&e.stopPropagation()},readOnly:!i,disabled:a,ref:j,style:{width:T},role:"combobox","aria-haspopup":"listbox","aria-expanded":v,"aria-controls":S,"aria-autocomplete":i?"list":void 0,"aria-activedescendant":A,"aria-label":w,"aria-labelledby":x,"aria-describedby":U?N:void 0}),!l&&(0,L.jsxs)(R.Fragment,{children:[!Array.isArray(s)&&s&&(0,L.jsx)("span",{className:`${e}__value`,children:s.children}),!U&&b&&(0,L.jsx)("span",{className:`${e}__placeholder`,children:b})]})]}),(0,L.jsxs)("span",{className:`${e}__indicators`,children:[r&&U&&(0,L.jsx)("button",{"aria-label":M("clearButton"),type:"button",className:F()(`${e}__indicator`,`${e}__indicator--clear`),tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),g()},children:(0,L.jsx)(xe,{className:`${e}__indicator-icon`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-4 -4 16 16","aria-hidden":"true",focusable:"false",children:(0,L.jsx)("path",{d:"M.85 7.854a.498.498 0 1 1-.704-.704L3.296 4 .146.85A.498.498 0 0 1 .85.146L4 3.296 7.15.146a.498.498 0 0 1\r .704.704L4.704 4l3.15 3.15a.498.498 0 0 1-.704.704L4 4.704.85 7.854z"})})})}),(0,L.jsx)("button",{type:"button",className:F()(`${e}__indicator`,`${e}__indicator--dropdown`),tabIndex:-1,"aria-hidden":"true",children:(0,L.jsx)(xe,{className:`${e}__indicator-icon`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"-4 -5 16 16",focusable:"false",children:(0,L.jsx)("path",{d:"M4 4.048L.847.895a.496.496 0 1 0-.702.702l3.452 3.451a.5.5 0 0 0 .806 0l3.452-3.451a.496.496 0 0 0-.702-.702L4 4.048z"})})})})]}),n&&E.map((e=>(0,L.jsx)("input",{type:"hidden",name:n,value:e},e)))]})}));Er.displayName="SelectControl";const Rr=Er,Ur=e=>null,Nr=e=>null,Fr=(e,t=[],n)=>{const s=[];return R.Children.forEach(e,(e=>{if(!(0,R.isValidElement)(e)||e.type!==Ur&&"optgroup"!==e.type){if((0,R.isValidElement)(e)&&(e.type===Nr||"option"===e.type)){let s,{value:a,label:i,disabled:r,children:o,...l}=e.props;if("string"!=typeof a&&"number"!=typeof a){if("string"!=typeof o||!o)throw new Error("The value can only be a number or a string.");a=o}if(i&&"string"==typeof i?({label:s}=e.props):"string"==typeof e.props.children&&(s=e.props.children),!s)throw new Error("The label can only be a string.");const c={value:a,label:s,children:o,disabled:Boolean(r),group:n,props:l};t.push(c),n&&n.options.push(c)}}else{const{label:n,children:a,...i}=e.props,r={label:String(n),options:[],props:i};s.push(r),Fr(a,t,r)}})),0===s.length&&s.push({options:t}),{groups:s,options:t}},Br=(e,t)=>Array.isArray(t)?[...t,e]:e,Yr=(e,t,n)=>{const s=e[n];return s?.props?.id??Pr(t,n)},Hr=({id:e,name:t,size:n,baseClassName:s=`${B.CLS_PREFIX}select`,className:a,children:i,defaultValue:r,value:o,onChange:l,disabled:c=!1,searchable:u=!1,clearable:d=!1,multiple:p=!1,placeholder:h,"aria-label":m,"aria-labelledby":g,...f})=>{const[b,v]=(0,R.useState)(!1),y=(0,R.useRef)(null),S=(0,R.useRef)(new Z),w=(0,R.useId)(),x=e||w,A=`${s}-listbox-${x}`;let[_,k]=(0,R.useState)((()=>void 0===r?p?[]:void 0:r));void 0!==o&&(_=o,k=()=>{});const[j,C]=(0,R.useState)(""),[I,T]=(0,R.useState)(0);let D,{groups:P,options:O}=Fr(i);if(Array.isArray(_)){const e=[];_.forEach((t=>{const n=O.find((e=>e.value===t));n&&e.push(n)})),D=e}else{const e=O.find((e=>e.value===_));D=e}const M=[],E=[];function U(e){return t=>e.every((e=>e(t)))}if(Array.isArray(_)&&_.length>0){const e=_;M.push((()=>!1)),E.push((t=>-1===e.indexOf(t.value)))}if(j){const e=j.toLowerCase();M.push((t=>!!t.label&&t.label.toLowerCase().includes(e))),E.push((t=>t.label.toLowerCase().includes(e)))}if(M.length||E.length){const e=U(M),t=U(E);O=[],P=P.filter((n=>e(n)?(O=[...O,...n.options],!0):(n.options=n.options.filter((e=>!!t(e)&&(O.push(e),!0))),n.options.length>0)))}I&&I>O.length-1&&T(0);const N=e=>{S.current.emit("focus",e)},Y=e=>{if(!b&&void 0===e)return;const t=O[void 0===e?I:e];if(!t)return;if(t.disabled)return;const n=Br(t.value,_);k(n),C(""),p||V(),G(l,n)},H=()=>{v(!0)},V=()=>{v(!1),T(0)},W=(0,L.jsx)(Rr,{id:e,name:t,current:D,filterValue:j,searchable:u,clearable:d,multiple:p,disabled:c,onFilterChange:e=>{H(),C(e)},onHighlightChange:e=>{if(!b)return void H();const t=((e,t,n)=>{const s=n.length-1;let a=0;for(let i=e+t;a<n.length;i+=t)if(a+=1,i>s?i=0:i<0&&(i=s),n[i]&&!1===n[i].disabled)return i;return-1})(I,e,O);-1!==t&&(T(t),N(t))},onHighlightConfirm:Y,onHighlightSearch:e=>{const t=e.toLowerCase(),n=O.findIndex((e=>!e.disabled&&e.label.toLowerCase().includes(t)));-1!==n&&(T(n),N(n),b||Y(n))},onOpen:H,onClose:V,onClear:()=>{const e=Array.isArray(_)?[]:void 0;C(""),k(e),G(l,e)},onValueRemove:e=>{if(Array.isArray(_)){let t;void 0===e?(t=[..._],t.pop()):t=_.filter((t=>t!==e)),k(t),G(l,t)}else k(void 0),G(l,void 0)},placeholder:h,opened:b,ariaId:x,listboxId:A,"aria-label":m,"aria-labelledby":g,"aria-activedescendant":b?Yr(O,A,I):void 0,ref:y});return(0,L.jsx)(Or,{className:F()(s,a,{[`${s}--size-${n}`]:n}),control:W,controlRef:y,opened:b&&!c,disabled:c,groups:P,options:O,onSelect:e=>{const t=Br(e,_);k(t),C(""),p||V(),G(l,t)},highlightedIndex:I,onHighlightedIndexChange:e=>{T(e)},onClose:V,noOptions:(0,L.jsx)(Wn,{content:"Select.noOptions"}),emitter:S.current,value:_,listboxId:A,...f})},Vr=({size:e,baseClassName:t=`${B.CLS_PREFIX}form-field-select`,className:n,children:s,searchable:a,clearable:i,multiple:r,placeholder:o,...l})=>(0,L.jsx)(Li,{className:F()(t,n),...l,children:({getId:t,getName:n,setValue:l,getValue:c,isDisabled:u})=>(0,L.jsx)(Hr,{size:e,id:t(),name:n(),value:c(r?[]:void 0),onChange:l,disabled:u(),searchable:a,clearable:i,multiple:r,placeholder:o,children:s})}),Wr=({children:e,baseClassName:t=`${B.CLS_PREFIX}item`,component:n,view:s="simple",className:a,icon:i,title:r,description:o,footer:l,value:c,tooltip:u,disabled:d,hoverable:p,...h})=>{const m=n||"div";h.onClick&&(d?h.onClick=e=>e.preventDefault():(h.tabIndex=0,h.onKeyDown=K(h.onKeyDown,(e=>{"Enter"===e.key&&(e.preventDefault(),e.currentTarget.click())}))));const g=(0,L.jsxs)(m,{className:F()(t,{[`${t}--card`]:"card"===s,[`${t}--disabled`]:d,[`${t}--hoverable`]:p},a),...h,children:[(0,L.jsxs)(Aa,{image:i?"string"==typeof i?xe.create({},{size:he,[-1===le.indexOf(i)?"src":"name"]:i}):xe.create(i,{size:he}):null,title:(()=>{if(!r)return null;let e=!1;return"string"==typeof r?(r=(0,L.jsx)("span",{children:r}),e=!0):"object"!=typeof r||(0,R.isValidElement)(r)||(r=(0,L.jsx)("a",{...r}),e=!0),e&&"card"===s&&(r=(0,L.jsx)(Ns,{level:3,children:r})),(0,R.isValidElement)(r)&&(r=(0,R.cloneElement)(r,{className:F()(`${t}__title`,r.props.className)})),r})(),className:`${t}__media`,children:[o&&(0,L.jsx)("div",{className:`${t}__description`,children:o}),R.Children.toArray(e).length?(0,L.jsx)("div",{className:`${t}__content`,children:e}):null]}),l&&(0,L.jsx)("footer",{className:`${t}__footer`,children:l})]});return u?J((e=>(0,L.jsx)(Xe,{title:u,children:(0,R.cloneElement)(g,e)}))):g};class $r extends R.Component{constructor(e){super(e),(0,Y.A)(this,"createItemProps",(e=>{const{baseClassName:t,selectable:n,onSelect:s,reorderable:a,hoverable:i}=this.props,r=[`${t}__item`],o={};if(n&&void 0!==e.props.value){const{value:a}=this.state,i=e.props.value;(Array.isArray(a)&&-1!==a.indexOf(i)||a===i)&&r.push(`${t}__item--selected`),o.onClick=t=>{G(e.props.onClick,t);const r=((e,t,n)=>Array.isArray(t)?-1!==t.indexOf(e)?n?t.filter((t=>t!==e)):t:[...t,e]:n&&t===e?null:e)(i,a,"toggleable"===n||"multiple"===n);this.setState({value:r}),G(s,r)}}return void 0===e.props.hoverable&&(o.hoverable=i&&this.canManageHoverableState()),a&&r.push(`${t}__item--reorderable`),r.push(e.props.className),o.className=F()(...r),o})),this.state={ReorderableGrid:null,ReorderableGridCol:null,value:void 0===e.defaultValue?null:e.defaultValue}}static getDerivedStateFromProps({selectable:e,value:t},n){if(e){const s="multiple"===e,a=s?[]:null,i=void 0===t?n.value:t;return s&&!Array.isArray(i)?i?{value:[i]}:{value:a}:!s&&Array.isArray(i)?i[0]?{value:i[0]}:{value:a}:{value:i}}return null}componentDidMount(){const{reorderable:e}=this.props;e&&r.e(204).then(r.bind(r,8817)).then((({sortableContainer:e,sortableElement:t})=>{this.setState({ReorderableGrid:e(ga),ReorderableGridCol:t(fa)})}))}renderNormal({baseClassName:e,children:t,onSelect:n,...s}){return(0,L.jsx)(ga,{...s,children:R.Children.map(t,(t=>(0,R.isValidElement)(t)?(0,L.jsx)(fa,{className:F()(`${e}__col`),children:(0,R.cloneElement)(t,this.createItemProps(t))}):null))})}someChild(e){let t=!1;return R.Children.forEach(this.props.children,(n=>{n&&e(n)&&(t=!0)})),t}canManageHoverableState(){const{reorderable:e,selectable:t}=this.props;return!e&&!t}isHoverable(){return!!this.canManageHoverableState()&&(this.props.hoverable||this.hasHoverableCard())}hasViewCard(){return this.someChild((e=>e.props&&"card"===e.props.view))}hasHoverableCard(){return this.someChild((e=>e.props&&!!e.props.hoverable))}renderReorderable({baseClassName:e,onReorderEnd:t,children:n,...s}){const{ReorderableGrid:a,ReorderableGridCol:i}=this.state;if(!a)return null;const r=F()({[`${e}__col--gap-xs`]:"xs"===s.gap,[`${e}__col--gap-sm`]:"sm"===s.gap,[`${e}__col--gap-md`]:"md"===s.gap,[`${e}__col--gap-lg`]:"lg"===s.gap,[`${e}__col--gap-xl`]:"xl"===s.gap});return(0,L.jsx)(a,{axis:"xy",helperClass:r,onSortEnd:t,disableAutoscroll:!0,...s,children:R.Children.map(n,((t,n)=>{if((0,R.isValidElement)(t)){const{disabled:s}=t.props;return(0,L.jsx)(i,{index:n,className:F()(`${e}__col`),disabled:s,children:(0,R.cloneElement)(t,this.createItemProps(t))})}return null}))})}render(){const{className:e,reorderable:t,hoverable:n,stretchable:s,selectable:a,onSelect:i,value:r,defaultValue:o,onReorderEnd:l,...c}=this.props;return(0,L.jsx)("div",{className:F()(this.props.baseClassName,{[`${this.props.baseClassName}--hoverable`]:this.isHoverable(),[`${this.props.baseClassName}--stretchable`]:s,[`${this.props.baseClassName}--selectable`]:a,[`${this.props.baseClassName}--cards`]:this.hasViewCard()},e),children:t?this.renderReorderable({onReorderEnd:l,...c}):this.renderNormal(c)})}}(0,Y.A)($r,"defaultProps",{hoverable:!0,stretchable:!1,reorderable:!1,selectable:!1,baseClassName:`${B.CLS_PREFIX}item-list`});const zr=$r;var qr=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Gr(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((s=e[n])===(a=t[n])||qr(s)&&qr(a)))return!1;var s,a;return!0}function Kr(e,t){void 0===t&&(t=Gr);var n=null;function s(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];if(n&&n.lastThis===this&&t(s,n.lastArgs))return n.lastResult;var i=e.apply(this,s);return n={lastResult:i,lastArgs:s,lastThis:this},i}return s.clear=function(){n=null},s}const Qr=r.p+"images/default.png",Jr=r.p+"images/filtered.png",Xr=(e,t,n)=>{void 0===t&&(t="filtered"===n?Jr:Qr);let s=t;return"string"==typeof t&&(s=(0,L.jsx)("img",{src:t,height:"192",alt:"","data-testid":"emptyview-image"})),s?(0,L.jsx)("div",{className:`${e}__image`,children:s}):null},Zr=(e,t,n)=>(void 0===t&&(t="filtered"===n?(0,L.jsx)(Wn,{content:"ListEmptyView.filteredTitle"}):(0,L.jsx)(Wn,{content:"ListEmptyView.emptyTitle"})),(0,L.jsx)(Ns,{level:3,className:`${e}__title`,children:t})),eo=(e,t,n)=>void 0!==t||n?(void 0===t&&"filtered"===n&&(t=(0,L.jsx)(Wn,{content:"ListEmptyView.filteredDescription"})),(0,L.jsx)("div",{className:`${e}__description`,children:t})):null,to=st({defaultProps:{size:"lg"}}),no=({baseClassName:e=`${B.CLS_PREFIX}list-empty-view`,className:t,title:n,image:s,description:a,actions:i,reason:r,...o})=>(0,L.jsxs)("div",{className:F()(e,t),...o,children:[Xr(e,s,r),(0,L.jsxs)("div",{className:`${e}__body`,children:[Zr(e,n,r),eo(e,a,r),i&&(0,L.jsx)("div",{className:`${e}__actions`,children:(0,L.jsx)(nt.Provider,{value:to,children:i})})]})]});var so=R.createContext({hadKeyboardEvent:!0,isInitialized:!1});function ao(e){var t=(0,R.useState)(!0),n=t[0],s=t[1];return(0,R.useEffect)((function(){function e(){s(!1)}function t(e){var t,n=null==e?void 0:e.target;"html"!==(null==n||null===(t=n.nodeName)||void 0===t?void 0:t.toLowerCase())&&(s(!1),a())}function n(){document.addEventListener("mousemove",t),document.addEventListener("mousedown",t),document.addEventListener("mouseup",t),document.addEventListener("pointermove",t),document.addEventListener("pointerdown",t),document.addEventListener("pointerup",t),document.addEventListener("touchmove",t),document.addEventListener("touchstart",t),document.addEventListener("touchend",t)}function a(){document.removeEventListener("mousemove",t),document.removeEventListener("mousedown",t),document.removeEventListener("mouseup",t),document.removeEventListener("pointermove",t),document.removeEventListener("pointerdown",t),document.removeEventListener("pointerup",t),document.removeEventListener("touchmove",t),document.removeEventListener("touchstart",t),document.removeEventListener("touchend",t)}function i(e){e.metaKey||e.altKey||e.ctrlKey||s(!0)}function r(e){"hidden"===document.visibilityState&&(s(!0),n())}return document.addEventListener("keydown",i,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("pointerdown",e,!0),document.addEventListener("touchstart",e,!0),document.addEventListener("visibilitychange",r,!0),n(),function(){document.removeEventListener("keydown",i,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("pointerdown",e,!0),document.removeEventListener("touchstart",e,!0),document.removeEventListener("visibilitychange",r,!0),a()}}),[s]),R.createElement(so.Provider,{value:{hadKeyboardEvent:n,isInitialized:!0}},e.children)}let io=0;function ro(e,t){const{rowKey:n}=t;return"function"==typeof n?n(e):e[n]}const oo=({baseClassName:e=`${B.CLS_PREFIX}list__wrapper`,className:t,...n})=>{const{focusVisible:s,onFocus:a,onBlur:i}=(o=(r=(0,R.useState)(!1))[0],l=r[1],u=(c=(0,R.useContext)(so)).hadKeyboardEvent,{focusVisible:c.isInitialized?u&&o:o,onFocus:function(){l(!0)},onBlur:function(){l(!1)}});var r,o,l,c,u;return(0,L.jsx)("tbody",{...n,onFocus:K(n.onFocus,a),onBlur:K(n.onBlur,i),className:F()(t,{[`${e}--focus-visible`]:s})})},lo=({selectedRows:e,totalRows:t,allRowsSelected:n,translators:s})=>{let a;a=n||0!==e?n||e===t?"selectedAllRows":"selectedRows":"totalRows";const i=e=>(0,L.jsx)(da,{fontSize:"sm",children:e});switch(a){case"totalRows":return i((0,L.jsx)(Wn,{namespace:"List",content:"totalRows",params:{totalRows:t},translators:s}));case"selectedRows":return i((0,L.jsx)(Wn,{namespace:"List",content:"selectedRows",params:{selectedRows:(0,L.jsx)(da,{bold:!0,children:e}),totalRows:t},translators:s}));case"selectedAllRows":return i((0,L.jsx)(Wn,{namespace:"List",content:"selectedRows",params:{selectedRows:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(Wn,{namespace:"List",content:"all",translators:s})}),totalRows:t},translators:s}));default:return null}};class co extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{selectAllActive:!1,sortInPlace:!this.props.pagination,vertical:!1,expandedRows:this.props.expandedRows??[],ReorderableList:void 0,reorderableItemWidths:[],prevExpandedRows:this.props.expandedRows??[],sortColumn:void 0,prevSortColumn:void 0,sortDirection:void 0,prevSortDirection:void 0,selection:this.props.selection??[],prevSelection:this.props.selection??[],prevData:[],prevPagination:void 0}),(0,Y.A)(this,"needScroll",!1),(0,Y.A)(this,"anchorRef",(0,R.createRef)()),(0,Y.A)(this,"flatData",(e=>e.reduce(((e,t)=>{const{data:n}=t,{virtual:s}=this.getRowProps(t);return s?[...e,...n?this.flatData(n):[]]:[...e,t,...n?this.flatData(n):[]]}),[]))),(0,Y.A)(this,"handleRowSelectionChange",((e,t)=>{const{onAllRowsSelectedChange:n}=this.props;let s;e?(s=this.state.selection.slice(),s.push(t)):(s=this.state.selection.filter((e=>e!==t)),G(n,!1)),this.setSelection(s),this.toggleSelectionMenu(!1)})),(0,Y.A)(this,"toggleSelectionMenu",(e=>{this.setState((({selectAllActive:t})=>({selectAllActive:e??!t})))})),(0,Y.A)(this,"handleSelectAll",(()=>{this.handleGlobalSelectionChange(!0),G(this.props.onAllRowsSelectedChange,!0)})),(0,Y.A)(this,"handleDeselectAll",(()=>{this.handleGlobalSelectionChange(!1),G(this.props.onAllRowsSelectedChange,!1)})),(0,Y.A)(this,"handleGlobalSelectionChange",(e=>{const{onAllRowsSelectedChange:t,data:n}=this.props,{selection:s}=this.state,a=[];this.flatData(n??[]).forEach((t=>{const n=ro(t,this.props);t.disabled||this.isRowLoading(t)?-1!==s.indexOf(n)&&a.push(n):e&&a.push(n)})),e||G(t,!1),this.setSelection(a)})),(0,Y.A)(this,"handlePageSelectionChange",(()=>{const{data:e,pagination:t,totalRows:n}=this.props,{selection:s}=this.state;if(!(t&&n&&t.props.current&&t.props.itemsPerPage))return;const a="all"===t.props.itemsPerPage?n:t.props.itemsPerPage,i=(t.props.current-1)*a,r=i+a,o=this.flatData(e??[]).slice(i,r),l=[];o.forEach((e=>{const t=ro(e,this.props);e.disabled||this.isRowLoading(e)?-1!==s.indexOf(t)&&l.push(t):l.push(t)})),this.setSelection(l)})),(0,Y.A)(this,"handleResize",(({bounds:e})=>{e&&this.props.vertical&&this.setState({vertical:"boolean"==typeof this.props.vertical?this.props.vertical:e.width<this.props.vertical})})),(0,Y.A)(this,"isRowLoading",(e=>-1!==this.props.loadingRows?.indexOf(ro(e,this.props)))),(0,Y.A)(this,"getRowTitle",(e=>{const{columns:t}=this.props,n=t.find((e=>"title"===e.type));if(n&&n.key)return e[n.key]})),(0,Y.A)(this,"getRowProps",(e=>{const{rowProps:t}=this.props;return"function"==typeof t?{...t(e)}:{...t}})),(0,Y.A)(this,"isAllRowsChecked",Kr(((e,t)=>{const n=this.flatData(e).filter((e=>!e.disabled));return n.length>0&&n.every((e=>{const n=ro(e,this.props);return-1!==t.indexOf(n)}))}))),(0,Y.A)(this,"isAllRowsCheckedOnPage",Kr(((e,t)=>{const{pagination:n,totalRows:s}=this.props;if(!(n&&s&&n.props.current&&n.props.itemsPerPage))return!1;const{current:a}=n.props,i="all"===n.props.itemsPerPage?s:n.props.itemsPerPage,r=(a-1)*i,o=r+i,l=this.flatData(e??[]).slice(r,o).filter((e=>!e.disabled));return l.length>0&&l.every((e=>{const n=ro(e,this.props);return t.includes(n)}))}))),(0,Y.A)(this,"isAnyRowsExpanded",Kr(((e,t)=>this.flatData(e).some((e=>{const n=ro(e,this.props);return-1!==t.indexOf(n)}))))),(0,Y.A)(this,"handleGlobalExpandingChange",(()=>{const{data:e}=this.props,{expandedRows:t}=this.state,n=this.isAnyRowsExpanded(e,t),s=[];this.flatData(e??[]).forEach((e=>{const a=ro(e,this.props);this.isRowExpandable(e)?n||s.push(a):-1!==t.indexOf(a)&&s.push(a)})),this.setExpandedRows(s)})),(0,Y.A)(this,"createRowClickHandler",(e=>t=>{Q(t)||this.isRowExpandable(e)&&this.handleRowExpandingChange(e)}))}static getDerivedStateFromProps({sortColumn:e,sortDirection:t,selection:n,expandedRows:s,notExpandableRows:a,renderRowBody:i,data:r,pagination:o,vertical:l,rowKey:c,totalRows:u,filtered:d,autoExpandSingleItem:p},{prevSortColumn:h,prevSortDirection:m,prevData:g,prevSelection:f,prevPagination:b,prevExpandedRows:v,...y}){let S={};h===e&&m===t||(S={...S,sortColumn:e,sortDirection:t});const w=[];if(g!==r){const e=()=>r&&y.expandedRows.includes(ro(r[0],{rowKey:c}));if(i&&1===r?.length&&(!o||1===u)&&(!g||0===g?.length||e())&&(!d||e())&&p){const e=ro(r[0],{rowKey:c});-1===a?.indexOf(e)&&w.push(e)}const t=(r??[]).map((e=>ro(e,{rowKey:c}))),n=y.selection.filter((e=>-1!==t.indexOf(e)));S={...S,selection:n}}return f!==n&&(S={...S,selection:n??[]}),(v!==s||w.length)&&(S={...S,expandedRows:[...s??[],...w]}),b!==o&&(S={...S,sortInPlace:!o}),"boolean"==typeof l&&(S.vertical=l),S.prevSortColumn=e,S.prevSortDirection=t,S.prevData=r,S.prevSelection=n,S.prevPagination=o,S.prevExpandedRows=s,S}componentDidMount(){this.props.reorderable&&this.applyReorderableList()}componentDidUpdate(e){const{data:t}=this.props,{data:n}=e;t!==n&&this.needScroll&&this.anchorRef.current&&(X(this.anchorRef.current,{scrollMode:"if-needed"}),this.needScroll=!1),e.reorderable!==this.props.reorderable&&this.props.reorderable&&this.applyReorderableList()}applyReorderableList(){r.e(213).then(r.t.bind(r,64171,23)).then((({List:e})=>{this.setState({ReorderableList:e})}))}getData(){const{sortInPlace:e,sortColumn:t,sortDirection:n}=this.state,{data:s,columns:a}=this.props;if(!s)return[];if(!e)return s;const[i]=a.filter((({key:e})=>e===t));return i&&t?s.sort(((e,s)=>(i.sort?i.sort(e,s):((e,t)=>e>t?1:e<t?-1:0)(e[t],s[t]))*("ASC"===n?1:-1))):s}sort(e){const{sortInPlace:t}=this.state,{sortColumn:n,sortDirection:s}=this.state,a=n===e&&"ASC"===s?"DESC":"ASC",i=e;t&&this.setState({sortColumn:i,sortDirection:a}),this.props.onSortChange&&this.props.onSortChange({sortColumn:i,sortDirection:a})}isRowSelected(e){return-1!==this.state.selection.indexOf(ro(e,this.props))}setSelection(e){this.setState({selection:e}),this.props.onSelectionChange&&this.props.onSelectionChange(e.slice())}isRowExpanded(e){return-1!==this.state.expandedRows.indexOf(ro(e,this.props))}isRowExpandable(e){const{virtual:t}=this.getRowProps(e);return!t&&-1===this.props.notExpandableRows?.indexOf(ro(e,this.props))}handleRowExpandingChange(e){let t;const n=ro(e,this.props);this.isRowExpanded(e)?t=this.state.expandedRows.filter((e=>e!==n)):(t=this.state.expandedRows.slice(),t.push(n)),this.setExpandedRows(t)}setExpandedRows(e){this.setState({expandedRows:e}),G(this.props.onExpandedRowsChange,e.slice())}renderRow({row:e,index:t,hasTitle:n,realColumn:s,parent:a,isDragged:i,reorderableProps:r}){const{baseClassName:o,renderRowBody:l,reorderable:c}=this.props,{vertical:u,reorderableItemWidths:d}=this.state,p=s.some((({type:e})=>"actions"===e)),{className:h,virtual:m,...g}=this.getRowProps(e);let f=0;const b=c&&!a?oo:R.Fragment,v=(0,R.createElement)(b,{...b!==oo||i?void 0:r,key:ro(e,this.props)},(0,L.jsx)("tr",{className:F()({"is-selected":this.isRowSelected(e),[`${o}__row--expanded`]:this.isRowExpanded(e),[`${o}__row--expandable`]:l&&this.isRowExpandable(e),[`${o}__row--parent`]:e.data,[`${o}__row--virtual`]:m,[`${o}__row--child`]:a,[`${o}__row--reorderable`]:c,[`${o}__row--${e.intent}`]:e.intent},h),...g,onClick:l?this.createRowClickHandler(e):void 0,children:s.map((({key:t,title:s,render:r,width:l,cellProps:c,truncate:h,type:m},g)=>{if(f>0)return f-=1,null;let b;n||!l||u||(b={width:l}),i&&d&&(b={width:d[g]});let v=r?r(e,{parent:a}):e[t];if(v&&v.children&&!(0,R.isValidElement)(v)){const{children:e,...t}=v;v=e,c={...c,...t},t.colSpan&&(f+=t.colSpan-1)}const y=!s&&!v;if(h&&(v=(0,L.jsx)("div",{className:`${o}__truncate`,children:(0,L.jsx)(da,{truncate:!0,children:v})})),u){const e="internal"!==m&&"actions"!==m&&"title"!==m&&s;y||"internal"===m||(v=(0,L.jsxs)(L.Fragment,{children:[e&&(0,L.jsx)("div",{className:`${o}__cell-inner-title`,children:s}),(0,L.jsx)("div",{className:`${o}__cell-inner-content`,children:v})]})),"actions"===m&&(v=(0,L.jsx)(ni.Provider,{value:!0,children:v}))}return"reorderable"===t&&"internal"===m&&a&&(v=null),(0,L.jsx)("td",{style:b,...c,className:F()(c&&c.className,{[`${o}__cell-controls`]:"controls"===m,[`${o}__cell-actions`]:"actions"===m,[`${o}__cell-title`]:"title"===m,[`${o}__cell-has-actions`]:"title"===m&&p})||void 0,children:v},t)}))}),l&&!m&&this.renderRowBody({row:e,index:t,realColumn:s,parent:a}),e.data?e.data.map(((t,a)=>this.renderRow({row:t,index:a,hasTitle:n,realColumn:s,parent:e}))):null);return i?(0,L.jsx)("div",{className:F()(o,`${o}--dragged`),...r,children:(0,L.jsx)("table",{className:F()(`${o}__table`,`${o}__table--reorderable`,{[`${o}--expandable`]:l,[`${o}__table--vertical`]:u}),children:v})}):v}renderRowBody({row:e,index:t,realColumn:n,parent:s}){const{baseClassName:a,renderRowBody:i}=this.props,{vertical:r}=this.state;if(!i)return null;const o=n.find((({key:e})=>"reorderable"===e)),l=n.find((({key:e})=>"expander"===e)),c=this.isRowExpanded(e),u=(0,R.createRef)();return(0,L.jsx)(It,{in:c,unmountOnExit:!0,timeout:{enter:0,exit:300},classNames:`${a}__row-body-`,nodeRef:u,children:c=>(0,L.jsxs)("tr",{className:`${a}__row-body`,ref:u,children:[o?(0,L.jsx)("td",{className:`${a}__cell-reorderable`}):null,l?(0,L.jsx)("td",{className:`${a}__cell-expander`}):null,(0,L.jsx)("td",{colSpan:n.length-(o?1:0)-(l?1:0),className:`${a}__cell-body`,children:(0,L.jsx)("div",{className:`${a}__row-body-content-wrapper`,children:(0,L.jsx)("div",{className:`${a}__row-body-content ${a}__row-body-content--${c}`,children:(0,L.jsx)(ni.Provider,{value:r,children:i(e,{index:t,parent:s})})})})})]})})}renderToolbar(){const{toolbar:e,allRowsSelected:t,totalRows:n,data:s,locale:a}=this.props,{selection:i}=this.state;let r;if(1===i.length){const e=this.flatData(s).find((e=>ro(e,this.props)===i[0]));e&&(r=this.getRowTitle(e))}if(!e)return null;const o={selectedRows:t?n||(0,L.jsx)(Wn,{namespace:"List",content:"all",translators:a}):i.length,selectedRowTitle:r};return(0,L.jsx)(xa.Provider,{value:o,children:e})}shouldBePagination(){const{totalRows:e,pagination:t}=this.props;if(!t||!e)return!1;if(e&&(0,R.isValidElement)(t)){const{itemsPerPageOptions:n=pa}=t.props;if(Array.isArray(n)){const t=n.filter(Number);if(t.length&&e<=Math.min(...t))return!1}}return!0}renderHeader(){const{baseClassName:e,allRowsSelected:t,totalRows:n,locale:s}=this.props,{selection:a}=this.state,i=this.shouldBePagination();return void 0!==n||i?(0,L.jsxs)("div",{className:`${e}__header`,children:[void 0===n?(0,L.jsx)("span",{}):(0,L.jsx)("span",{children:(0,L.jsx)("span",{className:`${e}__header-text`,children:lo({selectedRows:a.length,totalRows:n,allRowsSelected:t,translators:s})})}),i&&(0,L.jsx)("div",{className:`${e}__header-text`,children:this.renderPagination("header")})]}):null}renderEmptyView(){const{emptyView:e,filtered:t}=this.props;return void 0===e?t?(0,L.jsx)(no,{reason:"filtered"}):(0,L.jsx)(no,{}):e}renderPagination(e){const{pagination:t,loading:n}=this.props;if(!t)return null;const s={loading:n};switch(e){case"header":s.view="popover";break;case"footer":s.onSelect=e=>{this.needScroll=!0,G(t.props.onSelect,e)},t.props.onItemsPerPageChange&&(s.onItemsPerPageChange=e=>{this.needScroll=!0,G(t.props.onItemsPerPageChange,e)})}return(0,R.cloneElement)(t,{...s})}renderSelectionMenu(e){const{allRowsSelected:t,baseClassName:n,totalRows:s,data:a,locale:i,onSelectAll:r}=this.props,{selection:o}=this.state,l=o.length,c=this.shouldBePagination(),u=s||this.flatData(a??[]).filter((e=>!e.disabled)).length,d=t||l===u,p=this.isAllRowsCheckedOnPage(a,o),h=this.props?.pagination?.props.itemsPerPage;return c?(0,L.jsxs)("div",{className:`${n}__select-all-wrapper`,children:[(0,L.jsx)(Tt,{...e}),this.state.selectAllActive&&(0,L.jsxs)(aa,{className:`${n}__select-all-menu`,children:[p&&(0,L.jsxs)(Yn,{disabled:!0,children:[(0,L.jsx)(Wn,{namespace:"List",content:"allItemsOnPageSelected",translators:i}),(0,L.jsx)(He,{intent:"info",children:h})]}),d?(0,L.jsxs)(Yn,{disabled:!0,children:[(0,L.jsx)(Wn,{namespace:"List",content:"allItemsSelected",translators:i}),(0,L.jsx)(He,{intent:"info",children:u})]}):(0,L.jsxs)(Yn,{onClick:()=>{this.handleSelectAll(),this.toggleSelectionMenu(),r&&r("SELECT_ALL")},children:[(0,L.jsx)(Wn,{namespace:"List",content:"selectAllItems",translators:i}),(0,L.jsx)(He,{intent:"inactive",children:u})]}),!p&&(0,L.jsxs)(Yn,{disabled:p,onClick:()=>{this.handlePageSelectionChange(),this.toggleSelectionMenu(),r&&r("SELECT_ALL_ON_PAGE")},children:[(0,L.jsx)(Wn,{namespace:"List",content:"selectAllItemsOnPage",translators:i}),(0,L.jsx)(He,{intent:d?"info":"inactive",children:h})]}),(d||p)&&(0,L.jsx)(Yn,{onClick:()=>{this.handleDeselectAll(),this.toggleSelectionMenu()},children:(0,L.jsx)(Wn,{namespace:"List",content:"deselectAll",translators:i})})]})]}):(0,L.jsx)(Tt,{...e})}render(){const{baseClassName:e,className:t,data:n,columns:s,sortColumn:a,sortDirection:i,onSortChange:r,selection:o,onSelectionChange:l,renderSelectionCheckbox:c,rowKey:u,renderRowBody:d,expandedRows:p,notExpandableRows:h,onExpandedRowsChange:m,loadingRows:g,pagination:f,totalRows:b,toolbar:v,allRowsSelected:y,onAllRowsSelectedChange:S,filtered:w,emptyView:x,emptyViewMode:A,sidebar:_,locale:k,vertical:j,loading:C,rowProps:I,reorderable:T,onReorderEnd:D,autoExpandSingleItem:P,translate:O,...M}=this.props,{vertical:E}=this.state;if(!(n&&n.length>0||w||"all"!==A))return this.renderEmptyView();const R=s.map(((t,n)=>{const s=[],a=[];if(0===n&&a.push(`${e}__cell-first`),t.align&&!E){const n=`${e}__cell-${t.align}`;s.push(n),a.push(n)}t.className&&(s.push(t.className),a.push(t.className));const i={...t};return s.length&&(i.className=F()(...s)),a.length&&(i.cellProps={className:F()(...a)}),i}));if(l){const t=this.shouldBePagination(),s={checked:this.isAllRowsChecked(n,this.state.selection)||this.isAllRowsCheckedOnPage(n,this.state.selection),indeterminate:S&&t?this.state.selectAllActive:void 0,onChange:S&&t?()=>this.toggleSelectionMenu():this.handleGlobalSelectionChange,inputProps:{"aria-label":O?.("selectAllRows")}};let a=(0,L.jsx)(Tt,{...s});S?a=this.renderSelectionMenu(s):"function"==typeof c&&(a=c(s)),R.unshift({key:"selection",type:"internal",className:`${e}__cell-selection`,cellProps:{className:`${e}__cell-selection`},title:a,render:t=>{const{virtual:n}=this.getRowProps(t);if(n)return null;if(this.isRowLoading(t))return(0,L.jsx)(Ae,{className:`${e}__spinner`});const s={checked:this.isRowSelected(t),disabled:t.disabled,onChange:e=>this.handleRowSelectionChange(e,ro(t,this.props)),inputProps:{value:ro(t,this.props),"aria-label":O?.("selectRow")}};return"function"==typeof c?c(s,t):(0,L.jsx)(Tt,{...s})}})}d&&R.unshift({key:"expander",type:"internal",className:`${e}__cell-expander`,cellProps:{className:`${e}__cell-expander`},title:(0,L.jsx)(ut,{ghost:!0,"aria-label":O?.("toggleAllRows"),className:`${e}__row-expander`,icon:(0,L.jsx)(xe,{className:`${e}__row-expander-icon`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:(0,L.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.5 1.4L5 4.9l3.5-3.5M1.5 5.1L5 8.6l3.5-3.5"})})}),onClick:this.handleGlobalExpandingChange}),render:t=>this.isRowExpandable(t)&&(0,L.jsx)(ut,{ghost:!0,"aria-label":O?.("toggleRow"),className:`${e}__row-expander`,icon:(0,L.jsx)(xe,{className:`${e}__row-expander-icon`,children:(0,L.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10",children:(0,L.jsx)("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.5 3.2L5 6.7l3.5-3.5"})})}),onClick:()=>this.handleRowExpandingChange(t)})}),T&&R.unshift({key:"reorderable",type:"internal",className:`${e}__cell-reorderable`,cellProps:{className:`${e}__cell-reorderable`},title:null,render:()=>(0,L.jsx)("span",{className:`${e}__cell-reorderable-indicator`,"data-movable-handle":!0,children:(0,L.jsx)("svg",{width:"6",height:"14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,L.jsx)("path",{d:"M0 0h2v2H0zM0 4h2v2H0zM0 8h2v2H0zM0 12h2v2H0zM4 0h2v2H4zM4 4h2v2H4zM4 8h2v2H4zM4 12h2v2H4z",fill:"currentColor"})})})});const U=!E&&s.some((e=>e.title));let N;if(n&&n.length>0||!w&&"items"!==A){const t=({children:t,props:s})=>(0,L.jsx)(ao,{children:(0,L.jsxs)("table",{className:F()(`${e}__table`,{[`${e}--expandable`]:d,[`${e}__table--vertical`]:E,[`${e}__table--reorderable`]:T}),...s,children:[U&&(0,L.jsx)("thead",{children:(0,L.jsx)("tr",{className:F()(`${e}__table-thead`,{[`${e}__row--expanded`]:this.isAnyRowsExpanded(n,this.state.expandedRows)}),children:R.map((({key:e,title:t,sortable:n,sort:s,width:a,render:i,truncate:r,type:o,cellProps:l,...c})=>{if(n){const s="tooltip-title-"+ ++io,a="string"==typeof t,i=a?{"aria-label":O?.("sort",{columnName:t})}:{"aria-labelledby":s};t=(0,L.jsxs)("div",{className:"th__action",children:[t,!a&&(0,L.jsx)("span",{className:"th__accessibility_title",id:s,children:O?.("sort",{columnName:t})}),(0,L.jsx)("button",{type:"button",className:"th__sort-button",...i})]});const r=this.state.sortColumn===e,o=r&&"ASC"===this.state.sortDirection,l=r&&"DESC"===this.state.sortDirection,u=()=>r?o?"ascending":"descending":"none";c.className=F()({"is-sortable":n,"is-sorted":r,"is-sorted--up":o,"is-sorted--down":l},c.className),c["aria-sort"]=u(),c.onClick=()=>this.sort(e)}return a&&(c.style={...c.style,width:a}),(0,L.jsx)("th",{...c,children:t},e)}))})}),T?t:(0,L.jsx)("tbody",{children:t})]})}),s=({value:{row:e},index:t,props:n,isDragged:s})=>this.renderRow({row:e,index:t,hasTitle:U,realColumn:R,reorderableProps:n,isDragged:s});if(T&&this.state.ReorderableList){const{ReorderableList:e}=this.state;N=(0,L.jsx)(e,{beforeDrag:({elements:e,index:t})=>{const n=Array.from(e[t].firstElementChild.children).map((e=>window.getComputedStyle(e).width));this.setState({reorderableItemWidths:n})},onChange:({oldIndex:e,newIndex:t})=>{G(D,{oldIndex:e,newIndex:t})},values:this.getData().map((e=>({row:e}))),renderList:t,renderItem:s,lockVertically:!0,hooks:{getChildren:e=>e.filter((e=>"THEAD"!==e.nodeName))},useDragHandle:!1})}else N=t({children:this.getData().map(((e,t)=>s({value:{row:e},index:t})))})}else N=this.renderEmptyView();N=(0,L.jsx)("div",{className:F()(`${e}__table-container`,{[`${e}__table-container--loading`]:C}),children:N}),_&&(N=(0,L.jsxs)(si,{gap:"md",className:F()(`${e}__content`,{[`${e}__content--vertical`]:E}),children:[(0,L.jsx)(ii,{className:`${e}__sidebar`,children:_}),(0,L.jsx)(ii,{fill:!0,children:N})]}));const B=this.shouldBePagination(),Y=n=>(0,L.jsxs)("div",{ref:n,className:F()(e,t),...M,children:[this.renderHeader(),this.renderToolbar(),B&&(0,L.jsx)("span",{ref:this.anchorRef}),N,B&&(0,L.jsx)("div",{className:`${e}__footer`,children:this.renderPagination("footer")})]});return"number"==typeof j?(0,L.jsx)(Ps,{bounds:!0,onResize:this.handleResize,children:({measureRef:e})=>Y(e)}):Y()}}(0,Y.A)(co,"defaultProps",{data:[],sortColumn:void 0,sortDirection:"ASC",onSortChange:void 0,onSelectionChange:void 0,selection:[],renderSelectionCheckbox:void 0,rowKey:"key",renderRowBody:void 0,expandedRows:[],notExpandableRows:[],onExpandedRowsChange:void 0,loadingRows:[],className:"",baseClassName:`${B.CLS_PREFIX}list`,pagination:void 0,totalRows:void 0,toolbar:void 0,allRowsSelected:!1,onAllRowsSelectedChange:void 0,filtered:!1,emptyView:void 0,emptyViewMode:"all",sidebar:void 0,locale:void 0,vertical:ei,loading:!1,rowProps:void 0,reorderable:!1,onReorderEnd:void 0,autoExpandSingleItem:!0});const uo=e=>{const t=Ne("List");return(0,L.jsx)(co,{...e,translate:t})},po=({primary:e,children:t,tooltip:n,...s})=>{const a=t=>e?(0,L.jsx)(ut,{ghost:!0,tooltip:t,...s}):(0,L.jsx)(Yn,{tooltip:n,menuRole:"listbox",...s,children:t});return"function"==typeof t?t({wrap:e=>a(e)}):a(t)},ho=({baseClassName:e=`${B.CLS_PREFIX}list-actions`,className:t,children:n,locale:s,onMenuToggle:a,...i})=>{const r=Ne("ListActions"),[o,l]=(0,R.useState)(!1),c=(0,R.useContext)(ni);(0,R.useEffect)((()=>{const e=({matches:e})=>{l(!e)},t=window.matchMedia("(min-width: 768px)");return e(t),t.addListener(e),()=>{t.removeListener(e)}}),[]);const u=[],d=[];let p,h=0;return R.Children.toArray(n).forEach(((t,n)=>{if((0,R.isValidElement)(t)&&t.type===po){const{primary:s,hidden:a}=t.props,i=n.toString();s&&!c?u.push(a?(0,L.jsx)("div",{className:`${e}__hidden-action`},i):t):(h++,a||d.push((0,R.cloneElement)(t,{primary:!1})))}else h++,d.push(t)})),d.length>0?p=(0,L.jsx)(zn,{className:`${e}__menu`,menu:(0,L.jsx)(aa,{role:"listbox",children:d}),menuPlacement:"bottom-end",overlay:o,locale:s,onToggle:a,children:(0,L.jsx)(ut,{"aria-label":r("menuButton"),ghost:!0,icon:"kebab"})}):h&&(p=(0,L.jsx)("div",{className:`${e}__menu ${e}__hidden-action`})),(0,L.jsxs)("div",{className:F()(e,t),...i,children:[u,p]})};var mo={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function go(e){mo=e}var fo={exec:()=>null};function bo(e,t=""){let n="string"==typeof e?e:e.source;const s={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(vo.caret,"$1"),n=n.replace(e,a),s},getRegex:()=>new RegExp(n,t)};return s}var vo={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},yo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,So=/(?:[*+-]|\d{1,9}[.)])/,wo=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,xo=bo(wo).replace(/bull/g,So).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Ao=bo(wo).replace(/bull/g,So).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_o=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ko=/(?!\s*\])(?:\\.|[^\[\]\\])+/,jo=bo(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ko).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Co=bo(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,So).getRegex(),Io="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",To=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Do=bo("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",To).replace("tag",Io).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Po=bo(_o).replace("hr",yo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Io).getRegex(),Oo={blockquote:bo(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Po).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:jo,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:yo,html:Do,lheading:xo,list:Co,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:Po,table:fo,text:/^[^\n]+/},Lo=bo("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",yo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Io).getRegex(),Mo={...Oo,lheading:Ao,table:Lo,paragraph:bo(_o).replace("hr",yo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Lo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Io).getRegex()},Eo={...Oo,html:bo("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",To).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:fo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:bo(_o).replace("hr",yo).replace("heading"," *#{1,6} *[^\n]").replace("lheading",xo).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ro=/^( {2,}|\\)\n(?!\s*$)/,Uo=/[\p{P}\p{S}]/u,No=/[\s\p{P}\p{S}]/u,Fo=/[^\s\p{P}\p{S}]/u,Bo=bo(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,No).getRegex(),Yo=/(?!~)[\p{P}\p{S}]/u,Ho=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Vo=bo(Ho,"u").replace(/punct/g,Uo).getRegex(),Wo=bo(Ho,"u").replace(/punct/g,Yo).getRegex(),$o="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",zo=bo($o,"gu").replace(/notPunctSpace/g,Fo).replace(/punctSpace/g,No).replace(/punct/g,Uo).getRegex(),qo=bo($o,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,Yo).getRegex(),Go=bo("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Fo).replace(/punctSpace/g,No).replace(/punct/g,Uo).getRegex(),Ko=bo(/\\(punct)/,"gu").replace(/punct/g,Uo).getRegex(),Qo=bo(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Jo=bo(To).replace("(?:--\x3e|$)","--\x3e").getRegex(),Xo=bo("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Jo).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Zo=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,el=bo(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Zo).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tl=bo(/^!?\[(label)\]\[(ref)\]/).replace("label",Zo).replace("ref",ko).getRegex(),nl=bo(/^!?\[(ref)\](?:\[\])?/).replace("ref",ko).getRegex(),sl={_backpedal:fo,anyPunctuation:Ko,autolink:Qo,blockSkip:/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,br:Ro,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:fo,emStrongLDelim:Vo,emStrongRDelimAst:zo,emStrongRDelimUnd:Go,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:el,nolink:nl,punctuation:Bo,reflink:tl,reflinkSearch:bo("reflink|nolink(?!\\()","g").replace("reflink",tl).replace("nolink",nl).getRegex(),tag:Xo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:fo},al={...sl,link:bo(/^!?\[(label)\]\((.*?)\)/).replace("label",Zo).getRegex(),reflink:bo(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Zo).getRegex()},il={...sl,emStrongRDelimAst:qo,emStrongLDelim:Wo,url:bo(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},rl={...il,br:bo(Ro).replace("{2,}","*").getRegex(),text:bo(il.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ol={normal:Oo,gfm:Mo,pedantic:Eo},ll={normal:sl,gfm:il,breaks:rl,pedantic:al},cl={"&":"&","<":"<",">":">",'"':""","'":"'"},ul=e=>cl[e];function dl(e,t){if(t){if(vo.escapeTest.test(e))return e.replace(vo.escapeReplace,ul)}else if(vo.escapeTestNoEncode.test(e))return e.replace(vo.escapeReplaceNoEncode,ul);return e}function pl(e){try{e=encodeURI(e).replace(vo.percentDecode,"%")}catch{return null}return e}function hl(e,t){const n=e.replace(vo.findPipe,((e,t,n)=>{let s=!1,a=t;for(;--a>=0&&"\\"===n[a];)s=!s;return s?"|":" |"})).split(vo.splitPipe);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;s<n.length;s++)n[s]=n[s].trim().replace(vo.slashPipe,"|");return n}function ml(e,t,n){const s=e.length;if(0===s)return"";let a=0;for(;a<s;){const i=e.charAt(s-a-1);if(i!==t||n){if(i===t||!n)break;a++}else a++}return e.slice(0,s-a)}function gl(e,t,n,s,a){const i=t.href,r=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");s.state.inLink=!0;const l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:i,title:r,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,l}var fl=class{options;rules;lexer;constructor(e){this.options=e||mo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ml(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t,n){const s=e.match(n.other.indentCodeCompensation);if(null===s)return t;const a=s[1];return t.split("\n").map((e=>{const t=e.match(n.other.beginningSpace);if(null===t)return e;const[s]=t;return s.length>=a.length?e.slice(a.length):e})).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){const t=ml(e,"#");this.options.pedantic?e=t.trim():t&&!this.rules.other.endingSpaceChar.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ml(t[0],"\n")}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let e=ml(t[0],"\n").split("\n"),n="",s="";const a=[];for(;e.length>0;){let t=!1;const i=[];let r;for(r=0;r<e.length;r++)if(this.rules.other.blockquoteStart.test(e[r]))i.push(e[r]),t=!0;else{if(t)break;i.push(e[r])}e=e.slice(r);const o=i.join("\n"),l=o.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${o}`:o,s=s?`${s}\n${l}`:l;const c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,a,!0),this.lexer.state.top=c,0===e.length)break;const u=a.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){const t=u,i=t.raw+"\n"+e.join("\n"),r=this.blockquote(i);a[a.length-1]=r,n=n.substring(0,n.length-t.raw.length)+r.raw,s=s.substring(0,s.length-t.text.length)+r.text;break}if("list"!==u?.type);else{const t=u,i=t.raw+"\n"+e.join("\n"),r=this.list(i);a[a.length-1]=r,n=n.substring(0,n.length-u.raw.length)+r.raw,s=s.substring(0,s.length-t.raw.length)+r.raw,e=i.substring(a.at(-1).raw.length).split("\n")}}return{type:"blockquote",raw:n,tokens:a,text:s}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,a={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=this.rules.other.listItemRegex(n);let r=!1;for(;e;){let n=!1,s="",o="";if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;s=t[0],e=e.substring(s.length);let l=t[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],u=!l.trim(),d=0;if(this.options.pedantic?(d=2,o=l.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,o=l.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(s+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),a=this.rules.other.fencesBeginRegex(d),i=this.rules.other.headingBeginRegex(d),r=this.rules.other.htmlBeginRegex(d);for(;e;){const p=e.split("\n",1)[0];let h;if(c=p,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),h=c):h=c.replace(this.rules.other.tabCharGlobal," "),a.test(c))break;if(i.test(c))break;if(r.test(c))break;if(t.test(c))break;if(n.test(c))break;if(h.search(this.rules.other.nonSpaceChar)>=d||!c.trim())o+="\n"+h.slice(d);else{if(u)break;if(l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4)break;if(a.test(l))break;if(i.test(l))break;if(n.test(l))break;o+="\n"+c}u||c.trim()||(u=!0),s+=p+"\n",e=e.substring(p.length+1),l=h.slice(d)}}a.loose||(r?a.loose=!0:this.rules.other.doubleBlankLine.test(s)&&(r=!0));let p,h=null;this.options.gfm&&(h=this.rules.other.listIsTask.exec(o),h&&(p="[ ] "!==h[0],o=o.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:s,task:!!h,checked:p,loose:!1,text:o,tokens:[]}),a.raw+=s}const o=a.items.at(-1);if(!o)return;o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),a.raw=a.raw.trimEnd();for(let e=0;e<a.items.length;e++)if(this.lexer.state.top=!1,a.items[e].tokens=this.lexer.blockTokens(a.items[e].text,[]),!a.loose){const t=a.items[e].tokens.filter((e=>"space"===e.type)),n=t.length>0&&t.some((e=>this.rules.other.anyLine.test(e.raw)));a.loose=n}if(a.loose)for(let e=0;e<a.items.length;e++)a.items[e].loose=!0;return a}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!this.rules.other.tableDelimiter.test(t[2]))return;const n=hl(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)this.rules.other.tableAlignRight.test(e)?i.align.push("right"):this.rules.other.tableAlignCenter.test(e)?i.align.push("center"):this.rules.other.tableAlignLeft.test(e)?i.align.push("left"):i.align.push(null);for(let e=0;e<n.length;e++)i.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:i.align[e]});for(const e of a)i.rows.push(hl(e,i.header.length).map(((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:i.align[t]}))));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;const t=ml(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s<e.length;s++)if("\\"===e[s])s++;else if(e[s]===t[0])n++;else if(e[s]===t[1]&&(n--,n<0))return s;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),gl(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return gl(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(s&&(!s[3]||!n.match(this.rules.other.unicodeAlphaNumeric))&&(!s[1]&&!s[2]||!n||this.rules.inline.punctuation.exec(n))){const n=[...s[0]].length-1;let a,i,r=n,o=0;const l="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=l.exec(t));){if(a=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!a)continue;if(i=[...a].length,s[3]||s[4]){r+=i;continue}if((s[5]||s[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(r-=i,r>0)continue;i=Math.min(i,i+r+o);const t=[...s[0]][0].length,l=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}const c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," ");const n=this.rules.other.nonSpaceChar.test(e),s=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&s&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=t[1],n="mailto:"+e):(e=t[1],n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=t[0],n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){const e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},bl=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||mo,this.options.tokenizer=this.options.tokenizer||new fl,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={other:vo,block:ol.normal,inline:ll.normal};this.options.pedantic?(t.block=ol.pedantic,t.inline=ll.pedantic):this.options.gfm&&(t.block=ol.gfm,this.options.breaks?t.inline=ll.breaks:t.inline=ll.gfm),this.tokenizer.rules=t}static get rules(){return{block:ol,inline:ll}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(vo.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){const t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(vo.tabCharGlobal," ").replace(vo.spaceLine,""));e;){let s;if(this.options.extensions?.block?.some((n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0))))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);const n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+="\n":t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(s=this.tokenizer.fences(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.heading(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.hr(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.blockquote(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.list(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.html(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);const n=t.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title});continue}if(s=this.tokenizer.table(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.lheading(e)){e=e.substring(s.raw.length),t.push(s);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(a))){const i=t.at(-1);n&&"paragraph"===i?.type?(i.raw+="\n"+s.raw,i.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(s),n=a.length!==e.length,e=e.substring(s.raw.length)}else if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===n?.type?(n.raw+="\n"+s.raw,n.text+="\n"+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,s=null;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,s.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(n));)n=n.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);let a=!1,i="";for(;e;){let s;if(a||(i=""),a=!1,this.options.extensions?.inline?.some((n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0))))continue;if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length);const n=t.at(-1);"text"===s.type&&"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,n,i)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}let r=e;if(this.options.extensions?.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(s=this.tokenizer.inlineText(r)){e=e.substring(s.raw.length),"_"!==s.raw.slice(-1)&&(i=s.raw.slice(-1)),a=!0;const n=t.at(-1);"text"===n?.type?(n.raw+=s.raw,n.text+=s.text):t.push(s)}else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return t}},vl=class{options;parser;constructor(e){this.options=e||mo}space(e){return""}code({text:e,lang:t,escaped:n}){const s=(t||"").match(vo.notSpaceStart)?.[0],a=e.replace(vo.endingNewline,"")+"\n";return s?'<pre><code class="language-'+dl(s)+'">'+(n?a:dl(a,!0))+"</code></pre>\n":"<pre><code>"+(n?a:dl(a,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){const t=e.ordered,n=e.start;let s="";for(let t=0;t<e.items.length;t++){const n=e.items[t];s+=this.listitem(n)}const a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+">\n"+s+"</"+a+">\n"}listitem(e){let t="";if(e.task){const n=this.checkbox({checked:!!e.checked});e.loose?"paragraph"===e.tokens[0]?.type?(e.tokens[0].text=n+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=n+" "+dl(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):t+=n+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let s="";for(let t=0;t<e.rows.length;t++){const a=e.rows[t];n="";for(let e=0;e<a.length;e++)n+=this.tablecell(a[e]);s+=this.tablerow({text:n})}return s&&(s=`<tbody>${s}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+s+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${dl(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const s=this.parser.parseInline(n),a=pl(e);if(null===a)return s;let i='<a href="'+(e=a)+'"';return t&&(i+=' title="'+dl(t)+'"'),i+=">"+s+"</a>",i}image({href:e,title:t,text:n,tokens:s}){s&&(n=this.parser.parseInline(s,this.parser.textRenderer));const a=pl(e);if(null===a)return dl(n);let i=`<img src="${e=a}" alt="${n}"`;return t&&(i+=` title="${dl(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dl(e.text)}},yl=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Sl=class e{options;renderer;textRenderer;constructor(e){this.options=e||mo,this.options.renderer=this.options.renderer||new vl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yl}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n="";for(let s=0;s<e.length;s++){const a=e[s];if(this.options.extensions?.renderers?.[a.type]){const e=a,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==t||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(e.type)){n+=t||"";continue}}const i=a;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let a=i,r=this.renderer.text(a);for(;s+1<e.length&&"text"===e[s+1].type;)a=e[++s],r+="\n"+this.renderer.text(a);n+=t?this.renderer.paragraph({type:"paragraph",raw:r,text:r,tokens:[{type:"text",raw:r,text:r,escaped:!0}]}):r;continue}default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}parseInline(e,t=this.renderer){let n="";for(let s=0;s<e.length;s++){const a=e[s];if(this.options.extensions?.renderers?.[a.type]){const e=this.options.extensions.renderers[a.type].call({parser:this},a);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(a.type)){n+=e||"";continue}}const i=a;switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{const e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return n}},wl=class{options;block;constructor(e){this.options=e||mo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?bl.lex:bl.lexInline}provideParser(){return this.block?Sl.parse:Sl.parseInline}},xl=new class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Sl;Renderer=vl;TextRenderer=yl;Lexer=bl;Tokenizer=fl;Hooks=wl;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(const s of e)switch(n=n.concat(t.call(this,s)),s.type){case"table":{const e=s;for(const s of e.header)n=n.concat(this.walkTokens(s.tokens,t));for(const s of e.rows)for(const e of s)n=n.concat(this.walkTokens(e.tokens,t));break}case"list":{const e=s;n=n.concat(this.walkTokens(e.items,t));break}default:{const e=s;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach((s=>{const a=e[s].flat(1/0);n=n.concat(this.walkTokens(a,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new vl(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;const s=n,a=e.renderer[s],i=t[s];t[s]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new fl(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,a=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new wl;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;const s=n,a=e.hooks[s],i=t[s];wl.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(a.call(t,e)).then((e=>i.call(t,e)));const n=a.call(t,e);return i.call(t,n)}:t[s]=(...e)=>{let n=a.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return bl.lex(e,t??this.defaults)}parser(e,t){return Sl.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{const s={...n},a={...this.defaults,...s},i=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===s.async)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(null==t)return i(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));a.hooks&&(a.hooks.options=a,a.hooks.block=e);const r=a.hooks?a.hooks.provideLexer():e?bl.lex:bl.lexInline,o=a.hooks?a.hooks.provideParser():e?Sl.parse:Sl.parseInline;if(a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(t):t).then((e=>r(e,a))).then((e=>a.hooks?a.hooks.processAllTokens(e):e)).then((e=>a.walkTokens?Promise.all(this.walkTokens(e,a.walkTokens)).then((()=>e)):e)).then((e=>o(e,a))).then((e=>a.hooks?a.hooks.postprocess(e):e)).catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let e=r(t,a);a.hooks&&(e=a.hooks.processAllTokens(e)),a.walkTokens&&this.walkTokens(e,a.walkTokens);let n=o(e,a);return a.hooks&&(n=a.hooks.postprocess(n)),n}catch(e){return i(e)}}}onError(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+dl(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Al(e,t){return xl.parse(e,t)}Al.options=Al.setOptions=function(e){return xl.setOptions(e),Al.defaults=xl.defaults,go(Al.defaults),Al},Al.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Al.defaults=mo,Al.use=function(...e){return xl.use(...e),Al.defaults=xl.defaults,go(Al.defaults),Al},Al.walkTokens=function(e,t){return xl.walkTokens(e,t)},Al.parseInline=xl.parseInline,Al.Parser=Sl,Al.parser=Sl.parse,Al.Renderer=vl,Al.TextRenderer=yl,Al.Lexer=bl,Al.lexer=bl.lex,Al.Tokenizer=fl,Al.Hooks=wl,Al.parse=Al,Al.options,Al.setOptions,Al.use,Al.walkTokens,Al.parseInline,Sl.parse,bl.lex;const _l=({baseClassName:e=`${B.CLS_PREFIX}markdown`,className:t,compact:n=!1,children:s,parserOptions:a,...i})=>(0,L.jsx)("div",{className:F()(e,{[`${e}--compact`]:n},t),dangerouslySetInnerHTML:{__html:Al(s,a)},...i}),kl=({className:e,children:t,baseClassName:n=`${B.CLS_PREFIX}media-section`,...s})=>(0,L.jsx)("div",{className:F()(n,e),...s,children:t}),jl=({baseClassName:e=`${B.CLS_PREFIX}panel`,className:t,title:n,collapsible:s=!1,collapsed:a,onToggle:i,children:r,extra:o,...l})=>{const c=Ne("Panel"),u=(0,R.useRef)(null),d=void 0!==a,[p,h]=(0,R.useState)(!1),m=d?a:p,g=e=>{s&&!Q(e)&&(d||h(!m),i?.(!m))};return(0,L.jsx)(It,{classNames:`${e}-`,in:!m,timeout:300,nodeRef:u,children:(0,L.jsxs)("div",{className:F()(e,{[`${e}--collapsible`]:s,[`${e}--collapsed`]:m,[`${e}--expanded`]:!m},t),...l,ref:u,children:[n&&(0,L.jsxs)("div",{className:`${e}__header`,onClick:g,children:[Fs(n)?(0,L.jsx)(Ns,{component:"div",level:4,className:`${e}__title`,children:n}):n,(o||s)&&(0,L.jsxs)("div",{className:`${e}__extra`,children:[o,s&&(0,L.jsx)(ut,{ghost:!0,"aria-label":c(m?"expand":"collapse"),className:`${e}__control-button`,icon:{name:"chevron-up",flipVertical:m},onClick:g})]})]}),(0,L.jsx)("div",{className:`${e}__content`,children:r})]})})},Cl=e=>{let t=5*Math.ceil(20*e/5);return t%20==5?t+=2:t%20==15&&(t-=2),t},Il=({baseClassName:e=`${B.CLS_PREFIX}rating`,className:t,value:n=0,small:s=!1,...a})=>(0,L.jsx)("div",{className:F()(e,t,{[`${e}--static`]:!0,[`${e}--small`]:s}),...a,children:(0,L.jsx)("div",{className:`${e}__rates`,style:{width:`${Cl(n)}%`}})}),Tl=({baseClassName:e=`${B.CLS_PREFIX}status-message`,className:t,intent:n,children:s,...a})=>(0,L.jsxs)(Fe,{className:F()(e,[`${e}--${n}`],t),intent:n,...a,children:[(0,L.jsx)(xe,{name:zi[n],intent:n,className:`${e}__icon`}),s]}),Dl=({className:e,children:t,onChange:n,tooltip:s,intent:a,checked:i,defaultChecked:r,baseClassName:o=`${B.CLS_PREFIX}switch`,disabled:l=!1,loading:c=!1,...u})=>{const d=(0,R.useId)(),p=(0,L.jsxs)("label",{className:F()(o,{[`${o}--${a}`]:a,[`${o}--loading`]:c},e),...u,children:[t?(0,L.jsx)("span",{className:`${o}__label`,id:d,children:t}):null,(0,L.jsx)("input",{type:"checkbox",onChange:e=>{!l&&n&&n(e.target.checked)},checked:i,defaultChecked:null==i?r:void 0,disabled:l||c,"aria-labelledby":t?d:void 0}),(0,L.jsx)("span",{className:`${o}__indicator`})]});return s?(0,L.jsx)(Xe,{title:s,children:p}):p},Pl=({children:e})=>(0,L.jsx)("div",{children:e}),Ol=({tabMode:e,onClose:t,baseClassName:n})=>{const s=Ne("Tabs");return"function"!=typeof t?null:(0,L.jsx)("button",{"aria-label":s("closeButton"),className:`${n}__${e}-close`,type:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),t(e)},children:(0,L.jsx)(xe,{className:`${n}__${e}-close-icon`,name:"cross-mark"})})},Ll=({icon:e,baseClassName:t})=>xe.create(e,{size:de,className:`${t}__tab-icon`}),Ml=({label:e,tabMode:t,baseClassName:n})=>"string"==typeof e?(0,L.jsx)(He,{className:`${n}__${t}-label`,intent:"danger",children:e}):(0,R.isValidElement)(e)?(0,R.cloneElement)(e,{className:F()(`${n}__${t}-label`,e.props.className)}):null,El=({tab:e,selected:t,onClick:n,monospacedWidth:s,baseClassName:a,isFake:i=!1,tabPanelId:r,id:o})=>{const{title:l,label:c,icon:u,onActivate:d,onClose:p,component:h="a",style:m={},...g}=e.props,f="function"==typeof p,b=i?{tabIndex:-1}:{tabIndex:g.tabIndex||0,onClick:n,onKeyDown:K(g.onKeyDown,(e=>{"Enter"===e.key&&e.currentTarget.click()})),role:"tab","aria-controls":t?r:void 0,"aria-selected":t||void 0,"aria-labelledby":`${o}-title`,id:o,...g},v=i?"a":h;return(0,L.jsx)("li",{className:F()(`${a}__tab`,t&&`${a}__tab--selected`,f&&`${a}__tab--closable`),role:i?void 0:"presentation",children:(0,L.jsxs)(v,{className:`${a}__link`,style:{width:s||void 0,...m},...b,children:[(0,L.jsx)(Ll,{icon:u,baseClassName:a}),(0,L.jsx)("span",{id:`${o}-title`,className:`${a}__tab-title`,children:l}),(0,L.jsx)(Ml,{label:c,tabMode:"tab",baseClassName:a}),(0,L.jsx)(Ol,{onClose:p,tabMode:"tab",baseClassName:a})]})})},Rl=({children:e,onResize:t,baseClassName:n})=>{const s=(0,R.useRef)(null);Qs({ref:s,onResize:t});const a=(0,L.jsxs)("ul",{ref:s,className:F()(`${n}__tab-list`,`${n}__tab-list--fake`),children:[R.Children.map(e,((e,t)=>e&&e.type===Pl?(0,L.jsx)(El,{tab:e,baseClassName:n,isFake:!0},t):null)),(0,L.jsx)("li",{className:F()(`${n}__tab`,`${n}__tab--more`),children:(0,L.jsx)("a",{className:`${n}__link`,tabIndex:-1,children:(0,L.jsx)(xe,{name:"three-dots-horizontal"})})})]});return(0,L.jsx)("div",{className:`${n}__fake-list-wrapper`,"aria-hidden":!0,children:a})},Ul=({children:e,tabListRef:t,active:n,onTabClick:s,visibleLength:a,monospacedWidth:i,baseClassName:r,tabPanelId:o,idPrefix:l})=>{const c=(e,t)=>{s(t),e?.props?.onActivate?.()},u=R.Children.map(e,((e,t)=>({child:e,position:t+1}))).filter((({child:e})=>e?.type===Pl)),d=u.slice(0,a),p=u.slice(a),h=d.map((({child:e,position:t})=>(0,L.jsx)(El,{tab:e,baseClassName:r,selected:t===n,onClick:()=>c(e,t),monospacedWidth:i,tabPanelId:o,id:l?`${l}-${t}`:void 0},t))),m=p.map((({child:e,position:t})=>{const{title:s,label:a,icon:i,onActivate:o,onClose:l,component:u="a",...d}=e.props;return(0,L.jsx)(Yn,{icon:(0,L.jsx)(Ll,{icon:i,baseClassName:r}),label:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ml,{label:a,tabMode:"menu-item",baseClassName:r}),(0,L.jsx)(Ol,{onClose:l,tabMode:"menu-item",baseClassName:r})]}),active:n===t,onClick:()=>c(e,t),className:`${r}__menu-item`,component:u,...d,children:s},t)})),g=n>d.length;return(0,L.jsxs)("ul",{ref:t,className:`${r}__tab-list`,role:"tablist","aria-labelledby":`${l}-${n}`,children:[h,m.length>0&&(0,L.jsx)("li",{className:F()(`${r}__tab`,g&&`${r}__tab--selected`,`${r}__tab--more`),role:"presentation","aria-selected":g||void 0,children:(0,L.jsx)(zn,{className:`${r}__dropdown`,menu:(0,L.jsx)(aa,{children:m}),menuPlacement:"bottom-end",children:(0,L.jsx)("a",{className:`${r}__link`,role:"tab",tabIndex:0,"aria-selected":g||void 0,onKeyDown:e=>{"Enter"===e.key&&e.currentTarget.click()},children:(0,L.jsx)(xe,{name:"three-dots-horizontal"})})})})]})},Nl=({baseClassName:e=`${B.CLS_PREFIX}tabs`,className:t,addon:n,placeholder:s,children:a,active:i,addonMinWidth:r,monospaced:o,search:l,...c})=>{const u=n||s,d=(0,R.useRef)(null),p=(0,R.useRef)(null),h=(0,R.useRef)(null),m=R.Children.toArray(a).length,g=u?(0,L.jsx)("div",{ref:h,children:u}):null,[f,b]=(e=>{const[t,n]=(0,R.useState)(e||1),[s,a]=(0,R.useState)(e);return e&&e!==s&&(a(e),n(e)),[t,n]})(i),{monospacedWidth:v,recalculateWidths:y,compact:S,visibleLength:w}=(({tabNavRef:e,tabListRef:t,addonRef:n,baseClassName:s,monospaced:a=!1,childrenCount:i})=>{const[r,o]=(0,R.useState)(!1),[l,c]=(0,R.useState)(void 0),[u,d]=(0,R.useState)(i),p=(0,R.useRef)(""),h=(0,R.useCallback)((()=>{if(!e.current||!t.current)return;const i=e.current.querySelectorAll(`.${s}__tab-list--fake .${s}__tab`),l=i[i.length-1],u=i.length-1,h=Array.from(i).slice(0,-1).map((e=>e.getBoundingClientRect().width));let m,g=h;if(a){const t=e.current.querySelectorAll(`.${s}__tab-list--fake .${s}__link`),n=Array.from(t).slice(0,-1).map((e=>e.getBoundingClientRect().width));m=n.length?Math.max(...n):void 0,g=h.map(((e,t)=>(m??0)+e-n[t]))}c(m);const f=g.reduce(((e,t)=>e+t),0),b=e.current.getBoundingClientRect().width,v=e.current.querySelector(`.${s}__addon`)??e.current.querySelector(`.${s}__search`),y=v?v.getBoundingClientRect().width:0;let S=b-y;const w=S>=f,x=()=>{const e=n.current?.getBoundingClientRect().width??0;return`${h.join("-")}-${b}-${e}-${m}`};if(w){if(d(u),!r)return;return void(p.current!==x()&&o(!1))}if(!w&&!r)return o(!0),void(p.current=x());const A=l?l.getBoundingClientRect().width:0;S-=A,d((()=>{let e=0;for(let t=0;t<g.length;t++)if(e+=g[t],e>S)return t;return 0})())}),[e,t,n,s,a,r]);return(0,R.useLayoutEffect)((()=>{h()}),[h]),Qs({ref:e,onResize:h}),Qs({ref:t,onResize:h}),Qs({ref:n,onResize:h}),{recalculateWidths:h,monospacedWidth:l,compact:r,visibleLength:u}})({monospaced:o,tabNavRef:d,tabListRef:p,addonRef:h,baseClassName:e,childrenCount:m}),[x,A]=(0,R.useState)(!1),_=(0,R.useId)();if(!m)return null;const k=()=>{if(!l)return null;const t={className:`${e}__search-bar`,collapsable:S,onExpand:()=>A(!0),onCollapse:()=>A(!1),...x?{autoFocus:!0,responsive:!1,maxWidth:"none",minWidth:"unset"}:{}},n=(0,R.cloneElement)(l,t);return S?(0,L.jsx)(et.Provider,{value:!0,children:(0,L.jsx)("div",{className:`${e}__search`,children:n})}):n},j={};l&&!S&&(j.maxWidth=l.props.maxWidth);const C=`${_}-tabpanel`;return(0,L.jsxs)("div",{className:F()(e,t),...c,children:[S&&g&&(0,L.jsx)("div",{className:`${e}__addon ${e}__addon--compact`,children:g}),(0,L.jsxs)("div",{className:F()(`${e}__nav`,S&&`${e}__nav--compact`,x&&`${e}__nav--searching`,l&&`${e}__nav--search`),ref:d,children:[(0,L.jsx)(Ul,{tabListRef:p,active:f,onTabClick:b,visibleLength:w,monospacedWidth:v,baseClassName:e,tabPanelId:C,idPrefix:_,children:a}),S&&k(),!S&&(g||l)&&(0,L.jsxs)("div",{className:`${e}__addon`,style:j,children:[k(),g]}),(0,L.jsx)(Rl,{onResize:y,baseClassName:e,children:a})]}),(0,L.jsx)("div",{id:C,className:`${e}__tab-panel`,role:"tabpanel","aria-labelledby":`${_}-${f}`,children:R.Children.map(a,((e,t)=>t+1===f?e:null))})]})};class Fl extends R.Component{constructor(...e){super(...e),(0,Y.A)(this,"state",{focused:!1,overMenu:!1,value:`${this.props.inputProps?.value||""}`,highlightedValue:null}),(0,Y.A)(this,"isFocusScheduled",!1),(0,Y.A)(this,"search",void 0),(0,Y.A)(this,"keyboardNavigation",(e=>{const{onItemSelect:t,results:n}=this.props,s=this.getHighlightedValue();if(!n||!t)return;const a=this.getResults(),i=a.indexOf(s);let r;r="ArrowUp"===e?Math.max(i-1,0):Math.min(i+1,a.length-1),this.setState({highlightedValue:-1===i?null:a[r]})})),(0,Y.A)(this,"handleFocus",(()=>{this.setState({focused:!0}),this.search&&this.search.focus()})),(0,Y.A)(this,"handleBlur",(()=>{this.setState({focused:!1}),this.search&&this.search.blur()})),(0,Y.A)(this,"handleMenuMouseOver",(()=>{this.setState({overMenu:!0})})),(0,Y.A)(this,"handleMenuMouseOut",(()=>{this.setState({overMenu:!1})})),(0,Y.A)(this,"handleKeyDown",(e=>{const{onTyping:t}=this.props,{value:n}=e.currentTarget;-1===["Enter","Escape","ArrowUp","ArrowDown"].indexOf(e.key)?(this.setState({value:n}),t&&t(n,(()=>this.clearInput()))):this.checkKeys(e.key)})),(0,Y.A)(this,"handleSearch",(()=>{const{onSearch:e,onTyping:t}=this.props,{value:n}=this.state;e?e(n,(()=>this.clearInput())):t&&t(n,(()=>this.clearInput()))})),(0,Y.A)(this,"handleReset",(()=>{this.clearInput(),this.handleFocus()})),(0,Y.A)(this,"handleSelect",(e=>()=>{const{onItemSelect:t}=this.props;this.setState({highlightedValue:null}),this.handleBlur(),t?t(e,(()=>this.clearInput())):this.clearInput()})),(0,Y.A)(this,"handleExpand",(()=>{const{onExpand:e,distractionFreeMode:t}=this.props;this.isFocusScheduled=!0,G(e),t&&t.toggle()})),(0,Y.A)(this,"handleCollapse",(()=>{const{onCollapse:e,distractionFreeMode:t}=this.props;G(e),t&&t.toggle()}))}static getDerivedStateFromProps(e,t){const{inputProps:{value:n}={}}=e,{prevInputProps:{value:s}={}}=t,a={};return n!==s&&(a.value=n??""),a.prevInputProps=e.inputProps,a}componentDidUpdate(){this.isFocusScheduled&&(this.handleFocus(),this.isFocusScheduled=!1)}isResponsive(){return this.props.responsive}getResults(e){const{results:t}=this.props;if(!t)return[];if("type"in t&&t.type===aa||e){let n=[];const s=e||t.props.children;if(!Array.isArray(s))return n;for(let e=0;e<s.length;e++){const t=s[e];t&&(R.Children.count(t)>1?n=n.concat(this.getResults(t)):t.type!==Yn&&t.type!==ta||!t.key||n.push(t.key.toString()))}return n}return t.map((({value:e})=>e))}getHighlightedValue(){return(this.state.highlightedValue||this.getResults()[0])??null}searchAction(){const{onItemSelect:e,results:t}=this.props,n=this.getHighlightedValue();e&&t?-1===this.getResults().indexOf(n)?this.handleSearch():this.handleSelect(n)():this.handleSearch()}checkKeys(e){"Enter"===e?this.searchAction():"Escape"===e?this.state.value?this.handleReset():(this.handleBlur(),this.handleMenuMouseOut()):"ArrowUp"!==e&&"ArrowDown"!==e||this.keyboardNavigation(e)}clearInput(){this.setState({value:""},this.handleSearch)}elementsIndexToKeyMapping(e){let t=[];if(!Array.isArray(e))return t;for(let n=0;n<e.length;n++){const s=e[n];s&&(Array.isArray(s)?t=t.concat(this.elementsIndexToKeyMapping(s)):t.push(s.key))}return t}renderResults(e){const{baseClassName:t}=this.props,{focused:n,overMenu:s}=this.state,a=this.getHighlightedValue();return(0,L.jsx)(aa,{className:F()(`${t}__results`,{[`${t}__results--hidden`]:!n&&!s}),onMouseOver:this.handleMenuMouseOver,onMouseOut:this.handleMenuMouseOut,children:e.map((e=>(0,L.jsx)(Yn,{active:e.value===a,onClick:this.handleSelect(e.value),children:e.title},e.value)))})}renderResultsMenu(e){const{baseClassName:t,onItemSelect:n}=this.props,{focused:s,overMenu:a}=this.state,i=this.getHighlightedValue();return(0,R.cloneElement)(e,{className:F()(`${t}__results`,{[`${t}__results--hidden`]:!s&&!a},e.props.className),onMouseOver:this.handleMenuMouseOver,onMouseOut:this.handleMenuMouseOut,onItemClick:(t,n)=>{const s=this.elementsIndexToKeyMapping(e.props.children);this.handleSelect(s[n])()},children:R.Children.map(e.props.children,(e=>n&&e&&"object"==typeof e&&"type"in e&&(e.type===Yn||e.type===ta)?(0,R.cloneElement)(e,{active:e.key===i}):e))})}render(){const{baseClassName:e,className:t,maxWidth:n,minWidth:s,loading:a,responsive:i,onSearch:r,onTyping:o,onItemSelect:l,collapsable:c,onCollapse:u,onExpand:d,results:p,inputProps:h,distractionFreeMode:m,translate:g,...f}=this.props,{focused:b,value:v}=this.state,y=this.isResponsive(),S=Boolean(m&&m.enabled);return(0,L.jsx)("div",{className:F()(e,{[`${e}--focused`]:b},t),style:y||S?void 0:{maxWidth:n,minWidth:s},...f,children:!y||!c&&S?(0,L.jsxs)("div",{className:`${e}__group`,children:[(0,L.jsx)(Os,{innerRef:e=>this.search=e,className:`${e}__input`,size:"fill","aria-label":g?.("search"),onChange:this.handleKeyDown,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,...h,value:v,prefix:(c&&!y||S)&&(0,L.jsx)(ut,{"aria-label":g?.("collapseSearch"),icon:{name:"chevron-right",flipHorizontal:Dt()},ghost:!0,onClick:this.handleCollapse}),suffix:(0,L.jsxs)(L.Fragment,{children:[v&&(0,L.jsx)(ut,{"aria-label":g?.("clearButton"),icon:"remove",onClick:this.handleReset,ghost:!0}),(0,L.jsx)(ut,{"aria-label":g?.("searchButton"),icon:"search",onClick:this.handleSearch,state:a?"loading":void 0,ghost:!0})]})}),Array.isArray(p)&&this.renderResults(p),p&&!Array.isArray(p)&&p.type===aa&&this.renderResultsMenu(p)]}):(0,L.jsx)(Ve,{intent:"info",hidden:!v,children:(0,L.jsx)(ut,{"aria-label":g?.("expandSearch"),icon:"search",onClick:this.handleExpand})})})}}(0,Y.A)(Fl,"defaultProps",{baseClassName:`${B.CLS_PREFIX}search-bar`,maxWidth:500,minWidth:270,inputProps:{}});const Bl=e=>{const t=(0,R.useContext)(ya);let n=(0,R.useContext)(et);n=void 0===e.responsive?n||!1:Boolean(e.responsive);const s=Ne("SearchBar");return(0,L.jsx)(Fl,{...e,responsive:n,distractionFreeMode:t,translate:s})};Bl.displayName="SearchBar";const Yl=Bl;var Hl=r(5338),Vl=r(9417);function Wl(e,t){var n=Object.create(null);return e&&R.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,R.isValidElement)(e)?t(e):e}(e)})),n}function $l(e,t,n){return null!=n[t]?n[t]:e.props[t]}function zl(e,t,n){var s=Wl(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var s,a=Object.create(null),i=[];for(var r in e)r in t?i.length&&(a[r]=i,i=[]):i.push(r);var o={};for(var l in t){if(a[l])for(s=0;s<a[l].length;s++){var c=a[l][s];o[a[l][s]]=n(c)}o[l]=n(l)}for(s=0;s<i.length;s++)o[i[s]]=n(i[s]);return o}(t,s);return Object.keys(a).forEach((function(i){var r=a[i];if((0,R.isValidElement)(r)){var o=i in t,l=i in s,c=t[i],u=(0,R.isValidElement)(c)&&!c.props.in;!l||o&&!u?l||!o||u?l&&o&&(0,R.isValidElement)(c)&&(a[i]=(0,R.cloneElement)(r,{onExited:n.bind(null,r),in:c.props.in,exit:$l(r,"exit",e),enter:$l(r,"enter",e)})):a[i]=(0,R.cloneElement)(r,{in:!1}):a[i]=(0,R.cloneElement)(r,{onExited:n.bind(null,r),in:!0,exit:$l(r,"exit",e),enter:$l(r,"enter",e)})}})),a}var ql=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gl=function(e){function t(t,n){var s,a=(s=e.call(this,t,n)||this).handleExited.bind((0,Vl.A)(s));return s.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},s}mt(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,s,a=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,s=i,Wl(n.children,(function(e){return(0,R.cloneElement)(e,{onExited:s.bind(null,e),in:!0,appear:$l(e,"appear",n),enter:$l(e,"enter",n),exit:$l(e,"exit",n)})}))):zl(e,a,i),firstRender:!1}},n.handleExited=function(e,t){var n=Wl(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,b.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,s=(0,pt.A)(e,["component","childFactory"]),a=this.state.contextValue,i=ql(this.state.children).map(n);return delete s.appear,delete s.enter,delete s.exit,null===t?R.createElement(ft.Provider,{value:a},i):R.createElement(ft.Provider,{value:a},R.createElement(t,s,i))},t}(R.Component);Gl.propTypes={},Gl.defaultProps={component:"div",childFactory:function(e){return e}};const Kl=Gl,Ql=({toasts:e,onToastClose:t,position:n,baseClassName:s})=>{let a=e;return"bottom-end"===n&&(a=[...a],a.reverse()),(0,L.jsx)(Kl,{component:"span",className:s,children:a.map((({key:e,...a})=>{const{intent:i}=a;let{autoClosable:r}=a;void 0===r&&"success"===i&&"top-end"===n&&(r=!0);const o=(0,R.createRef)();return(0,L.jsx)(It,{classNames:`${s}__toast-`,timeout:{enter:300,exit:300},nodeRef:o,children:(0,L.jsx)(gr,{...a,autoClosable:r,onClose:()=>t({...a,key:e}),innerRef:o,className:F()(a.className,`${s}__toast`)})},e)}))})},Jl=({group:e,onClose:t})=>{const{renderHeaderLabel:n,renderHeaderLabelTitle:s,closable:a=!1,renderHeaderLabelTooltip:i,intent:r}=e,o=Ne("Toaster");if(!n&&!s)return null;const l={intent:r,onClick:a?t:void 0,icon:a?"cross-mark":void 0,children:s?s(e):null,caps:!1,size:"md"};return n?n(e,l):(t=>{if(!i&&!a)return t;const n=i?.(e)??o("closeGroup");return n?(0,L.jsx)(Xe,{title:n,children:t}):t})((0,L.jsx)(He,{...l}))},Xl=({toasts:e,onToastClose:t,onToastGroupClose:n,baseClassName:s,groupConfigs:a,isCollapsed:i,onCollapseStateChange:r})=>{const o=(({toasts:e,groupConfigs:t=[]})=>{const n=new Map;e.forEach((e=>{const t=e.groupKey??e.intent;if(!t)return;n.has(t)||n.set(t,{count:0,keys:[]});const s=n.get(t);s&&(s.count+=1,s.keys.push(e.key))}));return t.map((e=>{const t=n.get(e.groupKey)??{count:0,keys:[]};return{...e,...t}}))})({toasts:e,groupConfigs:a}),l=o.filter((({count:e})=>e>0)),c=(0,R.useRef)(null),u=(0,R.useRef)(null),d=i??!1,[p,h]=(0,R.useState)(e.length>1||d),m=0===e.length,g=1===e.length,f=1===e.length&&!(e[0].closable??1),b=()=>{r?.(!0),h(!0)};e.length>1&&!p&&h(!0),g&&!d&&p&&h(!1),m&&p&&h(!1),m&&d&&r?.(!1);const v=(0,L.jsx)("div",{className:`${s}__header-labels`,children:l.map((e=>(0,L.jsx)(Jl,{group:e,onClose:()=>n?.(e.keys)},e.groupKey)))}),y=(0,L.jsx)(ut,{ghost:!0,icon:d?"chevron-up":"chevron-down",onClick:()=>r?.(!d),className:`${s}__header-collapse`,"aria-label":"Collapse"}),S=(0,L.jsx)(It,{nodeRef:u,in:p,timeout:{enter:f?600:300,exit:300},classNames:`${s}__header`,unmountOnExit:!0,children:(0,L.jsxs)("div",{ref:u,className:`${s}__header`,style:{"--_pul-toaster--panel-header-enter-delay":f?"300ms":0,"--_pul-toaster--panel-header-exit-delay":m?"300ms":void 0},children:[v,y]})}),w=(0,L.jsx)("div",{className:F()(`${s}__content-wrapper`,{[`${s}__content-wrapper--collapsed`]:d}),style:{"--_pul-toaster--panel-content-enter-delay":g||m?"300ms":void 0},children:(0,L.jsx)(Kl,{component:"div",className:`${s}__content`,children:e.map((({key:n,...a})=>{const i=(0,R.createRef)(),r=`${s}__toast`;return(0,L.jsx)(It,{classNames:`${r}__wrapper`,timeout:{enter:3e4,exit:300},nodeRef:i,enter:e.length>1,children:(0,L.jsx)("div",{className:`${r}__wrapper`,ref:i,children:(0,L.jsx)("div",{className:`${r}__sub-wrapper`,children:(0,L.jsx)(gr,{...a,onClose:()=>{t({key:n,...a})},className:F()(a.className,r,f&&`${r}--with-collapse`),message:(0,L.jsxs)(L.Fragment,{children:[a.message,f&&!p&&(0,L.jsx)(ut,{size:"md",ghost:!0,icon:{name:"chevron-down"},className:`${s}__toast-collapse`,onClick:b,"aria-label":"Collapse"})]})},n)})})},n)}))})});return(0,L.jsx)(ce.Provider,{value:!0,children:(0,L.jsx)("div",{className:`${s}__wrapper`,children:(0,L.jsx)(It,{nodeRef:c,in:e.length>0,timeout:{enter:300,exit:300},classNames:s,unmountOnExit:!0,children:(0,L.jsxs)("div",{ref:c,className:F()(s,{[`${s}--empty`]:m}),children:[S,w]})})})})};let Zl=0;const ec=(0,R.forwardRef)((function({baseClassName:e=`${B.CLS_PREFIX}toaster`,className:t,toasts:n,maxToastsNumber:s,position:a="top-end",view:i="toast",onToastClose:r,onToastGroupClose:o,groupConfigs:l,isPanelCollapsed:c,onPanelCollapseStateChange:u,...d},p){const h=()=>(n??[]).slice(0,s),m=Boolean(n),[g,f]=(0,R.useState)(h),b=m?h():g,v=e=>{f((t=>t.filter((t=>t.key!==e))))};(0,R.useImperativeHandle)(p,(()=>({add(e){const t="toast-"+Zl++;return f((n=>[{key:t,...e},...n].slice(0,s))),t},update:(e,t)=>(f((n=>n.map((n=>n.key===e?{...t,key:e}:n)))),e),remove:v,clear(){f([])}})),[s]);const y=e=>{m||v(e.key),e.onClose?.(),r?.(e.key)};return(0,L.jsx)(Ge,{level:B.Z_INDEX_TOASTER,children:(0,L.jsx)("div",{className:F()(e,t,`${e}--${i}-view`,{[`${e}--${a}`]:"toast"===i}),...d,children:"toast"===i?(0,L.jsx)(Ql,{toasts:b,position:a,onToastClose:y,baseClassName:`${e}-toast-view`}):(0,L.jsx)(Xl,{toasts:b,onToastClose:y,onToastGroupClose:e=>{m||f((t=>t.filter((t=>!e.includes(t.key))))),o?.(e)},baseClassName:`${e}-panel-view`,groupConfigs:l,isCollapsed:c,onCollapseStateChange:u})})})}));ec.create=(e={},t=document.body)=>{const n=document.createElement("div");t.appendChild(n);const s={};return(0,Hl.H)(n).render((0,L.jsx)(ec,{ref:e=>Object.assign(s,e),...e})),s};const tc=ec,nc=({width:e,maxWidth:t,height:n,style:s,component:a="span",className:i,baseClassName:r=`${B.CLS_PREFIX}skeleton`,...o})=>{const l={...s,width:ne(e),maxWidth:ne(t),height:ne(n)};return(0,L.jsx)(a,{className:F()(r,i),style:l,...o})},sc=({lines:e=3,component:t="span",className:n,baseClassName:s=`${B.CLS_PREFIX}skeleton-text`,lineProps:a={},...i})=>(0,L.jsx)(t,{className:F()(s,n),...i,children:Array.from({length:e}).map(((e,t)=>(0,L.jsx)(nc,{...a,className:F()(`${s}__line`,a?.className)},t)))});E()();var ac=r(19888),ic=r(69242);let rc=function(e){e()};const oc=()=>rc,lc=Symbol.for("react-redux-context"),cc="undefined"!=typeof globalThis?globalThis:{};function uc(){var e;if(!R.createContext)return{};const t=null!=(e=cc[lc])?e:cc[lc]=new Map;let n=t.get(R.createContext);return n||(n=R.createContext(null),t.set(R.createContext,n)),n}const dc=uc();function pc(e=dc){return function(){return(0,R.useContext)(e)}}const hc=pc(),mc=()=>{throw new Error("uSES not initialized!")};let gc=mc;const fc=(e,t)=>e===t;function bc(e=dc){const t=e===dc?hc:pc(e);return function(e,n={}){const{equalityFn:s=fc,stabilityCheck:a,noopCheck:i}="function"==typeof n?{equalityFn:n}:n,{store:r,subscription:o,getServerState:l,stabilityCheck:c,noopCheck:u}=t(),d=((0,R.useRef)(!0),(0,R.useCallback)({[e.name]:t=>e(t)}[e.name],[e,c,a])),p=gc(o.addNestedSub,r.getState,l||r.getState,d,s);return(0,R.useDebugValue)(p),p}}const vc=bc();var yc=r(4146),Sc=r.n(yc),wc=r(54737);const xc=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Ac(e,t,n,s,{areStatesEqual:a,areOwnPropsEqual:i,areStatePropsEqual:r}){let o,l,c,u,d,p=!1;return function(h,m){return p?function(p,h){const m=!i(h,l),g=!a(p,o,h,l);return o=p,l=h,m&&g?(c=e(o,l),t.dependsOnOwnProps&&(u=t(s,l)),d=n(c,u,l),d):m?(e.dependsOnOwnProps&&(c=e(o,l)),t.dependsOnOwnProps&&(u=t(s,l)),d=n(c,u,l),d):g?function(){const t=e(o,l),s=!r(t,c);return c=t,s&&(d=n(c,u,l)),d}():d}(h,m):(o=h,l=m,c=e(o,l),u=t(s,l),d=n(c,u,l),p=!0,d)}}function _c(e){return function(t){const n=e(t);function s(){return n}return s.dependsOnOwnProps=!1,s}}function kc(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function jc(e,t){return function(t,{displayName:n}){const s=function(e,t){return s.dependsOnOwnProps?s.mapToProps(e,t):s.mapToProps(e,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(t,n){s.mapToProps=e,s.dependsOnOwnProps=kc(e);let a=s(t,n);return"function"==typeof a&&(s.mapToProps=a,s.dependsOnOwnProps=kc(a),a=s(t,n)),a},s}}function Cc(e,t){return(n,s)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${s.wrappedComponentName}.`)}}function Ic(e,t,n){return(0,b.A)({},n,e,t)}const Tc={notify(){},get:()=>[]};function Dc(e,t){let n,s=Tc,a=0,i=!1;function r(){c.onStateChange&&c.onStateChange()}function o(){a++,n||(n=t?t.addNestedSub(r):e.subscribe(r),s=function(){const e=oc();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let s=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){s&&null!==t&&(s=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}function l(){a--,n&&0===a&&(n(),n=void 0,s.clear(),s=Tc)}const c={addNestedSub:function(e){o();const t=s.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){s.notify()},handleChangeWrapper:r,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,o())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>s};return c}const Pc="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?R.useLayoutEffect:R.useEffect;function Oc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Lc(e,t){if(Oc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(let s=0;s<n.length;s++)if(!Object.prototype.hasOwnProperty.call(t,n[s])||!Oc(e[n[s]],t[n[s]]))return!1;return!0}const Mc=["reactReduxForwardedRef"];let Ec=mc;const Rc=[null,null];function Uc(e,t,n,s,a,i){e.current=s,n.current=!1,a.current&&(a.current=null,i())}function Nc(e,t){return e===t}const Fc=function(e,t,n,{pure:s,areStatesEqual:a=Nc,areOwnPropsEqual:i=Lc,areStatePropsEqual:r=Lc,areMergedPropsEqual:o=Lc,forwardRef:l=!1,context:c=dc}={}){const u=c,d=function(e){return e?"function"==typeof e?jc(e):Cc(e,"mapStateToProps"):_c((()=>({})))}(e),p=function(e){return e&&"object"==typeof e?_c((t=>function(e,t){const n={};for(const s in e){const a=e[s];"function"==typeof a&&(n[s]=(...e)=>t(a(...e)))}return n}(e,t))):e?"function"==typeof e?jc(e):Cc(e,"mapDispatchToProps"):_c((e=>({dispatch:e})))}(t),h=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:n,areMergedPropsEqual:s}){let a,i=!1;return function(t,n,r){const o=e(t,n,r);return i?s(o,a)||(a=o):(i=!0,a=o),a}}}(e):Cc(e,"mergeProps"):()=>Ic}(n),m=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n=`Connect(${t})`,s={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:p,initMergeProps:h,areStatesEqual:a,areStatePropsEqual:r,areOwnPropsEqual:i,areMergedPropsEqual:o};function c(t){const[n,a,i]=R.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,pt.A)(t,Mc);return[t.context,e,n]}),[t]),r=R.useMemo((()=>n&&n.Consumer&&(0,wc.isContextConsumer)(R.createElement(n.Consumer,null))?n:u),[n,u]),o=R.useContext(r),l=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),c=Boolean(o)&&Boolean(o.store),d=l?t.store:o.store,p=c?o.getServerState:d.getState,h=R.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:s,initMergeProps:a}=t,i=(0,pt.A)(t,xc);return Ac(n(e,i),s(e,i),a(e,i),e,i)}(d.dispatch,s)),[d]),[g,f]=R.useMemo((()=>{if(!m)return Rc;const e=Dc(d,l?void 0:o.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[d,l,o]),v=R.useMemo((()=>l?o:(0,b.A)({},o,{subscription:g})),[l,o,g]),y=R.useRef(),S=R.useRef(i),w=R.useRef(),x=R.useRef(!1),A=(R.useRef(!1),R.useRef(!1)),_=R.useRef();Pc((()=>(A.current=!0,()=>{A.current=!1})),[]);const k=R.useMemo((()=>()=>w.current&&i===S.current?w.current:h(d.getState(),i)),[d,i]),j=R.useMemo((()=>e=>g?function(e,t,n,s,a,i,r,o,l,c,u){if(!e)return()=>{};let d=!1,p=null;const h=()=>{if(d||!o.current)return;const e=t.getState();let n,h;try{n=s(e,a.current)}catch(e){h=e,p=e}h||(p=null),n===i.current?r.current||c():(i.current=n,l.current=n,r.current=!0,u())};return n.onStateChange=h,n.trySubscribe(),h(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}(m,d,g,h,S,y,x,A,w,f,e):()=>{}),[g]);var C,I;let T;C=Uc,I=[S,y,x,i,w,f],Pc((()=>C(...I)),undefined);try{T=Ec(j,k,p?()=>h(p(),i):k)}catch(e){throw _.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${_.current.stack}\n\n`),e}Pc((()=>{_.current=void 0,w.current=void 0,y.current=T}));const D=R.useMemo((()=>R.createElement(e,(0,b.A)({},T,{ref:a}))),[a,e,T]);return R.useMemo((()=>m?R.createElement(r.Provider,{value:v},D):D),[r,D,v])}const g=R.memo(c);if(g.WrappedComponent=e,g.displayName=c.displayName=n,l){const t=R.forwardRef((function(e,t){return R.createElement(g,(0,b.A)({},e,{reactReduxForwardedRef:t}))})),s=t;return s.displayName=n,s.WrappedComponent=e,Sc()(s,e)}return Sc()(g,e)}},Bc=function({store:e,context:t,children:n,serverState:s,stabilityCheck:a="once",noopCheck:i="once"}){const r=R.useMemo((()=>{const t=Dc(e);return{store:e,subscription:t,getServerState:s?()=>s:void 0,stabilityCheck:a,noopCheck:i}}),[e,s,a,i]),o=R.useMemo((()=>e.getState()),[e]);Pc((()=>{const{subscription:t}=r;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),o!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[r,o]);const l=t||dc;return R.createElement(l.Provider,{value:r},n)};function Yc(e=dc){const t=e===dc?hc:pc(e);return function(){const{store:e}=t();return e}}const Hc=Yc();function Vc(e=dc){const t=e===dc?Hc:Yc(e);return function(){return t().dispatch}}const Wc=Vc();var $c,zc;$c=ic.useSyncExternalStoreWithSelector,gc=$c,(e=>{Ec=e})(ac.useSyncExternalStore),zc=$e.unstable_batchedUpdates,rc=zc;var qc=r(35302),Gc=r.n(qc),Kc=(r(44363),1073741823),Qc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},Jc=R.createContext||function(e,t){var n,s,a,i="__create-react-context-"+((Qc[a="__global_unique_id__"]=(Qc[a]||0)+1)+"__"),r=function(e){function n(){for(var t,n,s,a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return(t=e.call.apply(e,[this].concat(i))||this).emitter=(n=t.props.value,s=[],{on:function(e){s.push(e)},off:function(e){s=s.filter((function(t){return t!==e}))},get:function(){return n},set:function(e,t){n=e,s.forEach((function(e){return e(n,t)}))}}),t}mt(n,e);var s=n.prototype;return s.getChildContext=function(){var e;return(e={})[i]=this.emitter,e},s.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,s=this.props.value,a=e.value;((i=s)===(r=a)?0!==i||1/i==1/r:i!=i&&r!=r)?n=0:(n="function"==typeof t?t(s,a):Kc,0!=(n|=0)&&this.emitter.set(e.value,n))}var i,r},s.render=function(){return this.props.children},n}(R.Component);r.childContextTypes=((n={})[i]=je().object.isRequired,n);var o=function(t){function n(){for(var e,n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return(e=t.call.apply(t,[this].concat(s))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){e.observedBits&n&&e.setState({value:e.getValue()})},e}mt(n,t);var s=n.prototype;return s.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=t??Kc},s.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=e??Kc},s.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},s.getValue=function(){return this.context[i]?this.context[i].get():e},s.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(R.Component);return o.contextTypes=((s={})[i]=je().object,s),{Provider:r,Consumer:o}},Xc=function(e){var t=Jc();return t.displayName=e,t},Zc=Xc("Router-History"),eu=Xc("Router"),tu=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}mt(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return R.createElement(eu.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},R.createElement(Zc.Provider,{children:this.props.children||null,value:this.props.history}))},t}(R.Component);R.Component,R.Component;var nu={},su=0;function au(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,s=n.path,a=n.exact,i=void 0!==a&&a,r=n.strict,o=void 0!==r&&r,l=n.sensitive,c=void 0!==l&&l;return[].concat(s).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var s=function(e,t){var n=""+t.end+t.strict+t.sensitive,s=nu[n]||(nu[n]={});if(s[e])return s[e];var a=[],i={regexp:Gc()(e,a,t),keys:a};return su<1e4&&(s[e]=i,su++),i}(n,{end:i,strict:o,sensitive:c}),a=s.regexp,r=s.keys,l=a.exec(e);if(!l)return null;var u=l[0],d=l.slice(1),p=e===u;return i&&!p?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:p,params:r.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var iu=function(e){function t(){return e.apply(this,arguments)||this}return mt(t,e),t.prototype.render=function(){var e=this;return R.createElement(eu.Consumer,null,(function(t){t||S(!1);var n=e.props.location||t.location,s=e.props.computedMatch?e.props.computedMatch:e.props.path?au(n.pathname,e.props):t.match,a=(0,b.A)({},t,{location:n,match:s}),i=e.props,r=i.children,o=i.component,l=i.render;return Array.isArray(r)&&function(e){return 0===R.Children.count(e)}(r)&&(r=null),R.createElement(eu.Provider,{value:a},a.match?r?"function"==typeof r?r(a):r:o?R.createElement(o,a):l?l(a):null:"function"==typeof r?r(a):null)}))},t}(R.Component);R.Component;var ru=function(e){function t(){return e.apply(this,arguments)||this}return mt(t,e),t.prototype.render=function(){var e=this;return R.createElement(eu.Consumer,null,(function(t){t||S(!1);var n,s,a=e.props.location||t.location;return R.Children.forEach(e.props.children,(function(e){if(null==s&&R.isValidElement(e)){n=e;var i=e.props.path||e.props.from;s=i?au(a.pathname,(0,b.A)({},e.props,{path:i})):t.match}})),s?R.cloneElement(n,{location:a,computedMatch:s}):null}))},t}(R.Component);function ou(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,s=(0,pt.A)(t,["wrappedComponentRef"]);return R.createElement(eu.Consumer,null,(function(t){return t||S(!1),R.createElement(e,(0,b.A)({},s,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,Sc()(n,e)}var lu=R.useContext;function cu(){return lu(Zc)}var uu=r(38514),du=r.n(uu),pu="@@router/LOCATION_CHANGE",hu="@@router/CALL_HISTORY_METHOD",mu=function(e){return function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return{type:hu,payload:{method:e,args:n}}}},gu=mu("push");function fu(e){return fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fu(e)}mu("replace"),mu("go"),mu("goBack"),mu("goForward");const bu=function(e){var t=e.getIn,n=e.toJS,s=function(e){var s,a=n(t(e,["router"]));if(null==(s=a)||"object"!==fu(s)||!t(s,["location"])||!t(s,["action"]))throw'Could not find router reducer in state tree, it must be mounted under "router"';return a},a=function(e){return n(t(s(e),["location"]))};return{getLocation:a,getAction:function(e){return n(t(s(e),["action"]))},getRouter:s,getSearch:function(e){return n(t(s(e),["location","search"]))},getHash:function(e){return n(t(s(e),["location","hash"]))},createMatchSelector:function(e){var t=null,n=null;return function(s){var i=(a(s)||{}).pathname;if(i===t)return n;t=i;var r=au(i,e);return r&&n&&r.url===n.url&&r.isExact===n.isExact||(n=r),n}}}};function vu(e){return vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vu(e)}function yu(){return yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},yu.apply(this,arguments)}function Su(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function wu(e){return wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wu(e)}function xu(e,t){return xu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xu(e,t)}const Au=function(e){var t=bu(e).getLocation,n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xu(e,t)}(r,e);var n,s,a,i=(a=r,function(){var e,t=wu(a);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()){var n=wu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==vu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,e)});function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),n=i.call(this,e);var s=e.store,a=e.history,o=e.onLocationChanged,l=e.stateCompareFunction;n.inTimeTravelling=!1,n.unsubscribe=s.subscribe((function(){var i=!e.noTimeTravelDebugging,r=t(s.getState()),o=r.pathname,c=r.search,u=r.hash,d=r.state,p=a.location,h=p.pathname,m=p.search,g=p.hash,f=p.state;!i||"PUSH"!==e.history.action||h===o&&m===c&&g===u&&du()(d,f,l)||(n.inTimeTravelling=!0,a.push({pathname:o,search:c,hash:u,state:d}))}));var c=function(e,t){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];n.inTimeTravelling?n.inTimeTravelling=!1:o(e,t,s)};return n.unlisten=a.listen(c),e.noInitialPop||c(a.location,a.action,!0),n}return n=r,(s=[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.omitRouter,n=e.history,s=e.children;return t?R.createElement(R.Fragment,null,s):R.createElement(tu,{history:n},s)}}])&&Su(n.prototype,s),r}(R.PureComponent);n.propTypes={store:je().shape({getState:je().func.isRequired,subscribe:je().func.isRequired}).isRequired,history:je().shape({action:je().string.isRequired,listen:je().func.isRequired,location:je().object.isRequired,push:je().func.isRequired}).isRequired,basename:je().string,children:je().oneOfType([je().func,je().node]),onLocationChanged:je().func.isRequired,noInitialPop:je().bool,noTimeTravelDebugging:je().bool,stateCompareFunction:je().func,omitRouter:je().bool};var s=function(e){var t=e.context||dc;if(null==t)throw"Please upgrade to react-redux v6";return R.createElement(t.Consumer,null,(function(t){var s=t.store;return R.createElement(n,yu({store:s},e))}))};return s.propTypes={context:je().object},Fc(null,(function(e){return{onLocationChanged:function(t,n,s){return e(function(e,t){return{type:pu,payload:{location:e,action:t,isFirstRendering:arguments.length>2&&void 0!==arguments[2]&&arguments[2]}}}(t,n,s))}}}))(s)};function _u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function ku(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function ju(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ku(Object(n),!0).forEach((function(t){Cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ku(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iu=function(e){if(e&&e.query)return e;var t=e&&e.search;if("string"!=typeof t||0===t.length)return ju({},e,{query:{}});var n=t.substring(1).split("&").reduce((function(e,t){var n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],s=!0,a=!1,i=void 0;try{for(var r,o=e[Symbol.iterator]();!(s=(r=o.next()).done)&&(n.push(r.value),!t||n.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==o.return||o.return()}finally{if(a)throw i}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_u(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.split("="),2);return ju({},e,Cu({},n[0],n[1]))}),{});return ju({},e,{query:n})};const Tu=function(e){var t=e.fromJS,n=e.merge;return function(e){var s=t({location:Iu(e.location),action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=a.type,r=a.payload;if(i===pu){var o=r.location,l=r.action;return r.isFirstRendering?e:n(e,{location:t(Iu(o)),action:l})}return e}}};function Du(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Pu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ou={fromJS:function(e){return e},getIn:function(e,t){if(!e)return e;var n=t.length;if(n){for(var s=e,a=0;a<n&&s;++a)s=s[t[a]];return s}},merge:function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Du(Object(n),!0).forEach((function(t){Pu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Du(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},t)},toJS:function(e){return e}};const Lu=Ou;var Mu=Au(Lu),Eu=Tu(Lu),Ru=bu(Lu),Uu=(Ru.getLocation,Ru.getAction,Ru.getHash,Ru.getRouter,Ru.getSearch,Ru.createMatchSelector,r(31635));function Nu(e,t){var n=t&&t.cache?t.cache:Gu,s=t&&t.serializer?t.serializer:zu;return(t&&t.strategy?t.strategy:Hu)(e,{cache:n,serializer:s})}function Fu(e,t,n,s){var a,i=null==(a=s)||"number"==typeof a||"boolean"==typeof a?s:n(s),r=t.get(i);return void 0===r&&(r=e.call(this,s),t.set(i,r)),r}function Bu(e,t,n){var s=Array.prototype.slice.call(arguments,3),a=n(s),i=t.get(a);return void 0===i&&(i=e.apply(this,s),t.set(a,i)),i}function Yu(e,t,n,s,a){return n.bind(t,e,s,a)}function Hu(e,t){return Yu(e,this,1===e.length?Fu:Bu,t.cache.create(),t.serializer)}var Vu,Wu,$u,zu=function(){return JSON.stringify(arguments)},qu=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(e){return this.cache[e]},e.prototype.set=function(e,t){this.cache[e]=t},e}(),Gu={create:function(){return new qu}},Ku={variadic:function(e,t){return Yu(e,this,Bu,t.cache.create(),t.serializer)},monadic:function(e,t){return Yu(e,this,Fu,t.cache.create(),t.serializer)}};function Qu(e){return e.type===Wu.literal}function Ju(e){return e.type===Wu.argument}function Xu(e){return e.type===Wu.number}function Zu(e){return e.type===Wu.date}function ed(e){return e.type===Wu.time}function td(e){return e.type===Wu.select}function nd(e){return e.type===Wu.plural}function sd(e){return e.type===Wu.pound}function ad(e){return e.type===Wu.tag}function id(e){return!(!e||"object"!=typeof e||e.type!==$u.number)}function rd(e){return!(!e||"object"!=typeof e||e.type!==$u.dateTime)}!function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Vu||(Vu={})),function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"}(Wu||(Wu={})),function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"}($u||($u={}));var od=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,ld=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function cd(e){var t={};return e.replace(ld,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"long":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),t}var ud=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,dd=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,pd=/^(@+)?(\+|#+)?[rs]?$/g,hd=/(\*)(0+)|(#+)(0+)|(0+)/g,md=/^(0+)$/;function gd(e){var t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(pd,(function(e,n,s){return"string"!=typeof s?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===s?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof s?s.length:0)),""})),t}function fd(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function bd(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!md.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function vd(e){return fd(e)||{}}function yd(e){for(var t={},n=0,s=e;n<s.length;n++){var a=s[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=a.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=(0,Uu.Cl)((0,Uu.Cl)((0,Uu.Cl)({},t),{notation:"scientific"}),a.options.reduce((function(e,t){return(0,Uu.Cl)((0,Uu.Cl)({},e),vd(t))}),{}));continue;case"engineering":t=(0,Uu.Cl)((0,Uu.Cl)((0,Uu.Cl)({},t),{notation:"engineering"}),a.options.reduce((function(e,t){return(0,Uu.Cl)((0,Uu.Cl)({},e),vd(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(hd,(function(e,n,s,a,i,r){if(n)t.minimumIntegerDigits=s.length;else{if(a&&i)throw new Error("We currently do not support maximum integer digits");if(r)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(md.test(a.stem))t.minimumIntegerDigits=a.stem.length;else if(dd.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(dd,(function(e,n,s,a,i,r){return"*"===s?t.minimumFractionDigits=n.length:a&&"#"===a[0]?t.maximumFractionDigits=a.length:i&&r?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+r.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),""}));var i=a.options[0];"w"===i?t=(0,Uu.Cl)((0,Uu.Cl)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,Uu.Cl)((0,Uu.Cl)({},t),gd(i)))}else if(pd.test(a.stem))t=(0,Uu.Cl)((0,Uu.Cl)({},t),gd(a.stem));else{var r=fd(a.stem);r&&(t=(0,Uu.Cl)((0,Uu.Cl)({},t),r));var o=bd(a.stem);o&&(t=(0,Uu.Cl)((0,Uu.Cl)({},t),o))}}return t}var Sd,wd={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function xd(e){var t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n,s=e.language;return"root"!==s&&(n=e.maximize().region),(wd[n||""]||wd[s||""]||wd["".concat(s,"-001")]||wd["001"])[0]}var Ad=new RegExp("^".concat(od.source,"*")),_d=new RegExp("".concat(od.source,"*$"));function kd(e,t){return{start:e,end:t}}var jd=!!String.prototype.startsWith&&"_a".startsWith("a",1),Cd=!!String.fromCodePoint,Id=!!Object.fromEntries,Td=!!String.prototype.codePointAt,Dd=!!String.prototype.trimStart,Pd=!!String.prototype.trimEnd,Od=Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ld=!0;try{Ld="a"===(null===(Sd=Yd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Sd?void 0:Sd[0])}catch(e){Ld=!1}var Md,Ed=jd?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},Rd=Cd?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,s="",a=e.length,i=0;a>i;){if((n=e[i++])>1114111)throw RangeError(n+" is not a valid code point");s+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return s},Ud=Id?Object.fromEntries:function(e){for(var t={},n=0,s=e;n<s.length;n++){var a=s[n],i=a[0],r=a[1];t[i]=r}return t},Nd=Td?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var s,a=e.charCodeAt(t);return a<55296||a>56319||t+1===n||(s=e.charCodeAt(t+1))<56320||s>57343?a:s-56320+(a-55296<<10)+65536}},Fd=Dd?function(e){return e.trimStart()}:function(e){return e.replace(Ad,"")},Bd=Pd?function(e){return e.trimEnd()}:function(e){return e.replace(_d,"")};function Yd(e,t){return new RegExp(e,t)}if(Ld){var Hd=Yd("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Md=function(e,t){var n;return Hd.lastIndex=t,null!==(n=Hd.exec(e)[1])&&void 0!==n?n:""}}else Md=function(e,t){for(var n=[];;){var s=Nd(e,t);if(void 0===s||zd(s)||qd(s))break;n.push(s),t+=s>=65536?2:1}return Rd.apply(void 0,n)};var Vd,Wd=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,n){for(var s=[];!this.isEOF();){var a=this.char();if(123===a){if((i=this.parseArgument(e,n)).err)return i;s.push(i.val)}else{if(125===a&&e>0)break;if(35!==a||"plural"!==t&&"selectordinal"!==t){if(60===a&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(Vu.UNMATCHED_CLOSING_TAG,kd(this.clonePosition(),this.clonePosition()))}if(60===a&&!this.ignoreTag&&$d(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;s.push(i.val)}else{var i;if((i=this.parseLiteral(e,t)).err)return i;s.push(i.val)}}else{var r=this.clonePosition();this.bump(),s.push({type:Wu.pound,location:kd(r,this.clonePosition())})}}}return{val:s,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Wu.literal,value:"<".concat(s,"/>"),location:kd(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var a=this.parseMessage(e+1,t,!0);if(a.err)return a;var i=a.val,r=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$d(this.char()))return this.error(Vu.INVALID_TAG,kd(r,this.clonePosition()));var o=this.clonePosition();return s!==this.parseTagName()?this.error(Vu.UNMATCHED_CLOSING_TAG,kd(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Wu.tag,value:s,children:i,location:kd(n,this.clonePosition())},err:null}:this.error(Vu.INVALID_TAG,kd(r,this.clonePosition())))}return this.error(Vu.UNCLOSED_TAG,kd(n,this.clonePosition()))}return this.error(Vu.INVALID_TAG,kd(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),s="";;){var a=this.tryParseQuote(t);if(a)s+=a;else{var i=this.tryParseUnquoted(e,t);if(i)s+=i;else{var r=this.tryParseLeftAngleBracket();if(!r)break;s+=r}}}var o=kd(n,this.clonePosition());return{val:{type:Wu.literal,value:s,location:o},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&($d(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return Rd.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&e>0?null:(this.bump(),Rd(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Vu.EXPECT_ARGUMENT_CLOSING_BRACE,kd(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Vu.EMPTY_ARGUMENT,kd(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(Vu.MALFORMED_ARGUMENT,kd(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Vu.EXPECT_ARGUMENT_CLOSING_BRACE,kd(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Wu.argument,value:s,location:kd(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Vu.EXPECT_ARGUMENT_CLOSING_BRACE,kd(n,this.clonePosition())):this.parseArgumentOptions(e,t,s,n);default:return this.error(Vu.MALFORMED_ARGUMENT,kd(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=Md(this.message,t),s=t+n.length;return this.bumpTo(s),{value:n,location:kd(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,s){var a,i=this.clonePosition(),r=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(r){case"":return this.error(Vu.EXPECT_ARGUMENT_TYPE,kd(i,o));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(h=Bd(b.val)).length)return this.error(Vu.EXPECT_ARGUMENT_STYLE,kd(this.clonePosition(),this.clonePosition()));l={style:h,styleLocation:kd(c,this.clonePosition())}}if((v=this.tryParseArgumentClose(s)).err)return v;var u=kd(s,this.clonePosition());if(l&&Ed(null==l?void 0:l.style,"::",0)){var d=Fd(l.style.slice(2));if("number"===r)return(b=this.parseNumberSkeletonFromString(d,l.styleLocation)).err?b:{val:{type:Wu.number,value:n,location:u,style:b.val},err:null};if(0===d.length)return this.error(Vu.EXPECT_DATE_TIME_SKELETON,u);var p=d;this.locale&&(p=function(e,t){for(var n="",s=0;s<e.length;s++){var a=e.charAt(s);if("j"===a){for(var i=0;s+1<e.length&&e.charAt(s+1)===a;)i++,s++;var r=1+(1&i),o=i<2?1:3+(i>>1),l=xd(t);for("H"!=l&&"k"!=l||(o=0);o-- >0;)n+="a";for(;r-- >0;)n=l+n}else n+="J"===a?"H":a}return n}(d,this.locale));var h={type:$u.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?cd(p):{}};return{val:{type:"date"===r?Wu.date:Wu.time,value:n,location:u,style:h},err:null}}return{val:{type:"number"===r?Wu.number:"date"===r?Wu.date:Wu.time,value:n,location:u,style:null!==(a=null==l?void 0:l.style)&&void 0!==a?a:null},err:null};case"plural":case"selectordinal":case"select":var m=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Vu.EXPECT_SELECT_ARGUMENT_OPTIONS,kd(m,(0,Uu.Cl)({},m)));this.bumpSpace();var g=this.parseIdentifierIfPossible(),f=0;if("select"!==r&&"offset"===g.value){if(!this.bumpIf(":"))return this.error(Vu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,kd(this.clonePosition(),this.clonePosition()));var b;if(this.bumpSpace(),(b=this.tryParseDecimalInteger(Vu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vu.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return b;this.bumpSpace(),g=this.parseIdentifierIfPossible(),f=b.val}var v,y=this.tryParsePluralOrSelectOptions(e,r,t,g);if(y.err)return y;if((v=this.tryParseArgumentClose(s)).err)return v;var S=kd(s,this.clonePosition());return"select"===r?{val:{type:Wu.select,value:n,options:Ud(y.val),location:S},err:null}:{val:{type:Wu.plural,value:n,options:Ud(y.val),offset:f,pluralType:"plural"===r?"cardinal":"ordinal",location:S},err:null};default:return this.error(Vu.INVALID_ARGUMENT_TYPE,kd(i,o))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(Vu.EXPECT_ARGUMENT_CLOSING_BRACE,kd(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Vu.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,kd(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,s=e.split(ud).filter((function(e){return e.length>0}));n<s.length;n++){var a=s[n].split("/");if(0===a.length)throw new Error("Invalid number skeleton");for(var i=a[0],r=a.slice(1),o=0,l=r;o<l.length;o++)if(0===l[o].length)throw new Error("Invalid number skeleton");t.push({stem:i,options:r})}return t}(e)}catch(e){return this.error(Vu.INVALID_NUMBER_SKELETON,t)}return{val:{type:$u.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?yd(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,s){for(var a,i=!1,r=[],o=new Set,l=s.value,c=s.location;;){if(0===l.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var d=this.tryParseDecimalInteger(Vu.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vu.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=kd(u,this.clonePosition()),l=this.message.slice(u.offset,this.offset())}if(o.has(l))return this.error("select"===t?Vu.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Vu.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(i=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?Vu.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Vu.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,kd(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(e+1,t,n);if(h.err)return h;var m=this.tryParseArgumentClose(p);if(m.err)return m;r.push([l,{value:h.val,location:kd(p,this.clonePosition())}]),o.add(l),this.bumpSpace(),l=(a=this.parseIdentifierIfPossible()).value,c=a.location}return 0===r.length?this.error("select"===t?Vu.EXPECT_SELECT_ARGUMENT_SELECTOR:Vu.EXPECT_PLURAL_ARGUMENT_SELECTOR,kd(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(Vu.MISSING_OTHER_CLAUSE,kd(this.clonePosition(),this.clonePosition())):{val:r,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var a=!1,i=0;!this.isEOF();){var r=this.char();if(!(r>=48&&r<=57))break;a=!0,i=10*i+(r-48),this.bump()}var o=kd(s,this.clonePosition());return a?Od(i*=n)?{val:i,err:null}:this.error(t,o):this.error(e,o)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Nd(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(Ed(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&zd(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return null!=n?n:null},e}();function $d(e){return e>=97&&e<=122||e>=65&&e<=90}function zd(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function qd(e){return e>=33&&e<=35||36===e||e>=37&&e<=39||40===e||41===e||42===e||43===e||44===e||45===e||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||91===e||92===e||93===e||94===e||96===e||123===e||124===e||125===e||126===e||161===e||e>=162&&e<=165||166===e||167===e||169===e||171===e||172===e||174===e||176===e||177===e||182===e||187===e||191===e||215===e||247===e||e>=8208&&e<=8213||e>=8214&&e<=8215||8216===e||8217===e||8218===e||e>=8219&&e<=8220||8221===e||8222===e||8223===e||e>=8224&&e<=8231||e>=8240&&e<=8248||8249===e||8250===e||e>=8251&&e<=8254||e>=8257&&e<=8259||8260===e||8261===e||8262===e||e>=8263&&e<=8273||8274===e||8275===e||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||8608===e||e>=8609&&e<=8610||8611===e||e>=8612&&e<=8613||8614===e||e>=8615&&e<=8621||8622===e||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||8658===e||8659===e||8660===e||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||8968===e||8969===e||8970===e||8971===e||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||9001===e||9002===e||e>=9003&&e<=9083||9084===e||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||9655===e||e>=9656&&e<=9664||9665===e||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||9839===e||e>=9840&&e<=10087||10088===e||10089===e||10090===e||10091===e||10092===e||10093===e||10094===e||10095===e||10096===e||10097===e||10098===e||10099===e||10100===e||10101===e||e>=10132&&e<=10175||e>=10176&&e<=10180||10181===e||10182===e||e>=10183&&e<=10213||10214===e||10215===e||10216===e||10217===e||10218===e||10219===e||10220===e||10221===e||10222===e||10223===e||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||10627===e||10628===e||10629===e||10630===e||10631===e||10632===e||10633===e||10634===e||10635===e||10636===e||10637===e||10638===e||10639===e||10640===e||10641===e||10642===e||10643===e||10644===e||10645===e||10646===e||10647===e||10648===e||e>=10649&&e<=10711||10712===e||10713===e||10714===e||10715===e||e>=10716&&e<=10747||10748===e||10749===e||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||11158===e||e>=11159&&e<=11263||e>=11776&&e<=11777||11778===e||11779===e||11780===e||11781===e||e>=11782&&e<=11784||11785===e||11786===e||11787===e||11788===e||11789===e||e>=11790&&e<=11798||11799===e||e>=11800&&e<=11801||11802===e||11803===e||11804===e||11805===e||e>=11806&&e<=11807||11808===e||11809===e||11810===e||11811===e||11812===e||11813===e||11814===e||11815===e||11816===e||11817===e||e>=11818&&e<=11822||11823===e||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||11840===e||11841===e||11842===e||e>=11843&&e<=11855||e>=11856&&e<=11857||11858===e||e>=11859&&e<=11903||e>=12289&&e<=12291||12296===e||12297===e||12298===e||12299===e||12300===e||12301===e||12302===e||12303===e||12304===e||12305===e||e>=12306&&e<=12307||12308===e||12309===e||12310===e||12311===e||12312===e||12313===e||12314===e||12315===e||12316===e||12317===e||e>=12318&&e<=12319||12320===e||12336===e||64830===e||64831===e||e>=65093&&e<=65094}function Gd(e){e.forEach((function(e){if(delete e.location,td(e)||nd(e))for(var t in e.options)delete e.options[t].location,Gd(e.options[t].value);else Xu(e)&&id(e.style)||(Zu(e)||ed(e))&&rd(e.style)?delete e.style.location:ad(e)&&Gd(e.children)}))}function Kd(e,t){void 0===t&&(t={}),t=(0,Uu.Cl)({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Wd(e,t).parse();if(n.err){var s=SyntaxError(Vu[n.err.kind]);throw s.location=n.err.location,s.originalMessage=n.err.message,s}return(null==t?void 0:t.captureLocation)||Gd(n.val),n.val}!function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"}(Vd||(Vd={}));var Qd,Jd=function(e){function t(t,n,s){var a=e.call(this,t)||this;return a.code=n,a.originalMessage=s,a}return(0,Uu.C6)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Xd=function(e){function t(t,n,s,a){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),Vd.INVALID_VALUE,a)||this}return(0,Uu.C6)(t,e),t}(Jd),Zd=function(e){function t(t,n,s){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(n),Vd.INVALID_VALUE,s)||this}return(0,Uu.C6)(t,e),t}(Jd),ep=function(e){function t(t,n){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(n,'"'),Vd.MISSING_VALUE,n)||this}return(0,Uu.C6)(t,e),t}(Jd);function tp(e){return"function"==typeof e}function np(e,t,n,s,a,i,r){if(1===e.length&&Qu(e[0]))return[{type:Qd.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var u=c[l];if(Qu(u))o.push({type:Qd.literal,value:u.value});else if(sd(u))"number"==typeof i&&o.push({type:Qd.literal,value:n.getNumberFormat(t).format(i)});else{var d=u.value;if(!a||!(d in a))throw new ep(d,r);var p=a[d];if(Ju(u))p&&"string"!=typeof p&&"number"!=typeof p||(p="string"==typeof p||"number"==typeof p?String(p):""),o.push({type:"string"==typeof p?Qd.literal:Qd.object,value:p});else if(Zu(u)){var h="string"==typeof u.style?s.date[u.style]:rd(u.style)?u.style.parsedOptions:void 0;o.push({type:Qd.literal,value:n.getDateTimeFormat(t,h).format(p)})}else if(ed(u))h="string"==typeof u.style?s.time[u.style]:rd(u.style)?u.style.parsedOptions:s.time.medium,o.push({type:Qd.literal,value:n.getDateTimeFormat(t,h).format(p)});else if(Xu(u))(h="string"==typeof u.style?s.number[u.style]:id(u.style)?u.style.parsedOptions:void 0)&&h.scale&&(p*=h.scale||1),o.push({type:Qd.literal,value:n.getNumberFormat(t,h).format(p)});else{if(ad(u)){var m=u.children,g=u.value,f=a[g];if(!tp(f))throw new Zd(g,"function",r);var b=f(np(m,t,n,s,a,i).map((function(e){return e.value})));Array.isArray(b)||(b=[b]),o.push.apply(o,b.map((function(e){return{type:"string"==typeof e?Qd.literal:Qd.object,value:e}})))}if(td(u)){if(!(v=u.options[p]||u.options.other))throw new Xd(u.value,p,Object.keys(u.options),r);o.push.apply(o,np(v.value,t,n,s,a))}else if(nd(u)){var v;if(!(v=u.options["=".concat(p)])){if(!Intl.PluralRules)throw new Jd('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Vd.MISSING_INTL_API,r);var y=n.getPluralRules(t,{type:u.pluralType}).select(p-(u.offset||0));v=u.options[y]||u.options.other}if(!v)throw new Xd(u.value,p,Object.keys(u.options),r);o.push.apply(o,np(v.value,t,n,s,a,p-(u.offset||0)))}}}}return(S=o).length<2?S:S.reduce((function(e,t){var n=e[e.length-1];return n&&n.type===Qd.literal&&t.type===Qd.literal?n.value+=t.value:e.push(t),e}),[]);var S}function sp(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}!function(e){e[e.literal=0]="literal",e[e.object=1]="object"}(Qd||(Qd={}));var ap=function(){function e(t,n,s,a){void 0===n&&(n=e.defaultLocale);var i,r,o,l=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var t=l.formatToParts(e);if(1===t.length)return t[0].value;var n=t.reduce((function(e,t){return e.length&&t.type===Qd.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e}),[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(e){return np(l.ast,l.locales,l.formatters,l.formats,e,void 0,l.message)},this.resolvedOptions=function(){var e;return{locale:(null===(e=l.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(l.locales)[0]}},this.getAst=function(){return l.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var c=a||{},u=(c.formatters,(0,Uu.Tt)(c,["formatters"]));this.ast=e.__parse(t,(0,Uu.Cl)((0,Uu.Cl)({},u),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(r=e.formats,(o=s)?Object.keys(r).reduce((function(e,t){var n,s;return e[t]=(n=r[t],(s=o[t])?(0,Uu.Cl)((0,Uu.Cl)((0,Uu.Cl)({},n||{}),s||{}),Object.keys(n).reduce((function(e,t){return e[t]=(0,Uu.Cl)((0,Uu.Cl)({},n[t]),s[t]||{}),e}),{})):n),e}),(0,Uu.Cl)({},r)):r),this.formatters=a&&a.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Nu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,(0,Uu.fX)([void 0],t,!1)))}),{cache:sp(i.number),strategy:Ku.variadic}),getDateTimeFormat:Nu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,(0,Uu.fX)([void 0],t,!1)))}),{cache:sp(i.dateTime),strategy:Ku.variadic}),getPluralRules:Nu((function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,(0,Uu.fX)([void 0],t,!1)))}),{cache:sp(i.pluralRules),strategy:Ku.variadic})})}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(e){if(void 0!==Intl.Locale){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])}},e.__parse=Kd,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();const ip=ap,rp=(0,R.createContext)("en-US"),op=(0,R.createContext)({}),lp=({messages:e,localeCode:t,parameters:n,children:s})=>(0,L.jsx)(rp.Provider,{value:t,children:(0,L.jsx)(op.Provider,{value:n,children:(0,L.jsx)(Re,{messages:e,children:s})})}),cp=e=>{const t=Ue(e),n=(0,R.useContext)(rp),s=(0,R.useContext)(op);return(0,R.useCallback)(((e,a,i)=>{const r=t(e,Object.assign(Object.assign({},s),a),i);if("string"!=typeof r)return r;try{const e=new ip(r,n,void 0,{ignoreTag:!0}).format(Object.assign(Object.assign({},s),a));return Array.isArray(e)?R.Children.toArray(e):e}catch(e){return r}}),[t,n,e,s])};var up=r(74728),dp=r.n(up);const pp=e=>{var{component:t,content:n,children:s,params:a,unsafe:i,fallback:r,namespace:o}=e,l=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["component","content","children","params","unsafe","fallback","namespace"]);const c=t||"span",u=cp(o)(n||s||"",i&&a?Object.entries(a).reduce(((e,[t,n])=>(e[t]="string"==typeof n?dp()(n,{allowedTags:[]}):n,e)),{}):a,r),d=Object.assign({},l);return i&&"string"==typeof u?d.dangerouslySetInnerHTML={__html:u}:d.children=u,(0,L.jsx)(c,Object.assign({},d))};var hp=r(55373),mp=r.n(hp);const gp=(e,t,...n)=>{e.preventDefault(),e.stopPropagation(),t&&(n?t(...n):t())},fp=(e,...t)=>(...n)=>{const s={type:e};return t.forEach(((e,a)=>{s[t[a]]=n[a]})),s},bp=({status:e,message:t,actionMessages:n})=>{const s=[];return e&&t&&t.length&&s.push({key:xp(4),status:e,message:t}),n&&n.length&&n.forEach((e=>{const{message:t}=e;t&&t.length>0&&s.push({key:xp(4),status:e.status,message:t})})),s},vp=e=>{let t={};return e.steps.forEach((e=>{t=Object.assign(Object.assign({},t),{[e.code]:{title:e.title,status:e.status,progress:e.progress,icon:e.icon,hint:e.hint}})})),Object.assign(Object.assign({},e),{steps:t})},yp=e=>`${e.slug}-${e.instanceId}`,Sp=e=>e.itemsIds.map((t=>`${t}-${e.instanceId}`)),wp=(e,t,n)=>{const s=(t-1)*n;return{pages:Math.ceil(e.length/n),currentItems:e.slice(s,s+n)}},xp=e=>Math.random().toString(36).substr(2,e),Ap=(e,t,n=null)=>e&&e.data&&e.data[t]?e.data[t]:n,_p=(e,t)=>e.reduce(((e,n)=>{const{key:s,value:a}=t(n);return e[s]=a,e}),{}),kp=(e,t)=>-1!==e.indexOf(t),jp=(e,t,n)=>e&&e.hasOwnProperty(t)?e[t]:n,Cp=(e,t,n="slug")=>{const s=t.filter((t=>e.includes(t[n])));return s.length===e.length?e:s.map((e=>e[n]))},Ip=(e,...t)=>{"function"==typeof e&&e(...t)},Tp=(e,t)=>e.filter((e=>!t.includes(e)));var Dp;!function(e){e.ASC="ASC",e.DESC="DESC"}(Dp||(Dp={}));const Pp=(e,t,n=Dp.ASC)=>{let s=0;return e<t&&(s=-1),e>t&&(s=1),(n===Dp.ASC?1:-1)*s},Op=e=>{const t=e.path.replace(/\\/g,"/").replace(/\/\//g,"/").replace(/\/$/,"").split("/");return t[t.length-1]};var Lp=r(44025);const Mp="success",Ep="error",Rp="themes",Up="plugins",Np="success",Fp="warning",Bp="danger",Yp="clone",Hp="sync",Vp="secure",Wp="smart_update",$p="sets",zp="update",qp="wp_toolkit",Gp="multiple_sites_management",Kp="vulnerability",Qp="initial",Jp="requested",Xp="submitted",Zp="loading_error",eh="updated",th="wp-toolkit-",nh=`${th}disabled-form-styles`,sh=`${th}drawer-with-progress-states`,ah=`${th}instance-ssl-status-popover`,ih=Lp.CLS_PREFIX,rh=`${th}context`,oh="app/ADD_APP_MESSAGE",lh="app/CLEAR_APP_MESSAGE",ch="app/SET_SEARCH",uh="app/DISABLE_SMART_UPDATE_PROMO_FOR_INSTANCES",dh="app/DISABLE_SMART_UPDATE_PROMO_FOR_UPDATES_SCREEN",ph="app/DISABLE_SMART_UPDATE_PROMO_FOR_MULTIPLE_SITES_UPDATES_SCREEN",hh="app/GET_INITIAL_OPTIONS_FINISHED",mh="app/SET_CHANGELOG",gh="app/CLOSE_FLASH_MESSAGE",fh="app/SET_PREMIUM_USERS",bh="app/CLOSE_GLOBAL_ALERT",vh="app/ADD_UP_VOTED_FEATURE",yh="app/LICENSE_INFO_UPDATED",Sh="mode",wh="domain",xh="wp-toolkit";function Ah(e,t){return function(){return e.apply(t,arguments)}}const{toString:_h}=Object.prototype,{getPrototypeOf:kh}=Object,{iterator:jh,toStringTag:Ch}=Symbol,Ih=(Lh=Object.create(null),e=>{const t=_h.call(e);return Lh[t]||(Lh[t]=t.slice(8,-1).toLowerCase())}),Th=e=>(e=e.toLowerCase(),t=>Ih(t)===e),Dh=e=>t=>typeof t===e,{isArray:Ph}=Array,Oh=Dh("undefined");var Lh;function Mh(e){return null!==e&&!Oh(e)&&null!==e.constructor&&!Oh(e.constructor)&&Uh(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eh=Th("ArrayBuffer"),Rh=Dh("string"),Uh=Dh("function"),Nh=Dh("number"),Fh=e=>null!==e&&"object"==typeof e,Bh=e=>{if("object"!==Ih(e))return!1;const t=kh(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Ch in e||jh in e)},Yh=Th("Date"),Hh=Th("File"),Vh=Th("Blob"),Wh=Th("FileList"),$h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:{},zh=void 0!==$h.FormData?$h.FormData:void 0,qh=Th("URLSearchParams"),[Gh,Kh,Qh,Jh]=["ReadableStream","Request","Response","Headers"].map(Th);function Xh(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let s,a;if("object"!=typeof e&&(e=[e]),Ph(e))for(s=0,a=e.length;s<a;s++)t.call(null,e[s],s,e);else{if(Mh(e))return;const a=n?Object.getOwnPropertyNames(e):Object.keys(e),i=a.length;let r;for(s=0;s<i;s++)r=a[s],t.call(null,e[r],r,e)}}function Zh(e,t){if(Mh(e))return null;t=t.toLowerCase();const n=Object.keys(e);let s,a=n.length;for(;a-- >0;)if(s=n[a],t===s.toLowerCase())return s;return null}const em="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:r.g,tm=e=>!Oh(e)&&e!==em,nm=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&kh(Uint8Array)),sm=Th("HTMLFormElement"),am=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:im}=Object.prototype,rm=Th("RegExp"),om=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Xh(n,((n,a)=>{let i;!1!==(i=t(n,a,e))&&(s[a]=i||n)})),Object.defineProperties(e,s)},lm=Th("AsyncFunction"),cm=(um="function"==typeof setImmediate,dm=Uh(em.postMessage),um?setImmediate:dm?((e,t)=>(em.addEventListener("message",(({source:n,data:s})=>{n===em&&s===e&&t.length&&t.shift()()}),!1),n=>{t.push(n),em.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var um,dm;const pm="undefined"!=typeof queueMicrotask?queueMicrotask.bind(em):"undefined"!=typeof process&&process.nextTick||cm,hm={isArray:Ph,isArrayBuffer:Eh,isBuffer:Mh,isFormData:e=>{if(!e)return!1;if(zh&&e instanceof zh)return!0;const t=kh(e);if(!t||t===Object.prototype)return!1;if(!Uh(e.append))return!1;const n=Ih(e);return"formdata"===n||"object"===n&&Uh(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Eh(e.buffer),t},isString:Rh,isNumber:Nh,isBoolean:e=>!0===e||!1===e,isObject:Fh,isPlainObject:Bh,isEmptyObject:e=>{if(!Fh(e)||Mh(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Gh,isRequest:Kh,isResponse:Qh,isHeaders:Jh,isUndefined:Oh,isDate:Yh,isFile:Hh,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:Vh,isRegExp:rm,isFunction:Uh,isStream:e=>Fh(e)&&Uh(e.pipe),isURLSearchParams:qh,isTypedArray:nm,isFileList:Wh,forEach:Xh,merge:function e(...t){const{caseless:n,skipUndefined:s}=tm(this)&&this||{},a={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const r=n&&"string"==typeof i&&Zh(a,i)||i,o=am(a,r)?a[r]:void 0;Bh(o)&&Bh(t)?a[r]=e(o,t):Bh(t)?a[r]=e({},t):Ph(t)?a[r]=t.slice():s&&Oh(t)||(a[r]=t)};for(let e=0,n=t.length;e<n;e++){const n=t[e];if(!n||Mh(n))continue;if(Xh(n,i),"object"!=typeof n||Ph(n))continue;const s=Object.getOwnPropertySymbols(n);for(let e=0;e<s.length;e++){const t=s[e];im.call(n,t)&&i(n[t],t)}}return a},extend:(e,t,n,{allOwnKeys:s}={})=>(Xh(t,((t,s)=>{n&&Uh(t)?Object.defineProperty(e,s,{__proto__:null,value:Ah(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,s,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})}),{allOwnKeys:s}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,s)=>{let a,i,r;const o={};if(t=t||{},null==e)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)r=a[i],s&&!s(r,e,t)||o[r]||(t[r]=e[r],o[r]=!0);e=!1!==n&&kh(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ih,kindOfTest:Th,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return-1!==s&&s===n},toArray:e=>{if(!e)return null;if(Ph(e))return e;let t=e.length;if(!Nh(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[jh]).call(e);let s;for(;(s=n.next())&&!s.done;){const n=s.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const s=[];for(;null!==(n=e.exec(t));)s.push(n);return s},isHTMLForm:sm,hasOwnProperty:am,hasOwnProp:am,reduceDescriptors:om,freezeMethods:e=>{om(e,((t,n)=>{if(Uh(e)&&["arguments","caller","callee"].includes(n))return!1;const s=e[n];Uh(s)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},s=e=>{e.forEach((e=>{n[e]=!0}))};return Ph(e)?s(e):s(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Zh,global:em,isContextDefined:tm,isSpecCompliantForm:function(e){return!!(e&&Uh(e.append)&&"FormData"===e[Ch]&&e[jh])},toJSONObject:e=>{const t=new WeakSet,n=e=>{if(Fh(e)){if(t.has(e))return;if(Mh(e))return e;if(!("toJSON"in e)){t.add(e);const s=Ph(e)?[]:{};return Xh(e,((e,t)=>{const a=n(e);!Oh(a)&&(s[t]=a)})),t.delete(e),s}}return e};return n(e)},isAsyncFn:lm,isThenable:e=>e&&(Fh(e)||Uh(e))&&Uh(e.then)&&Uh(e.catch),setImmediate:cm,asap:pm,isIterable:e=>null!=e&&Uh(e[jh])},mm=hm.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gm=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),fm=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function bm(e,t){return hm.isArray(e)?e.map((e=>bm(e,t))):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function vm(e){const t=Object.create(null);return hm.forEach(e.toJSON(),((e,n)=>{t[n]=(e=>bm(e,fm))(e)})),t}const ym=Symbol("internals");function Sm(e){return e&&String(e).trim().toLowerCase()}function wm(e){return!1===e||null==e?e:hm.isArray(e)?e.map(wm):(e=>bm(e,gm))(String(e))}function xm(e,t,n,s,a){return hm.isFunction(s)?s.call(this,t,n):(a&&(t=n),hm.isString(t)?hm.isString(s)?-1!==t.indexOf(s):hm.isRegExp(s)?s.test(t):void 0:void 0)}class Am{constructor(e){e&&this.set(e)}set(e,t,n){const s=this;function a(e,t,n){const a=Sm(t);if(!a)return;const i=hm.findKey(s,a);(!i||void 0===s[i]||!0===n||void 0===n&&!1!==s[i])&&(s[i||t]=wm(e))}const i=(e,t)=>hm.forEach(e,((e,n)=>a(e,n,t)));if(hm.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(hm.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,s,a;return e&&e.split("\n").forEach((function(e){a=e.indexOf(":"),n=e.substring(0,a).trim().toLowerCase(),s=e.substring(a+1).trim(),!n||t[n]&&mm[n]||("set-cookie"===n?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)})),t})(e),t);else if(hm.isObject(e)&&hm.isIterable(e)){let n,s,a={};for(const t of e){if(!hm.isArray(t))throw new TypeError("Object iterator must return a key-value pair");a[s=t[0]]=(n=a[s])?hm.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(a,t)}else null!=e&&a(t,e,n);return this}get(e,t){if(e=Sm(e)){const n=hm.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}(e);if(hm.isFunction(t))return t.call(this,e,n);if(hm.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Sm(e)){const n=hm.findKey(this,e);return!(!n||void 0===this[n]||t&&!xm(0,this[n],n,t))}return!1}delete(e,t){const n=this;let s=!1;function a(e){if(e=Sm(e)){const a=hm.findKey(n,e);!a||t&&!xm(0,n[a],a,t)||(delete n[a],s=!0)}}return hm.isArray(e)?e.forEach(a):a(e),s}clear(e){const t=Object.keys(this);let n=t.length,s=!1;for(;n--;){const a=t[n];e&&!xm(0,this[a],a,e,!0)||(delete this[a],s=!0)}return s}normalize(e){const t=this,n={};return hm.forEach(this,((s,a)=>{const i=hm.findKey(n,a);if(i)return t[i]=wm(s),void delete t[a];const r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(a):String(a).trim();r!==a&&delete t[a],t[r]=wm(s),n[r]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return hm.forEach(this,((n,s)=>{null!=n&&!1!==n&&(t[s]=e&&hm.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[ym]=this[ym]={accessors:{}}).accessors,n=this.prototype;function s(e){const s=Sm(e);t[s]||(function(e,t){const n=hm.toCamelCase(" "+t);["get","set","has"].forEach((s=>{Object.defineProperty(e,s+n,{__proto__:null,value:function(e,n,a){return this[s].call(this,t,e,n,a)},configurable:!0})}))}(n,e),t[s]=!0)}return hm.isArray(e)?e.forEach(s):s(e),this}}Am.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),hm.reduceDescriptors(Am.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),hm.freezeMethods(Am);const _m=Am;class km extends Error{static from(e,t,n,s,a,i){const r=new km(e.message,t||e.code,n,s,a);return r.cause=e,r.name=e.name,null!=e.status&&null==r.status&&(r.status=e.status),i&&Object.assign(r,i),r}constructor(e,t,n,s,a){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),a&&(this.response=a,this.status=a.status)}toJSON(){const e=this.config,t=e&&hm.hasOwnProp(e,"redact")?e.redact:void 0,n=hm.isArray(t)&&t.length>0?function(e,t){const n=new Set(t.map((e=>String(e).toLowerCase()))),s=[],a=e=>{if(null===e||"object"!=typeof e)return e;if(hm.isBuffer(e))return e;if(-1!==s.indexOf(e))return;let t;if(e instanceof _m&&(e=e.toJSON()),s.push(e),hm.isArray(e))t=[],e.forEach(((e,n)=>{const s=a(e);hm.isUndefined(s)||(t[n]=s)}));else{if(!hm.isPlainObject(e)&&function(e){if(hm.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(hm.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return s.pop(),e;t=Object.create(null);for(const[s,i]of Object.entries(e)){const e=n.has(s.toLowerCase())?"[REDACTED ****]":a(i);hm.isUndefined(e)||(t[s]=e)}}return s.pop(),t};return a(e)}(e,t):hm.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}km.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",km.ERR_BAD_OPTION="ERR_BAD_OPTION",km.ECONNABORTED="ECONNABORTED",km.ETIMEDOUT="ETIMEDOUT",km.ECONNREFUSED="ECONNREFUSED",km.ERR_NETWORK="ERR_NETWORK",km.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",km.ERR_DEPRECATED="ERR_DEPRECATED",km.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",km.ERR_BAD_REQUEST="ERR_BAD_REQUEST",km.ERR_CANCELED="ERR_CANCELED",km.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",km.ERR_INVALID_URL="ERR_INVALID_URL",km.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const jm=km;function Cm(e){return hm.isPlainObject(e)||hm.isArray(e)}function Im(e){return hm.endsWith(e,"[]")?e.slice(0,-2):e}function Tm(e,t,n){return e?e.concat(t).map((function(e,t){return e=Im(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Dm=hm.toFlatObject(hm,{},null,(function(e){return/^is[A-Z]/.test(e)})),Pm=function(e,t,n){if(!hm.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const s=(n=hm.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!hm.isUndefined(t[e])}))).metaTokens,a=n.visitor||d,i=n.dots,r=n.indexes,o=n.Blob||"undefined"!=typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=o&&hm.isSpecCompliantForm(t);if(!hm.isFunction(a))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(hm.isDate(e))return e.toISOString();if(hm.isBoolean(e))return e.toString();if(!c&&hm.isBlob(e))throw new jm("Blob is not supported. Use a Buffer instead.");return hm.isArrayBuffer(e)||hm.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function d(e,n,a){let o=e;if(hm.isReactNative(t)&&hm.isReactNativeBlob(e))return t.append(Tm(a,n,i),u(e)),!1;if(e&&!a&&"object"==typeof e)if(hm.endsWith(n,"{}"))n=s?n:n.slice(0,-2),e=JSON.stringify(e);else if(hm.isArray(e)&&function(e){return hm.isArray(e)&&!e.some(Cm)}(e)||(hm.isFileList(e)||hm.endsWith(n,"[]"))&&(o=hm.toArray(e)))return n=Im(n),o.forEach((function(e,s){!hm.isUndefined(e)&&null!==e&&t.append(!0===r?Tm([n],s,i):null===r?n:n+"[]",u(e))})),!1;return!!Cm(e)||(t.append(Tm(a,n,i),u(e)),!1)}const p=[],h=Object.assign(Dm,{defaultVisitor:d,convertValue:u,isVisitable:Cm});if(!hm.isObject(e))throw new TypeError("data must be an object");return function e(n,s,i=0){if(!hm.isUndefined(n)){if(i>l)throw new jm("Object is too deeply nested ("+i+" levels). Max depth: "+l,jm.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==p.indexOf(n))throw new Error("Circular reference detected in "+s.join("."));p.push(n),hm.forEach(n,(function(n,r){!0===(!(hm.isUndefined(n)||null===n)&&a.call(t,n,hm.isString(r)?r.trim():r,s,h))&&e(n,s?s.concat(r):[r],i+1)})),p.pop()}}(e),t};function Om(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,(function(e){return t[e]}))}function Lm(e,t){this._pairs=[],e&&Pm(e,this,t)}const Mm=Lm.prototype;Mm.append=function(e,t){this._pairs.push([e,t])},Mm.toString=function(e){const t=e?function(t){return e.call(this,t,Om)}:Om;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Em=Lm;function Rm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Um(e,t,n){if(!t)return e;const s=n&&n.encode||Rm,a=hm.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let r;if(r=i?i(t,a):hm.isURLSearchParams(t)?t.toString():new Em(t,a).toString(s),r){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}const Nm=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){hm.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Fm={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Bm={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Em,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ym="undefined"!=typeof window&&"undefined"!=typeof document,Hm="object"==typeof navigator&&navigator||void 0,Vm=Ym&&(!Hm||["ReactNative","NativeScript","NS"].indexOf(Hm.product)<0),Wm="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,$m=Ym&&window.location.href||"http://localhost",zm={...e,...Bm},qm=function(e){function t(e,n,s,a){let i=e[a++];if("__proto__"===i)return!0;const r=Number.isFinite(+i),o=a>=e.length;return i=!i&&hm.isArray(s)?s.length:i,o?(hm.hasOwnProp(s,i)?s[i]=hm.isArray(s[i])?s[i].concat(n):[s[i],n]:s[i]=n,!r):(hm.hasOwnProp(s,i)&&hm.isObject(s[i])||(s[i]=[]),t(e,n,s[i],a)&&hm.isArray(s[i])&&(s[i]=function(e){const t={},n=Object.keys(e);let s;const a=n.length;let i;for(s=0;s<a;s++)i=n[s],t[i]=e[i];return t}(s[i])),!r)}if(hm.isFormData(e)&&hm.isFunction(e.entries)){const n={};return hm.forEachEntry(e,((e,s)=>{t(function(e){return hm.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),s,n,0)})),n}return null},Gm=(e,t)=>null!=e&&hm.hasOwnProp(e,t)?e[t]:void 0,Km={transitional:Fm,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",s=n.indexOf("application/json")>-1,a=hm.isObject(e);if(a&&hm.isHTMLForm(e)&&(e=new FormData(e)),hm.isFormData(e))return s?JSON.stringify(qm(e)):e;if(hm.isArrayBuffer(e)||hm.isBuffer(e)||hm.isStream(e)||hm.isFile(e)||hm.isBlob(e)||hm.isReadableStream(e))return e;if(hm.isArrayBufferView(e))return e.buffer;if(hm.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(a){const t=Gm(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Pm(e,new zm.classes.URLSearchParams,{visitor:function(e,t,n,s){return zm.isNode&&hm.isBuffer(e)?(this.append(t,e.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...t})}(e,t).toString();if((i=hm.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Gm(this,"env"),s=n&&n.FormData;return Pm(i?{"files[]":e}:e,s&&new s,t)}}return a||s?(t.setContentType("application/json",!1),function(e){if(hm.isString(e))try{return(0,JSON.parse)(e),hm.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Gm(this,"transitional")||Km.transitional,n=t&&t.forcedJSONParsing,s=Gm(this,"responseType"),a="json"===s;if(hm.isResponse(e)||hm.isReadableStream(e))return e;if(e&&hm.isString(e)&&(n&&!s||a)){const n=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e,Gm(this,"parseReviver"))}catch(e){if(n){if("SyntaxError"===e.name)throw jm.from(e,jm.ERR_BAD_RESPONSE,this,null,Gm(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:zm.classes.FormData,Blob:zm.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};hm.forEach(["delete","get","head","post","put","patch","query"],(e=>{Km.headers[e]={}}));const Qm=Km;function Jm(e,t){const n=this||Qm,s=t||n,a=_m.from(s.headers);let i=s.data;return hm.forEach(e,(function(e){i=e.call(n,i,a.normalize(),t?t.status:void 0)})),a.normalize(),i}function Xm(e){return!(!e||!e.__CANCEL__)}const Zm=class extends jm{constructor(e,t,n){super(e??"canceled",jm.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function eg(e,t,n){const s=n.config.validateStatus;n.status&&s&&!s(n.status)?t(new jm("Request failed with status code "+n.status,n.status>=400&&n.status<500?jm.ERR_BAD_REQUEST:jm.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const tg=(e,t,n=3)=>{let s=0;const a=function(e,t){e=e||10;const n=new Array(e),s=new Array(e);let a,i=0,r=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=s[r];a||(a=l),n[i]=o,s[i]=l;let u=r,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),l-a<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,s,a=0,i=1e3/t;const r=(t,i=Date.now())=>{a=i,n=null,s&&(clearTimeout(s),s=null),e(...t)};return[(...e)=>{const t=Date.now(),o=t-a;o>=i?r(e,t):(n=e,s||(s=setTimeout((()=>{s=null,r(n)}),i-o)))},()=>n&&r(n)]}((n=>{if(!n||"number"!=typeof n.loaded)return;const i=n.loaded,r=n.lengthComputable?n.total:void 0,o=null!=r?Math.min(i,r):i,l=Math.max(0,o-s),c=a(l);s=Math.max(s,o),e({loaded:o,total:r,progress:r?o/r:void 0,bytes:l,rate:c||void 0,estimated:c&&r?(r-o)/c:void 0,event:n,lengthComputable:null!=r,[t?"download":"upload"]:!0})}),n)},ng=(e,t)=>{const n=null!=e;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},sg=e=>(...t)=>hm.asap((()=>e(...t))),ag=zm.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,zm.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(zm.origin),zm.navigator&&/(msie|trident)/i.test(zm.navigator.userAgent)):()=>!0,ig=zm.hasStandardBrowserEnv?{write(e,t,n,s,a,i,r){if("undefined"==typeof document)return;const o=[`${e}=${encodeURIComponent(t)}`];hm.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),hm.isString(s)&&o.push(`path=${s}`),hm.isString(a)&&o.push(`domain=${a}`),!0===i&&o.push("secure"),hm.isString(r)&&o.push(`SameSite=${r}`),document.cookie=o.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const s=t[n].replace(/^\s+/,""),a=s.indexOf("=");if(-1!==a&&s.slice(0,a)===e)return decodeURIComponent(s.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function rg(e,t,n){let s=!("string"==typeof(a=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(a));var a;return e&&(s||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const og=e=>e instanceof _m?{...e}:e;function lg(e,t){t=t||{};const n=Object.create(null);function s(e,t,n,s){return hm.isPlainObject(e)&&hm.isPlainObject(t)?hm.merge.call({caseless:s},e,t):hm.isPlainObject(t)?hm.merge({},t):hm.isArray(t)?t.slice():t}function a(e,t,n,a){return hm.isUndefined(t)?hm.isUndefined(e)?void 0:s(void 0,e,0,a):s(e,t,0,a)}function i(e,t){if(!hm.isUndefined(t))return s(void 0,t)}function r(e,t){return hm.isUndefined(t)?hm.isUndefined(e)?void 0:s(void 0,e):s(void 0,t)}function o(n,a,i){return hm.hasOwnProp(t,i)?s(n,a):hm.hasOwnProp(e,i)?s(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,allowedSocketPaths:r,responseEncoding:r,validateStatus:o,headers:(e,t,n)=>a(og(e),og(t),0,!0)};return hm.forEach(Object.keys({...e,...t}),(function(s){if("__proto__"===s||"constructor"===s||"prototype"===s)return;const i=hm.hasOwnProp(l,s)?l[s]:a,r=i(hm.hasOwnProp(e,s)?e[s]:void 0,hm.hasOwnProp(t,s)?t[s]:void 0,s);hm.isUndefined(r)&&i!==o||(n[s]=r)})),n}const cg=["content-type","content-length"],ug=function(e){const t=lg({},e),n=e=>hm.hasOwnProp(t,e)?t[e]:void 0,s=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),r=n("xsrfCookieName");let o=n("headers");const l=n("auth"),c=n("baseURL"),u=n("allowAbsoluteUrls"),d=n("url");var p;if(t.headers=o=_m.from(o),t.url=Um(rg(c,d,u),n("params"),n("paramsSerializer")),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(p=l.password,encodeURIComponent(p).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16))))):""))),hm.isFormData(s)&&(zm.hasStandardBrowserEnv||zm.hasStandardBrowserWebWorkerEnv||hm.isReactNative(s)?o.setContentType(void 0):hm.isFunction(s.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach((([t,n])=>{cg.includes(t.toLowerCase())&&e.set(t,n)})):e.set(t)}(o,s.getHeaders(),n("formDataHeaderPolicy"))),zm.hasStandardBrowserEnv&&(hm.isFunction(a)&&(a=a(t)),!0===a||null==a&&ag(t.url))){const e=i&&r&&ig.read(r);e&&o.set(i,e)}return t},dg="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const s=ug(e);let a=s.data;const i=_m.from(s.headers).normalize();let r,o,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:h}=s;function m(){c&&c(),u&&u(),s.cancelToken&&s.cancelToken.unsubscribe(r),s.signal&&s.signal.removeEventListener("abort",r)}let g=new XMLHttpRequest;function f(){if(!g)return;const s=_m.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());eg((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:s,config:e,request:g}),g=null}g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout,"onloadend"in g?g.onloadend=f:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(f)},g.onabort=function(){g&&(n(new jm("Request aborted",jm.ECONNABORTED,e,g)),m(),g=null)},g.onerror=function(t){const s=t&&t.message?t.message:"Network Error",a=new jm(s,jm.ERR_NETWORK,e,g);a.event=t||null,n(a),m(),g=null},g.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const a=s.transitional||Fm;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new jm(t,a.clarifyTimeoutError?jm.ETIMEDOUT:jm.ECONNABORTED,e,g)),m(),g=null},void 0===a&&i.setContentType(null),"setRequestHeader"in g&&hm.forEach(vm(i),(function(e,t){g.setRequestHeader(t,e)})),hm.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),d&&"json"!==d&&(g.responseType=s.responseType),h&&([l,u]=tg(h,!0),g.addEventListener("progress",l)),p&&g.upload&&([o,c]=tg(p),g.upload.addEventListener("progress",o),g.upload.addEventListener("loadend",c)),(s.cancelToken||s.signal)&&(r=t=>{g&&(n(!t||t.type?new Zm(null,e,g):t),g.abort(),m(),g=null)},s.cancelToken&&s.cancelToken.subscribe(r),s.signal&&(s.signal.aborted?r():s.signal.addEventListener("abort",r)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(s.url);!b||zm.protocols.includes(b)?g.send(a||null):n(new jm("Unsupported protocol "+b+":",jm.ERR_BAD_REQUEST,e))}))},pg=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let s=!1;const a=function(e){if(!s){s=!0,r();const t=e instanceof Error?e:this.reason;n.abort(t instanceof jm?t:new Zm(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,a(new jm(`timeout of ${t}ms exceeded`,jm.ETIMEDOUT))}),t);const r=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(a):e.removeEventListener("abort",a)})),e=null)};e.forEach((e=>e.addEventListener("abort",a)));const{signal:o}=n;return o.unsubscribe=()=>hm.asap(r),o},hg=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let s,a=0;for(;a<n;)s=a+t,yield e.slice(a,s),a=s},mg=(e,t,n,s)=>{const a=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*hg(n,t)}(e,t);let i,r=0,o=e=>{i||(i=!0,s&&s(e))};return new ReadableStream({async pull(e){try{const{done:t,value:s}=await a.next();if(t)return o(),void e.close();let i=s.byteLength;if(n){let e=r+=i;n(e)}e.enqueue(new Uint8Array(s))}catch(e){throw o(e),e}},cancel:e=>(o(e),a.return())},{highWaterMark:2})},gg="1.17.0",{isFunction:fg}=hm,bg=e=>{if(!hm.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},vg=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},yg=e=>{const t=void 0!==hm.global&&null!==hm.global?hm.global:globalThis,{ReadableStream:n,TextEncoder:s}=t;e=hm.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:r}=e,o=a?fg(a):"function"==typeof fetch,l=fg(i),c=fg(r);if(!o)return!1;const u=o&&fg(n),d=o&&("function"==typeof s?(p=new s,e=>p.encode(e)):async e=>new Uint8Array(await new i(e).arrayBuffer()));var p;const h=l&&u&&vg((()=>{let e=!1;const t=new i(zm.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),s=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!s})),m=c&&u&&vg((()=>hm.isReadableStream(new r("").body))),g={stream:m&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!g[e]&&(g[e]=(t,n)=>{let s=t&&t[e];if(s)return s.call(t);throw new jm(`Response type '${e}' is not supported`,jm.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>hm.toFiniteNumber(e.getContentLength())??(async e=>{if(null==e)return 0;if(hm.isBlob(e))return e.size;if(hm.isSpecCompliantForm(e)){const t=new i(zm.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return hm.isArrayBufferView(e)||hm.isArrayBuffer(e)?e.byteLength:(hm.isURLSearchParams(e)&&(e+=""),hm.isString(e)?(await d(e)).byteLength:void 0)})(t);return async e=>{let{url:t,method:n,data:o,signal:c,cancelToken:u,timeout:d,onDownloadProgress:p,onUploadProgress:b,responseType:v,headers:y,withCredentials:S="same-origin",fetchOptions:w,maxContentLength:x,maxBodyLength:A}=ug(e);const _=hm.isNumber(x)&&x>-1,k=hm.isNumber(A)&&A>-1;let j=a||fetch;v=v?(v+"").toLowerCase():"text";let C=pg([c,u&&u.toAbortSignal()],d),I=null;const T=C&&C.unsubscribe&&(()=>{C.unsubscribe()});let D;try{let a;const c=(P="auth",hm.hasOwnProp(e,P)?e[P]:void 0);if(c){a={username:c.username||"",password:c.password||""}}if((e=>{const t=e.indexOf("://");let n=e;return-1!==t&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")})(t)){const e=new URL(t,zm.origin);if(!a&&(e.username||e.password)){a={username:bg(e.username),password:bg(e.password)}}(e.username||e.password)&&(e.username="",e.password="",t=e.href)}if(a&&(y.delete("authorization"),y.set("Authorization","Basic "+btoa((O=(a.username||"")+":"+(a.password||""),encodeURIComponent(O).replace(/%([0-9A-F]{2})/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))),_&&"string"==typeof t&&t.startsWith("data:")){const n=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),s=e.slice(t+1);if(/;base64/i.test(n)){let e=s.length;const t=s.length;for(let n=0;n<t;n++)if(37===s.charCodeAt(n)&&n+2<t){const t=s.charCodeAt(n+1),a=s.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(e-=2,n+=2)}let n=0,a=t-1;const i=e=>e>=2&&37===s.charCodeAt(e-2)&&51===s.charCodeAt(e-1)&&(68===s.charCodeAt(e)||100===s.charCodeAt(e));a>=0&&(61===s.charCodeAt(a)?(n++,a--):i(a)&&(n++,a-=3)),1===n&&a>=0&&(61===s.charCodeAt(a)||i(a))&&n++;const r=3*Math.floor(e/4)-(n||0);return r>0?r:0}if("undefined"!=typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(s,"utf8");let a=0;for(let e=0,t=s.length;e<t;e++){const n=s.charCodeAt(e);if(n<128)a+=1;else if(n<2048)a+=2;else if(n>=55296&&n<=56319&&e+1<t){const t=s.charCodeAt(e+1);t>=56320&&t<=57343?(a+=4,e++):a+=3}else a+=3}return a}(t);if(n>x)throw new jm("maxContentLength size of "+x+" exceeded",jm.ERR_BAD_RESPONSE,e,I)}if(k&&"get"!==n&&"head"!==n){const t=await f(y,o);if("number"==typeof t&&isFinite(t)&&t>A)throw new jm("Request body larger than maxBodyLength limit",jm.ERR_BAD_REQUEST,e,I)}if(b&&h&&"get"!==n&&"head"!==n&&0!==(D=await f(y,o))){let e,n=new i(t,{method:"POST",body:o,duplex:"half"});if(hm.isFormData(o)&&(e=n.headers.get("content-type"))&&y.setContentType(e),n.body){const[e,t]=ng(D,tg(sg(b)));o=mg(n.body,65536,e,t)}}hm.isString(S)||(S=S?"include":"omit");const u=l&&"credentials"in i.prototype;if(hm.isFormData(o)){const e=y.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&y.delete("content-type")}y.set("User-Agent","axios/"+gg,!1);const d={...w,signal:C,method:n.toUpperCase(),headers:vm(y.normalize()),body:o,duplex:"half",credentials:u?S:void 0};I=l&&new i(t,d);let L=await(l?j(I,w):j(t,d));if(_){const t=hm.toFiniteNumber(L.headers.get("content-length"));if(null!=t&&t>x)throw new jm("maxContentLength size of "+x+" exceeded",jm.ERR_BAD_RESPONSE,e,I)}const M=m&&("stream"===v||"response"===v);if(m&&L.body&&(p||_||M&&T)){const t={};["status","statusText","headers"].forEach((e=>{t[e]=L[e]}));const n=hm.toFiniteNumber(L.headers.get("content-length")),[s,a]=p&&ng(n,tg(sg(p),!0))||[];let i=0;const o=t=>{if(_&&(i=t,i>x))throw new jm("maxContentLength size of "+x+" exceeded",jm.ERR_BAD_RESPONSE,e,I);s&&s(t)};L=new r(mg(L.body,65536,o,(()=>{a&&a(),T&&T()})),t)}v=v||"text";let E=await g[hm.findKey(g,v)||"text"](L,e);if(_&&!m&&!M){let t;if(null!=E&&("number"==typeof E.byteLength?t=E.byteLength:"number"==typeof E.size?t=E.size:"string"==typeof E&&(t="function"==typeof s?(new s).encode(E).byteLength:E.length)),"number"==typeof t&&t>x)throw new jm("maxContentLength size of "+x+" exceeded",jm.ERR_BAD_RESPONSE,e,I)}return!M&&T&&T(),await new Promise(((t,n)=>{eg(t,n,{data:E,headers:_m.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:I})}))}catch(t){if(T&&T(),C&&C.aborted&&C.reason instanceof jm){const n=C.reason;throw n.config=e,I&&(n.request=I),t!==n&&(n.cause=t),n}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new jm("Network Error",jm.ERR_NETWORK,e,I,t&&t.response),{cause:t.cause||t});throw jm.from(t,t&&t.code,e,I,t&&t.response)}var P,O}},Sg=new Map,wg=e=>{let t=e&&e.env||{};const{fetch:n,Request:s,Response:a}=t,i=[s,a,n];let r,o,l=i.length,c=Sg;for(;l--;)r=i[l],o=c.get(r),void 0===o&&c.set(r,o=l?new Map:yg(t)),c=o;return o},xg=(wg(),{http:null,xhr:dg,fetch:{get:wg}});hm.forEach(xg,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}}));const Ag=e=>`- ${e}`,_g=e=>hm.isFunction(e)||null===e||!1===e,kg=function(e,t){e=hm.isArray(e)?e:[e];const{length:n}=e;let s,a;const i={};for(let r=0;r<n;r++){let n;if(s=e[r],a=s,!_g(s)&&(a=xg[(n=String(s)).toLowerCase()],void 0===a))throw new jm(`Unknown adapter '${n}'`);if(a&&(hm.isFunction(a)||(a=a.get(t))))break;i[n||"#"+r]=a}if(!a){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(Ag).join("\n"):" "+Ag(e[0]):"as no adapter specified";throw new jm("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return a};function jg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zm(null,e)}function Cg(e){return jg(e),e.headers=_m.from(e.headers),e.data=Jm.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kg(e.adapter||Qm.adapter,e)(e).then((function(t){jg(e),e.response=t;try{t.data=Jm.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=_m.from(t.headers),t}),(function(t){if(!Xm(t)&&(jg(e),t&&t.response)){e.response=t.response;try{t.response.data=Jm.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=_m.from(t.response.headers)}return Promise.reject(t)}))}const Ig={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ig[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Tg={};Ig.transitional=function(e,t,n){function s(e,t){return"[Axios v"+gg+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,a,i)=>{if(!1===e)throw new jm(s(a," has been removed"+(t?" in "+t:"")),jm.ERR_DEPRECATED);return t&&!Tg[a]&&(Tg[a]=!0,console.warn(s(a," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,a,i)}},Ig.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Dg={assertOptions:function(e,t,n){if("object"!=typeof e)throw new jm("options must be an object",jm.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let a=s.length;for(;a-- >0;){const i=s[a],r=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(r){const t=e[i],n=void 0===t||r(t,i,e);if(!0!==n)throw new jm("option "+i+" must be "+n,jm.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new jm("Unknown option "+i,jm.ERR_BAD_OPTION)}},validators:Ig},Pg=Dg.validators;class Og{constructor(e){this.defaults=e||{},this.interceptors={request:new Nm,response:new Nm}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),s=-1===t?-1:n.indexOf("\n",t+1),a=-1===s?"":n.slice(s+1);String(e.stack).endsWith(a)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=lg(this.defaults,t);const{transitional:n,paramsSerializer:s,headers:a}=t;void 0!==n&&Dg.assertOptions(n,{silentJSONParsing:Pg.transitional(Pg.boolean),forcedJSONParsing:Pg.transitional(Pg.boolean),clarifyTimeoutError:Pg.transitional(Pg.boolean),legacyInterceptorReqResOrdering:Pg.transitional(Pg.boolean),advertiseZstdAcceptEncoding:Pg.transitional(Pg.boolean)},!1),null!=s&&(hm.isFunction(s)?t.paramsSerializer={serialize:s}:Dg.assertOptions(s,{encode:Pg.function,serialize:Pg.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Dg.assertOptions(t,{baseUrl:Pg.spelling("baseURL"),withXsrfToken:Pg.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=a&&hm.merge(a.common,a[t.method]);a&&hm.forEach(["delete","get","head","post","put","patch","query","common"],(e=>{delete a[e]})),t.headers=_m.concat(i,a);const r=[];let o=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;o=o&&e.synchronous;const n=t.transitional||Fm;n&&n.legacyInterceptorReqResOrdering?r.unshift(e.fulfilled,e.rejected):r.push(e.fulfilled,e.rejected)}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!o){const e=[Cg.bind(this),void 0];for(e.unshift(...r),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=r.length;let p=t;for(;d<u;){const e=r[d++],t=r[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Cg.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Um(rg((e=lg(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}hm.forEach(["delete","get","head","options"],(function(e){Og.prototype[e]=function(t,n){return this.request(lg(n||{},{method:e,url:t,data:(n||{}).data}))}})),hm.forEach(["post","put","patch","query"],(function(e){function t(t){return function(n,s,a){return this.request(lg(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:s}))}}Og.prototype[e]=t(),"query"!==e&&(Og.prototype[e+"Form"]=t(!0))}));const Lg=Og;class Mg{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const s=new Promise((e=>{n.subscribe(e),t=e})).then(e);return s.cancel=function(){n.unsubscribe(t)},s},e((function(e,s,a){n.reason||(n.reason=new Zm(e,s,a),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Mg((function(t){e=t})),cancel:e}}}const Eg=Mg,Rg={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rg).forEach((([e,t])=>{Rg[t]=e}));const Ug=Rg,Ng=function e(t){const n=new Lg(t),s=Ah(Lg.prototype.request,n);return hm.extend(s,Lg.prototype,n,{allOwnKeys:!0}),hm.extend(s,n,null,{allOwnKeys:!0}),s.create=function(n){return e(lg(t,n))},s}(Qm);Ng.Axios=Lg,Ng.CanceledError=Zm,Ng.CancelToken=Eg,Ng.isCancel=Xm,Ng.VERSION=gg,Ng.toFormData=Pm,Ng.AxiosError=jm,Ng.Cancel=Ng.CanceledError,Ng.all=function(e){return Promise.all(e)},Ng.spread=function(e){return function(t){return e.apply(null,t)}},Ng.isAxiosError=function(e){return hm.isObject(e)&&!0===e.isAxiosError},Ng.mergeConfig=lg,Ng.AxiosHeaders=_m,Ng.formToJSON=e=>qm(hm.isHTMLForm(e)?new FormData(e):e),Ng.getAdapter=kg,Ng.HttpStatusCode=Ug,Ng.default=Ng;const Fg=Ng,Bg=e=>{const t=new Date;return e.performanceTesting={startTime:t.getTime()/1e3},e.headers=Object.assign(Object.assign({},e.headers),{"X-Performance-Testing-Start-Time":e.performanceTesting.startTime}),e},Yg={Accept:"application/json","Cache-Control":"no-cache",Credentials:"same-origin"},Hg=e=>(!1===e.includes("http")&&(e=`${window.location.protocol}//${window.location.host}${e}`),e),Vg=(e={})=>Object.assign(Object.assign(Object.assign({},e),Yg),{"X-Wpt-Ui":"true"}),Wg=e=>!!(e&&e.data&&e.data.formErrors),$g=e=>!!(e&&e.data&&e.data.meta),zg=(e,t)=>`${e}/v1/installations/${t}/features/updates/smart/result`,qg=(e,t)=>`${e}/v1/installations/${t}/features/updates/php/result`,{Cancel:Gg}=Fg,Kg=(e,t)=>{if($g(t.response))return Promise.reject(t);const n=t&&t.message?t.message:"unknown";return t&&t instanceof Gg||e((0,L.jsx)(pp,{content:"api.service.internalServerError",params:{errorMessage:n}})),Promise.reject(t)};let Qg=null,Jg="/",Xg=()=>{};const Zg=e=>{Jg=Hg(e)},ef=e=>{Xg=e},tf=e=>{const t=Fg.create({baseURL:Jg,headers:Vg()});if(t.interceptors.response.use((e=>e),(e=>Kg(Xg,e))),null!==e&&e.endpoint&&e.key&&e.type&&e.hasOwnProperty("initialInstancesCount")){const n=Fg.create({baseURL:e.endpoint,headers:Object.assign(Object.assign({},Yg),{"X-Api-Key":e.key,"Content-type":"application/json"})});t.interceptors.request.use(Bg,(e=>e)),t.interceptors.response.use((t=>((e,t,n)=>{const s=new Date;return e.config.performanceTesting=Object.assign(Object.assign({},e.config.performanceTesting),{endTime:s.getTime()/1e3,action:e.config.url.replace(e.config.baseURL,"")}),t.post("/put-metrics",JSON.stringify([{MetricName:"actionTime",Timestamp:e.config.performanceTesting.startTime,Value:e.config.performanceTesting.endTime-e.config.performanceTesting.startTime,Unit:"Seconds",StorageResolution:1,Dimensions:[{Name:"backendAction",Value:`/${e.config.performanceTesting.action.split("/")[1]}`},{Name:"type",Value:n.type},{Name:"initialInstancesCount",Value:n.hasOwnProperty("initialInstancesCount")?n.initialInstancesCount:0}]}]),{crossdomain:!0}).then((()=>e))})(t,n,e)),(e=>e))}Qg=t},nf={disableSmartUpdatePromoForInstances:()=>Qg.post("/disable-smart-update-promo-for-instances-screen",{disable:!0}),disableSmartUpdatePromoForUpdatesScreen:e=>Qg.post("/disable-smart-update-promo-for-updates-screen",e),disableSmartUpdatePromoForMultipleSitesUpdatesScreen:e=>Qg.post("/disable-smart-update-promo-for-multiple-sites-updates-screen",e),getInitialData:()=>Qg.get("/get-initial-data"),getPremiumUsers:()=>Qg.get("/get-premium-users"),sendMainPagePerfStat:(e,t)=>{const n=new FormData;return n.append("pageLoadTime",`${e}`),n.append("pageAccessTime",`${t}`),Qg.post("/set-main-page-perf-stat",n)},getWhmcsUpsellLink:e=>{let t="/get-whmcs-upsell-link";return e&&(t=`${t}/instanceId/${e}`),Qg.get(t)}},sf={refresh:e=>Qg.get(`/clear-cache/id/${e}`),switchPhpHandler:(e,t)=>Qg.post(`/switch-php-handler/id/${e}/php-handler-id/${t}`),refreshScreenshot:e=>Qg.get(`/refresh-screenshot/id/${e}`),remove:e=>Qg.post("/remove",e),detach:e=>Qg.post("/detach",e),getDbSettings:e=>Qg.get(`/get-db-settings/id/${e}`),setDbSettings:(e,t)=>{const n=new FormData;return n.append("dbUserName",t.dbUserName),n.append("dbUserPassword",t.dbUserPassword),Qg.post(`/set-db-settings/id/${e}`,n)},customizeMaintenanceTemplate:e=>Qg.get(`/maintenance-customize/id/${e}`),restoreSnapshot:e=>Qg.post(`/restore-snapshot/id/${e}`),deleteSnapshot:e=>Qg.post(`/delete-snapshot/id/${e}`),getAdminSettings:e=>Qg.get(`/account/id/${e}`),setInstanceName:(e,t)=>Qg.post(`/name/id/${e}`,t),updateRemoteInstanceProperties:(e,t)=>Qg.post(`/update-remote-instance-properties/id/${e}`,t),updateRemoteAgentInstanceProperties:(e,t)=>Qg.post(`/update-remote-agent-instance-properties/id/${e}`,t),redetectRemoteInstanceProperties:(e,t)=>Qg.post(`/redetect-remote-instance-properties/id/${e}`,t),connectRemoteAgentInstance:e=>Qg.post("/connect-remote-agent-instance",e),synchronizeSiteUrl:e=>Qg.post(`/synchronize-site-url/id/${e}`),synchronizeSiteUrlSync:e=>Qg.post(`/synchronize-site-url-sync/id/${e}`),getSynchronizeSiteUrlParams:e=>Qg.get(`/get-synchronize-site-url-params/id/${e}`)},af=(e,t)=>{e.forEach(((e,n)=>t.append(`instances[${n}]`,`${e}`)))},rf=(e,t,n)=>{t.forEach(((t,s)=>{n.append(`${e}[${s}][name]`,t.name),void 0!==t.version&&null!==t.version&&n.append(`${e}[${s}][version]`,t.version),void 0!==t.isUploaded&&n.append(`${e}[${s}][isUploaded]`,`${t.isUploaded}`),void 0!==t.ownerGuid&&null!==t.ownerGuid&&n.append(`${e}[${s}][ownerGuid]`,t.ownerGuid)}))},of=(e,t)=>{void 0!==e&&t.append("activateAfterInstallation",`${e}`)},lf=(e,t)=>{rf("plugins",e,t)},cf=e=>{const t=new FormData;return lf(e,t),t},uf={getPluginsList:()=>Qg.get("/list-plugins"),remove:e=>Qg.post("/uninstall-plugins",e),searchPlugins:e=>{const t=new FormData;return t.append("term",e),Qg.post("/search-plugins",t)},installPlugins:(e,t,n)=>Qg.post("/install-plugins",((e,t,n)=>{const s=((e,t)=>{const n=new FormData;return lf(e,n),af(t,n),n})(e,t);return of(n,s),s})(e,t,n)),activatePlugins:e=>Qg.post("/activate-plugins-on-all-instances",cf(e)),deactivatePlugins:e=>Qg.post("/deactivate-plugins-on-all-instances",cf(e)),uninstallPlugins:e=>Qg.post("/uninstall-plugins-on-all-instances",cf(e)),removePlugins:e=>Qg.post("/remove-plugins-on-all-instances",cf(e)),updatePlugins:e=>Qg.post("/update-plugins-on-all-instances",cf(e)),uploadPluginToStorage:(e,t)=>{const n=new FormData;return n.append("fileUpload",e),null!==t&&n.append("setId",`${t}`),Qg.post("/upload-plugin-to-storage",n)},uploadAndInstallPlugin:(e,t,n)=>{const s=new FormData;return s.append("fileUpload",e),af(t,s),of(n,s),Qg.post("/upload-and-install-plugin",s)},loadPluginsData:e=>Qg.post("/load-plugins-data",cf(e))},df=(e,t)=>{rf("themes",e,t)},pf=e=>{const t=new FormData;return df(e,t),t},hf={getThemesList:()=>Qg.get("/list-themes"),remove:e=>Qg.post("/uninstall-themes",e),loadThemesData:e=>Qg.post("/load-themes-data",pf(e)),searchThemes:e=>{const t=new FormData;return t.append("term",e),Qg.post("/search-themes",t)},installThemes:(e,t,n)=>Qg.post("/install-themes",((e,t,n)=>{const s=((e,t)=>{const n=new FormData;return df(e,n),af(t,n),n})(e,t);return of(n,s),s})(e,t,n)),uninstallThemes:e=>Qg.post("/uninstall-themes-on-all-instances",pf(e)),removeThemes:e=>Qg.post("/remove-themes-on-all-instances",pf(e)),updateThemes:e=>Qg.post("/update-themes-on-all-instances",pf(e)),uploadThemeToStorage:(e,t)=>{const n=new FormData;return n.append("fileUpload",e),null!==t&&n.append("setId",`${t}`),Qg.post("/upload-theme-to-storage",n)},uploadAndInstallTheme:(e,t,n)=>{const s=new FormData;return s.append("fileUpload",e),af(t,s),of(n,s),Qg.post("/upload-and-install-theme",s)},activateThemeOnAllInstances:e=>Qg.post("/activate-theme-on-all-instances",(e=>{const t=new FormData;return((e,t)=>{((e,t,n)=>{n.append(`${e}[name]`,t.name),void 0!==t.version&&null!==t.version&&n.append(`${e}[version]`,t.version),void 0!==t.isUploaded&&n.append(`${e}[isUploaded]`,t.isUploaded),void 0!==t.ownerGuid&&null!==t.ownerGuid&&n.append(`${e}[ownerGuid]`,t.ownerGuid)})("theme",e,t)})(e,t),t})(e))},mf={getSetsList:()=>Qg.get("/list-sets"),addSet:e=>{const t=new FormData;return t.append("name",e),Qg.post("/add-set",t)},removeSets:e=>{const t=new FormData;return e.forEach((e=>t.append("setIds[]",`${e}`))),Qg.post("/remove-sets",t)},renameSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("newName",t),Qg.post("/rename-set",n)},setPluginActivationState:(e,t,n)=>{const s=new FormData;return s.append("setId",`${e}`),s.append("assetId",`${t}`),s.append("active",n?"1":"0"),s.append("assetType","plugin"),Qg.post("set-asset-activation-state",s)},setThemeActivationState:(e,t,n)=>{const s=new FormData;return s.append("setId",`${e}`),s.append("assetId",`${t}`),s.append("active",n?"1":"0"),s.append("assetType","theme"),Qg.post("set-asset-activation-state",s)},addPluginsToSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{e.id&&n.append(`plugins[${t}][id]`,`${e.id}`),e.name&&n.append(`plugins[${t}][name]`,e.name),e.title&&n.append(`plugins[${t}][title]`,e.title),n.append(`plugins[${t}][isUploaded]`,`${e.isUploaded}`)})),Qg.post("add-plugins-to-set",n)},addThemesToSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{e.id&&n.append(`themes[${t}][id]`,`${e.id}`),e.name&&n.append(`themes[${t}][name]`,e.name),e.title&&n.append(`themes[${t}][title]`,e.title),n.append(`themes[${t}][isUploaded]`,`${e.isUploaded}`)})),Qg.post("add-themes-to-set",n)},removeSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Qg.post("/remove-set",t)},removePluginFromSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("pluginId",`${t}`),Qg.post("remove-plugin-from-set",n)},removeThemeFromSet:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),n.append("themeId",`${t}`),Qg.post("remove-theme-from-set",n)},removeAllPluginsFromSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Qg.post("/remove-all-plugins-from-set",t)},removeAllThemesFromSet:e=>{const t=new FormData;return t.append("setId",`${e}`),Qg.post("/remove-all-themes-from-set",t)},installInto:(e,t)=>{const n=new FormData;return n.append("setId",`${e}`),t.forEach(((e,t)=>{n.append(`instanceIds[${t}]`,`${e}`)})),Qg.post("/install-set-into-instances",n)},searchPlugins:e=>{const t=new FormData;return t.append("term",e),Qg.post("/search-plugins-for-set",t)},searchThemes:e=>{const t=new FormData;return t.append("term",e),Qg.post("/search-themes-for-set",t)},getPluginDescription:e=>{const t=new FormData;return t.append("pluginId",`${e}`),Qg.post("/get-plugin-description",t)},getThemeDescription:e=>{const t=new FormData;return t.append("themeId",`${e}`),Qg.post("/get-theme-description",t)}},gf={getInstanceActionLogRecords:(e,t)=>{let n=`/get-instance-action-log-records/id/${e}/`;return null!==t&&(n=`${n}lastRecordHashSum/${t}/`),Qg.get(n)},onOpenActionLogBrowser:e=>Qg.post(`/on-open-action-log-browser/id/${e}`,{opened:!0}),onEnableRealTimeUpdates:e=>Qg.post(`/on-enable-real-time-updates/id/${e}`,{enabled:!0}),getInstanceActionLogRotationSettings:e=>Qg.get(`/get-instance-action-log-rotation-settings/id/${e}`),saveInstanceActionLogRotationSettings:(e,t)=>{const n=new FormData;return n.append("instanceId",`${e}`),n.append("enabled",`${t.enabled}`),n.append("rotateCount",`${t.rotateCount}`),n.append("size",`${t.size}`),n.append("timePeriod",`${t.timePeriod}`),n.append("type",`${t.type}`),n.append("compress",`${t.compress}`),Qg.post("/save-instance-action-log-rotation-settings",n)}},ff={verifyChecksums:e=>Qg.post(`/verify-checksums/id/${e}`,{verify:!0}),reinstallCore:e=>Qg.post(`/reinstall-core/id/${e}`,{reinstall:!0})},bf={app:nf,instances:{scan:()=>Qg.post("/scan",[])},instance:sf,plugins:uf,themes:hf,sets:mf,servers:{addServer:e=>Qg.post("/add-server",e),scanServers:e=>Qg.post("/scan-servers",e),detachServers:e=>Qg.post("/detach-servers",e),getServersList:()=>Qg.get("/get-servers-list"),getServer:e=>Qg.get(`/get-server/id/${e}`),acceptFingerprint:e=>Qg.get(`/accept-fingerprint/id/${e}`),disableBetaDialog:()=>Qg.get("/disable-remote-wpt-beta-dialog"),getInstancesLog:e=>Qg.get(`/get-instances-log/id/${e}`)},task:{getTaskData:e=>Qg.post("/get-task-data",e)},session:{check:()=>Qg.get("/check-session")},settings:{load:()=>Qg.get("/get-global-settings"),update:e=>Qg.post("/update-global-settings",e)},sync:{getSyncSettings:e=>Qg.get(`/get-sync-settings/id/${e}`),syncInstance:e=>Qg.post("/sync",e)},backgroundTask:{getTaskData:e=>{const t=new FormData;return t.append("id",`${e.id}`),t.append("code",e.code),Qg.post("/get-background-task-data",t)},getTasksData:e=>{const t=new FormData;return e.forEach(((e,n)=>{t.append(`tasks[${n}][id]`,`${e.id}`),t.append(`tasks[${n}][code]`,e.code)})),Qg.post("/get-background-tasks-data",t)},removeTask:e=>{const t=new FormData;return t.append("id",`${e.id}`),t.append("code",e.code),Qg.post("/remove-background-task",t)},removeTasks:e=>{const t=new FormData;return e.forEach(((e,n)=>{t.append(`tasks[${n}][id]`,`${e.id}`),t.append(`tasks[${n}][code]`,e.code)})),Qg.post("/remove-background-tasks",t)}},actionLog:gf,checkWordPressIntegrity:ff},vf="https://example.com/api/modules/wp-toolkit".replace(/\/+$/,"");class yf{constructor(e,t=vf,n=Fg){this.basePath=t,this.axios=n,e&&(this.configuration=e,this.basePath=e.basePath||this.basePath)}}class Sf extends Error{constructor(e,t){super(t),this.field=e,this.name="RequiredError"}}const wf="https://example.com",xf=function(e,t,n){if(null==n)throw new Sf(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Af=function(e,t,n){return s=this,a=void 0,r=function*(){if(n&&n.apiKey){const s="function"==typeof n.apiKey?yield n.apiKey(t):yield n.apiKey;e[t]=s}},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{l(r.next(e))}catch(e){t(e)}}function o(e){try{l(r.throw(e))}catch(e){t(e)}}function l(t){var s;t.done?e(t.value):(s=t.value,s instanceof i?s:new i((function(e){e(s)}))).then(n,o)}l((r=r.apply(s,a||[])).next())}));var s,a,i,r},_f=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},kf=function(e,...t){const n=new URLSearchParams(e.search);for(const e of t)for(const t in e)if(Array.isArray(e[t])){n.delete(t);for(const s of e[t])n.append(t,s)}else n.set(t,e[t]);e.search=n.toString()},jf=function(e,t,n){const s="string"!=typeof e;return(s&&n&&n.isJsonMime?n.isJsonMime(t.headers["Content-Type"]):s)?JSON.stringify(void 0!==e?e:{}):e||""},Cf=function(e){return e.pathname+e.search+e.hash},If=function(e,t,n,s){return(a=t,i=n)=>{const r=Object.assign(Object.assign({},e.options),{url:((null==s?void 0:s.basePath)||i)+e.url});return a.request(r)}};var Tf=function(e,t,n,s){return new(n||(n=Promise))((function(a,i){function r(e){try{l(s.next(e))}catch(e){i(e)}}function o(e){try{l(s.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(r,o)}l((s=s.apply(e,t||[])).next())}))};const Df="private",Pf="notExist",Of="disabledForDomain",Lf="wpToolkitDeluxeDisabled",Mf={Active:"active",Expired:"expired",Suspended:"suspended",Terminated:"terminated"},Ef="securityMeasure",Rf="virtualPatch",Uf="update",Nf="deactivateAsset",Ff="wordfence",Bf="low",Yf="medium",Hf="high",Vf="critical",Wf=function(e){const t=function(e){return{acceptSmartPhpUpdate:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("acceptSmartPhpUpdate","installationId",t);const a="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),activateVirtualPatchesSubscription:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("activateVirtualPatchesSubscription","installationId",t),xf("activateVirtualPatchesSubscription","virtualPatchesActivatorRequest",n);const a="/v1/installations/{installationId}/features/virtual-patches/subscription/activator".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),addLicense:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("addLicense","licenseRequest",t);const s=new URL("/v1/license",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),addPluginsToSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("addPluginsToSet","setId",t),xf("addPluginsToSet","pluginAssetDetails",n);const a="/v1/sets/{setId}/plugins".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),addThemesToSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("addThemesToSet","setId",t),xf("addThemesToSet","themeAssetDetails",n);const a="/v1/sets/{setId}/themes".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),applySmartUpdate:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("applySmartUpdate","installationId",t);const a="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),appyVirtualPatches:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("appyVirtualPatches","virtualPatchesApplyRequest",t);const s=new URL("/v1/agent/virtual-patches-applier",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),calculateVulnerabilityProtectionUsageStatistics:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/features/virtual-patches/statistics/calculator",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),cancelBackgroundTask:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("cancelBackgroundTask","taskId",t),xf("cancelBackgroundTask","taskCode",n);const a="/v1/background-tasks/{taskCode}/{taskId}".replace("{taskId}",encodeURIComponent(String(t))).replace("{taskCode}",encodeURIComponent(String(n))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:Cf(i),options:o}})),checkInstallationsVulnerability:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("checkInstallationsVulnerability","checkVulnerabilityRequest",t);const s=new URL("/v1/vulnerabilities-checker",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),checkSecurity:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("checkSecurity","securityMeasuresCheckSecurityRequest",t);const s=new URL("/v1/security-measures/checker",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),cleanInstallationCache:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("cleanInstallationCache","cacheCleanerRequest",t);const s=new URL("/v1/cache-cleaner",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),cloneInstallation:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("cloneInstallation","installationCloneRequest",t);const s=new URL("/v1/cloner",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),closeGlobalAlert:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("closeGlobalAlert","closeGlobalAlertRequest",t);const s=new URL("/v1/global-alerts",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"DELETE"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),createInstallation:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("createInstallation","installationRequest",t);const s=new URL("/v1/installations",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),createInstallationBackup:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("createInstallationBackup","backupCreatorRequest",t);const s=new URL("/v1/features/backups/creator",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),createInstallationWpUser:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("createInstallationWpUser","installationId",t),xf("createInstallationWpUser","installationWpUserRequest",n);const a="/v1/installations/{installationId}/users".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),createMaintenancePreview:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("createMaintenancePreview","installationId",t),xf("createMaintenancePreview","maintenancePreviewRequest",n);const a="/v1/installations/{installationId}/features/maintenance/preview".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),createSet:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("createSet","createSetRequest",t);const s=new URL("/v1/sets",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),deleteLicense:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("deleteLicense","licenseRequest",t);const s=new URL("/v1/license",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"DELETE"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),deleteSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("deleteSet","setId",t);const a="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),detachInstallations:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("detachInstallations","detachInstallationsRequest",t);const s=new URL("/v1/detacher",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),detachVirtualPatchesSubscription:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("detachVirtualPatchesSubscription","installationId",t),xf("detachVirtualPatchesSubscription","basicConfirmationRequest",n);const a="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),disableVirtualPatches:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("disableVirtualPatches","virtualPatchesDisableRequest",t);const s=new URL("/v1/agent/virtual-patches-applier",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"DELETE"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),discardSmartPhpUpdate:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("discardSmartPhpUpdate","installationId",t);const a="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),discardSmartUpdate:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("discardSmartUpdate","installationId",t);const a="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),executeWpCliCommand:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("executeWpCliCommand","installationId",t),xf("executeWpCliCommand","commandExecutionRequest",n);const a="/v1/installations/{installationId}/features/wp-cli".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),featureVulnerabilityStatsUpdate:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("featureVulnerabilityStatsUpdate","buttonClicksStats",t);const s=new URL("/v1/features/vulnerability/stats",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),fetchAvailableAutoUpdateSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/agent/installations-auto-update-settings-getter",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),fetchAvailableInstallationsAutoUpdateSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/installations-auto-update-settings-getter",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),fetchAvailableUpdates:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){const r=new URL("/v1/updates-checker",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:Cf(r),options:l}})),fetchInstallationsSecurityRiskStatuses:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){const r=new URL("/v1/features/security-risk/calculator",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:Cf(r),options:l}})),fetchInstallationsVulnerabilityStatuses:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){const r=new URL("/v1/vulnerabilities-checker",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:Cf(r),options:l}})),fetchInstallationsVulnerabilityStatusesShort:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){const r=new URL("/v1/agent/vulnerabilities-checker",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:Cf(r),options:l}})),forgotPlatfromApiKey:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/agent/api-key",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"DELETE"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getAutoUpdateSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getAutoUpdateSettings","installationId",t);const s="/v1/installations/{installationId}/features/updates/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getAvailablePhpHandlers:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getAvailablePhpHandlers","installationId",t);const s="/v1/installations/{installationId}/features/php/handlers".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getBackgroundTask:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("getBackgroundTask","taskId",t),xf("getBackgroundTask","taskCode",n);const a="/v1/background-tasks/{taskCode}/{taskId}".replace("{taskId}",encodeURIComponent(String(t))).replace("{taskCode}",encodeURIComponent(String(n))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:Cf(i),options:o}})),getBackgroundTasksList:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("getBackgroundTasksList","installationId",t);const a="/v1/installations/{installationId}/background-tasks".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={},c={};_f(o,e),yield Af(l,"X-API-Key",e),n&&(c["codes[]"]=n),kf(i,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),s.headers),{url:Cf(i),options:o}})),getChangelogs:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/changelogs",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getCloneStub:(t,n,s,a,i,r,o,...l)=>Tf(this,[t,n,s,a,i,r,o,...l],void 0,(function*(t,n,s,a,i,r,o,l={}){xf("getCloneStub","installationId",t);const c="/v1/installations/{installationId}/features/clone/stub".replace("{installationId}",encodeURIComponent(String(t))),u=new URL(c,wf);let d;e&&(d=e.baseOptions);const p=Object.assign(Object.assign({method:"GET"},d),l),h={},m={};_f(p,e),yield Af(h,"X-API-Key",e),void 0!==n&&(m["database[name]"]=n),void 0!==s&&(m["database[server]"]=s),void 0!==a&&(m["domain[existing]"]=a),void 0!==i&&(m["domain[newSubdomain][name]"]=i),void 0!==r&&(m["domain[newSubdomain][parentDomain]"]=r),void 0!==o&&(m.installationPath=o),kf(u,m);let g=d&&d.headers?d.headers:{};return p.headers=Object.assign(Object.assign(Object.assign({},h),g),l.headers),{url:Cf(u),options:p}})),getCpanelHomeWidget:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/cpanel/widgets/home",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getHealthStatus:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/health",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getHotlinkProtectionSettingsMeta:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getHotlinkProtectionSettingsMeta","installationId",t);const s="/v1/installations/{installationId}/features/hotlink-protection/settings/meta".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallation:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallation","installationId",t);const s="/v1/installations/{installationId}".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallationBackupsInfo:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("getInstallationBackupsInfo","installationId",t);const a="/v1/installations/{installationId}/backups".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={},c={};_f(o,e),yield Af(l,"X-API-Key",e),n&&(c["files[]"]=n),kf(i,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),s.headers),{url:Cf(i),options:o}})),getInstallationBackupsMeta:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("getInstallationBackupsMeta","installationId",t);const a="/v1/installations/{installationId}/backups/meta".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={},c={};_f(o,e),yield Af(l,"X-API-Key",e),void 0!==n&&(c.showAllBackups=n),kf(i,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),s.headers),{url:Cf(i),options:o}})),getInstallationLabelsMeta:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallationLabelsMeta","installationId",t);const s="/v1/installations/{installationId}/labels/meta".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallationPlugins:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallationPlugins","installationId",t);const s="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallationSecurityPolicies:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallationSecurityPolicies","installationId",t);const s="/v1/installations/{installationId}/features/vulnerability/security-policies".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallationStub:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){const a=new URL("/v1/installer/installation-stub",wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),s),o={},l={};_f(r,e),yield Af(o,"X-API-Key",e),void 0!==t&&(l.domain=t),void 0!==n&&(l.version=n),kf(a,l);let c=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),c),s.headers),{url:Cf(a),options:r}})),getInstallationThemes:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallationThemes","installationId",t);const s="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallationWpUserStub:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getInstallationWpUserStub","installationId",t);const s="/v1/installations/{installationId}/users/stub".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getInstallations:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){const i=new URL("/v1/installations",wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),a),l={},c={};_f(o,e),yield Af(l,"X-API-Key",e),t&&(c["installationsIds[]"]=t),void 0!==n&&(c.sortBy=n),void 0!==s&&(c.sortOrder=s),kf(i,c);let u=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),u),a.headers),{url:Cf(i),options:o}})),getInstallationsPlugins:(t,n,s,a,i,r,o,l,...c)=>Tf(this,[t,n,s,a,i,r,o,l,...c],void 0,(function*(t,n,s,a,i,r,o,l,c={}){xf("getInstallationsPlugins","installationId",t),xf("getInstallationsPlugins","page",n),xf("getInstallationsPlugins","pageSize",s);const u="/v1/installations/{installationId}/features/catalog/plugins".replace("{installationId}",encodeURIComponent(String(t))),d=new URL(u,wf);let p;e&&(p=e.baseOptions);const h=Object.assign(Object.assign({method:"GET"},p),c),m={},g={};_f(h,e),yield Af(m,"X-API-Key",e),void 0!==a&&(g.compatible=a),void 0!==i&&(g.downloadCount=i),void 0!==r&&(g.lastUpdatedAt=r),void 0!==n&&(g.page=n),void 0!==s&&(g.pageSize=s),void 0!==o&&(g.rating=o),void 0!==l&&(g.term=l),kf(d,g);let f=p&&p.headers?p.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},m),f),c.headers),{url:Cf(d),options:h}})),getInstallationsRemoveConfirmation:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/remover/confirmation",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},a),n),r={},o={};_f(i,e),yield Af(r,"X-API-Key",e),t&&(o["installationsIds[]"]=t),kf(s,o);let l=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),l),n.headers),{url:Cf(s),options:i}})),getInstallationsThemes:(t,n,s,a,i,r,o,l,...c)=>Tf(this,[t,n,s,a,i,r,o,l,...c],void 0,(function*(t,n,s,a,i,r,o,l,c={}){xf("getInstallationsThemes","installationId",t),xf("getInstallationsThemes","page",n),xf("getInstallationsThemes","pageSize",s);const u="/v1/installations/{installationId}/features/catalog/themes".replace("{installationId}",encodeURIComponent(String(t))),d=new URL(u,wf);let p;e&&(p=e.baseOptions);const h=Object.assign(Object.assign({method:"GET"},p),c),m={},g={};_f(h,e),yield Af(m,"X-API-Key",e),void 0!==a&&(g.compatible=a),void 0!==i&&(g.downloadCount=i),void 0!==r&&(g.lastUpdatedAt=r),void 0!==n&&(g.page=n),void 0!==s&&(g.pageSize=s),void 0!==o&&(g.rating=o),void 0!==l&&(g.term=l),kf(d,g);let f=p&&p.headers?p.headers:{};return h.headers=Object.assign(Object.assign(Object.assign({},m),f),c.headers),{url:Cf(d),options:h}})),getIntegrationPluginSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getIntegrationPluginSettings","installationId",t);const s="/v1/installations/{installationId}/features/integration-plugin/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getIntegrity:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getIntegrity","installationId",t);const s="/v1/installations/{installationId}/features/integrity".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getLicenseInfo:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/license-info",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getMaintenanceSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getMaintenanceSettings","installationId",t);const s="/v1/installations/{installationId}/features/maintenance/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getMaintenanceTemplateCustomizationUrl:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getMaintenanceTemplateCustomizationUrl","installationId",t);const s="/v1/installations/{installationId}/features/maintenance/template-customization-url".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getPanelInfo:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/panel-info",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getPasswordProtection:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getPasswordProtection","installationId",t);const s="/v1/installations/{installationId}/features/password-protection".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getRemoteAgentInstallationProperties:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getRemoteAgentInstallationProperties","installationId",t);const s="/v1/installations/{installationId}/features/remote-management/remote-agent/properties".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getRemoteServerInstallationProperties:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getRemoteServerInstallationProperties","installationId",t);const s="/v1/installations/{installationId}/features/remote-management/remote-server/properties".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getScannerLogs:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/agent/scanner/logs",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getSecurityMeasures:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/security-measures",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getSecurityMeasuresPerInstallations:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){const r=new URL("/v1/security-measures/checker",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"GET"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),t&&(u["installationsIds[]"]=t),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),{url:Cf(r),options:l}})),getServerInfo:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/server-info",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getSetDetails:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSetDetails","setId",t);const s="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getSetsList:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/sets",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),getSetupDrawerSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSetupDrawerSettings","installationId",t);const s="/v1/installations/{installationId}/account".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getSiteImportStub:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/features/site-import/stub",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"GET"},a),n),r={},o={};_f(i,e),yield Af(r,"X-API-Key",e),void 0!==t&&(o.domain=t),kf(s,o);let l=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),l),n.headers),{url:Cf(s),options:i}})),getSmartPhpUpdateResult:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSmartPhpUpdateResult","installationId",t);const s="/v1/installations/{installationId}/features/updates/php/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getSmartPhpUpdateStub:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSmartPhpUpdateStub","installationId",t);const s="/v1/installations/{installationId}/features/updates/php/stub".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getSmartUpdateResult:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSmartUpdateResult","installationId",t);const s="/v1/installations/{installationId}/features/updates/smart/result".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getSpecification:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getSpecification","specificationType",t);const s="/v1/specification/{specificationType}".replace("{specificationType}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getTaskSchedule:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getTaskSchedule","scheduledTaskId",t);const s="/v1/scheduled-tasks/{scheduledTaskId}".replace("{scheduledTaskId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getVirtualPatchesSubscriptionGuid:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getVirtualPatchesSubscriptionGuid","installationId",t);const s="/v1/installations/{installationId}/features/virtual-patches/subscription/guid".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getVirtualPatchesSubscriptionInfo:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getVirtualPatchesSubscriptionInfo","installationId",t);const s="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getVirtualPatchesSubscriptionPurchaseUrl:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("getVirtualPatchesSubscriptionPurchaseUrl","installationId",t);const a="/v1/installations/{installationId}/features/virtual-patches/subscription".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),getWordPressDebugSettings:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getWordPressDebugSettings","installationId",t);const s="/v1/installations/{installationId}/features/debug/settings".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getWordPressDebugSettingsMeta:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getWordPressDebugSettingsMeta","installationId",t);const s="/v1/installations/{installationId}/features/debug/settings/meta".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getWpCliCommandsList:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getWpCliCommandsList","installationId",t);const s="/v1/installations/{installationId}/features/wp-cli/commands".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getWpCredentials:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getWpCredentials","installationId",t);const s="/v1/installations/{installationId}/credentials".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),getWpCronTakeoverMeta:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("getWpCronTakeoverMeta","installationId",t);const s="/v1/installations/{installationId}/features/wp-cron-takeover/meta".replace("{installationId}",encodeURIComponent(String(t))),a=new URL(s,wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"GET"},i),n),o={};_f(r,e),yield Af(o,"X-API-Key",e),kf(a,{});let l=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),l),n.headers),{url:Cf(a),options:r}})),handleWordPressEvents:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("handleWordPressEvents","installationId",t),xf("handleWordPressEvents","handleWordPressEvent",n);const a="/v1/installations/{installationId}/wordpress/events".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),instalationsPluginsActivateDeactivate:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("instalationsPluginsActivateDeactivate","installationId",t),xf("instalationsPluginsActivateDeactivate","slug",n),xf("instalationsPluginsActivateDeactivate","statusRequest",s);const i="/v1/installations/{installationId}/plugins/{slug}/status".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"PUT"},o),a),c={};_f(l,e),yield Af(c,"X-API-Key",e),c["Content-Type"]="application/json",kf(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),instalationsPluginsInfo:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("instalationsPluginsInfo","installationId",t),xf("instalationsPluginsInfo","slug",n);const a="/v1/installations/{installationId}/features/catalog/plugins/{slug}".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"GET"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),{url:Cf(i),options:o}})),instalationsPluginsInstall:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("instalationsPluginsInstall","installationId",t),xf("instalationsPluginsInstall","installationAssetInstallRequest",n);const a="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),instalationsPluginsUninstall:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("instalationsPluginsUninstall","installationId",t),xf("instalationsPluginsUninstall","requestBody",n);const a="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),instalationsPluginsUploadAndInstall:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("instalationsPluginsUploadAndInstall","installationId",t),xf("instalationsPluginsUploadAndInstall","file",n),xf("instalationsPluginsUploadAndInstall","status",s);const i="/v1/installations/{installationId}/features/uploader/plugins".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u=new(e&&e.formDataCtor||FormData);_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",kf(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=u,{url:Cf(r),options:l}})),instalationsThemesActivate:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("instalationsThemesActivate","installationId",t),xf("instalationsThemesActivate","slug",n),xf("instalationsThemesActivate","statusRequest",s);const i="/v1/installations/{installationId}/themes/{slug}/status".replace("{installationId}",encodeURIComponent(String(t))).replace("{slug}",encodeURIComponent(String(n))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"PUT"},o),a),c={};_f(l,e),yield Af(c,"X-API-Key",e),c["Content-Type"]="application/json",kf(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),instalationsThemesInstall:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("instalationsThemesInstall","installationId",t),xf("instalationsThemesInstall","installationAssetInstallRequest",n);const a="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),instalationsThemesUninstall:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("instalationsThemesUninstall","installationId",t),xf("instalationsThemesUninstall","requestBody",n);const a="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),instalationsThemesUploadAndInstall:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("instalationsThemesUploadAndInstall","installationId",t),xf("instalationsThemesUploadAndInstall","file",n),xf("instalationsThemesUploadAndInstall","status",s);const i="/v1/installations/{installationId}/features/uploader/themes".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u=new(e&&e.formDataCtor||FormData);_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",kf(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=u,{url:Cf(r),options:l}})),installIntegrationPlugin:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("installIntegrationPlugin","installationId",t);const a="/v1/installations/{installationId}/features/integration-plugin/installer".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),installSet:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("installSet","installSetRequest",t);const s=new URL("/v1/sets-installer",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),issueIntegrationPluginToken:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("issueIntegrationPluginToken","installationId",t);const a="/v1/installations/{installationId}/features/integration-plugin/token".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),launchUpdate:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){xf("launchUpdate","launchInstallationUpdate",t);const r=new URL("/v1/updater",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=jf(t,l,e),{url:Cf(r),options:l}})),loginInstallation:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("loginInstallation","installationId",t);const i="/v1/installations/{installationId}/login".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.login=n),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),massUpdateInstallationsAutoUpdatesSettings:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){xf("massUpdateInstallationsAutoUpdatesSettings","installationsAutoUpdateListItemRequest",t);const r=new URL("/v2/features/updates/mass-settings",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=jf(t,l,e),{url:Cf(r),options:l}})),mitigateVulnerabilities:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){xf("mitigateVulnerabilities","vulnerabilitiesMitigation",t);const r=new URL("/v1/features/vulnerability/mitigator",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=jf(t,l,e),{url:Cf(r),options:l}})),receiveHelloFromAgent:(...t)=>Tf(this,[...t],void 0,(function*(t={}){const n=new URL("/v1/agent/hello",wf);let s;e&&(s=e.baseOptions);const a=Object.assign(Object.assign({method:"GET"},s),t),i={};_f(a,e),yield Af(i,"X-API-Key",e),kf(n,{});let r=s&&s.headers?s.headers:{};return a.headers=Object.assign(Object.assign(Object.assign({},i),r),t.headers),{url:Cf(n),options:a}})),refreshAvailableUpdates:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/updates-checker",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),removeInstallationBackups:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("removeInstallationBackups","installationId",t),xf("removeInstallationBackups","files",n);const i="/v1/installations/{installationId}/backups".replace("{installationId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),a),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),n&&(u["files[]"]=n),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),removeIntegrationPlugin:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("removeIntegrationPlugin","installationId",t);const a="/v1/installations/{installationId}/features/integration-plugin/remover".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),removePluginFromSet:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("removePluginFromSet","setId",t),xf("removePluginFromSet","pluginSlug",n);const i="/v1/sets/{setId}/plugins/{pluginSlug}".replace("{setId}",encodeURIComponent(String(t))).replace("{pluginSlug}",encodeURIComponent(String(n))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),a),c={};_f(l,e),yield Af(c,"X-API-Key",e),c["Content-Type"]="application/json",kf(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),removeThemeFromSet:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("removeThemeFromSet","setId",t),xf("removeThemeFromSet","themeSlug",n);const i="/v1/sets/{setId}/themes/{themeSlug}".replace("{setId}",encodeURIComponent(String(t))).replace("{themeSlug}",encodeURIComponent(String(n))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"DELETE"},o),a),c={};_f(l,e),yield Af(c,"X-API-Key",e),c["Content-Type"]="application/json",kf(r,{});let u=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),u),a.headers),l.data=jf(s,l,e),{url:Cf(r),options:l}})),resetHotlinkProtectionSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("resetHotlinkProtectionSettings","installationId",t);const a="/v1/installations/{installationId}/features/hotlink-protection/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),resolveSecurityMeasures:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("resolveSecurityMeasures","securityMeasuresResolveRequest",t);const s=new URL("/v1/security-measures/resolver",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),restoreInstallationBackup:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("restoreInstallationBackup","backupRestorerRequest",t);const s=new URL("/v1/features/backups/restorer",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),restoreMaintenanceTemplate:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("restoreMaintenanceTemplate","installationId",t);const a="/v1/installations/{installationId}/features/maintenance/template".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"DELETE"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),revertSecurityMeasures:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("revertSecurityMeasures","securityMeasuresRevertRequest",t);const s=new URL("/v1/security-measures/reverter",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),runSmartPhpUpdate:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("runSmartPhpUpdate","runSmartPhpUpdateRequest",t);const s=new URL("/v1/smart-php-updater",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),scanInstallations:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/scanner",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),setPluginsToSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("setPluginsToSet","setId",t),xf("setPluginsToSet","pluginAssetDetails",n);const a="/v1/sets/{setId}/plugins".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),setTaskSchedule:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("setTaskSchedule","scheduledTaskId",t),xf("setTaskSchedule","scheduledTimeApplyRequest",n);const a="/v1/scheduled-tasks/{scheduledTaskId}".replace("{scheduledTaskId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),setThemesToSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("setThemesToSet","setId",t),xf("setThemesToSet","themeAssetDetails",n);const a="/v1/sets/{setId}/themes".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),siteImport:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("siteImport","siteImportRequest",t);const s=new URL("/v1/features/site-import",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),statsHireDeveloperTransition:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("statsHireDeveloperTransition","transitionStats",t);const s=new URL("/v1/stats/hire-developer-transition",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),upVoteForFeature:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("upVoteForFeature","upVoteForFeatureRequest",t);const s=new URL("/v1/features/up-votes",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),updateAutoUpdateSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateAutoUpdateSettings","installationId",t),xf("updateAutoUpdateSettings","installationAutoUpdateRequest",n);const a="/v1/installations/{installationId}/features/updates/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateHotlinkProtectionSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateHotlinkProtectionSettings","installationId",t),xf("updateHotlinkProtectionSettings","hotlinkProtectionSettingsRequest",n);const a="/v1/installations/{installationId}/features/hotlink-protection/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateHotlinkProtectionStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateHotlinkProtectionStatus","installationId",t),xf("updateHotlinkProtectionStatus","hotlinkProtectionStatusRequest",n);const a="/v1/installations/{installationId}/features/hotlink-protection/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateIndexingStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateIndexingStatus","installationId",t),xf("updateIndexingStatus","statusRequest",n);const a="/v1/installations/{installationId}/features/indexing/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateInstallationLabels:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateInstallationLabels","installationId",t),xf("updateInstallationLabels","installationLabel",n);const a="/v1/installations/{installationId}/labels".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateInstallationSecurityPolicies:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateInstallationSecurityPolicies","installationId",t),xf("updateInstallationSecurityPolicies","installationSecurityPoliciesUpdateRequest",n);const a="/v1/installations/{installationId}/features/vulnerability/security-policies".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateInstallationsAutoUpdatesSettings:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){xf("updateInstallationsAutoUpdatesSettings","installationsAutoUpdateRequest",t);const r=new URL("/v1/features/updates/settings",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=jf(t,l,e),{url:Cf(r),options:l}})),updateInstallationsAutoUpdatesSettingsV2:(t,n,s,a,...i)=>Tf(this,[t,n,s,a,...i],void 0,(function*(t,n,s,a,i={}){xf("updateInstallationsAutoUpdatesSettingsV2","installationsAutoUpdateRequest",t);const r=new URL("/v2/features/updates/settings",wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),i),c={},u={};_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&(u.skipBrokenInstallations=n),void 0!==s&&(u.skipInfectedInstallations=s),void 0!==a&&(u.skipUnsupportedInstallations=a),c["Content-Type"]="application/json",kf(r,u);let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),i.headers),l.data=jf(t,l,e),{url:Cf(r),options:l}})),updateInstallationsPlugins:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateInstallationsPlugins","installationId",t),xf("updateInstallationsPlugins","installationAssetUpdateRequest",n);const a="/v1/installations/{installationId}/plugins".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateInstallationsThemes:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateInstallationsThemes","installationId",t),xf("updateInstallationsThemes","installationAssetUpdateRequest",n);const a="/v1/installations/{installationId}/themes".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateLicenseInfo:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){const s=new URL("/v1/license-info/updater",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}})),updateMaintenanceSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateMaintenanceSettings","installationId",t),xf("updateMaintenanceSettings","maintenanceSettingsRequest",n);const a="/v1/installations/{installationId}/features/maintenance/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateMaintenanceStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateMaintenanceStatus","installationId",t),xf("updateMaintenanceStatus","statusRequest",n);const a="/v1/installations/{installationId}/features/maintenance/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateNginxCachingStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateNginxCachingStatus","installationId",t),xf("updateNginxCachingStatus","statusRequest",n);const a="/v1/installations/{installationId}/features/nginx-caching/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updatePasswordProtection:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updatePasswordProtection","installationId",t),xf("updatePasswordProtection","passwordProtectionRequest",n);const a="/v1/installations/{installationId}/features/password-protection".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateSet:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateSet","setId",t),xf("updateSet","updateSetRequest",n);const a="/v1/sets/{setId}".replace("{setId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateSetupDrawerSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateSetupDrawerSettings","installationId",t),xf("updateSetupDrawerSettings","setupDrawerSettingsRequest",n);const a="/v1/installations/{installationId}/account".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateSmartUpdatesStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateSmartUpdatesStatus","installationId",t),xf("updateSmartUpdatesStatus","statusRequest",n);const a="/v1/installations/{installationId}/features/updates/smart/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateVirtualPatchesProtectionStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateVirtualPatchesProtectionStatus","virtualPatchesProtectorRequest",t);const a=new URL("/v1/features/virtual-patches/protector",wf);let i;e&&(i=e.baseOptions);const r=Object.assign(Object.assign({method:"POST"},i),s),o={},l={};_f(r,e),yield Af(o,"X-API-Key",e),void 0!==n&&(l["dry-run"]=n),o["Content-Type"]="application/json",kf(a,l);let c=i&&i.headers?i.headers:{};return r.headers=Object.assign(Object.assign(Object.assign({},o),c),s.headers),r.data=jf(t,r,e),{url:Cf(a),options:r}})),updateVulnerabilityFiltering:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateVulnerabilityFiltering","installationId",t),xf("updateVulnerabilityFiltering","vulnerabilityFilteringRequest",n);const a="/v1/installations/{installationId}/features/vulnerability/filtering".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateWordPressDebugSettings:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateWordPressDebugSettings","installationId",t),xf("updateWordPressDebugSettings","wordPressDebugSettingsRequest",n);const a="/v1/installations/{installationId}/features/debug/settings".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateWordPressDebugStatus:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateWordPressDebugStatus","installationId",t),xf("updateWordPressDebugStatus","wordPressDebugStatusRequest",n);const a="/v1/installations/{installationId}/features/debug/status".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PUT"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),updateWpCronTakeover:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("updateWpCronTakeover","installationId",t),xf("updateWpCronTakeover","wpCronTakeoverInstanceRequest",n);const a="/v1/installations/{installationId}/features/wp-cron-takeover".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"PATCH"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),uploadPluginToSet:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("uploadPluginToSet","setId",t),xf("uploadPluginToSet","file",n),xf("uploadPluginToSet","status",s);const i="/v1/sets/{setId}/features/uploader/plugins".replace("{setId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u=new(e&&e.formDataCtor||FormData);_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",kf(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=u,{url:Cf(r),options:l}})),uploadThemeToSet:(t,n,s,...a)=>Tf(this,[t,n,s,...a],void 0,(function*(t,n,s,a={}){xf("uploadThemeToSet","setId",t),xf("uploadThemeToSet","file",n),xf("uploadThemeToSet","status",s);const i="/v1/sets/{setId}/features/uploader/themes".replace("{setId}",encodeURIComponent(String(t))),r=new URL(i,wf);let o;e&&(o=e.baseOptions);const l=Object.assign(Object.assign({method:"POST"},o),a),c={},u=new(e&&e.formDataCtor||FormData);_f(l,e),yield Af(c,"X-API-Key",e),void 0!==n&&u.append("file",n),void 0!==s&&u.append("status",s),c["Content-Type"]="multipart/form-data",kf(r,{});let d=o&&o.headers?o.headers:{};return l.headers=Object.assign(Object.assign(Object.assign({},c),d),a.headers),l.data=u,{url:Cf(r),options:l}})),validateClonePath:(t,n,...s)=>Tf(this,[t,n,...s],void 0,(function*(t,n,s={}){xf("validateClonePath","installationId",t),xf("validateClonePath","clonePathValidatorRequest",n);const a="/v1/installations/{installationId}/features/clone/path-validator".replace("{installationId}",encodeURIComponent(String(t))),i=new URL(a,wf);let r;e&&(r=e.baseOptions);const o=Object.assign(Object.assign({method:"POST"},r),s),l={};_f(o,e),yield Af(l,"X-API-Key",e),l["Content-Type"]="application/json",kf(i,{});let c=r&&r.headers?r.headers:{};return o.headers=Object.assign(Object.assign(Object.assign({},l),c),s.headers),o.data=jf(n,o,e),{url:Cf(i),options:o}})),validateInstallationPath:(t,...n)=>Tf(this,[t,...n],void 0,(function*(t,n={}){xf("validateInstallationPath","installationPathValidatorRequest",t);const s=new URL("/v1/installer/path-validator",wf);let a;e&&(a=e.baseOptions);const i=Object.assign(Object.assign({method:"POST"},a),n),r={};_f(i,e),yield Af(r,"X-API-Key",e),r["Content-Type"]="application/json",kf(s,{});let o=a&&a.headers?a.headers:{};return i.headers=Object.assign(Object.assign(Object.assign({},r),o),n.headers),i.data=jf(t,i,e),{url:Cf(s),options:i}}))}}(e);return{acceptSmartPhpUpdate(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.acceptSmartPhpUpdate(n,s,a);return If(i,Fg,vf,e)}))},activateVirtualPatchesSubscription(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.activateVirtualPatchesSubscription(n,s,a);return If(i,Fg,vf,e)}))},addLicense(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.addLicense(n,s);return If(a,Fg,vf,e)}))},addPluginsToSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.addPluginsToSet(n,s,a);return If(i,Fg,vf,e)}))},addThemesToSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.addThemesToSet(n,s,a);return If(i,Fg,vf,e)}))},applySmartUpdate(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.applySmartUpdate(n,s,a);return If(i,Fg,vf,e)}))},appyVirtualPatches(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.appyVirtualPatches(n,s);return If(a,Fg,vf,e)}))},calculateVulnerabilityProtectionUsageStatistics(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.calculateVulnerabilityProtectionUsageStatistics(n,s);return If(a,Fg,vf,e)}))},cancelBackgroundTask(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.cancelBackgroundTask(n,s,a);return If(i,Fg,vf,e)}))},checkInstallationsVulnerability(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.checkInstallationsVulnerability(n,s);return If(a,Fg,vf,e)}))},checkSecurity(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.checkSecurity(n,s);return If(a,Fg,vf,e)}))},cleanInstallationCache(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.cleanInstallationCache(n,s);return If(a,Fg,vf,e)}))},cloneInstallation(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.cloneInstallation(n,s);return If(a,Fg,vf,e)}))},closeGlobalAlert(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.closeGlobalAlert(n,s);return If(a,Fg,vf,e)}))},createInstallation(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.createInstallation(n,s);return If(a,Fg,vf,e)}))},createInstallationBackup(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.createInstallationBackup(n,s);return If(a,Fg,vf,e)}))},createInstallationWpUser(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.createInstallationWpUser(n,s,a);return If(i,Fg,vf,e)}))},createMaintenancePreview(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.createMaintenancePreview(n,s,a);return If(i,Fg,vf,e)}))},createSet(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.createSet(n,s);return If(a,Fg,vf,e)}))},deleteLicense(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.deleteLicense(n,s);return If(a,Fg,vf,e)}))},deleteSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.deleteSet(n,s,a);return If(i,Fg,vf,e)}))},detachInstallations(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.detachInstallations(n,s);return If(a,Fg,vf,e)}))},detachVirtualPatchesSubscription(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.detachVirtualPatchesSubscription(n,s,a);return If(i,Fg,vf,e)}))},disableVirtualPatches(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.disableVirtualPatches(n,s);return If(a,Fg,vf,e)}))},discardSmartPhpUpdate(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.discardSmartPhpUpdate(n,s,a);return If(i,Fg,vf,e)}))},discardSmartUpdate(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.discardSmartUpdate(n,s,a);return If(i,Fg,vf,e)}))},executeWpCliCommand(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.executeWpCliCommand(n,s,a);return If(i,Fg,vf,e)}))},featureVulnerabilityStatsUpdate(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.featureVulnerabilityStatsUpdate(n,s);return If(a,Fg,vf,e)}))},fetchAvailableAutoUpdateSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.fetchAvailableAutoUpdateSettings(n,s);return If(a,Fg,vf,e)}))},fetchAvailableInstallationsAutoUpdateSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.fetchAvailableInstallationsAutoUpdateSettings(n,s);return If(a,Fg,vf,e)}))},fetchAvailableUpdates(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.fetchAvailableUpdates(n,s,a,i,r);return If(o,Fg,vf,e)}))},fetchInstallationsSecurityRiskStatuses(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.fetchInstallationsSecurityRiskStatuses(n,s,a,i,r);return If(o,Fg,vf,e)}))},fetchInstallationsVulnerabilityStatuses(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.fetchInstallationsVulnerabilityStatuses(n,s,a,i,r);return If(o,Fg,vf,e)}))},fetchInstallationsVulnerabilityStatusesShort(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.fetchInstallationsVulnerabilityStatusesShort(n,s,a,i,r);return If(o,Fg,vf,e)}))},forgotPlatfromApiKey(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.forgotPlatfromApiKey(n);return If(s,Fg,vf,e)}))},getAutoUpdateSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getAutoUpdateSettings(n,s);return If(a,Fg,vf,e)}))},getAvailablePhpHandlers(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getAvailablePhpHandlers(n,s);return If(a,Fg,vf,e)}))},getBackgroundTask(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getBackgroundTask(n,s,a);return If(i,Fg,vf,e)}))},getBackgroundTasksList(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getBackgroundTasksList(n,s,a);return If(i,Fg,vf,e)}))},getChangelogs(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getChangelogs(n);return If(s,Fg,vf,e)}))},getCloneStub(n,s,a,i,r,o,l,c){return Tf(this,void 0,void 0,(function*(){const u=yield t.getCloneStub(n,s,a,i,r,o,l,c);return If(u,Fg,vf,e)}))},getCpanelHomeWidget(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getCpanelHomeWidget(n);return If(s,Fg,vf,e)}))},getHealthStatus(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getHealthStatus(n);return If(s,Fg,vf,e)}))},getHotlinkProtectionSettingsMeta(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getHotlinkProtectionSettingsMeta(n,s);return If(a,Fg,vf,e)}))},getInstallation(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallation(n,s);return If(a,Fg,vf,e)}))},getInstallationBackupsInfo(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getInstallationBackupsInfo(n,s,a);return If(i,Fg,vf,e)}))},getInstallationBackupsMeta(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getInstallationBackupsMeta(n,s,a);return If(i,Fg,vf,e)}))},getInstallationLabelsMeta(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationLabelsMeta(n,s);return If(a,Fg,vf,e)}))},getInstallationPlugins(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationPlugins(n,s);return If(a,Fg,vf,e)}))},getInstallationSecurityPolicies(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationSecurityPolicies(n,s);return If(a,Fg,vf,e)}))},getInstallationStub(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getInstallationStub(n,s,a);return If(i,Fg,vf,e)}))},getInstallationThemes(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationThemes(n,s);return If(a,Fg,vf,e)}))},getInstallationWpUserStub(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationWpUserStub(n,s);return If(a,Fg,vf,e)}))},getInstallations(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.getInstallations(n,s,a,i);return If(r,Fg,vf,e)}))},getInstallationsPlugins(n,s,a,i,r,o,l,c,u){return Tf(this,void 0,void 0,(function*(){const d=yield t.getInstallationsPlugins(n,s,a,i,r,o,l,c,u);return If(d,Fg,vf,e)}))},getInstallationsRemoveConfirmation(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getInstallationsRemoveConfirmation(n,s);return If(a,Fg,vf,e)}))},getInstallationsThemes(n,s,a,i,r,o,l,c,u){return Tf(this,void 0,void 0,(function*(){const d=yield t.getInstallationsThemes(n,s,a,i,r,o,l,c,u);return If(d,Fg,vf,e)}))},getIntegrationPluginSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getIntegrationPluginSettings(n,s);return If(a,Fg,vf,e)}))},getIntegrity(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getIntegrity(n,s);return If(a,Fg,vf,e)}))},getLicenseInfo(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getLicenseInfo(n);return If(s,Fg,vf,e)}))},getMaintenanceSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getMaintenanceSettings(n,s);return If(a,Fg,vf,e)}))},getMaintenanceTemplateCustomizationUrl(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getMaintenanceTemplateCustomizationUrl(n,s);return If(a,Fg,vf,e)}))},getPanelInfo(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getPanelInfo(n);return If(s,Fg,vf,e)}))},getPasswordProtection(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getPasswordProtection(n,s);return If(a,Fg,vf,e)}))},getRemoteAgentInstallationProperties(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getRemoteAgentInstallationProperties(n,s);return If(a,Fg,vf,e)}))},getRemoteServerInstallationProperties(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getRemoteServerInstallationProperties(n,s);return If(a,Fg,vf,e)}))},getScannerLogs(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getScannerLogs(n);return If(s,Fg,vf,e)}))},getSecurityMeasures(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getSecurityMeasures(n);return If(s,Fg,vf,e)}))},getSecurityMeasuresPerInstallations(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.getSecurityMeasuresPerInstallations(n,s,a,i,r);return If(o,Fg,vf,e)}))},getServerInfo(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getServerInfo(n);return If(s,Fg,vf,e)}))},getSetDetails(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSetDetails(n,s);return If(a,Fg,vf,e)}))},getSetsList(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.getSetsList(n);return If(s,Fg,vf,e)}))},getSetupDrawerSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSetupDrawerSettings(n,s);return If(a,Fg,vf,e)}))},getSiteImportStub(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSiteImportStub(n,s);return If(a,Fg,vf,e)}))},getSmartPhpUpdateResult(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSmartPhpUpdateResult(n,s);return If(a,Fg,vf,e)}))},getSmartPhpUpdateStub(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSmartPhpUpdateStub(n,s);return If(a,Fg,vf,e)}))},getSmartUpdateResult(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSmartUpdateResult(n,s);return If(a,Fg,vf,e)}))},getSpecification(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getSpecification(n,s);return If(a,Fg,vf,e)}))},getTaskSchedule(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getTaskSchedule(n,s);return If(a,Fg,vf,e)}))},getVirtualPatchesSubscriptionGuid(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getVirtualPatchesSubscriptionGuid(n,s);return If(a,Fg,vf,e)}))},getVirtualPatchesSubscriptionInfo(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getVirtualPatchesSubscriptionInfo(n,s);return If(a,Fg,vf,e)}))},getVirtualPatchesSubscriptionPurchaseUrl(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.getVirtualPatchesSubscriptionPurchaseUrl(n,s,a);return If(i,Fg,vf,e)}))},getWordPressDebugSettings(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getWordPressDebugSettings(n,s);return If(a,Fg,vf,e)}))},getWordPressDebugSettingsMeta(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getWordPressDebugSettingsMeta(n,s);return If(a,Fg,vf,e)}))},getWpCliCommandsList(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getWpCliCommandsList(n,s);return If(a,Fg,vf,e)}))},getWpCredentials(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getWpCredentials(n,s);return If(a,Fg,vf,e)}))},getWpCronTakeoverMeta(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.getWpCronTakeoverMeta(n,s);return If(a,Fg,vf,e)}))},handleWordPressEvents(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.handleWordPressEvents(n,s,a);return If(i,Fg,vf,e)}))},instalationsPluginsActivateDeactivate(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.instalationsPluginsActivateDeactivate(n,s,a,i);return If(r,Fg,vf,e)}))},instalationsPluginsInfo(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.instalationsPluginsInfo(n,s,a);return If(i,Fg,vf,e)}))},instalationsPluginsInstall(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.instalationsPluginsInstall(n,s,a);return If(i,Fg,vf,e)}))},instalationsPluginsUninstall(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.instalationsPluginsUninstall(n,s,a);return If(i,Fg,vf,e)}))},instalationsPluginsUploadAndInstall(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.instalationsPluginsUploadAndInstall(n,s,a,i);return If(r,Fg,vf,e)}))},instalationsThemesActivate(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.instalationsThemesActivate(n,s,a,i);return If(r,Fg,vf,e)}))},instalationsThemesInstall(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.instalationsThemesInstall(n,s,a);return If(i,Fg,vf,e)}))},instalationsThemesUninstall(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.instalationsThemesUninstall(n,s,a);return If(i,Fg,vf,e)}))},instalationsThemesUploadAndInstall(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.instalationsThemesUploadAndInstall(n,s,a,i);return If(r,Fg,vf,e)}))},installIntegrationPlugin(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.installIntegrationPlugin(n,s,a);return If(i,Fg,vf,e)}))},installSet(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.installSet(n,s);return If(a,Fg,vf,e)}))},issueIntegrationPluginToken(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.issueIntegrationPluginToken(n,s,a);return If(i,Fg,vf,e)}))},launchUpdate(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.launchUpdate(n,s,a,i,r);return If(o,Fg,vf,e)}))},loginInstallation(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.loginInstallation(n,s,a,i);return If(r,Fg,vf,e)}))},massUpdateInstallationsAutoUpdatesSettings(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.massUpdateInstallationsAutoUpdatesSettings(n,s,a,i,r);return If(o,Fg,vf,e)}))},mitigateVulnerabilities(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.mitigateVulnerabilities(n,s,a,i,r);return If(o,Fg,vf,e)}))},receiveHelloFromAgent(n){return Tf(this,void 0,void 0,(function*(){const s=yield t.receiveHelloFromAgent(n);return If(s,Fg,vf,e)}))},refreshAvailableUpdates(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.refreshAvailableUpdates(n,s);return If(a,Fg,vf,e)}))},removeInstallationBackups(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.removeInstallationBackups(n,s,a,i);return If(r,Fg,vf,e)}))},removeIntegrationPlugin(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.removeIntegrationPlugin(n,s,a);return If(i,Fg,vf,e)}))},removePluginFromSet(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.removePluginFromSet(n,s,a,i);return If(r,Fg,vf,e)}))},removeThemeFromSet(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.removeThemeFromSet(n,s,a,i);return If(r,Fg,vf,e)}))},resetHotlinkProtectionSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.resetHotlinkProtectionSettings(n,s,a);return If(i,Fg,vf,e)}))},resolveSecurityMeasures(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.resolveSecurityMeasures(n,s);return If(a,Fg,vf,e)}))},restoreInstallationBackup(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.restoreInstallationBackup(n,s);return If(a,Fg,vf,e)}))},restoreMaintenanceTemplate(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.restoreMaintenanceTemplate(n,s,a);return If(i,Fg,vf,e)}))},revertSecurityMeasures(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.revertSecurityMeasures(n,s);return If(a,Fg,vf,e)}))},runSmartPhpUpdate(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.runSmartPhpUpdate(n,s);return If(a,Fg,vf,e)}))},scanInstallations(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.scanInstallations(n,s);return If(a,Fg,vf,e)}))},setPluginsToSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.setPluginsToSet(n,s,a);return If(i,Fg,vf,e)}))},setTaskSchedule(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.setTaskSchedule(n,s,a);return If(i,Fg,vf,e)}))},setThemesToSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.setThemesToSet(n,s,a);return If(i,Fg,vf,e)}))},siteImport(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.siteImport(n,s);return If(a,Fg,vf,e)}))},statsHireDeveloperTransition(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.statsHireDeveloperTransition(n,s);return If(a,Fg,vf,e)}))},upVoteForFeature(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.upVoteForFeature(n,s);return If(a,Fg,vf,e)}))},updateAutoUpdateSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateAutoUpdateSettings(n,s,a);return If(i,Fg,vf,e)}))},updateHotlinkProtectionSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateHotlinkProtectionSettings(n,s,a);return If(i,Fg,vf,e)}))},updateHotlinkProtectionStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateHotlinkProtectionStatus(n,s,a);return If(i,Fg,vf,e)}))},updateIndexingStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateIndexingStatus(n,s,a);return If(i,Fg,vf,e)}))},updateInstallationLabels(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateInstallationLabels(n,s,a);return If(i,Fg,vf,e)}))},updateInstallationSecurityPolicies(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateInstallationSecurityPolicies(n,s,a);return If(i,Fg,vf,e)}))},updateInstallationsAutoUpdatesSettings(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.updateInstallationsAutoUpdatesSettings(n,s,a,i,r);return If(o,Fg,vf,e)}))},updateInstallationsAutoUpdatesSettingsV2(n,s,a,i,r){return Tf(this,void 0,void 0,(function*(){const o=yield t.updateInstallationsAutoUpdatesSettingsV2(n,s,a,i,r);return If(o,Fg,vf,e)}))},updateInstallationsPlugins(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateInstallationsPlugins(n,s,a);return If(i,Fg,vf,e)}))},updateInstallationsThemes(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateInstallationsThemes(n,s,a);return If(i,Fg,vf,e)}))},updateLicenseInfo(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.updateLicenseInfo(n,s);return If(a,Fg,vf,e)}))},updateMaintenanceSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateMaintenanceSettings(n,s,a);return If(i,Fg,vf,e)}))},updateMaintenanceStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateMaintenanceStatus(n,s,a);return If(i,Fg,vf,e)}))},updateNginxCachingStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateNginxCachingStatus(n,s,a);return If(i,Fg,vf,e)}))},updatePasswordProtection(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updatePasswordProtection(n,s,a);return If(i,Fg,vf,e)}))},updateSet(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateSet(n,s,a);return If(i,Fg,vf,e)}))},updateSetupDrawerSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateSetupDrawerSettings(n,s,a);return If(i,Fg,vf,e)}))},updateSmartUpdatesStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateSmartUpdatesStatus(n,s,a);return If(i,Fg,vf,e)}))},updateVirtualPatchesProtectionStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateVirtualPatchesProtectionStatus(n,s,a);return If(i,Fg,vf,e)}))},updateVulnerabilityFiltering(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateVulnerabilityFiltering(n,s,a);return If(i,Fg,vf,e)}))},updateWordPressDebugSettings(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateWordPressDebugSettings(n,s,a);return If(i,Fg,vf,e)}))},updateWordPressDebugStatus(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateWordPressDebugStatus(n,s,a);return If(i,Fg,vf,e)}))},updateWpCronTakeover(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.updateWpCronTakeover(n,s,a);return If(i,Fg,vf,e)}))},uploadPluginToSet(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.uploadPluginToSet(n,s,a,i);return If(r,Fg,vf,e)}))},uploadThemeToSet(n,s,a,i){return Tf(this,void 0,void 0,(function*(){const r=yield t.uploadThemeToSet(n,s,a,i);return If(r,Fg,vf,e)}))},validateClonePath(n,s,a){return Tf(this,void 0,void 0,(function*(){const i=yield t.validateClonePath(n,s,a);return If(i,Fg,vf,e)}))},validateInstallationPath(n,s){return Tf(this,void 0,void 0,(function*(){const a=yield t.validateInstallationPath(n,s);return If(a,Fg,vf,e)}))}}};class $f extends yf{acceptSmartPhpUpdate(e,t,n){return Wf(this.configuration).acceptSmartPhpUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}activateVirtualPatchesSubscription(e,t,n){return Wf(this.configuration).activateVirtualPatchesSubscription(e,t,n).then((e=>e(this.axios,this.basePath)))}addLicense(e,t){return Wf(this.configuration).addLicense(e,t).then((e=>e(this.axios,this.basePath)))}addPluginsToSet(e,t,n){return Wf(this.configuration).addPluginsToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}addThemesToSet(e,t,n){return Wf(this.configuration).addThemesToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}applySmartUpdate(e,t,n){return Wf(this.configuration).applySmartUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}appyVirtualPatches(e,t){return Wf(this.configuration).appyVirtualPatches(e,t).then((e=>e(this.axios,this.basePath)))}calculateVulnerabilityProtectionUsageStatistics(e,t){return Wf(this.configuration).calculateVulnerabilityProtectionUsageStatistics(e,t).then((e=>e(this.axios,this.basePath)))}cancelBackgroundTask(e,t,n){return Wf(this.configuration).cancelBackgroundTask(e,t,n).then((e=>e(this.axios,this.basePath)))}checkInstallationsVulnerability(e,t){return Wf(this.configuration).checkInstallationsVulnerability(e,t).then((e=>e(this.axios,this.basePath)))}checkSecurity(e,t){return Wf(this.configuration).checkSecurity(e,t).then((e=>e(this.axios,this.basePath)))}cleanInstallationCache(e,t){return Wf(this.configuration).cleanInstallationCache(e,t).then((e=>e(this.axios,this.basePath)))}cloneInstallation(e,t){return Wf(this.configuration).cloneInstallation(e,t).then((e=>e(this.axios,this.basePath)))}closeGlobalAlert(e,t){return Wf(this.configuration).closeGlobalAlert(e,t).then((e=>e(this.axios,this.basePath)))}createInstallation(e,t){return Wf(this.configuration).createInstallation(e,t).then((e=>e(this.axios,this.basePath)))}createInstallationBackup(e,t){return Wf(this.configuration).createInstallationBackup(e,t).then((e=>e(this.axios,this.basePath)))}createInstallationWpUser(e,t,n){return Wf(this.configuration).createInstallationWpUser(e,t,n).then((e=>e(this.axios,this.basePath)))}createMaintenancePreview(e,t,n){return Wf(this.configuration).createMaintenancePreview(e,t,n).then((e=>e(this.axios,this.basePath)))}createSet(e,t){return Wf(this.configuration).createSet(e,t).then((e=>e(this.axios,this.basePath)))}deleteLicense(e,t){return Wf(this.configuration).deleteLicense(e,t).then((e=>e(this.axios,this.basePath)))}deleteSet(e,t,n){return Wf(this.configuration).deleteSet(e,t,n).then((e=>e(this.axios,this.basePath)))}detachInstallations(e,t){return Wf(this.configuration).detachInstallations(e,t).then((e=>e(this.axios,this.basePath)))}detachVirtualPatchesSubscription(e,t,n){return Wf(this.configuration).detachVirtualPatchesSubscription(e,t,n).then((e=>e(this.axios,this.basePath)))}disableVirtualPatches(e,t){return Wf(this.configuration).disableVirtualPatches(e,t).then((e=>e(this.axios,this.basePath)))}discardSmartPhpUpdate(e,t,n){return Wf(this.configuration).discardSmartPhpUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}discardSmartUpdate(e,t,n){return Wf(this.configuration).discardSmartUpdate(e,t,n).then((e=>e(this.axios,this.basePath)))}executeWpCliCommand(e,t,n){return Wf(this.configuration).executeWpCliCommand(e,t,n).then((e=>e(this.axios,this.basePath)))}featureVulnerabilityStatsUpdate(e,t){return Wf(this.configuration).featureVulnerabilityStatsUpdate(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableAutoUpdateSettings(e,t){return Wf(this.configuration).fetchAvailableAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableInstallationsAutoUpdateSettings(e,t){return Wf(this.configuration).fetchAvailableInstallationsAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}fetchAvailableUpdates(e,t,n,s,a){return Wf(this.configuration).fetchAvailableUpdates(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}fetchInstallationsSecurityRiskStatuses(e,t,n,s,a){return Wf(this.configuration).fetchInstallationsSecurityRiskStatuses(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}fetchInstallationsVulnerabilityStatuses(e,t,n,s,a){return Wf(this.configuration).fetchInstallationsVulnerabilityStatuses(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}fetchInstallationsVulnerabilityStatusesShort(e,t,n,s,a){return Wf(this.configuration).fetchInstallationsVulnerabilityStatusesShort(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}forgotPlatfromApiKey(e){return Wf(this.configuration).forgotPlatfromApiKey(e).then((e=>e(this.axios,this.basePath)))}getAutoUpdateSettings(e,t){return Wf(this.configuration).getAutoUpdateSettings(e,t).then((e=>e(this.axios,this.basePath)))}getAvailablePhpHandlers(e,t){return Wf(this.configuration).getAvailablePhpHandlers(e,t).then((e=>e(this.axios,this.basePath)))}getBackgroundTask(e,t,n){return Wf(this.configuration).getBackgroundTask(e,t,n).then((e=>e(this.axios,this.basePath)))}getBackgroundTasksList(e,t,n){return Wf(this.configuration).getBackgroundTasksList(e,t,n).then((e=>e(this.axios,this.basePath)))}getChangelogs(e){return Wf(this.configuration).getChangelogs(e).then((e=>e(this.axios,this.basePath)))}getCloneStub(e,t,n,s,a,i,r,o){return Wf(this.configuration).getCloneStub(e,t,n,s,a,i,r,o).then((e=>e(this.axios,this.basePath)))}getCpanelHomeWidget(e){return Wf(this.configuration).getCpanelHomeWidget(e).then((e=>e(this.axios,this.basePath)))}getHealthStatus(e){return Wf(this.configuration).getHealthStatus(e).then((e=>e(this.axios,this.basePath)))}getHotlinkProtectionSettingsMeta(e,t){return Wf(this.configuration).getHotlinkProtectionSettingsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getInstallation(e,t){return Wf(this.configuration).getInstallation(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationBackupsInfo(e,t,n){return Wf(this.configuration).getInstallationBackupsInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}getInstallationBackupsMeta(e,t,n){return Wf(this.configuration).getInstallationBackupsMeta(e,t,n).then((e=>e(this.axios,this.basePath)))}getInstallationLabelsMeta(e,t){return Wf(this.configuration).getInstallationLabelsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationPlugins(e,t){return Wf(this.configuration).getInstallationPlugins(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationSecurityPolicies(e,t){return Wf(this.configuration).getInstallationSecurityPolicies(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationStub(e,t,n){return Wf(this.configuration).getInstallationStub(e,t,n).then((e=>e(this.axios,this.basePath)))}getInstallationThemes(e,t){return Wf(this.configuration).getInstallationThemes(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationWpUserStub(e,t){return Wf(this.configuration).getInstallationWpUserStub(e,t).then((e=>e(this.axios,this.basePath)))}getInstallations(e,t,n,s){return Wf(this.configuration).getInstallations(e,t,n,s).then((e=>e(this.axios,this.basePath)))}getInstallationsPlugins(e,t,n,s,a,i,r,o,l){return Wf(this.configuration).getInstallationsPlugins(e,t,n,s,a,i,r,o,l).then((e=>e(this.axios,this.basePath)))}getInstallationsRemoveConfirmation(e,t){return Wf(this.configuration).getInstallationsRemoveConfirmation(e,t).then((e=>e(this.axios,this.basePath)))}getInstallationsThemes(e,t,n,s,a,i,r,o,l){return Wf(this.configuration).getInstallationsThemes(e,t,n,s,a,i,r,o,l).then((e=>e(this.axios,this.basePath)))}getIntegrationPluginSettings(e,t){return Wf(this.configuration).getIntegrationPluginSettings(e,t).then((e=>e(this.axios,this.basePath)))}getIntegrity(e,t){return Wf(this.configuration).getIntegrity(e,t).then((e=>e(this.axios,this.basePath)))}getLicenseInfo(e){return Wf(this.configuration).getLicenseInfo(e).then((e=>e(this.axios,this.basePath)))}getMaintenanceSettings(e,t){return Wf(this.configuration).getMaintenanceSettings(e,t).then((e=>e(this.axios,this.basePath)))}getMaintenanceTemplateCustomizationUrl(e,t){return Wf(this.configuration).getMaintenanceTemplateCustomizationUrl(e,t).then((e=>e(this.axios,this.basePath)))}getPanelInfo(e){return Wf(this.configuration).getPanelInfo(e).then((e=>e(this.axios,this.basePath)))}getPasswordProtection(e,t){return Wf(this.configuration).getPasswordProtection(e,t).then((e=>e(this.axios,this.basePath)))}getRemoteAgentInstallationProperties(e,t){return Wf(this.configuration).getRemoteAgentInstallationProperties(e,t).then((e=>e(this.axios,this.basePath)))}getRemoteServerInstallationProperties(e,t){return Wf(this.configuration).getRemoteServerInstallationProperties(e,t).then((e=>e(this.axios,this.basePath)))}getScannerLogs(e){return Wf(this.configuration).getScannerLogs(e).then((e=>e(this.axios,this.basePath)))}getSecurityMeasures(e){return Wf(this.configuration).getSecurityMeasures(e).then((e=>e(this.axios,this.basePath)))}getSecurityMeasuresPerInstallations(e,t,n,s,a){return Wf(this.configuration).getSecurityMeasuresPerInstallations(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}getServerInfo(e){return Wf(this.configuration).getServerInfo(e).then((e=>e(this.axios,this.basePath)))}getSetDetails(e,t){return Wf(this.configuration).getSetDetails(e,t).then((e=>e(this.axios,this.basePath)))}getSetsList(e){return Wf(this.configuration).getSetsList(e).then((e=>e(this.axios,this.basePath)))}getSetupDrawerSettings(e,t){return Wf(this.configuration).getSetupDrawerSettings(e,t).then((e=>e(this.axios,this.basePath)))}getSiteImportStub(e,t){return Wf(this.configuration).getSiteImportStub(e,t).then((e=>e(this.axios,this.basePath)))}getSmartPhpUpdateResult(e,t){return Wf(this.configuration).getSmartPhpUpdateResult(e,t).then((e=>e(this.axios,this.basePath)))}getSmartPhpUpdateStub(e,t){return Wf(this.configuration).getSmartPhpUpdateStub(e,t).then((e=>e(this.axios,this.basePath)))}getSmartUpdateResult(e,t){return Wf(this.configuration).getSmartUpdateResult(e,t).then((e=>e(this.axios,this.basePath)))}getSpecification(e,t){return Wf(this.configuration).getSpecification(e,t).then((e=>e(this.axios,this.basePath)))}getTaskSchedule(e,t){return Wf(this.configuration).getTaskSchedule(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionGuid(e,t){return Wf(this.configuration).getVirtualPatchesSubscriptionGuid(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionInfo(e,t){return Wf(this.configuration).getVirtualPatchesSubscriptionInfo(e,t).then((e=>e(this.axios,this.basePath)))}getVirtualPatchesSubscriptionPurchaseUrl(e,t,n){return Wf(this.configuration).getVirtualPatchesSubscriptionPurchaseUrl(e,t,n).then((e=>e(this.axios,this.basePath)))}getWordPressDebugSettings(e,t){return Wf(this.configuration).getWordPressDebugSettings(e,t).then((e=>e(this.axios,this.basePath)))}getWordPressDebugSettingsMeta(e,t){return Wf(this.configuration).getWordPressDebugSettingsMeta(e,t).then((e=>e(this.axios,this.basePath)))}getWpCliCommandsList(e,t){return Wf(this.configuration).getWpCliCommandsList(e,t).then((e=>e(this.axios,this.basePath)))}getWpCredentials(e,t){return Wf(this.configuration).getWpCredentials(e,t).then((e=>e(this.axios,this.basePath)))}getWpCronTakeoverMeta(e,t){return Wf(this.configuration).getWpCronTakeoverMeta(e,t).then((e=>e(this.axios,this.basePath)))}handleWordPressEvents(e,t,n){return Wf(this.configuration).handleWordPressEvents(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsActivateDeactivate(e,t,n,s){return Wf(this.configuration).instalationsPluginsActivateDeactivate(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsPluginsInfo(e,t,n){return Wf(this.configuration).instalationsPluginsInfo(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsInstall(e,t,n){return Wf(this.configuration).instalationsPluginsInstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsUninstall(e,t,n){return Wf(this.configuration).instalationsPluginsUninstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsPluginsUploadAndInstall(e,t,n,s){return Wf(this.configuration).instalationsPluginsUploadAndInstall(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsThemesActivate(e,t,n,s){return Wf(this.configuration).instalationsThemesActivate(e,t,n,s).then((e=>e(this.axios,this.basePath)))}instalationsThemesInstall(e,t,n){return Wf(this.configuration).instalationsThemesInstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsThemesUninstall(e,t,n){return Wf(this.configuration).instalationsThemesUninstall(e,t,n).then((e=>e(this.axios,this.basePath)))}instalationsThemesUploadAndInstall(e,t,n,s){return Wf(this.configuration).instalationsThemesUploadAndInstall(e,t,n,s).then((e=>e(this.axios,this.basePath)))}installIntegrationPlugin(e,t,n){return Wf(this.configuration).installIntegrationPlugin(e,t,n).then((e=>e(this.axios,this.basePath)))}installSet(e,t){return Wf(this.configuration).installSet(e,t).then((e=>e(this.axios,this.basePath)))}issueIntegrationPluginToken(e,t,n){return Wf(this.configuration).issueIntegrationPluginToken(e,t,n).then((e=>e(this.axios,this.basePath)))}launchUpdate(e,t,n,s,a){return Wf(this.configuration).launchUpdate(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}loginInstallation(e,t,n,s){return Wf(this.configuration).loginInstallation(e,t,n,s).then((e=>e(this.axios,this.basePath)))}massUpdateInstallationsAutoUpdatesSettings(e,t,n,s,a){return Wf(this.configuration).massUpdateInstallationsAutoUpdatesSettings(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}mitigateVulnerabilities(e,t,n,s,a){return Wf(this.configuration).mitigateVulnerabilities(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}receiveHelloFromAgent(e){return Wf(this.configuration).receiveHelloFromAgent(e).then((e=>e(this.axios,this.basePath)))}refreshAvailableUpdates(e,t){return Wf(this.configuration).refreshAvailableUpdates(e,t).then((e=>e(this.axios,this.basePath)))}removeInstallationBackups(e,t,n,s){return Wf(this.configuration).removeInstallationBackups(e,t,n,s).then((e=>e(this.axios,this.basePath)))}removeIntegrationPlugin(e,t,n){return Wf(this.configuration).removeIntegrationPlugin(e,t,n).then((e=>e(this.axios,this.basePath)))}removePluginFromSet(e,t,n,s){return Wf(this.configuration).removePluginFromSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}removeThemeFromSet(e,t,n,s){return Wf(this.configuration).removeThemeFromSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}resetHotlinkProtectionSettings(e,t,n){return Wf(this.configuration).resetHotlinkProtectionSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}resolveSecurityMeasures(e,t){return Wf(this.configuration).resolveSecurityMeasures(e,t).then((e=>e(this.axios,this.basePath)))}restoreInstallationBackup(e,t){return Wf(this.configuration).restoreInstallationBackup(e,t).then((e=>e(this.axios,this.basePath)))}restoreMaintenanceTemplate(e,t,n){return Wf(this.configuration).restoreMaintenanceTemplate(e,t,n).then((e=>e(this.axios,this.basePath)))}revertSecurityMeasures(e,t){return Wf(this.configuration).revertSecurityMeasures(e,t).then((e=>e(this.axios,this.basePath)))}runSmartPhpUpdate(e,t){return Wf(this.configuration).runSmartPhpUpdate(e,t).then((e=>e(this.axios,this.basePath)))}scanInstallations(e,t){return Wf(this.configuration).scanInstallations(e,t).then((e=>e(this.axios,this.basePath)))}setPluginsToSet(e,t,n){return Wf(this.configuration).setPluginsToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}setTaskSchedule(e,t,n){return Wf(this.configuration).setTaskSchedule(e,t,n).then((e=>e(this.axios,this.basePath)))}setThemesToSet(e,t,n){return Wf(this.configuration).setThemesToSet(e,t,n).then((e=>e(this.axios,this.basePath)))}siteImport(e,t){return Wf(this.configuration).siteImport(e,t).then((e=>e(this.axios,this.basePath)))}statsHireDeveloperTransition(e,t){return Wf(this.configuration).statsHireDeveloperTransition(e,t).then((e=>e(this.axios,this.basePath)))}upVoteForFeature(e,t){return Wf(this.configuration).upVoteForFeature(e,t).then((e=>e(this.axios,this.basePath)))}updateAutoUpdateSettings(e,t,n){return Wf(this.configuration).updateAutoUpdateSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateHotlinkProtectionSettings(e,t,n){return Wf(this.configuration).updateHotlinkProtectionSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateHotlinkProtectionStatus(e,t,n){return Wf(this.configuration).updateHotlinkProtectionStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateIndexingStatus(e,t,n){return Wf(this.configuration).updateIndexingStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationLabels(e,t,n){return Wf(this.configuration).updateInstallationLabels(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationSecurityPolicies(e,t,n){return Wf(this.configuration).updateInstallationSecurityPolicies(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationsAutoUpdatesSettings(e,t,n,s,a){return Wf(this.configuration).updateInstallationsAutoUpdatesSettings(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}updateInstallationsAutoUpdatesSettingsV2(e,t,n,s,a){return Wf(this.configuration).updateInstallationsAutoUpdatesSettingsV2(e,t,n,s,a).then((e=>e(this.axios,this.basePath)))}updateInstallationsPlugins(e,t,n){return Wf(this.configuration).updateInstallationsPlugins(e,t,n).then((e=>e(this.axios,this.basePath)))}updateInstallationsThemes(e,t,n){return Wf(this.configuration).updateInstallationsThemes(e,t,n).then((e=>e(this.axios,this.basePath)))}updateLicenseInfo(e,t){return Wf(this.configuration).updateLicenseInfo(e,t).then((e=>e(this.axios,this.basePath)))}updateMaintenanceSettings(e,t,n){return Wf(this.configuration).updateMaintenanceSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateMaintenanceStatus(e,t,n){return Wf(this.configuration).updateMaintenanceStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateNginxCachingStatus(e,t,n){return Wf(this.configuration).updateNginxCachingStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updatePasswordProtection(e,t,n){return Wf(this.configuration).updatePasswordProtection(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSet(e,t,n){return Wf(this.configuration).updateSet(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSetupDrawerSettings(e,t,n){return Wf(this.configuration).updateSetupDrawerSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateSmartUpdatesStatus(e,t,n){return Wf(this.configuration).updateSmartUpdatesStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateVirtualPatchesProtectionStatus(e,t,n){return Wf(this.configuration).updateVirtualPatchesProtectionStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateVulnerabilityFiltering(e,t,n){return Wf(this.configuration).updateVulnerabilityFiltering(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWordPressDebugSettings(e,t,n){return Wf(this.configuration).updateWordPressDebugSettings(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWordPressDebugStatus(e,t,n){return Wf(this.configuration).updateWordPressDebugStatus(e,t,n).then((e=>e(this.axios,this.basePath)))}updateWpCronTakeover(e,t,n){return Wf(this.configuration).updateWpCronTakeover(e,t,n).then((e=>e(this.axios,this.basePath)))}uploadPluginToSet(e,t,n,s){return Wf(this.configuration).uploadPluginToSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}uploadThemeToSet(e,t,n,s){return Wf(this.configuration).uploadThemeToSet(e,t,n,s).then((e=>e(this.axios,this.basePath)))}validateClonePath(e,t,n){return Wf(this.configuration).validateClonePath(e,t,n).then((e=>e(this.axios,this.basePath)))}validateInstallationPath(e,t){return Wf(this.configuration).validateInstallationPath(e,t).then((e=>e(this.axios,this.basePath)))}}class zf{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.basePath=e.basePath,this.baseOptions=e.baseOptions,this.formDataCtor=e.formDataCtor}isJsonMime(e){const t=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!==e&&(t.test(e)||"application/json-patch+json"===e.toLowerCase())}}let qf=null,Gf=null,Kf="/",Qf=e=>{};const Jf=(e,t,n=!1)=>{Kf=Hg(e),Qf=t,qf=Fg.create({baseURL:Kf,headers:Vg({"Is-Webspace-Context":n.toString()})}),qf.interceptors.response.use((e=>e),(e=>Kg(Qf,e)));const s=new zf({basePath:Kf});return Gf=new $f(s,void 0,qf)},Xf=e=>t=>{if(!Wg(e.response))return;const n=(s=e.response,Wg(s)&&(null==s?void 0:s.data.formErrors)||null);var s;if(!n||0===Object.keys(n).length)return;const a=e=>{"string"==typeof e?t(rb("error",e)):Array.isArray(e)&&e.filter((e=>!!e)).forEach((e=>t(rb("error",e))))};Object.values(n).forEach((e=>{Object.values(e).forEach((e=>{"string"==typeof e||Array.isArray(e)?a(e):Object.values(e).forEach((e=>{a(e)}))}))}))},Zf=e=>t=>{if(!$g(e.response))return;const n=(s=e.response,$g(s)&&(null==s?void 0:s.data.meta)||null);var s;(null==n?void 0:n.message)&&t(rb("error",n.message))},eb=(e,t,n)=>s=>{switch(bp(e).forEach((({status:e,message:t})=>s(rb(e,t)))),e.status){case Mp:if(t)return Promise.resolve(t()).then((()=>e));break;case Ep:if(n)return Promise.resolve(n()).then((()=>e))}return Promise.resolve(e)},tb=()=>()=>bf.session.check(),nb=e=>t=>t(rb(Np,e)),sb=e=>t=>t(rb("info",e)),ab=e=>t=>t(rb(Bp,e)),ib=e=>t=>t(rb(Fp,e)),rb=fp(oh,"intent","message"),ob=fp(lh),lb=fp(ch,"search"),cb=fp(hh,"options","urls"),ub=()=>e=>bf.app.disableSmartUpdatePromoForInstances().then((({data:t})=>{e(eb(t,(()=>e({type:uh}))))})),db=e=>t=>bf.app.disableSmartUpdatePromoForUpdatesScreen(mp().stringify(e)).then((({data:e})=>{t(eb(e,(()=>t({type:dh}))))})),pb=e=>t=>bf.app.disableSmartUpdatePromoForMultipleSitesUpdatesScreen(mp().stringify(e)).then((({data:e})=>{t(eb(e,(()=>t({type:ph}))))})),hb=()=>e=>bf.app.getInitialData().then((({data:t})=>{e(eb(t,(()=>e(cb(t.data.options,t.data.urls)))))})),mb=e=>t=>t({type:gh,index:e}),gb=e=>t=>{Gf.closeGlobalAlert({alertId:e}).catch(),t({type:bh,alertId:e})},fb=()=>e=>(e(bb(null)),Gf.getChangelogs().then((({data:t})=>(e(bb(t.changelog)),t.changelog))).catch((t=>(e(Zf(t)),Promise.reject())))),bb=fp(mh,"changelog"),vb=()=>e=>(e(Sb(null)),bf.app.getPremiumUsers().then((({data:t})=>(e(eb(t,(()=>e(Sb(t.data.premiumUsers))))),t)))),yb=e=>t=>bf.app.getWhmcsUpsellLink(e).then((({data:e})=>(t(eb(e)),e))),Sb=fp(fh,"premiumUsers"),wb=e=>t=>Gf.upVoteForFeature({featureName:e}).then((()=>{t({type:vh,featureName:e})})),xb=()=>e=>Gf.getLicenseInfo().then((({data:t})=>{e({type:yh,info:t})})),Ab=()=>e=>Gf.updateLicenseInfo().then((({data:t})=>(e({type:yh,info:t}),t))).catch((t=>(e(Zf(t)),Promise.reject()))),_b=e=>{const t=`${e}/get-initial-data`;return Fg.get(t,{headers:{Accept:"application/json","Cache-Control":"no-cache",Credentials:"same-origin"}}).then((({data:e})=>{if("error"===e.status)throw new Error(e.message);if(void 0===e.data||void 0===e.data.urls||void 0===e.data.options||void 0===e.data.unpaidFeatures||void 0===e.data.buildMeta)throw new Error("Initial data load error: some required fields are not provided");return e.data}))};let kb=!1;const jb=()=>{if(!kb){const e=Date.now();if(!(window&&window.performance&&window.performance.timing&&window.performance.timing.connectStart))return;if("/"!==window.WPT_INITIAL_ROUTE_PATHNAME&&"/list"!==window.WPT_INITIAL_ROUTE_PATHNAME)return;const t=window.performance.timing.connectStart,n=e-t;kb=!0,setTimeout((()=>bf.app.sendMainPagePerfStat(n,Math.floor(t/1e3)).catch((e=>window.console.warn(`Failed to record page load statistics ${e}`)))),2e3)}};var Cb=r(14644);const Ib="checkbox",Tb="settings/OPEN_DRAWER",Db="settings/CLOSE_DRAWER",Pb="settings/SETTINGS_REQUESTED",Ob="settings/SETTINGS_LOADED",Lb="settings/SETTINGS_LOADING_ERROR",Mb="settings/SETTINGS_SUBMITTED",Eb="settings/SETTINGS_UPDATED",Rb="settings/SETTINGS_UPDATE_ERROR",Ub=()=>(e,t)=>{t().settings.status===Qp&&e(Nb())},Nb=()=>e=>(bf.settings.load().then((({data:t})=>{const n=bp(t);if(t.status===Ep)return void e(Wb(n));const s=Ap(t,"settings");s&&e(Vb(s,n))})),e(Hb())),Fb=e=>t=>(t($b()),bf.settings.update(mp().stringify(e)).then((({data:e})=>{const n=bp(e);if(e.status===Ep)return void t(qb(n,e.formErrors));const s=Ap(e,"settings");t(zb(s,n))}))),Bb=fp(Tb),Yb=fp(Db),Hb=fp(Pb),Vb=fp(Ob,"settings","messages"),Wb=fp(Lb,"messages"),$b=fp(Mb),zb=fp(Eb,"settings","messages"),qb=fp(Rb,"messages","formErrors"),Gb="instance-remove-confirmation-button-yes",Kb="instance-detach-confirmation-button-yes",Qb="instances-dialog",Jb="instance-remove",Xb="instance-check-security",Zb="instance-detach",ev="remote-instance-properties",tv="remote-server-drawer",nv="remote-agent-instance-properties",sv="wpt-whm-home-widget",av="instance-tab-list",iv="instance-database-settings-phpmyadmin-link",rv="update-button",ov="update-button-with-confirmation",lv="update-settings-submit-button",cv="btn-upgrade",uv="virtual-patches-switcher",dv="virtual-patches-switcher-prompt-submit-button",pv="refresh-button",hv="btn-send",mv="instance-link-files",gv="clone-path",fv="toolbar-activate-button",bv="install-drawer-search-input",vv="install-drawer-search-button",yv="found-assets-list",Sv="instance-backups-drawer-remove-backup",wv="instance-security-vulnerabilities-virtual-patches-disabled-widget",xv="instance-asset-vulnerable-link",Av="instances-security-vulnerabilities-virtual-patches-available-action",_v="instances-security-vulnerabilities-virtual-patches-apply-confirm-button",kv="asset-vulnerability-label",jv="wpt-virtual-patching-upsell-dialog-buy-button",Cv="wpt-security-widgets",Iv="vulnerability-protection-widget",Tv="vulnerability-protection-purchase-enable",Dv="updates-widget",Pv="updates-widget-select-updates",Ov="virtual-patches-shield-button",Lv="virtual-patches-shield-apply-confirm-button",Mv=(e,t={})=>{let n;try{n=Jsw&&Jsw.UAT}catch(e){}n&&n.dispatchAction(e,t)},Ev=e=>{let t;try{t=Jsw&&Jsw.UAT}catch(e){}if(!t||!t.getConfig())return e;const n=new URL(e,window.location.href),s=new URLSearchParams(n.search),{instanceId:a,accountId:i,sessionId:r}=t.getConfig();return s.set("ux",`${a}.${i}.${r}`),n.search=s.toString(),n.toString()},Rv=Fc((e=>({useWhmcsUpsellLinks:e.app.options.useWhmcsUpsellLinks})),{getWhmcsUpsellLink:yb})((({purchaseLicenseUrl:e,getWhmcsUpsellLink:t,onTogglePopover:n,uatAction:s,children:a,useWhmcsUpsellLinks:i,installationId:r,featureType:o,onClick:l,intent:c="success"})=>{const u=cp();return i&&!o?(0,L.jsx)(ut,{intent:c,onClick:()=>(s&&Mv(s),(({installationId:e,getWhmcsUpsellLink:t,translate:n,purchaseLicenseUrl:s})=>{const a=window.open("","_blank");a&&(a.document.body.innerText=n("general-ui.loadingUpgradePage"),t(e).then((({data:{url:e}={}})=>{const t=e||s;t||a.close(),a.location=t})))})({installationId:r,getWhmcsUpsellLink:t,translate:u,purchaseLicenseUrl:e}),null==l||l(),Ip(n)),icon:"lock-open","data-test-id":cv,children:a}):(0,L.jsx)(ut,{component:"a",href:e,target:"_blank",intent:c,onClick:()=>(s&&Mv(s),null==l||l(),Ip(n)),icon:"lock-open","data-test-id":cv,children:a})})),Uv=({purchaseLicenseUrl:e,premiumFeaturesUrl:t,onTogglePopover:n,children:s,baseClassName:a=`${th}paid-feature-desc`,uatAction:i,installationId:r})=>(0,L.jsxs)(ur,{className:a,"data-test-id":"license-warning",children:[(0,L.jsxs)(hr,{children:[(0,L.jsx)(xe,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,L.jsx)(da,{children:(0,L.jsx)(pp,{content:"paidFeatureDesc.title"})})]}),(0,L.jsx)(pr,{children:s}),(0,L.jsxs)(dr,{children:[(0,L.jsx)(Rv,{purchaseLicenseUrl:e,uatAction:i,onTogglePopover:n,installationId:r,children:(0,L.jsx)(pp,{content:"paidFeatureDesc.buttonPurchase"})}),t&&(0,L.jsx)(ut,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,L.jsx)(pp,{content:"paidFeatureDesc.buttonDiscoverAllPremiumFeatures"})})]})]}),Nv=e=>{const t=R.forwardRef(((t,n)=>{const s=cp();return(0,L.jsx)(e,Object.assign({},t,{translate:s,ref:n}))}));return t.displayName=`withTranslate(${e.displayName||e.name||"Component"})`,t};class Fv extends R.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.props.isAbleToClick&&this.setState((e=>({showPopover:!e.showPopover}))),this.getPopover=()=>{const{upgradeUrl:e,premiumFeaturesUrl:t,description:n,uatAction:s,installationId:a,translate:i}=this.props,{showPopover:r}=this.state;return(0,L.jsx)(Ks,{visible:r,width:"xs",onClose:this.handleTogglePopover,target:(0,L.jsx)(_e,{onClick:this.handleTogglePopover,icon:"lock-closed","aria-label":i("list-ui.instances.icons.paidFeature.ariaLabel")}),children:(0,L.jsx)(Uv,{uatAction:s,purchaseLicenseUrl:e,premiumFeaturesUrl:t,onTogglePopover:this.handleTogglePopover,installationId:a,children:n})})},this.state={isUnpaid:!!e.unpaidFeatures[e.featureName],showPopover:!1}}render(){const{className:e,baseClassName:t,children:n,isInstanceFeatureDisabled:s}=this.props,{isUnpaid:a}=this.state;let i=!1;return null!=s&&(i=s),a||i?(0,L.jsxs)("span",{className:F()(t,e),children:[this.getPopover()," ",n]}):(0,L.jsx)("span",{className:F()(t,e),children:n})}}Fv.defaultProps={children:void 0,isAbleToClick:!0,className:void 0,uatAction:void 0,baseClassName:`${th}paid-feature`,isInstanceFeatureDisabled:void 0};const Bv=Fc(((e,t)=>({upgradeUrl:e.app.urls.featuresBuyLinks[t.featureName],unpaidFeatures:e.app.unpaidFeatures,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),null,null,{forwardRef:!0})(Nv(Fv)),Yv=({link:e,inNewWindow:t,goToUri:n,accountUsername:s,onClick:a})=>Wv()?{onClick:t=>gp(t,(()=>(null==a||a(),n(e,s))))}:{href:`${Hv()}/${e}`,target:t?"_blank":"_self",onClick:a},Hv=()=>`${window.location.origin}${$v()}`,Vv={2082:"cpanel",2083:"cpanel",2086:"whostmgr",2087:"whostmgr",2095:"webmail",2096:"webmail",frontend:"cpanel",webmail:"webmail"},Wv=()=>{const e=location.pathname.match(/((?:\/cpsess\d+)?)(?:\/([^/]+))?/)||[],t=Vv[location.port]||Vv[e[2]]||"whostmgr";return/wh/i.test(t)},$v=()=>(location.pathname.match(/((?:\/cpsess\d+)?)(?:\/([^/]+))?/)||[])[1]||"",zv="SHOW_INSTANCES_SMART_UPDATE_PROMO",qv="CLICK_EXT_BUY_FROM_MULTIPLE_UPDATE_FORM",Gv="CLICK_EXT_BUY_FROM_INSTANCE_CARD",Kv="CLICK_EXT_BUY_FROM_INSTANCES_LIST",Qv="CLICK_EXT_BUY_FROM_INSTANCE_SECURITY",Jv="CLICK_EXT_BUY_FROM_INSTANCES_SECURITY",Xv="instances/SET_FILTER",Zv="instances/REMOVE_INSTALLATIONS",ey="instances/SET_INSTALLATION_NAME",ty="instances/INSTANCE_PASSWORD_PROTECTION_UPDATED",ny="instances/ADD_ASSETS_TO_REMOVAL",sy="instances/REMOVE_ASSETS_FROM_REMOVAL",ay="instances/ADD_ASSET_TO_CHANGING_STATUS",iy="instances/REMOVE_ASSET_FROM_CHANGING_STATUS",ry="instances/TOGGLE_DEBUG",oy="instances/TOGGLE_INDEXING",ly="instances/NGINX_CACHING_INSTALLATION_UPDATE",cy="instances/SMART_UPDATES_INSTALLATION_UPDATE",uy="instances/WP_CRON_TAKEOVER_UPDATED",dy="instances/TOGGLE_HOTLINK_PROTECTION",py="instances/SET_MAINTENANCE_STATUS",hy="instances/UPDATE_ITEMS_STARTED",my="instances/SET_AUTO_UPDATES_SETTINGS_FINISHED_SUCCESSFULLY",gy="instances/SMART_UPDATES_STARTED",fy="instances/DISCARD_SMART_UPDATES",by="instances/APPLY_SMART_UPDATES_STARTED",vy="instances/SET_SCREENSHOT",yy="instances/SET_IS_SCREENSHOT_LOADING",Sy="instances/RESTORE_SNAPSHOT_STARTED",wy="instances/DELETE_SNAPSHOT",xy="instances/SET_IS_NEED_TO_UPDATE_INSTANCES_LIST",Ay="instances/SET_IS_NEED_TO_UPDATE_INSTANCES_FILTER",_y="instances/RESET_INSTANCES_LIST",ky="instances/CONNECT_REMOTE_AGENT_INSTANCE_STARTED",jy="instances/SCAN_STARTED",Cy="instances/SET_SELECTED_INSTANCE_ID",Iy="instances/SET_EXPANDED_INSTANCE_ID",Ty="instances/SET_KEPT_EXPANDED_INSTANCE_IDS",Dy="instances/SET_LAST_INSTALLED_INSTANCE_ID",Py="instances/MASS_CHECK_UPDATES_STARTED",Oy="instances/UPDATE_STORES_ON_MASS_UPDATES_RECEIVED",Ly="instances/SET_INSTANCE_ACTIVE_TAB",My="instances/INSTALLATIONS_LOADED",Ey="instances/INSTALLATIONS_RELOADED",Ry="instances/SET_INSTALLATION_LABELS",Uy="instances/INSTALLATION_STARTED",Ny="instances/SET_INSTALLATION_AFTER_INSTANCE_INSTALL_STARTED",Fy="instances/LOGIN_TO_INSTANCE",By="instances/LOGIN_TO_INSTANCE_PERFORMED",Yy="instances/SYNCHRONIZE_SITE_URL",Hy="instances/SET_ADMIN_SETTINGS_FINISHED",Vy="instances/SET_MAINTENANCE_FULL_MODE",Wy="instances/UPDATE_INSTALLATIONS_VULNERABILITY_STATUSES",$y="instances/UPDATE_INSTALLATIONS_SECURITY_RISK_SCORES",zy="instances/CHECK_INSTALLATIONS_VULNERABILITY_FINISHED",qy="instances/CHECK_INSTALLATIONS_VULNERABILITY_STARTED",Gy="instances/SET_INSTALLATION_PHP_HANDLER",Ky="instances/SMART_PHP_UPDATE_STARTED",Qy="instances/SMART_PHP_UPDATE_TASK_STATUS_UPDATED",Jy="installations/INTEGRITY_RECEIVED",Xy="installations/APPEND_DOMAIN_INSTALLATION_IDS",Zy="installations/VIRTUAL_PATCHING_SUBSCRIPTION_UPDATED",eS="installations/INSTALLATION_INTEGRATION_PLUGIN_STARTED",tS="installations/REMOVE_INTEGRATION_PLUGIN_STARTED",nS="instances/SITE_IMPORT_STARTED",sS=null,aS="core",iS="plugins",rS="themes",oS="updates/MASS_UPDATES_RECEIVED",lS="updates/CLEAN_UP_STORE";class cS extends Error{constructor(...e){super(e)}}const uS=(e,t)=>n=>e().then((e=>(n(eb(e.data,(()=>t(n,e.data)))),e.data))),dS=(e,t)=>uS(e,((e,n)=>e(t(n)))),pS="cpanel/goto-uri",hS="cpanel/reset-goto-cpanel",mS=(e,t)=>n=>n({type:pS,applicationUri:e,accountUsername:t}),gS="wpt-storage-",fS="expanded-instances",bS=e=>{try{const t=localStorage.getItem(gS+e);if(null===t)return;return JSON.parse(t)}catch(e){return void console.error(e)}},vS=(e,t)=>{try{const n=JSON.stringify(t);localStorage.setItem(gS+e,n)}catch(e){console.error(e)}},yS=()=>{const e=bS(fS);return e&&e instanceof Object?e:{}},SS=e=>{e instanceof Object&&vS(fS,e)};var wS=r(95093),xS=r.n(wS);const AS="plugins/REMOVE_PLUGINS",_S="plugins/SET_PLUGIN_STATUS",kS="plugins/SET_PLUGINS_AUTO_UPDATES",jS="plugins/SET_INSTALLATION_PLUGINS",CS="plugins/ADD_INSTALLATION_PLUGINS",IS="plugins/UPDATE_PLUGINS_VULNERABILITY_STATUSES",TS="vulnerabilities/INSTALLATIONS_VULNERABILITY_STATUSES_LOADED_FROM_API",DS="vulnerabilities/INSTALLATIONS_VULNERABILITY_STATUSES_RELOADED_FROM_API",PS="vulnerabilities/TOGGLE_VULNERABILITIES_MITIGATIONS",OS="vulnerabilities/TOGGLE_VULNERABILITIES_MITIGATIONS_FINISHED",LS="vulnerabilities/UPDATE_VIRTUAL_PATCHES_STATUS_STARTED",MS="vulnerabilities/UPDATE_VIRTUAL_PATCHES_STATUS_FINISHED",ES="vulnerabilities/INSTALLATIONS_SECURITY_RISK_STATUSES_RELOADED_FROM_API",RS="themes/REMOVE_THEMES",US="themes/THEME_ACTIVATED",NS="plugins/SET_THEMES_AUTO_UPDATES",FS="themes/SET_INSTALLATION_THEMES",BS="plugins/ADD_INSTALLATION_THEMES",YS="themes/UPDATE_THEMES_VULNERABILITY_STATUSES",HS="wordpress",VS="plugin",WS="theme",$S=e=>e>=8?"danger":e>=6?"warning":e>0?"inactive":"success",zS=(e,t)=>{const n=$S(e);switch(n){case"danger":return(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:n,size:t});case"warning":return(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:n,size:t});case"success":return(0,L.jsx)(xe,{name:"check-mark-circle-filled",intent:n,size:t});default:return}},qS=(e,t=[])=>e.some((e=>!e.mitigations.some((e=>!t.includes(e.type)&&e.applied)))),GS=(e,t,n=[])=>{const s=t.find((t=>t.slug===e));return!!s&&qS(s.vulnerabilities,n)},KS=(e,t)=>{const n=new Map,s=(e,t,s,a,i,r,o,l,c)=>{const u=n.get(e),d=u?[...u.installationsIds,c]:[c];if(void 0===u&&o.length>0||void 0!==u&&u.securityRisk<l){const c=o.map((e=>Object.assign(Object.assign({},e),{mitigations:e.mitigations.map((e=>Object.assign({},e)))})));n.set(e,{key:e,securityRisk:l,type:t,assetSlug:s,assetTitle:a,version:i,updateVersion:r,vulnerabilities:c,installationsIds:d})}else void 0!==u&&n.set(e,Object.assign(Object.assign({},u),{installationsIds:d}))};return e.forEach((e=>{const n=t.find((t=>t.id===e.id));n&&(e.plugins.forEach((t=>{if(!t.status)return;const a=n.plugins.find((e=>e.slug===t.slug));a&&s(`${VS}-${t.slug}-${t.version}`,VS,t.slug,t.title,t.version,t.availableVersion,t.vulnerabilities,a.securityRisk.normalized,e.id)})),e.themes.forEach((t=>{if(!t.status)return;const a=n.themes.find((e=>e.slug===t.slug));a&&s(`${WS}-${t.slug}-${t.version}`,WS,t.slug,t.title,t.version,t.availableVersion,t.vulnerabilities,a.securityRisk.normalized,e.id)})),s(`${HS}-${e.core.version}`,HS,null,null,e.core.version,e.core.availableMinorVersion,e.core.vulnerabilities,n.core.securityRisk.normalized,e.id))})),[...n.values()]},QS={[Bf]:1,[Yf]:2,[Hf]:3,[Vf]:4},JS=e=>{var t;let n=null,s=0;for(const{riskRank:a}of e){const e=null!==(t=QS[a])&&void 0!==t?t:0;e>s&&(s=e,n=a)}return n};fp(TS,"installationsVulnerabilityStatuses");const XS=fp(DS,"installationsVulnerabilityStatuses"),ZS=fp(ES,"installationsSecurityRiskStatuses"),ew=e=>t=>Gf.fetchInstallationsVulnerabilityStatuses(e,!0,!0,!0).then((({data:e})=>{return t(XS(e)),t((n=e,e=>{e({type:Wy,vulnerabilityStatuses:n.reduce(((e,t)=>{const n=t.plugins.filter((e=>e.availableVersion)).length,s=t.themes.filter((e=>e.availableVersion)).length,a=[...t.core.vulnerabilities,...t.plugins.filter((e=>e.status)).flatMap((e=>e.vulnerabilities)),...t.themes.filter((e=>e.status)).flatMap((e=>e.vulnerabilities))],i=a.filter((e=>!e.mitigations.some((e=>e.applied)))),r=JS(i);return e[`${t.id}`]={vulnerable:t.vulnerable,version:t.core.version,availableVersion:t.core.availableVersion,amountOfPluginsWithUpdates:n,amountOfThemesWithUpdates:s,highestActiveVulnerabilityRiskRank:r},e}),{})}),e({type:IS,pluginsVulnerabilityStatuses:n.reduce(((e,t)=>(e[`${t.id}`]=t.plugins.reduce(((e,t)=>(e[t.slug]={vulnerable:t.status&&qS(t.vulnerabilities),version:t.version,availableVersion:t.availableVersion},e)),{}),e)),{})}),e({type:YS,themesVulnerabilityStatuses:n.reduce(((e,t)=>(e[`${t.id}`]=t.themes.reduce(((e,t)=>(e[t.slug]={vulnerable:t.status&&qS(t.vulnerabilities),version:t.version,availableVersion:t.availableVersion},e)),{}),e)),{})})})),Promise.resolve(e);var n})).catch((e=>(t(Zf(e)),Promise.reject()))),tw=e=>t=>Gf.fetchInstallationsVulnerabilityStatuses(e,!0,!0,!0).then((({data:e})=>(t(XS(e)),Promise.resolve(e)))).catch((e=>(t(Zf(e)),Promise.reject()))),nw=e=>t=>Gf.fetchInstallationsSecurityRiskStatuses(e,!0,!0,!0).then((({data:e})=>(t(ZS(e)),t({type:$y,installationsSecurityRiskStatuses:e}),Promise.resolve(e)))).catch((e=>(t(Zf(e)),Promise.reject()))),sw=e=>t=>{const n=e.map((e=>e.installationsIds.map((t=>({installationId:t,mitigations:e.mitigations}))))).flat();return Gf.mitigateVulnerabilities(n).then((({data:{task:n}})=>{const s=vp(n);return t({type:PS,task:s,vulnerabilities:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()):Promise.reject(e)))},aw=(e,t)=>n=>Gf.updateVirtualPatchesProtectionStatus(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:s})=>(t||n({type:LS,installationIds:e.installationsIds,task:s.task}),s))),iw=fp(ay,"slug","instanceId"),rw=fp(iy,"slug","instanceId"),ow=fp(ny,"instanceId","itemsIds"),lw=fp(sy,"instanceId","itemsIds"),cw=fp(_S,"slug","installationId","status"),uw=fp(AS,"installationId","slugs"),dw=(e,t)=>n=>{n(iw(e.slug,e.instanceId));const s={status:t};return Gf.instalationsPluginsActivateDeactivate(e.instanceId,e.slug,s).then((({data:t})=>(n(cw(e.slug,e.instanceId,t.status)),n(rw(e.slug,e.instanceId)),t.status))).catch((e=>(n(Zf(e)),Promise.reject())))},pw=(e,t)=>n=>(n(ow(e,t)),Gf.instalationsPluginsUninstall(e,t).then((()=>(n(uw(e,t)),n(lw(e,t)),n(ew([e]))))).catch((e=>(n(Zf(e)),Promise.reject())))),hw=(e,t,n)=>s=>{const a=t.map((e=>({slug:e.slug,autoUpdates:n}))),i=t.map((e=>e.slug));return Gf.updateInstallationsPlugins(e,a).then((({data:t})=>(s({type:kS,installationId:e,pluginsSlugs:i,value:n}),t))).catch((e=>(s(Zf(e)),Promise.reject())))},mw=e=>t=>Gf.getInstallationPlugins(e).then((({data:n})=>(t({type:jS,installationId:e,data:n}),n))).catch((e=>(t(Zf(e)),Promise.reject()))),gw=e=>t=>Gf.instalationsPluginsInfo(e.instanceId,e.slug).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),fw=fp(ay,"slug","instanceId"),bw=fp(iy,"slug","instanceId"),vw=fp(ny,"instanceId","itemsIds"),yw=fp(sy,"instanceId","itemsIds"),Sw=fp(US,"slug","installationId"),ww=fp(RS,"installationId","slugs"),xw=e=>t=>(t(fw(e.slug,e.instanceId)),Gf.instalationsThemesActivate(e.instanceId,e.slug,{status:!0}).then((({data:n})=>(n.status&&(t(Sw(e.slug,e.instanceId)),t(_x(e.instanceId))),t(bw(e.slug,e.instanceId)),n.status))).catch((e=>(t(Zf(e)),Promise.reject())))),Aw=(e,t)=>n=>(n(vw(e,t)),Gf.instalationsThemesUninstall(e,t).then((()=>{n(ww(e,t)),n(yw(e,t))})).catch((e=>(n(Zf(e)),Promise.reject())))),_w=(e,t,n)=>s=>{const a=t.map((e=>e.slug)),i=t.map((e=>({slug:e.slug,autoUpdates:n})));return Gf.updateInstallationsThemes(e,i).then((({data:t})=>(s({type:NS,installationId:e,themesSlugs:a,value:n}),t))).catch((e=>(s(Zf(e)),Promise.reject())))},kw=e=>t=>Gf.getInstallationThemes(e).then((({data:n})=>(t({type:FS,installationId:e,data:n}),n))).catch((e=>(t(Zf(e)),Promise.reject()))),jw="install-theme",Cw="uninstall-theme",Iw="update-theme",Tw="activate-theme",Dw="remove-theme",Pw="install-plugin",Ow="uninstall-plugin",Lw="update-plugin",Mw="activate-plugin",Ew="deactivate-plugin",Rw="remove-plugin",Uw="install-custom-plugin-from-plugins-tab",Nw="install-custom-theme-from-themes-tab",Fw="task_install",Bw="synchronize-site-url",Yw="task\\installset",Hw="clone-instance",Vw="reinstall-core",Ww="update-instance",$w="task\\updateitems",zw="smart-php-update-instance",qw="check-vulnerability",Gw="mass-check-updates",Kw="smart-update-instance",Qw="vulnerability-mitigation",Jw="apply-virtual-patches",Xw="disable-virtual-patches",Zw="install-integration-plugin",ex="remove-integration-plugin",tx="site-import",nx={delete:!0},sx={confirm:!0},ax=e=>t=>Promise.all([t(Bx(e)),t(mw(e)),t(kw(e)),t(_x(e))]),ix=e=>t=>bf.instance.refresh(e).then((({data:n})=>t(eb(n,(()=>Promise.all([t(Bx(e)),t(mw(e)),t(kw(e)),t(_x(e))])))))),rx=(e,t)=>n=>bf.instance.switchPhpHandler(e,t).then((({data:t})=>n(eb(t,(()=>n(Bx(e))))))),ox=e=>t=>Gf.getAvailablePhpHandlers(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),lx=(e,t={removeDb:!1,removeUser:!1,removeActionLog:!1,checkShared:!1})=>n=>{const s=new FormData;return s.append("removeDb",""+(t.removeDb?1:0)),s.append("removeDbUser",""+(t.removeUser?1:0)),s.append("removeActionLog",""+(t.removeActionLog?1:0)),s.append("checkShared",""+(t.checkShared?1:0)),e.length&&e.forEach(((e,t)=>s.append(`ids[${t}]`,`${e}`))),bf.instance.remove(s).then((({data:t})=>(n(eb(t,(()=>n(Ix(e))))),t)))},cx=(e,t)=>n=>Gf.createMaintenancePreview(e,t).then((({data:e})=>(e.url&&window.open(e.url,"_blank"),e))).catch((e=>(n(Zf(e)),Promise.reject()))),ux=(e,t)=>n=>n({type:Vy,instanceId:e,value:t}),dx=(e,t)=>n=>Gf.getMaintenanceTemplateCustomizationUrl(e).then((({data:e})=>{e.url?n(mS(e.url,t)):e.url&&window.open(e.url,"_blank")})).catch((e=>(n(Zf(e)),Promise.reject()))),px=e=>t=>{const n=new FormData;return e.length&&e.forEach(((e,t)=>n.append(`ids[${t}]`,`${e}`))),bf.instance.detach(n).then((({data:e})=>(t(eb(e,(()=>t(Ix(e.data.detachedInstances))))),e))).finally((()=>t(hx())))},hx=fp("instances/INSTANCES_DETACH_FINISHED"),mx=(e,t)=>n=>Gf.updateIndexingStatus(e,{status:t}).then((({data:{status:t}})=>(n(fp(oy,"installationId","status")(e,t)),t))).catch((e=>(n(Zf(e)),Promise.reject()))),gx=(e,t)=>n=>Gf.updateWpCronTakeover(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:t})=>{var s;return n(fp(uy,"installationId","values")(e,{status:t.status})),null!==(s=t.status)&&void 0!==s?s:Promise.reject()})),fx=e=>t=>Gf.getWpCronTakeoverMeta(e).catch((e=>422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))).then((({data:e})=>e)),bx=(e,t)=>n=>Gf.updateHotlinkProtectionStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:{status:t}})=>(n(fp(dy,"installationId","status")(e,t)),t))),vx=e=>t=>Gf.getHotlinkProtectionSettingsMeta(e).catch((e=>(t(Zf(e)),Promise.reject()))).then((({data:e})=>e)),yx=(e,t)=>n=>Gf.updateHotlinkProtectionSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:e})=>e)),Sx=fp(py,"instanceId","status"),wx=(e,t,n)=>s=>Gf.updateMaintenanceStatus(e,{status:t}).then((({data:a})=>(a.status!==n&&(s(Sx(e,t)),s(_x(e))),a))).catch((e=>(s(Zf(e)),Promise.reject()))),xx=fp(cy,"instanceId","values"),Ax=(e,t)=>n=>Gf.updateSmartUpdatesStatus(e,{status:t}).catch((e=>(n(Zf(e)),Promise.reject()))).then((({data:t})=>(n(xx(e,t)),t))),_x=e=>t=>(t(jx(e,!0)),bf.instance.refreshScreenshot(e).then((({data:n})=>(t(eb(n,(()=>t(kx(e,{createdAt:n.data.screenshotDateTime,url:n.data.screenshotUrl}))))),n))).finally((()=>{t(jx(e,!1))}))),kx=fp(vy,"instanceId","screenshot"),jx=fp(yy,"instanceId","isScreenShotLoading"),Cx=e=>t=>Gf.getInstallationsRemoveConfirmation(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),Ix=fp(Zv,"installationsIds"),Tx=()=>e=>Gf.scanInstallations({}).catch((t=>(e(Zf(t)),Promise.reject()))).then((({data:t})=>(e(Dx(t.task)),t))),Dx=e=>t=>t({type:jy,task:e}),Px=()=>e=>e({type:"instances/SCAN_FINISHED"}),Ox=e=>t=>Gf.refreshAvailableUpdates({installationsIds:e,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:e}})=>(t({type:Py,task:e}),e))).catch((e=>{var n;return 422===(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status)?Promise.reject(e):(t(Zf(e)),Promise.reject())})),Lx=e=>t=>Gf.fetchAvailableUpdates(e,!0,!0,!0).then((({data:e})=>(t({type:oS,updates:e}),t({type:Oy,updates:e}),e))).catch((e=>e.response&&e.response.status&&422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),Mx=()=>e=>e({type:lS}),Ex=e=>t=>bf.instance.restoreSnapshot(e).then((({data:e})=>(t(eb(e,(()=>t(Rx(e.data.task))))),e))),Rx=e=>t=>t({type:Sy,task:e}),Ux=e=>t=>t(Hx({instancesIds:[e]})).then((()=>{t({type:"instances/RESTORE_SNAPSHOT_FINISHED",instanceId:e})})),Nx=e=>t=>bf.instance.deleteSnapshot(e).then((({data:n})=>(t(eb(n,(()=>t(Fx(e))))),n))),Fx=fp(wy,"installationId"),Bx=e=>t=>Gf.getInstallation(e).then((({data:n})=>(t({type:Ey,installations:[n],installationsIds:[e]}),n))).catch((e=>(t(Zf(e)),Promise.reject()))),Yx={instancesIds:[],skipUpdateInstanceList:!1},Hx=(e=Yx)=>t=>{const n=Object.assign(Object.assign({},Yx),e);return Gf.getInstallations(n.instancesIds).then((({data:e})=>(t({type:Ey,installations:e,installationsIds:n.instancesIds}),n.skipUpdateInstanceList||t(IA(!0)),e))).catch((e=>(t(Zf(e)),Promise.reject())))},Vx=e=>t=>bf.instance.getDbSettings(e).then((({data:e})=>(t(eb(e)),e))),Wx=(e,t)=>n=>bf.instance.setDbSettings(e,t).then((({data:e})=>(n(eb(e)),e))),$x=e=>t=>Gf.getSmartPhpUpdateStub(e).then((({data:n})=>(t(g_(e,n.meta.taskStatus)),n))).catch((e=>400===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),zx=e=>t=>Gf.getSmartPhpUpdateResult(e).then((({data:e})=>e)).catch((e=>404===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),qx=e=>t=>Gf.acceptSmartPhpUpdate(e,sx).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),Gx=e=>t=>Gf.discardSmartPhpUpdate(e,nx).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),Kx=(e,t)=>n=>Gf.updateMaintenanceSettings(e,t).then((({data:e})=>e)).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))),Qx=e=>t=>Gf.restoreMaintenanceTemplate(e,nx).catch((e=>(t(Zf(e)),Promise.reject()))),Jx=fp(Xv,"filter","filterValue"),Xx=e=>t=>Gf.launchUpdate(e).then((({data:{task:e}})=>{if(t({type:hy,task:e}),e.code===Kw){const{currentlyUpdatingInstallationId:n}=e.publicParams;t({type:gy,installationId:n})}return e})).catch((e=>422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),Zx=e=>t=>Gf.applySmartUpdate(e,sx).then((({data:{task:e}})=>(t({type:by,task:e}),e))).catch((e=>(t(Zf(e)),Promise.reject()))),eA=e=>t=>Gf.discardSmartUpdate(e,nx).then((()=>(t({type:fy,installationId:e}),Promise.resolve(void 0)))).catch((e=>(t(Zf(e)),Promise.reject()))),tA=e=>t=>Gf.getSmartUpdateResult(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),nA=e=>t=>Gf.getSetupDrawerSettings(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),sA=(e,t)=>n=>Gf.updateSetupDrawerSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:t})=>{const s=null!==t.currentLogin&&null!==t.currentPassword;return n(aA(e,s)),t})),aA=fp(Hy,"instanceId","hasAdminCredentials"),iA=e=>t=>Gf.getInstallationWpUserStub(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),rA=(e,t)=>n=>Gf.createInstallationWpUser(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:t})=>{const s=null!==t.login&&null!==t.password;return n(aA(e,s)),t})),oA=fp(ly,"installationId","status"),lA=(e,t)=>n=>Gf.updateNginxCachingStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:t})=>(n(oA(e,t.status)),t))),cA=(e,t)=>n=>Gf.updateWordPressDebugSettings(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:e})=>e)),uA=(e,t)=>n=>Gf.updateWordPressDebugStatus(e,{status:t}).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))).then((({data:t})=>(n(fp(ry,"installationId","status")(e,t.status)),t.status))),dA=(e,t)=>n=>Gf.updateAutoUpdateSettings(e,t).then((({data:t})=>(n({type:my,settings:[Object.assign(Object.assign({},t),{id:+e})]}),Promise.all([n(mw(e)),n(kw(e))]).catch((()=>{})),t))).catch((e=>(n(Zf(e)),Promise.reject()))),pA=(e,t)=>n=>Gf.updateInstallationsAutoUpdatesSettings({installationsIds:e,autoUpdate:t}).then((({data:e})=>(n({type:my,settings:e}),e))).catch((e=>(n(Zf(e)),Promise.reject()))),hA=e=>t=>Gf.getAutoUpdateSettings(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),mA=fp("instances/SAVE_REMOTE_INSTANCE_PROPERTIES_FINISHED"),gA=fp("instances/SAVE_REMOTE_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),fA=fp("instances/SAVE_REMOTE_AGENT_INSTANCE_PROPERTIES_FINISHED"),bA=fp("instances/SAVE_REMOTE_AGENT_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),vA=(e,t)=>n=>{const s=new FormData;return s.append("remoteInstanceIp",`${t.remoteInstanceIp}`),s.append("remoteInstanceSystemUser",`${t.remoteInstanceSystemUser}`),s.append("remoteInstancePhpBin",`${t.remoteInstancePhpBin}`),s.append("remoteInstancePhpIni",`${t.remoteInstancePhpIni}`),bf.instance.updateRemoteInstanceProperties(e,s).then((({data:t})=>t.status===Mp?n(ix(e)).then((()=>t)).finally((()=>n(mA()))):(n(gA()),Promise.resolve(t))))},yA=(e,t)=>n=>{const s=new FormData;return s.append("pluginUrl",`${t.pluginUrl}`),s.append("token",`${t.token}`),s.append("ip",`${t.ip}`),bf.instance.updateRemoteAgentInstanceProperties(e,s).then((({data:t})=>t.status===Mp?n(ix(e)).then((()=>t)).finally((()=>n(fA()))):(n(bA()),Promise.resolve(t))))},SA=fp("instances/REDETECT_REMOTE_INSTANCE_PROPERTIES_FINISHED"),wA=fp("instances/REDETECT_REMOTE_INSTANCE_PROPERTIES_FINISHED_WITH_ERROR"),xA=e=>t=>bf.instance.redetectRemoteInstanceProperties(e).then((({data:n})=>n.status===Mp?t(ix(e)).then((()=>n)).finally((()=>t(SA()))):(t(wA()),Promise.resolve(n)))),AA=(e,t)=>n=>{const s=new FormData;return s.append("name",t),bf.instance.setInstanceName(e,s).then((({data:s})=>(n(eb(s,(()=>n(_A(e,t))))),s)))},_A=fp(ey,"installationId","name"),kA=e=>t=>Gf.getPasswordProtection(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),jA=(e,t)=>n=>Gf.updatePasswordProtection(e,t).catch((e=>422===e.response.status?Promise.reject(e.response.data):(n(Zf(e)),Promise.reject()))).then((({data:t})=>(n(fp(ty,"installationId","values")(e,t)),t))),CA=(e,t)=>n=>jA(e,{status:t})(n).then((({status:e})=>e)),IA=fp(xy,"value"),TA=fp(Ay,"value"),DA=fp(Uy,"task"),PA=e=>t=>Gf.createInstallation(e).then((({data:e})=>Gf.getBackgroundTask(e.task.id,e.task.code).then((({data:e})=>{const n=vp(e);return t(DA(n)),n})).catch((e=>Promise.reject(new cS(e)))))).catch((e=>Promise.reject(e))),OA=fp(Ny,"task"),LA=fp(_y),MA=()=>e=>Gf.getInstallations().then((({data:t})=>(e({type:My,installations:t}),t))).catch((t=>(e(Zf(t)),Promise.reject()))),EA=fp(Cy,"value"),RA=fp(Iy,"value"),UA=fp(Xy,"domainId","installationId"),NA=e=>t=>{const n=yS();n[e]=xS()().unix(),SS(n),t({type:Ty,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},FA=e=>t=>{const n=yS();delete n[e],SS(n),t({type:Ty,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},BA=e=>t=>{const n=yS();if(e&&Array.isArray(e)&&e.length>0){const t=xS()().unix();Object.entries(n).forEach((([s,a])=>{e.includes(parseInt(s))?n[+s]=t:a+7776e3<t&&delete n[+s]}))}SS(n),t({type:Ty,keptExpandedInstanceIds:Object.keys(n).map((e=>parseInt(e)))})},YA=fp(Dy,"value"),HA=fp("instances/INSTANCE_UPDATE_FINISHED"),VA=fp("instances/INSTANCE_UPDATE_FAILED"),WA=fp("instances/INSTANCES_MASS_UPDATE_FINISHED"),$A=fp("instances/INSTANCES_MASS_UPDATE_FAILED"),zA=fp("instances/INSTANCES_CHECK_UPDATES_FINISHED"),qA=fp("instances/INSTANCES_CHECK_UPDATES_FAILED"),GA=(e,t)=>n=>n({type:Ly,installationId:e,activeTab:t}),KA=e=>()=>Gf.getInstallationLabelsMeta(e),QA=(e,t)=>n=>Gf.updateInstallationLabels(e,t).then((({data:t})=>(n({type:Ry,id:e,labels:t}),n(IA(!0)),t))),JA=({installationId:e,loginUrl:t,credentials:n,windowTarget:s})=>a=>a({type:Fy,instanceId:`${e}_${xp(10)}`,loginUrl:t,credentials:n,windowTarget:s}),XA=()=>e=>e({type:By}),ZA=e=>dS((()=>bf.instance.synchronizeSiteUrl(e)),(e=>t_(e.data.task))),e_=e=>t=>bf.instance.synchronizeSiteUrlSync(e).then((({data:n})=>(t(eb(n,(()=>{t(Bx(e))}))),n))),t_=fp(Yy,"task"),n_=fp("instances/SYNCHRONIZE_SITE_URL_FINISHED"),s_=e=>t=>bf.instance.getSynchronizeSiteUrlParams(e).then((({data:e})=>(t(eb(e)),e))),a_=e=>t=>Gf.getWpCredentials(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),i_=e=>t=>Gf.getMaintenanceSettings(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),r_=e=>t=>Gf.featureVulnerabilityStatsUpdate({buttonClicked:e}).catch((e=>{t(Zf(e))})),o_=(e,t)=>n=>Gf.validateInstallationPath({domain:e,installationPath:t}).then((e=>204===e.status?Promise.resolve(void 0):Promise.resolve(e.data))).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))),l_=(e,t)=>n=>Gf.getInstallationStub(e,t).then((({data:e})=>e)).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))),c_=e=>t=>Gf.getSetDetails(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),u_=e=>t=>Gf.getWordPressDebugSettingsMeta(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),d_=e=>t=>Gf.checkInstallationsVulnerability({installationsIds:e,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:n}})=>(t({type:qy,installationsIds:e,task:n}),n))).catch((e=>(t(Zf(e)),Promise.reject()))),p_=e=>t=>Gf.runSmartPhpUpdate(e).then((({data:n})=>{const s=vp(n.task);return t(m_(e.installationId,s)),s})).catch((e=>422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),h_=(e,t)=>n=>{n({type:Gy,installationId:e,phpHandler:t})},m_=(e,t)=>n=>n({type:Ky,installationId:e,task:t}),g_=(e,t)=>n=>n({type:Qy,installationId:e,taskStatus:t}),f_=(e,t)=>n=>n({type:"instances/SMART_PHP_UPDATE_FINISHED",installationId:e,task:t}),b_=e=>t=>t({type:"instances/SMART_PHP_UPDATE_RESULT_APPLIED",installationId:e}),v_=e=>t=>t({type:"instances/SMART_PHP_UPDATE_RESULT_DISCARDED",installationId:e}),y_=e=>t=>t({type:"instances/SMART_PHP_UPDATE_STUB_LOADED",installationId:e}),S_=e=>t=>Gf.getRemoteServerInstallationProperties(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),w_=e=>t=>Gf.getRemoteAgentInstallationProperties(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),x_=e=>t=>Gf.statsHireDeveloperTransition({installationId:e}).catch((e=>(t(Zf(e)),Promise.reject()))),A_=e=>()=>Gf.getVirtualPatchesSubscriptionInfo(e).then((({data:e})=>e)),__=e=>()=>Gf.getVirtualPatchesSubscriptionGuid(e).then((({data:e})=>e)).catch((e=>Promise.reject(e))),k_=e=>t=>Gf.getVirtualPatchesSubscriptionPurchaseUrl(e).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),j_=fp(Zy,"installationId","subscriptionInfo"),C_=(e,t)=>n=>Gf.activateVirtualPatchesSubscription(e,{subscriptionGuid:t}).then((({data:t})=>(n(j_(e,t)),t))).catch((e=>Promise.reject(e))),I_=e=>t=>Gf.detachVirtualPatchesSubscription(e,{confirm:!0}).then((()=>{t(j_(e,null))})).catch((e=>(t(Zf(e)),Promise.reject()))),T_=e=>t=>Gf.calculateVulnerabilityProtectionUsageStatistics(e?{installationsIds:e}:void 0).then((({data:e})=>e)).catch((e=>(t(Zf(e)),Promise.reject()))),D_=e=>t=>Gf.getWpCliCommandsList(e).then((({data:e})=>(t({type:"instances/INSTANCES_WP_CLI_COMMANDS_LOADED"}),e))).catch((e=>(t(Zf(e)),Promise.reject()))),P_=(e,t)=>n=>Gf.executeWpCliCommand(e,t).then((({data:e})=>(n({type:"instances/INSTANCES_WP_CLI_COMMAND_EXECUTED"}),e))).catch((e=>(n(Zf(e)),Promise.reject()))),O_=Fc((e=>({meta:e.app.buildMeta})),(e=>({loadChangelog:(0,Cb.zH)(fb,e)})))((e=>{const{meta:t,isOpen:n,onClose:s,loadChangelog:a}=e,[i,r]=(0,R.useState)();return(0,R.useEffect)((()=>{n&&!i&&a().then((e=>{r(e)})).catch((()=>{s()}))}),[n,a,i,s]),(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"general-ui.changelog.drawerTitle"}),subtitle:(0,L.jsx)(pp,{content:"general-ui.wptk-version",params:t}),onClose:s,"data-type":"changelog",size:"md",isOpen:n,children:[!i&&(0,L.jsx)(Qn,{}),i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{tabIndex:0,className:"wpt-pul-alert wpt-pul-alert--info wpt-pul-status-message wpt-pul-status-message--info",children:(0,L.jsx)(Gi,{intent:"info",children:(0,L.jsx)(pp,{content:"general-ui.changelog.availableOnInEnglish"})})}),(0,L.jsx)(_l,{children:i})]})]})})),L_=Fc((e=>({premiumUsers:e.app.premiumUsers})),(e=>({getPremiumUsers:(0,Cb.zH)(vb,e)})))((e=>{const{isOpen:t,onClose:n,premiumUsers:s,getPremiumUsers:a}=e;(0,R.useEffect)((()=>{t&&a().then((e=>{e.status&&e.status===Ep&&n()}))}),[a,t,n]);const i=[{key:"userName",title:(0,L.jsx)(pp,{content:"premiumUsersDrawer.columns.userName"})}],r=s?s.map(((e,t)=>({key:`premium-user-${t}`,userName:e.userName}))):[];return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"premiumUsersDrawer.drawerTitle"}),onClose:n,"data-type":"premiumUsers",size:"md",isOpen:t,children:[!s&&(0,L.jsx)(Qn,{}),s&&(0,L.jsx)(uo,{columns:i,data:r})]})}));class M_ extends R.Component{constructor(){super(...arguments),this.state={exception:null},this.getError=()=>{const{exception:e}=this.state;return(0,L.jsx)("p",{children:null==e?void 0:e.message})},this.handleRefresh=()=>{this.setState({exception:null}),this.props.onRefresh&&this.props.onRefresh()}}componentDidCatch(e){this.setState({exception:e})}render(){return this.state.exception?(0,L.jsxs)("div",{children:[(0,L.jsx)("h1",{children:(0,L.jsx)(pp,{content:"general-ui.react-js-error.commonText"})}),this.getError(),(0,L.jsx)("p",{children:(0,L.jsx)(ut,{intent:"primary",onClick:this.handleRefresh,children:(0,L.jsx)(pp,{content:"general-ui.react-js-error.refresh"})})})]}):this.props.children}}const E_=M_,R_=(0,R.lazy)((()=>r.e(299).then(r.bind(r,64299)))),U_=Fc((e=>({restApiUrl:e.app.urls.restApiUrl})))((e=>{const{isOpen:t,onClose:n,restApiUrl:s}=e;return(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"api.swaggerUi.drawerTitle"}),"data-type":"swagger-ui",size:"lg",onClose:n,isOpen:t,children:(0,L.jsx)(E_,{onRefresh:()=>window.location.reload(),children:(0,L.jsx)(R.Suspense,{fallback:(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"api.swaggerUi.loadingSwaggerLibrary"})}),children:(0,L.jsx)(R_,{url:`${s}/v1/specification/public`})})})})})),N_=Fc((e=>({settings:e.settings.settings,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})))((e=>{const{isOpen:t,isSubmitted:n,onClose:s,formValues:a,onChangeFormField:i,settings:r,vulnerabilityFeatureEnabled:o,baseClassName:l=`${th}settings-notifications`}=e;if(!r||!a)return null;const c=e=>{const t="general";return(0,L.jsx)(Tt,{name:`${t}[${e}]`,tooltip:(0,L.jsx)(pp,{content:`settings.notifications.table.data.${e}.tooltip`}),checked:a[t][e],disabled:n,onChange:n=>i(t,e,Number(n)),"data-test-id":`${t}-${e}`})},u=(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.row.autoUpdates"})}),(0,L.jsx)("td",{children:c("cpanelAdminAutoUpdatesNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelResellerAutoUpdatesNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelClientAutoUpdatesNotificationEnabled")})]}),d=(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.row.quarantine"})}),(0,L.jsx)("td",{children:c("cpanelAdminSuspiciousInstanceNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelResellerSuspiciousInstanceNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelClientSuspiciousInstanceNotificationEnabled")})]}),p=(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.row.vulnerabilityFound"})}),(0,L.jsx)("td",{children:c("cpanelAdminVulnerabilityFoundNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelResellerVulnerabilityFoundNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelClientVulnerabilityFoundNotificationEnabled")})]}),h=(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.row.blacklisted"})}),(0,L.jsx)("td",{children:c("cpanelAdminBlocklistedPluginDeactivatedNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelResellerBlocklistedPluginDeactivatedNotificationEnabled")}),(0,L.jsx)("td",{children:c("cpanelClientBlocklistedPluginDeactivatedNotificationEnabled")})]});return(0,L.jsx)(cr,{className:l,title:(0,L.jsx)(pp,{content:"settings.notifications.drawerTitle"}),onClose:s,size:"sm","data-type":"settings",isOpen:t,children:(0,L.jsxs)("table",{children:[(0,L.jsx)("caption",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.caption"})}),(0,L.jsx)("thead",{children:(0,L.jsxs)("tr",{children:[(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.head.columnHead.event"})}),(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.head.columnHead.administrator"})}),(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.head.columnHead.reseller"})}),(0,L.jsx)("th",{children:(0,L.jsx)(pp,{content:"settings.notifications.table.head.columnHead.client"})})]})}),(0,L.jsxs)("tbody",{children:[u,d,h,o&&p]})]})})}));class F_ extends R.Component{constructor(e){super(e),this.componentDidUpdate=e=>{e.isOpen!==this.props.isOpen&&this.props.isOpen&&(this.props.actions.loadSettingsIfFirstOpen(),this.updateFormValues(),this.updateLicenseInfoState()),e.messages!==this.props.messages&&this.setMessages(this.props.messages),e.settings!==this.props.settings&&this.setFormValues()},this.setMessages=e=>this.setState({messages:e}),this.updateFormValues=()=>this.props.isLoaded&&this.setFormValues(),this.updateLicenseInfoState=()=>{const{getLicenseInfo:e}=this.props.appActions;this.setState({isLicenseInfoLoading:!0}),e().finally((()=>{this.setState({isLicenseInfoLoading:!1})}))},this.handleUpdateLicense=()=>{var e;const{appActions:{updateLicenseInfo:t},instancesActions:{getInstancesData:n}}=this.props,s=null===(e=this.props.virtualPatchesLicenseInfo)||void 0===e?void 0:e.installationsLimit;this.setState({isLicenseInfoLoading:!0}),t().then((e=>{var t;(null===(t=e.virtualPatches)||void 0===t?void 0:t.installationsLimit)!==s&&n().catch((()=>{}))})).catch((()=>{})).finally((()=>{this.setState({isLicenseInfoLoading:!1})}))},this.setFormValues=()=>this.props.settings&&this.setState({formValues:Object.keys(this.props.settings).reduce(((e,t)=>{const n=this.props.settings[t];return e[t]=Object.keys(n).reduce(((e,t)=>(e[t]=n[t].type===Ib?Number(n[t].value):n[t].value,e)),{}),e}),{})}),this.isFormFieldDisabled=({disabledWhenChecked:e})=>!!e&&Object.values(this.state.formValues).some((t=>t.hasOwnProperty(e)&&!!t[e])),this.deleteMessage=e=>{this.setState((t=>({messages:t.messages.filter((({key:t})=>t!==e))})))},this.handleFormSubmit=()=>this.props.actions.updateSettings(this.state.formValues).finally((()=>{const{isUpdated:e,actions:{closeDrawer:t},appActions:{addSuccessMessage:n,addWarningMessage:s,getInitialOptions:a}}=this.props,{messages:i}=this.state;e&&(t(),a(),i&&i.length&&i.forEach((({status:e,message:t})=>{e!==Mp?s(t):n(t)})))})),this.handleChangeFormField=(e,t,n)=>this.setState((s=>{const a=Object.assign({},s.formValues);return a[e][t]=n,{formValues:a}})),this.getPaidFeatureDescription=e=>{switch(e){case Yp:return(0,L.jsx)(pp,{content:"paidFeature.cloneFeatureDescription"});case Hp:return(0,L.jsx)(pp,{content:"paidFeature.copyDataFeatureDescription"});default:return null}},this.renderFormFieldLabel=(e,t)=>t.isFeaturePreview?(0,L.jsx)(Bv,{uatAction:"CLICK_EXT_BUY_FROM_SETTINGS",featureName:t.paidFeatureName,description:this.getPaidFeatureDescription(t.paidFeatureName),children:(0,L.jsx)(pp,{content:`settings.${e}`})}):(0,L.jsx)(pp,{content:`settings.${e}`}),this.renderDropdownControl=({value:e,options:t,onChange:n,size:s,disabled:a=!1,ariaLabel:i=""})=>(0,L.jsx)(Hr,{value:e,onChange:n,disabled:a,size:s,"aria-label":i,children:t?Object.keys(t).map((e=>(0,L.jsx)(Nr,{value:e,children:t[e]},e))):[]}),this.renderForm=()=>{const{baseClassName:e,settings:t,isSubmitted:n,isNotificationFeatureEnabled:s,translate:a}=this.props,{formValues:i}=this.state;return t&&i?(0,L.jsxs)("div",{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"settings.title"})}),(0,L.jsxs)(_a,{children:[(0,L.jsx)("span",{className:`${e}__required`,children:"*"})," - ",(0,L.jsx)(pp,{content:"settings.requiredAsteriskDescription"})]}),Object.keys(t).map((r=>{const o=t[r],l=Object.keys(o).filter((e=>"text"===o[e].type)),c=Object.keys(o).filter((e=>o[e].type===Ib&&!o[e].isHidden)),u=Object.keys(o).filter((e=>"select"===o[e].type));return 0===l.length&&0===c.length&&0===u.length?null:(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:`settings.${r}Section`}),className:`${e}__form-section`,children:[s&&"general"===r&&(0,L.jsx)(vi,{class:`${e}__notifications-link`,children:(0,L.jsx)(_e,{onClick:this.handleOpenNotificationsDrawer,children:(0,L.jsx)(pp,{content:"settings.notifications.drawerLinkName"})})}),"general"===r&&this.renderHireDeveloperForm(),l.map((e=>{const t=o[e];return(0,L.jsxs)(Li,{name:`${r}[${e}]`,label:this.renderFormFieldLabel(e,t),required:t.required&&!t.isFeaturePreview,description:t.hint&&(0,L.jsx)(pp,{content:`settings.${e}Hint`}),children:[(0,L.jsx)(Os,{type:"text",disabled:n||t.isFeaturePreview||this.isFormFieldDisabled(t),size:t.size?t.size:"md",value:i[r][e],onChange:t=>this.handleChangeFormField(r,e,t.target.value)}),t.description&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-mgl-5","aria-label":a("list-ui.instances.icons.info.ariaLabel")}),children:(0,L.jsx)(pp,{content:`settings.${e}Description`})})]},`${r}-${e}`)})),u.map((e=>{const t=o[e];return(0,L.jsxs)(Li,{name:`${r}[${e}]`,label:this.renderFormFieldLabel(e,t),required:t.required&&!t.isFeaturePreview,children:[this.renderDropdownControl({options:t.options,disabled:n||t.isFeaturePreview,value:i[r][e],onChange:t=>this.handleChangeFormField(r,e,t),size:t.size,ariaLabel:this.props.translate(`settings.${e}`)}),t.description&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-mgl-5","aria-label":a("list-ui.instances.icons.info.ariaLabel")}),children:(0,L.jsx)(pp,{content:`settings.${e}Description`})})]},`${r}-${e}`)})),0!==c.length&&(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:`settings.${r}SectionCheckboxGroupLabel`}),className:"wpt-mgt-10",children:c.map((e=>{const t=o[e];return(0,L.jsxs)("div",{className:"wpt-mgb-10",children:[(0,L.jsx)(Tt,{name:`${r}[${e}]`,checked:i[r][e],disabled:n||t.isFeaturePreview,onChange:t=>this.handleChangeFormField(r,e,Number(t)),"data-test-id":`${r}-${e}`,children:this.renderFormFieldLabel(e,t)}),t.description&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-mgl-5","aria-label":a("list-ui.instances.icons.info.ariaLabel")}),children:(0,L.jsx)(pp,{content:`settings.${e}Description`})})]},`${r}-${e}`)}))})]},r)}))]}):null},this.renderChangelogLink=()=>{const{isAdmin:e}=this.props;return e?(0,L.jsx)(_e,{onClick:this.handleOpenChangelog,style:{marginLeft:"16px"},children:(0,L.jsx)(pp,{content:"general-ui.changelog.open"})}):null},this.renderHireDeveloperForm=()=>{if(!this.props.hireDeveloperFeatureEnabled)return null;const{formValues:e}=this.state;return(0,L.jsx)(Hi,{values:null==e?void 0:e.general,onFieldChange:(e,t)=>this.handleChangeFormField("general",e,t),cancelButton:!1,submitButton:!1,applyButton:!1,vertical:!0,children:(0,L.jsx)(_r,{label:(0,L.jsx)(pp,{content:"general-ui.hireDeveloper.label"}),name:"hireDeveloperFeatureSource",options:[{value:"none",label:(0,L.jsx)(pp,{content:"general-ui.hireDeveloper.source.none"})},{value:"codeable",label:(0,L.jsx)(pp,{content:"general-ui.hireDeveloper.source.codeable"})},{value:"custom",label:(0,L.jsx)(pp,{content:"general-ui.hireDeveloper.source.custom"}),indentFields:[(0,L.jsx)(Dr,{name:"hireDeveloperFeatureHref",label:null,required:!0},"uri")]}]})})},this.handleOpenNotificationsDrawer=()=>this.setState({isNotificationsDrawerOpened:!0}),this.handleCloseNotificationDrawer=()=>this.setState({isNotificationsDrawerOpened:!1}),this.handleOpenChangelog=()=>this.setState({isChangelogOpened:!0}),this.handleCloseChangelog=()=>this.setState({isChangelogOpened:!1}),this.handleOpenPremiumUsersDrawer=()=>this.setState({showPremiumUsersDrawer:!0}),this.handleClosePremiumUsersDrawer=()=>this.setState({showPremiumUsersDrawer:!1}),this.handleOpenSwagger=()=>this.setState({isSwaggerUiVisible:!0}),this.handleCloseSwagger=()=>this.setState({isSwaggerUiVisible:!1}),this.state={messages:null,formValues:null,isChangelogOpened:!1,showPremiumUsersDrawer:!1,isNotificationsDrawerOpened:!1,isSwaggerUiVisible:!1,isLicenseInfoLoading:!1}}renderMessages(){const{isUpdated:e}=this.props,{messages:t}=this.state;return t?e?null:t.map((({key:e,status:t,message:n})=>{const s=t===Ep?Bp:t;return(0,L.jsx)(Fe,{intent:s,onClose:()=>this.deleteMessage(e),children:n},e)})):null}renderPremiumUsersUsage(){const{premiumUsersUsedTotal:e,baseClassName:t}=this.props;return Wv()&&null!==e?(0,L.jsxs)(Tl,{intent:"info",children:[(0,L.jsx)(pp,{content:"general-ui.wptk-license-used-unlimited",params:{usedTotal:e}}),e>0&&(0,L.jsxs)(R.Fragment,{children:[" ",(0,L.jsx)(Us,{onClick:this.handleOpenPremiumUsersDrawer,className:`${t}__premium-users-link`,children:(0,L.jsx)(pp,{content:"settings.viewCpanelPremiumUsersLink"})})]})]}):null}renderSwaggerLink(){return Wv()?(0,L.jsxs)(Tl,{intent:"info",children:[(0,L.jsx)(pp,{content:"api.swaggerUi.description"})," ",(0,L.jsx)(Us,{onClick:this.handleOpenSwagger,children:(0,L.jsx)(pp,{content:"api.swaggerUi.openDrawer"})})]}):null}renderLicenseUsage(){const{virtualPatchesLicenseInfo:e,virtualPatchesFeatureEnabled:t,isWpgLicense:n}=this.props;if(!t)return null;const s=e&&(0!==(null==e?void 0:e.installationsLimit)||n),a=-1===e.installationsLimit;let i="info";!s||a?i="info":e.installationsActive>e.installationsLimit||n&&0===e.installationsLimit?i="danger":e.installationsActive>=.8*e.installationsLimit&&(i="warning");let r="general-ui.virtual-patching.licenseUsed";return n&&-1===e.installationsLimit?r="general-ui.virtual-patching.externalLicenseUnlimited":n&&0===e.installationsLimit?r="general-ui.virtual-patching.externalLicenseLimitReached":n?r="general-ui.virtual-patching.externalLicenseUsed":-1===e.installationsLimit&&(r="general-ui.virtual-patching.licenseUnlimited"),this.state.isLicenseInfoLoading?(0,L.jsx)(Qn,{}):(0,L.jsxs)(Tl,{intent:i,children:[s&&(0,L.jsx)("span",{"data-test-id":"license-usage-display",children:(0,L.jsx)(pp,{content:r,params:e})}),!a&&!n&&(0,L.jsx)(_e,{onClick:this.handleUpdateLicense,children:s?(0,L.jsx)(pp,{content:"general-ui.virtual-patching.updateLicense"}):(0,L.jsx)(pp,{content:"general-ui.virtual-patching.updateEmptyLicense"})})]})}render(){const{meta:e,baseClassName:t,isOpen:n,actions:{closeDrawer:s},isRequested:a,formErrors:i,isLoadingError:r,isSubmitted:o,isNotificationFeatureEnabled:l,options:{showSwaggerUiOnCpanel:c}}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"settings.drawerTitle"}),isOpen:n,onClose:s,size:"sm","data-type":"settings","data-test-id":"global-settings-drawer",form:!a&&{onSubmit:this.handleFormSubmit,hideRequiredLegend:!0,errors:i||{},state:o?"submit":void 0,submitButton:{children:o?(0,L.jsx)(pp,{content:"settings.submittingButton"}):(0,L.jsx)(pp,{content:"settings.submitButton"}),disabled:r,"data-test-id":"save-button"},applyButton:!1,cancelButton:{onClick:s,children:(0,L.jsx)(pp,{content:"settings.cancelButton"}),"data-test-id":"cancel-button"},vertical:!0},children:[a&&(0,L.jsx)(Qn,{}),!a&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("div",{className:"wpt-pul-alert wpt-pul-alert--info wpt-pul-status-message wpt-pul-status-message--info",children:(0,L.jsxs)(Gi,{intent:"info",children:[(0,L.jsx)(pp,{content:"general-ui.wptk-version",params:e}),this.renderChangelogLink()]})}),this.renderPremiumUsersUsage(),this.renderLicenseUsage(),c&&this.renderSwaggerLink(),(0,L.jsxs)("div",{className:t,children:[this.renderMessages(),this.renderForm()]})]})]}),(0,L.jsx)(O_,{isOpen:this.state.isChangelogOpened,onClose:this.handleCloseChangelog}),(0,L.jsx)(L_,{isOpen:this.state.showPremiumUsersDrawer,onClose:this.handleClosePremiumUsersDrawer}),l&&(0,L.jsx)(N_,{isOpen:this.state.isNotificationsDrawerOpened,isSubmitted:this.props.isSubmitted,onClose:this.handleCloseNotificationDrawer,onChangeFormField:this.handleChangeFormField,formValues:this.state.formValues}),(0,L.jsx)(U_,{isOpen:this.state.isSwaggerUiVisible,onClose:this.handleCloseSwagger})]})}}F_.propTypes={meta:je().shape({version:je().string.isRequired,revision:je().string.isRequired}).isRequired,premiumUsersUsedTotal:je().number,isOpen:je().bool.isRequired,isLoaded:je().bool.isRequired,isLoadingError:je().bool.isRequired,isSubmitted:je().bool.isRequired,isRequested:je().bool.isRequired,isUpdated:je().bool.isRequired,settings:je().object,messages:je().array,formErrors:je().bool,actions:je().shape({closeDrawer:je().func.isRequired,loadSettingsIfFirstOpen:je().func.isRequired,updateSettings:je().func.isRequired}).isRequired,appActions:je().shape({addWarningMessage:je().func.isRequired,addSuccessMessage:je().func.isRequired,getPremiumUsers:je().func.isRequired,getInitialOptions:je().func.isRequired,getLicenseInfo:je().func.isRequired,updateLicenseInfo:je().func.isRequired}).isRequired,instancesActions:je().shape({getInstancesData:je().func.isRequired}).isRequired,baseClassName:je().string,isAdmin:je().bool.isRequired,isNotificationFeatureEnabled:je().bool.isRequired,virtualPatchesFeatureEnabled:je().bool.isRequired,virtualPatchesLicenseInfo:je().shape({installationsLimit:je().number.isRequired,installationsActive:je().number.isRequired}),options:je().shape({showSwaggerUiOnCpanel:je().bool.isRequired}).isRequired,translate:je().func},F_.defaultProps={premiumUsersUsedTotal:null,settings:null,messages:[],formErrors:[],baseClassName:`${th}settings`,virtualPatchesLicenseInfo:null};const B_=Fc((e=>({meta:e.app.buildMeta,premiumUsersUsedTotal:e.app.options.premiumUsersUsedTotal,isOpen:e.settings.drawerIsOpen,isLoaded:e.settings.status!==Qp,isLoadingError:e.settings.status===Zp,isRequested:e.settings.status===Jp,isSubmitted:e.settings.status===Xp,isUpdated:e.settings.status===eh,messages:e.settings.messages,formErrors:e.settings.formErrors,settings:e.settings.settings,changelog:e.app.options.changelog,isAdmin:e.app.options.isAdmin,premiumUsers:e.app.premiumUsers,isNotificationFeatureEnabled:e.app.options.isNotificationFeatureEnabled,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,hireDeveloperFeatureEnabled:e.app.options.hireDeveloperFeature,virtualPatchesLicenseInfo:e.app.licenseInfo.virtualPatches,options:e.app.options,isWpgLicense:e.app.options.isWpgLicense})),(e=>({actions:(0,Cb.zH)(n,e),appActions:(0,Cb.zH)(t,e),instancesActions:(0,Cb.zH)({getInstancesData:Hx},e)})))(Nv(F_));class Y_ extends R.Component{constructor(){super(...arguments),this.state={loginUrl:"",credentials:{login:"",password:""},windowTarget:void 0},this.componentDidUpdate=e=>{e.loginToInstanceId!==this.props.loginToInstanceId&&this.handleLogin()},this.formRef=null,this.handleLogin=()=>{var e;if(this.props.installation&&!(null===(e=this.props.installation.features.credentials)||void 0===e?void 0:e.available)||!this.props.loginUrl||!this.props.loginCredentials)return;const{loginUrl:t,loginCredentials:{login:n,password:s},windowTarget:a,loginToInstancePerformed:i,addWarningMessage:r,seemsLikePopupBlockerIsEnabledTranslateKey:o}=this.props;this.setState({loginUrl:t,credentials:{login:n,password:s},windowTarget:a},(()=>{try{this.formRef&&this.formRef.submit(),this.setState({loginUrl:"",credentials:{login:"",password:""}}),i()}catch(e){r((0,L.jsx)(pp,{content:o}))}}))}}render(){if(!this.props.loginToInstanceId)return null;const{loginUrl:e,credentials:{login:t,password:n},windowTarget:s}=this.state;return(0,L.jsxs)("form",{target:s,ref:e=>this.formRef=e,method:"POST",action:e,style:{display:"none"},children:[(0,L.jsx)("input",{type:"hidden",name:"log",value:t}),(0,L.jsx)("input",{type:"hidden",name:"pwd",value:n})]})}}Y_.defaultProps={loginToInstanceId:null,installation:null,loginUrl:null,loginCredentials:null,windowTarget:null,seemsLikePopupBlockerIsEnabledTranslateKey:"loginToInstance.seemsLikePopupBlockerIsEnabled"};const H_=Y_,V_=e=>(0,L.jsx)(H_,{loginToInstanceId:e.loginToInstanceId,installation:e.installation,loginUrl:e.loginUrl,loginCredentials:e.loginCredentials,windowTarget:e.windowTarget,loginToInstancePerformed:e.loginToInstancePerformed,addWarningMessage:e.addWarningMessage});V_.propTypes={loginToInstanceId:je().string,installation:je().shape({features:je().shape({credentials:je().shape({available:je().bool.isRequired})}).isRequired,id:je().number.isRequired}),loginUrl:je().string,loginCredentials:je().shape({login:je().string.isRequired,password:je().string.isRequired}),windowTarget:je().string,loginToInstancePerformed:je().func.isRequired,addWarningMessage:je().func.isRequired},V_.defaultProps={loginToInstanceId:null,loginUrl:null,installation:null,loginCredentials:null,windowTarget:null};const W_=Fc((e=>{const{loginToInstanceId:t,installations:n,loginUrl:s,loginCredentials:a,windowTarget:i}=e.instances,r=t&&n?n.find((e=>e.id===parseInt(t.split("_").shift()))):null;return{loginToInstanceId:t,installation:r,loginUrl:s,loginCredentials:a,windowTarget:i}}),{loginToInstancePerformed:XA,addWarningMessage:ib})(V_),$_="instances",z_="plugins",q_="themes",G_="sets",K_="servers",Q_=(0,R.createContext)(((e,t)=>{})),J_=()=>(0,R.useContext)(Q_),X_={panel:"cpanel"},Z_=({application:e,globals:t,children:n})=>{const s=(0,R.useMemo)((()=>Object.assign(Object.assign({},X_),t)),[t]),a=(0,R.useMemo)((()=>window.mixpanel?(t,n)=>{var a;return null===(a=window.mixpanel)||void 0===a?void 0:a.track(`${e}:${t}`,Object.assign(Object.assign({},n),s))}:null),[e,s]);return a?(0,L.jsx)(Q_.Provider,{value:a,children:n}):(0,L.jsx)(L.Fragment,{children:n})},ek=({eventOnMount:e,children:t})=>{const n=J_();return(0,R.useEffect)((()=>{n(e)}),[e,n]),(0,L.jsx)(L.Fragment,{children:t})},tk=new Set,nk=({children:e})=>{const t=J_(),n=(0,R.useCallback)(((e,n)=>{tk.has(e)||(tk.add(e),t(e,n))}),[t]);return(0,L.jsx)(Q_.Provider,{value:n,children:e})};class sk extends R.Component{constructor(){super(...arguments),this.resetSearch=()=>this.props.setSearch(""),this.handleTyping=e=>{clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((()=>this.props.setSearch(e)),500)},this.handleSettingDrawerOpening=()=>{this.context("DSH-GLOBAL_SETTINGS-CLICKED"),this.props.settingsActions.openDrawer()},this.getTabs=()=>{const{isAdmin:e,isRemoteWptAvailable:t,isSetsManagementAvailable:n}=this.props,s=t&&e,a=[];return a.push(this.getInstancesTab()),a.push(this.getPluginsTab()),a.push(this.getThemesTab()),n&&a.push(this.getSetsTab()),s&&a.push(this.getServersTab()),a},this.hasBlockedPluginInSets=()=>{const{listOfSets:e,blockedPlugins:t}=this.props;if(e&&t.length){const n=new Set(e.reduce(((e,t)=>e.concat(t.plugins.map((e=>e.name)))),[]));return t.some((e=>n.has(e)))}return!1}}componentDidMount(){this.resetSearch()}go(e){const{baseUrl:t}=this.props;window.location.href=t+e}push(e){const{history:t}=this.props;this.resetSearch(),t.push(e)}getInstancesTab(){return{handleActivate:()=>{this.context("DSH-TAB_INSTALLATIONS-CLICKED"),this.push("/list")},title:(0,L.jsx)(pp,{content:"general-ui.tabs.instances"}),"data-test-id":"tab-instances",key:$_}}getPluginsTab(){return{handleActivate:()=>{this.context("DSH-TAB_PLUGINS-CLICKED"),this.push("/plugins")},title:(0,L.jsx)(pp,{content:"general-ui.tabs.plugins"}),"data-test-id":"tab-plugins",key:z_}}getThemesTab(){return{handleActivate:()=>{this.context("DSH-TAB_THEMES-CLICKED"),this.push("/themes")},title:(0,L.jsx)(pp,{content:"general-ui.tabs.themes"}),"data-test-id":"tab-themes",key:q_}}getSetsTab(){let e=(0,L.jsx)(pp,{content:"general-ui.tabs.sets"});return this.hasBlockedPluginInSets()&&(e=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(pp,{content:"general-ui.tabs.sets"})," ",(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"general-ui.tabs.sets.haveBlockedPlugin"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning"})})]})),{handleActivate:()=>{this.context("DSH-TAB_SETS-CLICKED"),this.push("/sets")},title:e,icon:this.props.isSetsUnpaid?(0,L.jsx)(xe,{name:"lock-closed"}):null,"data-test-id":"tab-sets",key:G_}}getServersTab(){return{handleActivate:()=>{this.context("DSH-TAB_SERVERS-CLICKED"),this.push("/servers")},title:(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"general-ui.tabs.remoteServersTooltip"}),children:(0,L.jsx)(pp,{content:"general-ui.tabs.remoteServers"})}),"data-test-id":"tab-remote-servers",key:K_}}getHeading(){const{isAdmin:e,baseClassName:t,cpanelWptHelpButtonUrl:n,isUnpaid:s,upgradeUrl:a}=this.props;return(0,L.jsxs)("div",{className:`${t}__heading`,children:[(0,L.jsx)("div",{className:`${t}__heading__title`,children:(0,L.jsx)("h2",{children:(0,L.jsx)(pp,{content:"general-ui.title"})})}),(0,L.jsxs)("div",{className:`${t}__heading__toolbar`,children:[s&&(0,L.jsx)("div",{className:`${t}__heading__toolbar__element`,children:(0,L.jsx)(Rv,{uatAction:"CLICK_EXT_BUY_FROM_HEADER",purchaseLicenseUrl:a,children:(0,L.jsx)(pp,{content:"general-ui.buttonUpgrade"})})}),e&&(0,L.jsx)("div",{className:`${t}__heading__toolbar__element`,children:(0,L.jsx)(_e,{icon:"sliders",onClick:this.handleSettingDrawerOpening,"data-test-id":"global-settings-button",children:(0,L.jsx)(pp,{content:"general-ui.settings"})})}),(0,L.jsx)("div",{className:`${t}__heading__toolbar__element`,children:(0,L.jsx)(_e,{icon:"question-mark-circle",href:n,target:"_blank","data-test-id":"help-icon",children:(0,L.jsx)(pp,{content:"general-ui.help"})})})]})]})}render(){const{baseClassName:e}=this.props,t=this.getTabs(),n=t.map((e=>e.key)).indexOf(this.props.activeTab)+1;return(0,L.jsxs)("div",{className:e,children:[this.getHeading(),(0,L.jsx)(Nl,{search:(0,L.jsx)(Yl,{onTyping:this.handleTyping,inputProps:{onFocus:()=>this.context("LST-SEARCH-FOCUSED")}}),active:n,children:t.map((e=>(0,L.jsx)(Pl,{onActivate:e.handleActivate,title:e.title,"data-test-id":e["data-test-id"],children:this.props.children},e.key)))}),(0,L.jsx)(B_,{}),(0,L.jsx)(W_,{})]})}}sk.defaultProps={baseClassName:`${th}layout`,listOfSets:null},sk.contextType=Q_;const ak=Fc((e=>({baseUrl:e.app.urls.baseUrl,isAdmin:e.app.options.isAdmin,isSetsManagementAvailable:e.app.options.isSetsManagementAvailable,isRemoteWptAvailable:e.app.options.isRemoteWptAvailable,cpanelWptHelpButtonUrl:e.app.options.cpanelWptHelpButtonUrl,isUnpaid:e.app.unpaidFeatures[qp],upgradeUrl:e.app.urls.featuresBuyLinks[qp],isSetsUnpaid:e.app.unpaidFeatures[$p],listOfSets:e.sets.list,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({settingsActions:(0,Cb.zH)({openDrawer:Bb},e),setSearch:(0,Cb.zH)(lb,e)})))(ou(sk));var ik,rk={},ok=function(){if(ik)return rk;ik=1,rk.parse=function(e,n){if("string"!=typeof e)throw new TypeError("argument str must be a string");var s={},a=e.length;if(a<2)return s;var i=n&&n.decode||l,u=0,d=0,p=0;do{if(-1===(d=e.indexOf("=",u)))break;if(-1===(p=e.indexOf(";",u)))p=a;else if(d>p){u=e.lastIndexOf(";",d-1)+1;continue}var h=r(e,u,d),m=o(e,d,h),g=e.slice(h,m);if(!t.call(s,g)){var f=r(e,d+1,p),b=o(e,p,f);34===e.charCodeAt(f)&&34===e.charCodeAt(b-1)&&(f++,b--);var v=e.slice(f,b);s[g]=c(v,i)}u=p+1}while(u<a);return s},rk.serialize=function(t,r,o){var l=o&&o.encode||encodeURIComponent;if("function"!=typeof l)throw new TypeError("option encode is invalid");if(!n.test(t))throw new TypeError("argument name is invalid");var c=l(r);if(!s.test(c))throw new TypeError("argument val is invalid");var u=t+"="+c;if(!o)return u;if(null!=o.maxAge){var d=Math.floor(o.maxAge);if(!isFinite(d))throw new TypeError("option maxAge is invalid");u+="; Max-Age="+d}if(o.domain){if(!a.test(o.domain))throw new TypeError("option domain is invalid");u+="; Domain="+o.domain}if(o.path){if(!i.test(o.path))throw new TypeError("option path is invalid");u+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(t){return"[object Date]"===e.call(t)}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");u+="; Expires="+p.toUTCString()}if(o.httpOnly&&(u+="; HttpOnly"),o.secure&&(u+="; Secure"),o.partitioned&&(u+="; Partitioned"),o.priority)switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":u+="; Priority=Low";break;case"medium":u+="; Priority=Medium";break;case"high":u+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}if(o.sameSite)switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:u+="; SameSite=Strict";break;case"lax":u+="; SameSite=Lax";break;case"strict":u+="; SameSite=Strict";break;case"none":u+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return u};var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty,n=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,s=/^("?)[\u0021\u0023-\u002B\u002D-\u003A\u003C-\u005B\u005D-\u007E]*\1$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/;function r(e,t,n){do{var s=e.charCodeAt(t);if(32!==s&&9!==s)return t}while(++t<n);return n}function o(e,t,n){for(;t>n;){var s=e.charCodeAt(--t);if(32!==s&&9!==s)return t+1}return n}function l(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function c(e,t){try{return t(e)}catch(t){return e}}return rk}();function lk(e,t={}){const n=function(e){return e&&"j"===e[0]&&":"===e[1]?e.substr(2):e}(e);if(!t.doNotParse)try{return JSON.parse(n)}catch(e){}return e}class ck{constructor(e,t={}){this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.update=()=>{if(!this.HAS_DOCUMENT_COOKIE)return;const e=this.cookies;this.cookies=ok.parse(document.cookie),this._checkChanges(e)};const n="undefined"==typeof document?"":document.cookie;this.cookies=function(e){return"string"==typeof e?ok.parse(e):"object"==typeof e&&null!==e?e:{}}(e||n),this.defaultSetOptions=t,this.HAS_DOCUMENT_COOKIE=function(){const e=void 0===r.g?void 0:r.g.TEST_HAS_DOCUMENT_COOKIE;return"boolean"==typeof e?e:"object"==typeof document&&"string"==typeof document.cookie}()}_emitChange(e){for(let t=0;t<this.changeListeners.length;++t)this.changeListeners[t](e)}_checkChanges(e){new Set(Object.keys(e).concat(Object.keys(this.cookies))).forEach((t=>{e[t]!==this.cookies[t]&&this._emitChange({name:t,value:lk(this.cookies[t])})}))}_startPolling(){this.pollingInterval=setInterval(this.update,300)}_stopPolling(){this.pollingInterval&&clearInterval(this.pollingInterval)}get(e,t={}){return t.doNotUpdate||this.update(),lk(this.cookies[e],t)}getAll(e={}){e.doNotUpdate||this.update();const t={};for(let n in this.cookies)t[n]=lk(this.cookies[n],e);return t}set(e,t,n){n=n?Object.assign(Object.assign({},this.defaultSetOptions),n):this.defaultSetOptions;const s="string"==typeof t?t:JSON.stringify(t);this.cookies=Object.assign(Object.assign({},this.cookies),{[e]:s}),this.HAS_DOCUMENT_COOKIE&&(document.cookie=ok.serialize(e,s,n)),this._emitChange({name:e,value:t,options:n})}remove(e,t){const n=t=Object.assign(Object.assign(Object.assign({},this.defaultSetOptions),t),{expires:new Date(1970,1,1,0,0,1),maxAge:0});this.cookies=Object.assign({},this.cookies),delete this.cookies[e],this.HAS_DOCUMENT_COOKIE&&(document.cookie=ok.serialize(e,"",n)),this._emitChange({name:e,value:void 0,options:t})}addChangeListener(e){this.changeListeners.push(e),this.HAS_DOCUMENT_COOKIE&&1===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.addEventListener("change",this.update):this._startPolling())}removeChangeListener(e){const t=this.changeListeners.indexOf(e);t>=0&&this.changeListeners.splice(t,1),this.HAS_DOCUMENT_COOKIE&&0===this.changeListeners.length&&("object"==typeof window&&"cookieStore"in window?window.cookieStore.removeEventListener("change",this.update):this._stopPolling())}}const uk=R.createContext(new ck),{Provider:dk,Consumer:pk}=uk;class hk extends R.Component{constructor(e){super(e),e.cookies?this.cookies=e.cookies:this.cookies=new ck(void 0,e.defaultSetOptions)}render(){return R.createElement(dk,{value:this.cookies},this.props.children)}}function mk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}"function"==typeof SuppressedError&&SuppressedError;var gk,fk,bk,vk,yk={exports:{}},Sk={};function wk(){return fk||(fk=1,yk.exports=function(){if(gk)return Sk;gk=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,s=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,r=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case s:case i:case a:case d:return e;default:switch(e=e&&e.$$typeof){case o:case u:case m:case h:case r:return e;default:return p}}case n:return p}}}function S(e){return y(e)===c}return Sk.AsyncMode=l,Sk.ConcurrentMode=c,Sk.ContextConsumer=o,Sk.ContextProvider=r,Sk.Element=t,Sk.ForwardRef=u,Sk.Fragment=s,Sk.Lazy=m,Sk.Memo=h,Sk.Portal=n,Sk.Profiler=i,Sk.StrictMode=a,Sk.Suspense=d,Sk.isAsyncMode=function(e){return S(e)||y(e)===l},Sk.isConcurrentMode=S,Sk.isContextConsumer=function(e){return y(e)===o},Sk.isContextProvider=function(e){return y(e)===r},Sk.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sk.isForwardRef=function(e){return y(e)===u},Sk.isFragment=function(e){return y(e)===s},Sk.isLazy=function(e){return y(e)===m},Sk.isMemo=function(e){return y(e)===h},Sk.isPortal=function(e){return y(e)===n},Sk.isProfiler=function(e){return y(e)===i},Sk.isStrictMode=function(e){return y(e)===a},Sk.isSuspense=function(e){return y(e)===d},Sk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===c||e===i||e===a||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===r||e.$$typeof===o||e.$$typeof===u||e.$$typeof===f||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g)},Sk.typeOf=y,Sk}()),yk.exports}var xk=function(){if(vk)return bk;vk=1;var e=wk(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function i(n){return e.isMemo(n)?s:a[n.$$typeof]||t}a[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[e.Memo]=s;var r=Object.defineProperty,o=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;return bk=function e(t,s,a){if("string"!=typeof s){if(d){var p=u(s);p&&p!==d&&e(t,p,a)}var h=o(s);l&&(h=h.concat(l(s)));for(var m=i(t),g=i(s),f=0;f<h.length;++f){var b=h[f];if(!(n[b]||a&&a[b]||g&&g[b]||m&&m[b])){var v=c(s,b);try{r(t,b,v)}catch(e){}}}}return t},bk}(),Ak=mk(xk);function _k(e){const t=e.displayName||e.name;class n extends R.Component{constructor(){super(...arguments),this.onChange=()=>{this.forceUpdate()}}listen(){this.props.cookies.addChangeListener(this.onChange)}unlisten(e){(e||this.props.cookies).removeChangeListener(this.onChange)}componentDidMount(){this.listen()}componentDidUpdate(e){e.cookies!==this.props.cookies&&(this.unlisten(e.cookies),this.listen())}componentWillUnmount(){this.unlisten()}render(){const t=this.props,{forwardedRef:n,cookies:s}=t,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(t,["forwardedRef","cookies"]),i=s.getAll({doNotUpdate:!0});return R.createElement(e,Object.assign({},a,{ref:n,cookies:s,allCookies:i}))}}n.displayName=`withCookies(${t})`,n.WrappedComponent=e;const s=R.forwardRef(((e,t)=>R.createElement(pk,null,(s=>R.createElement(n,Object.assign({cookies:s},e,{forwardedRef:t}))))));return s.displayName=n.displayName,s.WrappedComponent=n.WrappedComponent,Ak(s,e)}const kk="plugins/UPDATE_PLUGINS_PAGE",jk="plugins/RESET_PLUGINS_PAGE",Ck="plugins/RELOAD_PLUGINS_FINISHED",Ik="plugins/INSTALL_PLUGINS_STARTED",Tk="plugins/ACTIVATE_PLUGINS_STARTED",Dk="plugins/DEACTIVATE_PLUGINS_STARTED",Pk="plugins/UNINSTALL_PLUGINS_STARTED",Ok="plugins/REMOVE_PLUGINS_STARTED",Lk="plugins/UPDATE_PLUGINS_STARTED",Mk="plugins/UPLOAD_AND_INSTALL_PLUGIN_TASK_STARTED",Ek=fp(kk,"plugins","instances","sets"),Rk=()=>dS(bf.plugins.getPluginsList,(e=>Ek(e.data.plugins,e.data.instances,e.data.sets))),Uk=fp(jk),Nk=fp(Ck,"pluginsToUpdate","newPluginsData"),Fk=(e,t)=>uS((()=>bf.plugins.loadPluginsData(e)),((n,s)=>{n(Nk(e,s.data.plugins)),t&&t()})),Bk=fp("plugins/SEARCH_PLUGINS_FINISHED"),Yk=e=>dS((()=>bf.plugins.searchPlugins(e)),Bk),Hk=fp(Ik,"task"),Vk=fp("plugins/INSTALL_PLUGINS_FINISHED"),Wk=(e,t,n)=>dS((()=>bf.plugins.installPlugins(e,t,n)),(e=>Hk(e.data.task))),$k=fp("plugins/UPLOAD_PLUGIN_TO_STORAGE_FINISHED","pluginInfo"),zk=(e,t)=>dS((()=>bf.plugins.uploadPluginToStorage(e,t)),(e=>$k(e.data))),qk=fp("plugins/UPLOAD_AND_INSTALL_PLUGIN_TASK_FINISHED"),Gk=fp(Mk,"task"),Kk=(e,t,n)=>dS((()=>bf.plugins.uploadAndInstallPlugin(e,t,n)),(e=>Gk(e.data.task))),Qk=fp(Tk,"task"),Jk=fp("plugins/ACTIVATE_PLUGINS_FINISHED"),Xk=e=>dS((()=>bf.plugins.activatePlugins(e)),(e=>Qk(e.data.task))),Zk=fp(Dk,"task"),ej=fp("plugins/DEACTIVATE_PLUGINS_FINISHED"),tj=e=>t=>bf.plugins.deactivatePlugins(e).then((({data:e})=>(t(eb(e,(()=>t(Zk(e.data.task))))),e))),nj=fp(Pk,"task"),sj=fp("plugins/UNINSTALL_PLUGINS_FINISHED"),aj=e=>dS((()=>bf.plugins.uninstallPlugins(e)),(e=>nj(e.data.task))),ij=fp(Ok,"task"),rj=fp("plugins/REMOVE_PLUGINS_FINISHED"),oj=e=>dS((()=>bf.plugins.removePlugins(e)),(e=>ij(e.data.task))),lj=fp(Lk,"task"),cj=fp("plugins/UPDATE_PLUGINS_FINISHED"),uj=e=>dS((()=>bf.plugins.updatePlugins(e)),(e=>lj(e.data.task))),dj=(e,t)=>e.reduce(((e,n)=>(0,L.jsxs)(R.Fragment,{children:[e,t,n]}))),pj="/list",hj=Fc(null,(e=>({pushUrl:t=>e(gu(t))})))((({id:e,name:t,pushUrl:n})=>(0,L.jsx)("a",{onClick:()=>n(`${pj}/id/${e}`),children:t}))),mj=({url:e})=>{const t=cp();return(0,L.jsx)(_e,{href:e,target:"_blank","aria-label":t("instancesList.instanceLink.ariaLabel"),children:e})};class gj extends R.Component{constructor(e){super(e),this.handleInstancesSelectionChange=e=>{this.setState({selectedInstances:e})},this.handleActivateAfterInstallationChange=e=>{this.setState({activateAfterInstallation:e})},this.handleSubmitInstall=()=>{const{onSubmitInstall:e}=this.props,{selectedInstances:t,activateAfterInstallation:n,isInstalling:s}=this.state;s||(this.setState({isInstalling:!0}),e(t.map((e=>parseInt(e))),n).finally((()=>this.setState({isInstalling:!1}))))},this.state={selectedInstances:[],activateAfterInstallation:!0,isInstalling:!1}}render(){const{selectInstancesText:e,backButton:t,drawerTitle:n,asset:s,instances:a,onCloseDrawer:i,showActivateAfterInstallation:r,activateAfterInstallationText:o,instanceNameListTitle:l,instanceUrlListTitle:c}=this.props,{selectedInstances:u,activateAfterInstallation:d,isInstalling:p}=this.state,h=s?s.instances.map((e=>e.id)):[],m=a.filter((e=>!kp(h,e.id))).map((e=>({id:e.id,key:`${e.id}`,name:e.name,url:e.url}))),g={onSubmit:this.handleSubmitInstall,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"list.assets.installButton"}),"data-test-id":"select-websites-drawer-install-button",disabled:0===u.length||p,state:p?"loading":"active"},cancelButton:{disabled:p}};return(0,L.jsxs)(cr,{title:n,"data-type":"select-instances",onClose:i,backButton:t,isOpen:!0,size:"sm",form:g,children:[(0,L.jsx)(_a,{children:e}),(0,L.jsx)(uo,{columns:[{key:"name",title:l,render:e=>(0,L.jsx)(hj,{id:e.id,name:e.name})},{key:"url",title:c,render:e=>(0,L.jsx)(mj,{url:e.url})}],data:m,selection:u,onSelectionChange:this.handleInstancesSelectionChange,"data-test-id":"available-websites-list"}),r&&(0,L.jsx)("div",{style:{paddingTop:"20px"},children:(0,L.jsx)(mr,{label:o,value:d,onChange:this.handleActivateAfterInstallationChange,"data-test-id":"activate-after-installation-checkbox"})})]})}}gj.defaultProps={asset:null,backButton:!1,activateAfterInstallationText:null,showActivateAfterInstallation:!1};const fj=gj;class bj extends R.Component{constructor(e){super(e),this.handleSearchTermChange=e=>{this.setState({searchTerm:e.target.value})},this.handleSearchKeyDown=e=>{"Enter"===e.key&&this.isSearchCanBeSubmitted()&&this.handleSearch()},this.handleSearch=()=>{const{onSearchAssets:e}=this.props,{searchTerm:t}=this.state;this.setState({isSearching:!0,availableAssets:null,selectedAssets:[]},(()=>{e(t).then((e=>{this.setState({availableAssets:e})})).finally((()=>{this.setState({isSearching:!1})}))}))},this.handleInstallSelectionChange=e=>{this.setState({selectedAssets:e})},this.handleSubmitInstall=(e,t)=>{const{onInstall:n}=this.props,{selectedAssets:s}=this.state;return n(s,e,t)},this.handleSelectInstances=()=>{this.setState({isSelectingInstances:!0})},this.handleCloseSelectInstances=()=>{this.setState({isSelectingInstances:!1})},this.renderAvailableAssetsList=()=>{const{availableAssets:e}=this.state;return(null==e?void 0:e.length)?this.renderAvailableAssetsListWithItems():this.renderAvailableAssetsEmptyList()},this.state={availableAssets:null,selectedAssets:[],isSearching:!1,isSelectingInstances:!1,searchTerm:""}}normalizeRating(e){return e/100*5}renderAvailableAssetsListWithItems(){const{availableAssets:e,selectedAssets:t}=this.state,{tableTitleTitle:n,tableVersionTitle:s,tableRatingTitle:a,blockedPlugins:i}=this.props,r=[{key:"title",title:n,render:e=>(0,L.jsxs)(L.Fragment,{children:[i.includes(e.key)&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})},{key:"version",title:s},{key:"rating",title:a}],o=null==e?void 0:e.map((e=>({key:e.name,title:e.title,version:e.version,rating:(0,L.jsx)(Il,{value:this.normalizeRating(e.rating)}),disabled:i.includes(e.name)})));return(0,L.jsx)(uo,{columns:r,data:o,selection:t,onSelectionChange:this.handleInstallSelectionChange,"data-test-id":yv})}renderAvailableAssetsEmptyList(){const{nothingFoundText:e}=this.props;return(0,L.jsx)(_a,{children:e})}isSearchCanBeSubmitted(){const{isSearching:e}=this.state;return!e&&this.isSearchFieldValid()}isSearchFieldValid(){const{searchTerm:e}=this.state;return e.trim().length>=3}renderSearchingProgress(){return(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list.assets.loading"})})}renderSelectInstancesDrawer(){const{instances:e,selectInstancesText:t,showActivateAfterInstallation:n,activateAfterInstallationText:s,instanceNameListTitle:a,instanceUrlListTitle:i}=this.props;return(0,L.jsx)(fj,{onCloseDrawer:this.handleCloseSelectInstances,instances:e,onSubmitInstall:this.handleSubmitInstall,selectInstancesText:t,instanceNameListTitle:a,instanceUrlListTitle:i,drawerTitle:(0,L.jsx)(pp,{content:"list.assets.selectInstancesDrawerTitle"}),showActivateAfterInstallation:n,activateAfterInstallationText:s,backButton:!0})}render(){const{availableAssets:e,searchTerm:t,isSearching:n,isSelectingInstances:s,selectedAssets:a}=this.state,{drawerTitle:i,headDescription:r,searchDescription:o,onClose:l}=this.props;let c;return e&&e.length>0&&(c={onSubmit:this.handleSelectInstances,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"list.assets.selectInstancesButton"}),"data-test-id":"install-drawer-select-websites-button",disabled:0===a.length}}),(0,L.jsxs)(cr,{title:i,"data-type":"install-asset",onClose:l,form:c,isOpen:!0,children:[(0,L.jsx)(_a,{children:r}),(0,L.jsxs)(_a,{children:[(0,L.jsx)(Os,{value:t,onChange:this.handleSearchTermChange,onKeyDown:this.handleSearchKeyDown,"data-test-id":bv})," ",(0,L.jsx)(ut,{disabled:!this.isSearchCanBeSubmitted(),icon:"search",onClick:this.handleSearch,"data-test-id":vv}),(0,L.jsx)("br",{}),(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"list.sets.minAssetSearchLength",params:{count:3}})})]}),(0,L.jsx)(_a,{children:o}),n&&this.renderSearchingProgress(),e&&this.renderAvailableAssetsList(),s&&this.renderSelectInstancesDrawer()]})}}bj.defaultProps={activateAfterInstallationText:null,showActivateAfterInstallation:!1};const vj=Fc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(bj),yj=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function Sj(e,t,n){const s=function(e){const{name:t}=e;if(t&&-1!==t.lastIndexOf(".")&&!e.type){const n=t.split(".").pop().toLowerCase(),s=yj.get(n);s&&Object.defineProperty(e,"type",{value:s,writable:!1,configurable:!1,enumerable:!0})}return e}(e),{webkitRelativePath:a}=e,i="string"==typeof t?t:"string"==typeof a&&a.length>0?a:`./${e.name}`;return"string"!=typeof s.path&&wj(s,"path",i),void 0!==n&&Object.defineProperty(s,"handle",{value:n,writable:!1,configurable:!1,enumerable:!0}),wj(s,"relativePath",i),s}function wj(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const xj=[".DS_Store","Thumbs.db"];function Aj(e){return"object"==typeof e&&null!==e}function _j(e){return e.filter((e=>-1===xj.indexOf(e.name)))}function kj(e){if(null===e)return[];const t=[];for(let n=0;n<e.length;n++){const s=e[n];t.push(s)}return t}function jj(e){if("function"!=typeof e.webkitGetAsEntry)return Ij(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?Dj(t):Ij(e,t)}function Cj(e){return e.reduce(((e,t)=>[...e,...Array.isArray(t)?Cj(t):[t]]),[])}function Ij(e,t){return(0,Uu.sH)(this,void 0,void 0,(function*(){var n;if(globalThis.isSecureContext&&"function"==typeof e.getAsFileSystemHandle){const t=yield e.getAsFileSystemHandle();if(null===t)throw new Error(`${e} is not a File`);if(void 0!==t){const e=yield t.getFile();return e.handle=t,Sj(e)}}const s=e.getAsFile();if(!s)throw new Error(`${e} is not a File`);return Sj(s,null!==(n=null==t?void 0:t.fullPath)&&void 0!==n?n:void 0)}))}function Tj(e){return(0,Uu.sH)(this,void 0,void 0,(function*(){return e.isDirectory?Dj(e):function(e){return(0,Uu.sH)(this,void 0,void 0,(function*(){return new Promise(((t,n)=>{e.file((n=>{const s=Sj(n,e.fullPath);t(s)}),(e=>{n(e)}))}))}))}(e)}))}function Dj(e){const t=e.createReader();return new Promise(((e,n)=>{const s=[];!function a(){t.readEntries((t=>(0,Uu.sH)(this,void 0,void 0,(function*(){if(t.length){const e=Promise.all(t.map(Tj));s.push(e),a()}else try{const t=yield Promise.all(s);e(t)}catch(e){n(e)}}))),(e=>{n(e)}))}()}))}var Pj=r(9455);function Oj(e){return function(e){if(Array.isArray(e))return Nj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Uj(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function Mj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(n),!0).forEach((function(t){Ej(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ej(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,i=[],r=!0,o=!1;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!t||i.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==n.return||n.return()}finally{if(o)throw a}}return i}}(e,t)||Uj(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uj(e,t){if(e){if("string"==typeof e)return Nj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nj(e,t):void 0}}function Nj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var Fj="function"==typeof Pj?Pj:Pj.default,Bj=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(","),t=e.length>1?"one of ".concat(e.join(", ")):e[0];return{code:"file-invalid-type",message:"File type must be ".concat(t)}},Yj=function(e){return{code:"file-too-large",message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},Hj=function(e){return{code:"file-too-small",message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},Vj={code:"too-many-files",message:"Too many files"};function Wj(e,t){var n="application/x-moz-file"===e.type||Fj(e,t)||function(e){return""===e.type&&"function"==typeof e.getAsFile}(e);return[n,n?null:Bj(t)]}function $j(e,t,n){if(zj(e.size))if(zj(t)&&zj(n)){if(e.size>n)return[!1,Yj(n)];if(e.size<t)return[!1,Hj(t)]}else{if(zj(t)&&e.size<t)return[!1,Hj(t)];if(zj(n)&&e.size>n)return[!1,Yj(n)]}return[!0,null]}function zj(e){return null!=e}function qj(e){return"function"==typeof e.isPropagationStopped?e.isPropagationStopped():void 0!==e.cancelBubble&&e.cancelBubble}function Gj(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function Kj(e){e.preventDefault()}function Qj(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];return t.some((function(t){return!qj(e)&&t&&t.apply(void 0,[e].concat(s)),qj(e)}))}}function Jj(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||"application/*"===e||/\w+\/[-+.\w]+/g.test(e)}function Xj(e){return/^.*\.[\w]+$/.test(e)}var Zj=["children"],eC=["open"],tC=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],nC=["refKey","onChange","onClick"];function sC(e){return function(e){if(Array.isArray(e))return rC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||iC(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s,a,i=[],r=!0,o=!1;try{for(n=n.call(e);!(r=(s=n.next()).done)&&(i.push(s.value),!t||i.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==n.return||n.return()}finally{if(o)throw a}}return i}}(e,t)||iC(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iC(e,t){if(e){if("string"==typeof e)return rC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rC(e,t):void 0}}function rC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function oC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function lC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oC(Object(n),!0).forEach((function(t){cC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uC(e,t){if(null==e)return{};var n,s,a=function(e,t){if(null==e)return{};var n,s,a={},i=Object.keys(e);for(s=0;s<i.length;s++)n=i[s],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(s=0;s<i.length;s++)n=i[s],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var dC=(0,R.forwardRef)((function(e,t){var n=e.children,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=lC(lC({},pC),e),n=t.accept,s=t.disabled,a=t.getFilesFromEvent,i=t.maxSize,r=t.minSize,o=t.multiple,l=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,d=t.onDragOver,p=t.onDrop,h=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,f=t.onFileDialogOpen,b=t.useFsAccessApi,v=t.autoFocus,y=t.preventDropOnDocument,S=t.noClick,w=t.noKeyboard,x=t.noDrag,A=t.noDragEventsBubbling,_=t.onError,k=t.validator,j=(0,R.useMemo)((function(){return function(e){if(zj(e))return Object.entries(e).reduce((function(e,t){var n=Rj(t,2),s=n[0],a=n[1];return[].concat(Oj(e),[s],Oj(a))}),[]).filter((function(e){return Jj(e)||Xj(e)})).join(",")}(n)}),[n]),C=(0,R.useMemo)((function(){return function(e){if(zj(e)){var t=Object.entries(e).filter((function(e){var t=Rj(e,2),n=t[0],s=t[1],a=!0;return Jj(n)||(console.warn('Skipped "'.concat(n,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),Array.isArray(s)&&s.every(Xj)||(console.warn('Skipped "'.concat(n,'" because an invalid file extension was provided.')),a=!1),a})).reduce((function(e,t){var n=Rj(t,2),s=n[0],a=n[1];return Mj(Mj({},e),{},Ej({},s,a))}),{});return[{description:"Files",accept:t}]}return e}(n)}),[n]),I=(0,R.useMemo)((function(){return"function"==typeof f?f:fC}),[f]),T=(0,R.useMemo)((function(){return"function"==typeof g?g:fC}),[g]),D=(0,R.useRef)(null),P=(0,R.useRef)(null),O=aC((0,R.useReducer)(gC,mC),2),L=O[0],M=O[1],E=L.isFocused,U=L.isFileDialogActive,N=(0,R.useRef)("undefined"!=typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),F=function(){!N.current&&U&&setTimeout((function(){P.current&&(P.current.files.length||(M({type:"closeDialog"}),T()))}),300)};(0,R.useEffect)((function(){return window.addEventListener("focus",F,!1),function(){window.removeEventListener("focus",F,!1)}}),[P,U,T,N]);var B=(0,R.useRef)([]),Y=(0,R.useRef)([]),H=function(e){D.current&&D.current.contains(e.target)||(e.preventDefault(),B.current=[])};(0,R.useEffect)((function(){return y&&(document.addEventListener("dragover",Kj,!1),document.addEventListener("drop",H,!1)),function(){y&&(document.removeEventListener("dragover",Kj),document.removeEventListener("drop",H))}}),[D,y]),(0,R.useEffect)((function(){var e=function(e){Y.current=[].concat(sC(Y.current),[e.target]),Gj(e)&&M({isDragGlobal:!0,type:"setDragGlobal"})},t=function(e){Y.current=Y.current.filter((function(t){return t!==e.target&&null!==t})),Y.current.length>0||M({isDragGlobal:!1,type:"setDragGlobal"})},n=function(){Y.current=[],M({isDragGlobal:!1,type:"setDragGlobal"})},s=function(){Y.current=[],M({isDragGlobal:!1,type:"setDragGlobal"})};return document.addEventListener("dragenter",e,!1),document.addEventListener("dragleave",t,!1),document.addEventListener("dragend",n,!1),document.addEventListener("drop",s,!1),function(){document.removeEventListener("dragenter",e),document.removeEventListener("dragleave",t),document.removeEventListener("dragend",n),document.removeEventListener("drop",s)}}),[D]),(0,R.useEffect)((function(){return!s&&v&&D.current&&D.current.focus(),function(){}}),[D,v,s]);var V=(0,R.useCallback)((function(e){_?_(e):console.error(e)}),[_]),W=(0,R.useCallback)((function(e){e.preventDefault(),e.persist(),se(e),B.current=[].concat(sC(B.current),[e.target]),Gj(e)&&Promise.resolve(a(e)).then((function(t){if(!qj(e)||A){var n=t.length,s=n>0&&function(e){var t=e.files,n=e.accept,s=e.minSize,a=e.maxSize,i=e.multiple,r=e.maxFiles,o=e.validator;return!(!i&&t.length>1||i&&r>=1&&t.length>r)&&t.every((function(e){var t=Rj(Wj(e,n),1)[0],i=Rj($j(e,s,a),1)[0],r=o?o(e):null;return t&&i&&!r}))}({files:t,accept:j,minSize:r,maxSize:i,multiple:o,maxFiles:l,validator:k});M({isDragAccept:s,isDragReject:n>0&&!s,isDragActive:!0,type:"setDraggedFiles"}),c&&c(e)}})).catch((function(e){return V(e)}))}),[a,c,V,A,j,r,i,o,l,k]),$=(0,R.useCallback)((function(e){e.preventDefault(),e.persist(),se(e);var t=Gj(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(e){}return t&&d&&d(e),!1}),[d,A]),z=(0,R.useCallback)((function(e){e.preventDefault(),e.persist(),se(e);var t=B.current.filter((function(e){return D.current&&D.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),B.current=t,t.length>0||(M({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Gj(e)&&u&&u(e))}),[D,u,A]),q=(0,R.useCallback)((function(e,t){var n=[],s=[];e.forEach((function(e){var t=aC(Wj(e,j),2),a=t[0],o=t[1],l=aC($j(e,r,i),2),c=l[0],u=l[1],d=k?k(e):null;if(a&&c&&!d)n.push(e);else{var p=[o,u];d&&(p=p.concat(d)),s.push({file:e,errors:p.filter((function(e){return e}))})}})),(!o&&n.length>1||o&&l>=1&&n.length>l)&&(n.forEach((function(e){s.push({file:e,errors:[Vj]})})),n.splice(0)),M({acceptedFiles:n,fileRejections:s,isDragReject:s.length>0,type:"setFiles"}),p&&p(n,s,t),s.length>0&&m&&m(s,t),n.length>0&&h&&h(n,t)}),[M,o,j,r,i,l,p,h,m,k]),G=(0,R.useCallback)((function(e){e.preventDefault(),e.persist(),se(e),B.current=[],Gj(e)&&Promise.resolve(a(e)).then((function(t){qj(e)&&!A||q(t,e)})).catch((function(e){return V(e)})),M({type:"reset"})}),[a,q,V,A]),K=(0,R.useCallback)((function(){if(N.current){M({type:"openDialog"}),I();var e={multiple:o,types:C};window.showOpenFilePicker(e).then((function(e){return a(e)})).then((function(e){q(e,null),M({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(T(e),M({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)?(N.current=!1,P.current?(P.current.value=null,P.current.click()):V(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):V(e)}))}else P.current&&(M({type:"openDialog"}),I(),P.current.value=null,P.current.click())}),[M,I,T,b,q,V,C,o]),Q=(0,R.useCallback)((function(e){D.current&&D.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),K()))}),[D,K]),J=(0,R.useCallback)((function(){M({type:"focus"})}),[]),X=(0,R.useCallback)((function(){M({type:"blur"})}),[]),Z=(0,R.useCallback)((function(){S||(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?setTimeout(K,0):K())}),[S,K]),ee=function(e){return s?null:e},te=function(e){return w?null:ee(e)},ne=function(e){return x?null:ee(e)},se=function(e){A&&e.stopPropagation()},ae=(0,R.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,a=e.role,i=e.onKeyDown,r=e.onFocus,o=e.onBlur,l=e.onClick,c=e.onDragEnter,u=e.onDragOver,d=e.onDragLeave,p=e.onDrop,h=uC(e,tC);return lC(lC(cC({onKeyDown:te(Qj(i,Q)),onFocus:te(Qj(r,J)),onBlur:te(Qj(o,X)),onClick:ee(Qj(l,Z)),onDragEnter:ne(Qj(c,W)),onDragOver:ne(Qj(u,$)),onDragLeave:ne(Qj(d,z)),onDrop:ne(Qj(p,G)),role:"string"==typeof a&&""!==a?a:"presentation"},n,D),s||w?{}:{tabIndex:0}),h)}}),[D,Q,J,X,Z,W,$,z,G,w,x,s]),ie=(0,R.useCallback)((function(e){e.stopPropagation()}),[]),re=(0,R.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,s=e.onChange,a=e.onClick,i=uC(e,nC);return lC(lC({},cC({accept:j,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:ee(Qj(s,G)),onClick:ee(Qj(a,ie)),tabIndex:-1},n,P)),i)}}),[P,n,o,G,s]);return lC(lC({},L),{},{isFocused:E&&!s,getRootProps:ae,getInputProps:re,rootRef:D,inputRef:P,open:ee(K)})}(uC(e,Zj)),a=s.open,i=uC(s,eC);return(0,R.useImperativeHandle)(t,(function(){return{open:a}}),[a]),R.createElement(R.Fragment,null,n(lC(lC({},i),{},{open:a})))}));dC.displayName="Dropzone";var pC={disabled:!1,getFilesFromEvent:function(e){return(0,Uu.sH)(this,void 0,void 0,(function*(){return Aj(e)&&Aj(e.dataTransfer)?function(e,t){return(0,Uu.sH)(this,void 0,void 0,(function*(){if(e.items){const n=kj(e.items).filter((e=>"file"===e.kind));return"drop"!==t?n:_j(Cj(yield Promise.all(n.map(jj))))}return _j(kj(e.files).map((e=>Sj(e))))}))}(e.dataTransfer,e.type):Aj(t=e)&&Aj(t.target)?function(e){return kj(e.target.files).map((e=>Sj(e)))}(e):Array.isArray(e)&&e.every((e=>"getFile"in e&&"function"==typeof e.getFile))?function(e){return(0,Uu.sH)(this,void 0,void 0,(function*(){return(yield Promise.all(e.map((e=>e.getFile())))).map((e=>Sj(e)))}))}(e):[];var t}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};dC.defaultProps=pC,dC.propTypes={children:ke.func,accept:ke.objectOf(ke.arrayOf(ke.string)),multiple:ke.bool,preventDropOnDocument:ke.bool,noClick:ke.bool,noKeyboard:ke.bool,noDrag:ke.bool,noDragEventsBubbling:ke.bool,minSize:ke.number,maxSize:ke.number,maxFiles:ke.number,disabled:ke.bool,getFilesFromEvent:ke.func,onFileDialogCancel:ke.func,onFileDialogOpen:ke.func,useFsAccessApi:ke.bool,autoFocus:ke.bool,onDragEnter:ke.func,onDragLeave:ke.func,onDragOver:ke.func,onDrop:ke.func,onDropAccepted:ke.func,onDropRejected:ke.func,onError:ke.func,validator:ke.func};const hC=dC;var mC={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,isDragGlobal:!1,acceptedFiles:[],fileRejections:[]};function gC(e,t){switch(t.type){case"focus":return lC(lC({},e),{},{isFocused:!0});case"blur":return lC(lC({},e),{},{isFocused:!1});case"openDialog":return lC(lC({},mC),{},{isFileDialogActive:!0});case"closeDialog":return lC(lC({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return lC(lC({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return lC(lC({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"setDragGlobal":return lC(lC({},e),{},{isDragGlobal:t.isDragGlobal});case"reset":return lC({},mC);default:return e}}function fC(){}class bC extends R.Component{constructor(e){super(e),this.validateForm=()=>{const{noInstancesSelectedErrorMessage:e}=this.props,{uploadFile:t,selectedInstanceIds:n}=this.state,s={};return t||(s.fileUpload={noFile:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.errorEmptyArchive"})}),this.isInstancesSelectionAvailable()&&0===n.length&&(s.instances={noInstances:e}),s},this.handleSubmitUpload=()=>{const{onUpload:e}=this.props,{uploadFile:t,selectedSetId:n,selectedInstanceIds:s,isActivateAfterInstallation:a,isUploading:i}=this.state;if(i)return;const r=this.validateForm();Object.keys(r).length>0?this.setState({formErrors:r}):(this.setState({isUploading:!0,formErrors:null}),e({uploadFile:t,setId:""===n?null:n,instanceIds:s.map((e=>parseInt(e))),isActivateAfterInstallation:a}).then((e=>{e.status===Ep&&e.formErrors&&this.setState({formErrors:e.formErrors})})).finally((()=>this.setState({isUploading:!1}))))},this.handleAcceptUploadFiles=e=>{this.setState({uploadFile:e[0]})},this.handleSelectedSetChange=e=>{this.setState({selectedSetId:e.target.value})},this.handleInstancesSelectionChange=e=>{this.setState({selectedInstanceIds:e})},this.handleActivateAfterInstallationChange=e=>{this.setState({isActivateAfterInstallation:e})},this.state={uploadFile:null,selectedSetId:"",isUploading:!1,selectedInstanceIds:[],isActivateAfterInstallation:!1,formErrors:null}}isInstancesSelectionAvailable(){const{instances:e}=this.props;return null!=e&&e.length>0}getUploadFileHint(){const{uploadFile:e}=this.state;return e?e.name:(0,L.jsx)(pp,{content:"list.assets.uploadNoFileSelected"})}renderSetsSelector(){const{sets:e,uploadHintForSet:t}=this.props;if(0===(null==e?void 0:e.length))return null;const{selectedSetId:n}=this.state;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:t}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectSet"}),children:(0,L.jsxs)("select",{value:n,onChange:this.handleSelectedSetChange,children:[(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.notSelectedSet",component:"option",value:""}),null==e?void 0:e.map((e=>(0,L.jsx)("option",{value:e.id,children:e.name},e.id)))]})})]})}renderInstancesSelector(){const{instances:e,activateAfterInstallationLabel:t,uploadHintForInstances:n}=this.props,{selectedInstanceIds:s,isActivateAfterInstallation:a,formErrors:i}=this.state;if(!this.isInstancesSelectionAvailable())return null;const r=[{key:"name",title:(0,L.jsx)(pp,{content:"list.instances.url"}),render:e=>(0,L.jsx)(hj,{id:e.id,name:e.name})},{key:"url",title:(0,L.jsx)(pp,{content:"list.instances.version"}),render:e=>(0,L.jsx)(mj,{url:e.url})}],o=null==e?void 0:e.map((e=>({id:e.id,key:`${e.id}`,name:e.name,url:e.url})));return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Li,{errors:i&&i.hasOwnProperty("instances")?i.instances:void 0,label:(0,L.jsx)(pp,{content:"list.assets.selectInstancesLabel"}),description:n,required:!0,children:(0,L.jsx)(uo,{columns:r,data:o,selection:s,onSelectionChange:this.handleInstancesSelectionChange})}),(0,L.jsx)("div",{style:{paddingTop:"20px"},children:(0,L.jsx)(mr,{label:t,value:a,onChange:this.handleActivateAfterInstallationChange})})]})}renderFileSelector(){const{selectLabel:e,baseClassName:t}=this.props,{formErrors:n}=this.state;return(0,L.jsx)(Li,{label:e,description:this.getUploadFileHint(),errors:n&&n.hasOwnProperty("fileUpload")?n.fileUpload:void 0,required:!0,children:(0,L.jsx)(hC,{onDrop:this.handleAcceptUploadFiles,multiple:!1,children:({getRootProps:e,getInputProps:n})=>(0,L.jsxs)("div",Object.assign({},e(),{className:`${t}__dropzone`,children:[(0,L.jsx)("input",Object.assign({},n())),(0,L.jsx)(ut,{children:(0,L.jsx)(pp,{content:"list.assets.uploadBrowseButton"})})]}))})})}render(){const{isUploading:e}=this.state,{drawerTitle:t,onClose:n,baseClassName:s}=this.props,a={onSubmit:this.handleSubmitUpload,applyButton:!1,submitButton:{state:e?"loading":"active",disabled:e},cancelButton:{disabled:e}};return(0,L.jsxs)(cr,{title:t,"data-type":"upload-asset",onClose:n,form:a,isOpen:!0,size:this.isInstancesSelectionAvailable()?"md":"sm",className:s,children:[this.renderFileSelector(),this.renderSetsSelector(),this.renderInstancesSelector()]})}}bC.defaultProps={sets:[],instances:null,baseClassName:`${th}upload-asset-drawer`};const vC=bC,yC=e=>{const t=e.displayName||e.name||"Component",n=t=>{const n=(()=>{const[e,t]=(0,R.useState)([]),n=(0,R.useCallback)((()=>t([])),[]),s=(0,R.useCallback)((n=>{t(e.filter((({key:e})=>e!==n)))}),[e]),a=(0,R.useCallback)((n=>{n=[...n];const s=e.map((e=>e.key));e.forEach((e=>{s.length&&-1===s.indexOf(e.key)&&n.push(e)})),t(n)}),[e]),i=(0,R.useCallback)(((e,t,n=xp(4))=>{a([{key:n,status:Np,message:e,isTranslate:t}])}),[a]),r=(0,R.useCallback)(((e,t,n=xp(4))=>{a([{key:n,status:Bp,message:e,isTranslate:t}])}),[a]),o=(0,R.useCallback)(((e,t,n=xp(4))=>{a([{key:n,status:Fp,message:e,isTranslate:t}])}),[a]),l=(0,R.useCallback)((()=>e&&e.length?e.map((({key:e,status:t,message:n,icon:a=null,isTranslate:i=!1})=>{if(!t||!n)return null;const r=i?(0,L.jsx)(pp,{content:n}):(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(n,Object.assign(Object.assign({},up.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),o=t===Ep?Bp:t;return(0,L.jsxs)(Fe,{intent:o,className:"wpt-drawer-alert",onClose:()=>s(e),children:[a&&(0,L.jsxs)(L.Fragment,{children:[a," "]}),r]},xp(4))})):null),[e,s]);return{onSetDrawerMessages:a,onClearDrawerMessages:n,onAddDrawerSuccessMessage:i,onAddDrawerErrorMessage:r,onAddDrawerWarningMessage:o,renderDrawerMessages:l}})();return(0,L.jsx)(e,Object.assign({},n,t))};return n.displayName=`withDrawerMessages(${t})`,n};var SC=r(25508);const wC="servers/ADD_SERVER_STARTED",xC="servers/ADD_SERVER",AC="servers/UPDATE_SERVER",_C="servers/SCAN_SERVERS_STARTED",kC="server/SCAN_FINISHED",jC="servers/MARK_SCANNING_SERVERS",CC="servers/UPDATE_SERVERS_LIST",IC="servers/DISABLE_BETA_DIALOG",TC="servers/RESET_SERVERS_LIST",DC="servers/REMOVE_SERVERS",PC="server/FILTERS_ALL",OC="server/FILTERS_ACTIVE",LC="servers/SET_INSTANCES_LOG",MC="servers/RESET_INSTANCES_LOG",EC="success",RC="path",UC="plain",NC="password",FC="autodetect",BC="paths",YC="clone/CLONE_STARTED",HC="sync/SYNC_STARTED",VC="asset/GET_AVAILABLE_ASSETS",WC="asset/SET_ASSET_TO_INSTALLING",$C="asset/REMOVE_ASSET_FROM_INSTALLING",zC="asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE",qC="asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE_FINISHED",GC="themes/UPDATE_THEMES_PAGE",KC="themes/RESET_THEMES_PAGE",QC="themes/RELOAD_THEMES_FINISHED",JC="themes/INSTALL_THEMES_STARTED",XC="themes/UPDATE_THEMES_STARTED",ZC="themes/UNINSTALL_THEMES_STARTED",eI="themes/REMOVE_THEMES_STARTED",tI="themes/ACTIVATE_THEME_STARTED",nI="plugins/UPLOAD_AND_INSTALL_THEME_TASK_STARTED",sI="backup/SET_INSTANCE_BACKUPS_LIST",aI="backup/REMOVE_INSTANCE_BACKUPS",iI="backup/BACKUP_CREATION_STARTED",rI="backup/BACKUP_RESTORING_STARTED",oI="checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_STARTED",lI="critical",cI="custom",uI="securityMeasures/LIST_LOADING",dI="securityMeasures/LIST_LOADED_FROM_API",pI="securityMeasures/INSTALLATIONS_SECURITY_MEASURES_LOADED_FROM_API",hI="securityMeasures/INSTALLATIONS_SECURITY_MEASURES_RELOADED_FROM_API",mI="securityMeasures/CHECK_SECURITY_PENDING",gI="securityMeasures/CHECK_SECURITY_INITIATED",fI="securityMeasures/RESOLVE_SECURITY_INITIATED",bI="securityMeasures/REVERT_SECURITY_INITIATED",vI="mass-security-operation",yI="mass-check-updates",SI=[wC,_C,jy,Sy,hy,by,ky,Py,YC,HC,zC,Ik,Tk,Dk,Pk,Ok,Lk,JC,XC,ZC,eI,tI,Mk,nI,Uy,Ny,Yy,iI,rI,oI,gI,fI,bI,Ky,qy,PS,LS,eS,tS,nS],wI=({className:e="",text:t=""})=>t?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("span",{className:`loading-spinner ${e}`})," ",t]}):(0,L.jsx)("span",{className:`loading-spinner ${e}`});class xI extends R.Component{constructor(){super(...arguments),this.renderPopover=()=>this.props.checkers.map((e=>(0,L.jsxs)("div",{className:"wpt-instances-security-form-list_col-popover_issue",children:[e.title," ",e.description&&e.description.length>0&&(0,L.jsx)(Xe,{className:"maximum-z-index",title:e.description,children:(0,L.jsx)(xe,{name:"info-circle"})})]},e.id)))}render(){const{checkers:e}=this.props,t=e.length;return 0===t?(0,L.jsx)(Gi,{icon:"check-mark-circle",intent:"success"}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{icon:"exclamation-mark-circle",intent:"danger"}),placement:"top-left",children:(0,L.jsx)("div",{className:"wpt-instances-security-form-list_col-popover",children:this.renderPopover()})}),` ${t}`]})}}const AI=xI;class _I extends R.Component{constructor(){super(...arguments),this.renderPopover=()=>this.props.checkers.map((e=>(0,L.jsxs)("div",{className:"wpt-instances-security-form-list_col-popover_issue",children:[e.title," ",e.description&&e.description.length>0&&(0,L.jsx)(Xe,{className:"maximum-z-index",title:e.description,children:(0,L.jsx)(xe,{name:"info-circle"})})]},e.id)))}render(){const{checkers:e}=this.props,t=e.length;return 0===t?(0,L.jsx)(Gi,{icon:"check-mark-circle",intent:"success"}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{icon:"triangle-exclamation-mark",intent:"warning"}),placement:"top-left",children:(0,L.jsx)("div",{className:"wpt-instances-security-form-list_col-popover",children:this.renderPopover()})}),` ${t}`]})}}const kI=_I;class jI{constructor(e){this.getCriticalSecurityMeasuresIds=()=>this.securityMeasures.filter((e=>e.critical)).map((e=>e.id)),this.getRecommendedSecurityMeasuresIds=()=>this.securityMeasures.filter((e=>!e.critical)).map((e=>e.id)),this.getUnresolvedCriticalSecurityMeasures=e=>e.securityMeasures.filter((e=>e.available&&!e.status&&this.getCriticalSecurityMeasuresIds().includes(e.id))),this.getUnresolvedRecommendedSecurityMeasures=e=>e.securityMeasures.filter((e=>e.available&&!e.status&&this.getRecommendedSecurityMeasuresIds().includes(e.id))),this.hasUnresolvedCriticalSecurityMeasures=e=>this.getUnresolvedCriticalSecurityMeasures(e).length>0,this.hasUnresolvedRecommendedSecurityMeasures=e=>this.getUnresolvedRecommendedSecurityMeasures(e).length>0,this.getSecurityMeasuresByIds=e=>this.securityMeasures.filter((t=>e.includes(t.id))),this.isSecurityMeasureResolvedForInstallation=(e,t)=>t.securityMeasures.some((t=>t.id===e&&t.status)),this.getUnresolvedSecurityMeasureAvailableForResolve=e=>e.filter((e=>e.available&&!e.status)),this.getResolvedSecurityMeasureAvailableForRevert=e=>e.filter((e=>{if(!e.available||!e.status)return!1;const t=this.securityMeasures.find((t=>t.id===e.id));return!!t&&t.rollbackAvailable})),this.isSecurityMeasureAvailable=(e,t)=>t.some((t=>t.id===e&&t.available)),this.securityMeasures=e}}const CI=["all",lI,cI];class II extends R.Component{constructor(){super(...arguments),this.state={isLoading:!1,securityCheckersSelection:{}},this.setSecurityCheckersSelection=()=>this.props.setSecurityCheckersSelection(Object.keys(this.state.securityCheckersSelection).filter((e=>this.state.securityCheckersSelection[e]))),this.handleChangeSecurityOption=e=>this.setState((t=>{const{securityMeasures:n,securityMeasuresForResolving:s}=this.props,a=new jI(n);let i=Object.assign({},t.securityCheckersSelection);switch(e){case"all":i=_p(s,(e=>({key:e.id,value:!0})));break;case lI:i=_p(s,(e=>({key:e.id,value:a.getCriticalSecurityMeasuresIds().includes(e.id)})))}return{securityOption:e,securityCheckersSelection:i}}),this.setSecurityCheckersSelection),this.handleChangeSecurityChecker=(e,t)=>this.setState((n=>{const s=Object.assign({},n.securityCheckersSelection);return s[e]=t,{securityCheckersSelection:s,securityOption:cI}}),this.setSecurityCheckersSelection),this.getSecurityCheckersControl=()=>{const{securityMeasuresForResolving:e}=this.props,{securityCheckersSelection:t}=this.state;return(0,L.jsx)("div",{className:"wpt-mgl-20",children:e.map((e=>(0,L.jsxs)("div",{className:"wpt-instances-security_resolve-security-checkers-form_item",children:[(0,L.jsx)(mr,{label:e.title,className:"pull-left",value:t[e.id],onChange:t=>this.handleChangeSecurityChecker(e.id,t)}),e.description&&e.description.length>0&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-instances-security_resolve-security-checkers-form_item-info"}),placement:"top-right",children:e.description}),e.rollbackAvailable&&(0,L.jsxs)(da,{className:"wpt-mgl-5",children:["(",(0,L.jsx)(pp,{content:"list-ui.instances.forms.resolveSecurityCheckers.hasRollback"}),")"]})]},e.id)))})},this.getSecurityOptions=()=>CI.map((e=>({label:(0,L.jsx)(pp,{content:`list-ui.instances.forms.resolveSecurityCheckers.${e}`}),value:String(e)})))}componentDidMount(){this.handleChangeSecurityOption(lI)}render(){const{isLoading:e,securityOption:t}=this.state;return e?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instances.forms.resolveSecurityCheckers.loading"})]}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.resolveSecurityCheckers.description"})}),(0,L.jsx)(_r,{name:"securityOption",label:null,value:t,options:this.getSecurityOptions(),onChange:this.handleChangeSecurityOption}),this.getSecurityCheckersControl()]})}}II.propTypes={securityMeasuresForResolving:je().array.isRequired,securityMeasures:je().array.isRequired,setSecurityCheckersSelection:je().func.isRequired};const TI=Fc((e=>({securityMeasures:e.securityMeasures.securityMeasures})),{})(II);class DI extends R.Component{constructor(){super(...arguments),this.state={isLoading:!1,securityCheckersSelection:{}},this.handleChangeSecurityChecker=(e,t)=>this.setState((n=>{const s=Object.assign({},n.securityCheckersSelection);return s[e]=t,{securityCheckersSelection:s}}),(()=>this.props.setSecurityCheckersSelection(Object.keys(this.state.securityCheckersSelection).filter((e=>this.state.securityCheckersSelection[e])))))}render(){if(this.state.isLoading)return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instances.forms.revertSecurityCheckers.loading"})]});const{securityMeasuresForReverting:e}=this.props;return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.revertSecurityCheckers.description"})}),e.map((e=>(0,L.jsxs)("div",{className:"wpt-instances-security_revert-security-checkers-form_item",children:[(0,L.jsx)(mr,{label:e.title,className:"pull-left",value:this.state.securityCheckersSelection[e.id],onChange:t=>this.handleChangeSecurityChecker(e.id,t)}),e.description&&e.description.length>0&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-instances-security_revert-security-checkers-form_item-info"}),placement:"top-right",children:e.description})]},e.id)))]})}}DI.propTypes={securityMeasuresForReverting:je().array.isRequired,setSecurityCheckersSelection:je().func.isRequired};const PI=DI;function OI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function LI(e,t,n){return t=NI(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,BI()?Reflect.construct(t,n||[],NI(e).constructor):t.apply(e,n))}function MI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EI(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,WI(s.key),s)}}function RI(e,t,n){return t&&EI(e.prototype,t),n&&EI(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UI(e,t,n){return(t=WI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NI(e){return NI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},NI(e)}function FI(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&VI(e,t)}function BI(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BI=function(){return!!e})()}function YI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YI(Object(n),!0).forEach((function(t){UI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VI(e,t){return VI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VI(e,t)}function WI(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}var $I={NOT_STARTED:"not_started",STARTED:"started",RUNNING:"running",CANCELED:"canceled",ERROR:"error",DONE:"done"},zI={NOT_STARTED:"not_started",STARTED:"started",RUNNING:"running",CANCELED:"canceled",ERROR:"error",DONE:"done"},qI="backgroundTask/ADD",GI="backgroundTask/UPDATE",KI="backgroundTask/POLL",QI="backgroundTask/REMOVE",JI="error",XI="background-tasks-",ZI=function(e){return e&&[$I.CANCELED,$I.ERROR,$I.DONE].includes(e.status)},eT=function(e){return e&&e.status===$I.DONE},tT=function(e){return e&&e.status===$I.ERROR},nT=function(e,t){return t.find((function(t){return t.id===e}))},sT=function(e){return e.status===$I.ERROR?"danger":"warning"},aT=function(e,t,n){return function(s,a){return e({id:t,code:n}).then((function(e){var t=e.data;if(t.status===JI)return null;var n=t.data.task;return a().backgroundTasks.tasks.some((function(e){return e.id===n.id}))||s({type:KI,task:n}),n})).catch((function(){return null}))}},iT=function(e,t){return function(n,s){return e(t).then((function(e){var t=e.data;if(t.status===JI)return[];var a=t.data.tasks,i=s().backgroundTasks.tasks;return a.forEach((function(e){i.some((function(t){return t.id===e.id}))||n({type:KI,task:e})})),a})).catch((function(){return[]}))}},rT=function(e){return function(t){return e.forEach((function(e){ZI(e)||t({type:KI,task:e})}))}},oT=function(e){function t(){var e;MI(this,t);for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return UI(e=LI(this,t,[].concat(s)),"renderStatusIcon",(function(e){return ZI(e)?tT(e)?(0,R.createElement)(xe,{name:"cross-mark-circle-filled",intent:"danger"}):e.errors.length>0?(0,R.createElement)(xe,{name:"check-mark-circle-filled",intent:"warning"}):(0,R.createElement)(xe,{name:"check-mark-circle-filled",intent:"success"}):(0,R.createElement)(xe,{name:"reload",animation:"spin",intent:"info"})})),UI(e,"renderDetails",(function(t){var n=e.props,s=n.baseClassName,a=n.onShowDetails;if(!ZI(t)){var i=Object.keys(t.steps).length>0;return(0,R.createElement)(R.Fragment,null,t.title,(0,R.createElement)(sr,{className:"".concat(s,"__progress-bar"),progress:t.progress,status:t.status}),(0,R.createElement)("div",{className:"".concat(s,"__progress-footer")},i&&(0,R.createElement)("div",{className:"".concat(s,"__progress-control")},(0,R.createElement)(_e,{onClick:function(){return a(t)}},(0,R.createElement)(Vn,{content:"backgroundTasks.showDetails",fallback:"show details"}))),(0,R.createElement)(Vn,{content:"backgroundTasks.completedProgress",params:{progress:t.progress},fallback:"%%progress%%% completed"})))}return eT(t)&&0===t.errors.length?t.title:(0,R.createElement)(R.Fragment,null,(0,R.createElement)(da,null,t.title),(0,R.createElement)("br",null),(0,R.createElement)(da,{className:"".concat(s,"__errors")},t.errors.map((function(e){return(0,R.createElement)("span",{key:e},e,(0,R.createElement)("br",null))}))))})),UI(e,"renderAction",(function(t){if(!ZI(t))return null;var n=e.props.onClose;return(0,R.createElement)(_e,{icon:"cross-mark",onClick:function(){return n(t)}})})),e}return FI(t,e),RI(t,[{key:"render",value:function(){var e=this.props,t=e.task,n=e.baseClassName;return ZI(t)?(0,R.createElement)("div",{className:n},(0,R.createElement)(ga,{xs:3},(0,R.createElement)(fa,{xs:1},this.renderStatusIcon(t)),(0,R.createElement)(fa,{xs:10},this.renderDetails(t)),(0,R.createElement)(fa,{xs:1,className:"".concat(n,"__action")},this.renderAction(t)))):(0,R.createElement)("div",{className:n},(0,R.createElement)(ga,{xs:1},(0,R.createElement)(fa,{xs:12},this.renderDetails(t))))}}])}(R.Component);oT.propTypes={task:je().object.isRequired,onClose:je().func.isRequired,onShowDetails:je().func.isRequired,baseClassName:je().string},oT.defaultProps={baseClassName:"".concat(XI,"background-task-item")};var lT=function(e){function t(){var e;MI(this,t);for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];return UI(e=LI(this,t,[].concat(s)),"isErrorsVisible",(function(){var t=e.props.task;return ZI(t)&&t.errors.length>0})),e}return FI(t,e),RI(t,[{key:"render",value:function(){var e=this.props,t=e.task,n=e.onClose,s=e.baseClassName,a=[];return Object.keys(t.steps).forEach((function(e){var n=t.steps[e];if(n){var s=(0,R.createElement)(sr,{key:e,title:n.title,status:n.status,progress:n.progress},!1===ZI(t)&&n.hint);a.push(s)}})),(0,R.createElement)(Wi,{actions:[(0,R.createElement)(_e,{key:"minimize",onClick:n},(0,R.createElement)(Vn,{content:"backgroundTasks.minimizeDetails",fallback:"minimize"}))],className:s,title:t.title,size:"xs",onClose:n,closable:!1,isOpen:!0},(0,R.createElement)(ir,{className:"".concat(s,"__content")},a),this.isErrorsVisible()&&(0,R.createElement)(Fe,{className:"".concat(s,"__errors"),intent:sT(t)},t.errors.map((function(e){return(0,R.createElement)("span",{key:e},e,(0,R.createElement)("br",null))}))))}}])}(R.Component);lT.propTypes={task:je().object.isRequired,onClose:je().func.isRequired,baseClassName:je().string},lT.defaultProps={baseClassName:"".concat(XI,"background-task-details")};var cT=function(e){function t(e){var n;return MI(this,t),UI(n=LI(this,t,[e]),"isNeedToRender",(function(){return n.props.tasks.length>0})),UI(n,"handleToggleCollaps",(function(){return n.setState((function(e){return{isCollapsed:!e.isCollapsed}}))})),UI(n,"hasSeveralStatusesOrTasks",(function(e,t,n,s){return[e,t,n,s].reduce((function(e,t){return t<=0||((e.wasOneMoreThanZero||t>1)&&(e.hasSeveralStatusesOrTasks=!0),e.wasOneMoreThanZero=!0),e}),{hasSeveralStatusesOrTasks:!1,wasOneMoreThanZero:!1}).hasSeveralStatusesOrTasks})),UI(n,"handleCloseItem",(function(e){return n.props.removeBackgroundTask(n.props.removeTaskApi,e.id,e.code)})),UI(n,"handleOpenDetails",(function(e){return n.setState({showDetailsTaskId:e.id})})),UI(n,"handleCloseDetails",(function(){return n.setState({showDetailsTaskId:null})})),UI(n,"renderHideCompletedAction",(function(e){if(!e)return null;var t=n.props,s=t.baseClassName,a=t.removeCompletedBackgroundTasks,i=t.removeTasksApi;return(0,R.createElement)(_e,{className:"".concat(s,"__hide-completed"),onClick:function(){return a(i)}},(0,R.createElement)(Vn,{content:"backgroundTasks.hideCompleted",fallback:"Hide completed"}))})),UI(n,"renderTitle",(function(){var e=n.props,t=e.baseClassName,s=e.tasks,a=s.filter((function(e){return!1===ZI(e)})).length,i=s.filter((function(e){return eT(e)&&0===e.errors.length})).length,r=s.filter((function(e){return eT(e)&&e.errors.length>0})).length,o=s.filter((function(e){return tT(e)})).length,l=null;a>0&&(l=(0,R.createElement)(R.Fragment,null,(0,R.createElement)(xe,{className:"".concat(t,"__title__icon"),name:"reload",animation:"spin",intent:"info"}),(0,R.createElement)(Vn,{content:"backgroundTasks.tasksInProgress",params:{count:a},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks in progress"}),(0,R.createElement)("span",{className:"".concat(t,"__title__count")},a)));var c=null;i>0&&(c=(0,R.createElement)(R.Fragment,null,(0,R.createElement)(xe,{className:"".concat(t,"__title__icon"),name:"check-mark-circle-filled",intent:"success"}),(0,R.createElement)(Vn,{content:"backgroundTasks.tasksDone",params:{count:i},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks were successfully completed"}),(0,R.createElement)("span",{className:"".concat(t,"__title__count")},i)));var u=null;r>0&&(u=(0,R.createElement)(R.Fragment,null,(0,R.createElement)(xe,{className:"".concat(t,"__title__icon"),name:"check-mark-circle-filled",intent:"warning"}),(0,R.createElement)(Vn,{content:"backgroundTasks.tasksWarning",params:{count:r},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks was performed with errors"}),(0,R.createElement)("span",{className:"".concat(t,"__title__count")},r)));var d=null;o>0&&(d=(0,R.createElement)(R.Fragment,null,(0,R.createElement)(xe,{className:"".concat(t,"__title__icon"),name:"cross-mark-circle-filled",intent:"danger"}),(0,R.createElement)(Vn,{content:"backgroundTasks.tasksFailed",params:{count:o},className:"".concat(t,"__title__text"),fallback:"All %%count%% tasks failed"}),(0,R.createElement)("span",{className:"".concat(t,"__title__count")},o)));var p=n.hasSeveralStatusesOrTasks(a,i,r,o);return(0,R.createElement)("div",{className:F()("".concat(t,"__title"),UI({},"".concat(t,"__title--several-statuses"),p))},l,c,u,d,n.renderHideCompletedAction(p))})),UI(n,"renderTaskDetails",(function(){var e=n.state.showDetailsTaskId;if(!e)return null;var t=n.props.tasks,s=nT(e,t);return s?(0,R.createElement)(lT,{task:s,onClose:n.handleCloseDetails}):null})),n.state={isCollapsed:!1,showDetailsTaskId:null},n}return FI(t,e),RI(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.tasks,n=e.pollBackgroundTasks;if(0!==t.length){var s=t.filter((function(e){return!ZI(e)}));0!==s.length&&n(s)}}},{key:"render",value:function(){var e=this;if(!this.isNeedToRender())return null;var t=this.props,n=t.baseClassName,s=t.tasks,a=this.state.isCollapsed;return(0,R.createElement)("div",{className:F()("".concat(n,"__container"),UI({},"".concat(n,"__container--collapsed"),a))},(0,R.createElement)("div",{className:"".concat(n,"__wrapper")},(0,R.createElement)("div",{className:"".concat(n,"__header"),onClick:this.handleToggleCollaps},(0,R.createElement)("div",{className:"".concat(n,"__control")},a?(0,R.createElement)(xe,{name:"chevron-up",intent:"info"}):(0,R.createElement)(xe,{name:"chevron-down",intent:"info"})),this.renderTitle()),(0,R.createElement)("div",{className:"".concat(n,"__body")},(0,R.createElement)("ul",{className:"".concat(n,"__list")},s.sort((function(e,t){return e.id>t.id?-1:1})).map((function(t){return(0,R.createElement)("li",{key:t.id,className:"".concat(n,"__item")},(0,R.createElement)(oT,{task:t,onClose:e.handleCloseItem,onShowDetails:e.handleOpenDetails}))}))))),this.renderTaskDetails())}}])}(R.Component);cT.propTypes={tasks:je().arrayOf(je().shape({id:je().number,code:je().string,title:je().string,status:je().oneOf(Object.keys($I).map((function(e){return $I[e]}))),progress:je().number,errors:je().arrayOf(je().string),steps:je().oneOf([je().arrayOf(je().shape({title:je().string,icon:je().string,progress:je().number,status:je().oneOf(Object.keys(zI).map((function(e){return zI[e]}))),hint:je().string})),je().objectOf(je().shape({title:je().string,icon:je().string,progress:je().number,status:je().oneOf(Object.keys(zI).map((function(e){return zI[e]}))),hint:je().string}))]),publicParams:je().oneOfType([je().object,je().array])})),removeTaskApi:je().func.isRequired,removeTasksApi:je().func.isRequired,removeBackgroundTask:je().func.isRequired,removeCompletedBackgroundTasks:je().func.isRequired,pollBackgroundTasks:je().func.isRequired,baseClassName:je().string},cT.defaultProps={tasks:[],baseClassName:"".concat(XI,"background-tasks")};var uT=Fc((function(e){return{tasks:e.backgroundTasks.tasks.filter((function(e){return!function(e){return!(null==e||!e.hidden)}(e)}))}}),{removeBackgroundTask:function(e,t,n){return function(s){return s({type:QI,taskId:t}),e({id:t,code:n})}},removeCompletedBackgroundTasks:function(e){return function(t,n){var s=n().backgroundTasks.tasks,a=[];return s.forEach((function(e){ZI(e)&&(a.push(e),t({type:QI,taskId:e.id}))})),e(a)}},pollBackgroundTasks:rT})(cT),dT=RI((function e(t,n,s,a){var i=this;if(MI(this,e),UI(this,"startPolling",(function(e){setTimeout((function(){return i.addTask(e)})),ZI(e)||(i.polling.some((function(t){return t===e.id}))||(i.polling=i.polling.concat(e.id)),i.isPollingActive||(i.isPollingActive=!0,i.schedulePolling()))})),UI(this,"schedulePolling",(function(){i.isPollingActive&&(i.timerId=setTimeout((function(){i.timerId=null,i.poll()}),2e3))})),UI(this,"stopPolling",(function(){i.isPollingActive=!1,clearTimeout(i.timerId)})),UI(this,"poll",(function(){var e=i.getTasks().filter((function(e){return i.polling.some((function(t){return e.id===t}))}));0!==e.length?i.getTasksData(e).then((function(e){var t=e.data;t.status!==JI?(t.data.tasks.forEach((function(e){i.updateTask(e),ZI(e)&&(i.polling=i.polling.filter((function(t){return t!==e.id})))})),i.schedulePolling()):i.stopPolling()})):i.stopPolling()})),e.instance)return e.instance;this.getTasks=t,this.addTask=n,this.updateTask=s,this.getTasksData=a,this.polling=[],this.isPollingActive=!1,this.timerId=null,e.instance=this}));UI(dT,"instance",void 0);var pT,hT=Object.prototype.toString,mT=function(e){var t=hT.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===hT.call(e.callee)),n};if(!Object.keys){var gT=Object.prototype.hasOwnProperty,fT=Object.prototype.toString,bT=mT,vT=Object.prototype.propertyIsEnumerable,yT=!vT.call({toString:null},"toString"),ST=vT.call((function(){}),"prototype"),wT=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],xT=function(e){var t=e.constructor;return t&&t.prototype===e},AT={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},_T=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!AT["$"+e]&&gT.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{xT(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();pT=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===fT.call(e),s=bT(e),a=t&&"[object String]"===fT.call(e),i=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var r=ST&&n;if(a&&e.length>0&&!gT.call(e,0))for(var o=0;o<e.length;++o)i.push(String(o));if(s&&e.length>0)for(var l=0;l<e.length;++l)i.push(String(l));else for(var c in e)r&&"prototype"===c||!gT.call(e,c)||i.push(String(c));if(yT)for(var u=function(e){if("undefined"==typeof window||!_T)return xT(e);try{return xT(e)}catch(e){return!1}}(e),d=0;d<wT.length;++d)u&&"constructor"===wT[d]||!gT.call(e,wT[d])||i.push(wT[d]);return i}}var kT=pT,jT=Array.prototype.slice,CT=Object.keys,IT=CT?function(e){return CT(e)}:kT,TT=Object.keys;IT.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return mT(e)?TT(jT.call(e)):TT(e)})}else Object.keys=IT;return Object.keys||IT};var DT,PT=IT,OT=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var s=Object.getOwnPropertySymbols(e);if(1!==s.length||s[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0},LT=function(){return OT()&&!!Symbol.toStringTag},MT=Error,ET=EvalError,RT=RangeError,UT=ReferenceError,NT=SyntaxError,FT=TypeError,BT=URIError,YT="undefined"!=typeof Symbol&&Symbol,HT={__proto__:null,foo:{}},VT=Object,WT=Object.prototype.toString,$T=Math.max,zT=function(e,t){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var a=0;a<t.length;a+=1)n[a+e.length]=t[a];return n},qT=Function.prototype.bind||function(e){var t=this;if("function"!=typeof t||"[object Function]"!==WT.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,s=function(e){for(var t=[],n=1,s=0;n<e.length;n+=1,s+=1)t[s]=e[n];return t}(arguments),a=$T(0,t.length-s.length),i=[],r=0;r<a;r++)i[r]="$"+r;if(n=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(i)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof n){var a=t.apply(this,zT(s,arguments));return Object(a)===a?a:this}return t.apply(e,zT(s,arguments))})),t.prototype){var o=function(){};o.prototype=t.prototype,n.prototype=new o,o.prototype=null}return n},GT=Function.prototype.call,KT=Object.prototype.hasOwnProperty,QT=qT.call(GT,KT),JT=Function,XT=function(e){try{return JT('"use strict"; return ('+e+").constructor;")()}catch(e){}},ZT=Object.getOwnPropertyDescriptor;if(ZT)try{ZT({},"")}catch(V){ZT=null}var eD=function(){throw new FT},tD=ZT?function(){try{return eD}catch(e){try{return ZT(arguments,"callee").get}catch(e){return eD}}}():eD,nD="function"==typeof YT&&"function"==typeof Symbol&&"symbol"==typeof YT("foo")&&"symbol"==typeof Symbol("bar")&&OT(),sD={__proto__:HT}.foo===HT.foo&&!(HT instanceof VT),aD=Object.getPrototypeOf||(sD?function(e){return e.__proto__}:null),iD={},rD="undefined"!=typeof Uint8Array&&aD?aD(Uint8Array):DT,oD={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?DT:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?DT:ArrayBuffer,"%ArrayIteratorPrototype%":nD&&aD?aD([][Symbol.iterator]()):DT,"%AsyncFromSyncIteratorPrototype%":DT,"%AsyncFunction%":iD,"%AsyncGenerator%":iD,"%AsyncGeneratorFunction%":iD,"%AsyncIteratorPrototype%":iD,"%Atomics%":"undefined"==typeof Atomics?DT:Atomics,"%BigInt%":"undefined"==typeof BigInt?DT:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?DT:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?DT:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?DT:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":MT,"%eval%":eval,"%EvalError%":ET,"%Float32Array%":"undefined"==typeof Float32Array?DT:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?DT:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?DT:FinalizationRegistry,"%Function%":JT,"%GeneratorFunction%":iD,"%Int8Array%":"undefined"==typeof Int8Array?DT:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?DT:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?DT:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":nD&&aD?aD(aD([][Symbol.iterator]())):DT,"%JSON%":"object"==typeof JSON?JSON:DT,"%Map%":"undefined"==typeof Map?DT:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&nD&&aD?aD((new Map)[Symbol.iterator]()):DT,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?DT:Promise,"%Proxy%":"undefined"==typeof Proxy?DT:Proxy,"%RangeError%":RT,"%ReferenceError%":UT,"%Reflect%":"undefined"==typeof Reflect?DT:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?DT:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&nD&&aD?aD((new Set)[Symbol.iterator]()):DT,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?DT:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":nD&&aD?aD(""[Symbol.iterator]()):DT,"%Symbol%":nD?Symbol:DT,"%SyntaxError%":NT,"%ThrowTypeError%":tD,"%TypedArray%":rD,"%TypeError%":FT,"%Uint8Array%":"undefined"==typeof Uint8Array?DT:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?DT:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?DT:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?DT:Uint32Array,"%URIError%":BT,"%WeakMap%":"undefined"==typeof WeakMap?DT:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?DT:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?DT:WeakSet};if(aD)try{null.error}catch(V){var lD=aD(aD(V));oD["%Error.prototype%"]=lD}var cD=function e(t){var n;if("%AsyncFunction%"===t)n=XT("async function () {}");else if("%GeneratorFunction%"===t)n=XT("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=XT("async function* () {}");else if("%AsyncGenerator%"===t){var s=e("%AsyncGeneratorFunction%");s&&(n=s.prototype)}else if("%AsyncIteratorPrototype%"===t){var a=e("%AsyncGenerator%");a&&aD&&(n=aD(a.prototype))}return oD[t]=n,n},uD={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},dD=qT.call(Function.call,Array.prototype.concat),pD=qT.call(Function.apply,Array.prototype.splice),hD=qT.call(Function.call,String.prototype.replace),mD=qT.call(Function.call,String.prototype.slice),gD=qT.call(Function.call,RegExp.prototype.exec),fD=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,bD=/\\(\\)?/g,vD=function(e,t){var n,s=e;if(QT(uD,s)&&(s="%"+(n=uD[s])[0]+"%"),QT(oD,s)){var a=oD[s];if(a===iD&&(a=cD(s)),void 0===a&&!t)throw new FT("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:s,value:a}}throw new NT("intrinsic "+e+" does not exist!")},yD=function(e,t){if("string"!=typeof e||0===e.length)throw new FT("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new FT('"allowMissing" argument must be a boolean');if(null===gD(/^%?[^%]*%?$/,e))throw new NT("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=mD(e,0,1),n=mD(e,-1);if("%"===t&&"%"!==n)throw new NT("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new NT("invalid intrinsic syntax, expected opening `%`");var s=[];return hD(e,fD,(function(e,t,n,a){s[s.length]=n?hD(a,bD,"$1"):t||e})),s}(e),s=n.length>0?n[0]:"",a=vD("%"+s+"%",t),i=a.name,r=a.value,o=!1,l=a.alias;l&&(s=l[0],pD(n,dD([0,1],l)));for(var c=1,u=!0;c<n.length;c+=1){var d=n[c],p=mD(d,0,1),h=mD(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===h||"'"===h||"`"===h)&&p!==h)throw new NT("property names with quotes must have matching quotes");if("constructor"!==d&&u||(o=!0),QT(oD,i="%"+(s+="."+d)+"%"))r=oD[i];else if(null!=r){if(!(d in r)){if(!t)throw new FT("base intrinsic for "+e+" exists, but the property is not available.");return}if(ZT&&c+1>=n.length){var m=ZT(r,d);r=(u=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:r[d]}else u=QT(r,d),r=r[d];u&&!o&&(oD[i]=r)}}return r},SD=yD("%Object.defineProperty%",!0)||!1;if(SD)try{SD({},"a",{value:1})}catch(V){SD=!1}var wD=SD,xD=yD("%Object.getOwnPropertyDescriptor%",!0);if(xD)try{xD([],"length")}catch(V){xD=null}var AD=xD,_D=function(e,t,n){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new FT("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new FT("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new FT("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new FT("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new FT("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new FT("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,i=arguments.length>5?arguments[5]:null,r=arguments.length>6&&arguments[6],o=!!AD&&AD(e,t);if(wD)wD(e,t,{configurable:null===i&&o?o.configurable:!i,enumerable:null===s&&o?o.enumerable:!s,value:n,writable:null===a&&o?o.writable:!a});else{if(!r&&(s||a||i))throw new NT("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[t]=n}},kD=function(){return!!wD};kD.hasArrayLengthDefineBug=function(){if(!wD)return null;try{return 1!==wD([],"length",{value:1}).length}catch(e){return!0}};var jD,CD=kD,ID=CD(),TD=yD("%Math.floor%"),DD=(function(e){var t=yD("%Function.prototype.apply%"),n=yD("%Function.prototype.call%"),s=yD("%Reflect.apply%",!0)||qT.call(n,t),a=yD("%Math.max%");e.exports=function(e){if("function"!=typeof e)throw new FT("a function is required");return function(e,t){if("function"!=typeof e)throw new FT("`fn` is not a function");if("number"!=typeof t||t<0||t>4294967295||TD(t)!==t)throw new FT("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],s=!0,a=!0;if("length"in e&&AD){var i=AD(e,"length");i&&!i.configurable&&(s=!1),i&&!i.writable&&(a=!1)}return(s||a||!n)&&(ID?_D(e,"length",t,!0,!0):_D(e,"length",t)),e}(s(qT,n,arguments),1+a(0,e.length-(arguments.length-1)),!0)};var i=function(){return s(qT,t,arguments)};wD?wD(e.exports,"apply",{value:i}):e.exports.apply=i}(jD={exports:{}}),jD.exports);DD.apply;var PD=DD(yD("String.prototype.indexOf")),OD=function(e,t){var n=yD(e,!!t);return"function"==typeof n&&PD(e,".prototype.")>-1?DD(n):n},LD=LT(),MD=OD("Object.prototype.toString"),ED=function(e){return!(LD&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===MD(e)},RD=function(e){return!!ED(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==MD(e)&&"[object Function]"===MD(e.callee)},UD=function(){return ED(arguments)}();ED.isLegacyArguments=RD;var ND=UD?ED:RD,FD="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),BD=Object.prototype.toString,YD=Array.prototype.concat,HD=CD(),VD=function(e,t,n,s){if(t in e)if(!0===s){if(e[t]===n)return}else if(!function(e){return"function"==typeof e&&"[object Function]"===BD.call(e)}(s)||!s())return;HD?_D(e,t,n,!0):_D(e,t,n)},WD=function(e,t){var n=arguments.length>2?arguments[2]:{},s=PT(t);FD&&(s=YD.call(s,Object.getOwnPropertySymbols(t)));for(var a=0;a<s.length;a+=1)VD(e,s[a],t[s[a]],n[s[a]])};WD.supportsDescriptors=!!HD;var $D=WD,zD=function(e){return e!=e},qD=function(e,t){return 0===e&&0===t?1/e==1/t:e===t||!(!zD(e)||!zD(t))},GD=function(){return"function"==typeof Object.is?Object.is:qD},KD=DD(GD(),Object);$D(KD,{getPolyfill:GD,implementation:qD,shim:function(){var e=GD();return $D(Object,{is:e},{is:function(){return Object.is!==e}}),e}});var QD,JD,XD,ZD,eP=KD,tP=LT();if(tP){QD=OD("Object.prototype.hasOwnProperty"),JD=OD("RegExp.prototype.exec"),XD={};var nP=function(){throw XD};ZD={toString:nP,valueOf:nP},"symbol"==typeof Symbol.toPrimitive&&(ZD[Symbol.toPrimitive]=nP)}var sP=OD("Object.prototype.toString"),aP=Object.getOwnPropertyDescriptor,iP=tP?function(e){if(!e||"object"!=typeof e)return!1;var t=aP(e,"lastIndex");if(!t||!QD(t,"value"))return!1;try{JD(e,ZD)}catch(e){return e===XD}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===sP(e)},rP=function(){return"string"==typeof function(){}.name},oP=Object.getOwnPropertyDescriptor;if(oP)try{oP([],"length")}catch(V){oP=null}rP.functionsHaveConfigurableNames=function(){if(!rP()||!oP)return!1;var e=oP((function(){}),"name");return!!e&&!!e.configurable};var lP=Function.prototype.bind;rP.boundFunctionsHaveNames=function(){return rP()&&"function"==typeof lP&&""!==function(){}.bind().name};var cP=rP,uP=CD(),dP=cP.functionsHaveConfigurableNames(),pP=Object,hP=function(e,t){if("function"!=typeof e)throw new FT("`fn` is not a function");return arguments.length>2&&!!arguments[2]&&!dP||(uP?_D(e,"name",t,!0,!0):_D(e,"name",t)),e}((function(){if(null==this||this!==pP(this))throw new FT("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e}),"get flags",!0),mP=$D.supportsDescriptors,gP=Object.getOwnPropertyDescriptor,fP=function(){if(mP&&"gim"===/a/gim.flags){var e=gP(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),e.get.call(n),"dy"===t)return e.get}}return hP},bP=$D.supportsDescriptors,vP=Object.getOwnPropertyDescriptor,yP=Object.defineProperty,SP=TypeError,wP=Object.getPrototypeOf,xP=/a/,AP=DD(fP());$D(AP,{getPolyfill:fP,implementation:hP,shim:function(){if(!bP||!wP)throw new SP("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=fP(),t=wP(xP),n=vP(t,"flags");return n&&n.get===e||yP(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var _P=AP,kP=Date.prototype.getDay,jP=Object.prototype.toString,CP=LT(),IP=function(e){return"object"==typeof e&&null!==e&&(CP?function(e){try{return kP.call(e),!0}catch(e){return!1}}(e):"[object Date]"===jP.call(e))},TP=Date.prototype.getTime;function DP(e){return null==e}function PP(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}var OP=function e(t,n,s){var a=s||{};return!!(a.strict?eP(t,n):t===n)||(!t||!n||"object"!=typeof t&&"object"!=typeof n?a.strict?eP(t,n):t==n:function(t,n,s){var a,i;if(typeof t!=typeof n)return!1;if(DP(t)||DP(n))return!1;if(t.prototype!==n.prototype)return!1;if(ND(t)!==ND(n))return!1;var r=iP(t),o=iP(n);if(r!==o)return!1;if(r||o)return t.source===n.source&&_P(t)===_P(n);if(IP(t)&&IP(n))return TP.call(t)===TP.call(n);var l=PP(t),c=PP(n);if(l!==c)return!1;if(l||c){if(t.length!==n.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==n[a])return!1;return!0}if(typeof t!=typeof n)return!1;try{var u=PT(t),d=PT(n)}catch(e){return!1}if(u.length!==d.length)return!1;for(u.sort(),d.sort(),a=u.length-1;a>=0;a--)if(u[a]!=d[a])return!1;for(a=u.length-1;a>=0;a--)if(!e(t[i=u[a]],n[i],s))return!1;return!0}(t,n,a))},LP=function(e){var t,n={tasks:[]};return void 0!==e.tasks&&(n.tasks=function(e){if(Array.isArray(e))return OI(e)}(t=e.tasks)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return OI(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OI(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qI:return nT(t.task.id,e.tasks)?e:HI(HI({},e),{},{tasks:e.tasks.concat(t.task)});case GI:var s=nT(t.task.id,e.tasks);return OP(s,t.task,!0)?e:HI(HI({},e),{},{tasks:e.tasks.map((function(e){return e.id!==t.task.id?e:t.task}))});case QI:return nT(t.taskId,e.tasks)?HI(HI({},e),{},{tasks:e.tasks.filter((function(e){return e.id!==t.taskId}))}):e;default:return e}}};const MP="installations/UPDATE_SECURITY_STATUS",EP=fp(MP,"installationSecurityStatuses"),RP=e=>({type:uI,isLoading:e}),UP=fp(dI,"securityMeasures"),NP=()=>(e,t)=>t().securityMeasures.isLoadingSecurityMeasuresList?Promise.resolve():(e(RP(!0)),Gf.getSecurityMeasures().then((({data:t})=>{e(UP(t))})).catch((t=>(e(RP(!1)),e(Zf(t)),Promise.reject())))),FP=fp(pI,"securityMeasuresInstallationStatuses"),BP=fp(hI,"securityMeasuresInstallationStatuses"),YP=e=>e.map((e=>({id:e.id,securityStatus:e.securityStatus,vulnerable:e.vulnerable}))),HP=e=>t=>Gf.getSecurityMeasuresPerInstallations(e,!0,!0,!0).then((({data:e})=>(t(FP(e)),t(EP(YP(e))),e))).catch((e=>(t(Zf(e)),Promise.reject()))),VP=e=>t=>Gf.getSecurityMeasuresPerInstallations(e).then((({data:n})=>(t(BP(n)),t(EP(YP(n))),t(nw(e)),n))).catch((e=>(t(Zf(e)),Promise.reject()))),WP=e=>(t,n)=>{const{securityMeasuresInstallationStatuses:s,pendingCheckIds:a}=n().securityMeasures,i=e.filter((e=>{const t=s.find((t=>t.id===e));return!(null==t?void 0:t.checkSecurityTaskId)&&!a.includes(e)}));return 0===i.length?Promise.resolve(null):(t({type:mI,installationsIds:i,isPending:!0}),Gf.checkSecurity({installationsIds:i,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).then((({data:{task:e}})=>{const n=vp(e);return t({type:gI,task:n,installationsIds:i}),n})).catch((e=>(t({type:mI,installationsIds:i,isPending:!1}),e.response?422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()):Promise.reject(e)))))},$P=(e,t)=>n=>Gf.resolveSecurityMeasures({installationsIds:e,securityMeasures:t}).then((({data:{task:t}})=>{const s=vp(t);return n({type:fI,task:s,installationsIds:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()):Promise.reject(e))),zP=(e,t)=>n=>Gf.revertSecurityMeasures({installationsIds:e,securityMeasures:t}).then((({data:{task:t}})=>{const s=vp(t);return n({type:bI,task:s,installationsIds:e}),s})).catch((e=>e.response?422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()):Promise.reject(e))),qP="all",GP="critical",KP="recommended";class QP extends R.Component{constructor(e){super(e),this.getInstallationsWithCriticalUnresolvedMeasuresCount=e=>{const t=new jI(this.props.securityMeasures);return e.filter((e=>t.hasUnresolvedCriticalSecurityMeasures(e))).length},this.getInstallationsWithRecommendedUnresolvedMeasuresCount=e=>{const t=new jI(this.props.securityMeasures);return e.filter((e=>t.hasUnresolvedRecommendedSecurityMeasures(e))).length},this.loadSecurityMeasuresPerInstallations=()=>{const{getSecurityMeasuresPerInstallations:e}=this.props,{selection:t}=this.state;return e(t).catch((()=>{this.setState({filteredSecurityMeasuresInstallationStatuses:[],unableToLoad:!0})})).finally((()=>{this.setState({isLoading:!1})}))},this.reloadSecurityMeasuresPerInstallations=(e=[])=>{const{reloadSecurityMeasuresPerInstallations:t}=this.props;return t(e)},this.filterSecurityMeasures=e=>{const{search:t,filter:n}=this.state,s=t.toLowerCase(),a=e.filter((e=>!s||-1!==e.displayTitle.toLowerCase().indexOf(s)));if(n===qP)return a;const{securityMeasures:i}=this.props,r=new jI(i);return a.filter((e=>{switch(n){case GP:return r.hasUnresolvedCriticalSecurityMeasures(e);case KP:return r.hasUnresolvedRecommendedSecurityMeasures(e);default:return!1}}))},this.handleRunningTasks=()=>{const e=this.getSecuringInstancesTasks().concat(this.getRevertingInstancesTasks()).filter(((e,t,n)=>n.indexOf(e)===t)),t=this.getCheckSecurityInstancesTasks();let n=!1;if(t.length>0){const e=this.getInstancesWithCheckSecurityTasks();this.setIsCheckingSecurity(!0),this.setState({checkSecurityInstancesIds:e.map((e=>e.id))});const s=t.filter((e=>e&&+e>0));this.props.fetchBackgroundTasks(bf.backgroundTask.getTasksData,s.map((e=>({id:e,code:vI})))).then((e=>{0!==e.length?(n=!0,this.setState({checkSecurityBackgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnReceiveCheckSecurityBackgroundTask(e)))):this.setIsCheckingSecurity(!1)}))}if(e.length>0){const t=this.getInstancesWithSecuringOrRevertingTasks();this.disableList(),this.setIsSecuringInstances(!0),this.setIsRevertingInstances(!0),this.setState({securingInstancesIds:t.map((e=>e.id))});const s=e.filter((e=>e&&+e>0));this.props.fetchBackgroundTasks(bf.backgroundTask.getTasksData,s.map((e=>({id:e,code:vI})))).then((e=>{if(0===e.length)return this.setIsSecuringInstances(!1),this.setIsRevertingInstances(!1),void this.enableList();n=!0,this.setState({backgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateBackgroundTasks(e)))}))}const s=this.getNeedToCheckForSecurityInstancesIds();!n&&s.length>0&&this.handleCheckSecurity()},this.disableList=()=>this.setState({isListDisabled:!0}),this.enableList=()=>this.setState({isListDisabled:!1}),this.setIsCheckingSecurity=e=>this.setState({isCheckingSecurity:e}),this.setIsSecuringInstances=e=>this.setState({isSecuring:e}),this.setIsRevertingInstances=e=>this.setState({isReverting:e}),this.getInstancesWithSecuringOrRevertingTasks=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>e.resolveSecurityTaskId||e.revertSecurityTaskId)),this.getInstancesWithCheckSecurityTasks=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>e.checkSecurityTaskId)),this.getSecuringInstancesTasks=()=>this.getInstancesWithSecuringOrRevertingTasks().filter((e=>e.resolveSecurityTaskId)).map((e=>e.resolveSecurityTaskId)),this.getRevertingInstancesTasks=()=>this.getInstancesWithSecuringOrRevertingTasks().filter((e=>e.revertSecurityTaskId)).map((e=>e.revertSecurityTaskId)),this.getCheckSecurityInstancesTasks=()=>this.getInstancesWithCheckSecurityTasks().map((e=>e.checkSecurityTaskId)),this.handleOnUpdateBackgroundTasks=e=>{const{backgroundTaskIds:t,securingInstancesIds:n}=this.state,s=this.getInstancesWithSecuringOrRevertingTasks();let a=!1,i=!1,r=[];const o=[];t.forEach((t=>{const n=nT(t,e);if(!n)return;ZI(n)&&(n.errors.length>0&&(this.props.addErrorMessage(n.errors.join("\n")),this.setState({hasErrors:!0})),this.setState((e=>({backgroundTaskIds:e.backgroundTaskIds.filter((e=>e!==n.id))})))),this.getRevertingInstancesTasks().includes(+n.id)?i=!0:a=!0;const l=s.filter((e=>e.resolveSecurityTaskId&&+e.resolveSecurityTaskId==+n.id||e.revertSecurityTaskId&&+e.revertSecurityTaskId==+n.id));l.length>0&&l.forEach((e=>{ZI(n)&&!o.includes(e.id)&&o.push(e.id),ZI(n)||r.includes(e.id)||(r=r.concat(e.id))}))})),s.filter((e=>!r.includes(e.id))).forEach((e=>{e.resolveSecurityTaskId&&t.includes(e.resolveSecurityTaskId)||e.revertSecurityTaskId&&t.includes(e.revertSecurityTaskId)?r=r.concat(e.id):o.includes(e.id)||o.push(e.id)})),this.setIsSecuringInstances(a),this.setIsRevertingInstances(i),n!==r&&this.setState({securingInstancesIds:r}),o.length&&this.reloadSecurityMeasuresPerInstallations(o).then((()=>{this.setState((e=>({securingInstancesIds:Tp(e.securingInstancesIds,o)})),this.handleOnAllInstancesSecured)})).catch((()=>{}))},this.handleOnReceiveCheckSecurityBackgroundTask=e=>{const{checkSecurityBackgroundTaskIds:t}=this.state,n=this.getInstancesWithCheckSecurityTasks();let s=[];const a=[];t.forEach((t=>{const i=nT(t,e);if(!i)return;ZI(i)&&(i.errors.length>0&&(this.props.addErrorMessage(i.errors.join("\n")),this.setState({hasErrors:!0})),this.setState((e=>({checkSecurityBackgroundTaskIds:e.checkSecurityBackgroundTaskIds.filter((e=>+e!=+i.id))}))));const r=n.filter((e=>e.checkSecurityTaskId&&+e.checkSecurityTaskId==+i.id));r.length>0&&r.forEach((e=>{ZI(i)&&!a.includes(e.id)&&a.push(e.id),ZI(i)||s.includes(e.id)||(s=s.concat(e.id))}))})),n.filter((e=>!s.includes(e.id))).forEach((e=>{e.checkSecurityTaskId&&t.includes(e.checkSecurityTaskId)&&(s=s.concat(e.id)),a.includes(e.id)||a.push(e.id)})),0===s.length?this.setIsCheckingSecurity(!1):this.setIsCheckingSecurity(!0),this.setState({checkSecurityInstancesIds:s}),a.length&&this.reloadSecurityMeasuresPerInstallations(a).then((()=>{this.setState((e=>({checkSecurityInstancesIds:Tp(e.checkSecurityInstancesIds,a)})),this.handleAllInstancesChecked)})).catch((()=>{}))},this.handleOnAllInstancesSecured=()=>{const{isReverting:e}=this.state;this.state.securingInstancesIds.length>0||(this.state.hasErrors||this.props.addSuccessMessage(e?"list-ui.instances.forms.instancesSecurity.revertSuccess":"list-ui.instances.forms.instancesSecurity.resolveSuccess",!0,"instancesSecurity"),this.setIsSecuringInstances(!1),this.setIsRevertingInstances(!1),this.clearSelection(),this.enableList(),this.setState({hasErrors:!1}))},this.handleAllInstancesChecked=()=>{this.state.checkSecurityInstancesIds.length>0||(this.setIsCheckingSecurity(!1),this.clearSelection(),this.setState({hasErrors:!1}))},this.getNeedToCheckForSecurityInstancesIds=()=>this.props.securityMeasuresInstallationStatuses.filter((e=>"unknown"===e.securityStatus)).map((e=>e.id)),this.setSecurityCheckersSelection=e=>this.setState({securityCheckersSelection:e}),this.clearSelection=()=>{this.setState({selection:[]})},this.handleSearch=e=>this.setState({search:e},this.callbackAfterSearchAndFilter),this.handleFilter=e=>this.setState({filter:e},this.callbackAfterSearchAndFilter),this.callbackAfterSearchAndFilter=()=>this.setState({selection:[],filteredSecurityMeasuresInstallationStatuses:this.filterSecurityMeasures(this.props.securityMeasuresInstallationStatuses)}),this.handleSecure=()=>{const{selection:e,securityCheckersSelection:t}=this.state,{clearMessages:n,resolveSecurityCheckers:s}=this.props,a=e;return n(),this.disableList(),this.setIsSecuringInstances(!0),s(a,t).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.enableList(),this.setIsSecuringInstances(!1)}))},this.handleRevert=()=>{const{selection:e,securityCheckersSelection:t}=this.state,{clearMessages:n,revertSecurityCheckers:s}=this.props,a=e;return n(),this.disableList(),this.setIsRevertingInstances(!0),s(a,t).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.enableList(),this.setIsRevertingInstances(!1)}))},this.handleCheckSecurity=()=>{const{clearMessages:e,checkSecurity:t}=this.props,{filteredSecurityMeasuresInstallationStatuses:n,selection:s,isCheckingSecurity:a,checkSecurityBackgroundTaskIds:i}=this.state;return a||i.length>0?Promise.resolve():(e(),this.setIsCheckingSecurity(!0),t(s.length?s:n.map((e=>e.id))).then((e=>{e?this.setState((t=>({checkSecurityBackgroundTaskIds:t.checkSecurityBackgroundTaskIds.concat(e.id)}))):this.setIsCheckingSecurity(!1)})).catch((()=>{this.setIsCheckingSecurity(!1)})))},this.handleToggleResolveSecurityCheckersDialog=()=>this.setState((e=>({showResolveSecurityCheckersDialog:!e.showResolveSecurityCheckersDialog}))),this.handleToggleRevertSecurityCheckersDialog=()=>this.setState((e=>({showRevertSecurityCheckersDialog:!e.showRevertSecurityCheckersDialog})),(()=>{this.state.showRevertSecurityCheckersDialog&&this.setSecurityCheckersSelection([])})),this.handleOpenInstanceSecurityDrawer=e=>{this.props.clearMessages(),this.props.onOpenInstanceSecurityDrawer(e)},this.getListColumns=()=>{const{securityMeasures:e}=this.props,t=new jI(e);return[{key:"name",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.name"}),render:e=>this.props.isUnpaid||!e.resolveAndRevertAvailable?(0,L.jsx)(Bv,{uatAction:Jv,featureName:Vp,description:(0,L.jsx)(pp,{content:"paidFeature.secureFeatureDescription"}),isInstanceFeatureDisabled:!e.resolveAndRevertAvailable,installationId:e.id,children:(0,L.jsx)("span",{children:e.displayTitle})}):(0,L.jsx)("span",{children:e.displayTitle})},{key:"critical",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.critical"}),render:e=>{const n=t.getUnresolvedCriticalSecurityMeasures(e).map((e=>e.id)),s=t.getSecurityMeasuresByIds(n);return(0,L.jsx)(AI,{checkers:s})}},{key:"recommended",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.recommended"}),render:e=>{const n=t.getUnresolvedRecommendedSecurityMeasures(e).map((e=>e.id)),s=t.getSecurityMeasuresByIds(n);return(0,L.jsx)(kI,{checkers:s})}},{key:"details",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.instanceList.columns.details"}),render:e=>(0,L.jsx)(_e,{icon:"chevron-right",onClick:()=>this.handleOpenInstanceSecurityDrawer(e.id),"aria-label":this.props.translate("list-ui.instances.forms.instancesSecurity.instanceList.columns.details")})}]},this.hasAnyInstallationWithDisabledFeature=()=>this.props.securityMeasuresInstallationStatuses.some((e=>!e.resolveAndRevertAvailable)),this.hasUnresolvedInstallationSecurityMeasure=e=>e.some((e=>e.available&&!e.status)),this.hasRevertableInstallationSecurityMeasure=e=>e.some((e=>{if(!e.available||!e.status)return!1;const{securityMeasures:t}=this.props,n=t.find((t=>t.id===e.id));return!!n&&n.rollbackAvailable})),this.hasAnySecurityMeasureToBeResolved=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state;return e.filter((e=>t.some((t=>t===e.id)))).some((e=>this.hasUnresolvedInstallationSecurityMeasure(e.securityMeasures)))},this.hasAnySecurityMeasureToBeReverted=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state;return e.filter((e=>t.some((t=>t===e.id)))).some((e=>this.hasRevertableInstallationSecurityMeasure(e.securityMeasures)))},this.getListData=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,isListDisabled:t}=this.state,{isUnpaid:n}=this.props;return e.map((e=>Object.assign(Object.assign({},e),{disabled:n||t||!e.resolveAndRevertAvailable})))},this.getAvailableSecurityMeasuresForResolving=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state,{securityMeasures:n}=this.props,s=e.filter((e=>t.some((t=>t===e.id))));return n.filter((e=>s.some((t=>t.securityMeasures.some((t=>t.available&&!t.status&&e.id===t.id))))))},this.getAvailableSecurityMeasuresForReverting=()=>{const{filteredSecurityMeasuresInstallationStatuses:e,selection:t}=this.state,{securityMeasures:n}=this.props,s=e.filter((e=>t.some((t=>t===e.id))));return n.filter((e=>e.rollbackAvailable&&s.some((t=>t.securityMeasures.some((t=>t.available&&t.status&&e.id===t.id))))))},this.state={securityCheckersSelection:[],showResolveSecurityCheckersDialog:!1,showRevertSecurityCheckersDialog:!1,backgroundTaskIds:[],checkSecurityBackgroundTaskIds:[],securingInstancesIds:[],checkSecurityInstancesIds:[],hasErrors:!1,selection:e.selectedInstallationsIds,search:"",filter:qP,isLoading:!0,isListDisabled:!1,isCheckingSecurity:!1,isSecuring:!1,isReverting:!1,filteredSecurityMeasuresInstallationStatuses:[],installationsWithCriticalUnresolvedMeasuresCount:0,installationsWithRecommendedUnresolvedMeasuresCount:0,unableToLoad:!1}}componentDidMount(){this.loadSecurityMeasuresPerInstallations().finally(this.handleRunningTasks)}componentDidUpdate(e){const{tasks:t,securityMeasuresInstallationStatuses:n}=this.props;t!==e.tasks&&(this.handleOnUpdateBackgroundTasks(t),this.handleOnReceiveCheckSecurityBackgroundTask(t)),n!==e.securityMeasuresInstallationStatuses&&this.setState({filteredSecurityMeasuresInstallationStatuses:this.filterSecurityMeasures(n),installationsWithCriticalUnresolvedMeasuresCount:this.getInstallationsWithCriticalUnresolvedMeasuresCount(n),installationsWithRecommendedUnresolvedMeasuresCount:this.getInstallationsWithRecommendedUnresolvedMeasuresCount(n)})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,currentInstallationId:s}=this.props;return e||this.hasAnyInstallationWithDisabledFeature()?(0,L.jsx)(Uv,{uatAction:Jv,purchaseLicenseUrl:t,premiumFeaturesUrl:n,installationId:s,children:(0,L.jsx)(pp,{content:"paidFeature.secureFeatureDescription"})}):null}renderToolbar(){const{isUnpaid:e,securityMeasuresInstallationStatuses:t}=this.props,{isCheckingSecurity:n,isSecuring:s,isReverting:a,selection:i,filter:r,filteredSecurityMeasuresInstallationStatuses:o,installationsWithCriticalUnresolvedMeasuresCount:l,installationsWithRecommendedUnresolvedMeasuresCount:c,checkSecurityBackgroundTaskIds:u}=this.state,d=e||n||a||0===o.length||0===i.length||!this.hasAnySecurityMeasureToBeResolved(),p=s||a||n||u.length>0||0===o.length,h=e||s||n||0===o.length||0===i.length||!this.hasAnySecurityMeasureToBeReverted();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ha,{className:"wpt-mgt-10",children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{intent:"primary",state:s?"loading":void 0,disabled:d,onClick:this.handleToggleResolveSecurityCheckersDialog,tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.hintButtonSecure"}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonSecure"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{icon:"refresh",state:n?"loading":void 0,disabled:p,onClick:this.handleCheckSecurity,tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.hintButtonCheckSecurity"}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonCheckSecurity"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{icon:"reload",state:a?"loading":void 0,disabled:h,onClick:this.handleToggleRevertSecurityCheckersDialog,tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.hintButtonRevert"}),"data-test-id":"mass-security-revert-submit",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonRevert"})})}),(0,L.jsx)(Sa,{}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(Yl,{onTyping:this.handleSearch})})]}),(0,L.jsxs)(Ha,{className:"wpt-mgt-10 wpt-mgb-10",children:[(0,L.jsx)(Sa,{},"toolbarExpander"),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ua,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.filterByLabel"}),labelPlacement:"left",buttons:[{value:qP,title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonShowAll",params:{count:t.length}}),disabled:0===t.length},{value:GP,title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonShowCritical",params:{count:l}}),disabled:0===l},{value:KP,title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonShowRecommended",params:{count:c}}),disabled:0===c}],selected:r,onChange:this.handleFilter})},"toolbarShowInstances")]})]})}renderLastSecurityCheckDatePanel(){const{isCheckingSecurity:e}=this.state,{securityMeasuresInstallationStatuses:t}=this.props;if(e)return null;const n=t.reduce(((e,t)=>(t.lastSecurityCheckTimestamp&&e.push(t.lastSecurityCheckTimestamp),e)),[]);if(0===n.length)return(0,L.jsx)(jl,{children:(0,L.jsx)(da,{className:"wpt-instances-security_last-security-check-date",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.lastSecurityCheckDateIsUnknown"})})});const s=new Date(1e3*Math.min(...n));return(0,L.jsx)(jl,{children:(0,L.jsx)(da,{className:"wpt-instances-security_last-security-check-date",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.lastSecurityCheckDate",params:{lastSecurityCheckDate:s.toLocaleString()}})})})}renderInstancesList(){const{selection:e,isListDisabled:t,isCheckingSecurity:n}=this.state,s=this.getListData();return n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.checkingForSecurity"})]}):0===s.length?(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.noInstancesYet"}):(0,L.jsx)(uo,{className:t?"hided-mass-checkbox wpt-mgt-15":"wpt-mgt-15",columns:this.getListColumns(),data:s,selection:e,rowKey:"id",onSelectionChange:e=>this.setState({selection:e})})}renderResolveSecurityCheckersDialog(){const{showResolveSecurityCheckersDialog:e}=this.state;return e?(0,L.jsx)(Wi,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.resolveSecurityCheckers.dialogTitle"}),size:"sm",isOpen:e,onClose:this.handleToggleResolveSecurityCheckersDialog,buttons:(0,L.jsx)(ut,{onClick:()=>{this.handleSecure(),this.handleToggleResolveSecurityCheckersDialog()},disabled:0===this.state.securityCheckersSelection.length,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonSecure"})}),children:(0,L.jsx)(TI,{securityMeasuresForResolving:this.getAvailableSecurityMeasuresForResolving(),setSecurityCheckersSelection:this.setSecurityCheckersSelection})}):null}renderRevertSecurityCheckersDialog(){const{showRevertSecurityCheckersDialog:e}=this.state;return e?(0,L.jsx)(Wi,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.revertSecurityCheckers.dialogTitle"}),size:"sm",isOpen:e,onClose:this.handleToggleRevertSecurityCheckersDialog,buttons:(0,L.jsx)(ut,{onClick:()=>{this.handleRevert(),this.handleToggleRevertSecurityCheckersDialog()},disabled:0===this.state.securityCheckersSelection.length,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.buttonRevert"})}),children:(0,L.jsx)(PI,{securityMeasuresForReverting:this.getAvailableSecurityMeasuresForReverting(),setSecurityCheckersSelection:this.setSecurityCheckersSelection})}):null}render(){return this.state.isLoading?(0,L.jsx)(Qn,{}):this.state.unableToLoad?(0,L.jsx)(Fe,{intent:"danger",children:(0,L.jsx)(pp,{content:"api.securityMeasures.failedToLoadPerInstance"})}):(0,L.jsxs)(L.Fragment,{children:[this.renderPaidFeatureDesc(),(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.headDescription"}),this.renderToolbar(),this.renderLastSecurityCheckDatePanel(),this.renderInstancesList(),this.renderResolveSecurityCheckersDialog(),this.renderRevertSecurityCheckersDialog()]})}}const JP=(0,SC.Mz)((e=>e.securityMeasures.securityMeasuresInstallationStatuses),((e,t)=>t.selectedInstallationsIds),((e,t)=>t.length>0?e.filter((e=>t.includes(e.id))):e)),XP=Fc(((e,t)=>({securityMeasures:e.securityMeasures.securityMeasures,securityMeasuresInstallationStatuses:JP(e,t),tasks:e.backgroundTasks.tasks,isUnpaid:!!e.app.unpaidFeatures[Vp],upgradeUrl:e.app.urls.featuresBuyLinks[Vp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),(e=>({checkSecurity:(0,Cb.zH)(WP,e),resolveSecurityCheckers:(0,Cb.zH)($P,e),revertSecurityCheckers:(0,Cb.zH)(zP,e),fetchBackgroundTasks:(0,Cb.zH)(iT,e),getSecurityMeasuresPerInstallations:(0,Cb.zH)(HP,e),reloadSecurityMeasuresPerInstallations:(0,Cb.zH)(VP,e)})))(Nv(QP)),ZP="vulnerabilities";class eO extends R.Component{constructor(e){super(e),this.loadSecurityMeasures=()=>{this.props.securityMeasures&&this.props.securityMeasures.length>0?this.setState({isLoading:!1}):this.props.loadSecurityMeasures().catch((()=>{this.setState({unableToLoad:!0})})).finally((()=>{this.setState({isLoading:!1})}))},this.handleRefresh=()=>{this.setState({isLoading:!0,unableToLoad:!1},this.loadSecurityMeasures)},this.state={isLoading:!0,unableToLoad:!1}}componentDidMount(){this.loadSecurityMeasures()}render(){return this.state.isLoading?(0,L.jsx)(Qn,{}):this.state.unableToLoad?(0,L.jsxs)("div",{children:[(0,L.jsx)("h3",{children:(0,L.jsx)(pp,{content:"api.securityMeasures.failedToLoad"})}),(0,L.jsx)("p",{children:(0,L.jsx)(ut,{intent:"primary",onClick:this.handleRefresh,children:(0,L.jsx)(pp,{content:"general-ui.react-js-error.refresh"})})})]}):this.props.children}}const tO=Fc((e=>({securityMeasures:e.securityMeasures.securityMeasures})),(e=>({loadSecurityMeasures:(0,Cb.zH)(NP,e)})))(eO),nO=e=>{switch(e){case"remove":return"recycle";case"circle-info":return"info-circle";default:return e}},sO=fp(sI,"backups","limits"),aO=(e,t=!1)=>n=>Gf.getInstallationBackupsMeta(e,t).then((e=>{const t=e.data.value.map((({value:e})=>({fileName:e.fileName.value,fileSize:e.fileSize.value,createDate:e.createdAt.value})));return n({type:sI,backups:t,limits:{backupsLimit:e.data.meta.limit,backupsCount:t.length}}),e})),iO=()=>e=>e(sO([],void 0)),rO=(e,t)=>n=>Gf.removeInstallationBackups(e,t).then((()=>(n({type:aI,fileNames:t}),t))),oO=e=>t=>Gf.createInstallationBackup({installationId:e}).then((({data:e})=>(t(lO(e.task)),e))),lO=e=>t=>t({type:iI,task:e}),cO=()=>e=>e({type:"backup/BACKUP_CREATION_FINISHED_WITH_ERRORS"}),uO=e=>t=>{t(aO(e)).finally((()=>t({type:"backup/BACKUP_CREATION_FINISHED"})))},dO=(e,t,n=!0)=>s=>Gf.restoreInstallationBackup({installationId:e,fileName:t,clobber:n}).then((({data:e})=>(s(pO(e.task)),e))),pO=e=>t=>t({type:rI,task:e}),hO=()=>e=>e({type:"backup/BACKUP_RESTORING_FINISHED_WITH_ERRORS"}),mO=e=>t=>ax(e)(t).finally((()=>t({type:"backup/BACKUP_RESTORING_FINISHED"}))),gO="localCpanel",fO="remoteCpanel",bO="localPleskLinux",vO="localPleskWindows",yO="remoteGeneric",SO="managedByPlugin",wO=e=>e===gO,xO=e=>AO(e)||_O(e),AO=e=>e===bO,_O=e=>e===vO,kO=e=>(e=>e===fO)(e)||e===yO,jO=e=>wO(e)||xO(e),CO=e=>e===SO;class IO extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}},inNewWindow:t}=this.props;return e.backupManagerUrl?(0,L.jsx)("a",{href:e.backupManagerUrl,target:t?"_blank":"_self",children:(0,L.jsx)(pp,{content:"backupManagerLink.text"})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n,inNewWindow:s}=this.props;if(!e.backupManagerUrl)return null;const a=Yv({link:e.backupManagerUrl,inNewWindow:s,goToUri:n,accountUsername:t.login});return(0,L.jsx)("a",Object.assign({},a,{children:(0,L.jsx)(pp,{content:"backupManagerLink.text"})}))}}render(){const{installation:{features:{backups:e},installationType:t}}=this.props;return e.panelBackupsAvailable?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}IO.propTypes={installation:je().shape({features:je().shape({backups:je().shape({backupManagerUrl:je().string,panelBackupsAvailable:je().bool.isRequired})}).isRequired,installationType:je().string.isRequired,owner:je().shape({login:je().string.isRequired})}).isRequired,goToUri:je().func.isRequired,inNewWindow:je().bool},IO.defaultProps={inNewWindow:!1};const TO=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(IO);class DO extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{backupsUrl:e,backupsDirName:t,inNewWindow:n}=this.props;return e&&t?(0,L.jsx)("a",{href:e,target:n?"_blank":"_self",onClick:()=>this.context("BACKUPS_DRAWER-FILE_MANAGER-CLICKED"),children:t}):null},this.renderCpanel=()=>{const{goToUri:e,installation:{owner:t},backupsUrl:n,backupsDirName:s,inNewWindow:a}=this.props;if(!n||!s)return null;const i=Yv({link:n,inNewWindow:a,goToUri:e,accountUsername:null==t?void 0:t.login,onClick:this.context("BACKUPS_DRAWER-FILE_MANAGER-CLICKED")});return(0,L.jsx)("a",Object.assign({},i,{children:s}))}}render(){const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}DO.contextType=Q_,DO.propTypes={installation:je().shape({features:je().shape({fileManager:je().shape({available:je().bool.isRequired})}).isRequired,installationType:je().string.isRequired,owner:je().shape({login:je().string.isRequired})}).isRequired,backupsUrl:je().string.isRequired,backupsDirName:je().string.isRequired,goToUri:je().func.isRequired,inNewWindow:je().bool},DO.defaultProps={inNewWindow:!1};const PO=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(DO);r(20181);var OO="undefined"!=typeof window?R.useLayoutEffect:R.useEffect;function LO(e,t,n,s){const a=(0,R.useRef)(t);OO((()=>{a.current=t}),[t]),(0,R.useEffect)((()=>{const t=(null==n?void 0:n.current)??window;if(!t||!t.addEventListener)return;const i=e=>{a.current(e)};return t.addEventListener(e,i,s),()=>{t.removeEventListener(e,i,s)}}),[e,n,s])}function MO(e){const t=(0,R.useRef)((()=>{throw new Error("Cannot call an event handler while rendering.")}));return OO((()=>{t.current=e}),[e]),(0,R.useCallback)(((...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)}),[t])}var EO="undefined"==typeof window;function RO(e,t,n={}){const{initializeWithValue:s=!0}=n,a=(0,R.useCallback)((e=>n.serializer?n.serializer(e):JSON.stringify(e)),[n]),i=(0,R.useCallback)((e=>{if(n.deserializer)return n.deserializer(e);if("undefined"===e)return;const s=t instanceof Function?t():t;let a;try{a=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),s}return a}),[n,t]),r=(0,R.useCallback)((()=>{const n=t instanceof Function?t():t;if(EO)return n;try{const t=window.localStorage.getItem(e);return t?i(t):n}catch(t){return console.warn(`Error reading localStorage key “${e}”:`,t),n}}),[t,e,i]),[o,l]=(0,R.useState)((()=>s?r():t instanceof Function?t():t)),c=MO((t=>{EO&&console.warn(`Tried setting localStorage key “${e}” even though environment is not a client`);try{const n=t instanceof Function?t(r()):t;window.localStorage.setItem(e,a(n)),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}catch(t){console.warn(`Error setting localStorage key “${e}”:`,t)}})),u=MO((()=>{EO&&console.warn(`Tried removing localStorage key “${e}” even though environment is not a client`);const n=t instanceof Function?t():t;window.localStorage.removeItem(e),l(n),window.dispatchEvent(new StorageEvent("local-storage",{key:e}))}));(0,R.useEffect)((()=>{l(r())}),[e]);const d=(0,R.useCallback)((t=>{t.key&&t.key!==e||l(r())}),[e,r]);return LO("storage",d),LO("local-storage",d),[o,c,u]}const UO=({id:e,children:t,ttl:n=2592e3,showSince:s,showUntil:a,forciblyHidden:i})=>{const[r,o]=RO("wpt-shown-items",{}),l=new Date,c=Date.now(),u=(()=>{var t,i;return!((null!==(t=r[e])&&void 0!==t?t:c)<0||c>(null!==(i=r[e])&&void 0!==i?i:c)+1e3*n||s&&l<s||a&&l>a)})();return(0,R.useEffect)((()=>{u&&i?o((t=>Object.assign(Object.assign({},t),{[e]:-1}))):u&&!r.hasOwnProperty(e)&&o((t=>Object.assign(Object.assign({},t),{[e]:c})))}),[r,e,o,c,u,i]),u?(0,L.jsx)(L.Fragment,{children:t}):null},NO=({code:e,interacted:t,className:n="",baseClassName:s=`${th}new-feature-label`})=>(0,L.jsx)(UO,{id:e,forciblyHidden:t,children:(0,L.jsx)(He,{className:`${n} ${s}__label`,intent:"success",view:"light",size:"sm",icon:(0,L.jsx)(xe,{name:"check-mark-circle-filled",intent:"success"}),children:(0,L.jsx)(pp,{content:"common.label.new"})})}),FO="backup-clobbers";class BO extends R.Component{constructor(e){super(e),this.getPleskBackupDownloadUrl=()=>{const{instance:{id:e},apiUrl:t,backup:{fileName:n}}=this.props,s=new URL(`${t}/download-instance-backups`,window.location.href),a=new URLSearchParams;return a.set("id",e),a.append("fileNames[]",n),s.search=a.toString(),s.toString()},this.getCpanelBackupDownloadUrl=()=>{const{installation:{id:e},apiUrl:t,backup:{fileName:n}}=this.props,s=new URL(t),a=new URLSearchParams;a.set("id",e),a.append("fileNames[]",n);const i=new URLSearchParams(s.search);return i.set("request",`/download-instance-backups?${a.toString()}`),s.search=i.toString(),s.toString()},this.getBackupDownloadUrl=()=>{const{installation:{installationType:e}}=this.props;return xO(e)?this.getPleskBackupDownloadUrl():wO(e)?this.getCpanelBackupDownloadUrl():null},this.handleToggleRestoreBackupConfirmationPopup=()=>this.setState((e=>({showRestoreBackupConfirmation:!e.showRestoreBackupConfirmation}))),this.handleToggleRemoveBackupConfirmationPopup=()=>this.setState((e=>({showRemoveBackupConfirmation:!e.showRemoveBackupConfirmation}))),this.renderPleskBackupsDownloadButton=()=>{const{disabled:e,backupsUrl:t}=this.props;return t?(0,L.jsx)(ut,{icon:"arrow-down-tray",component:"a",href:t,disabled:e,tooltip:(0,L.jsx)(pp,{content:"backupActions.tooltip.download"}),ghost:!0}):null},this.renderCpanelBackupsDownloadButton=()=>{const{disabled:e,goToUri:t,installation:{owner:n},backupsUrl:s}=this.props;if(!s)return null;const a=Yv({link:s,inNewWindow:!1,goToUri:t,accountUsername:null==n?void 0:n.login});return(0,L.jsx)(ut,Object.assign({icon:"arrow-down-tray",component:"a",href:s,disabled:e,tooltip:(0,L.jsx)(pp,{content:"backupActions.tooltip.download"}),ghost:!0},a))},this.renderBackupsDownloadButton=()=>{const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available?xO(t)?this.renderPleskBackupsDownloadButton():wO(t)?this.renderCpanelBackupsDownloadButton():null:null};const t=bS(FO)||{};this.state={showRestoreBackupConfirmation:!1,clobber:!(e.installation.id in t)||t[e.installation.id],isClobberInteracted:!1}}renderRestoreBackupConfirmationPopup(){const{backup:{createDate:e},onCreateBackup:t,onRestoreBackup:n,disabled:s,baseClassName:a}=this.props,{showRestoreBackupConfirmation:i,clobber:r,isClobberInteracted:o}=this.state;return(0,L.jsxs)(Ks,{visible:i,target:(0,L.jsx)(ut,{"data-test-id":"instance-backups-drawer-restore-backup",icon:"reload",onClick:this.handleToggleRestoreBackupConfirmationPopup,disabled:s,tooltip:(0,L.jsx)(pp,{content:"backupActions.tooltip.restore"}),ghost:!0}),onClose:this.handleToggleRestoreBackupConfirmationPopup,children:[(0,L.jsx)(Ns,{level:4,children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{params:{createDate:e},content:"backupActions.restoreBackupConfirmationPopup.title"})})}),(0,L.jsx)(_a,{className:`${a}__restore-backup-confirmation__desc`,children:(0,L.jsx)(pp,{params:{link:(0,L.jsx)("a",{onClick:()=>{t(),this.handleToggleRestoreBackupConfirmationPopup()},children:(0,L.jsx)(pp,{content:"backupActions.restoreBackupConfirmationPopup.createBackupLink"})})},content:"backupActions.restoreBackupConfirmationPopup.description"})}),(0,L.jsxs)(_a,{children:[(0,L.jsx)(Tt,{checked:r,onChange:e=>{vS(FO,Object.assign(Object.assign({},bS(FO)),{[this.props.installation.id]:e})),this.setState({clobber:e,isClobberInteracted:!0})},children:(0,L.jsx)(pp,{content:"backupActions.tooltip.restore.clobber"})})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(xe,{name:"info-circle"}),placement:"top",children:(0,L.jsx)(pp,{content:"backupActions.tooltip.restore.clobber.hint"})}),(0,L.jsx)(NO,{code:"backup-clobbering",interacted:o})]}),(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{"data-test-id":"instance-backups-drawer-restore-backup-confirm",intent:"danger",size:"md",onClick:()=>{this.setState({isClobberInteracted:!0}),n(this.props.backup,r),this.handleToggleRestoreBackupConfirmationPopup()},children:(0,L.jsx)(pp,{content:"backupActions.restoreBackupConfirmationPopup.buttonRestore"})}),(0,L.jsx)(ut,{onClick:this.handleToggleRestoreBackupConfirmationPopup,size:"md",ghost:!0,className:`${a}__restore-backup-confirmation__button-cancel`,children:(0,L.jsx)(pp,{content:"backupActions.restoreBackupConfirmationPopup.buttonCancel"})})]})]})}renderRemoveBackupConfirmationPopup(){const{backup:{fileName:e},onRemoveBackup:t,disabled:n,baseClassName:s}=this.props,{showRemoveBackupConfirmation:a}=this.state;return(0,L.jsxs)(Ks,{visible:a,target:(0,L.jsx)(ut,{icon:nO("remove"),"data-test-id":Sv,onClick:this.handleToggleRemoveBackupConfirmationPopup,disabled:n,tooltip:(0,L.jsx)(pp,{content:"backupActions.tooltip.delete"}),ghost:!0}),onClose:this.handleToggleRemoveBackupConfirmationPopup,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"backupActions.removeBackupConfirmationPopup.text"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{"data-test-id":"instance-backups-drawer-remove-backup-confirm",intent:"danger",size:"md",onClick:()=>{t([e]),this.handleToggleRemoveBackupConfirmationPopup()},children:(0,L.jsx)(pp,{content:"backupActions.removeBackupConfirmationPopup.buttonRemove"})}),(0,L.jsx)(ut,{onClick:this.handleToggleRemoveBackupConfirmationPopup,size:"md",ghost:!0,className:`${s}__remove-backup-confirmation__button-cancel`,children:(0,L.jsx)(pp,{content:"backupActions.removeBackupConfirmationPopup.buttonCancel"})})]})]})}render(){return(0,L.jsxs)(R.Fragment,{children:[this.renderRestoreBackupConfirmationPopup(),this.renderBackupsDownloadButton(),this.renderRemoveBackupConfirmationPopup()]})}}BO.propTypes={installation:je().shape({features:je().shape({fileManager:je().shape({available:je().bool.isRequired})}).isRequired,id:je().number.isRequired,installationType:je().string.isRequired,owner:je().shape({login:je().string.isRequired})}).isRequired,backup:je().shape({fileName:je().string.isRequired,createDate:je().string.isRequired}).isRequired,disabled:je().bool,onCreateBackup:je().func.isRequired,onRestoreBackup:je().func.isRequired,onRemoveBackup:je().func.isRequired,apiUrl:je().string.isRequired,goToUri:je().func.isRequired,baseClassName:je().string,backupsUrl:je().string.isRequired},BO.defaultProps={disabled:!1,baseClassName:`${th}backup-actions`};const YO=Fc((e=>({apiUrl:e.app.urls.apiUrl})),(e=>({goToUri:(t,n)=>e(mS(t,n))})))(BO),HO=e=>{const{columns:t,data:n,selection:s,onSelectionChange:a,onSortChange:i,sortColumn:r,sortDirection:o,className:l,rowProps:c,dataTestId:u}=e;return 0===n.length?(0,L.jsx)(_a,{style:{"padding-top":"10px"},children:(0,L.jsx)(da,{intent:"muted",children:(0,L.jsx)(pp,{content:"CardList.notFound"})})}):(0,L.jsx)(uo,{columns:t,data:n,selection:s,onSelectionChange:a,onSortChange:i,sortColumn:r,sortDirection:o,className:l,rowProps:c,"data-test-id":u})},VO=(e,t)=>(null==e?void 0:e.code)===t,WO="not_started",$O="running",zO="done",qO="error",GO=(e,t="danger")=>e.map((e=>(0,L.jsx)(da,{intent:t,children:e},e))),KO=(e,t,n="danger")=>{if(!e.errors||e.errors.length<1)return t;let s=!1;if(t=t.map((t=>(s||t.status!==qO||(s=!0,t=Object.assign(Object.assign({},t),{children:GO(e.errors,n)})),t))),s)return t;let a=!1;if(t=t.map((t=>(a||t.status===zO||(a=!0,t=Object.assign(Object.assign({},t),{children:GO(e.errors,n)})),t))),a)return t;const i=t.pop();return i?(t.push(Object.assign(Object.assign({},i),{children:GO(e.errors,n)})),t):t},QO=(e,t,n=[])=>null===e?null:(tT(e)&&n.push((0,L.jsx)(ut,{intent:"secondary",onClick:t,children:(0,L.jsx)(pp,{content:"forms.backToFormButton"})},"backToFormButton")),{title:e.title,steps:XO(e),autoCloseTimeout:3e3,cancelable:!1,buttons:ZI(e)?n:[]}),JO=e=>{switch(e){case"running":case"started":return $O;case"canceled":return"canceled";case"done":return zO;case"error":return qO;default:return WO}},XO=e=>{if(null===e)return[];let t=(n=e,Array.isArray(n.steps)?n.steps:Object.values(n.steps));var n;if(0===t.length&&t.push({title:e.title,status:JO(e.status),progress:e.progress||-1}),t=(e=>e.map((e=>{let t={title:e.title,status:e.status,progress:e.progress};const n=t.status===$O;return n&&e.hint&&(t=Object.assign(Object.assign({},t),{children:(0,L.jsx)(da,{children:e.hint})})),n&&t.progress&&parseFloat(`${t.progress}`)>0&&(t=Object.assign(Object.assign({},t),{statusText:`${t.progress}%`})),t})))(t),(e=>e.length===e.filter((e=>e.status===WO)).length)(t)){let e=t.shift();e=Object.assign(Object.assign({},e),{status:$O}),t.unshift(e)}return tT(e)?t=KO(e,t,"danger"):ZI(e)&&(t=KO(e,t,"warning")),t},ZO="createBackup",eL="restoreBackup",tL={backupCreationBackgroundTaskId:null,backupCreationBackgroundTask:null,showBackupCreationBackgroundTaskDetails:!1,isBackupCreationBackgroundTaskProcessing:!1},nL={backupRestoringBackgroundTaskId:null,backupRestoringBackgroundTask:null,showBackupRestoringBackgroundTaskDetails:!1,isBackupRestoringBackgroundTaskProcessing:!1};class sL extends R.Component{constructor(e){super(e),this.setListData=()=>{this.setState({listData:this.props.backups.map((e=>{return{key:e.fileName,createDate:(t=e.createDate,xS().parseZone(t).format("YYYY-MM-DD HH:mm:ss")),fileSize:e.fileSize,fileName:e.fileName};var t}))})},this.getTotalSizeOfBackups=()=>{const{listData:e}=this.state,t=e.reduce(((e,t)=>e+Number(t.fileSize)),0);return this.formatBackupFileSize(t)},this.formatBackupFileSize=e=>`${Math.round(e/1048576)} MB`,this.isToolbarControlsDisabled=()=>this.state.isBackupCreationBackgroundTaskProcessing||this.state.isBackupRestoringBackgroundTaskProcessing,this.isBackupActionsDisabled=()=>this.state.isBackupCreationBackgroundTaskProcessing||this.state.isBackupRestoringBackgroundTaskProcessing,this.isBackupCreateActionDisabled=()=>this.props.limits.backupsLimitExceeded,this.handleUpdateBackupCreationBackgroundTaskOnFinish=()=>{const{backupCreationBackgroundTask:{steps:e,errors:t}}=this.state,n=Object.assign({},e);t&&0!==t.length?n[ZO]=Object.assign(Object.assign({},n[ZO]),{title:(0,L.jsx)(pp,{content:"backupList.backupCreationProgress.taskIsFailed"})}):n[ZO]=Object.assign(Object.assign({},n[ZO]),{title:(0,L.jsx)(pp,{content:"backupList.backupCreationProgress.taskIsFinished"})}),this.setState((e=>({backupCreationBackgroundTask:Object.assign(Object.assign({},e.backupCreationBackgroundTask),{steps:n})})))},this.handleOnReceiveBackupCreationBackgroundTaskData=()=>{const{backupCreationBackgroundTaskId:e,backupCreationBackgroundTask:t}=this.state,{installation:{id:n},tasks:s,backupActions:{instanceBackupCreationFinished:a,instanceBackupCreationFinishedWithError:i}}=this.props;if(!e)return;const r=nT(e,s);r&&t!==r&&this.setState({backupCreationBackgroundTask:r},(()=>{ZI(r)&&(this.setState({isBackupCreationBackgroundTaskProcessing:!1}),this.handleUpdateBackupCreationBackgroundTaskOnFinish()),eT(r)?(this.setState({showBackupCreationBackgroundTaskDetails:!1}),a(n)):tT(r)&&i()}))},this.handleCreateBackup=()=>{const{isBackupCreationBackgroundTaskProcessing:e}=this.state,{backupActions:{createInstanceBackup:t},appActions:{addErrorMessage:n},installation:{id:s}}=this.props;e||(this.setState({isBackupCreationBackgroundTaskProcessing:!0}),t(s).then((e=>{if(!e)return;if(e.message)return void n(e.message);const{task:t}=e;t&&this.setState({showBackupCreationBackgroundTaskDetails:!0,backupCreationBackgroundTask:null,backupCreationBackgroundTaskId:t.id})})).catch((()=>{this.setState({isBackupCreationBackgroundTaskProcessing:!1})})))},this.handleUpdateBackupRestoringBackgroundTaskOnFinish=()=>{const{backupRestoringBackgroundTask:{steps:e,errors:t}}=this.state,n=Object.assign({},e);t&&0!==t.length?n[eL]=Object.assign(Object.assign({},n[eL]),{title:(0,L.jsx)(pp,{content:"backupList.backupRestoringProgress.taskIsFailed"})}):n[eL]=Object.assign(Object.assign({},n[eL]),{title:(0,L.jsx)(pp,{content:"backupList.backupRestoringProgress.taskIsFinished"})}),this.setState((e=>({backupRestoringBackgroundTask:Object.assign(Object.assign({},e.backupRestoringBackgroundTask),{steps:n})})))},this.handleOnReceiveBackupRestoringBackgroundTaskData=()=>{const{backupRestoringBackgroundTaskId:e,backupRestoringBackgroundTask:t}=this.state,{installation:{id:n},tasks:s,backupActions:{instanceBackupRestoringFinished:a,instanceBackupRestoringFinishedWithError:i}}=this.props;if(!e)return;const r=nT(e,s);r&&t!==r&&this.setState({backupRestoringBackgroundTask:r},(()=>{ZI(r)&&(this.setState({isBackupRestoringBackgroundTaskProcessing:!1}),this.handleUpdateBackupRestoringBackgroundTaskOnFinish()),eT(r)?(this.setState({showBackupRestoringBackgroundTaskDetails:!1}),a(n).catch((()=>{}))):tT(r)&&i()}))},this.handleRestoreBackup=(e,t)=>{const{isBackupRestoringBackgroundTaskProcessing:n}=this.state,{backupActions:{restoreInstanceBackup:s},appActions:{addErrorMessage:a},installation:{id:i}}=this.props;n||(this.setState({isBackupRestoringBackgroundTaskProcessing:!0}),s(i,e.fileName,t).then((e=>{if(!e)return;if(e.message)return void a(e.message);const{task:t}=e;t&&this.setState({showBackupRestoringBackgroundTaskDetails:!0,backupRestoringBackgroundTask:null,backupRestoringBackgroundTaskId:t.id})})).catch((()=>{this.setState({isBackupRestoringBackgroundTaskProcessing:!1})})))},this.handleLoadInstanceBackupList=()=>{const{backupActions:{loadInstanceBackupsMetaData:e},installation:{id:t}}=this.props,{isInstanceBackupsListFilterEnabled:n}=this.state;this.setState({isBackupListLoading:!0}),e(t,!n).then((({data:e})=>{this.setState({backupsDirName:e.meta.dirName,backupsUrl:e.meta.fileManagerUrl}),this.setListData()})).finally((()=>{this.setState({isBackupListLoading:!1})}))},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleRemoveBackup=e=>{const{backupActions:{removeInstanceBackups:t},installation:{id:n}}=this.props;t(n,e).then((()=>{this.handleLoadInstanceBackupList()}))},this.handleRefresh=()=>{this.handleLoadInstanceBackupList()},this.handleToggleBackupListFilter=()=>{this.setState((e=>({isInstanceBackupsListFilterEnabled:!e.isInstanceBackupsListFilterEnabled})),(()=>this.handleLoadInstanceBackupList()))},this.handleToggleRemoveBackupConfirmationPopup=()=>this.setState((e=>({showRemoveBackupConfirmation:!e.showRemoveBackupConfirmation}))),this.getColumns=()=>[{key:"createDate",title:(0,L.jsx)(pp,{content:"backupList.columns.createDate"}),width:"25%"},{key:"fileSize",title:(0,L.jsx)(pp,{content:"backupList.columns.fileSize"}),width:"10%",render:e=>this.formatBackupFileSize(e.fileSize)},{key:"fileName",truncate:!0,title:(0,L.jsx)(pp,{content:"backupList.columns.fileName"}),width:"50%",render:({fileName:e})=>(0,L.jsx)("span",{"data-test-id":"instance-backups-drawer-filename",children:e})},{key:"actions",width:"15%",align:"right",render:e=>(0,L.jsx)(YO,{backupsUrl:this.state.backupsUrl,installation:this.props.installation,backup:e,onCreateBackup:this.handleCreateBackup,onRestoreBackup:this.handleRestoreBackup,onRemoveBackup:this.handleRemoveBackup,disabled:this.isBackupActionsDisabled()})}],this.renderToolbar=()=>{const{showRemoveBackupConfirmation:e,selection:t,isInstanceBackupsListFilterEnabled:n}=this.state,{baseClassName:s}=this.props;return(0,L.jsxs)(Ha,{className:`${s}__toolbar`,children:[(0,L.jsx)(Ya,{title:"Create Backup",children:(0,L.jsx)(ut,{"data-test-id":"instance-backups-drawer-create-backup-button",intent:"primary",icon:nO("backup"),onClick:this.handleCreateBackup,disabled:this.isToolbarControlsDisabled()||this.isBackupCreateActionDisabled(),children:(0,L.jsx)(pp,{content:"backupList.toolbar.buttonCreate"})})}),(0,L.jsxs)(Ya,{title:"Actions",children:[(0,L.jsx)(ut,{onClick:()=>this.handleRefresh(),state:this.state.isBackupListLoading?"loading":void 0,icon:"refresh","data-test-id":"instance-backups-drawer-refresh-list",children:(0,L.jsx)(pp,{content:"backupList.toolbar.buttonRefresh"})}),(0,L.jsx)(Ks,{visible:e,target:(0,L.jsx)(ut,{onClick:this.handleToggleRemoveBackupConfirmationPopup,disabled:this.isToolbarControlsDisabled(),className:`${s}__toolbar__button-remove`,"data-test-id":Sv,children:(0,L.jsx)(pp,{content:"backupList.toolbar.buttonRemove"})}),onClose:this.handleToggleRemoveBackupConfirmationPopup,placement:"top",children:0===t.length?(0,L.jsx)(Gi,{intent:"info",children:(0,L.jsx)(pp,{content:"backupList.removeBackupConfirmation.noBackupsToRemove"})}):(0,L.jsxs)("div",{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"backupList.removeBackupConfirmation.text"})}),(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{"data-test-id":"instance-backups-drawer-mass-remove-backup-confirm",intent:"danger",size:"md",onClick:()=>{this.handleRemoveBackup(t),this.handleToggleRemoveBackupConfirmationPopup()},children:(0,L.jsx)(pp,{content:"backupList.removeBackupConfirmation.buttonRemove"})}),(0,L.jsx)(ut,{onClick:this.handleToggleRemoveBackupConfirmationPopup,size:"md",ghost:!0,className:`${s}__remove-backup-confirmation__button-cancel`,children:(0,L.jsx)(pp,{content:"backupList.removeBackupConfirmation.buttonCancel"})})]})]})})]}),(0,L.jsx)(Sa,{}),(0,L.jsxs)(Ya,{title:"instanceBackupsFilter",children:[(0,L.jsx)(pp,{content:"backupList.toolbar.shownFilesFilter"})," ",(0,L.jsx)(Dl,{tooltip:(0,L.jsx)(pp,{content:"backupList.toolbar.shownFilesFilter"}),checked:n,onChange:this.handleToggleBackupListFilter,"data-test-id":"instance-backups-drawer-show-all-checkbox"})]})]})},this.renderBackupList=()=>{const{listData:e,selection:t,isBackupListLoading:n}=this.state,{baseClassName:s}=this.props;return n?(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"backupList.backupListLoading"})}):0===e.length?(0,L.jsx)(pp,{content:"backupList.noBackupsYet"}):(0,L.jsx)(HO,{columns:this.getColumns(),data:e,selection:t,onSelectionChange:this.handleSelectionChange,className:`${s}__list`,rowProps:e=>({"data-test-id":"instance-backups-drawer-item","data-test-filename":e.fileName})})},this.renderBackupInfo=()=>{const{installation:{features:{backups:e,fileManager:t},title:n},limits:{backupsLimit:s,backupsCount:a},baseClassName:i,translate:r}=this.props,{backupsUrl:o,backupsDirName:l}=this.state;return(0,L.jsxs)("div",{children:[this.isBackupCreateActionDisabled()&&(0,L.jsx)(Tl,{intent:"warning",children:(0,L.jsx)(pp,{params:{count:a,limit:s},content:"common.siteBackupsLimitExceeded"})}),e.panelBackupsAvailable&&(0,L.jsxs)(Aa,{image:(0,L.jsx)(xe,{name:nO("circle-info")}),children:[(0,L.jsx)(pp,{params:{siteName:n},content:"backupList.description"})," ",e.backupManagerUrl&&(0,L.jsx)(pp,{params:{link:(0,L.jsx)(TO,{installation:this.props.installation})},content:"backupList.descriptionPanelBackups"})]}),(0,L.jsx)(Ni,{className:`${i}__section`,children:(0,L.jsxs)(Ks,{title:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.title"}),target:(0,L.jsx)(Us,{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.title"})}),width:"sm",children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.text"})}),(0,L.jsxs)("ol",{children:[(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.1"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.2"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.3"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.4"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.5"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"backupList.backupRestorePopover.list.text.6"})})]})]})}),(0,L.jsxs)(Ni,{className:`${i}__section`,children:[t.available&&o&&l&&(0,L.jsxs)(vi,{title:(0,L.jsx)(pp,{content:"backupList.sectionItems.backupLocation.title"}),children:[(0,L.jsx)(pp,{content:"backupList.sectionItems.backupLocation.content",params:{link:(0,L.jsx)(PO,{backupsUrl:this.state.backupsUrl,backupsDirName:this.state.backupsDirName,installation:this.props.installation})}}),(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{className:"wpt-mgl-5",icon:"question-mark-circle","aria-label":r("list-ui.instances.icons.info.ariaLabel")}),children:(0,L.jsx)(pp,{content:"backupList.backupUploadArchive"})})]}),(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"backupList.sectionItems.totalSizeOfBackups"}),children:this.getTotalSizeOfBackups()})]})]})},this.state=Object.assign(Object.assign({backupsDirName:"",backupsUrl:"",listData:[],selection:[],showRemoveBackupConfirmation:!1,isBackupListLoading:!1,isInstanceBackupsListFilterEnabled:!0},tL),nL)}componentDidMount(){this.props.isOpen&&this.handleLoadInstanceBackupList()}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadInstanceBackupList(),e.isOpen&&!this.props.isOpen&&this.props.backupActions.resetInstanceBackupList(),e.tasks!==this.props.tasks&&(this.handleOnReceiveBackupCreationBackgroundTaskData(),this.handleOnReceiveBackupRestoringBackgroundTaskData()),e.backups!==this.props.backups&&this.setListData()}render(){const{installation:{title:e},onClose:t,isOpen:n}=this.props,{backupCreationBackgroundTask:s,showBackupCreationBackgroundTaskDetails:a,backupRestoringBackgroundTask:i,showBackupRestoringBackgroundTaskDetails:r}=this.state;let o=null;return a&&s?o=s:r&&i&&(o=i),(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"backupList.drawerTitle"}),subtitle:e,progress:QO(o,(()=>{this.setState({backupCreationBackgroundTask:null,backupRestoringBackgroundTask:null})})),hideButton:!1,"data-test-id":"instance-backups-drawer","data-type":"instance-backup",onClose:t,size:"lg",isOpen:n,children:(0,L.jsxs)("div",{children:[this.renderBackupInfo(),this.renderToolbar(),this.renderBackupList()]})})}}sL.propTypes={installation:je().shape({features:je().shape({backups:je().shape({backupManagerUrl:je().string,panelBackupsAvailable:je().bool.isRequired}),fileManager:je().shape({available:je().bool.isRequired})}).isRequired,id:je().number.isRequired,title:je().string.isRequired}).isRequired,onClose:je().func.isRequired,backupActions:je().shape({loadInstanceBackupsMetaData:je().func.isRequired,resetInstanceBackupList:je().func.isRequired,createInstanceBackup:je().func.isRequired,instanceBackupCreationFinished:je().func.isRequired,instanceBackupCreationFinishedWithError:je().func.isRequired,restoreInstanceBackup:je().func.isRequired,instanceBackupRestoringFinished:je().func.isRequired,instanceBackupRestoringFinishedWithError:je().func.isRequired,removeInstanceBackups:je().func.isRequired}).isRequired,appActions:je().shape({addErrorMessage:je().func.isRequired}).isRequired,tasks:je().array,backups:je().arrayOf(je().shape({createDate:je().string.isRequired,fileSize:je().number.isRequired,fileName:je().string.isRequired})).isRequired,limits:je().shape({backupsLimit:je().number,backupsCount:je().number.isRequired,backupsLimitExceeded:je().bool.isRequired}).isRequired,baseClassName:je().string,isOpen:je().bool.isRequired,translate:je().func},sL.defaultProps={tasks:[],baseClassName:`${th}backup-list`};const aL=Fc((e=>({tasks:e.backgroundTasks.tasks,backups:e.backup.list,limits:e.backup.limits})),(e=>({backupActions:(0,Cb.zH)(c,e),appActions:(0,Cb.zH)(t,e)})))(Nv(sL));class iL extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:{backupManagerUrl:e}}}}=this.props;return e?(0,L.jsx)("a",{href:e,target:"_blank",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.backupLink"})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:{backupManagerUrl:e}},owner:{login:t}},goToUri:n}=this.props;if(!e)return null;const s=Yv({link:e,inNewWindow:!0,goToUri:n,accountUsername:t});return(0,L.jsx)("a",Object.assign({},s,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.backupLink"})}))}}render(){const{installation:{features:{backups:{panelBackupsAvailable:e,backupManagerUrl:t}},installationType:n}}=this.props;return e&&t?xO(n)?this.renderPlesk():wO(n)?this.renderCpanel():null:null}}const rL=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(iL);class oL extends R.Component{constructor(e){super(e),this.handleDataLoaded=()=>{const{securityMeasuresInstallationStatus:e,fetchBackgroundTasks:t}=this.props;if(!e)return;const{checkSecurityTaskId:n,resolveSecurityTaskId:s,revertSecurityTaskId:a}=e;this.setState({securityCheckBackgroundTaskId:n,isCheckingSecurity:!!n,resolveCheckerBackgroundTaskId:s,isSecuring:!!s,revertCheckerBackgroundTaskId:a,isReverting:!!a}),this.setListData(),this.setDefaultSelection();let i=!1;if(n||s||a){const e=[];n&&e.push(n),s&&e.push(s),a&&e.push(a),t(bf.backgroundTask.getTasksData,e.map((e=>({id:e,code:vI})))).then((e=>{0!==e.length?(i=!0,n&&this.handleOnReceiveSecurityCheckBackgroundTask(e),s&&this.handleOnReceiveResolveCheckerBackgroundTask(e),a&&this.handleOnReceiveRollbackCheckerBackgroundTask(e)):this.setState({isCheckingSecurity:!1,isSecuring:!1,isReverting:!1})}))}n||i||!this.isLastSecurityCheckTimestampInvalid()||this.handleCheckSecurity()},this.loadSecurityMeasuresInstallationStatus=()=>{const{reloadSecurityMeasuresPerInstallations:e,installation:{id:t}}=this.props;return e([t]).then((()=>{this.handleDataLoaded()})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.reloadInstallationSecurityMeasures=()=>{const{reloadSecurityMeasuresPerInstallations:e,installation:{id:t}}=this.props;return e([t])},this.handleOnReceiveSecurityCheckBackgroundTask=e=>{const{securityCheckBackgroundTaskId:t}=this.state;if(!t)return;const n=nT(t,e);n&&(ZI(n)&&this.setState({selection:[],isCheckingSecurity:!1,securityCheckBackgroundTaskId:void 0},(()=>{this.reloadInstallationSecurityMeasures().finally(this.setDefaultSelection)})),eT(n)&&n.errors.length&&this.props.addErrorMessage(n.errors.join("\n")))},this.handleOnReceiveRollbackCheckerBackgroundTask=e=>{const{revertCheckerBackgroundTaskId:t}=this.state,{addSuccessMessage:n}=this.props;if(!t)return;const s=nT(t,e);s&&(ZI(s)&&this.setState({selection:[],isReverting:!1,revertCheckerBackgroundTaskId:void 0},this.reloadInstallationSecurityMeasures),eT(s)&&(s.errors.length?this.props.addErrorMessage(s.errors.join("\n")):n("list-ui.instances.forms.security.revertSuccess",!0,"instanceSecurity")))},this.handleOnReceiveResolveCheckerBackgroundTask=e=>{const{resolveCheckerBackgroundTaskId:t}=this.state,{addSuccessMessage:n}=this.props;if(!t)return;const s=nT(t,e);s&&(ZI(s)&&this.setState({selection:[],isSecuring:!1,resolveCheckerBackgroundTaskId:void 0},this.reloadInstallationSecurityMeasures),eT(s)&&(s.errors.length?this.props.addErrorMessage(s.errors.join("\n")):n("list-ui.instances.forms.security.resolveSuccess",!0,"instanceSecurity")))},this.setListData=()=>{const{isSecuring:e,isReverting:t}=this.state,{securityMeasures:n,securityMeasuresInstallationStatus:s}=this.props;if(!s)return;const a=new jI(n),i=[];n.forEach((n=>{a.isSecurityMeasureAvailable(n.id,s.securityMeasures)&&i.push(Object.assign(Object.assign({},n),{status:a.isSecurityMeasureResolvedForInstallation(n.id,s),key:n.id,disabled:e||t}))})),this.setState({listData:i})},this.setDefaultSelection=()=>{const{securityMeasures:e,securityMeasuresInstallationStatus:t}=this.props;if(!t)return;const n=new jI(e);this.setState({selection:n.getUnresolvedCriticalSecurityMeasures(t).map((e=>e.id))})},this.handleRevert=()=>{const{installation:e,revertSecurityCheckers:t,clearMessages:n}=this.props,{selection:s}=this.state;n(),this.setState({isReverting:!0}),t([e.id],s).then((e=>{this.setState({revertCheckerBackgroundTaskId:e.id})})).catch((()=>{this.setState({isReverting:!1})}))},this.handleSecure=()=>{const{installation:e,resolveSecurityCheckers:t,clearMessages:n}=this.props,{selection:s}=this.state;n(),this.setState({isSecuring:!0}),t([e.id],s).then((e=>{this.setState({resolveCheckerBackgroundTaskId:e.id})})).catch((()=>{this.setState({isSecuring:!1})}))},this.handleCheckSecurity=()=>{const{installation:e,checkSecurity:t,clearMessages:n}=this.props;n(),this.setState({isCheckingSecurity:!0}),t([e.id]).then((e=>{e?this.setState({securityCheckBackgroundTaskId:e.id}):this.setState({isCheckingSecurity:!1})})).catch((()=>{this.setState({isCheckingSecurity:!1})}))},this.handleToggleBackupDrawer=()=>this.setState((e=>({showBackupDrawer:!e.showBackupDrawer}))),this.getAvailableInstallationSecurityMeasures=()=>{const{securityMeasuresInstallationStatus:e}=this.props;return e?e.securityMeasures.filter((e=>e.available)):[]},this.getListColumns=()=>[{key:"title",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.securityMeasuresList.columns.title"}),render:e=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{children:e.title}),e.description&&e.description.length>0&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"info-circle",className:"wpt-instance-security_security-form_item-info wpt-mgl-5","aria-label":this.props.translate("list-ui.instances.icons.info.ariaLabel")}),placement:"top-right",children:e.description}),e.rollbackAvailable&&(0,L.jsxs)(da,{className:"wpt-mgl-5",children:["(",(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]})},{key:"status",title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.securityMeasuresList.columns.status"}),sortable:!0,sort:(e,t)=>{const n=this.getListStatusColumnWeight(e),s=this.getListStatusColumnWeight(t);return n>s?1:n<s?-1:e.id>t.id?1:-1},render:this.getStatusColumn}],this.getListStatusColumnWeight=e=>{let t=e.status?0:1;return 1===t&&e.critical&&(t=2),t},this.getStatusColumn=e=>e.status?(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{icon:"check-mark-circle",intent:"success"}),placement:"top-left",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.alreadyResolved"})}):e.critical?(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{icon:"exclamation-mark-circle",intent:"danger"}),placement:"top-left",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.requiredToResolve"})}):(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{icon:"triangle-exclamation-mark",intent:"warning"}),placement:"top-left",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.recommendedToResolve"})}),this.state={securityCheckBackgroundTaskId:void 0,resolveCheckerBackgroundTaskId:void 0,revertCheckerBackgroundTaskId:void 0,listData:[],selection:[],isCheckingSecurity:!1,isSecuring:!1,isReverting:!1,isLoading:!0,showBackupDrawer:!1}}componentDidMount(){this.loadSecurityMeasuresInstallationStatus()}componentDidUpdate(e){e.securityMeasuresInstallationStatus!==this.props.securityMeasuresInstallationStatus&&this.setListData(),e.tasks!==this.props.tasks&&(this.handleOnReceiveSecurityCheckBackgroundTask(this.props.tasks),this.handleOnReceiveResolveCheckerBackgroundTask(this.props.tasks),this.handleOnReceiveRollbackCheckerBackgroundTask(this.props.tasks))}isLastSecurityCheckTimestampInvalid(){const{securityMeasuresInstallationStatus:e}=this.props;if(!e)return!0;const t=1e3*e.lastSecurityCheckTimestamp;return"unknown"===e.securityStatus||(new Date).getTime()-t>36e5||0===this.getAvailableInstallationSecurityMeasures().length}renderToolbar(){const{isUnpaid:e,securityMeasures:t,securityMeasuresInstallationStatus:n}=this.props;if(!n)return null;const{isSecuring:s,isReverting:a,isCheckingSecurity:i,selection:r}=this.state,o=n&&!n.resolveAndRevertAvailable,l=new jI(t),c=l.getUnresolvedSecurityMeasureAvailableForResolve(n.securityMeasures).some((e=>r.includes(e.id))),u=l.getResolvedSecurityMeasureAvailableForRevert(n.securityMeasures).some((e=>r.includes(e.id))),d=e||o||i||a||s||0===r.length||!c,p=s||a||i,h=e||o||i||s||a||0===r.length||!u;return(0,L.jsxs)(Ha,{className:"wpt-mgt-10 wpt-mgb-10",children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{intent:"primary",state:s?"loading":void 0,disabled:d,onClick:this.handleSecure,"data-test-id":"security-check-submit",tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hintButtonSecure"}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.buttonSecure"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{icon:"refresh",state:i?"loading":void 0,disabled:p,onClick:this.handleCheckSecurity,tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hintButtonCheckSecurity"}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.buttonCheckSecurity"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{state:a?"loading":void 0,disabled:h,"data-test-id":"security-revert-submit",onClick:this.handleRevert,tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hintButtonRevert"}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.buttonRevert"})})})]})}renderLastSecurityCheckDatePanel(){const{securityMeasuresInstallationStatus:e}=this.props,{isCheckingSecurity:t}=this.state;if(t)return null;if(!e||!e.lastSecurityCheckTimestamp)return(0,L.jsx)(jl,{children:(0,L.jsx)(da,{className:"wpt-instances-security_last-security-check-date",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.lastSecurityCheckDateIsUnknown"})})});const n=new Date(1e3*e.lastSecurityCheckTimestamp).toLocaleString();return(0,L.jsx)(jl,{children:(0,L.jsx)(da,{className:"wpt-instances-security_last-security-check-date",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.lastSecurityCheckDate",params:{lastSecurityCheckDate:n}})})})}renderSecurityMeasuresList(){const{listData:e,selection:t,isCheckingSecurity:n,isSecuring:s,isReverting:a}=this.state,i=s||a;return n?(0,L.jsxs)("div",{className:"wpt-mgt-15",children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.checkingForSecurity"})]}):0===e.length?(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.noSecurityMeasures"}):(0,L.jsx)(uo,{"data-test-id":"security-settings-list",className:i?"hided-mass-checkbox wpt-mgt-15":"wpt-mgt-15",columns:this.getListColumns(),data:e,selection:t,onSelectionChange:e=>this.setState({selection:e}),sortColumn:"status",sortDirection:"DESC"})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,installation:{id:n},premiumFeaturesUrl:s,securityMeasuresInstallationStatus:a}=this.props,i=a&&!a.resolveAndRevertAvailable;return e||i?(0,L.jsx)(Uv,{uatAction:Qv,purchaseLicenseUrl:t,premiumFeaturesUrl:s,installationId:n,children:(0,L.jsx)(pp,{content:"paidFeature.secureFeatureDescription"})}):null}renderBackupLink(){const{installation:{features:{backups:e}}}=this.props;return e.wptBackupsAvailable?(0,L.jsx)("a",{onClick:this.handleToggleBackupDrawer,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.backupLink"})}):e.panelBackupsAvailable?(0,L.jsx)(rL,{installation:this.props.installation}):(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.backupLink"})}render(){const{isCheckingSecurity:e,showBackupDrawer:t,isLoading:n}=this.state;return n?(0,L.jsx)(Qn,{}):(0,L.jsxs)(L.Fragment,{children:[this.renderPaidFeatureDesc(),(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.headDescription"}),this.renderToolbar(),this.renderLastSecurityCheckDatePanel(),!e&&(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.securityMeasuresListDescription",params:{link:this.renderBackupLink()}}),this.renderSecurityMeasuresList(),(0,L.jsx)(aL,{installation:this.props.installation,onClose:this.handleToggleBackupDrawer,isOpen:t})]})}}const lL=Fc(((e,t)=>{const n=e.securityMeasures.securityMeasuresInstallationStatuses.find((e=>+e.id==+t.installation.id));return{securityMeasures:e.securityMeasures.securityMeasures,tasks:e.backgroundTasks.tasks,isUnpaid:!!e.app.unpaidFeatures[Vp],upgradeUrl:e.app.urls.featuresBuyLinks[Vp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,securityMeasuresInstallationStatus:n}}),(e=>({checkSecurity:(0,Cb.zH)(WP,e),resolveSecurityCheckers:(0,Cb.zH)($P,e),revertSecurityCheckers:(0,Cb.zH)(zP,e),fetchBackgroundTasks:(0,Cb.zH)(iT,e),reloadSecurityMeasuresPerInstallations:(0,Cb.zH)(VP,e)})))(Nv(oL)),cL=Fc((e=>({publicUrl:e.app.urls.publicUrl})))((({publicUrl:e,baseClassName:t=`${th}patchstack`})=>(0,L.jsx)("img",{className:`${t}__logo-color`,src:`${e}images/patchstack.svg`,alt:"Patchstack"}))),uL=({features:{virtualPatches:e}},t,n)=>{const s=null!==e.subscription&&[Mf.Active,Mf.Suspended].includes(e.subscription.status),a=!e.restrictions.includes("licenseAbsent"),i=!e.restrictions.includes(Lf),r=!n&&e.restrictions.includes(Of)&&t;return a&&i&&!r||s},dL=(e,t,n)=>e.includes("featureDisabled")||e.includes(Of)&&!t&&!n,pL=Fc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller}}),(e=>({updateVirtualPatchesProtectionStatus:(0,Cb.zH)(aw,e),displayErrorMessageFromMeta:(0,Cb.zH)(Zf,e)})))((({installation:e,hasActiveTasks:t,updateVirtualPatchesProtectionStatus:n,displayErrorMessageFromMeta:s,onOpenUpsellDialog:a,showVirtualPatchesUpsellWhenRestrictedViaPlans:i,isAdmin:r,baseClassName:o=`${th}virtual-patches-banner`})=>{const[l,c]=R.useState(!1),u=uL(e,i,r);return(0,L.jsxs)(Tl,{intent:"info","data-test-id":"instance-security-vulnerabilities-virtual-patches-disabled-banner",children:[(0,L.jsx)(da,{bold:!0,component:"div",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.title"})}),(0,L.jsx)(da,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.message",params:{providerLogo:(0,L.jsx)(cL,{})}})}),(0,L.jsx)("br",{}),(0,L.jsx)(ut,{icon:u?"shield":"lock-closed",className:`${o}__top-margin10`,intent:"primary",onClick:u?()=>{c(!0),n({installationsIds:[e.id],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&s(e)})).finally((()=>c(!1)))}:()=>a(Qv,"SECURITY_DRAWER-SGL_BANNER"),state:l||t?"loading":void 0,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.statusMessage.patchBtn"})})]})})),hL=()=>(0,L.jsx)(He,{icon:"shield",intent:"success",view:"light",size:"lg","data-test-id":"instance-security-vulnerabilities-virtual-patches-enabled-banner",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.popover.enabled.title",params:{providerLogo:(0,L.jsx)(cL,{})}})}),mL=[{key:"noPatch",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.noPatch.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.noPatch.description"},{key:"unlikelyExploited",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.unlikelyExploited.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.unlikelyExploited.description"},{key:"dbMatch",title:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.dbMatch.title",description:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.dbMatch.description"}],gL=({target:e,baseClassName:t=`${th}protect-info-popover`})=>(0,L.jsxs)(Ks,{target:e,placement:"bottom-right",width:"xs",title:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.title"})}),children:[(0,L.jsx)(da,{className:`${t}__description`,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.message"})}),(0,L.jsx)("ol",{className:`${t}__sections-list`,children:mL.map((e=>(0,L.jsx)("li",{className:`${t}__section`,children:(0,L.jsxs)(da,{children:[(0,L.jsx)(da,{bold:!0,component:"span",children:(0,L.jsx)(pp,{content:e.title})})," ",(0,L.jsx)(pp,{content:e.description})]})},e.key)))})]}),fL=({status:e,installation:t,onOpenVirtualPatchingUpsellDialog:n,baseClassName:s=`${th}virtual-patches`})=>e?(0,L.jsxs)("div",{className:`${s}__protected-container`,children:[(0,L.jsx)(hL,{}),(0,L.jsx)(gL,{target:(0,L.jsx)(He,{intent:"inactive",icon:"question-mark-circle-filled",size:"lg",view:"outline",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.protectInfoPopover.title"})})})]}):(0,L.jsx)(pL,{installation:t,onOpenUpsellDialog:n}),bL=({contentLines:e=6,baseClassName:t=`${th}security-drawer-widget`})=>(0,L.jsx)(Wr,{className:F()(t,`${t}-loading`),view:"card",title:(0,L.jsxs)("div",{className:`${t}__header`,children:[(0,L.jsx)(Ns,{level:4,children:(0,L.jsx)(nc,{width:"90%"})}),(0,L.jsx)(nc,{width:24,height:24})]}),children:(0,L.jsx)(sc,{lines:e})});const vL=e=>{var{title:t,titleIcon:n,description:s,children:a,footer:i,itemCssClasses:r=[],baseClassName:o=`${th}security-drawer-widget`,headerActions:l}=e,c=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["title","titleIcon","description","children","footer","itemCssClasses","baseClassName","headerActions"]);return(0,L.jsx)(Wr,Object.assign({className:F()(o,r),title:(0,L.jsxs)("div",{className:`${o}__header`,children:[(0,L.jsx)(Ns,{level:4,children:t}),l&&(0,L.jsx)("div",{className:`${o}__header-actions`,children:l}),n]}),view:"card",description:s,footer:i},c,{children:(0,L.jsx)("div",{className:`${o}__body`,children:a})}))};const yL=e=>{var{baseClassName:t=`${th}button-with-adaptive-content`,children:n,tooltip:s=null}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["baseClassName","children","tooltip"]);return(0,L.jsx)(ut,Object.assign({className:t,tooltip:null!=s?s:n},a,{children:n}))},SL=e=>(e||[]).filter((e=>null!==e.updateVersion&&e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Uf&&!e.applied)))))),wL=e=>e.reduce(((e,t)=>e+t.installationsIds.length),0),xL=e=>{const t=[];return e.forEach((e=>{e.vulnerabilities.forEach((n=>{n.mitigations.find((e=>e.type===Uf&&!e.applied))&&t.push({vulnerabilityId:n.id,installationsIds:e.installationsIds,mitigations:[{type:Uf,id:n.id,applied:!0}]})}))})),t},AL=(e,t)=>{const n=`${th}security-drawer-widget`;return e?(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.title.available"}),titleIcon:(0,L.jsx)(xe,{name:"arrow-up-circle",size:"24"}),footer:t,"data-test-id":Dv,children:(0,L.jsx)(_a,{children:" "})}):(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.title.upToDate"}),titleIcon:(0,L.jsx)(xe,{name:"check-mark-circle-filled",intent:"success",size:"24"}),itemCssClasses:`${n}--success`,footer:t,"data-test-id":Dv,children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.content.allAssetsUpToDate"})})})},_L=(e,t,n=!0)=>(0,L.jsx)(yL,{state:e?"loading":void 0,onClick:t,icon:e?void 0:"refresh",tooltip:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.button.recheck"}),"data-test-id":"updates-widget-recheck",children:n&&(0,L.jsx)(pp,{content:"drawer.security.widget.updates.button.recheck"})}),kL=({visible:e,onClose:t,onConfirm:n,vulnerableComponents:s,siteName:a,sitesCount:i,target:r,baseClassName:o=`${th}selective-updates-popover`})=>{const l=cp(),[c,u]=(0,R.useState)((()=>new Set(s.map((e=>e.key))))),d=(0,R.useRef)(!1);(0,R.useEffect)((()=>{e&&!d.current&&u(new Set(s.map((e=>e.key)))),d.current=e}),[e,s]);const p=(0,R.useCallback)(((e,t)=>{u((n=>{const s=new Set(n);return t?s.add(e):s.delete(e),s}))}),[]),h=(0,R.useCallback)((()=>{const e=s.filter((e=>c.has(e.key)));n(e)}),[s,c,n]),m=(0,R.useCallback)((e=>{switch(e.type){case HS:return l("drawer.security.widget.updates.dialog.component.core",{currentVersion:e.version,newVersion:e.updateVersion});case VS:return l("drawer.security.widget.updates.dialog.component.plugin",{title:e.assetTitle,currentVersion:e.version,newVersion:e.updateVersion});case WS:return l("drawer.security.widget.updates.dialog.component.theme",{title:e.assetTitle,currentVersion:e.version,newVersion:e.updateVersion});default:return null}}),[l]),g=(0,R.useCallback)((()=>a?(0,L.jsx)(da,{intent:"muted",children:l("drawer.security.widget.updates.dialog.warning.single",{siteName:a})}):i&&i>0?(0,L.jsx)(da,{intent:"muted",children:l("drawer.security.widget.updates.dialog.warning.multiple",{sitesCount:i})}):null),[a,i,l]),f=0===c.size,b=(0,R.useMemo)((()=>s.map((e=>(0,L.jsx)(Tt,{checked:c.has(e.key),onChange:t=>p(e.key,t),"data-test-id":`updates-widget-dialog-checkbox-${e.key}`,className:`${o}__checkbox`,children:m(e)},e.key)))),[s,c,p,m,o]);return(0,L.jsx)(Ks,{title:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.dialog.title"})}),visible:e,onClose:t,target:r,"data-test-id":"updates-widget-dialog",children:(0,L.jsxs)("div",{className:o,children:[g(),(0,L.jsx)("div",{className:`${o}__list`,children:b}),(0,L.jsxs)("div",{className:`${o}__buttons`,children:[(0,L.jsx)(ut,{intent:"primary",onClick:h,disabled:f,"data-test-id":"updates-widget-dialog-update",children:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.dialog.button.update"})}),(0,L.jsx)(ut,{onClick:t,"data-test-id":"updates-widget-dialog-cancel",children:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.dialog.button.cancel"})})]})]})})},jL=Fc((e=>({vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses,runningCheckVulnerabilitiesTasks:e.vulnerabilities.runningCheckVulnerabilitiesTasks})),(e=>({checkInstallationsVulnerability:(0,Cb.zH)(d_,e),mitigateVulnerabilities:(0,Cb.zH)(sw,e)})))((({installation:e,vulnerableComponents:t,isLoading:n,checkInstallationsVulnerability:s,mitigateVulnerabilities:a,vulnerabilityMitigationsUpdatingStatuses:i,runningCheckVulnerabilitiesTasks:r})=>{const o=cp(),l=J_(),[c,u]=(0,R.useState)(!1),[d,p]=(0,R.useState)(!1),h=(0,R.useMemo)((()=>SL(t)),[t]),m=h.length>0,g=(0,R.useMemo)((()=>wL(h)),[h]),f=(0,R.useMemo)((()=>{const t=new Set(h.flatMap((e=>e.vulnerabilities.map((e=>e.id)))));return r.some((t=>t.installationsIds.includes(e.id)))||i.some((n=>t.has(n.vulnerabilityId)&&n.installationIds.includes(e.id)))}),[h,r,i,e.id]),b=(0,R.useCallback)((e=>{l("SECURITY_DRAWER-SGL-UPDATES_WIDGET_RECHECK_BTN-CLICKED"),u(!0),s(e).catch((()=>{})).finally((()=>{u(!1)}))}),[s,l]),v=(0,R.useCallback)((e=>{const t=xL(e);t.length>0&&(l("SECURITY_DRAWER-SGL-UPDATES_WIDGET_UPDATE_CONFIRM_BTN-CLICKED"),u(!0),p(!1),a(t).catch((()=>{})).finally((()=>{u(!1)})))}),[a,l]),y=(0,R.useCallback)((()=>{l("SECURITY_DRAWER-SGL-UPDATES_WIDGET_SELECT_UPDATES_BTN-CLICKED"),p(!0)}),[l]),S=(0,R.useCallback)((()=>{p(!1)}),[]);if(n)return(0,L.jsx)(bL,{contentLines:3});const w=c||f;return AL(m,m?(0,L.jsx)(kL,{visible:d,onClose:S,onConfirm:v,vulnerableComponents:h,siteName:e.displayTitle,target:(0,L.jsx)(yL,{state:w?"loading":void 0,onClick:y,"data-test-id":Pv,children:o("drawer.security.widget.updates.button.installUpdates",{count:g})})}):_L(w,(()=>b([e.id]))))})),CL=({progressDescription:e,progress:t,button:n,baseClassName:s=`${th}progress-with-action`,"data-test-id":a})=>(0,L.jsxs)("div",{className:s,"data-test-id":a,children:[(0,L.jsxs)("div",{className:`${s}__progress`,children:[(0,L.jsxs)("div",{className:`${s}__progress__description`,children:[(0,L.jsx)(xe,{name:"web",size:"16",className:`${s}__progress-description-icon`}),(0,L.jsx)(Xe,{title:e,children:e})]}),(0,L.jsx)(Qi,{intent:"success",progress:t,className:`${s}__progress__bar`})]}),(0,L.jsx)("div",{className:`${s}__button`,children:n})]}),IL=Fc((e=>({vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses,runningCheckVulnerabilitiesTasks:e.vulnerabilities.runningCheckVulnerabilitiesTasks})),(e=>({checkInstallationsVulnerability:(0,Cb.zH)(d_,e),mitigateVulnerabilities:(0,Cb.zH)(sw,e)})))((({vulnerableComponents:e,isLoading:t,checkInstallationsVulnerability:n,mitigateVulnerabilities:s,vulnerabilityMitigationsUpdatingStatuses:a,runningCheckVulnerabilitiesTasks:i,installationsIds:r})=>{const o=cp(),l=J_(),[c,u]=(0,R.useState)(!1),[d,p]=(0,R.useState)(!1),h=(0,R.useMemo)((()=>SL(e)),[e]),m=h.length>0,g=(0,R.useMemo)((()=>wL(h)),[h]),f=(0,R.useMemo)((()=>(e=>{const t=new Set;return e.forEach((e=>{e.installationsIds.forEach((e=>t.add(e)))})),[...t]})(h)),[h]),b=(0,R.useMemo)((()=>{const e=new Set(h.flatMap((e=>e.vulnerabilities.map((e=>e.id))))),t=new Set(r);return i.some((e=>e.installationsIds.some((e=>t.has(e)))))||a.some((n=>e.has(n.vulnerabilityId)&&n.installationIds.some((e=>t.has(e)))))}),[h,i,a,r]),v=(0,R.useCallback)((e=>{l("SECURITY_DRAWER-MLT-UPDATES_WIDGET_RECHECK_BTN-CLICKED"),u(!0),n(e).catch((()=>{})).finally((()=>{u(!1)}))}),[n,l]),y=(0,R.useCallback)((e=>{const t=xL(e);t.length>0&&(l("SECURITY_DRAWER-MLT-UPDATES_WIDGET_UPDATE_CONFIRM_BTN-CLICKED"),u(!0),p(!1),s(t).catch((()=>{})).finally((()=>{u(!1)})))}),[s,l]),S=(0,R.useCallback)((()=>{l("SECURITY_DRAWER-MLT-UPDATES_WIDGET_SELECT_UPDATES_BTN-CLICKED"),p(!0)}),[l]),w=(0,R.useCallback)((()=>{p(!1)}),[]);if(t)return(0,L.jsx)(bL,{contentLines:3});const x=c||b,A=r.length-f.length,_=r.length>0?A/r.length*100:100;return AL(m,(()=>{const e=m?(0,L.jsx)(kL,{visible:d,onClose:w,onConfirm:y,vulnerableComponents:h,sitesCount:r.length,target:(0,L.jsx)(yL,{state:x?"loading":void 0,onClick:S,"data-test-id":Pv,children:o("drawer.security.widget.updates.button.installUpdates",{count:g})})}):_L(x,(()=>v(r)),!1);return(0,L.jsx)(CL,{progressDescription:(0,L.jsx)(pp,{content:"drawer.security.widget.updates.multi.footer.upToDateSitesCounter",params:{total:r.length,current:A}}),progress:x?-1:_,button:e,"data-test-id":"updates-widget-progress-bar"})})())})),TL=e=>(0,L.jsx)(xe,Object.assign({},e,{children:(0,L.jsxs)("svg",{viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",focusable:"false",children:[(0,L.jsx)("path",{d:"M5.50003 2.5C5.09361 2.5 4.77146 2.84291 4.79681 3.24854L4.96884 6.00097C4.98637 6.28148 5.21898 6.5 5.50003 6.5C5.78108 6.5 6.01368 6.28148 6.03122 6.00097L6.20324 3.24854C6.22859 2.84291 5.90645 2.5 5.50003 2.5Z",fill:"currentColor"}),(0,L.jsx)("path",{d:"M5.50003 8.625C5.8452 8.625 6.12503 8.34518 6.12503 8C6.12503 7.65482 5.8452 7.375 5.50003 7.375C5.15485 7.375 4.87503 7.65482 4.87503 8C4.87503 8.34518 5.15485 8.625 5.50003 8.625Z",fill:"currentColor"}),(0,L.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 2.0625C11 1.72852 10.7713 1.40751 10.4378 1.3125L5.72351 0.0311667C5.57765 -0.0103889 5.42235 -0.0103889 5.27649 0.0311667L0.562205 1.3125C0.228724 1.40751 0 1.72852 0 2.0625V7.3125C0 9.17656 3.00335 11.1986 5.26209 11.961C5.41628 12.013 5.58372 12.013 5.73791 11.961C7.99667 11.1986 11 9.17656 11 7.3125V2.0625ZM1 2.22979L5.5 1.0067L10 2.22979V7.3125C10 7.50978 9.9182 7.79036 9.66984 8.15375C9.42435 8.51293 9.05496 8.89477 8.58796 9.27166C7.67591 10.0077 6.50501 10.6341 5.5 10.9853C4.49501 10.6341 3.3241 10.0077 2.41204 9.27166C1.94504 8.89477 1.57565 8.51292 1.33016 8.15375C1.0818 7.79035 1 7.50978 1 7.3125V2.22979Z",fill:"currentColor"})]})})),DL=e=>{var t;return e&&null!==(t=e.requestsBlocked.threeHundredSixtyFiveDays)&&void 0!==t?t:0},PL=()=>{const e=Hc();return(0,R.useCallback)((t=>((e,t)=>{const{permissions:n}=t.app.options;return"manage-vulnerability-protection"===e&&n.canManageVulnerabilityProtection})(t,e.getState())),[e])},OL=({installation:e,onOpenVirtualPatchingUpsellDialog:t,hasActiveTasks:n,usageStatistics:s,showVirtualPatchesUpsellWhenRestrictedViaPlans:a,isAdmin:i})=>{const r=PL(),o=DL(s),l=(null==s?void 0:s.total)||0;if(e.features.virtualPatches.status)return(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.title.enabled"}),titleIcon:(0,L.jsx)(xe,{name:"shield-filled",intent:"success",size:"24"}),headerActions:(0,L.jsx)(KL,{siteName:e.displayTitle,vulnerabilitiesProtected:l,attacksBlocked:o,hasActiveTasks:n,installationIds:[e.id],analyticsEventName:"SECURITY_DRAWER-SGL_WIDGET-VIRTUAL_PATCHING_DISABLE_MENU-CLICKED"}),itemCssClasses:[`${th}security-drawer-widget--success`],footer:(0,L.jsx)(QL,{attacksBlocked:o}),"data-test-id":Iv,children:(0,L.jsx)($L,{})});let c=(0,L.jsx)(ut,{icon:"lock-closed",intent:"primary",disabled:!r("manage-vulnerability-protection"),state:n?"loading":void 0,onClick:()=>t(Qv),"data-test-id":Tv,children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.button.enableProtection"})});r("manage-vulnerability-protection")||(c=(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:c}));const u=uL(e,a,i)?(0,L.jsx)(YL,{intent:"primary",installationIds:[e.id],protectionStatus:!0,hasActiveTasks:n,eventName:"SECURITY_DRAWER-SGL_WIDGET-VIRTUAL_PATCHING-CLICKED","data-test-id":"vulnerability-protection-enable",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.button.enableProtection"})}):c;return(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.title.off"}),titleIcon:(0,L.jsx)(TL,{size:"24"}),footer:u,"data-test-id":Iv,children:(0,L.jsx)(WL,{})})};class LL extends R.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.setState((e=>({showPopover:!e.showPopover}))),this.getPopoverContent=()=>{const{isPermissionDenied:e,wordPressToolkitLiteEdition:t,purchaseDeluxeGuardianUrl:n,purchaseWordPressToolkitUrl:s,upgradePleskUrl:a,uatAction:i}=this.props;return e?(0,L.jsx)(pp,{content:"paidGuardianDeluxe.permissionDenied"}):(0,L.jsx)(pp,{content:"paidGuardianDeluxe.description"})},this.getPopoverActions=()=>{const{purchaseDeluxeGuardianUrl:e,premiumFeaturesUrl:t,uatAction:n,wordPressToolkitLiteEdition:s,upgradePleskUrl:a,installationId:i}=this.props,r=s?a:e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rv,{purchaseLicenseUrl:r,uatAction:n,onTogglePopover:this.handleTogglePopover,featureType:"virtualPatches",installationId:i,children:(0,L.jsx)(pp,{content:"paidGuardianDeluxe.purchaseButton"})}),t&&(0,L.jsx)(ut,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,L.jsx)(pp,{content:"paidGuardianDeluxe.discoverAllPremiumFeaturesButton"})})]})},this.getPopover=()=>{const{renderManagingComponent:e,baseClassName:t,translate:n}=this.props,{showPopover:s}=this.state;return(0,L.jsx)(Ks,{visible:s,width:"xs",onClose:this.handleTogglePopover,target:e((0,L.jsx)(_e,{onClick:this.handleTogglePopover,icon:"lock-closed","aria-label":n("list-ui.instances.icons.paidFeature.ariaLabel")}),this.handleTogglePopover),children:(0,L.jsxs)(ur,{className:`${t}__popover-content`,children:[(0,L.jsxs)(hr,{children:[(0,L.jsx)(xe,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,L.jsx)(da,{children:(0,L.jsx)(pp,{content:"premiumFeature.title"})})]}),(0,L.jsx)(pr,{children:this.getPopoverContent()}),(0,L.jsx)(dr,{children:this.getPopoverActions()})]})})},this.state={showPopover:!1}}render(){const{isPaid:e,renderManagingComponent:t,baseClassName:n,className:s}=this.props;return e?t():this.getPopover()}}LL.defaultProps={baseClassName:`${th}paid-guardian-deluxe`};const ML=Fc((e=>({purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl,purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isPermissionDenied:!e.app.options.isAdmin||e.app.options.isReseller})))(Nv(LL)),EL=({installationsIdsWithInactiveProtection:e,installationsIdsWithActiveProtection:t,isProtectionPaid:n,hasActiveTasks:s,usageStatistics:a})=>{const i=t.length,r=e.length,o=i+r,l=DL(a),c=(null==a?void 0:a.total)||0,u=PL();if(0===r)return(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.title.enabled"}),titleIcon:(0,L.jsx)(xe,{name:"shield-filled",intent:"success",size:"24"}),headerActions:(0,L.jsx)(KL,{sitesCount:i,vulnerabilitiesProtected:c,attacksBlocked:l,hasActiveTasks:s,installationIds:t,analyticsEventName:"SECURITY_DRAWER-MLT_WIDGET-VIRTUAL_PATCHING_DISABLE_MENU-CLICKED"}),itemCssClasses:[`${th}security-drawer-widget--success`],footer:(0,L.jsx)(QL,{attacksBlocked:l}),"data-test-id":Iv,children:(0,L.jsx)($L,{})});const d=()=>{const t=(t,n)=>t?(0,L.jsx)(yL,{icon:"lock-closed",intent:"primary",state:s?"loading":void 0,onClick:t?n:void 0,disabled:s||!u("manage-vulnerability-protection"),"data-test-id":Tv,children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.button.enableAll"})}):(0,L.jsx)(YL,{intent:"primary",installationIds:e,protectionStatus:!0,hasActiveTasks:s,eventName:"SECURITY_DRAWER-MLT_WIDGET-VIRTUAL_PATCHING-CLICKED","data-test-id":"vulnerability-protection-enable-all",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.button.enableAll"})});return u("manage-vulnerability-protection")?(0,L.jsx)(ML,{renderManagingComponent:t,isPaid:n,uatAction:Jv}):(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:t()})};return(0,L.jsx)(vL,{title:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.title.protection"}),titleIcon:(0,L.jsx)(TL,{size:"24"}),footer:(()=>{const e=o>0?i/o*100:0;return(0,L.jsx)(CL,{progressDescription:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.sitesProtected",params:{current:i,total:o}}),progress:e,button:d(),"data-test-id":"vulnerability-protection-progress"})})(),"data-test-id":Iv,children:0===i?(0,L.jsx)(WL,{}):(0,L.jsx)($L,{})})},RL=()=>(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.poweredBy",params:{providerLogo:(0,L.jsx)(Us,{target:"_blank",href:"https://patchstack.com",children:(0,L.jsx)(cL,{})})}}),UL=({onSubmit:e,dataTestId:t,isButtonDisabled:n=!1,isButtonLoading:s=!1,baseClassName:a=`${th}virtual-patches-consent`})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:`${a}__popover-content`,children:[(0,L.jsx)(pp,{component:_a,content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.consentForm.description"}),(0,L.jsx)("div",{className:`${a}__popover-content-item`,children:(0,L.jsx)(RL,{})})]}),(0,L.jsx)(ut,{id:dv,"data-test-id":t,disabled:n,state:s?"loading":void 0,onClick:e,icon:"shield",size:"md",intent:"primary",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.consentForm.button"})})]}),NL=({onSubmit:e,dataTestId:t,isButtonDisabled:n=!1,isButtonLoading:s=!1,baseClassName:a=`${th}virtual-patches-consent`})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:`${a}__popover-content`,children:[(0,L.jsx)(pp,{component:_a,content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.disablingConsentForm.description"}),(0,L.jsx)("div",{className:`${a}__popover-content-item`,children:(0,L.jsx)(RL,{})})]}),(0,L.jsx)(ut,{id:dv,"data-test-id":t,disabled:n,state:s?"loading":void 0,onClick:e,size:"md",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.disablingConsentForm.button"})})]}),FL=({onHandleApplyVirtualPatches:e,isDisabled:t=!1,renderManagingComponent:n,Consent:s,eventName:a})=>{const i=PL(),[r,o]=(0,R.useState)(!1),[l,c]=(0,R.useState)(void 0),[u,d]=(0,R.useState)(!1),p=J_();if(!i("manage-vulnerability-protection"))return(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:n(!0,!1,(()=>{}))});const h=n(t,u,(()=>{p(a),d(!0),c(void 0),e(!0).catch((e=>{var t,n,s;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&(c(null===(s=null===(n=e.response.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message),o(!0))})).then((()=>{o(!0)})).finally((()=>{d(!1)}))}));return t||u?h:(0,L.jsx)(Ks,{visible:r,onClose:()=>o(!1),target:h,children:l?(0,L.jsx)("div",{style:{textAlign:"justify"},children:l}):(0,L.jsx)(s,{isButtonDisabled:t,isButtonLoading:u,onSubmit:()=>{d(!0),o(!1),e().finally((()=>d(!1)))},dataTestId:_v})})};const BL=e=>e?UL:NL,YL=Fc(void 0,(e=>({updateVirtualPatchesProtectionStatus:(0,Cb.zH)(aw,e)})))((e=>{var{children:t,protectionStatus:n,installationIds:s,hasActiveTasks:a,updateVirtualPatchesProtectionStatus:i,eventName:r,skipConsent:o=!1,onActionComplete:l}=e,c=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["children","protectionStatus","installationIds","hasActiveTasks","updateVirtualPatchesProtectionStatus","eventName","skipConsent","onActionComplete"]);const u=J_(),d=PL(),[p,h]=(0,R.useState)(!1);if(o){const e=()=>{u(r),h(!0),i({installationsIds:s,status:n,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0},!1).finally((()=>{h(!1),null==l||l()}))},o=(0,L.jsx)(yL,Object.assign({state:a||p?"loading":void 0,onClick:e,disabled:!d("manage-vulnerability-protection")||a||p},c,{children:t}));return d("manage-vulnerability-protection")?o:(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:o})}return(0,L.jsx)(FL,{onHandleApplyVirtualPatches:e=>i({installationsIds:s,status:n,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0},e),renderManagingComponent:(e,n,s)=>(0,L.jsx)(yL,Object.assign({state:a||n?"loading":void 0,onClick:s,disabled:e},c,{children:t})),Consent:BL(n),eventName:r})})),HL=e=>{const{baseClassName:t=`${th}vpatches-description`}=e;return cp(),(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:`${t}-description`,children:(0,L.jsxs)("ul",{children:[(0,L.jsx)("li",{children:(0,L.jsx)(pp,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description1"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description2"})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{unsafe:!0,content:"controllers.index.detail.virtualPatches.description3"})})]})}),(0,L.jsx)("div",{className:`${t}-poweredBy`,children:(0,L.jsx)(RL,{})})]})},VL=e=>{const{target:t,baseClassName:n=`${th}virtual-patches-info-popover`}=e;return(0,L.jsx)(Ks,{title:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.popoverTitle"})}),target:t,children:(0,L.jsx)("div",{className:`${n}__content-item`,children:(0,L.jsx)(HL,{})})})},WL=()=>(0,L.jsx)(_a,{children:(0,L.jsx)(VL,{target:(0,L.jsx)(Us,{children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.description"})})})}),$L=()=>(0,L.jsx)(_a,{children:(0,L.jsx)(gL,{target:(0,L.jsx)(Us,{children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.somethingsNotNeutralized"})})})}),zL=e=>{if(e>=1e6){const t=parseFloat((e/1e6).toFixed(1).replace(/\.0$/,""));return{number:1e6*t,string:`${t}M`}}if(e>=1e3){const t=parseFloat((e/1e3).toFixed(1).replace(/\.0$/,""));return{number:1e3*t,string:`${t}k`}}return{number:e,string:e.toString()}},qL=e=>"siteName"in e,GL=e=>{const{vulnerabilitiesProtected:t,attacksBlocked:n,onConfirm:s,onCancel:a,isLoading:i=!1,installationIds:r,baseClassName:o=`${th}disable-protection-popover`}=e,l=cp(),c=qL(e)?l("drawer.security.widget.vulnerabilityProtection.disablePopover.confirmSingle",{siteName:e.siteName}):l("drawer.security.widget.vulnerabilityProtection.disablePopover.confirmMass",{sitesCount:e.sitesCount}),u=qL(e)?"SECURITY_DRAWER-SGL_WIDGET-VIRTUAL_PATCHING_DISABLE-CLICKED":"SECURITY_DRAWER-MLT_WIDGET-VIRTUAL_PATCHING_DISABLE-CLICKED";return(0,L.jsxs)("div",{className:`${o}__content`,"data-test-id":"vulnerability-protection-disable-popover",children:[(0,L.jsx)(_a,{className:`${o}__confirm-text`,children:c}),(0,L.jsxs)("div",{className:`${o}__stats`,children:[t>0&&(0,L.jsxs)("div",{className:`${o}__stat-row`,children:[(0,L.jsx)(xe,{name:"shield-filled",intent:"success",size:"16",className:`${o}__stat-icon`}),(0,L.jsx)(da,{"data-test-id":"vulnerability-protection-disable-vulnerabilities-count",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.disablePopover.vulnerabilitiesProtected",params:{count:t}})})]}),n>0&&(0,L.jsxs)("div",{className:`${o}__stat-row`,children:[(0,L.jsx)(xe,{name:"circle-diagonal",size:"16",className:`${o}__stat-icon`}),(0,L.jsx)(da,{"data-test-id":"vulnerability-protection-disable-attacks-count",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.blockedAttacks.allTime",params:{counter:zL(n).string,counterRaw:zL(n).number}})})]})]}),(0,L.jsxs)("div",{className:`${o}__buttons`,children:[(0,L.jsx)(YL,{intent:"danger",installationIds:r,protectionStatus:!1,hasActiveTasks:i,eventName:u,"data-test-id":"vulnerability-protection-disable-confirm",skipConsent:!0,onActionComplete:s,children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.disablePopover.buttonDisable"})}),(0,L.jsx)(ut,{onClick:a,"data-test-id":"vulnerability-protection-disable-cancel",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.disablePopover.buttonCancel"})})]})]})},KL=e=>{const{vulnerabilitiesProtected:t,attacksBlocked:n,hasActiveTasks:s,installationIds:a,analyticsEventName:i}=e,r=cp(),o=(0,R.useContext)(Q_),[l,c]=(0,R.useState)(!1);return(0,L.jsx)(Ks,{visible:l,onClose:()=>c(!1),target:(0,L.jsx)(ut,{ghost:!0,icon:"kebab",onClick:()=>{o(i),c(!0)},state:s?"loading":void 0,"data-test-id":"vulnerability-protection-three-dot-menu","aria-label":r("drawer.security.widget.vulnerabilityProtection.disablePopover.title")}),title:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.disablePopover.title"}),children:(()=>{const i={vulnerabilitiesProtected:t,attacksBlocked:n,onConfirm:()=>c(!1),onCancel:()=>c(!1),isLoading:s,installationIds:a};return(e=>"siteName"in e)(e)?(0,L.jsx)(GL,Object.assign({siteName:e.siteName},i)):(0,L.jsx)(GL,Object.assign({sitesCount:e.sitesCount},i))})()})},QL=({attacksBlocked:e})=>0===e?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(xe,{name:"dot-big",intent:"success",size:"16"}),(0,L.jsx)(da,{"data-test-id":"vulnerability-protection-attacks-blocked",children:(0,L.jsx)(pp,{content:"drawer.security.widget.vulnerabilityProtection.blockedAttacks.allTime",params:{counter:zL(e).string,counterRaw:zL(e).number}})})]}),JL=Fc((e=>({showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,virtualPatchesUpdatingStatuses:e.vulnerabilities.virtualPatchesUpdatingStatuses})),(e=>({calculateVulnerabilityProtectionUsageStatistics:(0,Cb.zH)(T_,e)})))((e=>{const{installation:t,installationsIdsWithInactiveProtection:n,installationsIdsWithActiveProtection:s,onOpenVirtualPatchingUpsellDialog:a,isProtectionPaid:i,calculateVulnerabilityProtectionUsageStatistics:r,relatedInstallationsIds:o,isLoading:l,virtualPatchesUpdatingStatuses:c,showVirtualPatchesUpsellWhenRestrictedViaPlans:u,isAdmin:d}=e,[p,h]=(0,R.useState)(!1),[m,g]=(0,R.useState)(void 0),f=(0,R.useMemo)((()=>c.some((e=>e.installationIds.some((e=>o.includes(e)))))),[c,o]);return(0,R.useEffect)((()=>{o.length&&(h(!0),r(o).then((e=>{g(e)})).catch((()=>{g(void 0)})).finally((()=>{h(!1)})))}),[o,r]),l||p?(0,L.jsx)(bL,{contentLines:8}):o.length?t?(0,L.jsx)(OL,{installation:t,onOpenVirtualPatchingUpsellDialog:e=>a(e,"SECURITY_DRAWER-SGL_WIDGET"),hasActiveTasks:f,usageStatistics:m,showVirtualPatchesUpsellWhenRestrictedViaPlans:u,isAdmin:d}):(0,L.jsx)(EL,{installationsIdsWithInactiveProtection:n,installationsIdsWithActiveProtection:s,hasActiveTasks:f,isProtectionPaid:i,usageStatistics:m}):null})),XL=({securityRiskStatuses:e,installationId:t,isLoading:n,baseClassName:s=`${th}security-risk-widget`})=>{var a;const i=cp(),r=J_(),o=void 0===t;if(n)return(0,L.jsx)(bL,{contentLines:6});if(!e.length)return null;const l=o?Math.max(...e.map((e=>e.securityRisk.normalized))):null===(a=e.find((e=>e.id===t)))||void 0===a?void 0:a.securityRisk.normalized;if(void 0===l)return null;const c=$S(l),u=`${th}security-drawer-widget`;return(0,L.jsx)(vL,{title:(0,L.jsxs)("span",{className:`${s}__title`,children:[i(o?"drawer.security.widget.securityRisk.titleMass":"drawer.security.widget.securityRisk.title"),(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{icon:"question-mark-circle",ghost:!0,className:`${s}__help-button`,"data-test-id":"security-risk-widget-tooltip","aria-label":i("drawer.security.widget.securityRisk.tooltipButtonLabel"),onClick:()=>{r(o?"SECURITY_DRAWER-MLT_WIDGET-SECURITY_RISK_INFO-CLICKED":"SECURITY_DRAWER-SGL_WIDGET-SECURITY_RISK_INFO-CLICKED")}}),placement:"bottom",children:i("drawer.security.widget.securityRisk.tooltip")})]}),titleIcon:zS(l,"24"),itemCssClasses:{[`${u}--danger`]:"danger"===c,[`${u}--warning`]:"warning"===c,[`${u}--success`]:"success"===c},footer:l>0?(0,L.jsxs)("span",{"data-test-id":"security-risk-widget-footer-reduce-risk",children:[(0,L.jsx)(pp,{content:"drawer.security.widget.securityRisk.footer.reduceRisk"}),(0,L.jsx)(xe,{name:"arrow-right",size:"12",className:`${s}__footer-arrow`})]}):(0,L.jsx)("span",{"data-test-id":"security-risk-widget-footer-protected",children:(0,L.jsx)(pp,{content:"drawer.security.widget.securityRisk.footer.protected"})}),"data-test-id":"security-risk-widget",children:(0,L.jsx)("div",{className:`${s}__value-container`,children:(0,L.jsx)(pp,{content:"drawer.security.widget.securityRisk.maxValue",params:{value:(0,L.jsx)("span",{className:`${s}__value ${s}__value--${c}`,"data-test-id":"security-risk-widget-value",children:(d=l,d.toFixed(1))})}})})});var d},ZL=e=>{if(0===e.length)return"unknown";const t=e.map((e=>e.securityStatus));return t.some((e=>"insecure"===e))?"insecure":t.some((e=>"secureRecommended"===e))?"secureRecommended":t.some((e=>"unknown"===e))?"unknown":"secureFull"},eM=Fc(((e,t)=>{const n=e.securityMeasures.securityMeasuresInstallationStatuses.filter((e=>t.installationsIds.includes(e.id))),s=n.filter((e=>e.checkSecurityTaskId)).map((e=>e.checkSecurityTaskId)),a=n.filter((e=>e.resolveSecurityTaskId)).map((e=>e.resolveSecurityTaskId)),i=n.filter((e=>e.revertSecurityTaskId)).map((e=>e.revertSecurityTaskId)),r=Array.from(new Set(n.flatMap((e=>e.securityMeasures.filter((e=>!e.status&&e.available)).map((e=>e.id))))));return{relevantStatuses:n,securityStatus:ZL(n),unresolvedMeasuresCount:n.reduce(((e,t)=>e+t.securityMeasures.filter((e=>e.available&&!e.status)).length),0),securedInstallationsCount:n.filter((e=>e.securityMeasures.length>0&&!e.securityMeasures.some((e=>e.available&&!e.status)))).length,availableMeasureIds:r,isCheckingSecurity:n.some((t=>!!t.checkSecurityTaskId||e.securityMeasures.pendingCheckIds.includes(t.id))),isSecuringOrReverting:n.some((e=>!!e.resolveSecurityTaskId||!!e.revertSecurityTaskId)),checkSecurityTaskIds:s,resolveSecurityTaskIds:a,revertSecurityTaskIds:i,tasks:e.backgroundTasks.tasks}}),(e=>({checkSecurity:(0,Cb.zH)(WP,e),resolveSecurityCheckers:(0,Cb.zH)($P,e),getSecurityMeasuresPerInstallations:(0,Cb.zH)(HP,e),reloadSecurityMeasuresPerInstallations:(0,Cb.zH)(VP,e)})))((({installationsIds:e,onNavigateToSecurityMeasures:t,isMassMode:n=e.length>1,relevantStatuses:s,securityStatus:a,unresolvedMeasuresCount:i,securedInstallationsCount:r,availableMeasureIds:o,isCheckingSecurity:l,isSecuringOrReverting:c,checkSecurityTaskIds:u,resolveSecurityTaskIds:d,revertSecurityTaskIds:p,tasks:h,checkSecurity:m,resolveSecurityCheckers:g,getSecurityMeasuresPerInstallations:f,reloadSecurityMeasuresPerInstallations:b,baseClassName:v=`${th}security-measures-widget`})=>{const y=cp(),S=J_(),[w,x]=(0,R.useState)(!0),[A,_]=(0,R.useState)(!1),k=(0,R.useRef)(!1),j=(0,R.useRef)(!1),C=(0,R.useRef)(h);(0,R.useEffect)((()=>{k.current||0===e.length||(k.current=!0,f(e).catch((()=>{})).finally((()=>x(!1))))}),[e,f]),(0,R.useEffect)((()=>{w||l||j.current||0===e.length||"unknown"===a&&(j.current=!0,m(e).catch((()=>{j.current=!1})))}),[w,a,l,e,m]),(0,R.useEffect)((()=>{const e=[...u,...d,...p];if(0===e.length)return void(C.current=h);const t=[];e.forEach((e=>{const n=nT(e,h),a=nT(e,C.current);!n||!ZI(n)||a&&ZI(a)||s.filter((t=>t.checkSecurityTaskId===e||t.resolveSecurityTaskId===e||t.revertSecurityTaskId===e)).forEach((e=>{t.includes(e.id)||t.push(e.id)}))})),C.current=h,t.length>0&&b(t).catch((()=>{}))}),[h,u,d,p,s,b]);const I=n?"MLT":"SGL",T=(0,R.useCallback)((()=>{l||c||(S(`SECURITY_DRAWER-${I}-SECURITY_MEASURES_WIDGET_RECHECK_BTN-CLICKED`),m(e).catch((()=>{})))}),[S,I,m,e,l,c]),D=(0,R.useCallback)((()=>{A||c||(_(!0),S(`SECURITY_DRAWER-${I}-SECURITY_MEASURES_WIDGET_APPLY_BTN-CLICKED`),g(e,o).catch((()=>{})).finally((()=>_(!1))))}),[S,I,g,e,o,A,c]);if(w)return(0,L.jsx)(bL,{contentLines:2});const P=l||c,O=o.length>0,M=()=>(0,L.jsxs)("div",{className:`${v}__footer-buttons`,children:[O&&(0,L.jsx)(ut,{intent:"primary",state:A||c?"loading":void 0,disabled:P||A,onClick:D,"data-test-id":"security-measures-apply",children:(0,L.jsx)(pp,{content:"drawer.security.widget.securityMeasures.applyButton"})}),(0,L.jsx)(Xe,{title:y("list-ui.instances.forms.security.hintButtonCheckSecurity"),children:(0,L.jsx)(ut,{icon:"refresh",state:l?"loading":void 0,disabled:P,onClick:T,"data-test-id":"security-measures-recheck","aria-label":y("list-ui.instances.forms.security.hintButtonCheckSecurity")})}),(0,L.jsx)(Xe,{title:y("drawer.security.widget.securityMeasures.settingsButtonAriaLabel"),children:(0,L.jsx)(ut,{icon:"gear",onClick:()=>{S(`SECURITY_DRAWER-${I}-SECURITY_MEASURES_WIDGET_SETTINGS_BTN-CLICKED`),t()},"data-test-id":"security-measures-settings","aria-label":y("drawer.security.widget.securityMeasures.settingsButtonAriaLabel")})})]});return(0,L.jsx)(vL,{title:y("drawer.security.widget.securityMeasures.title"),titleIcon:(0,L.jsx)(xe,{name:"check-list","aria-hidden":"true"}),itemCssClasses:v,footer:(()=>{if(n){const t=e.length>0?r/e.length*100:100;return(0,L.jsx)(CL,{progressDescription:(0,L.jsx)(pp,{content:"drawer.security.widget.securityMeasures.mass.secured",params:{current:r,total:e.length}}),progress:l||A||c?-1:t,button:M()})}return M()})(),"data-test-id":"security-measures-widget",children:(()=>{switch(a){case"secureFull":return(0,L.jsx)(_a,{className:`${v}__status-text`,children:(0,L.jsx)(pp,{content:"drawer.security.widget.securityMeasures.noMeasuresToApply"})});case"secureRecommended":case"insecure":return(0,L.jsx)(_a,{className:`${v}__status-text`,children:(0,L.jsx)(pp,{content:"drawer.security.widget.securityMeasures.measuresToApply",params:{count:i}})});default:return n?null:(0,L.jsx)(_a,{className:`${v}__status-text`,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.lastSecurityCheckDateIsUnknown"})})}})()})}));var tM=r(36246),nM=r.n(tM);const sM=e=>{var t;const{installationsVulnerabilityStatuses:n,virtualPatchesUpdatingStatuses:s,installationsWithoutRestrictionsForVirtualPatches:a}=e,i=null===(t=e.installation)||void 0===t?void 0:t.id;return(0,R.useMemo)((()=>{const e=[],t=[];return n.forEach((n=>{if(void 0!==i&&i!==n.id)return;const s={installationId:n.id,instanceDisplayTitle:n.displayTitle};e.push(s.installationId),t.push(...n.core.vulnerabilities.map((e=>Object.assign({id:e.id,title:e.title,description:e.description,cvssScore:e.cvssScore,riskRank:e.riskRank,providers:e.providers,disclosedAt:e.disclosedAt,exploited:e.exploited,directUrl:e.directUrl,mitigations:e.mitigations.map((e=>Object.assign({},e))),cve:e.cve,fixedIn:e.fixedIn,assetType:HS,assetId:n.id,assetSlug:null,assetTitle:null,assetVersion:n.core.version,assetHasUpdates:!!n.core.availableMinorVersion,assetUpdateVersion:n.core.availableMinorVersion,assetIsActive:!0},s)))),n.plugins.forEach((e=>{e.vulnerabilities.length>0&&t.push(...e.vulnerabilities.map((t=>Object.assign({id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations.map((e=>Object.assign({},e))),cve:t.cve,fixedIn:t.fixedIn,assetType:VS,assetId:e.slug,assetSlug:e.slug,assetTitle:e.title,assetVersion:e.version,assetHasUpdates:!!e.availableVersion,assetUpdateVersion:e.availableVersion,assetIsActive:e.status},s))))})),n.themes.forEach((e=>{e.vulnerabilities.length>0&&t.push(...e.vulnerabilities.map((t=>Object.assign({id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations.map((e=>Object.assign({},e))),cve:t.cve,fixedIn:t.fixedIn,assetType:WS,assetId:e.slug,assetSlug:e.slug,assetTitle:e.title,assetVersion:e.version,assetHasUpdates:!!e.availableVersion,assetUpdateVersion:e.availableVersion,assetIsActive:e.status},s))))}))})),Object.values(t.reduce(((e,t)=>{if(Object.keys(e).includes(t.id)){const n=e[t.id];if(!n.installations.find((e=>e.id===t.installationId))){const e=t.mitigations.filter((e=>!0===e.applied)),s=e.filter((e=>e.type===Ef));n.installations.push({id:t.installationId,displayTitle:t.instanceDisplayTitle,assetIsActive:t.assetIsActive,virtualPatchApplied:e.some((e=>e.type===Rf)),securityMeasuresApplied:s.map((e=>e.id)),virtualPatchAvailable:t.mitigations.some((e=>e.type===Rf))&&(null==a?void 0:a.includes(t.installationId))})}n.hasActiveVirtualPatchesTasks=s.some((e=>e.installationIds.filter((e=>n.installations.map((e=>e.id)).includes(e))))),n.assets.find((e=>e.id===t.assetId))||n.assets.push({id:t.assetId,slug:t.assetSlug,title:t.assetTitle,version:t.assetVersion,hasUpdates:t.assetHasUpdates,isActive:t.assetIsActive,type:t.assetType,installationId:t.installationId}),t.assetHasUpdates&&n.assetUpdateVersion&&t.assetUpdateVersion&&1===nM()(t.assetUpdateVersion,n.assetUpdateVersion)&&(n.assetUpdateVersion=t.assetUpdateVersion),t.mitigations.forEach((e=>{if(!e.applied){const t=n.mitigations.find((t=>t.id===e.id&&e.type===t.type));t&&(t.applied=!1)}}))}else{const n=t.mitigations.filter((e=>!0===e.applied)),i=n.filter((e=>e.type===Ef));e[t.id]={id:t.id,title:t.title,description:t.description,cvssScore:t.cvssScore,riskRank:t.riskRank,providers:t.providers,disclosedAt:t.disclosedAt,exploited:t.exploited,directUrl:t.directUrl,mitigations:t.mitigations,assetType:t.assetType,assetSlug:t.assetSlug,assetTitle:t.assetTitle,assetUpdateVersion:t.assetUpdateVersion?t.assetUpdateVersion:null,assetCurrentVersion:t.assetVersion,assets:[{id:t.assetId,slug:t.assetSlug,title:t.assetTitle,version:t.assetVersion,hasUpdates:t.assetHasUpdates,isActive:t.assetIsActive,type:t.assetType,installationId:t.installationId}],installations:[{id:t.installationId,displayTitle:t.instanceDisplayTitle,assetIsActive:t.assetIsActive,virtualPatchApplied:n.some((e=>e.type===Rf)),securityMeasuresApplied:i.map((e=>e.id)),virtualPatchAvailable:t.mitigations.some((e=>e.type===Rf))&&(null==a?void 0:a.includes(t.installationId))}],hasActiveVirtualPatchesTasks:s.some((e=>e.installationIds.filter((e=>t.installationId===e)))),cve:t.cve,fixedIn:t.fixedIn}}return e}),{}))}),[n,s,a,i])},aM=e=>{const t=(0,R.useMemo)((()=>e.map((e=>e.id))),[e]),n=(0,R.useRef)(t),s=new Set(n.current);return(t.length!==s.size||t.some((e=>!s.has(e))))&&(n.current=t),n.current},iM=(e,{installation:t,installationsIds:n})=>{var s;return{installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses.filter((e=>t?e.id===t.id:!(null==n?void 0:n.length)||n.includes(e.id))),installationsWithoutRestrictionsForVirtualPatches:(null===(s=e.instances.installations)||void 0===s?void 0:s.filter((e=>t?e.id===t.id:!(null==n?void 0:n.length)||n.includes(e.id))).filter((({features:{virtualPatches:{restrictions:t}}})=>!dL(t,e.app.options.isAdmin&&!e.app.options.isReseller,e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans))).map((e=>e.id)))||[],virtualPatchesUpdatingStatuses:e.vulnerabilities.virtualPatchesUpdatingStatuses}},rM=e=>({reloadInstallationsVulnerabilityStatuses:(0,Cb.zH)(ew,e),getInstallationsSecurityRiskStatuses:(0,Cb.zH)(nw,e)}),oM=e=>{const t=e.displayName||e.name||"Component",n=t=>{const{installationsVulnerabilityStatuses:n,virtualPatchesUpdatingStatuses:s,reloadInstallationsVulnerabilityStatuses:a,installationsWithoutRestrictionsForVirtualPatches:i,getInstallationsSecurityRiskStatuses:r}=t,o=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(t,["installationsVulnerabilityStatuses","virtualPatchesUpdatingStatuses","reloadInstallationsVulnerabilityStatuses","installationsWithoutRestrictionsForVirtualPatches","getInstallationsSecurityRiskStatuses"]),[l,c]=(0,R.useState)(!0),[u,d]=(0,R.useState)(!1),p={vulnerabilitiesList:{frankyVulnerabilities:sM(t),relatedInstallationsIds:aM(n),isLoading:l||u,onLoad:e=>{(e=>{c(!0),a(e).catch((()=>{})).finally((()=>{c(!1)}))})(e),(e=>{d(!0),r(e).catch((()=>{})).finally((()=>{d(!1)}))})(e)},installationsWithoutRestrictionsForVirtualPatches:i}};return(0,L.jsx)(e,Object.assign({},p,o))};return n.displayName=`withVulnerabilitiesList(${t})`,Fc(iM,rM)(n)},lM=({baseClassName:e,value:t,isVirtualPatchesApplied:n})=>{let s;return s=t>=8?`${e}__label-danger-light`:t>=6?`${e}__label-warning`:`${e}__label-inactive`,(0,L.jsx)(He,{intent:"info",className:`${e}__label ${s}`,icon:n?"shield":void 0,"data-test-id":n?"instances-security-vulnerabilities-risk-with-virtual-patch":void 0,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.securityRisk",params:{securityRisk:t}})})},cM=e=>{const{target:t,onUpdate:n,isOpen:s,onClose:a,children:i,updateButtonContent:r}=e;return(0,L.jsxs)(Ks,{target:t,visible:s,onClose:a,placement:"top",children:[(0,L.jsx)(_a,{children:i}),(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{onClick:()=>{n(),null==a||a()},"data-test-id":"instances-security-vulnerabilities-update-confirmation-update-button",children:r}),(0,L.jsx)(ut,{onClick:a,ghost:!0,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.cancelButton"})})]})]})},uM=e=>{const{deactivateButtonContent:t,target:n,onDeactivate:s,isOpen:a,onClose:i,children:r}=e;return(0,L.jsxs)(Ks,{target:n,visible:a,onClose:i,placement:"top",children:[(0,L.jsx)(_a,{children:r}),(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{intent:"danger",onClick:()=>{s(),null==i||i()},"data-test-id":"instances-security-vulnerabilities-deactivate-confirmation-deactivate-button",children:t}),(0,L.jsx)(ut,{onClick:i,ghost:!0,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.deactivateConfirmation.cancelButton"})})]})]})},dM=Fc((e=>({showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller})),(e=>({displayErrorMessageFromMeta:(0,Cb.zH)(Zf,e)})))((({installation:e,baseClassName:t,hasActiveVirtualPatchesTasks:n,onHandleApplyVirtualPatches:s,onOpenUpsellDialog:a,displayErrorMessageFromMeta:i,showVirtualPatchesUpsellWhenRestrictedViaPlans:r,isAdmin:o,component:l})=>{const[c,u]=(0,R.useState)(!1),[d,p]=R.useState(!1),h=uL(e,r,o),m=J_();if(!PL()("manage-vulnerability-protection"))return(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:(0,L.jsx)(_e,{icon:h?"shield":"lock-closed",className:`${t}__action-container`,style:{opacity:.5},"data-test-id":Av,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.virtualPatches.availableForPatches"})})});const g=l.toUpperCase();return(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{ghost:!0,icon:h?void 0:"lock-closed",onClick:h?()=>{u(!0),m(`SECURITY_DRAWER-SGL_${g}-VIRTUAL_PATCHING-CLICKED`)}:()=>a(Qv,`SECURITY_DRAWER-SGL_${g}`),className:`${t}__action-container`,progress:d||n,"data-test-id":Av,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.virtualPatches.availableForPatches"})}),visible:c,onClose:()=>u(!1),children:(0,L.jsx)(UL,{onSubmit:()=>{u(!1),p(!0),s([e.id]).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&i(e)})).finally((()=>p(!1)))},isButtonDisabled:d||n,isButtonLoading:n,dataTestId:_v})})})),pM=Fc(((e,t)=>{const{vulnerableComponent:n}=t,s=n.vulnerabilities.map((e=>e.id)),a=e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.filter((e=>s.includes(e.vulnerabilityId))),i=new Map;return n.type===HS&&e.vulnerabilities.installationsVulnerabilityStatuses.filter((e=>n.installationsIds.includes(e.id))).forEach((e=>{const t=new Set;e.core.vulnerabilities.filter((e=>s.includes(e.id))).forEach((e=>{e.mitigations.filter((e=>e.type===Ef&&e.applied)).forEach((e=>t.add(e.id)))})),t.size>0&&i.set(e.id,t)})),{securityMeasures:e.securityMeasures.securityMeasures,vulnerabilityMitigationsUpdatingStatuses:a,appliedSecurityMeasuresByInstallation:i}}),(e=>({mitigateVulnerabilities:(0,Cb.zH)(sw,e)})))((({target:e,vulnerableComponent:t,placement:n="top",popoverComment:s,baseClassName:a=`${th}vuln-mitigations-popover`,securityMeasures:i,mitigateVulnerabilities:r,vulnerabilityMitigationsUpdatingStatuses:o,appliedSecurityMeasuresByInstallation:l,installation:c})=>{const u=J_(),d=cp(),[p,h]=(0,R.useState)(new Set),m=(0,R.useMemo)((()=>{const e=new Set;return o.forEach((t=>{t.mitigations.forEach((t=>{t.type===Ef&&e.add(t.id)}))})),e}),[o]),[g,f]=(0,R.useMemo)((()=>{const e=t.installationsIds,n=new Set(e),s=new Map;return t.vulnerabilities.forEach((t=>{t.mitigations.filter((e=>e.type===Ef)).forEach((n=>{var a,i;const r=null!==(a=s.get(n.id))&&void 0!==a?a:{vulnerabilities:new Map,installationsIdsAffected:new Set,installationsIdsApplied:new Set},o=null!==(i=r.vulnerabilities.get(t.id))&&void 0!==i?i:{vulnerabilityId:t.id,installationsIds:[],mitigations:[]};o.installationsIds=[...new Set([...o.installationsIds,...e]).values()],r.vulnerabilities.set(t.id,o),r.installationsIdsAffected=new Set([...r.installationsIdsAffected.values(),...e]),e.forEach((e=>{const t=l.get(e);(null==t?void 0:t.has(n.id))&&r.installationsIdsApplied.add(e)})),s.set(n.id,r)}))})),[n,s]}),[t,l]),b=e=>i.find((t=>t.id===e)),v=(e,t)=>{const n=f.get(e);if(!n)throw new Error(`Unable to find security measure by id ${e}`);const s=[];n.vulnerabilities.forEach((n=>{const a=structuredClone(n);a.mitigations.push({type:Ef,id:e,applied:t}),s.push(a)}));const a=new Set(p);a.add(e),h(a),r(s).catch((()=>{})).finally((()=>{const t=new Set(p);t.delete(e),h(t)}))},y=e=>p.has(e)||m.has(e),S=()=>p.size>0||m.size>0;return(0,L.jsxs)(Ks,{target:e,placement:n,className:F()(a),width:"xs",children:[s&&(0,L.jsx)(Ni,{children:s}),(()=>{const e=[];return f.forEach(((t,n)=>{const s=g.size>1?((e,t)=>{const n=b(e),s=100*t.installationsIdsApplied.size/t.installationsIdsAffected.size,i=!(null==n?void 0:n.rollbackAvailable)||0===s;return n&&(0,L.jsxs)(vi,{className:`${a}__section-item`,children:[(0,L.jsxs)("div",{className:`${a}__measure-title`,children:[(0,L.jsx)(da,{bold:!0,children:n.title}),(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"info-circle",className:"wpt-mgl-5"}),placement:"top-right",children:n.description}),n.rollbackAvailable&&(0,L.jsxs)(da,{className:"wpt-mgl-5",children:["(",(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]}),(0,L.jsx)(CL,{progressDescription:y(e)?(0,L.jsx)(pp,{content:"list-ui.instances.forms.securityMeasuresPopover.progress.undefined"}):(0,L.jsx)(pp,{content:"list-ui.instances.forms.securityMeasuresPopover.progress.sitesCounter",params:{total:t.installationsIdsAffected.size,current:t.installationsIdsApplied.size}}),progress:y(e)?-1:s,button:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yL,{onClick:()=>{u("SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_MEASURE_ENABLE_BTN-CLICKED"),v(e,!0)},disabled:100===s||S(),state:y(e)?"loading":void 0,intent:"primary",children:d("list-ui.instances.forms.securityMeasuresPopover.button.enableAll")})," ",(0,L.jsx)(yL,{onClick:()=>{u("SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_MEASURE_DISABLE_BTN-CLICKED"),v(e,!1)},disabled:i||S(),state:y(e)?"loading":void 0,children:d("list-ui.instances.forms.securityMeasuresPopover.button.disableAll")})]})})]},n.id)})(n,t):((e,t)=>{const n=b(e);return n&&(0,L.jsxs)(vi,{className:`${a}__section-item`,title:((e,t)=>{const n=!e.rollbackAvailable,s=!!t&&n;let a;return a=void 0===c?t?"SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_MEASURE_SWITCH-DISABLED":"SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_MEASURE_SWITCH-ENABLED":t?"SECURITY_DRAWER-SGL_WORDPRESS-SECURITY_MEASURE_SWITCH-DISABLED":"SECURITY_DRAWER-SGL_WORDPRESS-SECURITY_MEASURE_SWITCH-ENABLED",(0,L.jsx)(Dl,{loading:y(e.id),checked:t,disabled:s||S(),onChange:t=>{u(a),v(e.id,t)}})})(n,[...t.installationsIdsAffected.values()].every((e=>t.installationsIdsApplied.has(e)))),children:[n.title,(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"info-circle",className:"wpt-mgl-5"}),placement:"top-right",children:n.description}),n.rollbackAvailable&&(0,L.jsxs)(da,{className:"wpt-mgl-5",children:["(",(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.hasRollback"}),")"]})]},n.id)})(n,t);s&&e.push(s)})),0===e.length?(0,L.jsx)("div",{className:"wpt-mgt-10",children:(0,L.jsx)(Qn,{})}):(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.securityTabTitle"}),children:e})})()]})})),hM=Fc(((e,t)=>{var n;const s=e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.some((e=>t.vulnerableComponent.vulnerabilities.some((n=>n.id===e.vulnerabilityId&&n.mitigations.some((e=>e.type===Uf))&&e.mitigations.some((e=>e.type===Uf))&&t.vulnerableComponent.installationsIds.some((t=>e.installationIds.includes(t))))))),a=e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses.some((e=>t.vulnerableComponent.vulnerabilities.some((n=>n.id===e.vulnerabilityId&&n.mitigations.some((e=>e.type===Nf))&&e.mitigations.some((e=>e.type===Nf))&&t.vulnerableComponent.installationsIds.some((t=>e.installationIds.includes(t))))))),i=e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.some((e=>t.vulnerableComponent.installationsIds.includes(e))))),r=e.app.options.isAdmin&&!e.app.options.isReseller,o=(null===(n=e.instances.installations)||void 0===n?void 0:n.filter((e=>t.installation?e.id===t.installation.id:t.vulnerableComponent.installationsIds.includes(e.id))).filter((({features:{virtualPatches:{restrictions:t}}})=>!dL(t,r,e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans))).map((e=>e.id)))||[];return{virtualPatchesUpdatingStatuses:e.vulnerabilities.virtualPatchesUpdatingStatuses,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Kp],hasActiveVirtualPatchesTasks:i,isUpdating:s,isDeactivating:a,installationsWithoutRestrictionsForVirtualPatches:o,isAdmin:r}}),(e=>({vulnerabilitiesActions:(0,Cb.zH)({updateVirtualPatchesProtectionStatus:aw},e)})))((({vulnerableComponent:e,baseClassName:t,isProtectionPaid:n,installation:s,virtualPatchesUpdatingStatuses:a,vulnerabilitiesActions:i,onOpenVirtualPatchingUpsellDialog:r,showVirtualPatchesUpsellWhenRestrictedViaPlans:o,isVulnerabilityFeatureUnpaid:l,onMitigate:c,isUpdating:u,isDeactivating:d,hasActiveVirtualPatchesTasks:p,installationsWithoutRestrictionsForVirtualPatches:h,isAdmin:m})=>{const g=J_(),[f,b]=(0,R.useState)(!1),[v,y]=(0,R.useState)(null),[S,w]=(0,R.useState)(!1),[x,A]=(0,R.useState)(null),_=t=>{u||d||c(e,t)},k=e=>{if(void 0!==s)return null;if(!e.vulnerabilities.find((e=>e.mitigations.some((e=>e.type===Rf)))))return null;const i=[];e.vulnerabilities.forEach((e=>{e.mitigations.some((e=>e.type===Rf))&&i.push(e)}));const{availableInstallationIds:r,unprotectedInstallationIds:o}=O(i);if(0===o.length)return null;const l=a.some((e=>e.installationIds.some((e=>r.includes(e)))));return(0,L.jsx)(ML,{renderManagingComponent:(e,n)=>e?(0,L.jsx)(_e,{onClick:n,ghost:!0,className:`${t}__how-to-fix-action`,intent:"primary",icon:"lock-closed",progress:l,"data-test-id":wv,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.button"})}):j(o,!1,((e,n,s)=>(0,L.jsx)(_e,{onClick:s,ghost:!0,className:`${t}__how-to-fix-action`,intent:"primary",progress:l||n,"data-test-id":wv,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.virtualPatches.instancesWidget.button"})}))),isPaid:!!n,uatAction:Jv})},j=(e,t,n)=>(0,L.jsx)(FL,{onHandleApplyVirtualPatches:t=>C(e,t),isDisabled:t,renderManagingComponent:n,Consent:UL,eventName:s?"SECURITY_DRAWER-SGL-VIRTUAL_PATCHING-CLICKED":"SECURITY_DRAWER-MLT-VIRTUAL_PATCHING-CLICKED"}),C=(e,t)=>i.updateVirtualPatchesProtectionStatus({installationsIds:e,status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0},t),I=e=>{if(!s||!r)return null;const n=e.vulnerabilities.find((e=>e.mitigations.find((e=>e.type===Rf))));if(!n)return null;const a=n.mitigations.find((e=>e.type===Rf)),{features:{virtualPatches:{restrictions:i}}}=s;return dL(i,m,o)||!a||a.applied?null:(0,L.jsx)(dM,{installation:s,baseClassName:t,hasActiveVirtualPatchesTasks:p,onHandleApplyVirtualPatches:C,onOpenUpsellDialog:r,component:e.type},`key-how-to-fix-virtual-patches-status-${n.id}`)},T=e=>{b(!0),y(e)},D=()=>{b(!1),y(null)},P=()=>{w(!1),A(null)},O=t=>{const n=new Set,s=new Set;t.forEach((t=>{const a=t.mitigations.some((e=>e.type===Rf)),i=t.mitigations.some((e=>e.type===Rf&&e.applied));e.installationsIds.forEach((e=>{a&&h.includes(e)&&n.add(e),i&&s.add(e)}))}));const a=Array.from(n),i=Array.from(s),r=a.filter((e=>!i.includes(e)));return{availableInstallationIds:a,appliedInstallationIds:i,unprotectedInstallationIds:r}},M=[];return e.type===HS?M.push(...(e=>{const n=[],a=s?"SECURITY_DRAWER-SGL_WORDPRESS-SECURITY_UPDATES-CLICKED":"SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_UPDATES-CLICKED",i=s?"SECURITY_DRAWER-SGL_WORDPRESS-SECURITY_UPDATES_CONFIRM-CLICKED":"SECURITY_DRAWER-MLT_WORDPRESS-SECURITY_UPDATES_CONFIRM-CLICKED",r=e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Uf))));if(n.push(I(e)),n.push(k(e)),r){const r=(0,L.jsx)(_e,{icon:l?"lock-closed":void 0,onClick:l?void 0:()=>{g(a),T(e.key)},className:`${t}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-wordpress-core-update-all-button",progress:u,children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.coreUpdateButton",params:{updateVersion:e.updateVersion}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})});return d||u?n.push(r):n.push((0,L.jsx)(cM,{target:r,onUpdate:()=>{g(i),_(Uf)},isOpen:f&&v===e.key,onClose:D,updateButtonContent:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.wordPressCoreOnSite",params:{siteSlug:s.displayTitle,updateVersion:e.updateVersion}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.wordPressCoreOnAllSites",params:{updateVersion:e.updateVersion}})},`key-how-to-fix-core-${e.key}`)),n}if(e.vulnerabilities.filter((e=>e.mitigations.some((e=>e.type===Ef&&!e.applied)))).length>0){const a=s?"SECURITY_DRAWER-SGL_WORDPRESS-APPLY_SECURITY_MEASURES-CLICKED":"SECURITY_DRAWER-MLT_WORDPRESS-APPLY_SECURITY_MEASURES-CLICKED";n.push((0,L.jsx)(pM,{target:(0,L.jsx)(_e,{onClick:()=>g(a),ghost:!0,className:`${t}__how-to-fix-action`,children:(0,L.jsx)(pp,{content:"instanceVulnerabilities.mitigations.mitigate"})}),popoverComment:(0,L.jsx)(pp,{content:"instanceVulnerabilities.mitigations.mitigationAvailableText"}),vulnerableComponent:e,installation:s}))}return n})(e)):e.type===WS?M.push(...(e=>{const n=e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Uf)))),a=[],i=s?"SECURITY_DRAWER-SGL_THEME-SECURITY_UPDATES-CLICKED":"SECURITY_DRAWER-MLT_THEME-SECURITY_UPDATES-CLICKED",r=s?"SECURITY_DRAWER-SGL_THEME-SECURITY_UPDATES_CONFIRM-CLICKED":"SECURITY_DRAWER-MLT_THEME-SECURITY_UPDATES_CONFIRM-CLICKED";if(a.push(I(e)),a.push(k(e)),n){const n=(0,L.jsx)(_e,{icon:l?"lock-closed":void 0,onClick:l?void 0:()=>{g(i),T(e.key)},className:`${t}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-theme-update-all-button",progress:u,children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.themeUpdateButton",params:{updateVersion:e.updateVersion}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})});d||u?a.push(n):a.push((0,L.jsx)(cM,{target:n,onUpdate:()=>{g(r),_(Uf)},isOpen:f&&v===e.key,onClose:D,updateButtonContent:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.themeOnSite",params:{updateVersion:e.updateVersion,themeSlug:e.assetSlug,siteSlug:s.displayTitle}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.themeOnAllSites",params:{updateVersion:e.updateVersion,themeSlug:e.assetSlug}})},`key-how-to-fix-mitigate-theme-${e.key}`))}return a})(e)):e.type===VS&&M.push(...(e=>{const n=e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Uf)))),a=e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Nf&&!e.applied)))),i=[],r=s?"SECURITY_DRAWER-SGL_PLUGIN-SECURITY_UPDATES-CLICKED":"SECURITY_DRAWER-MLT_PLUGIN-SECURITY_UPDATES-CLICKED",o=s?"SECURITY_DRAWER-SGL_PLUGIN-SECURITY_UPDATES_CONFIRM-CLICKED":"SECURITY_DRAWER-MLT_PLUGIN-SECURITY_UPDATES_CONFIRM-CLICKED";if(i.push(I(e)),i.push(k(e)),n){const n=(0,L.jsx)(_e,{icon:l?"lock-closed":void 0,onClick:l?void 0:()=>{g(r),T(e.key)},className:`${t}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-plugin-update-all-button",progress:u,children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.pluginUpdateButton",params:{updateVersion:e.updateVersion}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.updateButtonAll"})});d||u?i.push(n):i.push((0,L.jsx)(cM,{target:n,onUpdate:()=>{g(o),_(Uf)},isOpen:f&&v===e.key,onClose:D,updateButtonContent:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateButton"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.updateAllButton"}),children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.pluginOnSite",params:{updateVersion:e.updateVersion,pluginSlug:e.assetSlug,siteSlug:s.displayTitle}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.updateConfirmation.pluginOnAllSites",params:{updateVersion:e.updateVersion,pluginSlug:e.assetSlug}})}))}const c=s?"SECURITY_DRAWER-SGL_PLUGIN-SECURITY_DEACTIVATE-CLICKED":"SECURITY_DRAWER-MLT_PLUGIN-SECURITY_DEACTIVATE-CLICKED",p=s?"SECURITY_DRAWER-SGL_PLUGIN-SECURITY_DEACTIVATE_CONFIRM-CLICKED":"SECURITY_DRAWER-MLT_PLUGIN-SECURITY_DEACTIVATE_CONFIRM-CLICKED";if(a){const n=(0,L.jsx)(_e,{ghost:!0,onClick:()=>{var t;g(c),t=e.key,w(!0),A(t)},className:`${t}__how-to-fix-action`,"data-test-vulnerability-how-to-fix":"instances-security-vulnerabilities-plugin-deactivate-all-button",progress:d,children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateButton"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.deactivateButtonAll"})});d||u?i.push(n):i.push((0,L.jsx)(uM,{target:n,deactivateButtonContent:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.deactivateConfirmation.deactivateButton"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.deactivateConfirmation.deactivateAllButton"}),onDeactivate:()=>{g(p),_(Nf)},isOpen:S&&x===e.key,onClose:P,children:s?(0,L.jsx)(pp,{content:"instancesVulnerabilities.deactivateConfirmation.pluginOnSite",params:{siteSlug:s.displayTitle,pluginSlug:e.assetSlug}}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.deactivateConfirmation.pluginOnAllSites",params:{pluginSlug:e.assetSlug}})}))}return i})(e)),M.length>0?(0,L.jsx)("div",{className:`${t}__how-to-fix-elements`,children:M}):null})),mM=({baseClassName:e,value:t,isVirtualPatchesApplied:n,isMitigated:s})=>{const a=cp("instancesVulnerabilities.instancesVulnerabilitiesList.riskRankColumn");let i;return i=s?`${e}__label-inactive`:t===Vf?`${e}__label-danger-light`:t===Hf?`${e}__label-warning`:`${e}__label-inactive`,(0,L.jsx)(He,{intent:"info",className:`${e}__label ${i}`,icon:n?"shield":void 0,children:a(t)})};var gM;!function(e){e.Comma="comma-separator",e.Space="space-separator",e.Dot="dot-separator"}(gM||(gM={}));const fM=({separator:e,children:t,baseClassName:n=`${th}separator`})=>(0,L.jsx)("span",{className:`${n}__${e}`,children:t}),bM=Fc((e=>({publicUrl:e.app.urls.publicUrl})))((({publicUrl:e})=>(0,L.jsx)("img",{src:`${e}images/wordfence.svg`,alt:"Wordfence"}))),vM=({baseClassName:e,vulnerableComponent:t,isLoading:n})=>{const s=J_();return(0,L.jsx)(uo,{loading:n,columns:[{key:"riskRank",width:"5%",render:t=>(0,L.jsx)(mM,{baseClassName:e,value:t.riskRank,isVirtualPatchesApplied:t.mitigations.some((e=>e.type===Rf&&e.applied)),isMitigated:t.mitigations.some((e=>e.applied))}),sort:(e,t)=>((e,t)=>{const n=e.mitigations.some((e=>e.applied)),s=t.mitigations.some((e=>e.applied)),a=(e,t)=>{const n={[Vf]:8,[Hf]:7,[Yf]:6,[Bf]:5};return t?{[Vf]:4,[Hf]:3,[Yf]:2,[Bf]:1}[e]:n[e]},i=a(e.riskRank,n),r=a(t.riskRank,s);return i===r?0:i<r?-1:1})(e,t)},{key:"title",width:"55%",render:t=>{var n,s;const a=t.mitigations.some((e=>e.applied)),i=(null===(n=t.providers[0])||void 0===n?void 0:n.provider)===Ff,r=i?null===(s=t.providers[0])||void 0===s?void 0:s.directUrl:"";return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(da,{bold:!0,children:t.title}),(0,L.jsx)("br",{}),(0,L.jsxs)(da,{children:[(0,L.jsx)(fM,{separator:gM.Dot,children:t.disclosedAt&&xS()(new Date(t.disclosedAt)).format("DD.MM.YYYY")}),t.fixedIn&&(0,L.jsx)(fM,{separator:gM.Dot,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.fixedIn",params:{fixedIn:t.fixedIn}})}),t.cve.map((e=>(0,L.jsx)(fM,{separator:gM.Dot,children:e},e))),i&&(0,L.jsx)(fM,{separator:gM.Dot,children:(0,L.jsxs)(Ks,{target:(0,L.jsx)(da,{className:`${e}__gray_message`,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceCopyrightMessage"})}),placement:"top-right",children:[(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceCopyrightText",params:{currentYear:(new Date).getFullYear()}})," ",(0,L.jsx)(Us,{target:"_blank",href:r,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.wordfenceReadMore"})})]})}),a&&(0,L.jsx)(fM,{separator:gM.Dot,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.labels.mitigated"})})]})]})}},{key:"where",width:"20%",align:"right",render:t=>t.providers.map((t=>(0,L.jsxs)(Us,{href:t.directUrl,target:"_blank",className:`${e}__provider-link`,onClick:()=>{return s(`SECURITY_DRAWER_VULNERABILITIES-${e=t.provider,e.toUpperCase()}-VULNERABILITY_PROVIDER-CLICKED`);var e},children:[t.provider===Ff&&(0,L.jsx)(bM,{}),"patchstack"===t.provider&&(0,L.jsx)(cL,{})]},t.provider)))}],data:t.vulnerabilities,rowKey:"id",rowProps:n=>{var s;const a=t.type===HS?{"data-test-vulnerability-product-type":t.type}:{"data-test-vulnerability-product-type":t.type,"data-test-vulnerability-product-slug":null===(s=t.assetSlug)||void 0===s?void 0:s.toLowerCase()};return a["data-vulnerability-id"]=n.id,a.className=`${e}__vulnerability-row`,a},sortColumn:"riskRank",sortDirection:"DESC",className:`${e}__vulnerabilities-list`})},yM=({baseClassName:e,vulnerableComponent:t,onChangeSiteViewInstallationsIds:n})=>{var s;const a=J_();if(null===(null!==(s={[HS]:{icon:"wordpress",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypeCore"},[VS]:{icon:"puzzle",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypePlugin"},[WS]:{icon:"monitoring",translate:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerabilityTypeTheme"}}[t.type])&&void 0!==s?s:null))return null;const i=t.installationsIds.length>1?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.sites"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.site"});return(0,L.jsx)("div",{className:`${e}__type-items`,children:(0,L.jsxs)("div",{children:[(0,L.jsx)(xe,{name:"site-page"})," ",(0,L.jsxs)(Us,{onClick:()=>(e=>{a("SECURITY_DRAWER-MLT_VULNERABLE_COMPONENT_ROW-SITES_LINK-CLICKED"),n&&n(e.installationsIds)})(t),"data-test-id":"instances-security-vulnerabilities-sites-link",role:"button",children:[t.installationsIds.length," ",i]})]})})},SM=Fc((e=>({installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses,securityMeasures:e.securityMeasures.securityMeasures,tasks:e.backgroundTasks.tasks,installationsSecurityRiskStatuses:e.vulnerabilities.installationsSecurityRiskStatuses,vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilities.vulnerabilityMitigationsUpdatingStatuses})),(e=>({mitigateVulnerabilities:(0,Cb.zH)(sw,e),loadSecurityMeasures:(0,Cb.zH)(NP,e)})))((e=>{const{baseClassName:t=`${th}instances-vulnerabilities-list`,vulnerableComponents:n,installationsVulnerabilityStatuses:s,installationsSecurityRiskStatuses:a,installation:i,onRefreshInstallationsVulnerabilityStatuses:r,onChangeSiteViewInstallationsIds:o,onOpenVirtualPatchingUpsellDialog:l,isProtectionPaid:c,mitigateVulnerabilities:u,loadSecurityMeasures:d,securityMeasures:p,vulnerabilityMitigationsUpdatingStatuses:h,tasks:m}=e,g=J_(),[f,b]=(0,R.useState)([]),[v,y]=(0,R.useState)(null),[S,w]=(0,R.useState)([]),x=(0,R.useRef)(!1);(0,R.useEffect)((()=>{x.current||0===n.length||(w(n.filter((e=>e.vulnerabilities.some((e=>(e.riskRank===Vf||e.riskRank===Hf)&&!e.mitigations.some((e=>e.applied)))))).map((e=>e.key))),x.current=!0)}),[n]);const A=(0,R.useCallback)((()=>{var e;if(0===(null!==(e=null==s?void 0:s.map((e=>e.id)))&&void 0!==e?e:[]).length)return;const t=[];s.forEach((e=>{e.core.vulnerabilities.forEach((e=>t.push({mitigations:[...e.mitigations]}))),e.plugins.forEach((e=>e.vulnerabilities.forEach((e=>t.push({mitigations:[...e.mitigations]}))))),e.themes.forEach((e=>e.vulnerabilities.forEach((e=>t.push({mitigations:[...e.mitigations]})))))})),t.flatMap((e=>e.mitigations)).some((e=>e.type===Ef))&&!p.length&&d().catch((()=>{}))}),[s,p,d]),_=(0,R.useCallback)((()=>{y(null),b([])}),[]),k=(0,R.useCallback)((e=>{if(!v)return;const t=nT(v,e);t&&ZI(t)&&r(f).finally((()=>_()))}),[r,v,f,_]);(0,R.useEffect)((()=>{A()}),[A]),(0,R.useEffect)((()=>{k(m)}),[m,k]);const j=(0,R.useCallback)(((e,t)=>{const n=[];e.vulnerabilities.forEach((s=>{const a=s.mitigations.filter((e=>e.type===t&&!e.applied)).map((e=>({applied:!0,type:e.type,id:e.id})));a.length>0&&n.push({vulnerabilityId:s.id,installationsIds:e.installationsIds,mitigations:a})})),0!==n.length&&u(n).catch((()=>{}))}),[u]),C=(0,R.useCallback)(((e,t)=>e.securityRisk<t.securityRisk?-1:e.securityRisk>t.securityRisk?1:0),[]),I=(0,R.useCallback)((()=>{const e=n.some((e=>e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Rf&&!e.applied)))))),s=n.some((e=>e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Rf&&e.applied))))));let a=35,r=40;const u=!i;if(u||(a+=7),s&&!e){const e=u?14:8;a+=e,r-=e}const d=[];return d.push({key:"securityRisk",width:"17%",render:e=>{const n=e.vulnerabilities.some((e=>e.mitigations.some((e=>e.type===Rf&&e.applied))));return(0,L.jsx)(lM,{baseClassName:t,value:e.securityRisk,isVirtualPatchesApplied:n})},sort:(e,t)=>C(e,t)}),d.push({key:"title",width:`${a}%`,render:e=>e.type===HS?(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerableComponent.title",params:{title:"Wordpress",version:e.version}})}):e.type===VS||e.type===WS?(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.vulnerableComponent.title",params:{title:e.assetTitle,version:e.version}})}):null}),u&&d.push({key:"sitesLink",width:"8%",render:e=>(0,L.jsx)(yM,{baseClassName:t,vulnerableComponent:e,onChangeSiteViewInstallationsIds:o})}),d.push({key:"howToFix",width:`${r}%`,align:"right",render:e=>e.vulnerabilities.length>0?(0,L.jsx)(hM,{vulnerableComponent:e,baseClassName:t,onMitigate:j,installation:i,isProtectionPaid:c,onOpenVirtualPatchingUpsellDialog:l}):null}),d}),[i,o,l,c,n,t,C,j]),T=(0,R.useCallback)((e=>h.some((t=>e.vulnerabilities.some((e=>e.id===t.vulnerabilityId))&&e.installationsIds.some((e=>t.installationIds.includes(e)))))),[h]);return 0===s.length||0===a.length?(0,L.jsx)(Qn,{}):(0,L.jsx)(uo,{columns:I(),data:[...n],rowProps:e=>{var n;return{className:`${t}__vulnerable-component-row`,"data-test-id":`vulnerable-component-${(null===(n=e.assetSlug)||void 0===n?void 0:n.toLowerCase())||"wordpress"}-${e.version}`}},emptyView:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.noVulnerabilities"}),sortColumn:"securityRisk",sortDirection:"DESC",renderRowBody:e=>(0,L.jsx)(vM,{baseClassName:t,vulnerableComponent:e,isLoading:T(e)}),expandedRows:S,"data-test-id":"instances-security-vulnerabilities-list",onExpandedRowsChange:e=>{w(e),g(i?"SECURITY_DRAWER-SGL_VULNERABLE_COMPONENT_ROW-CLICKED":"SECURITY_DRAWER-MLT_VULNERABLE_COMPONENT_ROW-CLICKED")}})})),wM="vulnerable-components",xM="security-measures",AM={[wM]:1,[xM]:2};class _M extends R.Component{constructor(e){super(e),this.handleClose=()=>{this.context("SECURITY_DRAWER-SGL-CLOSE-CLICKED"),this.props.onClose()},this.setActiveTab=e=>this.setState({activeTab:e}),this.handleRefreshInstallationsVulnerabilityStatuses=e=>{const{reloadInstallationsVulnerabilityStatuses:t}=this.props;return t(e).catch((()=>{}))},this.renderSecurityForm=()=>{const{installation:e,onClearDrawerMessages:t,onAddDrawerErrorMessage:n,onAddDrawerSuccessMessage:s}=this.props;return(0,L.jsx)(tO,{children:(0,L.jsx)(lL,{installation:e,clearMessages:t,addSuccessMessage:s,addErrorMessage:n})})},this.renderVulnerabilityProtectionHeader=(e,t)=>{const{installation:n,onOpenVirtualPatchingUpsellDialog:s,showWidgetsInVulnerabilitiesDrawer:a,vulnerabilitiesList:i,virtualPatchesFeatureEnabled:r}=this.props,o=r&&i.installationsWithoutRestrictionsForVirtualPatches.includes(n.id);return a?(0,L.jsxs)(zr,{sm:4,gap:"xs",stretchable:!0,hoverable:!1,"data-test-id":Cv,children:[(0,L.jsx)(XL,{securityRiskStatuses:t,installationId:n.id,isLoading:i.isLoading}),o?(0,L.jsx)(JL,{onOpenVirtualPatchingUpsellDialog:s,installation:n,relatedInstallationsIds:i.relatedInstallationsIds,isLoading:i.isLoading}):null,(0,L.jsx)(jL,{installation:n,vulnerableComponents:e,isLoading:i.isLoading}),(0,L.jsx)(eM,{installationsIds:[n.id],onNavigateToSecurityMeasures:()=>this.setActiveTab(xM)})]}):o?(0,L.jsx)(fL,{status:n.features.virtualPatches.status||!1,installation:n,onOpenVirtualPatchingUpsellDialog:s}):null},this.getContent=()=>{const{installation:e,vulnerabilityFeatureEnabled:t,onOpenVirtualPatchingUpsellDialog:n,installationsVulnerabilityStatusesData:s,installationsSecurityRiskStatuses:a}=this.props,{activeTab:i}=this.state;if(t){const t=(s||[]).filter((t=>t.id===e.id)),r=(a||[]).filter((t=>t.id===e.id)),o=KS(t,r);return(0,L.jsxs)(L.Fragment,{children:[this.renderVulnerabilityProtectionHeader(o,r),(0,L.jsxs)(Nl,{active:AM[i],children:[(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.vulnerabilityTabTitle"}),onActivate:()=>this.setActiveTab(wM),"data-test-id":"instance-security-tab-vulnerabilities",children:(0,L.jsx)(SM,{onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,installation:e,onOpenVirtualPatchingUpsellDialog:n,vulnerableComponents:o})}),(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.securityTabTitle"}),onActivate:()=>this.setActiveTab(xM),children:this.renderSecurityForm()})]})]})}return this.renderSecurityForm()},this.state={activeTab:e.activeTab?e.activeTab:xM}}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData()}handleOpenAndLoadData(){this.setActiveTab(this.props.activeTab?this.props.activeTab:xM),this.props.vulnerabilitiesList.onLoad([this.props.installation.id])}render(){const{isOpen:e,renderDrawerMessages:t,title:n,subtitle:s,baseClassName:a}=this.props;return(0,L.jsxs)(cr,{title:n,subtitle:s,isOpen:e,onClose:this.handleClose,"data-test-id":"security-check","data-type":"instance-security",size:"lg",className:a,children:[t(),this.getContent()]})}}_M.defaultProps={activeTab:xM,baseClassName:`${th}security-drawer`},_M.contextType=Q_;const kM=Fc((e=>({installations:e.instances.installations,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showWidgetsInVulnerabilitiesDrawer:e.app.options.showWidgetsInVulnerabilitiesDrawer,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,installationsVulnerabilityStatusesData:e.vulnerabilities.installationsVulnerabilityStatuses,installationsSecurityRiskStatuses:e.vulnerabilities.installationsSecurityRiskStatuses})),(e=>({reloadInstallationsVulnerabilityStatuses:(0,Cb.zH)(ew,e)})))(oM(yC(_M)));const jM=e=>{var{riskRank:t,filled:n=!1,size:s="16"}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["riskRank","filled","size"]);const i=e=>n?`${e}-filled`:e;switch(t){case Vf:return(0,L.jsx)(xe,Object.assign({name:i("exclamation-mark-circle"),intent:"danger",size:s},a));case Hf:return(0,L.jsx)(xe,Object.assign({name:i("triangle-exclamation-mark"),intent:"warning",size:s},a));case Yf:case Bf:return(0,L.jsx)(xe,Object.assign({name:i("info-circle"),intent:"info",size:s},a));default:return null}};const CM=e=>{var{riskRank:t,count:n}=e,s=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["riskRank","count"]);return t?(0,L.jsx)("span",Object.assign({style:{lineHeight:"normal"}},s,{children:(0,L.jsx)(Gi,{icon:(0,L.jsx)(jM,{riskRank:t}),children:n})})):null},IM="activeVulnerable";class TM extends R.Component{constructor(e){super(e),this.initListData=()=>{this.setState({listData:this.getListData()},this.updateShowedListData)},this.updateShowedListData=()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedListData:t})},this.applyFilter=()=>{const{listData:e,filter:t}=this.state;return(e||[]).filter((e=>t!==IM||e.vulnerable))},this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({listData:e}=this.state),(e||[]).filter((e=>!n||-1!==e.websiteUrl.toLowerCase().indexOf(n)))},this.getSelectedInstancesForUpdate=()=>{const{showedListData:e,selection:t}=this.state;return(e||[]).filter((e=>(!t.length||t.includes(e.id))&&(e.hasUpdates||e.vulnerablePlugins.some((e=>!!e.availableVersion))||e.vulnerableThemes.some((e=>!!e.availableVersion)))&&e.applicable))},this.handleUpdate=()=>{const{instancesActions:{updateItems:e,vulnerabilityCheckerStatsUpdate:t}}=this.props,{isUpdating:n}=this.state;if(n)return;const s=this.getSelectedInstancesForUpdate();if(!s.length)return;const a=s.map((e=>({installationId:+e.id,core:{update:e.hasUpdates,restorePoint:!1},plugins:e.vulnerablePlugins.filter((e=>!!e.availableVersion)).map((e=>e.slug)),themes:e.vulnerableThemes.filter((e=>!!e.availableVersion)).map((e=>e.slug))})));t("update"),this.setState({isUpdating:!0,instancesIdsForVulnerabilityStatusesUpdate:s.map((e=>e.id))}),e(a).then((e=>{this.setState({updateBackgroundTaskId:e.id})})).catch(this.handleOnCompleteUpdate)},this.handleOnReceiveUpdateBackgroundTaskData=e=>{const{onRefreshInstallationsVulnerabilityStatuses:t}=this.props,{updateBackgroundTaskId:n,instancesIdsForVulnerabilityStatusesUpdate:s}=this.state;if(!n)return;const a=nT(n,e);a&&ZI(a)&&t(s).finally((()=>this.handleOnCompleteUpdate()))},this.handleOnCompleteUpdate=()=>{this.setState({isUpdating:!1,updateBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]})},this.handleCheckVulnerability=()=>{const{instancesActions:{checkInstallationsVulnerability:e}}=this.props,{showedListData:t,selection:n}=this.state,s=n.length?n:(t||[]).map((e=>e.id));this.setState({isCheckingVulnerability:!0,instancesIdsForVulnerabilityStatusesUpdate:s}),e(s).then((e=>{this.setState({checkInstallationsVulnerabilityBackgroundTaskId:e.id})})).catch((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData=e=>{const{onRefreshInstallationsVulnerabilityStatuses:t}=this.props,{checkInstallationsVulnerabilityBackgroundTaskId:n,instancesIdsForVulnerabilityStatusesUpdate:s}=this.state;if(!n)return;const a=nT(n,e);a&&ZI(a)&&t(s).finally((()=>this.handleOnCompleteCheckInstallationsVulnerability()))},this.handleOnCompleteCheckInstallationsVulnerability=()=>{this.setState({isCheckingVulnerability:!1,checkInstallationsVulnerabilityBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]})},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleSearch=e=>this.setState({search:e},this.updateShowedListData),this.handleFilter=e=>this.setState({filter:e},this.updateShowedListData),this.getListData=()=>{const{installationsVulnerabilityStatuses:e,installations:t}=this.props,n=new Map((t||[]).map((e=>[e.id,e.features.vulnerability.securityRiskScore])));return e.map((e=>{var t;const s=e.plugins.filter((e=>e.status&&e.vulnerabilities.some((e=>!e.mitigations.some((e=>e.applied)))))),a=e.themes.filter((e=>e.status&&e.vulnerabilities.some((e=>!e.mitigations.some((e=>e.applied))))));return{id:e.id,websiteUrl:e.displayTitle,vulnerable:e.vulnerable,vulnerabilities:e.core.vulnerabilities,hasUpdates:!!e.core.availableVersion,applicable:e.applicable,vulnerablePlugins:s,vulnerableThemes:a,securityRisk:null!==(t=n.get(e.id))&&void 0!==t?t:null}}))},this.getToolbar=()=>{const{isUpdating:e,isCheckingVulnerability:t,listData:n,filter:s}=this.state,{isVulnerabilityFeatureUnpaid:a,isSitesFilterEnabled:i,onClearSitesFilter:r}=this.props,o=(n||[]).filter((e=>e.vulnerable)).length,l=this.getSelectedInstancesForUpdate(),c=o>1?(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.sites"}):(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.site"});return(0,L.jsxs)(L.Fragment,{children:[i&&r&&(0,L.jsxs)(da,{component:"h2",children:[null==n?void 0:n.length," ",c," ",(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.affected"}),(0,L.jsx)(ut,{ghost:!0,icon:"filter",onClick:r,children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.showAll"})},"button")]}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"Update",children:(0,L.jsx)(Ca,{noSelectionText:(0,L.jsx)(pp,{content:"instancesVulnerabilities.noSelectionText"}),actionButtonText:(0,L.jsx)(pp,{content:"instancesVulnerabilities.buttonUpdateAll"}),children:(0,L.jsx)(ut,{intent:"primary",state:e?"loading":void 0,disabled:a||t||!l.length,onClick:this.handleUpdate,"data-test-id":"instances-security-sites-update-button",children:(0,L.jsx)(pp,{content:"instancesVulnerabilities.buttonUpdate"})})})}),(0,L.jsx)(Ya,{title:"Check Vulnerability",children:(0,L.jsx)(ut,{icon:"refresh",state:t?"loading":void 0,disabled:e,onClick:this.handleCheckVulnerability,"data-test-id":"instances-security-sites-scan-button",tooltip:(0,L.jsx)(pp,{content:"instancesVulnerabilities.buttonCheckVulnerability"})})}),(0,L.jsx)(Sa,{}),(0,L.jsx)(Ya,{title:"Search",children:(0,L.jsx)(Yl,{onTyping:this.handleSearch})})]}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Sa,{}),(0,L.jsx)(Ya,{title:"Filter",children:(0,L.jsx)(ua,{label:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.filterByLabel"}),labelPlacement:"left",buttons:[{value:"all",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.filter.showAllButton",params:{count:(null==n?void 0:n.length)||0}}),"data-test-id":"instances-security-sites-filter-all",disabled:!(null==n?void 0:n.length)},{value:IM,title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.filter.activeVulnerableButton",params:{count:o}}),"data-test-id":"instances-security-sites-filter-active-vulnerable",disabled:0===o}],selected:s,onChange:this.handleFilter})})]})]})},this.getColumns=()=>[{key:"securityRisk",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.securityRiskColumn"}),render:e=>null===e.securityRisk?null:(0,L.jsx)(lM,{value:e.securityRisk,isVirtualPatchesApplied:!1,baseClassName:`${th}instances-vulnerabilities-list`})},{key:"websiteUrl",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.websiteUrlColumn"})},{key:"wordPressCore",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.wordPressCoreColumn"}),render:e=>{const t=e.vulnerabilities.filter((e=>!e.mitigations.some((e=>e.applied))));if(0===t.length)return(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.noWordPressCoreVulnerabilities"}),children:(0,L.jsx)(xe,{name:"check-mark-circle",intent:"success","data-test-id":"instances-security-no-vulnerable-wordpress-core-icon"})});const n=JS(t);return n&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.coreVulnerableTooltip",params:{severity:n}}),children:(0,L.jsx)(jM,{riskRank:n,"data-test-id":"instances-security-vulnerable-wordpress-core-icon"})})}},{key:"plugins",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.pluginsColumn"}),render:e=>{const t=e.vulnerablePlugins.length;if(0===t)return(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerablePlugins"}),children:(0,L.jsx)(xe,{name:"check-mark-circle",intent:"success","data-test-id":"instances-security-no-vulnerable-plugins-status"})});const n=JS(e.vulnerablePlugins.flatMap((e=>e.vulnerabilities.filter((e=>!e.mitigations.some((e=>e.applied)))))));return n&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.pluginsVulnerableTooltip",params:{count:t,severity:n}}),children:(0,L.jsx)(CM,{riskRank:n,count:t,"data-test-id":"instances-security-active-vulnerable-plugins-status"})})}},{key:"themes",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.themesColumn"}),render:e=>{const t=e.vulnerableThemes.length;if(0===t)return(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerableThemes"}),children:(0,L.jsx)(xe,{name:"check-mark-circle",intent:"success","data-test-id":"instances-security-no-vulnerable-themes-status"})});const n=JS(e.vulnerableThemes.flatMap((e=>e.vulnerabilities.filter((e=>!e.mitigations.some((e=>e.applied)))))));return n&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.themesVulnerableTooltip",params:{count:t,severity:n}}),children:(0,L.jsx)(CM,{riskRank:n,count:t,"data-test-id":"instances-security-active-vulnerable-themes-status"})})}},{key:"details",title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.detailsColumn"}),render:e=>(0,L.jsx)(_e,{icon:"chevron-right",onClick:()=>this.props.onOpenInstanceSecurityDrawer(e.id,wM)})}],this.state={isUpdating:!1,isCheckingVulnerability:!1,selection:[],search:"",filter:"all",listData:null,showedListData:null,updateBackgroundTaskId:null,checkInstallationsVulnerabilityBackgroundTaskId:null,instancesIdsForVulnerabilityStatusesUpdate:[]}}componentDidMount(){this.initListData()}componentDidUpdate(e){e.tasks!==this.props.tasks&&(this.handleOnReceiveUpdateBackgroundTaskData(this.props.tasks),this.handleOnReceiveCheckInstallationsVulnerabilityBackgroundTaskData(this.props.tasks)),e.installationsVulnerabilityStatuses!==this.props.installationsVulnerabilityStatuses&&this.initListData()}render(){const{selection:e,showedListData:t,isUpdating:n,isCheckingVulnerability:s}=this.state;return t?(0,L.jsx)(uo,{loading:n||s,columns:this.getColumns(),data:t,rowKey:"id",rowProps:e=>({"data-test-vulnerable-instance-id":e.id,style:{lineHeight:"26px"}}),emptyView:(0,L.jsx)(pp,{content:"instancesVulnerabilities.vulnerableWebsitesList.noVulnerableWebsites"}),toolbar:this.getToolbar(),selection:e,onSelectionChange:this.handleSelectionChange,sortColumn:"securityRisk",sortDirection:"DESC",filtered:!0,"data-test-id":"instances-security-vulnerability-instances"}):(0,L.jsx)(Qn,{})}}TM.defaultProps={tasks:[]};const DM=Fc((e=>({isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Kp],tasks:e.backgroundTasks.tasks,installations:e.instances.installations})),(e=>({instancesActions:(0,Cb.zH)(i,e)})))(TM);class PM extends R.Component{constructor(){super(...arguments),this.handleRefreshInstallationsVulnerabilityStatuses=e=>{const{reloadInstallationsVulnerabilityStatuses:t}=this.props;return t(e).catch((()=>{}))},this.getPaidFeatureDesc=()=>{const{isVulnerabilityFeatureUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n}=this.props;return e?(0,L.jsx)(Uv,{purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,L.jsx)(pp,{content:"paidFeature.vulnerabilityFeatureDescription"})}):null},this.getList=()=>{var e,t;const{onOpenInstanceSecurityDrawer:n,installationsVulnerabilityStatuses:s,isProtectionPaid:a,view:i,onChangeSiteViewInstallationsIds:r,shownInstallationsForSitesView:o,onClearSitesFilter:l,vulnerableComponents:c}=this.props;return i===ZP?(0,L.jsx)(SM,{onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,onChangeSiteViewInstallationsIds:r,isProtectionPaid:a,vulnerableComponents:c}):(0,L.jsx)(DM,{onOpenInstanceSecurityDrawer:n,onRefreshInstallationsVulnerabilityStatuses:this.handleRefreshInstallationsVulnerabilityStatuses,installationsVulnerabilityStatuses:o&&o.length>0?null!==(e=null==s?void 0:s.filter((e=>o.includes(e.id))))&&void 0!==e?e:[]:null!=s?s:[],isSitesFilterEnabled:!!o&&o.length>0&&o.length<(null!==(t=null==s?void 0:s.length)&&void 0!==t?t:0),onClearSitesFilter:l})}}render(){return this.props.vulnerabilitiesList.isLoading?(0,L.jsx)(Qn,{}):(0,L.jsxs)(L.Fragment,{children:[this.getPaidFeatureDesc(),this.getList()]})}}PM.defaultProps={baseClassName:`${th}instances-vulnerabilities`};const OM=Fc((e=>({isVulnerabilityFeatureUnpaid:e.app.unpaidFeatures[Kp],upgradeUrl:e.app.urls.featuresBuyLinks[Kp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,installationsVulnerabilityStatuses:e.vulnerabilities.installationsVulnerabilityStatuses})),(e=>({reloadInstallationsVulnerabilityStatuses:(0,Cb.zH)(ew,e)})))(PM),LM="sites",MM="vulnerable-components",EM="security-measures",RM={[LM]:1,[MM]:2,[EM]:3};class UM extends R.Component{constructor(e){var t;super(e),this.initializeVulnerabilities=()=>{this.props.vulnerabilitiesList.onLoad(this.props.installationsIds)},this.setActiveTab=e=>this.setState({activeTab:e}),this.getInstallationById=e=>{var t;return null===(t=this.props.installations)||void 0===t?void 0:t.find((t=>t.id===e))},this.handleOpenInstanceSecurityDrawer=(e,t=void 0)=>{this.setState({showInstanceSecurityDrawerForInstanceId:e,showInstanceSecurityForm:!0,securityDrawerActiveTab:t})},this.handleCloseInstanceSecurityDrawer=()=>{this.initializeVulnerabilities(),this.setState({showInstanceSecurityForm:!1,securityDrawerActiveTab:void 0})},this.getInstanceSecurityDrawer=()=>{const{showInstanceSecurityDrawerForInstanceId:e,showInstanceSecurityForm:t,securityDrawerActiveTab:n}=this.state;if(!e)return null;const s=this.getInstallationById(e);return s?(0,L.jsx)(kM,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.instanceSecurityDrawerSubTitle"}),subtitle:s.title,installation:s,isOpen:t,onClose:this.handleCloseInstanceSecurityDrawer,activeTab:n,onOpenVirtualPatchingUpsellDialog:(e,t)=>this.props.onOpenVirtualPatchingUpsellDialog(s.id,e,t)}):null},this.renderInstancesSecurityForm=()=>{const{installationsIds:e,onClearDrawerMessages:t,onAddDrawerSuccessMessage:n,onAddDrawerErrorMessage:s}=this.props,{showInstanceSecurityDrawerForInstanceId:a}=this.state;return(0,L.jsx)(tO,{children:(0,L.jsx)(XP,{selectedInstallationsIds:e,clearMessages:t,addSuccessMessage:n,addErrorMessage:s,currentInstallationId:a||void 0,onOpenInstanceSecurityDrawer:this.handleOpenInstanceSecurityDrawer})})},this.getContent=()=>{var e,t;const{vulnerabilityFeatureEnabled:n,showWidgetsInVulnerabilitiesDrawer:s,virtualPatchesFeatureEnabled:a,virtualPatchesLicenseInfo:i,isAdmin:r,showVirtualPatchesUpsellWhenRestrictedViaPlans:o,vulnerabilitiesList:l,installationsVulnerabilityStatusesData:c,installationsSecurityRiskStatuses:u}=this.props,{activeTab:d,shownInstallationsForSitesView:p}=this.state,h=(null===(e=this.props.installations)||void 0===e?void 0:e.filter((e=>l.relatedInstallationsIds.includes(e.id))))||[],m=this.props.installationsIds.length>0?this.props.installationsIds:(null===(t=this.props.installations)||void 0===t?void 0:t.map((e=>e.id)))||[],g=(c||[]).filter((e=>l.relatedInstallationsIds.includes(e.id))),f=(u||[]).filter((e=>l.relatedInstallationsIds.includes(e.id))),b=KS(g,f),v=!(({installations:e,virtualPatchesLicenseInfo:t,isAdmin:n,showVirtualPatchesUpsellWhenRestrictedViaPlans:s})=>{const a=e.some((e=>e.features.virtualPatches.restrictions.includes(Lf)))||!1,i=e.filter((e=>null!==e.features.virtualPatches.subscription&&[Mf.Active,Mf.Suspended].includes(e.features.virtualPatches.subscription.status))).map((e=>e.id))||[],r=e.every((({features:{virtualPatches:{restrictions:e}}})=>e.includes(Of)));return!(i.length>0)&&(!t||0===(null==t?void 0:t.installationsLimit)||!n&&(a||r&&s))})({installations:h,virtualPatchesLicenseInfo:i,isAdmin:r,showVirtualPatchesUpsellWhenRestrictedViaPlans:o}),y=a&&!!l.installationsWithoutRestrictionsForVirtualPatches.length,S=h.filter((e=>e.features.virtualPatches.status)).filter((e=>l.installationsWithoutRestrictionsForVirtualPatches.includes(e.id))).map((e=>e.id)),w=h.filter((e=>!e.features.virtualPatches.status)).filter((e=>l.installationsWithoutRestrictionsForVirtualPatches.includes(e.id))).map((e=>e.id));return n?(0,L.jsxs)(L.Fragment,{children:[s&&(0,L.jsxs)(zr,{sm:4,gap:"xs",stretchable:!0,hoverable:!1,"data-test-id":Cv,children:[(0,L.jsx)(XL,{securityRiskStatuses:f,isLoading:l.isLoading}),y?(0,L.jsx)(JL,{installationsIdsWithActiveProtection:S,installationsIdsWithInactiveProtection:w,isProtectionPaid:v,relatedInstallationsIds:l.relatedInstallationsIds,isLoading:l.isLoading}):null,(0,L.jsx)(IL,{vulnerableComponents:b,isLoading:l.isLoading,installationsIds:h.map((e=>e.id))||[]}),(0,L.jsx)(eM,{installationsIds:m,isMassMode:!0,onNavigateToSecurityMeasures:()=>this.setActiveTab(EM)})]}),(0,L.jsxs)(Nl,{active:RM[d],children:[(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"instancesVulnerabilities.instancesVulnerabilitiesList.sites"}),onActivate:()=>this.setActiveTab(LM),"data-test-id":"instances-security-tab-sites",children:(0,L.jsx)(OM,{vulnerabilitiesList:l,onOpenInstanceSecurityDrawer:this.handleOpenInstanceSecurityDrawer,isProtectionPaid:v,view:"sites",shownInstallationsForSitesView:p,onClearSitesFilter:()=>this.setState({shownInstallationsForSitesView:[]}),vulnerableComponents:b})}),(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.vulnerabilityTabTitle"}),onActivate:()=>this.setActiveTab(MM),"data-test-id":"instances-security-tab-vulnerabilities",children:(0,L.jsx)(OM,{vulnerabilitiesList:l,onOpenInstanceSecurityDrawer:this.handleOpenInstanceSecurityDrawer,isProtectionPaid:v,view:ZP,onChangeSiteViewInstallationsIds:e=>{this.setState({shownInstallationsForSitesView:e}),this.setActiveTab(LM)},vulnerableComponents:b})}),(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.securityTabTitle"}),onActivate:()=>this.setActiveTab(EM),children:this.renderInstancesSecurityForm()})]})]}):this.renderInstancesSecurityForm()},this.state={showInstanceSecurityForm:!1,showInstanceSecurityDrawerForInstanceId:null,activeTab:null!==(t=e.activeTab)&&void 0!==t?t:LM,securityDrawerActiveTab:void 0,shownInstallationsForSitesView:[]}}componentDidMount(){this.props.isOpen&&this.initializeVulnerabilities()}componentDidUpdate(e){var t;!e.isOpen&&this.props.isOpen&&(this.setActiveTab(null!==(t=this.props.activeTab)&&void 0!==t?t:LM),this.initializeVulnerabilities())}render(){const{isOpen:e,onClose:t,renderDrawerMessages:n,baseClassName:s}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.drawerTitle"}),subtitle:(0,L.jsx)(pp,{content:"list-ui.instances.forms.instancesSecurity.drawerSubTitle"}),isOpen:e,size:"lg",onClose:t,"data-type":"instances-security",className:s,children:[n(),this.getContent()]}),this.getInstanceSecurityDrawer()]})}}UM.defaultProps={activeTab:LM,baseClassName:`${th}instances-security-drawer`};const NM=Fc((e=>({installations:e.instances.installations,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,virtualPatchesFeatureEnabled:e.app.options.virtualPatchesFeature,virtualPatchesLicenseInfo:e.app.licenseInfo.virtualPatches,showWidgetsInVulnerabilitiesDrawer:e.app.options.showWidgetsInVulnerabilitiesDrawer,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,installationsVulnerabilityStatusesData:e.vulnerabilities.installationsVulnerabilityStatuses,installationsSecurityRiskStatuses:e.vulnerabilities.installationsSecurityRiskStatuses})))(oM(yC(UM)));class FM extends R.Component{renderAssetUpdateVersion(){const{asset:e,updateAvailableTitle:t,handleUpdateAsset:n,blocked:s,baseClassName:a}=this.props;return!e.updateVersion||s?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("br",{}),(0,L.jsx)(Gi,{intent:"warning"})," ",t,(0,L.jsx)("br",{}),(0,L.jsxs)("div",{className:`${a}__action_wrapper`,children:[" [",(0,L.jsx)(_e,{onClick:()=>n(e),children:(0,L.jsx)(pp,{content:"list.assets.linkUpdateToVersion",params:{version:e.updateVersion}})}),"]"]}),e.updateDetailsUrl&&(0,L.jsxs)(L.Fragment,{children:[" [",(0,L.jsx)("a",{href:e.updateDetailsUrl,target:"_blank",children:(0,L.jsx)(pp,{content:"list.assets.linkUpdatesDetails"})}),"]"]})]})}render(){const{asset:e,publicUrl:t,uploadedTitle:n,onOpenSecurityDialog:s}=this.props,a=e.instances.map((e=>e.id)),i=e.instances.some((e=>e.isAssetActive));return(0,L.jsxs)(L.Fragment,{children:[e.isUploaded&&(0,L.jsx)(Xe,{title:n,children:(0,L.jsx)("img",{src:`${t}images/uploaded.png`,style:{marginRight:"5px"}})}),`${e.title} ${e.version}`,this.renderAssetUpdateVersion(),e.isVulnerable&&(0,L.jsx)("div",{children:a.length>0&&i?(0,L.jsx)(_e,{icon:(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:"danger",size:"16"}),onClick:()=>s(a,MM),"data-test-id":kv,children:(0,L.jsx)(pp,{content:"titleListColumn.vulnerableLink"})}):(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{intent:"danger","data-test-id":kv,children:(0,L.jsx)(pp,{content:"titleListColumn.vulnerableStatus"})}),children:e.vulnerabilities.map((e=>(0,L.jsxs)("p",{children:[e.title," ",(0,L.jsx)(Xe,{title:e.description,children:(0,L.jsx)(xe,{name:"info-circle"})})]},e.id)))})})]})}}FM.defaultProps={blocked:!1,baseClassName:`${th}asset-name-column`};const BM=Fc((e=>({publicUrl:e.app.urls.publicUrl})))(FM);class YM extends R.Component{constructor(e){super(e),this.handleInstallClick=()=>{this.setState({showInstallDrawer:!0})},this.handleCloseInstallDrawer=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitInstall=(e,t)=>{const{onSubmitInstall:n}=this.props;return this.setState({showInstallDrawer:!1}),n(e,t)},this.state={showInstallDrawer:!1}}render(){const{asset:e,instances:t,selectInstancesText:n,activateAfterInstallationText:s,instanceNameListTitle:a,instanceUrlListTitle:i,tooltip:r,disabled:o}=this.props,{showInstallDrawer:l}=this.state;return!e.isUploaded||e.instances.length>0?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ut,{onClick:this.handleInstallClick,tooltip:r,disabled:o,children:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"})}),l&&(0,L.jsx)(fj,{selectInstancesText:n,instanceNameListTitle:a,instanceUrlListTitle:i,showActivateAfterInstallation:!0,activateAfterInstallationText:s,drawerTitle:(0,L.jsx)(pp,{content:"list.assets.selectInstancesDrawerTitle"}),asset:e,instances:t,onCloseDrawer:this.handleCloseInstallDrawer,onSubmitInstall:this.handleSubmitInstall})]})}}YM.defaultProps={tooltip:null,disabled:!1};const HM=YM,VM=e=>{const{menu:t}=e;return(0,L.jsx)(zn,{menu:t,menuPlacement:"bottom-end",children:(0,L.jsx)(_e,{icon:{name:"three-dots-horizontal",size:"24"}})})};class WM extends R.Component{constructor(e){super(e),this.handleInstallClick=()=>{this.setState({showInstallDrawer:!0})},this.handleUninstallClick=()=>{this.setState({showUninstallConfirmationDialog:!0})},this.handleRemoveClick=()=>{this.setState({showRemoveConfirmationDialog:!0})},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleCloseRemoveConfirmation=()=>{this.setState({showRemoveConfirmationDialog:!1})},this.handleCloseInstallDrawer=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitInstall=(e,t)=>{const{onSubmitInstall:n}=this.props;return this.setState({showInstallDrawer:!1}),n(e,t)},this.handleSubmitUninstall=()=>{const{onSubmitUninstall:e}=this.props;this.setState({showUninstallConfirmationDialog:!1}),e()},this.handleSubmitRemove=()=>{const{onSubmitRemove:e}=this.props;this.setState({showRemoveConfirmationDialog:!1}),e()},this.state={showInstallDrawer:!1,showUninstallConfirmationDialog:!1,showRemoveConfirmationDialog:!1}}renderInstallDrawer(){const{asset:e,instances:t,selectInstancesText:n,activateAfterInstallationText:s,instanceNameListTitle:a,instanceUrlListTitle:i}=this.props;return(0,L.jsx)(fj,{selectInstancesText:n,instanceNameListTitle:a,instanceUrlListTitle:i,showActivateAfterInstallation:!0,activateAfterInstallationText:s,drawerTitle:(0,L.jsx)(pp,{content:"list.assets.selectInstancesDrawerTitle"}),asset:e,instances:t,onCloseDrawer:this.handleCloseInstallDrawer,onSubmitInstall:this.handleSubmitInstall})}renderUninstallConfirmationDialog(){const{uninstallDialogConfirmationText:e,uninstallDialogYesButtonText:t,uninstallDialogNoButtonText:n}=this.props;return(0,L.jsx)(Wi,{isOpen:!0,buttons:(0,L.jsx)(ut,{onClick:this.handleSubmitUninstall,children:t}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:n,children:e})}renderRemoveConfirmationDialog(){const{removeDialogConfirmationText:e,removeDialogYesButtonText:t,removeDialogNoButtonText:n}=this.props;return(0,L.jsx)(Wi,{isOpen:!0,buttons:(0,L.jsx)(ut,{onClick:this.handleSubmitRemove,children:t}),size:"sm",onClose:this.handleCloseRemoveConfirmation,cancelTitle:n,children:e})}render(){const{asset:e,instances:t,disableInstalling:n}=this.props,{showInstallDrawer:s,showUninstallConfirmationDialog:a,showRemoveConfirmationDialog:i}=this.state;if(!e||!e.isUploaded)return null;const r=[];if(e.instances.length<t.length&&!n&&r.push((0,L.jsx)(Yn,{onClick:this.handleInstallClick,children:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"})})),e.instances.length>0&&r.push((0,L.jsx)(Yn,{onClick:this.handleUninstallClick,children:(0,L.jsx)(pp,{content:"list.assets.buttonUninstall"})})),e.isAllowedToManage&&r.push((0,L.jsx)(Yn,{onClick:this.handleRemoveClick,children:(0,L.jsx)(pp,{content:"list.assets.buttonRemove"})})),0===r.length)return null;const o=(0,L.jsx)(aa,{children:r});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(VM,{menu:o}),s&&this.renderInstallDrawer(),a&&this.renderUninstallConfirmationDialog(),i&&this.renderRemoveConfirmationDialog()]})}}WM.defaultProps={disableInstalling:!1};const $M=WM,zM=e=>({name:e.name,version:e.version,isUploaded:e.isUploaded,ownerGuid:e.ownerGuid});const qM=e=>{var{target:t,onActivate:n,isOpen:s,onClose:a,children:i}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["target","onActivate","isOpen","onClose","children"]);return(0,L.jsxs)(Ks,Object.assign({target:t,visible:s,onClose:a,placement:"top"},r,{children:[i,(0,L.jsxs)("div",{children:[(0,L.jsx)(ut,{onClick:()=>{n(),null==a||a()},"data-test-id":"activate-vulnerable-asset-confirmation-activate-button",children:(0,L.jsx)(pp,{content:"activateVulnerableAssetConfirmation.activateButton"})}),(0,L.jsx)(ut,{onClick:a,ghost:!0,children:(0,L.jsx)(pp,{content:"activateVulnerableAssetConfirmation.cancelButton"})})]})]}))},GM=({hasActiveFilter:e,onToggle:t})=>{const n=`${th}plugin-filter`,s=(0,L.jsx)(ut,{icon:(0,L.jsx)(xe,{name:"filter"}),onClick:t,"data-test-id":"plugin-filter",children:(0,L.jsx)(pp,{content:"general-ui.native-filter.title"})}),a=e?(0,L.jsx)(Ve,{label:(0,L.jsx)(He,{intent:"info"}),className:`${n}__filter-badge`,children:s}):s;return(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"general-ui.native-filter.title"}),children:a})},KM=e=>{const t=cp();return(0,L.jsx)(Dr,Object.assign({},e,{placeholder:t(e.placeholder)}))},QM=({pluginNameFilter:e,siteUrlFilter:t,isOpen:n,onPluginNameChange:s,onSiteUrlChange:a,onClear:i,showSiteUrlFilter:r=!0})=>{const o=`${th}plugin-filter`;if(!n)return null;const l={pluginName:e,siteUrl:t};return(0,L.jsx)(jl,{className:`${o}__filter-panel`,title:(0,L.jsx)(Ns,{level:4,children:(0,L.jsx)(pp,{content:"general-ui.native-filter.title"})}),extra:[(0,L.jsx)(ut,{ghost:!0,icon:"cross-mark",onClick:i,"data-test-id":"plugin-filter-clear-button",children:(0,L.jsx)(pp,{content:"general-ui.native-filter.clear"})},"clear")],"data-test-id":"plugin-filter-component",children:(0,L.jsxs)(Hi,{applyButton:!1,submitButton:!1,cancelButton:!1,vertical:!0,values:l,onFieldChange:(e,t)=>{var n;const i={pluginName:s,siteUrl:a};null===(n=i[e])||void 0===n||n.call(i,t)},children:[(0,L.jsx)(KM,{name:"pluginName",label:(0,L.jsx)(pp,{content:"list.assets.filter.pluginName.label"}),size:"fill",placeholder:"list.assets.filter.pluginName.label","data-test-id":"plugin-filter-plugin-name-input"}),r&&(0,L.jsx)(KM,{name:"siteUrl",label:(0,L.jsx)(pp,{content:"list.assets.filter.domain.label"}),size:"fill",placeholder:"list.assets.filter.domain.label","data-test-id":"plugin-filter-site-url-input"})]})})},JM=e=>e?e.replace(/^https?:\/\//,""):null,XM=(e,t)=>{const n="name"in e?e.name.toLowerCase():null,s=e.title.toLowerCase();return Boolean((null==n?void 0:n.includes(t))||s.includes(t))},ZM=(e,t)=>e.instances.some((e=>{var n;const s=JM(e.url);return null!==(n=null==s?void 0:s.toLowerCase().includes(t))&&void 0!==n&&n})),eE=(e,t,n)=>{const s=(e=>{var t;return(null===(t=null==e?void 0:e.trim())||void 0===t?void 0:t.toLowerCase())||null})(t);return s?e.filter((e=>n(e,s))):e},tE=(e,t)=>eE(e,t,XM),nE=(e,t)=>eE(e,t,ZM),sE=(e,t)=>eE(e,t,((e,t)=>XM(e,t)||ZM(e,t)));class aE extends R.Component{constructor(e){super(e),this.handleToggleFilter=()=>{this.setState((e=>({isFilterComponentOpen:!e.isFilterComponentOpen})))},this.handlePluginNameFilterChange=e=>{this.setState({pluginNameFilter:e})},this.handleSiteUrlFilterChange=e=>{this.setState({siteUrlFilter:e})},this.handleClearFilter=()=>{this.setState({pluginNameFilter:"",siteUrlFilter:""})},this.handleRefresh=()=>{const{pluginsActions:{getPluginsList:e}}=this.props;this.setState({isPluginsListLoading:!0}),e().finally((()=>{this.setState({isPluginsListLoading:!1})}))},this.onUpdatePlugin=e=>{const{pluginsActions:{updatePlugins:t}}=this.props;t([zM(e)])},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.handleOpenSecurityDialog=(e,t=null)=>{const{pushUrl:n}=this.props;n(`${pj}/instancesIds/${e.join(",")}/checkSecurity/1${t?`/activeTab/${t}`:""}`)},this.handleOpenActivateVulnerablePluginsConfirmation=()=>{this.setState({showActivateVulnerablePluginsConfirmation:!0})},this.handleCloseActivateVulnerablePluginsConfirmation=()=>{this.setState({showActivateVulnerablePluginsConfirmation:!1})},this.getFilterButtonConfig=()=>({hasActiveFilter:Boolean(this.state.pluginNameFilter.trim())||Boolean(this.state.siteUrlFilter.trim()),onToggle:this.handleToggleFilter}),this.getFilterPanelConfig=()=>({pluginNameFilter:this.state.pluginNameFilter,siteUrlFilter:this.state.siteUrlFilter,isOpen:this.state.isFilterComponentOpen,onPluginNameChange:this.handlePluginNameFilterChange,onSiteUrlChange:this.handleSiteUrlFilterChange,onClear:this.handleClearFilter,showSiteUrlFilter:!0}),this.renderActivateButton=()=>{const{isSelectedOnlyBlockedPlugins:e,showActivateVulnerablePluginsConfirmation:t}=this.state,{baseClassName:n,blockedPlugins:s}=this.props,a=this.getSelectedPlugins(),i=a?a.filter((e=>e.isVulnerable&&!s.includes(e.name))):[];return i.length?(0,L.jsxs)(qM,{target:(0,L.jsx)(ut,{onClick:this.handleOpenActivateVulnerablePluginsConfirmation,"data-test-id":fv,disabled:e,className:`${n}__activate-button`,children:(0,L.jsx)(pp,{content:"list.assets.buttonActivate"})}),onActivate:this.handleActivate,isOpen:t,onClose:this.handleCloseActivateVulnerablePluginsConfirmation,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateVulnerablePluginsOnAllInstancesConfirmation"})}),(0,L.jsx)("ul",{className:`${n}__activate-vulnerable-plugins-confirmation__plugins-list`,children:i.map((e=>(0,L.jsx)("li",{children:`${e.title} ${e.version}`},this.getRowKey(e))))})]}):(0,L.jsx)(ut,{onClick:this.handleActivate,"data-test-id":fv,disabled:e,children:(0,L.jsx)(pp,{content:"list.assets.buttonActivate"})})},this.renderToolbar=()=>{const{instances:e,isAdmin:t,isReseller:n}=this.props,{isSelectedOnlyBlockedPlugins:s}=this.state;return(0,L.jsxs)(Ha,{children:[e.length>0&&(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"}),children:(0,L.jsx)(ut,{onClick:this.handleOpenInstall,"data-test-id":"toolbar-install-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"})})}),(t||n||e.length>0)&&(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.assets.pluginsUpload"}),children:(0,L.jsx)(ut,{onClick:this.handleOpenUploadPlugin,"data-test-id":"toolbar-upload-button",children:(0,L.jsx)(pp,{content:"list.assets.pluginsUpload"})})}),e.length>0&&(0,L.jsxs)(Ya,{title:(0,L.jsx)(ut,{caret:!0,children:(0,L.jsx)(pp,{content:"list.assets.buttonActions"})}),children:[this.renderActivateButton(),(0,L.jsx)(ut,{onClick:this.handleDeactivate,"data-test-id":"toolbar-deactivate-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonDeactivate"})}),(0,L.jsx)(ut,{onClick:this.handleUninstall,"data-test-id":"toolbar-uninstall-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonUninstall"})}),(0,L.jsx)(ut,{onClick:this.handleUpdate,"data-test-id":"toolbar-update-button",disabled:s,children:(0,L.jsx)(pp,{content:"list.assets.buttonUpdate"})})]}),(0,L.jsx)(Sa,{}),this.renderFilterButton()]})},this.renderFilterButton=()=>(0,L.jsx)(GM,Object.assign({},this.getFilterButtonConfig())),this.renderFilterComponent=()=>(0,L.jsx)(QM,Object.assign({},this.getFilterPanelConfig())),this.handleSubmitInstall=(e,t,n)=>{const{pluginsActions:{installPlugins:s}}=this.props;return s(e.map((e=>({name:e,version:null,isUploaded:!1}))),t,n).then((e=>(e.status===Mp&&this.setState({showInstallDrawer:!1}),e)))},this.handleSubmitUpload=({uploadFile:e,setId:t,instanceIds:n,isActivateAfterInstallation:s})=>{const{pluginsActions:{uploadPluginToStorage:a,uploadAndInstallPlugin:i,reloadPlugins:r},appActions:{addSuccessMessage:o},isAdmin:l,isReseller:c}=this.props;return l||c?a(e,t).then((e=>(e.status===Mp&&e.data&&e.data.assetName&&e.data.assetVersion&&(r([{name:e.data.assetName,version:e.data.assetVersion}]).finally((()=>o((0,L.jsx)(pp,{content:"controllers.index.manage-plugins.uploadSuccess"})))),this.setState({showUploadDrawer:!1})),e))):i(e,n,s).then((e=>(e.status===Mp&&this.setState({showUploadDrawer:!1}),e)))},this.renderUploadPluginDrawer=()=>{const{isAdmin:e,isReseller:t,sets:n,instances:s}=this.props;return(0,L.jsx)(vC,{onClose:this.handleCloseUpload,onUpload:this.handleSubmitUpload,selectLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectLabel"}),drawerTitle:(0,L.jsx)(pp,{content:"list.assets.pluginsUpload"}),activateAfterInstallationLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateAfterInstall"}),noInstancesSelectedErrorMessage:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.errorNoInstancesSelectedToUpload"}),uploadHintForSet:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectSetDescription"}),uploadHintForInstances:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.uploadSelectedInstances"}),sets:e?n:[],instances:e||t?[]:s})},this.handleSearchPlugins=e=>{const{pluginsActions:{searchPlugins:t}}=this.props;return t(e).then((({data:e})=>e&&e.plugins?e.plugins:null))},this.handleActivate=()=>{const{pluginsActions:{activatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleDeactivate=()=>{const{pluginsActions:{deactivatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleUninstall=()=>{this.getSelectedPluginsForAction()&&this.setState({showUninstallConfirmationDialog:!0})},this.handleSubmitUninstall=()=>{const{pluginsActions:{uninstallPlugins:e}}=this.props;this.setState({showUninstallConfirmationDialog:!1},(()=>{const t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)}))},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleUpdate=()=>{const{pluginsActions:{updatePlugins:e}}=this.props,t=this.getSelectedPluginsForAction();this.resetSelection(),t&&e(t)},this.handleOpenUploadPlugin=()=>{this.setState({showUploadDrawer:!0})},this.handleCloseUpload=()=>{this.setState({showUploadDrawer:!1})},this.handleOpenInstall=()=>{this.setState({showInstallDrawer:!0})},this.handleCloseInstall=()=>{this.setState({showInstallDrawer:!1})},this.handleSubmitUploadedAssetInstall=(e,t,n)=>{const{pluginsActions:{installPlugins:s}}=this.props;return s([zM(e)],t,n)},this.handleSubmitUninstallUploadedAsset=e=>{const{pluginsActions:{uninstallPlugins:t}}=this.props;t([zM(e)])},this.handleSubmitRemoveUploadedAsset=e=>{const{pluginsActions:{removePlugins:t}}=this.props;t([zM(e)])},this.handleSelectionChange=e=>{const{blockedPlugins:t}=this.props;this.setState({selectedPluginsKeys:e},(()=>{const e=this.getSelectedPlugins(),n=!!e&&!e.some((e=>!t.includes(e.name)));this.setState({isSelectedOnlyBlockedPlugins:n})}))},this.resetSelection=()=>{this.setState({selectedPluginsKeys:[]})},this.getRowKey=e=>`${e.name}-${e.version}-${e.isUploaded}-${e.ownerGuid}`,this.state={selectedPluginsKeys:[],isPluginsListLoading:!0,showInstallDrawer:!1,showUploadDrawer:!1,showUninstallConfirmationDialog:!1,sortColumn:"title",sortDirection:"ASC",isSelectedOnlyBlockedPlugins:!1,showActivateVulnerablePluginsConfirmation:!1,pluginNameFilter:"",siteUrlFilter:"",isFilterComponentOpen:!1}}componentDidMount(){this.handleRefresh()}componentWillUnmount(){const{pluginsActions:{resetPluginsList:e}}=this.props;e()}filterPlugins(e){const{search:t}=this.props,{pluginNameFilter:n,siteUrlFilter:s}=this.state;let a=e;return a=sE(a,t),a=tE(a,n),a=nE(a,s),a}getSelectedPlugins(){const{selectedPluginsKeys:e}=this.state,{plugins:t}=this.props;return 0===e.length?null:t.filter((t=>kp(e,this.getRowKey(t))))}getSelectedPluginsForAction(){const{appActions:{addWarningMessage:e}}=this.props,t=this.getSelectedPlugins();return t?t.map((e=>zM(e))):(e((0,L.jsx)(pp,{content:"lists.noItemsSelectedToast"})),null)}renderPluginsList(){const{plugins:e,blockedPlugins:t}=this.props,{selectedPluginsKeys:n,showInstallDrawer:s,showUploadDrawer:a,showUninstallConfirmationDialog:i,sortColumn:r,sortDirection:o}=this.state,l=[{key:"title",title:(0,L.jsx)(pp,{content:"list.assets.name"}),width:"20%",sortable:!0,sort:(e,t)=>{const n=`${e.title} ${e.version}`,s=`${t.title} ${t.version}`;return n.localeCompare(s)},render:e=>{const n=t.includes(e.name);return(0,L.jsxs)(R.Fragment,{children:[n&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",(0,L.jsx)(BM,{asset:e,updateAvailableTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.updateAvailable"}),uploadedTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.custom"}),handleUpdateAsset:this.onUpdatePlugin,blocked:n,onOpenSecurityDialog:this.handleOpenSecurityDialog})]})}},{key:"instances",width:"80%",title:(0,L.jsx)(pp,{content:"list.assets.installedAt"}),render:e=>this.renderInstancesColumn(e)},{key:"menu",title:"",render:e=>this.renderUploadedAssetMenu(e)}],c=this.filterPlugins(e.filter((e=>!e.isMustUse))).map((e=>Object.assign(Object.assign({},e),{key:this.getRowKey(e)})));return(0,L.jsxs)(R.Fragment,{children:[s&&this.renderInstallDrawer(),a&&this.renderUploadPluginDrawer(),i&&this.renderUninstallConfirmationDialog(),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.plugins-list.hint"})}),this.renderToolbar(),(0,L.jsxs)("div",{className:`${this.props.baseClassName}__content-wrapper`,children:[(0,L.jsx)("div",{className:`${this.props.baseClassName}__list-wrapper`,children:(0,L.jsx)(HO,{columns:l,data:c,selection:n,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:r,sortDirection:o,dataTestId:"found-plugins-list"})}),this.renderFilterComponent()]})]})}renderUninstallConfirmationDialog(){return(0,L.jsx)(Wi,{isOpen:!0,buttons:(0,L.jsx)(ut,{onClick:this.handleSubmitUninstall,children:(0,L.jsx)(pp,{content:"list.assets.UninstallPluginConfirmationYes"})}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:(0,L.jsx)(pp,{content:"list.assets.UninstallPluginConfirmationNo"}),children:(0,L.jsx)(pp,{content:"list.assets.pluginsConfirmOnUninstall"})})}renderInstallDrawer(){const{instances:e}=this.props;return(0,L.jsx)(vj,{onClose:this.handleCloseInstall,onSearchAssets:this.handleSearchPlugins,onInstall:this.handleSubmitInstall,drawerTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.installTitleAll"}),headDescription:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.installHeadDescription"}),searchDescription:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.tryToSearch"}),tableTitleTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldName"}),tableVersionTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldVersion"}),tableRatingTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldRating"}),nothingFoundText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.nothingFound"}),selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectInstancesHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldUrl"}),showActivateAfterInstallation:!0,activateAfterInstallationText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateAfterInstall"}),instances:e})}renderUploadedAssetInstallButton(e){const{instances:t,blockedPlugins:n}=this.props;return 0===t.length?null:(0,L.jsx)(HM,{asset:e,instances:t,disabled:n.includes(e.name),tooltip:n.includes(e.name)&&(0,L.jsx)(pp,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.installPopupHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldUrl"}),activateAfterInstallationText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n)})}renderInstancesColumn(e){return(0,L.jsxs)(R.Fragment,{children:[this.renderUploadedAssetInstallButton(e),this.renderInstancesList(e.instances)]})}renderUploadedAssetMenu(e){const{instances:t,blockedPlugins:n}=this.props;return(0,L.jsx)($M,{asset:e,instances:t,disableInstalling:n.includes(e.name),selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldUrl"}),uninstallDialogConfirmationText:(0,L.jsx)(pp,{content:"list.assets.UninstallPluginConfirmationDescription"}),uninstallDialogYesButtonText:(0,L.jsx)(pp,{content:"list.assets.UninstallPluginConfirmationYes"}),uninstallDialogNoButtonText:(0,L.jsx)(pp,{content:"list.assets.UninstallPluginConfirmationNo"}),removeDialogConfirmationText:(0,L.jsx)(pp,{content:"list.assets.RemovePluginConfirmationDescription"}),removeDialogYesButtonText:(0,L.jsx)(pp,{content:"list.assets.RemovePluginConfirmationYes"}),removeDialogNoButtonText:(0,L.jsx)(pp,{content:"list.assets.RemovePluginConfirmationNo"}),activateAfterInstallationText:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n),onSubmitUninstall:()=>this.handleSubmitUninstallUploadedAsset(e),onSubmitRemove:()=>this.handleSubmitRemoveUploadedAsset(e)})}renderInstancesList(e){return 0===e.length?"":dj(e.map((e=>this.renderInstance(e))),", ")}renderInstance(e){const t=JM(e.url)||e.name||`Installation ${e.id}`,n=`${pj}/id/${e.id}`;return e.isAssetActive?(0,L.jsx)(Us,{href:n,onClick:e=>{e.preventDefault(),this.props.pushUrl(n)},children:t}):(0,L.jsxs)(da,{intent:"muted",children:[(0,L.jsx)(Us,{href:n,onClick:e=>{e.preventDefault(),this.props.pushUrl(n)},children:(0,L.jsx)(da,{intent:"muted",children:t})})," ",(0,L.jsx)(pp,{content:"list.assets.inactive"})]})}render(){const{isPluginsListLoading:e}=this.state;return(0,L.jsxs)(ak,{activeTab:z_,children:[e&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.listLoading"})}),!e&&this.renderPluginsList()]})}}aE.propTypes={search:je().string,plugins:je().array,instances:je().array,sets:je().array,pluginsActions:je().shape({resetPluginsList:je().func.isRequired,getPluginsList:je().func.isRequired,searchPlugins:je().func.isRequired,installPlugins:je().func.isRequired,activatePlugins:je().func.isRequired,deactivatePlugins:je().func.isRequired,uninstallPlugins:je().func.isRequired,removePlugins:je().func.isRequired,updatePlugins:je().func.isRequired,uploadPluginToStorage:je().func.isRequired,uploadAndInstallPlugin:je().func.isRequired,reloadPlugins:je().func.isRequired}).isRequired,appActions:je().shape({addSuccessMessage:je().func.isRequired,addWarningMessage:je().func.isRequired}).isRequired,isAdmin:je().bool,isReseller:je().bool,pushUrl:je().func.isRequired,blockedPlugins:je().array.isRequired,baseClassName:je().string},aE.defaultProps={search:"",plugins:null,instances:null,sets:[],isAdmin:!0,isReseller:!1,baseClassName:`${th}plugins-page`};const iE=Fc((e=>({search:e.app.search,plugins:e.plugins.list,instances:e.plugins.instances,sets:e.plugins.sets,isAdmin:e.app.options.isAdmin,isReseller:e.app.options.isReseller,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({pluginsActions:(0,Cb.zH)(l,e),appActions:(0,Cb.zH)(t,e),pushUrl:t=>e(gu(t))})))(_k(aE)),rE=fp(GC,"themes","instances","sets"),oE=()=>dS(bf.themes.getThemesList,(e=>rE(e.data.themes,e.data.instances,e.data.sets))),lE=fp(KC),cE=fp(QC,"themesToUpdate","newThemesData"),uE=(e,t)=>uS((()=>bf.themes.loadThemesData(e)),((n,s)=>{n(cE(e,s.data.themes)),t&&t()})),dE=fp("themes/SEARCH_THEMES_FINISHED"),pE=e=>dS((()=>bf.themes.searchThemes(e)),dE),hE=fp(JC,"task"),mE=fp("themes/INSTALL_THEMES_FINISHED"),gE=(e,t,n)=>dS((()=>bf.themes.installThemes(e,t,n)),(e=>hE(e.data.task))),fE=fp("themes/UPLOAD_THEME_TO_STORAGE_FINISHED","data"),bE=(e,t)=>dS((()=>bf.themes.uploadThemeToStorage(e,t)),(e=>fE(e.data))),vE=fp("plugins/UPLOAD_AND_INSTALL_THEME_TASK_FINISHED"),yE=fp(nI,"task"),SE=(e,t,n)=>dS((()=>bf.themes.uploadAndInstallTheme(e,t,n)),(e=>yE(e.data.task))),wE=fp(ZC,"task"),xE=fp("themes/UNINSTALL_THEMES_FINISHED"),AE=e=>dS((()=>bf.themes.uninstallThemes(e)),(e=>wE(e.data.task))),_E=fp(eI,"task"),kE=fp("themes/REMOVE_THEMES_FINISHED"),jE=e=>dS((()=>bf.themes.removeThemes(e)),(e=>_E(e.data.task))),CE=fp(XC,"task"),IE=fp("themes/UPDATE_THEMES_FINISHED"),TE=e=>dS((()=>bf.themes.updateThemes(e)),(e=>CE(e.data.task))),DE=fp(tI,"task"),PE=fp("themes/ACTIVATE_THEME_FINISHED"),OE=e=>dS((()=>bf.themes.activateThemeOnAllInstances(e)),(e=>DE(e.data.task))),LE=({themeNameFilter:e,siteUrlFilter:t,isOpen:n,onThemeNameChange:s,onSiteUrlChange:a,onClear:i,showSiteUrlFilter:r=!0})=>{const o=`${th}theme-filter`;if(!n)return null;const l={themeName:e,siteUrl:null!=t?t:""};return(0,L.jsx)(jl,{className:`${o}__filter-panel`,title:(0,L.jsx)(Ns,{level:4,children:(0,L.jsx)(pp,{content:"general-ui.native-filter.title"})}),extra:[(0,L.jsx)(ut,{ghost:!0,icon:"cross-mark",onClick:i,"data-test-id":"theme-filter-clear-button",children:(0,L.jsx)(pp,{content:"general-ui.native-filter.clear"})},"clear")],"data-test-id":"theme-filter-component",children:(0,L.jsxs)(Hi,{applyButton:!1,submitButton:!1,cancelButton:!1,vertical:!0,values:l,onFieldChange:(e,t)=>{var n;const i={themeName:s,siteUrl:a};null===(n=i[e])||void 0===n||n.call(i,t)},children:[(0,L.jsx)(KM,{name:"themeName",label:(0,L.jsx)(pp,{content:"list.assets.filter.themeName.label"}),size:"fill",placeholder:"list.assets.filter.themeName.label","data-test-id":"theme-filter-theme-name-input"}),r&&(0,L.jsx)(KM,{name:"siteUrl",label:(0,L.jsx)(pp,{content:"list.assets.filter.domain.label"}),size:"fill",placeholder:"list.assets.filter.domain.label","data-test-id":"theme-filter-site-url-input"})]})})};class ME extends R.Component{constructor(e){super(e),this.handleRefresh=()=>{const{themesActions:{getThemesList:e}}=this.props;this.setState({isThemesListLoading:!0}),e().finally((()=>{this.setState({isThemesListLoading:!1})}))},this.handleToggleFilter=()=>{this.setState((e=>({isFilterComponentOpen:!e.isFilterComponentOpen})))},this.handleThemeNameFilterChange=e=>{this.setState({themeNameFilter:e})},this.handleSiteUrlFilterChange=e=>{this.setState({siteUrlFilter:e})},this.handleClearFilter=()=>{this.setState({themeNameFilter:"",siteUrlFilter:""})},this.handleSelectionChange=e=>{this.setState({selectedThemesKeys:e})},this.handleOpenInstall=()=>{this.setState({showInstallDrawer:!0})},this.handleSearchThemes=e=>{const{themesActions:{searchThemes:t}}=this.props;return t(e).then((({data:e})=>e&&e.themes?e.themes:[]))},this.handleSubmitInstall=(e,t)=>{const{themesActions:{installThemes:n}}=this.props;return n(e.map((e=>({name:e,version:null,isUploaded:!1}))),t).then((e=>(e.status===Mp&&this.setState({showInstallDrawer:!1}),e)))},this.handleCloseInstall=()=>{this.setState({showInstallDrawer:!1})},this.handleOpenUpload=()=>{this.setState({showUploadDrawer:!0})},this.handleCloseUpload=()=>{this.setState({showUploadDrawer:!1})},this.handleUninstall=()=>{this.getSelectedThemesForAction()&&this.setState({showUninstallConfirmationDialog:!0})},this.handleSubmitUninstall=()=>{const{themesActions:{uninstallThemes:e}}=this.props;this.setState({showUninstallConfirmationDialog:!1},(()=>{const t=this.getSelectedThemesForAction();this.resetSelection(),t&&e(t)}))},this.handleCloseUninstallConfirmation=()=>{this.setState({showUninstallConfirmationDialog:!1})},this.handleUpdate=()=>{const{themesActions:{updateThemes:e}}=this.props,t=this.getSelectedThemesForAction();this.resetSelection(),t&&e(t)},this.handleSubmitUpload=({uploadFile:e,setId:t,instanceIds:n,isActivateAfterInstallation:s})=>{const{themesActions:{uploadThemeToStorage:a,uploadAndInstallTheme:i,reloadThemes:r},appActions:{addSuccessMessage:o},isAdmin:l,isReseller:c}=this.props;return l||c?a(e,t).then((e=>(e.status===Mp&&e.data&&e.data.assetName&&e.data.assetVersion&&(r([{name:e.data.assetName,version:e.data.assetVersion}]).finally((()=>o((0,L.jsx)(pp,{content:"controllers.index.manage-themes.uploadSuccess"})))),this.setState({showUploadDrawer:!1})),e))):i(e,n,s).then((e=>(e.status===Mp&&this.setState({showUploadDrawer:!1}),e)))},this.handleActivateTheme=e=>{const{themesActions:{activateThemeOnAllInstances:t}}=this.props;t(zM(e))},this.onUpdateTheme=e=>{const{themesActions:{updateThemes:t}}=this.props;t([zM(e)])},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.renderUploadThemeDrawer=()=>{const{isAdmin:e,isReseller:t,sets:n,instances:s}=this.props;return(0,L.jsx)(vC,{onClose:this.handleCloseUpload,onUpload:this.handleSubmitUpload,selectLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.selectLabel"}),drawerTitle:(0,L.jsx)(pp,{content:"list.assets.themesUpload"}),uploadHintForSet:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.selectSetDescription"}),uploadHintForInstances:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.uploadSelectedInstances"}),activateAfterInstallationLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.activateAfterInstall"}),noInstancesSelectedErrorMessage:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.errorNoInstancesSelectedToUpload"}),sets:e?n:[],instances:e||t?[]:s})},this.handleSubmitUploadedAssetInstall=(e,t,n)=>{const{themesActions:{installThemes:s}}=this.props;return s([zM(e)],t,n)},this.handleSubmitUninstallUploadedAsset=e=>{const{themesActions:{uninstallThemes:t}}=this.props;t([zM(e)])},this.handleSubmitRemoveUploadedAsset=e=>{const{themesActions:{removeThemes:t}}=this.props;t([zM(e)])},this.handleOpenSecurityDialog=(e,t=null)=>{const{pushUrl:n}=this.props;n(`${pj}/instancesIds/${e.join(",")}/checkSecurity/1${t?`/activeTab/${t}`:""}`)},this.handleOpenActivateVulnerableThemeConfirmation=e=>{this.setState({showActivateVulnerableThemeConfirmation:!0,activateVulnerableThemeConfirmationThemeId:e})},this.handleCloseActivateVulnerableThemeConfirmation=()=>{this.setState({showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null})},this.renderToolbar=()=>{const{instances:e,isAdmin:t,isReseller:n}=this.props;return(0,L.jsxs)(Ha,{children:[e.length>0&&(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"}),children:(0,L.jsx)(ut,{onClick:this.handleOpenInstall,"data-test-id":"toolbar-install-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonInstall"})})}),(t||n||e.length>0)&&(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.assets.themesUpload"}),children:(0,L.jsx)(ut,{onClick:this.handleOpenUpload,"data-test-id":"toolbar-upload-button",children:(0,L.jsx)(pp,{content:"list.assets.themesUpload"})})}),e.length>0&&(0,L.jsxs)(Ya,{title:(0,L.jsx)(ut,{caret:!0,children:(0,L.jsx)(pp,{content:"list.assets.buttonActions"})}),children:[(0,L.jsx)(ut,{onClick:this.handleUninstall,"data-test-id":"toolbar-uninstall-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonUninstall"})}),(0,L.jsx)(ut,{onClick:this.handleUpdate,"data-test-id":"toolbar-update-button",children:(0,L.jsx)(pp,{content:"list.assets.buttonUpdate"})})]}),(0,L.jsx)(Sa,{}),this.renderFilterButton()]})},this.getFilterButtonConfig=()=>({hasActiveFilter:Boolean(this.state.themeNameFilter.trim())||Boolean(this.state.siteUrlFilter.trim()),onToggle:this.handleToggleFilter}),this.getFilterPanelConfig=()=>({themeNameFilter:this.state.themeNameFilter,siteUrlFilter:this.state.siteUrlFilter,isOpen:this.state.isFilterComponentOpen,onThemeNameChange:this.handleThemeNameFilterChange,onSiteUrlChange:this.handleSiteUrlFilterChange,onClear:this.handleClearFilter,showSiteUrlFilter:!0}),this.renderFilterButton=()=>(0,L.jsx)(GM,Object.assign({},this.getFilterButtonConfig())),this.renderFilterComponent=()=>(0,L.jsx)(LE,Object.assign({},this.getFilterPanelConfig())),this.resetSelection=()=>{this.setState({selectedThemesKeys:[]})},this.getRowKey=e=>`${e.name}-${e.version}-${e.isUploaded}-${e.ownerGuid}`,this.state={selectedThemesKeys:[],isThemesListLoading:!0,showInstallDrawer:!1,showUploadDrawer:!1,showUninstallConfirmationDialog:!1,sortColumn:"title",sortDirection:"ASC",showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null,themeNameFilter:"",siteUrlFilter:"",isFilterComponentOpen:!1}}componentDidMount(){this.handleRefresh()}componentWillUnmount(){const{themesActions:{resetThemesList:e}}=this.props;e()}filterThemes(e){const{search:t}=this.props,{themeNameFilter:n,siteUrlFilter:s}=this.state;let a=e;return a=sE(a,t),a=tE(a,n),a=nE(a,s),a}getSelectedThemesForAction(){const{selectedThemesKeys:e}=this.state,{themes:t,appActions:{addWarningMessage:n}}=this.props;return 0===e.length?(n((0,L.jsx)(pp,{content:"lists.noItemsSelectedToast"})),null):t.filter((t=>kp(e,this.getRowKey(t)))).map((e=>zM(e)))}renderUninstallConfirmationDialog(){return(0,L.jsx)(Wi,{isOpen:!0,buttons:(0,L.jsx)(ut,{onClick:this.handleSubmitUninstall,children:(0,L.jsx)(pp,{content:"list.assets.UninstallThemeConfirmationYes"})}),size:"sm",onClose:this.handleCloseUninstallConfirmation,cancelTitle:(0,L.jsx)(pp,{content:"list.assets.UninstallThemeConfirmationNo"}),children:(0,L.jsx)(pp,{content:"list.assets.themesConfirmOnUninstall"})})}renderInstallDrawer(){const{instances:e}=this.props;return(0,L.jsx)(vj,{onClose:this.handleCloseInstall,onSearchAssets:this.handleSearchThemes,onInstall:this.handleSubmitInstall,drawerTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.installTitleAll"}),headDescription:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.installHeadDescription"}),searchDescription:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.tryToSearch"}),tableTitleTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldName"}),tableVersionTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldVersion"}),tableRatingTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldRating"}),nothingFoundText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.nothingFound"}),selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.selectInstancesHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldUrl"}),instances:e})}renderInstance(e){const t=JM(e.url)||e.name||`Installation ${e.id}`,n=`${pj}/id/${e.id}`;return e.isAssetActive?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(Us,{href:n,onClick:e=>{e.preventDefault(),this.props.pushUrl(n)},children:t})," ",(0,L.jsx)(pp,{content:"list.assets.active"})]}):(0,L.jsx)(Us,{href:n,onClick:e=>{e.preventDefault(),this.props.pushUrl(n)},children:(0,L.jsx)(da,{intent:"muted",children:t})})}renderInstancesColumn(e){return(0,L.jsxs)(R.Fragment,{children:[this.renderUploadedAssetInstallButton(e),this.renderInstancesList(e.instances)]})}renderUploadedAssetInstallButton(e){const{instances:t}=this.props;return 0===t.length?null:(0,L.jsx)(HM,{asset:e,instances:t,selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldUrl"}),activateAfterInstallationText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n)})}renderUploadedAssetMenu(e){const{instances:t}=this.props;return(0,L.jsx)($M,{asset:e,instances:t,selectInstancesText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.installPopupHeadDescription"}),instanceNameListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldUrl"}),uninstallDialogConfirmationText:(0,L.jsx)(pp,{content:"list.assets.UninstallThemeConfirmationDescription"}),uninstallDialogYesButtonText:(0,L.jsx)(pp,{content:"list.assets.UninstallThemeConfirmationYes"}),uninstallDialogNoButtonText:(0,L.jsx)(pp,{content:"list.assets.UninstallThemeConfirmationNo"}),removeDialogConfirmationText:(0,L.jsx)(pp,{content:"list.assets.RemoveThemeConfirmationDescription"}),removeDialogYesButtonText:(0,L.jsx)(pp,{content:"list.assets.RemoveThemeConfirmationYes"}),removeDialogNoButtonText:(0,L.jsx)(pp,{content:"list.assets.RemoveThemeConfirmationNo"}),activateAfterInstallationText:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.activateAfterInstall"}),onSubmitInstall:(t,n)=>this.handleSubmitUploadedAssetInstall(e,t,n),onSubmitUninstall:()=>this.handleSubmitUninstallUploadedAsset(e),onSubmitRemove:()=>this.handleSubmitRemoveUploadedAsset(e)})}renderInstancesList(e){return 0===e.length?"":dj(e.map((e=>this.renderInstance(e))),", ")}renderActivateAction(e){const{publicUrl:t}=this.props,{showActivateVulnerableThemeConfirmation:n,activateVulnerableThemeConfirmationThemeId:s}=this.state;return 0===e.instances.length?null:e.isVulnerable?(0,L.jsx)(qM,{target:(0,L.jsx)(_e,{icon:(0,L.jsx)("img",{src:`${t}images/activate.png`,alt:"Activate",style:{maxWidth:16,maxHeight:16}}),onClick:()=>this.handleOpenActivateVulnerableThemeConfirmation(e.id),children:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldActivate"})}),onActivate:()=>this.handleActivateTheme(e),isOpen:n&&s===e.id,onClose:this.handleCloseActivateVulnerableThemeConfirmation,children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.activateVulnerableThemeOnAllInstancesConfirmation",params:{themeName:`${e.title} ${e.version}`}})})}):(0,L.jsx)(_e,{icon:(0,L.jsx)("img",{src:`${t}images/activate.png`,alt:"Activate",style:{maxWidth:16,maxHeight:16}}),onClick:()=>this.handleActivateTheme(e),children:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldActivate"})})}renderThemesList(){const{themes:e}=this.props,{selectedThemesKeys:t,showInstallDrawer:n,showUploadDrawer:s,showUninstallConfirmationDialog:a,sortColumn:i,sortDirection:r}=this.state,o=[{key:"title",title:(0,L.jsx)(pp,{content:"list.assets.name"}),width:"20%",sortable:!0,sort:(e,t)=>{const n=`${e.title} ${e.version}`,s=`${t.title} ${t.version}`;return n.localeCompare(s)},render:e=>(0,L.jsx)(BM,{asset:e,updateAvailableTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.updateAvailable"}),uploadedTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.custom"}),handleUpdateAsset:this.onUpdateTheme,onOpenSecurityDialog:this.handleOpenSecurityDialog})},{key:"instances",title:(0,L.jsx)(pp,{content:"list.assets.installedAt"}),width:"60%",render:e=>this.renderInstancesColumn(e)},{key:"actions",width:"20%",title:"",render:e=>this.renderActivateAction(e)},{key:"menu",title:"",render:e=>this.renderUploadedAssetMenu(e)}],l=this.filterThemes(e).map((e=>{const t=this.getRowKey(e);return Object.assign(Object.assign({},e),{key:t,id:t})}));return(0,L.jsxs)(R.Fragment,{children:[n&&this.renderInstallDrawer(),s&&this.renderUploadThemeDrawer(),a&&this.renderUninstallConfirmationDialog(),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.themes-list.hint"})}),this.renderToolbar(),(0,L.jsxs)("div",{className:`${this.props.baseClassName}__content-wrapper`,children:[(0,L.jsx)("div",{className:`${this.props.baseClassName}__list-wrapper`,children:(0,L.jsx)(HO,{columns:o,data:l,selection:t,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:i,sortDirection:r,dataTestId:"found-themes-list"})}),this.renderFilterComponent()]})]})}render(){const{isThemesListLoading:e}=this.state;return(0,L.jsxs)(ak,{activeTab:q_,children:[e&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.listLoading"})}),!e&&this.renderThemesList()]})}}ME.propTypes={search:je().string,themes:je().array,instances:je().array,sets:je().array,themesActions:je().shape({resetThemesList:je().func.isRequired,reloadThemes:je().func.isRequired,getThemesList:je().func.isRequired,searchThemes:je().func.isRequired,installThemes:je().func.isRequired,uninstallThemes:je().func.isRequired,removeThemes:je().func.isRequired,updateThemes:je().func.isRequired,uploadThemeToStorage:je().func.isRequired,uploadAndInstallTheme:je().func.isRequired,activateThemeOnAllInstances:je().func.isRequired,installThemesFinished:je().func.isRequired}).isRequired,appActions:je().shape({addSuccessMessage:je().func.isRequired,addWarningMessage:je().func.isRequired}).isRequired,publicUrl:je().string.isRequired,isAdmin:je().bool,isReseller:je().bool,pushUrl:je().func.isRequired,baseClassName:je().string},ME.defaultProps={search:"",themes:null,instances:null,sets:[],isAdmin:!0,isReseller:!1,baseClassName:`${th}themes-page`};const EE=Fc((e=>({search:e.app.search,themes:e.themes.list,instances:e.themes.instances,sets:e.themes.sets,publicUrl:e.app.urls.publicUrl,isAdmin:e.app.options.isAdmin,isReseller:e.app.options.isReseller})),(e=>({themesActions:(0,Cb.zH)(d,e),appActions:(0,Cb.zH)(t,e),pushUrl:t=>e(gu(t))})))(_k(ME)),RE="sets/UPDATE_SETS_PAGE",UE="sets/RESET_SETS_PAGE",NE="sets/ADD_SET",FE="sets/REMOVE_SETS",BE="sets/RENAME_SET",YE="sets/CHANGE_PLUGIN_ACTIVATION_STATE_STARTED",HE="sets/CHANGE_PLUGIN_ACTIVATION_STATE_FINISHED",VE="sets/CHANGE_THEME_ACTIVATION_STATE_STARTED",WE="sets/CHANGE_THEME_ACTIVATION_STATE_FINISHED",$E="sets/ADD_PLUGINS_TO_SET",zE="sets/ADD_THEMES_TO_SET",qE="sets/UPLOAD_PLUGIN_TO_SET",GE="sets/UPLOAD_THEME_TO_SET",KE="sets/REMOVE_PLUGIN_FROM_SET",QE="sets/REMOVE_THEME_FROM_SET",JE="sets/REMOVE_SET_FINISHED",XE="sets/REMOVE_ALL_PLUGINS_FROM_SET_FINISHED",ZE="sets/REMOVE_ALL_THEMES_FROM_SET_FINISHED",eR=fp(RE,"sets","instances"),tR=()=>dS(bf.sets.getSetsList,(e=>eR(e.data.sets,e.data.instances))),nR=fp(UE),sR=fp(NE,"addedSet"),aR=e=>dS((()=>bf.sets.addSet(e)),(e=>sR(e.data.addedSet))),iR=fp(FE,"removedSetIds"),rR=e=>dS((()=>bf.sets.removeSets(e)),(e=>iR(e.data.removedSetIds))),oR=fp(BE,"setId","newName"),lR=(e,t)=>dS((()=>bf.sets.renameSet(e,t)),(e=>oR(e.data.setId,e.data.newName))),cR=fp($E,"setId","plugins"),uR=(e,t)=>dS((()=>bf.sets.addPluginsToSet(e,t)),(e=>cR(e.data.setId,e.data.plugins))),dR=fp(YE,"setId","assetId"),pR=fp(HE,"setId","assetId","active"),hR=fp(VE,"setId","assetId"),mR=fp(WE,"setId","assetId","active"),gR=(e,t,n)=>s=>(s(dR(e,t)),dS((()=>bf.sets.setPluginActivationState(e,t,n)),(e=>pR(e.data.setId,t,n)))(s)),fR=(e,t,n)=>s=>(s(hR(e,t)),dS((()=>bf.sets.setThemeActivationState(e,t,n)),(e=>mR(e.data.setId,t,n)))(s)),bR=fp(zE,"setId","themes"),vR=(e,t)=>dS((()=>bf.sets.addThemesToSet(e,t)),(e=>bR(e.data.setId,e.data.themes))),yR=fp(KE,"setId","pluginId"),SR=(e,t)=>dS((()=>bf.sets.removePluginFromSet(e,t)),(e=>yR(e.data.setId,e.data.pluginId))),wR=fp(QE,"setId","themeId"),xR=(e,t)=>dS((()=>bf.sets.removeThemeFromSet(e,t)),(e=>wR(e.data.setId,e.data.themeId))),AR=fp(qE,"setId","pluginId","pluginTitle","pluginName"),_R=(e,t)=>dS((()=>bf.plugins.uploadPluginToStorage(e,t)),(e=>AR(e.data.setId,e.data.assetId,e.data.assetTitle,e.data.assetName))),kR=fp(GE,"setId","themeId","themeTitle","themeName"),jR=(e,t)=>dS((()=>bf.themes.uploadThemeToStorage(e,t)),(e=>kR(e.data.setId,e.data.assetId,e.data.assetTitle,e.data.assetName))),CR=(e,t)=>dS((()=>bf.sets.installInto(e,t)),(e=>rT(e.data.tasks))),IR=fp("sets/SEARCH_PLUGINS_FINISHED"),TR=e=>dS((()=>bf.sets.searchPlugins(e)),(()=>IR())),DR=fp("sets/SEARCH_THEMES_FINISHED"),PR=e=>dS((()=>bf.sets.searchThemes(e)),(()=>DR())),OR=fp(JE,"setId"),LR=e=>dS((()=>bf.sets.removeSet(e)),(e=>OR(e.data.setId))),MR=fp(XE,"setId"),ER=e=>dS((()=>bf.sets.removeAllPluginsFromSet(e)),(e=>MR(e.data.setId))),RR=fp(ZE,"setId"),UR=e=>dS((()=>bf.sets.removeAllThemesFromSet(e)),(e=>RR(e.data.setId))),NR=fp("sets/GET_PLUGIN_DESCRIPTION_FINISHED"),FR=e=>dS((()=>bf.sets.getPluginDescription(e)),(()=>NR())),BR=fp("sets/GET_THEME_DESCRIPTION_FINISHED"),YR=e=>dS((()=>bf.sets.getThemeDescription(e)),(()=>BR())),HR=()=>e=>e({type:"sets/INSTALL_SET_FINISHED"}),VR=Fc((e=>({publicUrl:e.app.urls.publicUrl})))((e=>{const{publicUrl:t,uploadedTitle:n,asset:s}=e;return(0,L.jsxs)(L.Fragment,{children:[s.isUploaded&&(0,L.jsx)(Xe,{title:n,children:(0,L.jsx)("img",{alt:"Icon for manually uploaded asset",src:`${t}images/uploaded.png`,style:{marginRight:"5px"}})}),s.title]})}));class WR extends R.Component{constructor(e){super(e),this.handleSearchTermChange=e=>{this.setState({searchTerm:e.currentTarget.value})},this.handleSearchKeyDown=e=>{"Enter"===e.key&&this.isSearchCanBeSubmitted()&&this.handleSearch()},this.handleSearch=()=>{const{onSearchAssets:e,onSelectedAssetsChange:t}=this.props,{searchTerm:n}=this.state;t([]),this.setState({isSearching:!0,availableAssets:null},(()=>{e(n).then((e=>{this.setState({availableAssets:e})})).finally((()=>{this.setState({isSearching:!1})}))}))},this.handleSelectionChange=e=>{const{onSelectedAssetsChange:t}=this.props,{availableAssets:n}=this.state;t((null==n?void 0:n.filter(((t,n)=>kp(e,n.toString()))))||[]),this.setState({selectedAssetIndexes:e})},this.renderAvailableAssetsList=()=>{const{availableAssets:e}=this.state;return e&&e.length>0?this.renderAvailableAssetsListWithItems():this.renderAvailableAssetsEmptyList()},this.state={availableAssets:null,selectedAssetIndexes:[],isSearching:!1,searchTerm:""}}renderRatingColumn(e){return null===e.rating||void 0===e.rating?null:(0,L.jsx)(Il,{value:this.normalizeRating(e.rating)})}normalizeRating(e){return e/100*5}renderTitleColumn(e){const{uploadedTitle:t,alreadyPresentedAssets:n,translate:s}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(VR,{asset:e,uploadedTitle:t})," ",kp(n,e.name)&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"manage-sets.duplicateItemHint"})})," "]}),e.description&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"info-circle","aria-label":s("list-ui.instances.icons.info.ariaLabel")}),children:e.description})]})}renderAvailableAssetsListWithItems(){const{availableAssets:e,selectedAssetIndexes:t}=this.state,{alreadyPresentedAssets:n,tableTitleTitle:s,tableRatingTitle:a,blockedPlugins:i}=this.props,r=[];r.push({key:"title",title:s,render:e=>(0,L.jsxs)(L.Fragment,{children:[i.includes(e.name)&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})}),r.push({key:"rating",title:a});const o=null==e?void 0:e.map(((e,t)=>({key:t.toString(),name:e.name,disabled:kp(n,e.name)||i.includes(e.name),title:this.renderTitleColumn(e),rating:this.renderRatingColumn(e)})));return(0,L.jsx)(uo,{data:o,columns:r,selection:t,onSelectionChange:this.handleSelectionChange,"data-test-id":yv})}renderAvailableAssetsEmptyList(){const{nothingFoundText:e}=this.props;return(0,L.jsx)(_a,{children:e})}isSearchCanBeSubmitted(){const{isSearching:e}=this.state;return!e&&this.isSearchFieldValid()}isSearchFieldValid(){const{searchTerm:e}=this.state;return e.trim().length>=3}renderSearchingProgress(){return(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list.assets.loading"})})}render(){const{availableAssets:e,searchTerm:t,isSearching:n}=this.state,{searchDescription:s}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(_a,{children:[(0,L.jsx)(Os,{value:t,onChange:this.handleSearchTermChange,onKeyDown:this.handleSearchKeyDown,"data-test-id":bv})," ",(0,L.jsx)(ut,{disabled:!this.isSearchCanBeSubmitted(),icon:"search",onClick:this.handleSearch,"data-test-id":vv}),(0,L.jsx)("br",{}),(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"list.sets.minAssetSearchLength",params:{count:3}})})]}),(0,L.jsx)(_a,{children:s}),n&&this.renderSearchingProgress(),e&&this.renderAvailableAssetsList()]})}}const $R=Fc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(Nv(WR));class zR extends R.Component{constructor(e){super(e),this.handleSelectedAssetsChange=e=>{this.setState({selectedAssets:e})},this.handleSubmitAdd=()=>{const{onAddAssets:e}=this.props,{selectedAssets:t,isAdding:n}=this.state;n||(this.setState({isAdding:!0}),e(t).finally((()=>this.setState({isAdding:!1}))))},this.state={selectedAssets:[],isAdding:!1}}render(){const{selectedAssets:e,isAdding:t}=this.state,{drawerTitle:n,hint:s,onClose:a,dataType:i,onSearchAssets:r,searchDescription:o,tableTitleTitle:l,tableRatingTitle:c,nothingFoundText:u,alreadyPresentedAssets:d,uploadedTitle:p}=this.props,h={onSubmit:e.length>0?this.handleSubmitAdd:void 0,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"manage-sets.buttonInstall"}),"data-test-id":"add-asset-drawer-add-button",disabled:0===e.length||t,state:t?"loading":"active"},cancelButton:{disabled:t,"data-test-id":"add-asset-drawer-cancel-button"}};return(0,L.jsxs)(cr,{title:n,onClose:a,"data-type":i,isOpen:!0,backButton:!0,form:h,size:"sm",children:[(0,L.jsx)(_a,{children:s}),(0,L.jsx)($R,{onSearchAssets:r,searchDescription:o,tableTitleTitle:l,tableRatingTitle:c,nothingFoundText:u,onSelectedAssetsChange:this.handleSelectedAssetsChange,alreadyPresentedAssets:d,uploadedTitle:p})]})}}const qR=zR;class GR extends R.Component{constructor(e){super(e),this.handleAcceptUploadFiles=e=>{this.setState({uploadFile:e[0]})},this.handleSubmitUpload=()=>{const{onUpload:e}=this.props,{uploadFile:t,isUploading:n}=this.state;n||(t?(this.setState({isUploading:!0,formErrors:void 0}),e(t).then((e=>{e.status===Ep&&e.formErrors&&this.setState({formErrors:{fileUpload:e.formErrors}})})).finally((()=>this.setState({isUploading:!1})))):this.setState({formErrors:{fileUpload:{noFile:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.errorEmptyArchive"})}}}))},this.state={uploadFile:null,isUploading:!1,formErrors:void 0}}getUploadFileHint(){const{uploadFile:e}=this.state;return e?e.name:(0,L.jsx)(pp,{content:"list.assets.uploadNoFileSelected"})}render(){const{isUploading:e,formErrors:t}=this.state,{drawerTitle:n,hint:s,uploadButtonTitle:a,selectLabel:i,onClose:r,dataType:o,baseClassName:l}=this.props,c={onSubmit:this.handleSubmitUpload,applyButton:!1,submitButton:{children:a,state:e?"loading":"active",disabled:e},cancelButton:{disabled:e}};return(0,L.jsx)(cr,{title:n,onClose:r,"data-type":o,isOpen:!0,backButton:!0,form:c,size:"sm",children:(0,L.jsxs)(_a,{children:[(0,L.jsx)(Li,{label:i,description:this.getUploadFileHint(),errors:t&&t.hasOwnProperty("fileUpload")?t.fileUpload:void 0,children:(0,L.jsx)(hC,{onDrop:this.handleAcceptUploadFiles,multiple:!1,children:({getRootProps:e,getInputProps:t})=>(0,L.jsxs)("div",Object.assign({},e(),{className:`${l}__dropzone`,children:[(0,L.jsx)("input",Object.assign({},t())),(0,L.jsx)(ut,{children:(0,L.jsx)(pp,{content:"list.assets.uploadBrowseButton"})})]}))})}),(0,L.jsx)(_a,{children:s})]})})}}GR.defaultProps={baseClassName:`${th}upload-asset-drawer`};const KR=GR;class QR extends R.Component{constructor(e){super(e),this.handleOpenAddCatalogAssetDrawer=()=>{this.setState({isShowAddCatalogAssetDrawer:!0})},this.handleOpenUploadAssetDrawer=()=>{this.setState({isShowUploadAssetDrawer:!0})},this.handleAddAssets=e=>{const{onAddAssets:t}=this.props;return t(e.map((e=>({id:e.id,name:e.name,title:e.title,isUploaded:e.isUploaded})))).then((e=>(e.status===Mp&&this.setState({isShowAddCatalogAssetDrawer:!1}),e)))},this.handleUploadAsset=e=>{const{onUpload:t}=this.props;return t(e).then((e=>(e.status===Mp&&this.setState({isShowUploadAssetDrawer:!1}),e)))},this.handleCloseAddCatalogAssetDrawer=()=>{this.setState({isShowAddCatalogAssetDrawer:!1})},this.handleCloseUploadAssetDrawer=()=>{this.setState({isShowUploadAssetDrawer:!1})},this.handleLoadAssetInfo=e=>{const{getAssetDescription:t}=this.props,{assetDescriptions:n}=this.state;this.setState({assetIdOfOpenedDescriptionHint:e},(()=>{void 0===n[e]&&t(e).then((t=>{t.data.description&&this.setState((n=>({assetDescriptions:Object.assign(Object.assign({},n.assetDescriptions),{[e]:t.data.description})})))}))}))},this.handleCloseAssetDescriptionHint=()=>{this.setState({assetIdOfOpenedDescriptionHint:null})},this.state={isShowAddCatalogAssetDrawer:!1,isShowUploadAssetDrawer:!1,assetDescriptions:{},assetIdOfOpenedDescriptionHint:null}}renderAddAssetDrawer(){const{assetsList:e,addAssetFromCatalogDrawerTitle:t,addAssetFromCatalogDrawerHint:n,addAssetFromCatalogDrawerDataType:s,onSearchAssets:a,addAssetFromCatalogDrawerSearchDescription:i,addAssetFromCatalogDrawerTableTitleTitle:r,addAssetFromCatalogDrawerTableRatingTitle:o,addAssetFromCatalogDrawerNothingFoundText:l,uploadedTitle:c}=this.props,u=e.map((e=>e.name));return(0,L.jsx)(qR,{drawerTitle:t,hint:n,onClose:this.handleCloseAddCatalogAssetDrawer,dataType:s,onSearchAssets:a,searchDescription:i,tableTitleTitle:r,tableRatingTitle:o,nothingFoundText:l,onAddAssets:this.handleAddAssets,alreadyPresentedAssets:u,uploadedTitle:c})}renderUploadAssetDrawer(){const{uploadAssetDrawerTitle:e,uploadAssetDrawerHint:t,uploadAssetSelectLabel:n,uploadAssetDrawerDataType:s,uploadAssetDrawerUploadButtonTitle:a}=this.props;return(0,L.jsx)(KR,{drawerTitle:e,hint:t,selectLabel:n,uploadButtonTitle:a,onUpload:this.handleUploadAsset,onClose:this.handleCloseUploadAssetDrawer,dataType:s})}renderToolbar(){const{addButtonTitle:e,uploadButtonTitle:t}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:e,children:(0,L.jsx)(ut,{onClick:this.handleOpenAddCatalogAssetDrawer,"data-test-id":"asset-drawer-add-asset-button",children:e})}),(0,L.jsx)(Ya,{title:t,children:(0,L.jsx)(ut,{onClick:this.handleOpenUploadAssetDrawer,"data-test-id":"asset-drawer-upload-asset-button",children:t})})]})}renderDrawerContents(){const{headText:e}=this.props;return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(_a,{children:e}),this.renderToolbar(),this.renderAssetsList()]})}renderTitleColumn(e){const{uploadedTitle:t,translate:n}=this.props,{assetDescriptions:s,assetIdOfOpenedDescriptionHint:a}=this.state,i=s[e.id];return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(VR,{asset:e,uploadedTitle:t}),!e.isUploaded&&(0,L.jsxs)(R.Fragment,{children:[" ",(0,L.jsxs)(Ks,{visible:e.id===a,target:(0,L.jsx)(_e,{icon:"circle-info",onClick:()=>this.handleLoadAssetInfo(e.id),"aria-label":n("manage-sets.loadingAssetDescription.ariaLabel")}),onClose:this.handleCloseAssetDescriptionHint,children:[void 0===i&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"manage-sets.loadingAssetDescription"})}),void 0!==i&&(0,L.jsx)(da,{children:i})]})]})]})}renderAssetsList(){const{assetsList:e,isAssetProcessing:t,onRemoveAsset:n,onChangeAssetActivationStatus:s,blockedPlugins:a,translate:i}=this.props;if(0===e.length)return(0,L.jsxs)(_a,{children:[(0,L.jsx)("br",{}),(0,L.jsx)(pp,{content:"manage-sets.noItems"})]});const r=[{key:"title",title:(0,L.jsx)(pp,{content:"list.sets.assetName"}),render:e=>(0,L.jsxs)(R.Fragment,{children:[e.isBlocked&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.install-plugin.pluginBlacklistedError"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",e.title]})},{key:"state",title:"State",render:e=>e.isBlocked?(0,L.jsx)(pp,{content:"list.sets.blocked-plugin-state"}):(0,L.jsx)(Dl,{checked:e.asset.active,"data-test-id":"toggle-asset-activation-status","data-asset-name":e.asset.name,onChange:t=>s(e.asset.id,t),loading:t(e.asset.id)})},{key:"remove",title:"",width:"24px"}],o=e.map((e=>({asset:e,title:this.renderTitleColumn(e),remove:(0,L.jsx)(_e,{icon:"cross-mark",onClick:()=>n(e.id),"aria-label":i("controllers.index.detail.removeButton")}),isBlocked:a.includes(e.name)})));return(0,L.jsx)(uo,{columns:r,data:o})}render(){const{drawerTitle:e,onClose:t,dataType:n}=this.props,{isShowAddCatalogAssetDrawer:s,isShowUploadAssetDrawer:a}=this.state;return(0,L.jsxs)(cr,{title:e,onClose:t,"data-type":n,isOpen:!0,children:[this.renderDrawerContents(),s&&this.renderAddAssetDrawer(),a&&this.renderUploadAssetDrawer()]})}}QR.propTypes={assetsList:je().array.isRequired,drawerTitle:je().string.isRequired,onClose:je().func.isRequired,dataType:je().string.isRequired,headText:je().string.isRequired,addButtonTitle:je().string.isRequired,uploadButtonTitle:je().string.isRequired,addAssetFromCatalogDrawerTitle:je().node.isRequired,addAssetFromCatalogDrawerHint:je().node.isRequired,addAssetFromCatalogDrawerDataType:je().string.isRequired,isAssetProcessing:je().func.isRequired,onChangeAssetActivationStatus:je().func.isRequired,onSearchAssets:je().func.isRequired,onRemoveAsset:je().func.isRequired,onAddAssets:je().func.isRequired,addAssetFromCatalogDrawerSearchDescription:je().node.isRequired,addAssetFromCatalogDrawerTableTitleTitle:je().node.isRequired,addAssetFromCatalogDrawerTableRatingTitle:je().node.isRequired,addAssetFromCatalogDrawerNothingFoundText:je().node.isRequired,uploadAssetDrawerTitle:je().node.isRequired,uploadAssetDrawerHint:je().node.isRequired,uploadAssetSelectLabel:je().node.isRequired,uploadAssetDrawerUploadButtonTitle:je().node.isRequired,uploadAssetDrawerDataType:je().string.isRequired,onUpload:je().func.isRequired,getAssetDescription:je().func.isRequired,uploadedTitle:je().node.isRequired,blockedPlugins:je().array.isRequired,translate:je().func};const JR=Fc((e=>({blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})))(Nv(QR));class XR extends R.Component{constructor(e){super(e),this.handleOpenAddDrawer=()=>this.setState({isShowAddDrawer:!0}),this.handleRemoveAsset=e=>this.props.onRemoveAsset(e),this.handleCloseAddDrawer=()=>{this.setState({isShowAddDrawer:!1})},this.state={isShowAddDrawer:!1}}renderAddAssetDrawer(){const{addAssetDrawerDataType:e,addAssetDrawerTitle:t,addAssetDrawerHeadText:n,addAssetDrawerAddButtonTitle:s,addAssetDrawerUploadButtonTitle:a,assetsList:i,addAssetFromCatalogDrawerTitle:r,addAssetFromCatalogDrawerHint:o,addAssetFromCatalogDrawerDataType:l,onSearchAssets:c,onAddAssets:u,isAssetProcessing:d,onChangeAssetActivationStatus:p,addAssetFromCatalogDrawerSearchDescription:h,addAssetFromCatalogDrawerTableTitleTitle:m,addAssetFromCatalogDrawerTableRatingTitle:g,addAssetFromCatalogDrawerNothingFoundText:f,uploadAssetDrawerTitle:b,uploadAssetDrawerHint:v,uploadAssetSelectLabel:y,uploadAssetDrawerUploadButtonTitle:S,uploadAssetDrawerDataType:w,onUpload:x,getAssetDescription:A,uploadedTitle:_}=this.props;return(0,L.jsx)(JR,{drawerTitle:t,headText:n,addButtonTitle:s,uploadButtonTitle:a,onClose:this.handleCloseAddDrawer,dataType:e,assetsList:i,addAssetFromCatalogDrawerTitle:r,addAssetFromCatalogDrawerHint:o,addAssetFromCatalogDrawerDataType:l,onSearchAssets:c,onRemoveAsset:this.handleRemoveAsset,onAddAssets:u,isAssetProcessing:d,onChangeAssetActivationStatus:p,addAssetFromCatalogDrawerSearchDescription:h,addAssetFromCatalogDrawerTableTitleTitle:m,addAssetFromCatalogDrawerTableRatingTitle:g,addAssetFromCatalogDrawerNothingFoundText:f,uploadAssetDrawerTitle:b,uploadAssetDrawerHint:v,uploadAssetSelectLabel:y,uploadAssetDrawerUploadButtonTitle:S,uploadAssetDrawerDataType:w,onUpload:x,getAssetDescription:A,uploadedTitle:_})}renderAddAssetAction(){const{setId:e,setType:t,addActionTitle:n,isUnpaid:s}=this.props;return(0,L.jsx)(Us,{onClick:this.handleOpenAddDrawer,"data-test-set-id":e,"data-test-set-type":t,"data-test-set-action":"button-add-asset",disabled:s,children:n})}renderAssetTitle(e){const{uploadedTitle:t}=this.props;return e.isUploaded?(0,L.jsx)(VR,{asset:e,uploadedTitle:t}):e.title}renderAssetsList(e){const{isUnpaid:t,blockedPlugins:n}=this.props,s=[{key:"title",title:(0,L.jsx)(pp,{content:"list.sets.assetName"}),render:e=>(0,L.jsxs)(R.Fragment,{children:[e.isBlocked&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",e.title]})},{key:"remove",title:"",width:"24px"}],a=e.map((e=>({key:e.id,isBlocked:n.includes(e.name),title:this.renderAssetTitle(e),remove:(0,L.jsx)(ut,{ghost:!0,icon:"cross-mark",onClick:()=>this.handleRemoveAsset(e.id),disabled:t})})));return(0,L.jsx)(uo,{columns:s,data:a,vertical:!1})}renderAssetColumn(){const{assetsList:e,isExpanded:t,onToggleExpanded:n}=this.props;return 1===e.length?(0,L.jsxs)(R.Fragment,{children:[e[0].title," [",this.renderAddAssetAction()," ]"]}):e.length>1?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(_e,{onClick:n,children:(0,L.jsx)(pp,{content:"list.sets.itemsSetCount",params:{total:e.length}})})," [",this.renderAddAssetAction()," ]",t&&this.renderAssetsList(e)]}):this.renderAddAssetAction()}render(){const{isShowAddDrawer:e}=this.state;return(0,L.jsxs)(R.Fragment,{children:[e&&this.renderAddAssetDrawer(),this.renderAssetColumn()]})}}XR.propTypes={setId:je().number.isRequired,setType:je().string.isRequired,assetsList:je().array.isRequired,isExpanded:je().bool,onToggleExpanded:je().func.isRequired,addActionTitle:je().node.isRequired,addAssetDrawerDataType:je().node.isRequired,addAssetDrawerTitle:je().node.isRequired,addAssetDrawerHeadText:je().node.isRequired,addAssetDrawerAddButtonTitle:je().node.isRequired,addAssetDrawerUploadButtonTitle:je().node.isRequired,addAssetFromCatalogDrawerHint:je().node.isRequired,addAssetFromCatalogDrawerTitle:je().node.isRequired,isAssetProcessing:je().func.isRequired,onChangeAssetActivationStatus:je().func.isRequired,addAssetFromCatalogDrawerDataType:je().string.isRequired,onSearchAssets:je().func.isRequired,onAddAssets:je().func.isRequired,onRemoveAsset:je().func.isRequired,addAssetFromCatalogDrawerSearchDescription:je().node.isRequired,addAssetFromCatalogDrawerTableTitleTitle:je().node.isRequired,addAssetFromCatalogDrawerTableRatingTitle:je().node.isRequired,addAssetFromCatalogDrawerNothingFoundText:je().node.isRequired,uploadAssetDrawerTitle:je().node.isRequired,uploadAssetDrawerHint:je().node.isRequired,uploadAssetSelectLabel:je().node.isRequired,uploadAssetDrawerUploadButtonTitle:je().node.isRequired,uploadAssetDrawerDataType:je().string.isRequired,onUpload:je().func.isRequired,getAssetDescription:je().func.isRequired,isUnpaid:je().bool.isRequired,uploadedTitle:je().node.isRequired,blockedPlugins:je().array},XR.defaultProps={isExpanded:!1,blockedPlugins:[]};const ZR=XR,eU=e=>{const{onSubmitRemove:t,onCancelRemove:n,buttonSubmitTitle:s,buttonCancelTitle:a,confirmationText:i}=e;return(0,L.jsx)(Wi,{isOpen:!0,buttons:(0,L.jsx)(ut,{onClick:t,children:s}),size:"sm",onClose:n,cancelTitle:a,children:i})},tU=Fc((e=>({instances:e.sets.instances||[]})))((e=>{const{set:t,instances:n,onInstallSetInto:s,onSubmitRemoveSet:a,onSubmitRemoveAllPlugins:i,onSubmitRemoveAllThemes:r,isUnpaid:o}=e,[l,c]=(0,R.useState)(!1),[u,d]=(0,R.useState)(!1),[p,h]=(0,R.useState)(!1),m=[];n.length>0&&(t.plugins.length>0||t.themes.length>0)&&(m.push((0,L.jsx)(Yn,{onClick:()=>s(),children:(0,L.jsx)(pp,{content:"list.sets.installInto"})},"installInto")),m.push((0,L.jsx)(Fn,{},"divider-1")));const g=t.plugins.length>0,f=t.themes.length>0;(g||f)&&(g&&m.push((0,L.jsx)(Yn,{onClick:()=>d(!0),disabled:o,children:(0,L.jsx)(pp,{content:"list.sets.removeAllPlugins"})},"removeAllPlugins")),f&&m.push((0,L.jsx)(Yn,{onClick:()=>h(!0),disabled:o,children:(0,L.jsx)(pp,{content:"list.sets.removeAllThemes"})},"removeAllThemes")),m.push((0,L.jsx)(Fn,{},"divider-2"))),m.push((0,L.jsx)(Yn,{onClick:()=>c(!0),disabled:o,children:(0,L.jsx)(pp,{content:"list.sets.removeSet"})},"removeSet"));const b=(0,L.jsx)(aa,{children:m});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(VM,{menu:b}),l&&(0,L.jsx)(eU,{onSubmitRemove:()=>{c(!1),a()},onCancelRemove:()=>c(!1),buttonSubmitTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveSetConfirmationYes"}),buttonCancelTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveSetConfirmationNo"}),confirmationText:(0,L.jsx)(pp,{content:"list.sets.RemoveSetConfirmationDescription",unsafe:!0,params:{setName:t.name}})}),u&&(0,L.jsx)(eU,{onSubmitRemove:()=>{d(!1),i()},onCancelRemove:()=>d(!1),buttonSubmitTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveAllPluginsConfirmationYes"}),buttonCancelTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveAllPluginsConfirmationNo"}),confirmationText:(0,L.jsx)(pp,{content:"list.sets.RemoveAllPluginsConfirmationDescription",unsafe:!0,params:{setName:t.name}})}),p&&(0,L.jsx)(eU,{onSubmitRemove:()=>{h(!1),r()},onCancelRemove:()=>h(!1),buttonSubmitTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveAllThemesConfirmationYes"}),buttonCancelTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveAllThemesConfirmationNo"}),confirmationText:(0,L.jsx)(pp,{content:"list.sets.RemoveAllThemesConfirmationDescription",unsafe:!0,params:{setName:t.name}})})]})}));class nU extends R.Component{constructor(e){super(e),this.handleRefresh=()=>{const{sets:e,setsActions:{getSetsList:t}}=this.props;this.setState({isSetsListLoading:!0}),t().finally((()=>{this.setState({isSetsListLoading:!1})}))},this.handleShowRemoveSetsConfirmation=()=>{this.setState({isShowRemoveSetsConfirmation:!0})},this.handleCloseRemoveSetsConfirmation=()=>{this.setState({isShowRemoveSetsConfirmation:!1})},this.handleSubmitRemoveSets=()=>{const{setsActions:{removeSets:e},appActions:{addSuccessMessage:t}}=this.props,n=this.getSelectedSetIdsForAction();null!==n&&e(n).then((()=>t((0,L.jsx)(pp,{content:"controllers.index.remove-set.removeSuccess"})))).finally((()=>{this.resetSelection(),this.handleCloseRemoveSetsConfirmation()}))},this.handleRemove=()=>{null!==this.getSelectedSetIdsForAction()&&this.handleShowRemoveSetsConfirmation()},this.handleAdd=()=>{this.setState({isShowCreateSetDrawer:!0,addSetName:""})},this.handleAddSetNameChange=e=>{this.setState({addSetName:e})},this.handleCloseAddDrawer=()=>{this.setState({isShowCreateSetDrawer:!1,formErrors:null})},this.handleSubmitAdd=()=>{const{setsActions:{addSet:e},appActions:{addSuccessMessage:t}}=this.props,{addSetName:n,isAdding:s}=this.state;s||this.setState({formErrors:null,isAdding:!0},(()=>{e(n).then((e=>{e.status===Ep&&e.data&&e.data.formErrors?this.setState({formErrors:e.data.formErrors}):e.status===Mp&&(t((0,L.jsx)(pp,{content:"controllers.index.add-set.addSuccess"})),this.setState({isShowCreateSetDrawer:!1}))})).finally((()=>this.setState({isAdding:!1})))}))},this.handleSelectionChange=e=>{this.setState({selectedSetIds:e})},this.resetSelection=()=>{this.setState({selectedSetIds:[]})},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.renderToolbar=()=>(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.sets.buttonAdd"}),children:(0,L.jsx)(ut,{onClick:this.handleAdd,"data-test-id":"toolbar-create-button",disabled:this.props.isUnpaid,children:(0,L.jsx)(pp,{content:"list.sets.buttonAdd"})})}),(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"list.sets.buttonRemove"}),children:(0,L.jsx)(ut,{onClick:this.handleRemove,"data-test-id":"toolbar-remove-button",disabled:this.props.isUnpaid,children:(0,L.jsx)(pp,{content:"list.sets.buttonRemove"})})})]}),this.handleInPlaceRenameSetNameChanged=e=>{this.setState({inPlaceRenameSetName:e.target.value})},this.handleCloseInPlaceRename=()=>{this.setState({inPlaceRenameOpenedSetId:null,inPlaceRenameSetName:""})},this.handleInPlaceRename=()=>{const{sets:e,setsActions:{renameSet:t},appActions:{addSuccessMessage:n}}=this.props,{inPlaceRenameOpenedSetId:s,inPlaceRenameSetName:a}=this.state;e.find((e=>e.id===s)).name.trim()===a.trim()?this.handleCloseInPlaceRename():t(s,a).then((e=>{e.status===Mp&&(this.handleCloseInPlaceRename(),n((0,L.jsx)(pp,{content:"manage-sets.setRenamedSuccessfully"})))}))},this.handleInPlaceRenameKeyDown=e=>{"Enter"===e.key&&this.isInPlaceRenameCanBeSubmitted()?this.handleInPlaceRename():"Escape"===e.key&&this.handleInPlaceRenameCancel()},this.handleSearchPlugins=e=>{const{setsActions:{searchPlugins:t}}=this.props;return t(e).then((e=>e&&e.data&&e.data.plugins?e.data.plugins:null))},this.handleSearchThemes=e=>{const{setsActions:{searchThemes:t}}=this.props;return t(e).then((e=>e&&e.data&&e.data.themes?e.data.themes:null))},this.handleAddPlugins=(e,t)=>{const{setsActions:{addPluginsToSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.pluginAddedToSet"})),e)))},this.handleChangePluginActivationStatus=(e,t,n)=>{const{setsActions:{setPluginActivationState:s},appActions:{addSuccessMessage:a}}=this.props;return s(e,t,n).then((e=>(e.status===Mp&&a(n?(0,L.jsx)(pp,{content:"manage-sets.pluginWasActivatedByDefaultForSet"}):(0,L.jsx)(pp,{content:"manage-sets.pluginWasDeactivatedByDefaultForSet"})),e)))},this.handleChangeThemeActivationStatus=(e,t,n)=>{const{setsActions:{setThemeActivationState:s},appActions:{addSuccessMessage:a}}=this.props;return s(e,t,n).then((e=>(e.status===Mp&&a(n?(0,L.jsx)(pp,{content:"manage-sets.themeWasActivatedByDefaultForSet"}):(0,L.jsx)(pp,{content:"manage-sets.themeWasDeactivatedByDefaultForSet"})),e)))},this.handleAddThemes=(e,t)=>{const{setsActions:{addThemesToSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.themeAddedToSet"})),e)))},this.handleSubmitUploadPlugin=(e,t)=>{const{setsActions:{uploadPlugin:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.pluginUploadedToSet"})),e)))},this.handleSubmitUploadTheme=(e,t)=>{const{setsActions:{uploadTheme:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.themeUploadedToSet"})),e)))},this.handleRemovePlugin=(e,t)=>{const{setsActions:{removePluginFromSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.pluginRemovedFromSet"})),e)))},this.handleRemoveTheme=(e,t)=>{const{setsActions:{removeThemeFromSet:n},appActions:{addSuccessMessage:s}}=this.props;return n(e,t).then((e=>(e.status===Mp&&s((0,L.jsx)(pp,{content:"manage-sets.themeRemovedFromSet"})),e)))},this.handleRemoveSet=e=>{const{setsActions:{removeSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===Mp&&n((0,L.jsx)(pp,{content:"manage-sets.setRemoved",params:{setName:e.name}}))}))},this.handleRemoveAllPlugins=e=>{const{setsActions:{removeAllPluginsFromSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===Mp&&n((0,L.jsx)(pp,{content:"manage-sets.allPluginsRemovedFromSet",params:{setName:e.name}}))}))},this.handleRemoveAllThemes=e=>{const{setsActions:{removeAllThemesFromSet:t},appActions:{addSuccessMessage:n}}=this.props;t(e.id).then((t=>{t.status===Mp&&n((0,L.jsx)(pp,{content:"manage-sets.allThemesRemovedFromSet",params:{setName:e.name}}))}))},this.renderMenu=e=>(0,L.jsx)(tU,{set:e,onInstallSetInto:()=>this.setState({showSelectInstances:!0,selectedSet:e}),onSubmitRemoveSet:()=>this.handleRemoveSet(e),onSubmitRemoveAllPlugins:()=>this.handleRemoveAllPlugins(e),onSubmitRemoveAllThemes:()=>this.handleRemoveAllThemes(e),isUnpaid:this.props.isUnpaid}),this.handleSubmitInstall=e=>(this.setState({showSelectInstances:!1}),this.props.setsActions.installSetInto(this.state.selectedSet.id,e)),this.state={isSetsListLoading:!0,isShowCreateSetDrawer:!1,isShowRemoveSetsConfirmation:!1,formErrors:null,addSetName:"",selectedSetIds:[],expandedPlugins:{},expandedThemes:{},inPlaceRenameOpenedSetId:null,inPlaceRenameSetName:"",sortColumn:null,sortDirection:"ASC",showSelectInstances:!1,selectedSet:null,isAdding:!1}}componentDidMount(){this.handleRefresh()}getSelectedSetIdsForAction(){const{appActions:{addWarningMessage:e}}=this.props,{selectedSetIds:t}=this.state;return 0===t.length?(e((0,L.jsx)(pp,{content:"lists.noItemsSelectedToast"})),null):t}renderAddDrawer(){const{addSetName:e,formErrors:t,isAdding:n}=this.state,s={onSubmit:this.handleSubmitAdd,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"manage-sets.buttonCreate"}),"data-test-id":"create-set-drawer-create-button",state:n?"loading":"active",disabled:n},cancelButton:{disabled:n}};return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"manage-sets.titleCreateSet"}),"data-type":"select-instances",onClose:this.handleCloseAddDrawer,isOpen:!0,form:s,children:[(0,L.jsxs)(_a,{children:[(0,L.jsx)(pp,{content:"manage-sets.hintCreateSetWithoutPlans"}),!1]}),(0,L.jsx)(Dr,{"data-test-id":"create-set-drawer-name-input",label:(0,L.jsx)(pp,{content:"manage-sets.name"}),value:e,errors:t&&t.hasOwnProperty("name")?t.name:void 0,required:!0,size:"lg",onChange:this.handleAddSetNameChange})]})}openInPlaceSetNameEdit(e){this.setState({inPlaceRenameOpenedSetId:e.id,inPlaceRenameSetName:e.name})}handleInPlaceRenameCancel(){this.handleCloseInPlaceRename()}isInPlaceRenameCanBeSubmitted(){const{inPlaceRenameSetName:e}=this.state;return e.trim().length>0}renderSetNameColumn(e){const{isUnpaid:t}=this.props,{inPlaceRenameOpenedSetId:n,inPlaceRenameSetName:s}=this.state;return e.id===n?(0,L.jsxs)("div",{style:{whiteSpace:"nowrap"},children:[(0,L.jsx)(Os,{value:s,onChange:this.handleInPlaceRenameSetNameChanged,onKeyDown:this.handleInPlaceRenameKeyDown})," ",(0,L.jsx)(ut,{icon:"check-mark",disabled:!this.isInPlaceRenameCanBeSubmitted(),onClick:this.handleInPlaceRename})]}):(0,L.jsx)(Us,{onClick:()=>this.openInPlaceSetNameEdit(e),"data-test-set-id":e.id,disabled:t,children:(0,L.jsx)("span",{style:{borderBottom:"1px dashed"},children:e.name})})}toggleExpandedPlugins(e){this.setState((t=>({expandedPlugins:Object.assign(Object.assign({},t.expandedPlugins),{[e]:!t.expandedPlugins[e]})})))}toggleExpandedThemes(e){this.setState((t=>({expandedThemes:Object.assign(Object.assign({},t.expandedThemes),{[e]:!t.expandedThemes[e]})})))}renderRemoveSetsConfirmation(){return(0,L.jsx)(eU,{onSubmitRemove:this.handleSubmitRemoveSets,onCancelRemove:this.handleCloseRemoveSetsConfirmation,buttonSubmitTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveSetConfirmationYes"}),buttonCancelTitle:(0,L.jsx)(pp,{content:"list.sets.RemoveSetConfirmationNo"}),confirmationText:(0,L.jsx)(pp,{content:"list.sets.ConfirmRemove"})})}filterSets(e){const{search:t}=this.props;if(!t||""===t.trim())return e;const n=t.trim().toLowerCase();return e.filter((e=>-1!==e.name.toLowerCase().indexOf(n)))}renderSetsList(){const{sets:e,setsActions:{getPluginDescription:t,getThemeDescription:n},isUnpaid:s,blockedPlugins:a}=this.props,{isShowRemoveSetsConfirmation:i,isShowCreateSetDrawer:r,selectedSetIds:o,expandedPlugins:l,expandedThemes:c,sortColumn:u,sortDirection:d,showSelectInstances:p}=this.state,h=[{key:"name",title:(0,L.jsx)(pp,{content:"list.sets.sets"}),width:"20%",sortable:!0,sort:(e,t)=>e.rawName.localeCompare(t.rawName),render:e=>(0,L.jsxs)(R.Fragment,{children:[e.containsBlockedAsset&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"list.sets.hasBlockedPlugin"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:16})})," ",e.name]})},{key:"plugins",title:(0,L.jsx)(pp,{content:"list.sets.plugins"}),width:"40%"},{key:"themes",title:(0,L.jsx)(pp,{content:"list.sets.themes"}),width:"40%"},{key:"menu",title:""}],m=e=>e.plugins.map((e=>e.name)).filter((e=>a.includes(e))).length>0,g=this.filterSets(e).map((e=>({key:e.id,rawName:e.name,name:this.renderSetNameColumn(e),containsBlockedAsset:m(e),plugins:(0,L.jsx)(ZR,{setId:parseInt(e.id),setType:"plugin",assetsList:e.plugins,isExpanded:l[e.id],onToggleExpanded:()=>this.toggleExpandedPlugins(e.id),isAssetProcessing:t=>e.plugins.some((({id:e,isProcessing:n})=>e===t&&n)),addActionTitle:(0,L.jsx)(pp,{content:"list.sets.buttonAddPlugin"}),addAssetDrawerDataType:"add-plugin-drawer",addAssetDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.managePluginsTitle",params:{name:e.name}}),addAssetDrawerHeadText:(0,L.jsx)(pp,{content:"manage-sets.headDescriptionSetCurrentPlugins"}),addAssetDrawerAddButtonTitle:(0,L.jsx)(pp,{content:"manage-sets.addPlugin"}),addAssetDrawerUploadButtonTitle:(0,L.jsx)(pp,{content:"manage-sets.uploadPlugin"}),addAssetFromCatalogDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.titleAddPluginSet",params:{name:e.name}}),addAssetFromCatalogDrawerHint:(0,L.jsx)(pp,{content:"manage-sets.hintAddPluginSet"}),addAssetFromCatalogDrawerDataType:"add-plugin-from-catalog-drawer",onSearchAssets:e=>this.handleSearchPlugins(e),onAddAssets:t=>this.handleAddPlugins(e.id,t),onChangeAssetActivationStatus:(t,n)=>this.handleChangePluginActivationStatus(e.id,t,n),onRemoveAsset:t=>this.handleRemovePlugin(e.id,t),addAssetFromCatalogDrawerSearchDescription:(0,L.jsx)(pp,{content:"manage-sets.tryToSearchPlugins"}),addAssetFromCatalogDrawerTableTitleTitle:(0,L.jsx)(pp,{content:"manage-sets.fieldName"}),addAssetFromCatalogDrawerTableRatingTitle:(0,L.jsx)(pp,{content:"manage-sets.fieldRating"}),addAssetFromCatalogDrawerNothingFoundText:(0,L.jsx)(pp,{content:"manage-sets.noItems"}),uploadAssetDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.uploadPlugin"}),uploadAssetDrawerHint:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectSetDescription"}),uploadAssetSelectLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.selectLabel"}),uploadAssetDrawerUploadButtonTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.buttonUpload"}),uploadAssetDrawerDataType:"upload-asset",onUpload:t=>this.handleSubmitUploadPlugin(t,e.id),getAssetDescription:t,isUnpaid:s,uploadedTitle:(0,L.jsx)(pp,{content:"manage-sets.customPlugin"}),blockedPlugins:a}),themes:(0,L.jsx)(ZR,{setId:parseInt(e.id),setType:"theme",assetsList:e.themes,isExpanded:c[e.id],isAssetProcessing:()=>e.themes.some((({isProcessing:e})=>e)),onToggleExpanded:()=>this.toggleExpandedThemes(e.id),addActionTitle:(0,L.jsx)(pp,{content:"list.sets.buttonAddTheme"}),addAssetDrawerDataType:"add-theme-drawer",addAssetDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.manageThemesTitle",params:{name:e.name}}),addAssetDrawerHeadText:(0,L.jsx)(pp,{content:"manage-sets.headDescriptionSetCurrentThemes"}),addAssetDrawerAddButtonTitle:(0,L.jsx)(pp,{content:"manage-sets.addTheme"}),addAssetDrawerUploadButtonTitle:(0,L.jsx)(pp,{content:"manage-sets.uploadTheme"}),addAssetFromCatalogDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.titleAddThemeSet",params:{name:e.name}}),addAssetFromCatalogDrawerHint:(0,L.jsx)(pp,{content:"manage-sets.hintAddThemeSet"}),addAssetFromCatalogDrawerDataType:"add-theme-from-catalog-drawer",onSearchAssets:e=>this.handleSearchThemes(e),onChangeAssetActivationStatus:(t,n)=>this.handleChangeThemeActivationStatus(e.id,t,n),onAddAssets:t=>this.handleAddThemes(e.id,t),onRemoveAsset:t=>this.handleRemoveTheme(e.id,t),addAssetFromCatalogDrawerSearchDescription:(0,L.jsx)(pp,{content:"manage-sets.tryToSearchThemes"}),addAssetFromCatalogDrawerTableTitleTitle:(0,L.jsx)(pp,{content:"manage-sets.fieldName"}),addAssetFromCatalogDrawerTableRatingTitle:(0,L.jsx)(pp,{content:"manage-sets.fieldRating"}),addAssetFromCatalogDrawerNothingFoundText:(0,L.jsx)(pp,{content:"manage-sets.noItems"}),uploadAssetDrawerTitle:(0,L.jsx)(pp,{content:"manage-sets.uploadTheme"}),uploadAssetDrawerHint:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.selectSetDescription"}),uploadAssetSelectLabel:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.selectLabel"}),uploadAssetDrawerUploadButtonTitle:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.buttonUpload"}),uploadAssetDrawerDataType:"upload-theme-drawer",onUpload:t=>this.handleSubmitUploadTheme(t,e.id),getAssetDescription:n,isUnpaid:s,uploadedTitle:(0,L.jsx)(pp,{content:"manage-sets.customTheme"})}),menu:this.renderMenu(e)})));return(0,L.jsxs)(R.Fragment,{children:[i&&this.renderRemoveSetsConfirmation(),r&&this.renderAddDrawer(),this.renderToolbar(),p&&this.renderShowSelectInstances(),(0,L.jsx)(HO,{columns:h,data:g,selection:o,onSelectionChange:this.handleSelectionChange,onSortChange:this.handleSortChange,sortColumn:u,sortDirection:d})]})}renderShowSelectInstances(){return(0,L.jsx)(fj,{onCloseDrawer:()=>this.setState({showSelectInstances:!1}),instances:this.props.instances,onSubmitInstall:this.handleSubmitInstall,selectInstancesText:(0,L.jsx)(pp,{content:"list.sets.selectInstancesHeadDescription",unsafe:!0,params:{setName:this.state.selectedSet.name}}),instanceNameListTitle:(0,L.jsx)(pp,{content:"list.sets.selectInstancesInstanceName"}),instanceUrlListTitle:(0,L.jsx)(pp,{content:"list.sets.selectInstancesInstanceUrl"}),drawerTitle:(0,L.jsx)(pp,{content:"list.sets.selectInstancesDrawerTitle"}),backButton:!0})}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n}=this.props;return e?(0,L.jsx)(Uv,{uatAction:"CLICK_EXT_BUY_FROM_SETS",purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,L.jsx)(pp,{content:"paidFeature.setsFeatureDescription"})}):null}render(){const{isSetsListLoading:e}=this.state;return(0,L.jsxs)(ak,{activeTab:G_,children:[e&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"manage-sets.loading"})}),this.renderPaidFeatureDesc(),!e&&this.renderSetsList()]})}}nU.propTypes={search:je().string,sets:je().array,instances:je().array,setsActions:je().shape({resetSetsList:je().func.isRequired,getSetsList:je().func.isRequired,addSet:je().func.isRequired,installSetInto:je().func.isRequired,removeSets:je().func.isRequired,renameSet:je().func.isRequired,addPluginsToSet:je().func.isRequired,setPluginActivationState:je().func.isRequired,setThemeActivationState:je().func.isRequired,addThemesToSet:je().func.isRequired,removePluginFromSet:je().func.isRequired,removeThemeFromSet:je().func.isRequired,uploadPlugin:je().func.isRequired,uploadTheme:je().func.isRequired,searchPlugins:je().func.isRequired,searchThemes:je().func.isRequired,removeSet:je().func.isRequired,removeAllPluginsFromSet:je().func.isRequired,removeAllThemesFromSet:je().func.isRequired,getPluginDescription:je().func.isRequired,getThemeDescription:je().func.isRequired}).isRequired,appActions:je().shape({addSuccessMessage:je().func.isRequired,addWarningMessage:je().func.isRequired}).isRequired,isUnpaid:je().bool.isRequired,upgradeUrl:je().string.isRequired,premiumFeaturesUrl:je().string,blockedPlugins:je().array.isRequired},nU.defaultProps={search:"",sets:[],instances:[],premiumFeaturesUrl:null};const sU=Fc((e=>({search:e.app.search,sets:e.sets.list,instances:e.sets.instances,isUnpaid:e.app.unpaidFeatures[$p],upgradeUrl:e.app.urls.featuresBuyLinks[$p],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({setsActions:(0,Cb.zH)(p,e),appActions:(0,Cb.zH)(t,e),pluginsActions:(0,Cb.zH)(l,e),themesActions:(0,Cb.zH)(d,e)})))(_k(nU)),aU=fp(DC,"serverIds"),iU=fp(jC,"scanningServers"),rU=fp(CC,"servers"),oU=fp(IC),lU=fp("server/DETACH_FINISHED"),cU=fp("servers/ACCEPT_FINGERPRINT_FINISHED"),uU=e=>t=>{const n=kU(e);return bf.servers.detachServers(n).then((({data:e})=>(t(eb(e,(()=>{t(aU(e.data.detachedServers)),t(lU())}))),e)))},dU=e=>t=>bf.servers.getServer(e).then((({data:e})=>(t(eb(e)),e))),pU=(e,t=!0)=>n=>bf.servers.acceptFingerprint(e).then((({data:e})=>(t&&n(eb(e)),n(cU()),e))),hU=e=>t=>{const n=kU(e);return t(iU(e)),bf.servers.scanServers(n).then((({data:e})=>(t(eb(e,(()=>t(mU(e.data.task))))),e)))},mU=e=>t=>t({type:_C,task:e}),gU=e=>t=>t({type:kC,updatedServers:e}),fU=({host:e,login:t,authType:n,password:s="",sshKeyInputType:a="",keyPath:i="",keyPlainText:r="",port:o,pathType:l,path:c=[],scan:u,description:d="",directoriesWithPhpInterpreters:p=[],id:h})=>m=>{const g=new FormData;let f;return f="password"===n?"password":a===RC?"keyPath":"keyPlainText",g.append("pathType",l),c.forEach(((e,t)=>{g.append(`path[${t}]`,e)})),p.forEach(((e,t)=>{g.append(`directoriesWithPhpInterpreters[${t}]`,e)})),g.append("host",e),g.append("login",t),g.append("authType",f),g.append("password",s),g.append("keyPath",i),g.append("keyPlainText",r),g.append("port",`${o}`),g.append("scan",u),g.append("description",d),h&&g.append("id",`${h}`),bf.servers.addServer(g).then((({data:e})=>(m(eb(e,(()=>m(bU(e.data.task))))),e)))},bU=e=>t=>t({type:wC,task:e}),vU=e=>t=>t({type:xC,server:e}),yU=e=>t=>t({type:AC,server:e}),SU=()=>e=>e({type:"servers/ADD_SERVER_FINISHED"}),wU=()=>e=>e({type:"servers/ADD_SERVER_FINISHED_WITH_ERROR"}),xU=fp(TC),AU=()=>e=>bf.servers.getServersList().then((({data:t})=>(e(eb(t,(()=>e(rU(t.data.servers))))),t))),_U=()=>e=>bf.servers.disableBetaDialog().then((({data:t})=>(e(eb(t,(()=>e(oU())))),t))),kU=e=>{const t=new FormData;return e.length&&e.forEach(((e,n)=>t.append(`ids[${n}]`,`${e}`))),t},jU=e=>t=>bf.servers.getInstancesLog(e).then((({data:n})=>(t(eb(n,(()=>t(CU(e,n.data.instancesLog))))),n))),CU=fp(LC,"serverId","remoteInstancesLog"),IU=fp(MC,"serverId");class TU extends R.Component{constructor(){super(...arguments),this.setValueByIndex=(e,t)=>{const{values:n}=this.props;n[t]=e,this.setValues(n)},this.getInputName=()=>{const{name:e}=this.props;return e||(this.props.children.props.name?this.props.children.props.name:null)},this.removeFieldByIndex=e=>{let{values:t}=this.props;t=t.filter(((t,n)=>n!==e)),this.setValues(t)},this.getSingleField=({value:e,index:t})=>{const{baseClassName:n,size:s,disabled:a}=this.props;return(0,L.jsxs)("div",{className:F()(`${n}__single`),children:[(0,R.cloneElement)(this.props.children,{onChange:e=>this.setValueByIndex(e.target.value,t),name:`${this.getInputName()}[${t}]`,className:F()({[this.props.children.props.className]:this.props.children.props.className},`${n}--size-${s}`),value:e,size:s,disabled:a}),this.isSeveralFieldsExists()&&(0,L.jsx)(ut,{className:F()(`${n}__remove`),icon:"cross-mark",tooltip:(0,L.jsx)(pp,{content:"remote-servers.serverFormRemoveFieldPath"}),onClick:()=>this.removeFieldByIndex(t),disabled:a})]},t)},this.isAddMoreInactive=()=>{const{values:e,disabled:t}=this.props;return t||0===e.length||e.map((e=>`${e}`)).some((e=>""===e.trim()))},this.isSeveralFieldsExists=()=>this.props.values.length>1,this.addEmptyField=()=>{const{values:e}=this.props;e.push(""),this.setValues(e)},this.setValues=e=>this.props.onChange(e),this.getFields=()=>{const e=[];return this.props.values.forEach(((t,n)=>{e.push(this.getSingleField({value:t,index:n}))})),e.push((0,L.jsx)(_e,{onClick:()=>this.addEmptyField(),className:F()(`${this.props.baseClassName}__add-more`,{[`${this.props.baseClassName}__add-more-disabled`]:this.isAddMoreInactive()}),children:(0,L.jsx)("small",{children:(0,L.jsx)(pp,{content:"remote-servers.serverFormAddFieldPath"})})},"add-more")),e}}render(){const e=this.props,{baseClassName:t}=e,n=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["baseClassName"]);return(0,L.jsx)(Li,Object.assign({},n,{children:this.getFields()}))}}TU.propTypes={children:je().node.isRequired,values:je().array,name:je().string,label:je().any,disabled:je().bool,size:je().oneOf(["md","lg","xl","fill"]),baseClassName:je().string,onChange:je().func.isRequired,errors:je().array},TU.defaultProps={values:null,name:null,label:void 0,disabled:!1,size:"md",baseClassName:`${th}form-field-multiple`,errors:[]};const DU=TU,PU=e=>{const{text:t}=e;if(!t)return null;let n="";return n=(0,R.isValidElement)(t)?t:t.split("\n").map((e=>(0,L.jsxs)("span",{children:[e,(0,L.jsx)("br",{})]},xp(4)))),(0,L.jsx)(_a,{children:n})},OU=e=>{const{id:t,text:n,type:s,onAcceptFingerprint:a}=e;return n?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(PU,{text:n}),"fingerprint"===s&&(0,L.jsx)(_a,{children:(0,L.jsx)(_e,{onClick:e=>a(e,t),"data-test-id":"remote-server-form-apply-fingerprint",children:(0,L.jsx)(pp,{content:"remote-servers.resetPreviousFingerprint"})})})]}):null};OU.propTypes={id:je().number,text:je().string,type:je().string,onAcceptFingerprint:je().func},OU.defaultProps={id:null,text:null,type:null,onAcceptFingerprint:()=>{}};const LU=OU;const MU=e=>{var{disabled:t=!1,className:n,baseClassName:s=`${th}form-field-password`}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["disabled","className","baseClassName"]);return(0,L.jsx)(Ar,Object.assign({},a,{className:F()(n,{[`${s}__disabled`]:t})}))},EU=e=>{const{name:t,label:n,"data-test-id":s=null,disabled:a=!1,rows:i=5,cols:r=46,onChange:o}=e;return(0,L.jsx)(Li,{name:t,label:n,"data-test-id":s,disabled:a,onChange:o,children:({getId:e,getName:t,getValue:n,setValue:s})=>(0,L.jsx)("textarea",{id:e(),name:t(),value:n(),rows:i,cols:r,onChange:e=>s(e.target.value),disabled:a})})},RU="host",UU="description",NU="port",FU="login",BU="authType",YU="password",HU="sshKeyInputType",VU="keyPath",WU="keyPlainText",$U="pathType",zU="path",qU="scan",GU="directoriesWithPhpInterpreters";class KU extends R.Component{constructor(){super(...arguments),this.isAuthByPassword=()=>!this.props.values||this.props.values.authType===NC,this.isInstancePathsAutodetectEnabled=()=>!this.props.values||this.props.values.pathType===FC,this.getPasswordIndentField=()=>{if(!this.isAuthByPassword())return[];const{values:e,isFormSending:t,onFormFieldChange:n}=this.props,s=e&&e.privateKeyExist;return[(0,L.jsx)(MU,{name:YU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldSshPassword"}),hideShowButton:!0,hideGenerateButton:!0,hidePasswordMeter:!0,required:!s,size:"lg","data-test-id":"remote-server-form-field-password",disabled:t,onChange:e=>n(YU,e)},"password")]},this.getSshKeyInputTypeSelect=(e,t,n)=>{const{values:{sshKeyInputType:s},isFormSending:a}=this.props,i=[(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldKeyPathToKeyFile",component:"option",value:RC,selected:RC===s},RC),(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldKeyEnterKeyManually",component:"option",value:UC,selected:UC===s},UC)];return(0,L.jsx)("select",{id:e(),name:t(),onChange:e=>n(e.target.value),disabled:a,children:i})},this.getKeyIndentField=()=>{if(this.isAuthByPassword())return[];const{values:e,isAuthTypeByKeyPathDisabled:t,isFormSending:n,onFormFieldChange:s}=this.props,a=e&&e.privateKeyExist,i=[];return t||i.push((0,L.jsx)(Li,{name:HU,"data-test-id":"remote-server-form-field-key-input-type",disabled:n,onChange:e=>s(HU,e),children:({getId:e,getName:t,setValue:n})=>this.getSshKeyInputTypeSelect(e,t,n)},HU)),e.sshKeyInputType===RC&&i.push((0,L.jsx)(Dr,{name:VU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldKeyPath"}),required:!a,"data-test-id":"remote-server-form-field-key-path",size:"lg",disabled:n,onChange:e=>s(VU,e)},VU)),e.sshKeyInputType===UC&&i.push((0,L.jsx)(EU,{name:WU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldKeyPlainText"}),required:!a,"data-test-id":"remote-server-form-field-key-contents",disabled:n,rows:5,cols:46,onChange:e=>s(WU,e)},WU)),i},this.getInstancePathsIndentField=()=>{if(this.isInstancePathsAutodetectEnabled())return[];const{isFormSending:e,onFormFieldChange:t,values:n,errors:s}=this.props;return[(0,L.jsx)(DU,{"data-test-id":"remote-server-form-field-paths",size:"lg",disabled:e,onChange:e=>t(zU,e),values:jp(n,zU,[""]),errors:jp(s,zU,[]),children:(0,L.jsx)(Os,{name:zU})},zU)]},this.getBackgroundTaskErrors=e=>{if(!e||!e.publicParams||!e.publicParams.error)return[];const{onAcceptFingerprint:t,values:n}=this.props,{publicParams:{error:{text:s,type:a}}}=e;return[(0,L.jsx)(LU,{id:n.id,onAcceptFingerprint:t,text:s,type:a},a)]},this.getErrorBlock=()=>{const{isDataLoading:e,error:t,backgroundTask:n,values:s,onAcceptFingerprint:a}=this.props;return e||n&&0!==this.getBackgroundTaskErrors(n).length||!t||!t.text?null:(0,L.jsx)(Fe,{intent:"danger","data-test-id":"remote-server-form-errors",children:(0,L.jsx)(LU,{id:s.id,text:t.text,type:t.type,onAcceptFingerprint:a})})},this.getSuccessBlock=()=>{const{isDataLoading:e,success:t}=this.props;return e||!t?null:(0,L.jsx)(Fe,{intent:"success","data-test-id":"remote-server-form-success",children:t})}}render(){const{values:e,errors:t,isDataLoading:n,isEditServer:s,isFormVisible:a,isAdditionalParametersCollapsible:i,isFormSending:r,onFormFieldChange:o}=this.props,l=e&&e.privateKeyExist;return(0,L.jsxs)("div",{"data-test-id":"remote-server-form",className:nh,children:[n&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"remote-servers.serverEditLoading"})}),this.getErrorBlock(),this.getSuccessBlock(),a&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"remote-servers.serverFormSectionSettings"}),children:[(0,L.jsx)(Dr,{name:RU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldHost"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-host",disabled:r,onChange:e=>o(RU,e)}),(0,L.jsx)(EU,{name:UU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldDescription"}),"data-test-id":"remote-server-form-field-description",disabled:r,rows:5,cols:46,onChange:e=>o(UU,e)}),(0,L.jsx)(Dr,{name:NU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldPort"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-port",disabled:r,onChange:e=>o(NU,e)}),(0,L.jsx)(Dr,{name:FU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldSshLogin"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-login",disabled:r,onChange:e=>o(FU,e)})]}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"remote-servers.serverFormSectionAuth"}),children:[(0,L.jsx)(_a,{children:(0,L.jsx)(yi,{children:l?(0,L.jsx)(pp,{content:"remote-servers.hintServerHasGeneratedSshKey"}):(0,L.jsx)(pp,{content:"remote-servers.hintSshKeyWillBeGenerated"})})}),(0,L.jsx)(_r,{name:BU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldAuthType"}),options:[{label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldAuthTypePassword","data-test-id":"remote-server-form-field-auth-password"}),value:NC,indentFields:this.getPasswordIndentField()},{label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldAuthTypeKey","data-test-id":"remote-server-form-field-auth-key"}),value:"key",indentFields:this.getKeyIndentField()}],onChange:e=>o(BU,e),disabled:r,value:e.authType})]}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"remote-servers.serverFormSectionInstances"}),children:[(0,L.jsx)(_r,{name:$U,label:" ",options:[{label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldPathTypeAutodetect","data-test-id":"remote-server-form-field-path-type-autodetect"}),value:FC},{label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldPathTypePaths","data-test-id":"remote-server-form-field-path-type-paths"}),value:BC,indentFields:this.getInstancePathsIndentField()}],onChange:e=>o($U,e),"data-test-id":"remote-server-form-field-path-type",disabled:r,value:e.pathType}),(0,L.jsx)(mr,{name:qU,label:s?(0,L.jsx)(pp,{content:"remote-servers.serverFormScanImmediatelyAfterUpdate"}):(0,L.jsx)(pp,{content:"remote-servers.serverFormScanImmediatelyAfterAdd"}),checkedValue:"1",uncheckedValue:"0","data-test-id":"remote-server-form-field-scan",disabled:r,onChange:e=>o(qU,e)})]}),(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"remote-servers.serverFormAdditionalParameters"}),collapsible:i,collapsed:!0,children:(0,L.jsx)(DU,{name:GU,label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldDirectoriesWithPhpInterpreters"}),size:"lg",required:!0,"data-test-id":"remote-server-form-field-directories-with-php-interpreters",disabled:r,onChange:e=>o(GU,e),values:jp(e,GU,[""]),errors:jp(t,GU,[]),children:(0,L.jsx)(Os,{name:GU})})}),s&&(0,L.jsx)(Dr,{name:"id",label:(0,L.jsx)(pp,{content:"remote-servers.serverFormFieldId"}),style:{display:"none"}})]})]})}}KU.propTypes={onAcceptFingerprint:je().func.isRequired,values:je().shape({id:je().string,host:je().string,login:je().string,authType:je().oneOf([NC,"key"]),pathType:je().oneOf([FC,BC]),password:je().string,keyPath:je().string,port:je().string,path:je().array,directoriesWithPhpInterpreters:je().array,scan:je().string,privateKeyExist:je().bool,sshKeyInputType:je().string}),errors:je().shape({path:je().array,directoriesWithPhpInterpreters:je().array}),error:je().shape({text:je().string,type:je().string}),success:je().string,isDataLoading:je().bool.isRequired,isEditServer:je().bool.isRequired,isFormVisible:je().bool.isRequired,isFormSending:je().bool.isRequired,isAdditionalParametersCollapsible:je().bool,backgroundTask:je().shape({title:je().string.isRequired,steps:je().object.isRequired}),isAuthTypeByKeyPathDisabled:je().bool.isRequired,onFormFieldChange:je().func.isRequired},KU.defaultProps={error:null,success:null,values:null,errors:null,backgroundTask:null,isAdditionalParametersCollapsible:!0};const QU=KU,JU=e=>{const{onSubmit:t,onCancel:n}=e;return(0,L.jsx)(Wi,{isOpen:!0,title:(0,L.jsx)(pp,{content:"remote-servers.detachServerDialogTitle"}),buttons:(0,L.jsx)(ut,{onClick:t,"data-test-id":"remote-server-confirm-detach-btn",children:(0,L.jsx)(pp,{content:"remote-servers.detachServerDialogDetachButton"})}),size:"sm",onClose:n,children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"remote-servers.detachServerDialogConfirmation"})})})};JU.propTypes={onSubmit:je().func.isRequired,onCancel:je().func.isRequired};const XU=JU,ZU=e=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(xe,{size:"16",children:(0,L.jsx)("svg",{height:"8",width:"8",children:(0,L.jsx)("circle",{cx:"8",cy:"8",r:"4",fill:e.iconFillColor})})})," ",e.text]}),eN=e=>{const{text:t,textDataTestId:n}=e,s=(0,L.jsx)("span",{style:{position:"relative",display:"block"},children:(0,L.jsx)("span",{"data-test-id":n,style:{position:"absolute",left:"0px",right:"0px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t})});return(0,L.jsx)(Ks,{target:s,children:(0,L.jsx)("span",{style:{wordBreak:"break-word"},children:t})})};class tN extends R.Component{constructor(){super(...arguments),this.getColumnsList=()=>[{key:"host",width:"150px",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoHost"}),render:e=>(0,L.jsx)("span",{"data-test-id":"remote-server","data-test-server-id":e.id,"data-test-server-hostname":e.host,children:e.host})},{key:"status",width:"150px",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoStatus"}),render:e=>e.status===EC?(0,L.jsx)(ZU,{iconFillColor:"green",text:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoStatusActive"})}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(ZU,{iconFillColor:"red",text:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoStatusError"})})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{children:(0,L.jsx)(pp,{content:"remote-servers.openEditServerDialog"})}),intent:"danger",children:(0,L.jsx)(LU,{id:e.id,text:e.errorText,type:e.status,onAcceptFingerprint:this.props.onAcceptFingerprint})})]})},{key:"instances",width:"100px",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoInstances"}),render:e=>(0,L.jsx)("span",{"data-test-id":"remote-server-instances-counter",children:e.instances})},{key:"description",title:(0,L.jsx)(pp,{content:"remote-servers.serverCardGeneralInfoDescription"}),render:e=>(0,L.jsx)(eN,{text:e.description,textDataTestId:"remote-server-description"})},{key:"buttons",width:"20px",render:e=>(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"remote-servers.toolbarGroupEditServer"}),children:(0,L.jsx)(_e,{onClick:t=>this.props.onEditClick(t,e.id),"data-test-id":"remote-server-edit-btn",icon:"pencil","aria-label":this.props.translate("remote-servers.toolbarGroupEditServer")})})}],this.getServers=()=>{const{search:e,servers:t,selectedFilter:n}=this.props,s=e.toLowerCase();let a=t;return e&&(a=a.filter((({host:e,description:t})=>-1!==e.toLowerCase().indexOf(s)||-1!==t.toLowerCase().indexOf(s)))),a.filter((e=>n===PC||(n===OC?e.status===EC:e.status!==EC))).map((e=>Object.assign(Object.assign({},e),{key:e.id})))}}render(){const{selectedServerIds:e,onSelectionChange:t}=this.props,n=this.getServers();return 0===n.length?(0,L.jsx)(pp,{content:"list.remote-servers.notFound"}):(0,L.jsx)(uo,{columns:this.getColumnsList(),data:n,selection:e,onSelectionChange:t,"data-test-id":"remote-servers-list"})}}tN.propTypes={search:je().string.isRequired,servers:je().array.isRequired,selectedServerIds:je().array.isRequired,selectedFilter:je().string.isRequired,onEditClick:je().func.isRequired,onSelectionChange:je().func.isRequired,onAcceptFingerprint:je().func.isRequired,translate:je().func};const nN=Nv(tN);class sN extends R.Component{constructor(){super(...arguments),this.getFiltersList=()=>[{value:PC,title:(0,L.jsx)(pp,{content:"remote-servers.serversFilter.all"})},{value:OC,title:(0,L.jsx)(ZU,{iconFillColor:"green",text:(0,L.jsx)(pp,{content:"remote-servers.serversFilter.active"})})},{value:"server/FILTERS_ERROR",title:(0,L.jsx)(ZU,{iconFillColor:"red",text:(0,L.jsx)(pp,{content:"remote-servers.serversFilter.error"})})}]}render(){const{hasSelectedServers:e,selectedFilter:t,onAddServersClick:n,onScanClick:s,onRefreshClick:a,onDetachClick:i,onFilterChange:r}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsxs)(Ya,{title:(0,L.jsx)(pp,{content:"list.instances.collapsedToolbarActions"}),children:[(0,L.jsx)(ut,{onClick:n,"data-test-id":"add-remote-server-btn",children:(0,L.jsx)(pp,{content:"remote-servers.toolbarButtonAddServer"})}),(0,L.jsx)(ut,{onClick:a,"data-test-id":"refresh-remote-server-btn",icon:"refresh",children:(0,L.jsx)(pp,{content:"remote-servers.toolbarButtonRefreshServers"})}),(0,L.jsx)(ut,{onClick:s,disabled:!e,"data-test-id":"scan-remote-server-btn",icon:"search",children:(0,L.jsx)(pp,{content:"remote-servers.toolbarButtonScanServers"})}),(0,L.jsx)(ut,{onClick:i,disabled:!e,"data-test-id":"detach-remote-server-btn",children:(0,L.jsx)(pp,{content:"remote-servers.toolbarButtonDetachServers"})})]},"toolbar-group-add-server"),(0,L.jsx)(Sa,{}),(0,L.jsx)(ua,{buttons:this.getFiltersList(),selected:t,onChange:r})]})}}sN.propTypes={hasSelectedServers:je().bool.isRequired,selectedFilter:je().string.isRequired,onAddServersClick:je().func.isRequired,onScanClick:je().func.isRequired,onRefreshClick:je().func.isRequired,onDetachClick:je().func.isRequired,onFilterChange:je().func.isRequired};const aN=sN,iN="pending",rN="registered",oN="warning",lN="error",cN="any",uN="info",dN="success",pN="warning",hN="danger";class mN extends R.Component{constructor(){super(...arguments),this.getFiltersList=()=>{const{filterInstancesCount:e}=this.props;return[{value:cN,title:this.formatFilterTitle((0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.any"}),e[cN])},{value:iN,title:(0,L.jsx)(ZU,{iconFillColor:"blue",text:this.formatFilterTitle((0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.pending"}),e[iN])})},{value:rN,title:(0,L.jsx)(ZU,{iconFillColor:"green",text:this.formatFilterTitle((0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.registered"}),e[rN])})},{value:oN,title:(0,L.jsx)(ZU,{iconFillColor:"orange",text:this.formatFilterTitle((0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.warning"}),e[oN])})},{value:lN,title:(0,L.jsx)(ZU,{iconFillColor:"red",text:this.formatFilterTitle((0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.error"}),e[lN])})}]}}formatFilterTitle(e,t){return null!=t?(0,L.jsx)("span",{children:`${e} (${t})`}):(0,L.jsx)("span",{children:e})}render(){const{selectedFilter:e,onSearchChange:t,onFilterChange:n}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Yl,{maxWidth:270,onTyping:t,onSearch:t}),(0,L.jsx)(Sa,{}),(0,L.jsx)(ua,{buttons:this.getFiltersList(),selected:e,onChange:n})]})}}mN.propTypes={selectedFilter:je().string.isRequired,onSearchChange:je().func.isRequired,onFilterChange:je().func.isRequired,filterInstancesCount:je().object.isRequired};const gN=mN;class fN extends R.Component{constructor(e){super(e),this.getColumnsList=()=>{const{expandedDetails:e}=this.state;return[{key:"path",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.logTablePath"}),render:e=>(0,L.jsx)("span",{children:(0,L.jsx)(eN,{text:e.path,textDataTestId:"remote-server-instance-path"})})},{key:"status",width:"150px",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.logTableStatus"}),render:e=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(Gi,{intent:this.getIntent(e.status)})," ",(0,L.jsx)("span",{children:this.getStatusMessage(e.status)})]}),sort:(e,t)=>{const n=this.getSeverityLevel(t.status)-this.getSeverityLevel(e.status);return Math.sign(n)}},{key:"shortDetails",width:"250px",sortable:!0,title:(0,L.jsx)(pp,{content:"remote-servers.logTableDetails"}),render:t=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("div",{children:t.shortDetails}),e[t.id]&&(0,L.jsx)("div",{children:t.fullDetails})]})},{key:"expand",width:"30px",title:"",render:t=>t.fullDetails&&(0,L.jsx)("span",{children:(0,L.jsx)("a",{onClick:()=>this.toggleDetails(t),children:(0,L.jsx)(xe,{name:e[t.id]?"chevron-up":"chevron-down",size:16})})})}]},this.handleFilterChange=e=>{this.setState({selectedFilter:e})},this.handleSearchChange=e=>{this.setState({search:e})},this.handleSortChange=({sortColumn:e,sortDirection:t})=>{this.setState({sortColumn:e,sortDirection:t})},this.getListData=()=>{const{selectedFilter:e,search:t}=this.state;return this.getInstancesByFilter(e,t).map((e=>Object.assign(Object.assign({},e),{key:e.id})))},this.getFilterInstancesCount=()=>{const{search:e}=this.state;return _p([cN,iN,rN,oN,lN],(t=>({key:t,value:this.getInstancesByFilter(t,e).length})))},this.getInstancesByFilter=(e,t)=>{const{remoteInstancesLog:n,serverId:s}=this.props;return n[s]?n[s].filter((t=>e===cN||e===t.status)).filter((e=>{if(!t)return!0;const n=t.toLowerCase();return kp(e.path.toLowerCase(),n)||e.shortDetails&&kp(e.shortDetails.toLowerCase(),n)||e.fullDetails&&kp(e.fullDetails.toLowerCase(),n)})):[]},this.isLogMounted=!1,this.state={isLoading:!0,expandedDetails:null,selectedFilter:cN,search:null,timer:null,sortColumn:null,sortDirection:null}}componentDidMount(){this.isLogMounted=!0,this.startRefresh()}componentDidUpdate(e){const{remoteInstancesLog:t,serverId:n}=this.props,s=e.remoteInstancesLog[e.serverId],a=t[n];a&&a!==s&&this.setState((e=>{const{expandedDetails:t}=e;return{isLoading:!1,expandedDetails:_p(a,(e=>({key:e.id,value:t&&t[e.id]})))}}))}componentWillUnmount(){const{serversActions:{resetInstancesLog:e},serverId:t}=this.props,{timer:n}=this.state;this.isLogMounted=!1,e(t),n&&clearTimeout(n)}schedulePeriodicRefresh(){this.isLogMounted&&this.setState({timer:setTimeout((()=>{this.doRefresh().finally((()=>this.schedulePeriodicRefresh()))}),5e3)})}doRefresh(){const{serversActions:{refreshInstancesLog:e},serverId:t}=this.props;return t?e(t):new Promise((e=>e()))}startRefresh(){this.doRefresh().finally((()=>{this.schedulePeriodicRefresh(),this.setState({isLoading:!1})}))}toggleDetails(e){this.setState((t=>{const{expandedDetails:n}=t;return{expandedDetails:Object.assign({},n,{[e.id]:!n[e.id]})}}))}getIntent(e){let t="inactive";switch(e){case iN:t=uN;break;case rN:t=dN;break;case oN:t=pN;break;case lN:t=hN}return t}getStatusMessage(e){let t=(0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.info"});switch(e){case iN:t=(0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.pending"});break;case rN:t=(0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.registered"});break;case oN:t=(0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.warning"});break;case lN:t=(0,L.jsx)(pp,{content:"remote-servers.instanceLogStatus.error"})}return t}getSeverityLevel(e){let t=2;switch(e){case iN:t=1;break;case rN:t=0;break;case oN:t=3;break;case lN:t=4}return t}renderLoading(){return(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"remote-servers.instancesLogLoading"})})}renderList(){const{selectedFilter:e,sortColumn:t,sortDirection:n}=this.state,s=this.getListData(),a=s&&s.length>0;return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(gN,{selectedFilter:e,onFilterChange:this.handleFilterChange,onSearchChange:this.handleSearchChange,filterInstancesCount:this.getFilterInstancesCount()}),(0,L.jsx)("br",{}),a&&(0,L.jsx)(uo,{columns:this.getColumnsList(),data:s,onSortChange:this.handleSortChange,sortColumn:t,sortDirection:n}),!a&&(0,L.jsx)(pp,{content:"remote-servers.instancesLogNoItemsFound"})]})}render(){const{isLoading:e}=this.state;return(0,L.jsxs)(R.Fragment,{children:[e&&this.renderLoading(),!e&&this.renderList()]})}}fN.propTypes={serverId:je().string,remoteInstancesLog:je().object.isRequired,serversActions:je().shape({refreshInstancesLog:je().func.isRequired,resetInstancesLog:je().func.isRequired}).isRequired},fN.defaultProps={serverId:null};const bN=Fc((e=>({remoteInstancesLog:e.servers.remoteInstancesLog})),(e=>({serversActions:(0,Cb.zH)(h,e)})))(_k(fN)),vN={addUpdateBackgroundTaskId:null,addUpdateBackgroundTask:null,isAddUpdateTaskProcessing:!1,isAddUpdateTaskFinished:!1,isAddUpdateTaskFinishedWithError:!1};class yN extends R.Component{constructor(e){super(e),this.handleOnReceiveAddUpdateBackgroundTaskData=e=>{const{addUpdateBackgroundTaskId:t,addUpdateBackgroundTask:n}=this.state;if(!t)return;const s=nT(t,e);s&&n!==s&&this.setState({addUpdateBackgroundTask:s},(()=>{this.handleUpdateBackgroundTaskData(this.state.addUpdateBackgroundTask),eT(s)?this.handleConnectingServerSuccess(s):tT(s)&&this.handleConnectingServerFailed(s)}))},this.handleConnectingServerSuccess=e=>{if(this.setState({isAddUpdateTaskProcessing:!1,isAddUpdateTaskFinished:!0,isAddUpdateTaskFinishedWithError:!1}),e.publicParams.server&&e.publicParams.server.id){const t=e.publicParams.server.id;this.props.servers.some((e=>e.id===t))?this.props.serversActions.updateServerInList(e.publicParams.server):this.props.serversActions.addServerToList(e.publicParams.server),this.props.serversActions.addServerFinished()}},this.handleConnectingServerFailed=e=>{this.setState((t=>{let n=t.formValues;return e&&e.publicParams.server&&(n=Object.assign(Object.assign({},n),e.publicParams.server)),{formValues:n,isServerFormOpened:!0,isFormSending:!1,isServerFormLoading:!1,isAddUpdateTaskProcessing:!1,serverDialogSuccess:null}})),e.publicParams.server&&e.publicParams.server.id&&(this.props.servers.some((t=>t.id===e.publicParams.server.id))?this.props.serversActions.updateServerInList(e.publicParams.server):this.props.serversActions.addServerToList(e.publicParams.server),this.setState({isAddUpdateTaskFinished:!0,isAddUpdateTaskFinishedWithError:!0})),this.props.serversActions.addServerFinishedWithError()},this.handleAddServerErrors=e=>{const t=e&&e.data&&e.data.formErrors?e.data.formErrors:null;let n=e&&e.message?{text:e.message,type:"internal-error"}:null;t||n||(n={text:(0,L.jsx)(pp,{content:"remote-servers.addServerInternalError"}),type:"internal-error"}),this.setState((s=>{let a=s.formValues;return e&&e.data&&e.data.server&&(a=Object.assign(Object.assign({},a),e.data.server)),{formErrors:t,serverDialogError:n,formValues:a,isServerFormOpened:!0,isFormSending:!1,isServerFormLoading:!1,isAddUpdateTaskProcessing:!1,serverDialogSuccess:null}}))},this.getDefaultSshAuthType=()=>{const{isAuthTypeByKeyPathDisabled:e}=this.props;return e?UC:RC},this.handleFormFieldChange=(e,t)=>this.setState((n=>({formValues:Object.assign(Object.assign({},n.formValues),{[e]:t})}))),this.handleAddServer=()=>{this.setState({formValues:{host:"",login:"root",authType:NC,password:"",sshKeyInputType:this.getDefaultSshAuthType(),keyPath:"",keyPlainText:"",port:"22",pathType:FC,path:[""],scan:"1",privateKeyExist:!1,directoriesWithPhpInterpreters:["/opt","/usr"]},isFormSending:!1,isServerFormOpened:!0,activeTab:1,serverId:null,isServerSaved:!1})},this.handleEditServer=(e,t)=>{this.setState({serverId:t,isServerFormLoading:!0,isServerFormOpened:!0,activeTab:1,isServerSaved:!1});let n=t;if(!n){const{selectedServerIds:e}=this.state;n=e.pop()}const{serversActions:{getServer:s}}=this.props;s(n).then((e=>{const t=e.data;"error"===e.status?this.handleAddServerErrors(e):this.setState({formValues:Object.assign(Object.assign({},t.server),{authType:NC,sshKeyInputType:this.getDefaultSshAuthType(),pathType:t.server.path.length<1?FC:BC,scan:"1"}),formErrors:null,serverDialogError:{text:t.server.errorText,type:t.server.status},isFormSending:!1})})).finally((()=>{this.setState({isServerFormLoading:!1})}))},this.handleAcceptFingerprint=(e,t,n=!0)=>{const{serversActions:{acceptFingerprint:s,getServersList:a}}=this.props;return s(t,n).then((e=>(a(),e))).finally((e=>(this.resetBackgroundTaskData(),e)))},this.handleAcceptFingerprintAndOpenServerForm=(e,t)=>(this.setState({isServerFormLoading:!0}),this.handleAcceptFingerprint(e,t,!1).then((n=>(this.handleEditServer(e,t),n&&n.status===Mp&&n.message&&this.setState({serverDialogSuccess:n.message}),n)))),this.resetBackgroundTaskData=()=>this.setState(Object.assign({},vN)),this.handleUpdateBackgroundTaskData=e=>{const{publicParams:t}=e;t.server&&t.server.id&&!this.state.serverId&&this.setState({serverId:t.server.id}),t.hasOwnProperty("isServerSaved")&&this.setState({isServerSaved:t.isServerSaved})},this.handleSubmitAddServerDialog=()=>{this.setState({isFormSending:!0});const{serversActions:{addServer:e}}=this.props,{formValues:t}=this.state;e(t).then((e=>{const{status:t,data:n}=e;if(t===Mp){const{task:e}=n;this.setState({addUpdateBackgroundTaskId:e.id,formErrors:null,serverDialogError:null,serverDialogSuccess:null,isFormSending:!1,isAddUpdateTaskProcessing:!0})}else this.handleAddServerErrors(e)}))},this.handleCloseAddServerDialog=()=>{this.resetBackgroundTaskData(),this.setState({isServerFormOpened:!1,formErrors:null,serverDialogError:null,serverDialogSuccess:null,isFormSending:!1})},this.handleSelectionChange=e=>{this.setState({selectedServerIds:e})},this.handleFilterChange=e=>{this.setState({selectedFilter:e})},this.checkSelectionNotEmpty=e=>0!==e.length||(this.props.appActions.addWarningMessage((0,L.jsx)(pp,{content:"remote-servers.noItemsSelected"})),!1),this.handleOnReceiveScanBackgroundTaskData=e=>{const{scanBackgroundTasksIds:t}=this.state;t.length&&t.forEach((t=>{const n=nT(t,e);n&&ZI(n)&&this.setState((e=>({scanBackgroundTasksIds:e.scanBackgroundTasksIds.filter((e=>e!==n.id))})),(()=>{let e=[];n.publicParams.servers&&(e=n.publicParams.servers),this.props.serversActions.scanServersFinished(e)}))}))},this.handleBulkScan=()=>{const{serversActions:{scanServers:e}}=this.props,{selectedServerIds:t}=this.state;this.checkSelectionNotEmpty(t)&&e(t).then((e=>{e.status===Mp&&this.setState((t=>({scanBackgroundTasksIds:t.scanBackgroundTasksIds.concat(e.data.task.id)})))})).finally((()=>{this.setState({selectedServerIds:[]})}))},this.handleRefresh=()=>{const{serversActions:{getServersList:e}}=this.props;this.setState({isServersListLoading:!0}),e().finally((()=>{this.setState({isServersListLoading:!1})}))},this.handleBulkDetach=()=>{const{selectedServerIds:e}=this.state;this.checkSelectionNotEmpty(e)&&this.setState({isDetachConfirmDialogOpen:!0})},this.handleSubmitDetachConfirmDialog=()=>{const{serversActions:{detachServers:e}}=this.props,{selectedServerIds:t}=this.state;return this.setState({isDetachConfirmDialogOpen:!1,isServersListLoading:!0}),e(t).finally((()=>{this.setState({selectedServerIds:[],isServersListLoading:!1})}))},this.handleCloseDetachConfirmDialog=()=>{this.setState({isDetachConfirmDialogOpen:!1})},this.isFormVisible=()=>{const{formValues:e,isServerFormLoading:t}=this.state;return Boolean(!t&&e)},this.getSubmitButton=()=>{const{isFormSending:e,isAddUpdateTaskProcessing:t,isAddUpdateTaskFinished:n,isAddUpdateTaskFinishedWithError:s,formValues:a}=this.state;if(!this.isFormVisible()||n&&!s)return!1;let i=a.id?(0,L.jsx)(pp,{content:"remote-servers.serverFormButtonUpdate"}):(0,L.jsx)(pp,{content:"remote-servers.serverFormButtonStartAdding"});return s&&(i=(0,L.jsx)(pp,{content:"remote-servers.serverFormButtonRetry"})),{children:i,state:e||t?"loading":"active","data-test-id":"remote-server-form-submit-btn",onClick:e=>gp(e,this.handleSubmitAddServerDialog)}},this.getCancelButton=()=>{const{isFormSending:e,isAddUpdateTaskProcessing:t,isAddUpdateTaskFinished:n,isServerSaved:s}=this.state;return{children:n&&s?(0,L.jsx)(pp,{content:"remote-servers.serverFormButtonClose"}):(0,L.jsx)(pp,{content:"remote-servers.serverFormButtonCancel"}),disabled:e||t}},this.isAdditionalParametersCollapsible=()=>{const{formErrors:e}=this.state;return!e||!e.directoriesWithPhpInterpreters},this.handleCloseBetaDialog=()=>this.props.serversActions.disableBetaDialog().finally((()=>{this.setState({showBetaDialog:!1})})),this.setActiveTab=e=>{this.setState({activeTab:e})},this.state=Object.assign({selectedServerIds:[],selectedFilter:PC,isServersListLoading:!0,isServerFormOpened:!1,isDetachConfirmDialogOpen:!1,formValues:null,formErrors:null,serverId:null,isFormSending:!1,serverDialogError:null,serverDialogSuccess:null,isServerFormLoading:!1,showBetaDialog:e.isRemoteWptBetaDialogVisible,activeTab:1,isServerSaved:!1,scanBackgroundTasksIds:[]},vN)}componentDidMount(){this.handleRefresh()}componentDidUpdate(e){const{tasks:t}=this.props;this.handleOnReceiveAddUpdateBackgroundTaskData(t),this.handleOnReceiveScanBackgroundTaskData(t)}componentWillUnmount(){const{serversActions:{resetServersList:e}}=this.props;e()}render(){const{search:e,servers:t,isAuthTypeByKeyPathDisabled:n,publicUrl:s}=this.props,{selectedServerIds:a,selectedFilter:i,isServerFormOpened:r,isDetachConfirmDialogOpen:o,formValues:l,formErrors:c,serverDialogError:u,serverDialogSuccess:d,isServerFormLoading:p,showBetaDialog:h,isFormSending:m,isAddUpdateTaskProcessing:g,serverId:f,activeTab:b,addUpdateBackgroundTask:v}=this.state,y=Boolean(l&&l.id)||p;let S=null;1===b&&(S={onSubmit:this.handleSubmitAddServerDialog,applyButton:!1,values:l,errors:c,vertical:!0,submitButton:this.getSubmitButton(),cancelButton:this.getCancelButton()});const w=[];S&&S.submitButton&&w.push((0,L.jsx)(ut,Object.assign({intent:"primary"},S.submitButton),"submit"));let x=v;if(x&&x.publicParams&&x.publicParams.error){const{publicParams:{error:{text:e,type:t}}}=x;x=Object.assign(Object.assign({},x),{errors:[(0,L.jsx)(LU,{id:l.id,onAcceptFingerprint:this.handleAcceptFingerprint,text:e,type:t},t)]})}return(0,L.jsxs)(ak,{activeTab:K_,children:[this.state.isServersListLoading&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"remote-servers.serverPageLoading"})}),!this.state.isServersListLoading&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(ga,{gap:"sm",children:(0,L.jsx)(fa,{children:(0,L.jsx)(aN,{hasSelectedServers:a.length>0,selectedFilter:i,onAddServersClick:this.handleAddServer,onScanClick:this.handleBulkScan,onRefreshClick:this.handleRefresh,onDetachClick:this.handleBulkDetach,onFilterChange:this.handleFilterChange})})}),(0,L.jsx)(ga,{gap:"sm",children:(0,L.jsx)(fa,{children:(0,L.jsx)(nN,{search:e,servers:t,selectedServerIds:a,selectedFilter:i,onEditClick:this.handleEditServer,onSelectionChange:this.handleSelectionChange,onAcceptFingerprint:this.handleAcceptFingerprint})})}),o&&(0,L.jsx)(XU,{onSubmit:this.handleSubmitDetachConfirmDialog,onCancel:this.handleCloseDetachConfirmDialog}),r&&(0,L.jsx)(cr,{className:sh,title:y?(0,L.jsx)(pp,{content:"remote-servers.editServerDrawerTitle"}):(0,L.jsx)(pp,{content:"remote-servers.addServerDrawerTitle"}),onClose:this.handleCloseAddServerDialog,"data-test-id":tv,"data-type":tv,form:this.isFormVisible()?S:null,progress:QO(x,(()=>{this.setState({addUpdateBackgroundTask:null})}),w),hideButton:!1,isOpen:!0,children:(0,L.jsxs)(Nl,{active:b,children:[(0,L.jsxs)(Pl,{title:(0,L.jsx)(pp,{content:"remote-servers.settingsTabTitle"}),onActivate:()=>this.setActiveTab(1),children:[!y&&(0,L.jsxs)(Fe,{intent:"info",children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle",size:"16"})," ",(0,L.jsx)(pp,{content:"remote-servers.addServerFirewallWarning"})]}),(0,L.jsx)(QU,{onAcceptFingerprint:this.handleAcceptFingerprintAndOpenServerForm,values:l,errors:c,error:u,success:d,isDataLoading:p,isEditServer:y,isFormVisible:this.isFormVisible(),isAdditionalParametersCollapsible:this.isAdditionalParametersCollapsible(),isAuthTypeByKeyPathDisabled:n,isFormSending:m||g,backgroundTask:v,onFormFieldChange:this.handleFormFieldChange})]}),(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"remote-servers.logTabTitle"}),onActivate:()=>this.setActiveTab(2),children:(0,L.jsx)(bN,{serverId:f})})]})})]}),h&&(0,L.jsx)(Wi,{size:"sm",banner:`${s}images/wptr-beta.png`,isOpen:!0,onClose:this.handleCloseBetaDialog,cancelTitle:(0,L.jsx)(pp,{content:"remote-servers.betaDialog.gotItButton"}),children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"remote-servers.betaDialog.description",unsafe:!0})})})]})}}yN.propTypes={search:je().string.isRequired,servers:je().array,serversActions:je().shape({getServersList:je().func.isRequired,detachServers:je().func.isRequired,scanServers:je().func.isRequired,scanServersFinished:je().func.isRequired,addServer:je().func.isRequired,resetServersList:je().func.isRequired,addServerToList:je().func.isRequired,updateServerInList:je().func.isRequired,addServerFinished:je().func.isRequired,addServerFinishedWithError:je().func.isRequired,disableBetaDialog:je().func.isRequired,getServer:je().func.isRequired,acceptFingerprint:je().func.isRequired}).isRequired,appActions:je().shape({addWarningMessage:je().func.isRequired}).isRequired,isAuthTypeByKeyPathDisabled:je().bool.isRequired,isRemoteWptBetaDialogVisible:je().bool.isRequired,publicUrl:je().string.isRequired,tasks:je().array},yN.defaultProps={servers:null,tasks:[]};const SN=Fc((e=>({search:e.app.search,servers:e.servers.list,isAuthTypeByKeyPathDisabled:e.app.options.isAuthTypeByKeyPathDisabled,isRemoteWptBetaDialogVisible:e.app.options.isRemoteWptBetaDialogVisible,publicUrl:e.app.urls.publicUrl,tasks:e.backgroundTasks.tasks})),(e=>({serversActions:(0,Cb.zH)(h,e),appActions:(0,Cb.zH)(t,e)})))(_k(yN)),wN="success",xN="warning",AN="failed",_N="notExist",kN=e=>[wN,xN,AN].includes(e),jN=(e,t)=>e.filter((e=>!t.includes(e))),CN="instance-change-remote-instance-properties",IN="instance-change-remote-agent-instance-properties",TN="restore-button",DN="link-wp-login",PN="instance-name",ON=e=>{const{children:t,handleLoginWithCredentials:n,handleLoginWithOneTimeLink:s,installationId:a,onOpenAdminSettings:i,hasAdminCredentials:r=!0,tooltip:o=null,disabled:l=!1,isOneTimeLoginFeatureAvailable:c}=e,[u,d]=(0,R.useState)(!1),p=r?e=>((e,t)=>{d(!0),n(e,t).finally((()=>d(!1)))})(a,e):i||(()=>{});return(0,L.jsx)(ut,{icon:"key",intent:"primary",disabled:l,onClick:c?s:p,state:u?"loading":void 0,"data-test-id":DN,style:{whiteSpace:"normal"},tooltip:o,children:t})},LN=e=>{const{handleLoginWithCredentials:t,handleLoginWithOneTimeLink:n,children:s,installationId:a,tooltip:i=null,disabled:r=!1,isOneTimeLoginFeatureAvailable:o}=e,[l,c]=(0,R.useState)(!1);if(l)return(0,L.jsxs)("span",{"data-test-id":DN,children:[s," ",(0,L.jsx)(wI,{})]});const u=(0,L.jsx)(Us,{disabled:r,onClick:o?n:e=>((e,n)=>{c(!0),t(e,n).finally((()=>c(!1)))})(a,e),"data-test-id":DN,target:"_blank",children:s});return i?(0,L.jsx)(Xe,{title:i,children:u}):u},MN=e=>{const{loginToInstance:t,getAdminCredentials:n,children:s,onOpenAdminSettings:a,type:i="link",loadingTranslateKey:r="general-ui.login.windowPreloadMessage",isOneTimeLoginFeatureAvailable:o=!1}=e,l=cp(),c=J_(),u=l(r).toString(),d=()=>{c("CRD-SITE_LOGIN-CLICKED")},p=(e,s)=>new Promise(((a,i)=>{d(),s.persist();const{windowTarget:r,wordPressLoginPage:o}=g(s,u);n(e).then((({credentials:n,loginUrl:s})=>{t({installationId:e,loginUrl:s,credentials:n,windowTarget:r}),a()})).catch((()=>{o&&o.close(),i()}))})),h=R.useRef(null),m=e=>{if(e.preventDefault(),!h.current)return;const{windowTarget:t}=g(e,u);h.current.target=t,d(),h.current.submit()},g=(e,t)=>{const n=e.timeStamp.toString(),s=window.open("",n);return s&&(s.document.body.innerText=t),{windowTarget:n,wordPressLoginPage:s}};return o?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("form",{ref:h,method:"POST",action:(f=e.restApiUrl,b=e.installationId,`${f}/v1/installations/${b}/login`),target:"_blank",style:{display:"none"}}),"button"===i?(0,L.jsx)(ON,Object.assign({},e,{handleLoginWithCredentials:p,handleLoginWithOneTimeLink:m,isOneTimeLoginFeatureAvailable:o,onOpenAdminSettings:a,children:s})):(0,L.jsx)(LN,Object.assign({},e,{handleLoginWithCredentials:p,handleLoginWithOneTimeLink:m,isOneTimeLoginFeatureAvailable:o,children:s}))]}):(0,L.jsx)(L.Fragment,{children:"button"===i?(0,L.jsx)(ON,Object.assign({},e,{handleLoginWithCredentials:p,handleLoginWithOneTimeLink:m,isOneTimeLoginFeatureAvailable:o,onOpenAdminSettings:a,children:s})):(0,L.jsx)(LN,Object.assign({},e,{handleLoginWithCredentials:p,handleLoginWithOneTimeLink:m,isOneTimeLoginFeatureAvailable:o,children:s}))});var f,b},EN=Fc(((e,t)=>{var n;const s=null===(n=e.instances.installations)||void 0===n?void 0:n.find((e=>e.id===t.instanceId));return{restApiUrl:e.app.urls.restApiUrl,isOneTimeLoginFeatureAvailable:Boolean((null==s?void 0:s.features.integrationPlugin.installed)&&e.app.options.wordpressSecureLoginFeature&&!e.app.isAuxiliaryUser)}}),{loginToInstance:JA,getAdminCredentials:a_}),RN=EN((({disabled:e=!1,children:t,instanceId:n,loginToInstance:s,getAdminCredentials:a,type:i="link",hasAdminCredentials:r=!0,tooltip:o=null,onOpenAdminSettings:l=()=>{},restApiUrl:c,isOneTimeLoginFeatureAvailable:u})=>(0,L.jsx)(MN,{disabled:e,installationId:n,loginToInstance:s,getAdminCredentials:a,type:i,hasAdminCredentials:r,tooltip:o,onOpenAdminSettings:l,restApiUrl:c,isOneTimeLoginFeatureAvailable:u,children:(0,L.jsx)(L.Fragment,{children:t})})));class UN extends R.Component{renderPlesk(){const{render:e,children:t,settingsData:{webAdminUrl:n}}=this.props;return e((0,L.jsx)(Us,{href:n,target:"_blank",children:t}))}renderCpanel(){const{render:e,children:t,instance:{cpanelAccountUsername:n},settingsData:{webAdminUrl:s},goToUri:a}=this.props;if(!n||!s)return null;const i=Yv({link:s,inNewWindow:!0,goToUri:a,accountUsername:n});return e((0,L.jsx)(Us,Object.assign({},i,{children:t})))}render(){const{instance:{instanceType:e},settingsData:{webAdminUrl:t}}=this.props;return t?xO(e)?this.renderPlesk():wO(e)?this.renderCpanel():null:null}}const NN=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(UN);class FN extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{render:e,children:t,instance:{filesUrl:n}}=this.props;return e((0,L.jsx)(Us,{href:n,target:"_blank",children:t}))},this.renderCpanel=()=>{const{render:e,children:t,goToUri:n,instance:{filesUrl:s,cpanelAccountUsername:a}}=this.props;if(!a)return null;const i=Yv({link:s,inNewWindow:!1,goToUri:n,accountUsername:a});return e((0,L.jsx)(Us,Object.assign({},i,{children:t})))}}render(){const{instance:{isFileManagerAvailable:e,instanceType:t,filesUrl:n}}=this.props;return e&&n?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}const BN=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(FN),YN=r(84193),HN=r(48379),VN=e=>e.replace("https://","").replace("http://",""),WN=e=>HN.toUnicode(e),$N=e=>HN.toASCII(e),zN=e=>{try{const t=new YN(e);return t.hostname(WN(t.hostname())),decodeURIComponent(t.toString())}catch(t){return console.error(t),e}};class qN extends R.Component{constructor(e){super(e),this.state={isLoading:!0,cpanelAccountUsername:null,isFileManagerAvailable:null,filesUrl:null,webAdminUrl:null,instanceType:null}}componentDidMount(){const{getDbSettings:e,getInstallationData:t,smartUpdatesCloneInstanceId:n}=this.props;this.setState({isLoading:!0}),Promise.all([e(n).then((e=>{if(e&&e.data){const{webAdminUrl:t}=e.data;this.setState({webAdminUrl:t})}})),t(n).then((e=>{this.setState({cpanelAccountUsername:e.owner.login,isFileManagerAvailable:e.features.fileManager.available,filesUrl:e.features.fileManager.url,instanceType:e.installationType})}))]).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}renderFileManagerLinkSection(){const{cpanelAccountUsername:e,isFileManagerAvailable:t,instanceType:n,filesUrl:s}=this.state;return e&&t&&n&&s?(0,L.jsx)(BN,{render:e=>(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.fileManager.title"}),children:e}),instance:{isFileManagerAvailable:t,instanceType:n,filesUrl:s,cpanelAccountUsername:e},children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.fileManager.action"})}):null}renderDatabaseLinkSection(){const{cpanelAccountUsername:e,instanceType:t,webAdminUrl:n}=this.state;return t&&n?(0,L.jsx)(NN,{render:e=>(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.database.title"}),children:e}),instance:{cpanelAccountUsername:e,instanceType:t},settingsData:{webAdminUrl:n},children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.database.action"})}):null}renderLoginLink(){const{smartUpdatesCloneInstanceId:e}=this.props;return(0,L.jsx)(RN,{instanceId:e,type:"link",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.wpAdminPanel.action"})})}renderLoginLinkSection(){return(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.wpAdminPanel.title"}),children:this.renderLoginLink()})}renderClonedSiteLinkSection(){const{smartUpdatesCloneUrl:e}=this.props;return(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.stagingWebsiteCredentials.url.title"}),children:(0,L.jsx)(Us,{href:e,target:"_blank",children:zN(e)})})}renderContent(){return(0,L.jsxs)(Ni,{children:[this.renderClonedSiteLinkSection(),this.renderLoginLinkSection(),this.renderDatabaseLinkSection(),this.renderFileManagerLinkSection()]})}renderLoader(){return(0,L.jsx)(Qn,{})}render(){const{isLoading:e}=this.state;return e?this.renderLoader():this.renderContent()}}const GN=Fc(null,{getDbSettings:Vx,getInstallationData:Bx})(qN);class KN extends R.Component{constructor(e){super(e),this.handlePageChange=e=>{this.setState({page:e})},this.handleItemsPerPageChange=e=>{this.setState({page:1,itemsPerPage:e})},this.CHECK_KEY_PAGE_TITLE_CHANGED="pageTitleChanged",this.CHECK_KEY_HTTP_CODE_SURVIVED="httpCodeSurvived",this.CHECK_KEY_HTTP_CODE_NEW="httpCodeNew",this.CHECK_KEY_PHP_ERRORS_SURVIVED="phpErrorsSurvived",this.CHECK_KEY_PHP_ERRORS_NEW="phpErrorsNew",this.CHECK_KEY_PHP_WARNINGS_SURVIVED="phpWarningsSurvived",this.CHECK_KEY_PHP_WARNINGS_NEW="phpWarningsNew",this.CHECK_KEY_PHP_NOTICES_SURVIVED="phpNoticesSurvived",this.CHECK_KEY_PHP_NOTICES_NEW="phpNoticesNew",this.CHECK_KEY_SHORTCODES_SURVIVED="shortcodesSurvived",this.CHECK_KEY_SHORTCODES_NEW="shortcodesNew",this.TAB_WEBSITE_SUMMARY=1,this.TAB_PAGE_ISSUES_REPORT=2,this.TAB_STAGING_WEBSITE_CREDENTIALS=3,this.handleChangeTab=e=>{this.setState({activeTab:e})},this.state={page:1,itemsPerPage:25,activeTab:1}}isBadHttpCode(e){return e<200||e>=400}renderPageIssuesReportTab(){const{smartUpdatesStatus:{details:e=[]},instanceUrl:t,smartUpdatesCloneUrl:n,baseClassName:s}=this.props,{page:a,itemsPerPage:i}=this.state,r=[{key:"check",title:"",width:"108px"},{key:"before",title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.mainList.beforeUpdate"}),width:""},{key:"after",title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.mainList.afterUpdate"}),width:""}],o=e.filter((e=>this.getPageIssues(e).length>0)).map((e=>{const s=n?e.pageUrl.replace(VN(t),VN(n)):null,a=s?`https://${s}`:null,i=e.pageUrl,r=`https://${e.pageUrl}`;return{key:e.pageUrl,check:"",before:(0,L.jsx)(Us,{href:r,target:"_blank",children:i}),after:a&&s?(0,L.jsx)(Us,{href:a,target:"_blank",children:s}):null,pageDetails:{before:e.before,after:e.after}}})),l="all"===i?o:o.slice((a-1)*i,a*i),c=o.map((e=>e.key)),u="all"===i?1:Math.ceil(o.length/i);return(0,L.jsx)(uo,{data:l,columns:r,renderRowBody:e=>{const t=[{key:"check",title:(0,L.jsx)("strong",{children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.checkName"})}),width:"108px"},{key:"before",title:(0,L.jsx)("strong",{children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.beforeUpdate"})}),width:""},{key:"after",title:(0,L.jsx)("strong",{children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.rowList.afterUpdate"})}),width:""}];return this.getPageIssues(e.pageDetails).map((n=>{const a=[{key:n.key,check:n.check,before:n.before,after:n.after}];return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(uo,{columns:t,data:a,style:{tableLayout:"fixed"}}),(0,L.jsxs)("div",{className:`${s}__issue_alert_container`,children:[(0,L.jsx)("div",{className:`${s}__issue_alert_spacer`}),(0,L.jsx)("div",{className:`${s}__issue_alert_content`,children:(0,L.jsxs)(Fe,{intent:n.alertIntent,children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:n.alertIntent})," ",n.alertText]})})]})]},`${e.key}__${n.key}`)}))},expandedRows:c,style:{tableLayout:"fixed"},pagination:(0,L.jsx)(ha,{current:a,total:u,onSelect:this.handlePageChange,itemsPerPageOptions:[25,100,"all"],itemsPerPage:i,onItemsPerPageChange:this.handleItemsPerPageChange}),totalRows:o.length})}getPageIssues(e){const t=[];return e.before.pageTitle!==e.after.pageTitle&&t.push({key:this.CHECK_KEY_PAGE_TITLE_CHANGED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.pageTitle.title"}),before:e.before.pageTitle,after:e.after.pageTitle,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.pageTitle.issueChanged"})}),this.isSurvivedBadHttpCode(e)&&t.push({key:this.CHECK_KEY_HTTP_CODE_SURVIVED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.title"}),before:e.before.httpStatus,after:e.after.httpStatus,alertIntent:pN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.issueSurvived"})}),this.isNewBadHttpCode(e)&&t.push({key:this.CHECK_KEY_HTTP_CODE_NEW,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.title"}),before:e.before.httpStatus,after:e.after.httpStatus,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.httpResponseCode.issueChanged"})}),this.areSurvivedPhpErrors(e)&&t.push({key:this.CHECK_KEY_PHP_ERRORS_SURVIVED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.title"}),before:e.before.phpErrors,after:e.after.phpErrors,alertIntent:pN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.issueSurvived"})}),this.areNewPhpErrors(e)&&t.push({key:this.CHECK_KEY_PHP_ERRORS_NEW,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.title"}),before:e.before.phpErrors,after:e.after.phpErrors,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpError.issueNew"})}),this.areSurvivedPhpWarnings(e)&&t.push({key:this.CHECK_KEY_PHP_WARNINGS_SURVIVED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.title"}),before:e.before.phpWarnings,after:e.after.phpWarnings,alertIntent:pN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.issueSurvived"})}),this.areNewPhpWarnings(e)&&t.push({key:this.CHECK_KEY_PHP_WARNINGS_NEW,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.title"}),before:e.before.phpWarnings,after:e.after.phpWarnings,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpWarning.issueNew"})}),this.areSurvivedPhpNotices(e)&&t.push({key:this.CHECK_KEY_PHP_NOTICES_SURVIVED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.title"}),before:e.before.phpNotices,after:e.after.phpNotices,alertIntent:pN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.issueSurvived"})}),this.areNewPhpNotices(e)&&t.push({key:this.CHECK_KEY_PHP_NOTICES_NEW,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.title"}),before:e.before.phpNotices,after:e.after.phpNotices,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.phpNotice.issueNew"})}),this.areSurvivedShortcodes(e)&&t.push({key:this.CHECK_KEY_SHORTCODES_SURVIVED,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.title"}),before:e.before.shortcodes,after:e.after.shortcodes,alertIntent:pN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.issueSurvived"})}),this.areNewShortcodes(e)&&t.push({key:this.CHECK_KEY_SHORTCODES_NEW,check:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.title"}),before:e.before.shortcodes,after:e.after.shortcodes,alertIntent:hN,alertText:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.pageIssuesReport.issue.shortcode.issueNew"})}),t}renderDownloadSummaryButton(){const{downloadSummaryUrl:e}=this.props;return e?(0,L.jsx)(ut,{onClick:()=>{window.location.href=e},style:{marginBottom:"10px"},children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.buttonDownloadSummary"})}):null}renderNoChanges(){return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(xe,{name:"check-mark",intent:dN})," ",(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.noChanges"})]})}renderChanges(e){return 0===e?this.renderNoChanges():(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.changes",params:{count:e}})})})}renderHttpResponseCodeChanges(e,t){return e>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.httpResponseCode",params:{count:e}})})}):t>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:pN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.httpResponseCode",params:{count:t}})})}):this.renderNoChanges()}renderPhpErrorChanges(e,t){return e>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpErrors",params:{count:e}})})}):t>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:pN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpErrors",params:{count:t}})})}):this.renderNoChanges()}renderPhpWarningChanges(e,t){return e>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpWarnings",params:{count:e}})})}):t>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:pN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpWarnings",params:{count:t}})})}):this.renderNoChanges()}renderPhpNoticeChanges(e,t){return e>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpNotices",params:{count:e}})})}):t>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:pN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.phpNotices",params:{count:t}})})}):this.renderNoChanges()}renderShortcodeChanges(e,t){return e>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:hN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.shortcodes",params:{count:e}})})}):t>0?(0,L.jsx)(_e,{onClick:()=>this.handleChangeTab(this.TAB_PAGE_ISSUES_REPORT),children:(0,L.jsx)(He,{intent:pN,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.counts.shortcodes",params:{count:t}})})}):this.renderNoChanges()}isNewBadHttpCode(e){return!this.isBadHttpCode(e.before.httpStatus)&&this.isBadHttpCode(e.after.httpStatus)}isSurvivedBadHttpCode(e){return this.isBadHttpCode(e.before.httpStatus)&&this.isBadHttpCode(e.after.httpStatus)}areNewPhpIssues(e,t){return t.length>e.length}areSurvivedPhpIssues(e,t){return t.length>0&&!this.areNewPhpIssues(e,t)}areNewPhpErrors(e){return this.areNewPhpIssues(e.before.phpErrors,e.after.phpErrors)}areSurvivedPhpErrors(e){return this.areSurvivedPhpIssues(e.before.phpErrors,e.after.phpErrors)}areNewPhpWarnings(e){return this.areNewPhpIssues(e.before.phpWarnings,e.after.phpWarnings)}areSurvivedPhpWarnings(e){return this.areSurvivedPhpIssues(e.before.phpWarnings,e.after.phpWarnings)}areNewPhpNotices(e){return this.areNewPhpIssues(e.before.phpNotices,e.after.phpNotices)}areSurvivedPhpNotices(e){return this.areSurvivedPhpIssues(e.before.phpNotices,e.after.phpNotices)}areNewShortcodes(e){return jN(e.after.shortcodes,e.before.shortcodes).length>0}areSurvivedShortcodes(e){return e.after.shortcodes.length>0&&(t=e.before.shortcodes,n=e.after.shortcodes,0===jN(n,t).length);var t,n}renderWebsiteSummaryList(){const{smartUpdatesStatus:{details:e=[]}}=this.props,t=e,n=t.filter((e=>e.before.pageTitle!==e.after.pageTitle)).length,s=t.filter((e=>e.before.httpStatus!==e.after.httpStatus)).length,a=t.filter((e=>this.isBadHttpCode(e.before.httpStatus))).length,i=t.filter((e=>this.isNewBadHttpCode(e))).length,r=t.filter((e=>this.isSurvivedBadHttpCode(e))).length,o=t.filter((e=>e.before.phpErrors.length>0)).length,l=t.filter((e=>this.areNewPhpErrors(e))).length,c=t.filter((e=>this.areSurvivedPhpErrors(e))).length,u=t.filter((e=>e.before.phpWarnings.length>0)).length,d=t.filter((e=>this.areNewPhpWarnings(e))).length,p=t.filter((e=>this.areSurvivedPhpWarnings(e))).length,h=t.filter((e=>e.before.phpWarnings.length>0)).length,m=t.filter((e=>this.areNewPhpNotices(e))).length,g=t.filter((e=>this.areSurvivedPhpNotices(e))).length,f=t.filter((e=>e.before.shortcodes.length>0)).length,b=t.filter((e=>this.areNewShortcodes(e))).length,v=t.filter((e=>this.areSurvivedShortcodes(e))).length,y=[{key:"checkType",title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.checkType"})},{key:"beforeUpdate",title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.beforeUpdate"})},{key:"afterUpdate",title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.tableHeader.afterUpdate"})}],S=[{key:"pageTitleChanges",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.pageTitleChanges"}),beforeUpdate:(0,L.jsx)(xe,{name:"minus"}),afterUpdate:this.renderChanges(n)},{key:"httpResponseCodeChanges",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.httpResponseCodeChanges"}),beforeUpdate:(0,L.jsx)(xe,{name:"minus"}),afterUpdate:this.renderChanges(s)},{key:"httpResponseCodeErrors",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.httpResponseCodeErrors"}),beforeUpdate:a,afterUpdate:this.renderHttpResponseCodeChanges(i,r)},{key:"phpErrors",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpErrors"}),beforeUpdate:o,afterUpdate:this.renderPhpErrorChanges(l,c)},{key:"phpWarnings",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpWarnings"}),beforeUpdate:u,afterUpdate:this.renderPhpWarningChanges(d,p)},{key:"phpNotices",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.phpNotices"}),beforeUpdate:h,afterUpdate:this.renderPhpNoticeChanges(m,g)},{key:"shortcodes",checkType:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.websiteSummary.checkType.shortcodes"}),beforeUpdate:f,afterUpdate:this.renderShortcodeChanges(b,v)}];return(0,L.jsx)(uo,{columns:y,data:S})}renderWebsiteSummaryTab(){const{isPublic:e}=this.props;return(0,L.jsxs)(R.Fragment,{children:[this.renderWebsiteSummaryList(),!e&&this.renderDownloadSummaryButton()]})}render(){const{smartUpdatesCloneInstanceId:e,smartUpdatesCloneUrl:t,isPublic:n}=this.props,{activeTab:s}=this.state;return(0,L.jsxs)(Nl,{active:s,children:[(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.tab.websiteSummary"}),children:this.renderWebsiteSummaryTab()},this.TAB_WEBSITE_SUMMARY),(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.tab.pageIssuesReport"}),children:this.renderPageIssuesReportTab()},this.TAB_PAGE_ISSUES_REPORT),!n&&e&&t?(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.tab.stagingWebsiteCredentials"}),children:(0,L.jsx)(GN,{smartUpdatesCloneInstanceId:e,smartUpdatesCloneUrl:t})},this.TAB_STAGING_WEBSITE_CREDENTIALS):(0,L.jsx)(L.Fragment,{})]})}}KN.defaultProps={baseClassName:`${th}smart-update-result-tabs`,isPublic:!1};const QN=KN,JN=Fc((e=>({restApiUrl:e.app.urls.restApiUrl})))((({instanceId:e,smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:a,isPublic:i,instanceLink:r=null,restApiUrl:o=""})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ns,{level:3,children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.header"})}),i&&r?(0,L.jsx)(Us,{href:r,target:"_blank","data-test-id":"view-details",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.linkToPanel"})}):null,(()=>{if(!n||!a)return null;const e=VN(zN(a));return(0,L.jsxs)(Fe,{intent:uN,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.topNotice.main",params:{originalSiteLink:(0,L.jsx)(Us,{href:n,target:"_blank",children:VN(zN(n))}),stagingSiteLink:(0,L.jsx)(Us,{href:a,target:"_blank",children:e})}})}),(0,L.jsxs)(_a,{children:[(0,L.jsx)("strong",{children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.topNotice.reviewStaging"})})," ",(0,L.jsx)(Us,{href:a,target:"_blank","data-test-id":"smart-updates-clone-site-url",children:e})]})]})})(),(()=>{let e,n;switch(t.status){case wN:e=(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updatePrognosis.success"}),n=dN;break;case xN:e=(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updatePrognosis.warning"}),n=pN;break;case AN:e=(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updatePrognosis.failed"}),n=hN}return e?(0,L.jsxs)(Fe,{intent:n,children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:n})," ",e]}):null})(),(0,L.jsx)(QN,{instanceUrl:n,smartUpdatesStatus:t,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:a,isPublic:i,downloadSummaryUrl:zg(o,e)})]}))),XN=Fc((e=>({smartUpdateResults:e.smartUpdateResultsPublic.smartUpdateResults,instanceId:e.smartUpdateResultsPublic.instanceId,instanceUrl:e.smartUpdateResultsPublic.instanceUrl,instanceLink:e.smartUpdateResultsPublic.instanceLink})))((({smartUpdateResults:e,instanceId:t,instanceUrl:n,instanceLink:s,baseClassName:a=`${th}smart-update-results-public`})=>(0,L.jsx)("div",{className:a,children:null!==e&&n&&t&&e.taskStatus&&kN(e.taskStatus)?(0,L.jsx)(JN,{smartUpdatesStatus:e,instanceUrl:n,instanceLink:s,smartUpdatesCloneInstanceId:null==e?void 0:e.clone.id,smartUpdatesCloneUrl:null==e?void 0:e.clone.url,instanceId:t,isPublic:!0}):(0,L.jsx)(pp,{content:"smartUpdateResultsPublic.pageNotFound"})}))),ZN=()=>(0,L.jsx)(pp,{content:"general-ui.notFound"});class eF extends R.Component{constructor(){super(...arguments),this.toaster=null,this.setToasterRef=e=>{this.toaster=e}}componentDidUpdate(e){const{message:t}=this.props;if(null===e.message&&t&&this.toaster){const{intent:e,message:n}=t,s=this.toaster.add({intent:"error"===e?"danger":e,message:"string"==typeof n?(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(n,Object.assign(Object.assign({},up.defaults),{exclusiveFilter:e=>!("a"!==e.tag||e.text.trim()&&e.attribs.href.trim())})).replaceAll("\n","<br/><br/>")}}):n});e===Mp&&setTimeout((()=>{var e;return null===(e=this.toaster)||void 0===e?void 0:e.remove(s)}),3e3),this.props.clearAppMessage()}}render(){return(0,L.jsx)(tc,{ref:this.setToasterRef,className:this.props.baseClassName})}}eF.defaultProps={message:void 0,baseClassName:`${th}toaster`};const tF=Fc((e=>({message:e.app.message})),{clearAppMessage:ob})(eF);class nF extends R.Component{constructor(e){super(e),this.componentDidUpdate=()=>{null!==this.props.applicationUri&&null!==this.props.accountUsername&&this.handleGotoUri(this.props.applicationUri,this.props.accountUsername)},this.formRef=null,this.handleGotoUri=(e,t)=>{const{resetGoToCpanel:n}=this.props;n(),this.setState({applicationUri:e,accountUsername:t},(()=>{const{applicationUri:e,accountUsername:t}=this.state;e&&t&&(Wv()?this.formRef&&this.formRef.submit():window.open(`${Hv()}/${e}`))}))},this.state={applicationUri:null,accountUsername:null}}render(){const e=$v(),{applicationUri:t,accountUsername:n}=this.state;return n?(0,L.jsxs)("form",{target:"_blank",ref:e=>this.formRef=e,method:"POST",action:"/xfercpanel",style:{display:"none"},children:[(0,L.jsx)("input",{type:"hidden",name:"token",value:e}),(0,L.jsx)("input",{type:"hidden",name:"user",value:n}),t&&(0,L.jsx)("input",{type:"hidden",name:"goto_uri",value:t})]}):null}}nF.defaultProps={applicationUri:null,accountUsername:null};const sF=Fc((e=>({applicationUri:e.app.cpanel.applicationUri,accountUsername:e.app.cpanel.accountUsername})),(e=>({resetGoToCpanel:()=>e((e=>e({type:hS})))})))(nF);class aF extends R.Component{constructor(e){super(e),this.handleChangeRemoveOptions=()=>{const{changeRemoveOptions:e}=this.props,{dbChecked:t,dbUserChecked:n,actionLogChecked:s}=this.state;e({Db:t,DbUser:n,ActionLog:s})},this.renderDatabaseOption=()=>{const{db:e,dbUser:t,installationId:n,isDatabaseWillBeRemovedAutomatically:s,isInstanceDatabaseDeletionAllowed:a}=this.props,{dbChecked:i}=this.state;return a&&e?e.sharedWithInstallationsIds.length?(0,L.jsx)(fa,{children:(0,L.jsx)(pp,{content:"remove-confirmation.warningDbUsed",params:{name:e.name}})}):(0,L.jsx)(fa,{children:(0,L.jsx)(Tt,{checked:i,onChange:e=>{this.setState((n=>{let s=n.dbUserChecked;return t&&!t.sharedWithInstallationsIds.length&&this.isDatabaseUserWillBeRemovedWithDatabase(e)&&(s=!0),{dbChecked:e,dbUserChecked:s}}),this.handleChangeRemoveOptions)},disabled:s,children:(0,L.jsx)(pp,{content:"remove-confirmation.removeDb",params:{name:e.name}})})}):null},this.isDatabaseUserWillBeRemovedWithDatabase=(e=null)=>{const{db:t,dbUser:n}=this.props;let{dbChecked:s}=this.state;return null!==e&&(s=e),s&&n&&n.willBeRemovedAutomatically&&t&&!t.sharedWithInstallationsIds.length},this.renderDabaseUserRemovalHint=()=>{const{db:e,dbUser:t}=this.props;return t&&t.willBeRemovedAutomatically?e&&e.sharedWithInstallationsIds.length?null:(0,L.jsx)(pp,{content:"remove-confirmation.hintAssociatedDbUser"}):(0,L.jsx)(pp,{content:"remove-confirmation.hintDbUserMaybeUsedInAnotherApp"})},this.renderDatabaseUserOption=()=>{const{dbUser:e,installationId:t,isInstanceDatabaseDeletionAllowed:n}=this.props,{dbUserChecked:s}=this.state;return n&&e?e.sharedWithInstallationsIds.length?(0,L.jsx)(fa,{children:(0,L.jsx)(pp,{content:"remove-confirmation.warningDbUserUsed",params:{name:e.name}})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(fa,{children:(0,L.jsx)(Tt,{checked:s,disabled:this.isDatabaseUserWillBeRemovedWithDatabase(),onChange:e=>{this.setState({dbUserChecked:e},this.handleChangeRemoveOptions)},children:(0,L.jsx)(pp,{content:"remove-confirmation.removeDbUser",params:{name:e.name}})})}),(0,L.jsx)(fa,{children:this.renderDabaseUserRemovalHint()})]}):null},this.renderActionLogOption=()=>{const{installationId:e}=this.props,{actionLogChecked:t}=this.state;return(0,L.jsx)(fa,{children:(0,L.jsx)(Tt,{checked:t,onChange:e=>{this.setState({actionLogChecked:e},this.handleChangeRemoveOptions)},children:(0,L.jsx)(pp,{content:"remove-confirmation.removeActionLog"})})})},this.renderRemoveOptions=()=>{const{isActionLogAvailable:e}=this.props;return(0,L.jsxs)(L.Fragment,{children:[this.renderDatabaseOption(),this.renderDatabaseUserOption(),e&&this.renderActionLogOption()]})},this.state={dbChecked:!!e.db&&!e.db.sharedWithInstallationsIds.length,dbUserChecked:!!e.dbUser&&!e.dbUser.sharedWithInstallationsIds.length,actionLogChecked:!0}}render(){const{installationTitle:e,isInstanceDatabaseDeletionAllowed:t}=this.props,n=(0,L.jsx)(da,{bold:!0,children:e}),s=t?(0,L.jsx)(pp,{content:"remove-confirmation.hintWillRemoveSuccess",params:{site:n}}):(0,L.jsx)(pp,{content:"remove-confirmation.hintWillRemoveSuccessRemote"});return(0,L.jsxs)(ga,{gap:"xs",children:[(0,L.jsx)(fa,{children:s}),this.renderRemoveOptions()]})}}aF.defaultProps={isInstanceDatabaseDeletionAllowed:!1};const iF=aF,rF=({installationId:e,assetsType:t,page:n,pageSize:s,term:a="",token:i,compatible:r=!1,rating:o=0,lastUpdated:l="all",numberOfInstallations:c=0})=>u=>(t===Up?Gf.getInstallationsPlugins(e,n,s,r,c,l,o,a,{cancelToken:i}):Gf.getInstallationsThemes(e,n,s,r,c,l,o,a,{cancelToken:i})).then((({data:e})=>(u(oF(t,e.items)),e))).catch((e=>(u(Zf(e)),Promise.reject()))),oF=fp(VC,"assetsType","items"),lF=(e,t,n)=>s=>(s(cF(t,[e.slug])),{[Up]:()=>Gf.instalationsPluginsInstall(t,{slug:e.slug,status:!0}).then((({data:n})=>(s(uF(t,e.slug)),s({type:CS,installationId:t,data:n}),n))).catch((n=>(s(uF(t,e.slug)),s(Zf(n)),Promise.reject()))),[Rp]:()=>Gf.instalationsThemesInstall(t,{slug:e.slug,status:!1}).then((({data:n})=>(s(uF(t,e.slug)),s({type:BS,installationId:t,data:n}),n))).catch((n=>(s(uF(t,e.slug)),s(Zf(n)),Promise.reject())))}[n]()),cF=fp(WC,"instanceId","itemsIds"),uF=fp($C,"instanceId","slug"),dF=(e,t,n)=>s=>(t===Up?Gf.instalationsPluginsUploadAndInstall(e,n,!0):Gf.instalationsThemesUploadAndInstall(e,n,!1)).then((({data:e})=>(s(pF(e.task)),e))).catch((e=>422===e.response.status?(s(Xf(e)),Promise.reject(e)):(s(Zf(e)),Promise.reject()))),pF=e=>t=>t({type:zC,task:e}),hF=()=>e=>e({type:"asset/UPLOAD_AND_INSTALL_ASSET_TO_SINGLE_INSTANCE_FINISHED_WITH_ERRORS"}),mF=(e,t)=>n=>t===Up?n(Hx({instancesIds:[e]})).then((()=>n(mw(e)))).finally((()=>n({type:qC}))):n(Hx({instancesIds:[e]})).then((()=>n(kw(e)))).finally((()=>n({type:qC}))),gF=e=>{const t=Number(e);e=String(e);let n=null,s=null;return t>1e6?(n=Math.round(t/1e6),s=(0,L.jsx)(pp,{content:"general-ui.native-assets.numMillions"})):t>1e3&&(n=Math.round(t/1e3),s=(0,L.jsx)(pp,{content:"general-ui.native-assets.numThousands"})),n&&s&&(e=(0,L.jsx)(pp,{content:"general-ui.native-assets.downloaded",params:{number:n,word:s}})),e},fF=(e,t)=>e.some((e=>!(t.name!==e.name||t.version&&e.version&&t.version!==e.version)));class bF extends R.Component{constructor(e){super(e),this.isThemes=()=>this.props.type===Rp,this.handleInstallAsset=()=>{const{item:e,installation:t,type:n,install:s,isInstalling:a}=this.props;a||s(e,t.id,n).then((e=>{const t=n===Up?"controllers.index.install-plugin.itemInstalled":"controllers.index.install-theme.itemInstalled",s=(0,L.jsx)(pp,{content:t,params:{title:e.title}});this.props.addSuccessMessage(s)})).catch((()=>{}))},this.getTitle=e=>{const t=gF(e.downloaded),{name:n,profile:s}=e.author;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(e.title)}}),children:(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(e.title)}})}),(0,L.jsx)("br",{}),(0,L.jsx)(Il,{value:e.rating.score})," ",(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"general-ui.native-assets.numberOfRatings",params:{numRatings:e.rating.amount}})}),(0,L.jsx)("br",{}),(0,L.jsxs)(yi,{children:[(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"general-ui.native-assets.tooltipDownloaded"}),children:(0,L.jsx)(xe,{name:"arrow-down-tray"})})," ",t]}),(0,L.jsx)("br",{}),n&&s&&(0,L.jsxs)(yi,{className:"wpt-mgr-20",children:[(0,L.jsx)(xe,{name:"user"})," ",(0,L.jsx)(_e,{target:"_blank",href:s,"aria-label":this.props.translate("list-ui.instances.icons.user.ariaLabel"),children:n})]})]})},this.getSiteHeader=(e,t)=>(0,L.jsx)(es,{image:this.state.imageUrl,children:e.previewUrl&&(0,L.jsx)(ut,{intent:"primary",component:"a",href:e.previewUrl,target:"_blank",children:(0,L.jsx)(pp,{content:`general-ui.native-${t}.previewUrl`})})}),this.getRowContent=(e,t,n)=>{const s=dp()(e.shortDescription),{showFullDescription:a}=this.state,i=(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:s}}),r=(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:s.substring(0,300)}}),{type:o,blockedPlugins:l}=this.props;let c=r;if(s.length>320&&(c=a?(0,L.jsxs)(L.Fragment,{children:[i," ",(0,L.jsx)(_e,{onClick:()=>this.setState({showFullDescription:!1}),children:(0,L.jsx)(pp,{content:"general-ui.native-assets.showLess"})})]}):(0,L.jsxs)(L.Fragment,{children:[r,"... ",(0,L.jsx)(_e,{onClick:()=>this.setState({showFullDescription:!0}),children:(0,L.jsx)(pp,{content:"general-ui.native-assets.showMore"})})]})),o===Up&&l.includes(e.slug)){const t=e.isInstalled||n&&n.find((t=>t.slug===e.slug));c=(0,L.jsx)(da,{intent:"danger",children:(0,L.jsx)(pp,{content:t?"general-ui.native-assets.installedBlacklistedPluginHint":"general-ui.native-assets.blacklistedPluginHint"})})}return(0,L.jsxs)("div",{className:"wpt-display-flex",children:[(0,L.jsx)("div",{className:"list-assets-description",children:(0,L.jsx)(_a,{component:"div",children:c})}),(0,L.jsxs)("div",{className:"list-assets-actions",children:[this.getInstallActionContent(e,n),this.props.type===Up&&this.getDetailsActionContent(),this.getRequiresActionContent(e)]})]})},this.getInstallActionContent=(e,t)=>{const{type:n,blockedPlugins:s}=this.props;return e.isInstalled||t&&t.find((t=>t.slug===e.slug))?(0,L.jsx)("div",{className:"list-assets-actions-item","data-test-id":"plugendio-asset-installed-label",children:(0,L.jsxs)(da,{intent:"success",children:[(0,L.jsx)(xe,{name:"check-mark-circle"})," ",(0,L.jsx)(pp,{content:"general-ui.native-assets.labelInstalled"})]})}):(0,L.jsx)("div",{className:"list-assets-actions-item",children:(0,L.jsx)(ut,{disabled:n===Up&&s.includes(e.slug),tooltip:n===Up&&s.includes(e.slug)&&(0,L.jsx)(pp,{content:"general-ui.native-assets.blacklistedPluginHint"}),state:this.props.isInstalling?"loading":void 0,onClick:this.handleInstallAsset,"data-test-id":"plugendio-install-button",children:(0,L.jsx)(pp,{content:this.props.isInstalling?"general-ui.native-assets.buttonInstalling":"general-ui.native-assets.buttonInstall"})})})},this.getDetailsActionContent=()=>(0,L.jsx)("div",{className:"list-assets-actions-item",children:(0,L.jsx)(_e,{onClick:this.props.handleDetailsClick,"data-test-id":"plugendio-details-link",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.buttonDetails"})})}),this.getRequiresActionContent=e=>e.requires&&(0,L.jsxs)("div",{className:"list-assets-actions-item",children:[(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"general-ui.native-assets.tooltipVersion",params:{version:e.requires}}),children:(0,L.jsx)(xe,{src:e.logoUrl})})," ",e.requires]}),this.state={imageUrl:e.type===Rp?e.item.screenshotUrl:e.urls.defaultAssetImageUrl,showFullDescription:!1}}componentDidMount(){if(!this.isThemes()){const e=new Image;e.src=this.props.item.screenshotUrl,e.onerror=()=>{const t=new Image;t.src=e.src.replace(".png",".jpg"),t.onload=()=>this.setState({imageUrl:t.src})},e.onload=()=>this.setState({imageUrl:e.src})}try{const e=document.querySelector("#native-assets-list");e&&e.querySelectorAll(`.${ih}card__buttons`).forEach((e=>{e.style.display="none"}))}catch(e){}}render(){const{item:e,installation:t,type:n,installedAssets:s}=this.props;return(0,L.jsx)(is,{view:"row",title:this.getTitle(e),className:`native-asset-${t.id}-${e.slug} ${this.props.className}`,sideHeader:this.getSiteHeader(e,n),rowContent:this.getRowContent(e,t.id,s)})}}bF.defaultProps={installedAssets:null,className:""};const vF=Fc((e=>({urls:e.app.urls,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),(e=>({install:(0,Cb.zH)(lF,e),addSuccessMessage:(0,Cb.zH)(nb,e)})))(Nv(bF));class yF extends R.Component{constructor(e){super(e),this.handleMoveLeft=()=>{const e=Object.keys(this.props.screenshots),{activeKey:t}=this.state,n=e.length-1;if(t===e[0])return this.setState({activeKey:e[n]});const s=e.findIndex((e=>e===t));return this.setState({activeKey:e[s-1]})},this.handleMoveRight=()=>{const e=Object.keys(this.props.screenshots),{activeKey:t}=this.state,n=e.length-1;if(t===e[n])return this.setState({activeKey:e[0]});const s=e.findIndex((e=>e===t));return this.setState({activeKey:e[s+1]})};const t=Object.keys(e.screenshots);this.state={activeKey:t[0]}}render(){const{activeKey:e}=this.state,t=this.props.screenshots[e],n=Object.keys(this.props.screenshots).length,{maxPictureHeight:s}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("div",{className:"wpt-screenshot-wrapper",children:[n>1&&(0,L.jsx)("div",{onClick:this.handleMoveLeft,className:"slider-prev-control",children:(0,L.jsx)("i",{className:"left-arrow"})}),(0,L.jsx)("div",{className:"slider-wrapper",children:(0,L.jsx)("img",{style:{maxHeight:s},src:t.src})}),n>1&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{onClick:this.handleMoveRight,className:"slider-next-control",children:(0,L.jsx)("i",{className:"right-arrow"})}),(0,L.jsx)("div",{className:"slider-dot-control",children:Object.keys(this.props.screenshots).reduce(((t,n)=>(t.push((0,L.jsx)("div",{onClick:()=>this.setState({activeKey:n}),className:"slider-dot-control-image "+(n===e?"slider-dot-control-image__selected":"")},`dot-image-${n}`)),t)),[])})]})]}),t.caption&&(0,L.jsx)("div",{className:"wpt-screenshot-info",children:(0,L.jsx)("h3",{children:dp()(t.caption,{allowedTags:[]})})})]})}}yF.defaultProps={maxPictureHeight:0};const SF=yF;class wF extends R.Component{constructor(e){super(e),this.calcPictureSize=()=>{const e=document.documentElement.clientHeight,t=(e,t=!0)=>{try{const n=document.querySelectorAll(`.assetDetailDrawer ${e}`).item(0);return t?n.clientHeight:n.clientWidth}catch(e){return 0}},n=t(`.${ih}drawer-header`),s=t(`.${ih}drawer__subheader`),a=t(".asset-detail-container--short-description");this.setState({pictureHeight:e-n-s-a-118})},this.handleInstallAsset=()=>{const{item:e,instanceId:t,install:n,isInstalling:s}=this.props;s||n(e,t,Up).catch((()=>{}))},this.getSiteHeader=e=>(0,L.jsx)(es,{image:this.state.imageUrl,children:e.previewUrl&&(0,L.jsx)(ut,{intent:"primary",component:"a",href:e.previewUrl,target:"_blank",children:(0,L.jsx)(pp,{content:`general-ui.native-${Up}.previewUrl`})})}),this.getInstallActionContent=(e,t)=>e.installed||t&&t.find((t=>t.slug===e.slug))?(0,L.jsxs)(da,{intent:"success","data-test-id":"plugendio-details-installed-label",children:[(0,L.jsx)(xe,{name:"check-mark-circle"})," ",(0,L.jsx)(pp,{content:"general-ui.native-assets.labelInstalled"})," ",this.props.blockedPlugins.includes(e.slug)&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"general-ui.native-assets.installedBlacklistedPluginHint"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})]}):(0,L.jsx)(ut,{state:this.props.isInstalling?"loading":void 0,onClick:this.handleInstallAsset,"data-test-id":"plugendio-details-install-button",disabled:this.props.blockedPlugins.includes(e.slug),tooltip:this.props.blockedPlugins.includes(e.slug)&&(0,L.jsx)(pp,{content:"general-ui.native-assets.blacklistedPluginHint"}),children:(0,L.jsx)(pp,{content:this.props.isInstalling?"general-ui.native-assets.buttonInstalling":"general-ui.native-assets.buttonInstall"})}),this.getRating=e=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Il,{value:e.score})," ",(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"general-ui.native-assets.numberOfRatings",params:{numRatings:e.amount}})})]}),this.getTabs=(e,t)=>{let n=[],s=1;const a=this.getInfoCols();return e.sections.length&&(n=e.sections.map((e=>(0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:`general-ui.native-assets.${e.type}`}),children:(0,L.jsxs)("div",{style:{display:"flex"},children:[(0,L.jsx)("div",{style:{flex:1},dangerouslySetInnerHTML:{__html:dp()(e.content,Object.assign(Object.assign({},up.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),a&&(0,L.jsx)("div",{style:{width:320},children:(0,L.jsx)(ga,{xs:2,style:{paddingLeft:40},children:a})})]})},s++)))),t&&n.push((0,L.jsx)(Pl,{title:(0,L.jsx)(pp,{content:"general-ui.native-assets.screenshoots"}),children:(0,L.jsx)(SF,{maxPictureHeight:this.state.pictureHeight,screenshots:e.screenshots})},"screenshoots")),n},window.addEventListener("resize",this.calcPictureSize,!1),this.props.getPluginInfo({slug:this.props.item.slug,instanceId:this.props.instanceId}).then((e=>this.setState({itemDetails:e}))).catch((()=>{})),this.state={imageUrl:this.props.urls.defaultAssetImageUrl,itemDetails:null,pictureHeight:void 0};const t=new Image;t.src=this.props.item.screenshotUrl,t.onerror=()=>{const e=new Image;e.src=t.src.replace(".png",".jpg"),e.onload=()=>this.setState({imageUrl:e.src})},t.onload=()=>this.setState({imageUrl:t.src})}componentDidMount(){setTimeout((()=>this.calcPictureSize()),1e3)}componentWillUnmount(){window.removeEventListener("resize",this.calcPictureSize)}getInfoCols(){const{itemDetails:e}=this.state;if(!e)return null;const{version:t,updated:n,requires:s,rating:a,tested:i}=e,r=gF(e.downloaded);let o=0;const l=[];return t&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.version"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:t},++o+"-col")),n&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.lastUpdated"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:xS()(n).fromNow()},++o+"-col")),r&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.activeInstallations"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:r},++o+"-col")),s&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.requires"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:s},++o+"-col")),i&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.tested"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:i},++o+"-col")),a&&l.push((0,L.jsx)(fa,{className:"detail-row-info",children:(0,L.jsx)(pp,{content:"general-ui.native-assets.cols.ratings"})},++o+"-col"),(0,L.jsx)(fa,{className:"detail-row-info",children:this.getRating(a)},++o+"-col")),l}render(){const{installedAssets:e}=this.props,{itemDetails:t}=this.state;if(null===t)return null;const n=t.screenshots&&Object.keys(t.screenshots).length>0,{author:s,title:a}=t;return(0,L.jsxs)("div",{className:"asset-detail-container","data-test-id":"plugendio-details-drawer",children:[(0,L.jsxs)("div",{className:"asset-detail-container--short-description",children:[(0,L.jsx)("div",{className:"short-description-logo",children:this.getSiteHeader(t)}),(0,L.jsxs)("div",{className:"short-description-main-section",children:[(0,L.jsx)("h2",{dangerouslySetInnerHTML:{__html:dp()(a)}}),s&&(0,L.jsx)("div",{className:"list-assets-description-author",children:(0,L.jsxs)(yi,{children:[(0,L.jsx)(xe,{name:"user"})," ",(0,L.jsx)(_e,{href:s.profile,target:"_blank","aria-label":this.props.translate("list-ui.instances.icons.user.ariaLabel"),children:s.name})]})}),(0,L.jsx)("div",{className:"short-description-install-button",style:{marginTop:15},children:this.getInstallActionContent(t,e)})]})]}),(0,L.jsx)("div",{className:"asset-details-tabs",children:t||n?(0,L.jsx)(Nl,{children:this.getTabs(t,n)}):(0,L.jsx)(wI,{})})]})}}const xF=Fc((e=>({urls:e.app.urls,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList})),{install:lF,getPluginInfo:gw})(Nv(wF)),AF=[2,3,4,4.5],_F=[0,1e5,1e6],kF=["all","3M","6M","1y","2y"],jF={hideRatingFilter:!1,rating:0,numberOfInstallations:0,compatible:!1,lastUpdated:"all"};class CF extends R.Component{constructor(e){super(e),this.isFiltered=()=>0!==this.state.numberOfInstallations||!1!==this.state.compatible||0!==this.state.rating||"all"!==this.state.lastUpdated,this.resetState=()=>this.setState(Object.assign({},jF)),this.handleClearFilter=()=>{this.resetState(),this.props.onClearFilter()},this.handleRunFilter=()=>{const{rating:e,compatible:t,lastUpdated:n,numberOfInstallations:s}=this.state,{setLoading:a,setFiltered:i,updateFilterState:r}=this.props;return a(!0),i(this.isFiltered()),r({rating:e,compatible:t,lastUpdated:n,numberOfInstallations:s})},this.handleClickRatingItem=e=>{this.setState({rating:e},(()=>this.handleRunFilter()))},this.handleSetMinNumberOfInstallations=e=>{this.setState({numberOfInstallations:e},(()=>this.handleRunFilter()))},this.handleCompatibleChange=e=>{this.setState({compatible:e},(()=>this.handleRunFilter()))},this.handleSetLastUpdatedFilter=e=>{this.setState({lastUpdated:e},(()=>this.handleRunFilter()))},this.state=Object.assign({},jF)}componentDidUpdate(e){e.type!==this.props.type&&this.resetState()}render(){const{type:e,version:t}=this.props,{rating:n,compatible:s,lastUpdated:a,numberOfInstallations:i}=this.state;return(0,L.jsxs)(Ni,{vertical:!0,title:(0,L.jsxs)("div",{className:"wpt-display-flex",children:[(0,L.jsx)("div",{children:(0,L.jsx)(pp,{content:"general-ui.native-filter.title"})}),this.isFiltered()&&(0,L.jsx)("div",{className:"wpt-assets-filter-clear",children:(0,L.jsx)(_e,{icon:{style:{marginTop:2},name:"cross-mark",size:"16"},onClick:this.handleClearFilter,children:(0,L.jsx)(pp,{content:"general-ui.native-filter.clear"})})})]}),className:"wpt-assets-filter",children:[e===Up?(0,L.jsx)(vi,{children:(0,L.jsx)(Tt,{checked:s,onChange:e=>this.handleCompatibleChange(e),children:(0,L.jsx)(pp,{content:"general-ui.native-filter.compatible",params:{version:t}})})}):null,(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"general-ui.native-filter.minNubmerOfInstallationsArr.title"}),children:(0,L.jsx)(dt,{children:(0,L.jsx)(ua,{buttons:_F.map((e=>({title:(0,L.jsx)(pp,{content:`general-ui.native-filter.minNubmerOfInstallationsArr.>${e}`}),value:e}))),onChange:e=>this.handleSetMinNumberOfInstallations(e),selected:i})})}),(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"general-ui.native-filter.ratings.title"}),children:(0,L.jsxs)("div",{className:"wpt-native-assets-filter-item",children:[(0,L.jsxs)("label",{children:[(0,L.jsx)("input",{value:0,checked:0===n,type:"radio",name:"ratingFilterOn",onChange:()=>this.handleClickRatingItem(0)})," ",(0,L.jsx)(pp,{content:"general-ui.native-filter.ratings.all"})]}),AF.map((e=>(0,L.jsxs)("label",{children:[(0,L.jsx)("input",{value:e,checked:n===e,type:"radio",name:"ratingFilterOn",onChange:()=>this.handleClickRatingItem(e)})," ",(0,L.jsx)(Il,{value:e})]},`filter-${e}`)))]})}),e===Up?(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"general-ui.native-filter.lastUpdated.title"}),children:(0,L.jsx)("div",{className:"wpt-native-assets-filter-item",children:kF.map((e=>(0,L.jsxs)("label",{children:[(0,L.jsx)("input",{onChange:t=>this.handleSetLastUpdatedFilter(e),value:e,checked:e===a,type:"radio",name:"lastUpdated"})," ",(0,L.jsx)(pp,{content:`general-ui.native-filter.lastUpdated.${e}`})]},`last-updated-${e}`)))})}):null]})}}const IF=CF,TF={"application/zip":[".zip"]},DF=({assetType:e,disabled:t,onUpload:n,onUploadRejected:s,baseClassName:a=`${th}native-assets-upload`})=>(0,L.jsx)(hC,{onDrop:n,multiple:!1,onDropRejected:s,accept:TF,disabled:t,children:({getRootProps:n,getInputProps:s})=>(0,L.jsxs)("div",Object.assign({},n(),{className:`${a}__dropzone`,children:[(0,L.jsx)("input",Object.assign({},s({}),{"data-test-id":"custom-asset-file-upload"})),(0,L.jsx)(ut,{className:`${a}__upload-button`,disabled:t,children:e===Up?(0,L.jsx)(pp,{content:"general-ui.native-assets-upload.buttonUploadCustomPlugin"}):(0,L.jsx)(pp,{content:"general-ui.native-assets-upload.buttonUploadCustomTheme"})}),(0,L.jsx)("span",{children:"*.zip"})]}))}),PF=({onRemove:e,isProcessing:t,showProcessing:n})=>{const s=cp();return n?(0,L.jsx)(wI,{}):(0,L.jsx)(_e,{icon:nO("remove"),onClick:t?()=>{}:e,"aria-label":s("list-ui.instances.icons.remove.ariaLabel")})},OF=({asset:e,onDeactivate:t,onActivate:n,isProcessing:s,showProcessing:a,title:i=null,disabled:r=!1})=>{const o=e.status,l=o?t:n;return(0,L.jsx)(Dl,{tooltip:i,checked:o,disabled:e.disabled||s||r,onChange:s?()=>{}:l,loading:a,"data-test-status":e.status})};class LF extends R.Component{constructor(e){super(e),this.setMustUsePopoverVisible=e=>this.setState({isMustUsePopoverVisible:e}),this.state={isMustUsePopoverVisible:!1}}renderMustUseLabel(){const{isMustUsePopoverVisible:e}=this.state;return(0,L.jsxs)(Ks,{target:(0,L.jsx)(He,{view:"outline",intent:"info",onClick:()=>{this.setMustUsePopoverVisible(!e)},children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.mustUseLabel"})}),visible:e,onClose:()=>this.setMustUsePopoverVisible(!1),children:[(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.mustUseDescriptionText"})," ",(0,L.jsx)(Us,{href:"https://developer.wordpress.org/advanced-administration/plugins/mu-plugins/",target:"_blank",onClick:()=>{this.setMustUsePopoverVisible(!1)},children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.mustUseDescriptionLink"})})]})}render(){const{asset:e,installationId:t,showVulnerableWarning:n,onOpenSecurityDialog:s,baseClassName:a,scope:i,translate:r}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)("span",{children:[`${e.title} ${e.version}`," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:nO("circle-info"),"aria-label":r("list-ui.instances.icons.info.ariaLabel")}),placement:"bottom",children:(0,L.jsx)("p",{children:e.description})}),e.mustUse?(0,L.jsxs)(L.Fragment,{children:[" ",this.renderMustUseLabel()]}):null]}),n&&(0,L.jsx)("span",{className:`${a}__vulnerable-status`,children:e.status?(0,L.jsx)(_e,{icon:(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:"danger",size:"16"}),onClick:()=>s(t,`CRD_${i}`,wM),"data-test-id":xv,children:(0,L.jsx)(pp,{content:"titleListColumn.vulnerableLink"})}):(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),"data-test-id":xv,children:(0,L.jsx)(pp,{content:"titleListColumn.vulnerableLink"})}),children:r("PLUGINS"===i?"titleListColumn.inactiveVulnerableTooltip.plugins":"titleListColumn.inactiveVulnerableTooltip.themes")})})]})}}LF.defaultProps={baseClassName:`${th}title-list-column`};const MF=Nv(LF),EF=({hasUpdates:e,onUpdatesOpen:t})=>e?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{onClick:t,children:(0,L.jsx)(pp,{content:"controllers.index.detail.updatesSectionTitle"})})," "]}):null,RF=({disabled:e=!1,installationId:t,hasAdminCredentials:n,localeKey:s,tooltip:a=null})=>n?(0,L.jsx)(pp,{params:{url:(0,L.jsx)(RN,{disabled:e,instanceId:t,tooltip:a,children:(0,L.jsx)(pp,{content:"general-ui.WordPress"})})},content:s}):null,UF=({onAddItem:e,onRemoveItems:t,isRemoveItemsDisabled:n,installationId:s,hasAdminCredentials:a,addLocaleKey:i,removeLocaleKey:r,manageLocaleKey:o,isWordPressLoginDisabled:l=!1,tooltipWordPressLogin:c=null,autoUpdateAllAssetsLocaleKey:u,autoUpdateAllAssetsSwitchChecked:d=!1,autoUpdateAllAssetsSwitchDisabled:p=!1,autoUpdateAllAssetsSwitchLoading:h=!1,autoUpdateAllAssetsSwitchTooltip:m=null,onChangeAutoUpdates:g,filterButton:f=null,baseClassName:b=`${th}assets-tab-toolbar`})=>{const v=cp();return(0,L.jsx)(vi,{className:`${b}__section-item`,children:(0,L.jsxs)(Ha,{children:[(0,L.jsxs)(Ya,{title:v("list.assets.buttonActions"),children:[(0,L.jsx)(ut,{onClick:e,icon:"plus","data-test-id":"install-button",children:(0,L.jsx)(pp,{content:i})}),(0,L.jsx)(ut,{onClick:t,icon:"remove",disabled:n,children:(0,L.jsx)(pp,{content:r})})]}),(0,L.jsx)(Ya,{title:v(o),className:`${b}__manage-link`,children:(0,L.jsx)(RF,{disabled:l,installationId:s,hasAdminCredentials:a,localeKey:o,tooltip:c})}),(0,L.jsx)(Sa,{}),(0,L.jsxs)(Ya,{title:v(u),groupable:!1,children:[(0,L.jsx)(Dl,{checked:d,disabled:p,onChange:g,loading:h,tooltip:m})," ",(0,L.jsx)(pp,{content:u})]}),f]})})},NF=({dialog:e,type:t,onClose:n})=>e.isOpen?(0,L.jsx)(Wi,{isOpen:e.isOpen,cancelTitle:(0,L.jsx)(pp,{content:`controllers.index.manage-${t}.removeDialogButtonNo`}),buttons:(0,L.jsx)(ut,{intent:"primary",onClick:e.handleSubmit,"data-test-id":"button-yes",children:(0,L.jsx)(pp,{content:`controllers.index.manage-${t}.removeDialogButtonYes`})}),size:"sm",onClose:n,"data-test-id":"confirmation-remove-dialog",children:e.content}):null,FF=({current:e,total:t,onSelect:n})=>t>1?(0,L.jsx)(ha,{current:e,total:t,onSelect:n}):null,BF=(e,t)=>e.filter((e=>t.some((t=>e.slug===t.slug&&e.version===t.version)))).length!==e.length,YF=fp(eS,"task"),HF=fp("installations/INSTALLATION_INTEGRATION_PLUGIN_FINISHED","installationsIds"),VF=fp(tS,"task"),WF=fp("installations/REMOVE_INTEGRATION_PLUGIN_FINISHED","installationsIds"),$F=fp("installations/INTEGRATION_PLUGIN_TOKEN_ISSUED","installationId","apiTokenMeta"),zF=e=>t=>Gf.installIntegrationPlugin(e,sx).then((e=>(t(YF(e.data.task)),e.data.task))).catch((e=>(t(Zf(e)),Promise.reject()))),qF=e=>t=>(t(ow(e,[xh])),Gf.removeIntegrationPlugin(e,sx).then((e=>(t(VF(e.data.task)),e.data.task))).catch((e=>(t(Zf(e)),Promise.reject())))),GF={isOpen:!1,handleSubmit:()=>{},content:(0,L.jsx)(L.Fragment,{})};class KF extends R.Component{constructor(e){super(e),this.handleAddItem=()=>{this.props.checkSession().then((()=>this.props.onOpenNativePlugins()))},this.handleRemoveItems=e=>{const{installation:{id:t},pluginsV2:n}=this.props;if(0===e.length)return;const s=n.filter((t=>-1!==e.indexOf(t.slug))).map((e=>e.slug));this.setState({dialog:{isOpen:!0,handleSubmit:()=>{this.props.pluginsActions.remove(t,s).then((()=>{this.props.addSuccessMessage((0,L.jsx)(pp,{content:"controllers.index.uninstall-plugins.itemsUpdated"}));const{pages:t}=wp(this.getAssets(),this.state.currentPage,10),n=this.state.selection.filter((t=>-1===e.indexOf(t)));this.state.currentPage>t?this.setState({currentPage:t||1,selection:n}):this.setState({selection:n})})).catch((()=>{})),this.handleCloseDialog()},content:1===e.length?(0,L.jsx)(pp,{content:`controllers.index.manage-${Up}.confirmRemoveItem`}):(0,L.jsx)(pp,{content:`controllers.index.manage-${Up}.confirmRemoveItems`})}})},this.handleRemoveIntegrationPlugin=()=>{const{installation:{id:e},removeIntegrationPlugin:t}=this.props;this.context("CRD-INTEGRATION_PLUGIN_REMOVE-CLICKED"),this.setState({dialog:{isOpen:!0,handleSubmit:()=>{this.context("CRD-INTEGRATION_PLUGIN_REMOVE-CONFIRMED"),t(e).catch((()=>{})).finally((()=>this.handleCloseDialog()))},content:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.confirmRemoveIntegrationPlugin"})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.confirmRemoveIntegrationPlugin.note"})})]}),handleClose:()=>{this.context("CRD-INTEGRATION_PLUGIN_REMOVE-ABORTED"),this.handleCloseDialog()}}})},this.handleCloseDialog=()=>this.setState({dialog:Object.assign({},GF)}),this.handleOpenActivateVulnerablePluginConfirmation=e=>{this.setState({showActivateVulnerablePluginConfirmation:!0,activateVulnerablePluginConfirmationPluginId:e})},this.handleCloseActivateVulnerablePluginConfirmation=()=>{this.setState({showActivateVulnerablePluginConfirmation:!1,activateVulnerablePluginConfirmationPluginId:null})},this.getAssets=()=>{const{installation:{id:e},pluginsV2:t,blockedPlugins:n}=this.props;let s=[];return t&&(s=t.sort(((e,t)=>Pp(e.title,t.title))).map((t=>{const s=t.slug;return Object.assign(Object.assign({key:s},t),{instanceId:e,meta:{autoUpdates:{canBeEnabled:!t.autoUpdates&&!n.includes(t.slug),canBeDisabled:t.autoUpdates&&(t.autoUpdatesAvailable||n.includes(t.slug))}},isAssetVulnerableWhenEnabled:GS(t.slug,this.props.pluginsVulnerabilityStatuses,[Nf])})}))),s},this.filterOutMustUsePluginKeys=e=>{const t=this.getAssets().filter((e=>e.mustUse)).map((e=>e.key));return e.filter((e=>!t.includes(e)))},this.handlePluginStatusChange=(e,t)=>{this.props.pluginsActions.activateOrDeactivatePlugin(e,t).then((t=>{const n=t?"asset.plugin.activated":"asset.plugin.deactivated",s=(0,L.jsx)(pp,{content:n,params:{pluginTitle:e.title}});this.props.addSuccessMessage(s)})).catch((()=>{}))},this.addPluginsToChangingPluginsAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingPluginsAutoUpdates.values());return e.forEach((e=>{n.add(e)})),{changingPluginsAutoUpdates:n}}))},this.removePluginsFromChangingPluginsAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingPluginsAutoUpdates.values());return e.forEach((e=>{n.delete(e)})),{changingPluginsAutoUpdates:n}}))},this.isAutoUpdateAllPluginsSwitchChecked=()=>this.getAssets().filter((e=>!e.mustUse)).every((e=>!e.meta.autoUpdates.canBeEnabled)),this.isAutoUpdateAllPluginsSwitchDisabled=()=>!this.props.installation.features.updates.autoUpdatesAvailable||(this.isAutoUpdateAllPluginsSwitchChecked()?!this.getAssets().some((e=>e.meta.autoUpdates.canBeDisabled)):!this.getAssets().some((e=>e.meta.autoUpdates.canBeEnabled))),this.getAutoUpdateAllAssetsSwitchTooltip=()=>this.isAutoUpdateAllPluginsSwitchDisabled()?(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.pluginsAutoUpdatesEnabledHint"}):this.isAutoUpdateAllPluginsSwitchChecked()?(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.autoUpdateAllPluginsTurnedOnHint"}):(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.autoUpdateAllPluginsTurnedOffHint"}),this.handleToggleFilter=()=>{this.setState((e=>({isFilterOpen:!e.isFilterOpen})))},this.handlePluginNameFilterChange=e=>{this.setState({pluginNameFilter:e,currentPage:1})},this.handleClearFilter=()=>{this.setState({pluginNameFilter:""})},this.getFilteredAssets=()=>{const{pluginNameFilter:e}=this.state;return tE(this.getAssets(),e)},this.getFilterButtonConfig=()=>({hasActiveFilter:Boolean(this.state.pluginNameFilter.trim()),onToggle:this.handleToggleFilter}),this.getFilterPanelConfig=()=>({pluginNameFilter:this.state.pluginNameFilter,siteUrlFilter:"",isOpen:this.state.isFilterOpen,onPluginNameChange:this.handlePluginNameFilterChange,onClear:this.handleClearFilter,showSiteUrlFilter:!1}),this.renderFilterPanel=()=>(0,L.jsx)(QM,Object.assign({},this.getFilterPanelConfig())),this.renderFilterButton=()=>(0,L.jsx)(GM,Object.assign({},this.getFilterButtonConfig())),this.renderList=()=>{var e;const{isPaginationEnabled:t}=this.props,{currentPage:n,selection:s,dialog:a,isLoading:i}=this.state;if(i)return(0,L.jsx)(Qn,{});const r=this.getFilteredAssets(),{pages:o,currentItems:l}=t?wp(r,n,10):{pages:1,currentItems:r};return 0===l.length?(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.nothingFound"}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(uo,{columns:this.getColumns(),data:l,selection:s,onSelectionChange:e=>this.setState({selection:e}),"data-test-id":av,rowProps:e=>({"data-test-plugin-slug":e.slug.toLowerCase()})}),t&&(0,L.jsx)(FF,{current:this.state.currentPage,total:o,onSelect:e=>this.setState({currentPage:e,selection:[]})}),(0,L.jsx)(NF,{dialog:a,type:Up,onClose:null!==(e=a.handleClose)&&void 0!==e?e:this.handleCloseDialog})]})},this.state={currentPage:1,selection:[],dialog:Object.assign({},GF),isLoading:!this.props.pluginsV2||0===Object.keys(this.props.pluginsV2).length,changingPluginsAutoUpdates:new Set,isAutoUpdateAllPluginsSwitchLoading:!1,showActivateVulnerablePluginConfirmation:!1,activateVulnerablePluginConfirmationPluginId:null,pluginNameFilter:"",isFilterOpen:!1}}componentDidMount(){this.state.isLoading&&this.loadPlugins()}componentDidUpdate(e){const t=BF(e.pluginsV2,this.props.pluginsV2),n=BF(this.props.pluginsV2,e.pluginsV2);(t||n)&&this.props.getInstallationsVulnerabilityStatuses([this.props.installation.id]).catch((()=>{}))}loadPlugins(){Promise.all([this.props.pluginsActions.getInstallationPlugins(this.props.installation.id).catch((()=>{})),this.props.reloadInstallationsVulnerabilityStatuses([this.props.installation.id])]).catch((()=>{})).finally((()=>this.setState({isLoading:!1})))}getColumns(){const{installation:e,blockedPlugins:t,pluginsActions:{setPluginsAutoUpdates:n},onOpenSecurityDialog:s,showIntegrationPluginRemoveOption:a}=this.props,{isAutoUpdateAllPluginsSwitchLoading:i,showActivateVulnerablePluginConfirmation:r,activateVulnerablePluginConfirmationPluginId:o}=this.state;return[{key:"title",width:"60%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldName"}),render:n=>(0,L.jsxs)(R.Fragment,{children:[t.includes(n.slug)&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})})," ",(0,L.jsx)(MF,{asset:n,showVulnerableWarning:n.isAssetVulnerableWhenEnabled,installationId:e.id,onOpenSecurityDialog:s,scope:"PLUGINS"})]})},{key:"state",width:"10%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldState"}),render:e=>{const n=yp(e),s=this.props.assetsToChangingStatus.has(n),a=s||this.props.assetsToRemove.has(n),i=t.includes(e.slug);return e.mustUse?null:e.isAssetVulnerableWhenEnabled&&!e.status?(0,L.jsx)(qM,{target:(0,L.jsx)(OF,{title:i&&(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),disabled:i&&!e.status,asset:e,isProcessing:a,showProcessing:s,onActivate:()=>this.handleOpenActivateVulnerablePluginConfirmation(e.key),onDeactivate:()=>this.handlePluginStatusChange(e,!1)}),onActivate:()=>this.handlePluginStatusChange(e,!0),isOpen:r&&o===e.key,onClose:this.handleCloseActivateVulnerablePluginConfirmation,children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.activateVulnerablePluginConfirmation",params:{pluginName:e.title}})})}):(0,L.jsx)(OF,{title:i&&(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.blacklistedPluginHint"}),disabled:i&&!e.status,asset:e,isProcessing:a,showProcessing:s,onActivate:()=>this.handlePluginStatusChange(e,!0),onDeactivate:()=>this.handlePluginStatusChange(e,!1)})}},{key:"autoUpdate",width:"10%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.fieldAutoUpdates"}),align:"center",render:t=>{const s=yp(t),a=this.props.assetsToChangingStatus.has(s)||this.props.assetsToRemove.has(s),r=!e.features.updates.autoUpdatesAvailable||t.autoUpdates&&!t.meta.autoUpdates.canBeDisabled||!t.autoUpdates&&!t.meta.autoUpdates.canBeEnabled;return!t.mustUse&&(0,L.jsx)(Dl,{tooltip:t.autoUpdates&&!t.autoUpdatesAvailable&&(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.pluginsAutoUpdatesEnabledHint"}),checked:t.autoUpdates,disabled:r||a,onChange:s=>{this.addPluginsToChangingPluginsAutoUpdates([t.slug]),n(e.id,[t],s).catch((()=>{})).finally((()=>this.removePluginsFromChangingPluginsAutoUpdates([t.slug])))},loading:this.state.changingPluginsAutoUpdates.has(t.slug)||i})}},{key:"update",width:"10%",render:e=>{const t=yp(e),n=this.props.assetsToRemove.has(t);return!e.mustUse&&!n&&(0,L.jsx)(EF,{onUpdatesOpen:this.props.onUpdatesOpen,hasUpdates:null!==e.availableVersion})}},{key:"action",width:"10%",render:e=>{const t=yp(e),n=this.props.assetsToRemove.has(t),s=n||this.props.assetsToChangingStatus.has(t);return e.mustUse&&e.slug===xh?a?(0,L.jsx)(PF,{onRemove:e=>gp(e,this.handleRemoveIntegrationPlugin),isProcessing:s,showProcessing:n}):null:!e.mustUse&&(0,L.jsx)(PF,{onRemove:t=>gp(t,this.handleRemoveItems,[e.slug]),isProcessing:s,showProcessing:n})}}]}render(){const{installation:{id:e,features:{maintenance:t,credentials:n}},pluginsActions:{setPluginsAutoUpdates:s},showTitle:a,baseClassName:i}=this.props,{selection:r,isAutoUpdateAllPluginsSwitchLoading:o,isFilterOpen:l}=this.state,c=t.status&&t.fullMode?(0,L.jsx)(pp,{content:"controllers.index.manage-plugins.tooltipPluginsInsideWordpressLink"}):null;return(0,L.jsxs)(Ni,{title:a?(0,L.jsx)(pp,{content:"controllers.index.detail.pluginsTabTitle"}):void 0,children:[(0,L.jsx)(UF,{installationId:e,hasAdminCredentials:n.available,onAddItem:this.handleAddItem,onRemoveItems:()=>this.handleRemoveItems(this.filterOutMustUsePluginKeys(r)),isRemoveItemsDisabled:0===this.filterOutMustUsePluginKeys(r).length,manageLocaleKey:"controllers.index.manage-plugins.managePluginsInsideWordpressLink",addLocaleKey:"controllers.index.manage-plugins.installItem",removeLocaleKey:"controllers.index.manage-plugins.removeItems",isWordPressLoginDisabled:t.status&&t.fullMode||!1,tooltipWordPressLogin:c,autoUpdateAllAssetsLocaleKey:"controllers.index.manage-plugins.autoUpdateAllPlugins",autoUpdateAllAssetsSwitchChecked:this.isAutoUpdateAllPluginsSwitchChecked(),autoUpdateAllAssetsSwitchDisabled:this.isAutoUpdateAllPluginsSwitchDisabled(),autoUpdateAllAssetsSwitchLoading:o,onChangeAutoUpdates:t=>{this.setState({isAutoUpdateAllPluginsSwitchLoading:!0});const n=this.getAssets().filter((e=>t?e.meta.autoUpdates.canBeEnabled:e.meta.autoUpdates.canBeDisabled));s(e,n,t).catch((()=>{})).finally((()=>this.setState({isAutoUpdateAllPluginsSwitchLoading:!1})))},autoUpdateAllAssetsSwitchTooltip:this.getAutoUpdateAllAssetsSwitchTooltip(),filterButton:this.renderFilterButton()}),(0,L.jsxs)("div",{className:`${i}__content-wrapper`,children:[(0,L.jsx)("div",{className:`${i}__list-wrapper`,children:(0,L.jsx)(vi,{children:this.renderList()})}),l&&this.renderFilterPanel()]})]})}}KF.defaultProps={pluginsV2:[],isPaginationEnabled:!0,showTitle:!0,baseClassName:`${th}plugins-tab`},KF.contextType=Q_;const QF=Fc(((e,t)=>{var n,s;const a=e.instances.pluginsV2[t.installation.id],i=(null===(s=null===(n=e.vulnerabilities.installationsVulnerabilityStatuses)||void 0===n?void 0:n.find((e=>e.id===t.installation.id)))||void 0===s?void 0:s.plugins)||[];return{pluginsV2:a,blockedPlugins:e.app.options.pluginsBlocklistFeatureSettings.pluginsList,assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,pluginsVulnerabilityStatuses:i,showIntegrationPluginRemoveOption:e.app.options.integrationPluginSettings.showIntegrationPluginRemoveOption}}),(e=>({pluginsActions:(0,Cb.zH)({activateOrDeactivatePlugin:dw,setPluginsAutoUpdates:hw,getInstallationPlugins:mw,remove:pw},e),reloadInstallationsVulnerabilityStatuses:(0,Cb.zH)(ew,e),getInstallationsVulnerabilityStatuses:(0,Cb.zH)(tw,e),checkSession:()=>e(tb()),addSuccessMessage:(0,Cb.zH)(nb,e),removeIntegrationPlugin:(0,Cb.zH)(qF,e)})))(KF),JF={isOpen:!1,handleSubmit:()=>{},content:(0,L.jsx)(L.Fragment,{})};class XF extends R.Component{constructor(e){super(e),this.handleAddItem=()=>this.props.checkSession().then((()=>this.props.onOpenNativeThemes())),this.getAssets=()=>{const{installation:{id:e},themesV2:t}=this.props;let n=[];return t&&(n=t.sort(((e,t)=>Pp(e.title,t.title))).map((t=>Object.assign(Object.assign({key:t.slug},t),{instanceId:e,isAssetVulnerableWhenEnabled:GS(t.slug,this.props.themesVulnerabilityStatuses,[Nf])})))),n},this.handleRemoveItems=e=>{const{installation:{id:t},themesV2:n}=this.props;if(!Array.isArray(e)||!e.length)return;const s=n.filter((t=>-1!==e.indexOf(t.slug))).map((e=>e.slug));this.setState({dialog:{isOpen:!0,handleSubmit:()=>{this.props.themesActions.remove(t,s).then((()=>{this.props.addSuccessMessage((0,L.jsx)(pp,{content:"controllers.index.uninstall-themes.itemsUpdated"}));const{pages:t}=wp(this.getAssets(),this.state.currentPage,10),n=this.state.selection.filter((t=>-1===e.indexOf(t)));this.state.currentPage>t?this.setState({currentPage:t||1,selection:n}):this.setState({selection:n})})).catch((()=>{})),this.handleCloseDialog()},content:1===e.length?(0,L.jsx)(pp,{content:`controllers.index.manage-${Rp}.confirmRemoveItem`}):(0,L.jsx)(pp,{content:`controllers.index.manage-${Rp}.confirmRemoveItems`})}})},this.handleCloseDialog=()=>this.setState({dialog:Object.assign({},JF)}),this.handleOpenActivateVulnerableThemeConfirmation=e=>{this.setState({showActivateVulnerableThemeConfirmation:!0,activateVulnerableThemeConfirmationThemeId:e})},this.handleCloseActivateVulnerableThemeConfirmation=()=>{this.setState({showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null})},this.handleActivateTheme=e=>{this.props.themesActions.activateTheme({slug:e.slug,instanceId:this.props.installation.id}).then((t=>{t&&this.props.addSuccessMessage((0,L.jsx)(pp,{content:"asset.theme.activated",params:{themeTitle:e.title}}))})).catch((()=>{}))},this.addThemesToChangingThemesAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingThemesAutoUpdates.values());return e.forEach((e=>{n.add(e)})),{changingThemesAutoUpdates:n}}))},this.removeThemesFromChangingThemesAutoUpdates=e=>{this.setState((t=>{const n=new Set(t.changingThemesAutoUpdates.values());return e.forEach((e=>{n.delete(e)})),{changingThemesAutoUpdates:n}}))},this.isAutoUpdateAllThemesSwitchChecked=()=>this.getAssets().every((e=>e.autoUpdates)),this.isAutoUpdateAllThemesSwitchDisabled=()=>{const{installation:{features:{updates:{autoUpdatesAvailable:e}}}}=this.props;return!e||this.getAssets().every((e=>e.autoUpdates&&!e.autoUpdatesAvailable))},this.getAutoUpdateAllThemesSwitchTooltip=()=>this.isAutoUpdateAllThemesSwitchDisabled()?(0,L.jsx)(pp,{content:"controllers.index.manage-themes.themesAutoUpdatesEnabledHint"}):this.isAutoUpdateAllThemesSwitchChecked()?(0,L.jsx)(pp,{content:"controllers.index.manage-themes.autoUpdateAllThemesTurnedOnHint"}):(0,L.jsx)(pp,{content:"controllers.index.manage-themes.autoUpdateAllThemesTurnedOffHint"}),this.handleToggleFilter=()=>{this.setState((e=>({isFilterOpen:!e.isFilterOpen})))},this.handleThemeNameFilterChange=e=>{this.setState({themeNameFilter:e,currentPage:1})},this.handleClearFilter=()=>{this.setState({themeNameFilter:"",currentPage:1})},this.getFilteredAssets=()=>{const{themeNameFilter:e}=this.state;return tE(this.getAssets(),e)},this.getFilterButtonConfig=()=>({hasActiveFilter:Boolean(this.state.themeNameFilter.trim()),onToggle:this.handleToggleFilter}),this.getFilterPanelConfig=()=>({themeNameFilter:this.state.themeNameFilter,isOpen:this.state.isFilterOpen,onThemeNameChange:this.handleThemeNameFilterChange,onClear:this.handleClearFilter,showSiteUrlFilter:!1}),this.renderFilterPanel=()=>(0,L.jsx)(LE,Object.assign({},this.getFilterPanelConfig())),this.renderFilterButton=()=>(0,L.jsx)(GM,Object.assign({},this.getFilterButtonConfig())),this.renderList=()=>{const{isPaginationEnabled:e}=this.props,{currentPage:t,selection:n,dialog:s,isLoading:a}=this.state;if(a)return(0,L.jsx)(Qn,{});const i=this.getFilteredAssets(),{pages:r,currentItems:o}=e?wp(i,t,10):{pages:1,currentItems:i};return 0===o.length?(0,L.jsx)(pp,{content:"controllers.index.manage-themes.nothingFound"}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(uo,{columns:this.getColumns(),data:o,selection:n,onSelectionChange:e=>this.setState({selection:e}),"data-test-id":av,rowProps:e=>({"data-test-theme-slug":e.slug.toLowerCase()})}),e&&(0,L.jsx)(FF,{current:t,total:r,onSelect:e=>this.setState({currentPage:e,selection:[]})}),(0,L.jsx)(NF,{dialog:s,type:Rp,onClose:this.handleCloseDialog})]})},this.state={currentPage:1,selection:[],dialog:Object.assign({},JF),isLoading:!this.props.themesV2||0===Object.keys(this.props.themesV2).length,changingThemesAutoUpdates:new Set,isAutoUpdateAllThemesSwitchLoading:!1,showActivateVulnerableThemeConfirmation:!1,activateVulnerableThemeConfirmationThemeId:null,themeNameFilter:"",isFilterOpen:!1}}componentDidMount(){this.state.isLoading&&this.loadThemes()}componentDidUpdate(e){const t=BF(e.themesV2,this.props.themesV2),n=BF(this.props.themesV2,e.themesV2);(t||n)&&this.props.getInstallationsVulnerabilityStatuses([this.props.installation.id]).catch((()=>{}))}loadThemes(){Promise.all([this.props.themesActions.getInstallationThemes(this.props.installation.id),this.props.reloadInstallationsVulnerabilityStatuses([this.props.installation.id])]).catch((()=>{})).finally((()=>this.setState({isLoading:!1})))}getColumns(){const{installation:e,themesActions:{setThemesAutoUpdates:t},onOpenSecurityDialog:n}=this.props,{isAutoUpdateAllThemesSwitchLoading:s,showActivateVulnerableThemeConfirmation:a,activateVulnerableThemeConfirmationThemeId:i}=this.state;return[{key:"title",width:"60%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldName"}),render:t=>(0,L.jsx)(MF,{asset:t,installationId:e.id,onOpenSecurityDialog:n,showVulnerableWarning:t.isAssetVulnerableWhenEnabled,scope:"THEMES"})},{key:"state",width:"10%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldState"}),render:e=>{const t=yp(e),n=this.props.themesV2.some((e=>{const t=yp({slug:e.slug,instanceId:this.props.installation.id});return this.props.assetsToChangingStatus.has(t)})),s=n||this.props.assetsToRemove.has(t);return e.isAssetVulnerableWhenEnabled&&!e.status?(0,L.jsx)(qM,{target:(0,L.jsx)(OF,{asset:e,isProcessing:s,showProcessing:n,onActivate:()=>this.handleOpenActivateVulnerableThemeConfirmation(e.slug),onDeactivate:()=>{}}),onActivate:()=>this.handleActivateTheme(e),isOpen:a&&i===e.slug,onClose:this.handleCloseActivateVulnerableThemeConfirmation,children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.activateVulnerableThemeConfirmation",params:{themeName:e.title}})})}):(0,L.jsx)(OF,{asset:e,isProcessing:s,showProcessing:n,onActivate:()=>this.handleActivateTheme(e),onDeactivate:()=>{}})}},{key:"autoUpdate",width:"10%",title:(0,L.jsx)(pp,{content:"controllers.index.manage-themes.fieldAutoUpdates"}),align:"center",render:n=>{const a=yp(n),i=this.props.assetsToChangingStatus.has(a)||this.props.assetsToRemove.has(a),r=!e.features.updates.autoUpdatesAvailable||n.autoUpdates&&!n.autoUpdatesAvailable||this.props.assetsToRemove.has(a);return(0,L.jsx)(Dl,{checked:n.autoUpdates,onChange:s=>{this.addThemesToChangingThemesAutoUpdates([n.slug]),t(e.id,[n],s).catch((()=>{})).finally((()=>this.removeThemesFromChangingThemesAutoUpdates([n.slug])))},disabled:r||i,loading:this.state.changingThemesAutoUpdates.has(n.slug)||s,tooltip:n.autoUpdates&&(0,L.jsx)(pp,{content:"controllers.index.manage-themes.themesAutoUpdatesEnabledHint"})})}},{key:"update",width:"10%",render:e=>{const t=yp(e);return!1===this.props.assetsToRemove.has(t)&&(0,L.jsx)(EF,{onUpdatesOpen:this.props.onUpdatesOpen,hasUpdates:null!==e.availableVersion})}},{key:"action",width:"10%",render:e=>{const t=yp(e);if(e.status)return null;const n=this.props.assetsToRemove.has(t),s=n||this.props.assetsToChangingStatus.has(t);return(0,L.jsx)(PF,{isProcessing:s,showProcessing:n,onRemove:t=>gp(t,this.handleRemoveItems,[e.slug])})}}]}getSelectedThemesForRemove(){const{themesV2:e}=this.props;return e?this.state.selection.filter((t=>{const n=e.find((e=>e.slug===t));return!!n&&!n.status})):[]}render(){const{installation:{id:e,features:{credentials:t,maintenance:n}},themesActions:{setThemesAutoUpdates:s},showTitle:a,baseClassName:i}=this.props,{isAutoUpdateAllThemesSwitchLoading:r,isFilterOpen:o}=this.state,l=n.status&&n.fullMode?(0,L.jsx)(pp,{content:"controllers.index.manage-themes.tooltipThemesInsideWordpressLink"}):null,c=this.getSelectedThemesForRemove();return(0,L.jsxs)(Ni,{title:a?(0,L.jsx)(pp,{content:"controllers.index.detail.themesTabTitle"}):void 0,children:[(0,L.jsx)(UF,{installationId:e,hasAdminCredentials:t.available,onAddItem:this.handleAddItem,onRemoveItems:()=>this.handleRemoveItems(c),isRemoveItemsDisabled:0===c.length,manageLocaleKey:"controllers.index.manage-themes.manageThemesInsideWordpressLink",addLocaleKey:"controllers.index.manage-themes.installItem",removeLocaleKey:"controllers.index.manage-themes.removeItems",isWordPressLoginDisabled:n.status&&n.fullMode||!1,tooltipWordPressLogin:l,autoUpdateAllAssetsLocaleKey:"controllers.index.manage-themes.autoUpdateAllThemes",autoUpdateAllAssetsSwitchChecked:this.isAutoUpdateAllThemesSwitchChecked(),autoUpdateAllAssetsSwitchDisabled:this.isAutoUpdateAllThemesSwitchDisabled(),autoUpdateAllAssetsSwitchLoading:r,onChangeAutoUpdates:t=>{this.setState({isAutoUpdateAllThemesSwitchLoading:!0}),s(e,this.getAssets(),t).catch((()=>{})).finally((()=>this.setState({isAutoUpdateAllThemesSwitchLoading:!1})))},autoUpdateAllAssetsSwitchTooltip:this.getAutoUpdateAllThemesSwitchTooltip(),filterButton:this.renderFilterButton()}),(0,L.jsxs)("div",{className:`${i}__content-wrapper`,children:[(0,L.jsx)("div",{className:`${i}__list-wrapper`,children:(0,L.jsx)(vi,{children:this.renderList()})}),o&&this.renderFilterPanel()]})]})}}XF.defaultProps={themesV2:[],isPaginationEnabled:!0,showTitle:!0,baseClassName:`${th}themes-tab`};const ZF=Fc(((e,t)=>{var n,s;const a=e.instances.themesV2[t.installation.id],i=(null===(s=null===(n=e.vulnerabilities.installationsVulnerabilityStatuses)||void 0===n?void 0:n.find((e=>e.id===t.installation.id)))||void 0===s?void 0:s.themes)||[];return{themesV2:a,assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,themesVulnerabilityStatuses:i}}),(e=>({themesActions:(0,Cb.zH)({remove:Aw,activateTheme:xw,getInstallationThemes:kw,setThemesAutoUpdates:_w},e),reloadInstallationsVulnerabilityStatuses:(0,Cb.zH)(ew,e),getInstallationsVulnerabilityStatuses:(0,Cb.zH)(tw,e),checkSession:()=>e(tb()),addSuccessMessage:(0,Cb.zH)(nb,e)})))(XF);class eB extends R.Component{constructor(e){super(e),this.handleSubmit=e=>{const{setDbSettings:t,onSetDbUserName:n,installationId:s,onClosePopover:a}=this.props;this.state.isProcessing||(this.setState({dbUserName:e.dbUserName,dbUserPassword:e.dbUserPassword,isProcessing:!0,errors:null}),t(s,e).then((t=>{t.status===Ep?t.formErrors&&this.setState({errors:t.formErrors}):(n(e.dbUserName),a())})).finally((()=>{this.setState({isProcessing:!1})})))},this.state={dbUserName:e.dbUserName||"",dbUserPassword:"",isProcessing:!1,errors:{}}}render(){const{dbHost:e,dbName:t}=this.props,{dbUserName:n,dbUserPassword:s,isProcessing:a,errors:i}=this.state;return(0,L.jsxs)(Hi,{onSubmit:this.handleSubmit,hideRequiredLegend:!0,values:{dbUserName:n,dbUserPassword:s},state:a?"submit":null,errors:i,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":"instance-database-settings-submit-button"},children:[(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.db-settings.dbServer"}),children:e}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.db-settings.dbName"}),children:t}),(0,L.jsx)(Dr,{name:"dbUserName",label:(0,L.jsx)(pp,{content:"forms.db-settings.dbUserName"})}),(0,L.jsx)(Ar,{name:"dbUserPassword",label:(0,L.jsx)(pp,{content:"forms.db-settings.dbUserPassword"})})]})}}eB.propTypes={installationId:je().number.isRequired,dbHost:je().string.isRequired,dbName:je().string.isRequired,dbUserName:je().string.isRequired,onSetDbUserName:je().func.isRequired,onClosePopover:je().func.isRequired,setDbSettings:je().func.isRequired};const tB=eB;class nB extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{settingsData:{dbName:e,dbListUrl:t,webAdminUrl:n}}=this.props;return(0,L.jsxs)(L.Fragment,{children:[t?(0,L.jsx)("a",{href:t,target:"_blank",children:e}):e,n&&(0,L.jsxs)(L.Fragment,{children:[" [",(0,L.jsx)("a",{href:n,target:"_blank","data-test-id":iv,children:(0,L.jsx)(pp,{content:"databaseNameAndWebAdmin.openInPhpMyAdmin"})}),"]"]})]})},this.renderCpanel=()=>{const{installation:{owner:{login:e}},settingsData:{dbName:t,dbListUrl:n,webAdminUrl:s},goToUri:a}=this.props,i=Yv({link:n||"",inNewWindow:!0,goToUri:a,accountUsername:e}),r=Yv({link:s||"",inNewWindow:!0,goToUri:a,accountUsername:e});return(0,L.jsxs)(L.Fragment,{children:[n?(0,L.jsx)("a",Object.assign({},i,{children:t})):t,s&&(0,L.jsxs)(L.Fragment,{children:[" [",(0,L.jsx)("a",Object.assign({},r,{"data-test-id":iv,children:(0,L.jsx)(pp,{content:"databaseNameAndWebAdmin.openInPhpMyAdmin"})})),"]"]})]})},this.renderPlainText=()=>this.props.settingsData&&this.props.settingsData.dbName?this.props.settingsData.dbName:null}render(){const{installation:{installationType:e}}=this.props;return xO(e)?this.renderPlesk():wO(e)?this.renderCpanel():this.renderPlainText()}}const sB=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(nB);class aB extends R.Component{constructor(e){super(e),this.handleOnErrorWithTimeout=()=>{setTimeout((()=>{this.props.onError()}),1e3)},this.handleSetDbUserName=e=>this.setState((t=>({settingsData:t.settingsData?Object.assign(Object.assign({},t.settingsData),{dbUserName:e}):void 0}))),this.handleToggleDbSettingsPopover=()=>this.setState((e=>({showDbSettingsPopover:!e.showDbSettingsPopover}))),this.state={isLoading:!1,getDbSettingsError:void 0,settingsData:void 0,showDbSettingsPopover:!1}}componentDidMount(){const{getDbSettings:e,installation:t}=this.props;this.setState({isLoading:!0}),e(t.id).then((e=>{e.status&&e.status===Ep?this.setState({getDbSettingsError:e.message},this.handleOnErrorWithTimeout):this.setState({settingsData:e.data})})).finally((()=>{this.setState({isLoading:!1})}))}renderChangeLink(){const{settingsData:e,showDbSettingsPopover:t}=this.state,{installation:n,setDbSettings:s}=this.props;return jO(n.installationType)&&e?(0,L.jsxs)(L.Fragment,{children:[" [",(0,L.jsx)(Ks,{title:(0,L.jsx)(pp,{content:"instanceDatabaseTab.dbSettingsPopoverTitle"}),placement:"bottom",visible:t,onClose:this.handleToggleDbSettingsPopover,target:(0,L.jsx)("a",{onClick:this.handleToggleDbSettingsPopover,"data-test-id":"instance-database-settings-link",children:(0,L.jsx)(pp,{content:"instanceDatabaseTab.changeDbSettingsLink"})}),"data-test-id":"instance-database-settings-popover",children:(0,L.jsx)(tB,{dbHost:e.dbHost,dbName:e.dbName,dbUserName:e.dbUserName,installationId:n.id,onSetDbUserName:this.handleSetDbUserName,setDbSettings:s,onClosePopover:this.handleToggleDbSettingsPopover})}),"]"]}):null}render(){const{settingsData:e,isLoading:t,getDbSettingsError:n}=this.state,{installation:s,showTitle:a}=this.props;return t||!e?(0,L.jsx)(wI,{}):n?(0,L.jsx)("div",{children:n}):(0,L.jsxs)(Ni,{title:a?(0,L.jsx)(pp,{content:"controllers.index.detail.databaseTabTitle"}):void 0,children:[(0,L.jsx)(vi,{className:"wpt-compact-section-item",title:(0,L.jsx)(pp,{content:"instanceDatabaseTab.dbName"}),children:(0,L.jsx)(sB,{installation:s,settingsData:e})}),(0,L.jsx)(vi,{className:"wpt-compact-section-item",title:(0,L.jsx)(pp,{content:"instanceDatabaseTab.tablePrefix"}),children:e.tablePrefix?e.tablePrefix:(0,L.jsxs)(L.Fragment,{children:["[",(0,L.jsx)(pp,{content:"instanceDatabaseTab.noneTablePrefix"}),"]"]})}),e.dbUserName&&(0,L.jsxs)(vi,{className:"wpt-compact-section-item",title:(0,L.jsx)(pp,{content:"instanceDatabaseTab.dbUserName"}),children:[e.dbUserName,this.renderChangeLink()]}),e.dbHost&&(0,L.jsx)(vi,{className:"wpt-compact-section-item",title:(0,L.jsx)(pp,{content:"instanceDatabaseTab.dbServer"}),children:e.dbHost})]})}}aB.defaultProps={showTitle:!0};const iB=Fc(null,{getDbSettings:Vx,setDbSettings:Wx})(aB);class rB extends R.Component{constructor(){super(...arguments),this.getColumns=()=>{const e="update-list-settings-",t=this.props.type===Up?"controllers.index.manage-plugins.fieldName":"controllers.index.manage-themes.fieldName",n=this.props.getSelection(),{translate:s}=this.props;return[{width:"45%",key:`${e}-title`,title:(0,L.jsx)(pp,{content:t}),render:e=>(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(da,{children:e.title})," ",(0,L.jsxs)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info","aria-label":s(t)}),placement:"top-right",children:[e.description.substring(0,150),"..."]})]})},{width:"20%",key:`${e}versions`,title:(0,L.jsx)(pp,{content:"list.instances.versions"}),render:e=>(0,L.jsxs)(da,{children:[e.version," ","→"," ",e.availableVersion]})},{width:"25%",key:`${e}-changelog`,align:"center",render:e=>e.changeLogUrl&&(0,L.jsx)(_e,{href:e.changeLogUrl,target:"_blank",children:(0,L.jsx)(pp,{content:"controllers.index.detail.updatesItemChangeLogLink"})})},{width:"10%",key:`${e}-update-status`,align:"center",render:e=>-1!==n.indexOf(e.key)&&this.props.isUpdating&&(0,L.jsx)(wI,{})}]},this.getListData=()=>{const{assets:e,smartUpdatesInProgress:t,isUpdating:n}=this.props;return e.map((e=>Object.assign({key:e.slug,disabled:n||t},e)))}}render(){const e=this.getListData(),{getSelection:t,setSelection:n,isCollapsed:s,assets:a,hideMassCheckbox:i,type:r}=this.props,o=r===Up?"controllers.index.detail.updatesPluginsTitle":"controllers.index.detail.updatesThemesTitle";return e.length>0?(0,L.jsx)(Ni,{collapsed:s,collapsible:!0,title:(0,L.jsx)(pp,{content:o,params:{updates:e.length,all:a.length}}),children:(0,L.jsx)(uo,{className:i?"hided-mass-checkbox":"",columns:this.getColumns(),data:e,selection:t(),onSelectionChange:e=>n(e)})}):null}}rB.propTypes={isCollapsed:je().bool.isRequired,type:je().string.isRequired,assets:je().array.isRequired,isUpdating:je().bool.isRequired,smartUpdatesInProgress:je().bool.isRequired,hideMassCheckbox:je().bool.isRequired,getSelection:je().func.isRequired,setSelection:je().func.isRequired,translate:je().func};const oB=Nv(rB);class lB extends R.Component{constructor(){super(...arguments),this.getColumns=()=>{const e="update-instances-",{core:{version:t,availableVersion:n},getSelection:s,isUpdating:a}=this.props,i=s();return[{key:`${e}title`,width:"45%",title:(0,L.jsx)(pp,{content:"list.instances.name"}),render:e=>(0,L.jsx)(da,{children:e.title})},{key:`${e}version`,width:"20%",title:(0,L.jsx)(pp,{content:"list.instances.versions"}),render:()=>(0,L.jsxs)(da,{children:[t," ","→"," ",n]})},{key:`${e}-update-blank-column`,width:"25%",align:"center",render:()=>this.renderRestorePoint()},{key:`${e}-update-status`,width:"10%",align:"center",render:e=>a&&-1!==i.indexOf(e.key)&&(0,L.jsx)(wI,{})}]},this.getListData=()=>{const{instanceId:e,instanceName:t,core:n,isUpdating:s,smartUpdatesInProgress:a}=this.props,i=[];return n.availableVersion&&i.push({key:e.toString(),disabled:s||a,title:t}),i},this.renderRestorePoint=()=>{var e;const{isUpdating:t,smartUpdatesInProgress:n,getMakeRestorePoint:s,setMakeRestorePoint:a,core:i}=this.props;return(null===(e=null==i?void 0:i.restorePoint)||void 0===e?void 0:e.available)?(0,L.jsxs)("div",{children:[(0,L.jsx)(Tt,{"data-test-id":"make-snapshot-checkbox",disabled:t||n,checked:s(),onChange:e=>a(e),children:(0,L.jsx)(pp,{content:"controllers.index.detail.updatesRestorePoint"})})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info"}),placement:"top-right",children:(0,L.jsx)(pp,{content:"snapshot-confirmation.updatesDescription"})})]},"restorePointItem"):null}}render(){const e=this.getListData(),{getSelection:t,setSelection:n,isCollapsed:s,hideMassCheckbox:a}=this.props;return e.length>0?(0,L.jsx)(Ni,{collapsed:s,collapsible:!0,title:(0,L.jsx)(pp,{content:"controllers.index.detail.updatesInstancesTabHeader"}),children:(0,L.jsx)(uo,{"data-test-id":"core-update-list",className:a?"hided-mass-checkbox":"",columns:this.getColumns(),data:e,selection:t(),onSelectionChange:e=>n(e)})}):null}}lB.propTypes={instanceId:je().number.isRequired,instanceName:je().string.isRequired,core:je().shape({version:je().string,availableVersion:je().string,restorePoint:je().shape({available:je().bool.isRequired})}),getSelection:je().func.isRequired,setSelection:je().func.isRequired,setMakeRestorePoint:je().func.isRequired,getMakeRestorePoint:je().func.isRequired,isCollapsed:je().bool.isRequired,hideMassCheckbox:je().bool.isRequired,isUpdating:je().bool.isRequired,smartUpdatesInProgress:je().bool.isRequired};const cB=lB;class uB extends R.Component{constructor(e){super(e),this.handleTogglePopover=()=>this.setState((e=>({showPopover:!e.showPopover}))),this.getPopoverContent=()=>{const{isPermissionDenied:e,wordPressToolkitLiteEdition:t,purchaseDeluxeUrl:n,purchaseWordPressToolkitUrl:s,upgradePleskUrl:a,installationType:i,uatAction:r,panelUpdateRequired:o,updatePleskUrl:l,isSmartPhpUpdates:c,eventName:u}=this.props;return e?(0,L.jsx)(pp,{content:"premiumFeature.permissionDenied"}):xO(i)&&t&&o?(0,L.jsx)(pp,{content:"premiumFeature.wordPressToolkitFullVersionAndPleskUpdateRequired",params:{purchaseDeluxeLicenseLink:(0,L.jsx)("a",{href:n,target:"_blank",onClick:()=>{u&&this.context(u),Mv(r)},children:(0,L.jsx)(pp,{content:"premiumFeature.purchaseDeluxeLicenseLink"})}),purchaseWordPressToolkitLink:(0,L.jsx)("a",{href:s,target:"_blank",onClick:()=>{u&&this.context(u),Mv(r)},children:(0,L.jsx)(pp,{content:"premiumFeature.purchaseWordPressToolkitLink"})}),upgradePleskLink:(0,L.jsx)("a",{href:a,target:"_blank",children:(0,L.jsx)(pp,{content:"premiumFeature.upgradePleskLink"})}),updatePleskLink:(0,L.jsx)("a",{href:l,target:"_blank",children:(0,L.jsx)(pp,{content:"premiumFeature.updatePleskLink"})})}}):xO(i)&&t?(0,L.jsx)(pp,{content:"premiumFeature.wordPressToolkitFullVersionAndDeluxeLicenseRequired",params:{purchaseDeluxeLicenseLink:(0,L.jsx)("a",{href:n,target:"_blank",onClick:()=>{u&&this.context(u),Mv(r)},children:(0,L.jsx)(pp,{content:"premiumFeature.purchaseDeluxeLicenseLink"})}),purchaseWordPressToolkitLink:(0,L.jsx)("a",{href:s,target:"_blank",onClick:()=>{u&&this.context(u),Mv(r)},children:(0,L.jsx)(pp,{content:"premiumFeature.purchaseWordPressToolkitLink"})}),upgradePleskLink:(0,L.jsx)("a",{href:a,target:"_blank",children:(0,L.jsx)(pp,{content:"premiumFeature.upgradePleskLink"})})}}):xO(i)&&o?(0,L.jsx)(pp,{content:"premiumFeature.pleskUpdateRequired"}):xO(i)?(0,L.jsx)(pp,{content:"premiumFeature.descriptionForPlesk"}):c?(0,L.jsx)(pp,{content:"premiumFeature.smartPhpUpdatesDescription"}):(0,L.jsx)(pp,{content:"premiumFeature.description"})},this.getPopoverActions=()=>{const{purchaseDeluxeUrl:e,premiumFeaturesUrl:t,uatAction:n,wordPressToolkitLiteEdition:s,installationType:a,installationId:i,upgradePleskUrl:r,panelUpdateRequired:o,updatePleskUrl:l}=this.props;if(xO(a)&&o)return(0,L.jsx)(ut,{component:"a",href:l,target:"_blank",intent:"success",children:(0,L.jsx)(pp,{content:"premiumFeature.updatePleskButton"})});const c=xO(a)&&s?r:e;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Rv,{purchaseLicenseUrl:c,uatAction:n,onTogglePopover:this.handleTogglePopover,installationId:i,children:(0,L.jsx)(pp,{content:"premiumFeature.purchaseButton"})}),t&&(0,L.jsx)(ut,{ghost:!0,component:"a",target:"_blank",href:t,children:(0,L.jsx)(pp,{content:"premiumFeature.discoverAllPremiumFeaturesButton"})})]})},this.getPopover=()=>{const{installationType:e,panelUpdateRequired:t,baseClassName:n,translate:s}=this.props,{showPopover:a}=this.state;return(0,L.jsx)(Ks,{visible:a,width:"xs",onClose:this.handleTogglePopover,target:(0,L.jsx)(_e,{onClick:this.handleTogglePopover,icon:"lock-closed","aria-label":s("list-ui.instances.icons.paidFeature.ariaLabel")}),children:(0,L.jsxs)(ur,{className:`${n}__popover-content`,children:[(0,L.jsxs)(hr,{children:[(0,L.jsx)(xe,{name:"lock-closed",size:"24",intent:"inactive"})," ",(0,L.jsx)(da,{children:xO(e)&&t?(0,L.jsx)(pp,{content:"premiumFeature.pleskUpdateRequiredTitle"}):(0,L.jsx)(pp,{content:"premiumFeature.title"})})]}),(0,L.jsx)(pr,{children:this.getPopoverContent()}),(0,L.jsx)(dr,{children:this.getPopoverActions()})]})})},this.state={showPopover:!1}}render(){const{applicable:e,className:t,baseClassName:n,children:s}=this.props;return e?(0,L.jsx)("span",{className:F()(n,t),children:s}):(0,L.jsxs)("span",{className:F()(n,t),children:[this.getPopover()," ",s]})}}uB.defaultProps={baseClassName:`${th}premium-feature`},uB.contextType=Q_;const dB=Fc((e=>({purchaseDeluxeUrl:e.app.urls.purchaseDeluxeUrl,purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,panelUpdateRequired:e.app.options.panelUpdateRequired,updatePleskUrl:e.app.urls.updatePleskUrl,premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isPermissionDenied:!e.app.options.isAdmin||e.app.options.isReseller})),null,null,{forwardRef:!0})(Nv(uB)),pB=({smartUpdatesOn:e,isUpdating:t,isRefreshing:n,onRefresh:s,openUpdateSettingsForm:a,toggleSmartUpdatesSwitch:i,isMultisite:r,smartUpdatesInProgress:o,isSmartUpdatesSwitching:l,isSmartUpdatesUnpaid:c,isSmartUpdatesDisabled:u,showAutoUpdates:d,showSmartUpdates:p,installationId:h,installationType:m,installationFeatures:g})=>{const f=e?!1===t&&!1===o:!1===t&&!1===r&&!1===c&&!u;return(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{icon:"refresh",disabled:n||t||o,onClick:s,tooltip:(0,L.jsx)(pp,{content:"controllers.index.detail.hintRefreshButton"}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.refreshButton"})})}),d&&(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{"data-test-id":"update-settings-button",onClick:a,disabled:n||t||o,ghost:!0,icon:"gear",children:(0,L.jsx)(pp,{content:"controllers.index.detail.updateSettingsButton"})})}),(0,L.jsx)(Sa,{}),(()=>{var t,n;if(!d||!p)return null;const s=(0,L.jsx)(Dl,{"data-test-id":"updates-drawer-smart-update",checked:e,disabled:!1===f,onChange:e=>i(e),loading:l});return r?(0,L.jsx)(Ya,{title:"Right Group",children:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(pp,{content:"controllers.index.detail.updatesSmartUpdatesAreUnavailable"})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:nO("circle-info")}),placement:"top-right",children:(0,L.jsx)(pp,{content:"controllers.index.detail.updatesSmartUpdatesAreUnavailableHint"})})," ",s]})}):(0,L.jsx)(Ya,{title:"Right Group",children:(0,L.jsxs)(dB,{uatAction:"CLICK_LICENSE_PURCHASE_FROM_UPDATE_FORM",installationId:h,installationType:m,applicable:!0===(null===(n=null===(t=null==g?void 0:g.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.applicable),children:[(0,L.jsx)(pp,{content:"controllers.index.detail.updatesSmartUpdates"})," ",s,(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{icon:"question-mark-circle",ghost:!0}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.description"})})]})})})()]})},hB="true",mB="false",gB="disabledWithUpdates",fB="true",bB="false",vB="disabledWithUpdates";class yB extends R.Component{constructor(e){super(e),this.handleLoadData=()=>{const{installationId:e,getAutoUpdateSettings:t}=this.props;this.setState({isLoading:!0}),t(e).then((e=>{const{plugins:{forceUpdates:t,updateVulnerable:n,deactivateVulnerable:s},themes:{forceUpdates:a,updateVulnerable:i}}=e;this.setState(Object.assign(Object.assign({},e),{plugins:Object.assign(Object.assign({},e.plugins),{forceUpdates:t||!n&&!s?t.toString():gB}),themes:Object.assign(Object.assign({},e.themes),{forceUpdates:!a&&i?vB:a.toString()})}))})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.handleSubmit=({core:e,plugins:t,themes:n})=>{if(this.state.isProcessing)return;const{installationId:s,updateAutoUpdateSettings:a,onClose:i,addSuccessMessage:r,onClearDrawerMessages:o}=this.props;o(),this.setState({isProcessing:!0});const l={core:e,plugins:Object.assign(Object.assign({},t),{updateVulnerable:!1}),themes:Object.assign(Object.assign({},n),{updateVulnerable:!1})};t.forceUpdates===gB&&(l.plugins.forceUpdates=mB,l.plugins.updateVulnerable=!0),n.forceUpdates===vB&&(l.themes.forceUpdates=bB,l.themes.updateVulnerable=!0),t.forceUpdates===mB&&(l.plugins.deactivateVulnerable=!1),l.plugins.forceUpdates=l.plugins.forceUpdates===hB,l.themes.forceUpdates=l.themes.forceUpdates===fB,a(s,l).then((()=>{r("autoUpdatesSettings.autoUpdatesSettingsUpdatedSuccessfully",!0,"autoUpdatesSettingsUpdatedSuccessfully"),i()})).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1})}))},this.getFormParams=()=>{const{core:e,plugins:t,themes:n,isProcessing:s,isLoading:a}=this.state;return a?null:{onSubmit:this.handleSubmit,requiredMark:!1,values:{core:e,plugins:t,themes:n},state:s?"submit":void 0,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":lv}}},this.renderPluginsFormFields=()=>{const{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,L.jsx)(_r,{name:"plugins[forceUpdates]",label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionLabel"}),value:mB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},s?{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:gB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates"),(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]}:null,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionLabel"}),value:hB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{forceUpdates:e})})))})},this.renderThemesFormFields=()=>{const{themes:{forceUpdates:e,newlyInstalledUpdates:t}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,L.jsx)(_r,{name:"themes[forceUpdates]",label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionLabel"}),value:bB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},n?{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:vB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]}:null,{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionLabel"}),value:fB,description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{forceUpdates:e})})))})},this.renderCoreFormFields=()=>(0,L.jsx)(_r,{name:"core",label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdatesLabel"}),value:this.state.core,options:[{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionLabel"}),value:"disabled",description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionDescription"})},{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionLabel"}),value:"minor",description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionDescription"})},{label:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionLabel"}),value:"major",description:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState({core:e})}),this.renderFormFields=()=>{const{isLoading:e}=this.state;return e?(0,L.jsx)(Qn,{}):(0,L.jsxs)(R.Fragment,{children:[this.renderCoreFormFields(),this.renderPluginsFormFields(),this.renderThemesFormFields()]})},this.state={core:"",plugins:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1},isProcessing:!1,isLoading:!1}}componentDidMount(){this.props.isOpen&&this.handleLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}render(){const{title:e,subtitle:t,isOpen:n,onClose:s,renderDrawerMessages:a}=this.props;return(0,L.jsxs)(cr,{title:e,subtitle:t,isOpen:n,onClose:s,"data-type":"update-settings",form:this.getFormParams(),children:[a(),this.renderFormFields()]})}}yB.propTypes={installationId:je().number.isRequired,onClose:je().func.isRequired,addSuccessMessage:je().func.isRequired,getAutoUpdateSettings:je().func.isRequired,updateAutoUpdateSettings:je().func.isRequired,title:je().oneOfType([je().string,je().object]).isRequired,subtitle:je().oneOfType([je().string,je().object]).isRequired,isOpen:je().bool.isRequired,vulnerabilityFeatureEnabled:je().bool.isRequired,onClearDrawerMessages:je().func.isRequired,renderDrawerMessages:je().func.isRequired};const SB=Fc((e=>({vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),(e=>({getAutoUpdateSettings:(0,Cb.zH)(hA,e),updateAutoUpdateSettings:(0,Cb.zH)(dA,e)})))(yC(yB)),wB=({isOpen:e,smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,shortInstanceUrl:a,smartUpdatesCloneUrl:i,onClose:r,onUpdate:o,onDiscard:l,instanceId:c,baseClassName:u=`${th}smart-update-results-drawer`})=>{const[d,p]=(0,R.useState)(!1),[h,m]=(0,R.useState)(!1);return(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"smartUpdateResultsDrawer.title"}),subtitle:a,isOpen:e,onClose:r,size:"lg","data-type":"smart-update-results",className:u,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{"data-test-id":"apply-smart-update",intent:"primary",onClick:()=>p(!0),size:"lg",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.submitButtons.buttonApply"})}),placement:"bottom",visible:d,onClose:()=>p(!1),children:[(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updateConfirmationDialog.description",component:"p"}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>{p(!1),o()},"data-test-id":"confirm-apply-smart-update",intent:"primary",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updateConfirmationDialog.buttonOk"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>p(!1),children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.updateConfirmationDialog.buttonCancel"})})})]})]},"apply-button"),(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{"data-test-id":"discard-smart-update",onClick:()=>m(!0),size:"lg",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.submitButtons.buttonDiscard"})}),placement:"bottom",visible:h,onClose:()=>m(!1),children:[(0,L.jsx)(pp,{content:"updates.smartUpdates.results.discardConfirmationDialog.description",component:"p"}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>{m(!1),l()},"data-test-id":"confirm-discard-smart-update",intent:"danger",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.discardConfirmationDialog.buttonOk"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>m(!1),children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.discardConfirmationDialog.buttonCancel"})})})]})]},"discard-button")]},children:(0,L.jsx)(JN,{smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:i,instanceId:c,isPublic:!1})})};class xB extends R.Component{constructor(e){super(e),this.handleToggleSmartUpdatePromoPopover=()=>this.setState((e=>({showSmartUpdatePromoPopover:!e.showSmartUpdatePromoPopover}))),this.getSmartUpdatePromoPopover=()=>{const{showSmartUpdatePromoPopover:e}=this.state,{uatActions:t,smartUpdateFeatureUpgradeLink:n,baseClassName:s}=this.props;return(0,L.jsxs)(Ks,{visible:e,target:(0,L.jsx)(_e,{className:`${s}__why-link`,onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Mv(t.showPopover)},children:(0,L.jsx)(pp,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.popoverTrigger`,fallback:"%%fallback%%",params:{fallback:(0,L.jsx)(pp,{content:"updatesSmartUpdatePromo.default.popoverTrigger"})}})}),onClose:this.handleToggleSmartUpdatePromoPopover,className:`${s}__popover`,children:[(0,L.jsx)(pp,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.popoverText`,fallback:"%%fallback%%",params:{fallback:(0,L.jsx)(pp,{content:"updatesSmartUpdatePromo.default.popoverText"})}}),(0,L.jsxs)("div",{className:`${s}__popover__button-group`,children:[(0,L.jsx)(ut,{component:"a",href:n,target:"_blank",onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Mv(t.clickOpenStoreButton)},className:`${s}__popover__open-store-button`,intent:"primary",children:(0,L.jsx)(pp,{content:"updatesSmartUpdatePromoPopover.openStoreButton"})}),(0,L.jsx)(_e,{onClick:()=>{this.handleToggleSmartUpdatePromoPopover(),Mv(t.clickPopoverCloseButton)},className:`${s}__popover__close-link`,children:(0,L.jsx)(pp,{content:"updatesSmartUpdatePromoPopover.closeLink"})})]})]})},this.state={showSmartUpdatePromoPopover:!1}}getSmartUpdatePromoText(){const e={popover:this.getSmartUpdatePromoPopover()},t=(0,L.jsx)(pp,{content:"updatesSmartUpdatePromo.default.text",params:e});return(0,L.jsx)(pp,{content:`updatesSmartUpdatePromo.${this.props.smartUpdatePromoCustomTextKey}.text`,params:Object.assign(Object.assign({},e),{defaultText:t}),fallback:"%%defaultText%%"})}render(){const{isOpen:e,onClose:t,smartUpdateFeatureUpgradeLink:n,baseClassName:s,publicUrl:a,uatActions:i}=this.props;return e?(0,L.jsxs)("div",{className:s,children:[(0,L.jsx)("span",{className:`${s}__close-button`,onClick:t}),(0,L.jsx)(Aa,{image:(0,L.jsx)(xe,{size:"64",src:`${a}images/smart-update-promo-calendar.svg`}),children:(0,L.jsxs)(ga,{sm:2,gap:"md",children:[(0,L.jsx)(fa,{sm:10,children:this.getSmartUpdatePromoText()}),(0,L.jsx)(fa,{sm:2,children:(0,L.jsx)(ut,{component:"a",href:Ev(n),target:"_blank",className:`${s}__try-now-button`,onClick:()=>Mv(i.clickTryNowButton),children:(0,L.jsx)(pp,{content:"updatesSmartUpdatePromo.tryNowButton"})})})]})})]}):null}}xB.defaultProps={smartUpdatePromoCustomTextKey:null,baseClassName:`${th}smart-update-promo`};const AB=Fc((e=>({smartUpdatePromoCustomTextKey:e.app.options.smartUpdatePromoCustomTextKey,smartUpdateFeatureUpgradeLink:e.app.urls.featuresBuyLinks[Wp],publicUrl:e.app.urls.publicUrl})))(xB),_B=e=>{var t,n,s;return!!(null===(t=e.core)||void 0===t?void 0:t.availableVersion)||(null===(n=e.plugins)||void 0===n?void 0:n.length)>0||(null===(s=e.themes)||void 0===s?void 0:s.length)>0},kB={selectionInstances:[],selectionPlugins:[],selectionThemes:[]},jB={isUpdating:!1,isRefreshing:!1,checkUpdatesTaskId:null,updateTaskId:null,backgroundTask:null,showTasksDetails:!1,isSmartUpdatesSwitching:!1,isSelectedAllUpdates:!1,selectionInstances:[],selectionPlugins:[],selectionThemes:[],makeRestorePoint:!0,showSmartUpdatePromoBanner:!1,showSmartUpdateResults:!1,isInitialDataLoading:!0,isConfirmationVisible:!1,smartUpdateResults:null,isSmartUpdateResultsLoading:!1};class CB extends R.Component{constructor(e){var t,n;super(e),this.handleUpdateSmartUpdateFeatureStatus=e=>{var t,n;this.setState({isSmartUpdateEnabled:!0===(null===(n=null===(t=e.installation.features.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.status)})},this.handleLoadData=()=>{const{installation:{id:e}}=this.props;this.setState({isInitialDataLoading:!0}),this.props.instancesActions.fetchAvailableUpdates([e]).then((t=>{const n=t.find((t=>t.id===e));this.setState({isInitialDataLoading:!1,showSmartUpdatePromoBanner:n&&this.isSmartUpdatePromoBannerVisible(n)},this.handleOnUpdateReceived)})).catch((()=>{this.setState({isInitialDataLoading:!1})}))},this.handleOpen=()=>this.setState(Object.assign({},jB)),this.handleOnUpdateReceived=()=>{const{updateData:{tasks:{check:e,update:t}},isOpen:n}=this.props,s=null==e?void 0:e.id,a=null==t?void 0:t.id,i=null==t?void 0:t.code;e&&this.setState({checkUpdatesTaskId:s}),t&&this.setState({updateTaskId:a}),a&&i?this.fetchAndProcessExistentUpdateTask(a,i):s?this.fetchAndProcessExistentCheckUpdateTask(s):!this.hasUpdates()&&n&&this.isLastCheckUpdateTimestampInvalid()&&this.handleCheckUpdates(),this.dispatchSmartUpdatePromoUAT()},this.isLastCheckUpdateTimestampInvalid=()=>{const{updateData:e}=this.props;return e&&e.lastCheckUpdateTimestamp&&(new Date).getTime()-1e3*e.lastCheckUpdateTimestamp>36e5},this.fetchAndProcessExistentUpdateTask=(e,t)=>{const{backgroundTasksActions:{fetchBackgroundTask:n},onAddDrawerSuccessMessage:s}=this.props;n(bf.backgroundTask.getTaskData,e,t).then((e=>{if(null===e)return this.setState({isUpdating:!1}),void(this.state.showSmartUpdateResults||this.handleCheckUpdates());ZI(e)||this.isInstanceUpdatedInMassUpdate(e)?this.handleOnCompleteBackGroundUpdateTask(e):this.setState({updateTaskId:e.id,isUpdating:!0},(()=>{e.code!==$w&&s(e.title)}))}))},this.fetchAndProcessExistentCheckUpdateTask=e=>{const{backgroundTasksActions:{fetchBackgroundTask:t}}=this.props;t(bf.backgroundTask.getTaskData,e,yI).then((e=>{null!==e?ZI(e)?this.handleOnCompleteBackGroundCheckUpdateTask(e):this.setState({checkUpdatesTaskId:e.id,isRefreshing:!0}):this.setState({isRefreshing:!1,checkUpdatesTaskId:null})}))},this.dispatchSmartUpdatePromoUAT=()=>this.state.showSmartUpdatePromoBanner&&Mv("SHOW_UPDATES_DRAWER_SMART_UPDATE_PROMO"),this.isSmartUpdatePromoBannerVisible=e=>{const{installation:{installationType:t,features:{updates:n}},showSmartUpdatePromo:s,isSmartUpdatePromoAvailableForUpdatesScreen:a}=this.props;return!!(xO(t)&&_B(e)&&s)&&(!!a||n.smart.promoAvailable)},this.handleUpdateBackgroundTask=e=>{const{updateTaskId:t}=this.state;if(!t)return;const n=nT(t,e);if(n){if(n.code===$w&&n.publicParams.currentlyUpdatingInstallationId!==this.props.installation.id&&!n.publicParams.successfullyUpdatedInstallationsIds.includes(this.props.installation.id))return void this.setState({isUpdating:!1});this.setState((e=>({backgroundTask:n,showTasksDetails:!e.showSmartUpdateResults&&n.code!==$w}))),this.handleOnCompleteBackGroundUpdateTask(n)}},this.handleCheckUpdateBackgroundTask=e=>{const{checkUpdatesTaskId:t,backgroundTask:n}=this.state;if(!t)return;const s=nT(t,e);s&&n!==s&&(this.setState({backgroundTask:s}),this.handleOnCompleteBackGroundCheckUpdateTask(s))},this.handleLoadSmartUpdateResults=()=>{const{isSmartUpdateResultsLoading:e}=this.state;if(e)return;const{instancesActions:{getSmartUpdateResult:t},installation:{id:n}}=this.props;this.setState({isSmartUpdateResultsLoading:!0}),t(n).then((e=>{this.setState({smartUpdateResults:e,isSmartUpdateResultsLoading:!1})})).catch((()=>{this.setState({smartUpdateResults:null,isSmartUpdateResultsLoading:!1})}))},this.handleShowSmartUpdateResults=e=>{const{updateData:t}=e;if(!t)return;const{smartUpdate:{status:n,taskStatus:s}}=t,{isSmartUpdateResultsLoading:a,smartUpdateResults:i}=this.state,r=this.isSmartUpdateResultsVisible(n,s);!r||i||a||this.handleLoadSmartUpdateResults(),this.setState({isSmartUpdateEnabled:n,showSmartUpdateResults:r})},this.handleOnCompleteBackGroundUpdateTask=e=>{if(!ZI(e)&&!this.isInstanceUpdatedInMassUpdate(e))return;const{instancesActions:{instanceUpdateFailed:t},onAddDrawerErrorMessage:n,onAddDrawerSuccessMessage:s,onAddDrawerWarningMessage:a}=this.props;if(e.publicParams.hasOwnProperty("nonBlockError")&&a(e.publicParams.nonBlockError),this.setState({updateTaskId:null,backgroundTask:null,isUpdating:!1}),e.code!==$w&&tT(e))return n(e.errors.join("\n")),void t();if((eT(e)||this.isInstanceUpdatedInMassUpdate(e))&&e.code!==$w)if(e.errors.length){const t=e.errors.map((e=>`- ${e}`)).join("\n");a(`${e.title}\n${t}`)}else s(e.title)},this.handleOnCompleteBackGroundCheckUpdateTask=e=>{if(!ZI(e))return;const{onAddDrawerErrorMessage:t,onAddDrawerSuccessMessage:n,onAddDrawerWarningMessage:s}=this.props;if(tT(e))t(e.errors.join("\n"));else if(eT(e))if(this.setState({checkUpdatesTaskId:null,backgroundTask:null,isRefreshing:!1}),e.errors.length){const t=e.errors.map((e=>`- ${e}`)).join("\n");s(`${e.title}\n${t}`)}else n(e.title)},this.isInstanceUpdatedInMassUpdate=e=>e.code===$w&&e.publicParams.successfullyUpdatedInstallationsIds.includes(this.props.installation.id),this.isSmartUpdateResultsVisible=(e=!1,t)=>e&&null!==t&&kN(t),this.handleCheckUpdates=()=>{if(this.state.isRefreshing)return;const{installation:{id:e},instancesActions:{checkUpdates:t}}=this.props;this.setState(Object.assign({isSelectedAllUpdates:!1,backgroundTask:null},kB)),t([e]).then((e=>{const t=e.id;this.setState({isRefreshing:!0,checkUpdatesTaskId:t})})).catch((()=>{}))},this.toggleSmartUpdatesSwitch=e=>{if(this.state.isSmartUpdatesSwitching)return;const{installation:{id:t},instancesActions:{setSmartUpdatesStatus:n},addSuccessMessage:s}=this.props;this.setState({isSmartUpdatesSwitching:!0}),n(t,e).then((e=>{s(e.status?(0,L.jsx)(pp,{content:"features.updates.smart.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.updates.smart.disabledSuccessfully"})),this.state.showSmartUpdateResults&&!e.status&&this.setState({showSmartUpdateResults:e.status}),this.setState({isSmartUpdateEnabled:e.status})})).catch((()=>{})).finally((()=>{this.setState({isSmartUpdatesSwitching:!1})}))},this.getNeedToUpdateAssetsGroupsCount=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props;let s=0;return e.availableVersion&&s++,t.length&&s++,n.length&&s++,s},this.handleUpdate=()=>{var e;const{selectionInstances:t,selectionPlugins:n,selectionThemes:s,makeRestorePoint:a}=this.state,{installation:{id:i},instancesActions:{updateItems:r},updateData:{core:o},onClearDrawerMessages:l,onAddDrawerSuccessMessage:c}=this.props;return l(),this.setState({isUpdating:!0,updateTaskId:null,backgroundTask:null}),r([{installationId:i,core:{update:t.includes(i.toString()),restorePoint:!!(null===(e=o.restorePoint)||void 0===e?void 0:e.available)&&a},plugins:n,themes:s}]).then((e=>{this.setState({updateTaskId:e.id},(()=>c(e.title)))})).catch((()=>{this.setState({isUpdating:!1})})).finally((()=>this.closeSmartUpdateResultsDrawer()))},this.handleSmartUpdate=()=>{const{installation:{id:e},instancesActions:{applySmartUpdate:t},onClearDrawerMessages:n,onAddDrawerSuccessMessage:s}=this.props;return n(),this.setState({isUpdating:!0,updateTaskId:null,backgroundTask:null,showSmartUpdateResults:!1}),t(e).then((e=>{this.setState({updateTaskId:e.id,smartUpdateResults:null},(()=>s(e.title)))})).catch((()=>{this.setState({isUpdating:!1})}))},this.getSelectionInstances=()=>this.state.selectionInstances,this.getSelectionThemes=()=>this.state.selectionThemes,this.getSelectionPlugins=()=>this.state.selectionPlugins,this.getMakeRestorePoint=()=>this.state.makeRestorePoint,this.fixSelections=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props,{selectionInstances:s,selectionThemes:a,selectionPlugins:i}=this.state,r=Cp(a,n),o=Cp(i,t);s.length>0&&!e.availableVersion&&this.setSelectionInstances([]),r!==a&&this.setSelectionThemes(r),o!==i&&this.setSelectionPlugins(o)},this.checkIsSelectedAllAssetsUpdates=()=>{const{updateData:{core:e,plugins:t,themes:n}}=this.props,{selectionThemes:s,selectionInstances:a,selectionPlugins:i}=this.state,r=s.length+a.length+i.length;let o=t.length+n.length;e.availableVersion&&o++,this.setState({isSelectedAllUpdates:o===r})},this.setSelectionThemes=e=>this.setState({selectionThemes:e},this.checkIsSelectedAllAssetsUpdates),this.setSelectionPlugins=e=>this.setState({selectionPlugins:e},this.checkIsSelectedAllAssetsUpdates),this.setSelectionInstances=e=>this.setState({selectionInstances:e},this.checkIsSelectedAllAssetsUpdates),this.setMakeRestorePoint=e=>this.setState({makeRestorePoint:e}),this.handleDiscard=()=>{const{installation:{id:e},instancesActions:{discardSmartUpdate:t},onClearDrawerMessages:n,onAddDrawerSuccessMessage:s}=this.props;n(),this.closeSmartUpdateResultsDrawer(),t(e).then((()=>{s("forms.smart-updates.discardedSuccessfully",!0,"discardedSuccessfully")})).catch((()=>{})).finally((()=>{this.setState({smartUpdateResults:null})}))},this.handleSelectAllUpdates=()=>{const{installation:{id:e},updateData:{core:t,plugins:n,themes:s}}=this.props;this.state.isSelectedAllUpdates?this.setState(Object.assign(Object.assign({},kB),{isSelectedAllUpdates:!1})):this.setState({selectionPlugins:n.map((e=>e.slug)),selectionThemes:s.map((e=>e.slug)),selectionInstances:t.availableVersion?[e.toString()]:[],isSelectedAllUpdates:!0})},this.closeSmartUpdateResultsDrawer=()=>this.setState({showSmartUpdateResults:!1}),this.handleDisableSmartUpdatePromo=()=>{this.setState({showSmartUpdatePromoBanner:!1}),this.props.appActions.disableSmartUpdatePromoForUpdatesScreen({instanceId:this.props.installation.id}),Mv("CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_CLOSE_BUTTON")},this.renderSmartUpdatesDrawer=()=>{if(!this.props.updateData)return null;const{updateData:{displayTitle:e,smartUpdate:t},installation:{id:n,url:s},onClose:a}=this.props,{showSmartUpdateResults:i,smartUpdateResults:r}=this.state;return kN(t.taskStatus)&&r?(0,L.jsx)(wB,{isOpen:i,smartUpdatesStatus:r,instanceUrl:s,shortInstanceUrl:e,smartUpdatesCloneInstanceId:r.clone.id,smartUpdatesCloneUrl:r.clone.url,onClose:()=>{this.closeSmartUpdateResultsDrawer(),a()},onUpdate:this.handleSmartUpdate,onDiscard:this.handleDiscard,instanceId:n}):null},this.handleOpenConfirmation=()=>this.setState({isConfirmationVisible:!0}),this.handleCloseConfirmation=()=>this.setState({isConfirmationVisible:!1}),this.isSelectionEmpty=()=>{const{selectionInstances:e,selectionPlugins:t,selectionThemes:n}=this.state;return 0===e.length&&0===t.length&&0===n.length},this.handleSelectAllAndUpdate=()=>{this.handleCloseConfirmation(),this.handleSelectAllUpdates(),setTimeout(this.handleUpdate,100)},this.hasUpdates=()=>{const{updateData:e}=this.props;return!!e&&_B(e)},this.renderSubmitButtonWithConfirmation=()=>{const{isSmartUpdateEnabled:e,isConfirmationVisible:t}=this.state;return(0,L.jsxs)(Ks,{target:this.renderUpdateButtonWithConfirmation(),placement:"bottom",visible:t,onClose:this.handleCloseConfirmation,children:[e?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateConfirmationText",component:"p"}):(0,L.jsx)(pp,{content:"controllers.index.detail.updateConfirmationText",component:"p"}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{intent:"primary",onClick:this.handleSelectAllAndUpdate,children:e?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateConfirmationAccept"}):(0,L.jsx)(pp,{content:"controllers.index.detail.updateConfirmationAccept"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:this.handleCloseConfirmation,children:(0,L.jsx)(pp,{content:"controllers.index.detail.updateConfirmationCancel"})})})]})]},"popover-with-confirmation-to-update-all-items")},this.renderSubmitSimpleButton=e=>{const{isUpdating:t,isSmartUpdateEnabled:n}=this.state;return(0,L.jsx)(ut,{disabled:e,"data-test-id":rv,onClick:this.handleUpdate,state:t?"loading":void 0,intent:"primary",children:n?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateButton"}):(0,L.jsx)(pp,{content:"controllers.index.detail.updateButton"})},rv)},this.renderSubmitButton=()=>{const{installation:{status:{multisite:e}}}=this.props,{isUpdating:t,isRefreshing:n,showSmartUpdateResults:s,isSmartUpdateEnabled:a}=this.state,i=!this.hasUpdates()||s||a&&e||t||n;return!i&&this.isSelectionEmpty()?this.renderSubmitButtonWithConfirmation():this.renderSubmitSimpleButton(i)},this.renderLoadingState=()=>{const{isInitialDataLoading:e}=this.state;return e?(0,L.jsx)(Qn,{}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"updates.smartUpdates.results.loading"})]})},this.renderFailedToLoadUpdateData=()=>(0,L.jsx)(Fe,{intent:"danger",children:(0,L.jsx)(pp,{content:"updates.failedToLoad"})}),this.getUpdatesContent=()=>{const{updateData:e,installation:{id:t},openUpdatesType:n}=this.props,{isUpdating:s,isRefreshing:a,showSmartUpdateResults:i}=this.state,{title:r,core:o,plugins:l,themes:c}=e;return a?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"controllers.index.detail.updatesRefreshData"})]}):this.hasUpdates()?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(cB,{instanceId:t,instanceName:r,core:o,getSelection:this.getSelectionInstances,setSelection:this.setSelectionInstances,isCollapsed:n===iS||n===rS,getMakeRestorePoint:this.getMakeRestorePoint,setMakeRestorePoint:this.setMakeRestorePoint,isUpdating:s,smartUpdatesInProgress:i,hideMassCheckbox:s||i}),(0,L.jsx)(oB,{assets:l,type:Up,isCollapsed:n===aS||n===rS,getSelection:this.getSelectionPlugins,setSelection:this.setSelectionPlugins,isUpdating:s,smartUpdatesInProgress:i,hideMassCheckbox:s||i}),(0,L.jsx)(oB,{assets:c,type:Rp,isCollapsed:n===aS||n===iS,getSelection:this.getSelectionThemes,setSelection:this.setSelectionThemes,isUpdating:s,smartUpdatesInProgress:i,hideMassCheckbox:s||i})]}):(0,L.jsx)(pp,{content:"controllers.index.detail.updatesNotFound"})},this.getDrawerContent=()=>{var e,t;const{updateData:n,installation:{id:s,installationType:a,features:i},showSmartUpdates:r,onOpenUpdatesSettingsDialog:o}=this.props,{isSmartUpdateEnabled:l,isUpdating:c,isRefreshing:u,showSmartUpdateResults:d,isSmartUpdatesSwitching:p,isSelectedAllUpdates:h,showSmartUpdatePromoBanner:m,isInitialDataLoading:g,isSmartUpdateResultsLoading:f,smartUpdateResults:b}=this.state,v=g||f,y=!g&&!this.props.updateData;if(v||y)return(0,L.jsxs)(L.Fragment,{children:[v&&this.renderLoadingState(),y&&this.renderFailedToLoadUpdateData()]});const{multisite:S,autoUpdate:w}=n,x=r&&i.updates.smart.available;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(AB,{isOpen:m,onClose:this.handleDisableSmartUpdatePromo,uatActions:{showPopover:"SHOW_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER",clickPopoverCloseButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON",clickOpenStoreButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_OPEN_STORE_BUTTON",clickTryNowButton:"CLICK_UPDATES_DRAWER_SMART_UPDATE_PROMO_TRY_NOW_BUTTON"}}),(0,L.jsx)(Ni,{children:(0,L.jsx)(pB,{smartUpdatesOn:l,isUpdating:c,isRefreshing:u,showAutoUpdates:null==w?void 0:w.available,showSmartUpdates:x,onRefresh:this.handleCheckUpdates,isSmartUpdatesUnpaid:this.props.isSmartUpdatesUnpaid,isSmartUpdatesDisabled:!1===(null===(t=null===(e=this.props.updateData)||void 0===e?void 0:e.smartUpdate)||void 0===t?void 0:t.applicable),openUpdateSettingsForm:o,toggleSmartUpdatesSwitch:this.toggleSmartUpdatesSwitch,isMultisite:S,smartUpdatesInProgress:d,isSmartUpdatesSwitching:p,installationId:s,installationType:a,installationFeatures:i})}),!u&&this.getNeedToUpdateAssetsGroupsCount()>1&&(0,L.jsx)(Ni,{children:(0,L.jsx)(Ha,{children:(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(Tt,{onChange:this.handleSelectAllUpdates,checked:h,disabled:c||d,children:(0,L.jsx)(pp,{content:"controllers.index.detail.selectAllUpdatesButton"})})})})}),d&&!b&&!f&&(0,L.jsx)(Fe,{intent:"danger",children:(0,L.jsx)(pp,{content:"updates.smartUpdates.results.failedToLoad"})}),this.getUpdatesContent()]})};const{installation:{features:s}}=this.props;this.state=Object.assign(Object.assign({},jB),{isSmartUpdateEnabled:!0===(null===(n=null===(t=s.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.status)})}componentDidMount(){this.props.isOpen&&(this.handleOpen(),this.handleLoadData(),this.handleShowSmartUpdateResults(this.props))}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&(this.handleOpen(),this.handleLoadData(),this.handleShowSmartUpdateResults(this.props),this.props.onClearDrawerMessages()),this.props.isOpen&&(this.props.updateData!==e.updateData&&(this.fixSelections(),this.handleShowSmartUpdateResults(this.props)),e.tasks!==this.props.tasks&&(this.handleUpdateBackgroundTask(this.props.tasks),this.handleCheckUpdateBackgroundTask(this.props.tasks))),e.installation!==this.props.installation&&this.handleUpdateSmartUpdateFeatureStatus(this.props)}renderAutoUpdatesSettingsDrawer(){const{installation:{id:e,displayTitle:t},isUpdateSettingsFormOpen:n,onCloseUpdatesSettingsDialog:s,onAddDrawerSuccessMessage:a}=this.props;return(0,L.jsx)(SB,{title:t,subtitle:(0,L.jsx)(pp,{content:"autoUpdatesSettingsDrawer.title"}),isOpen:n,installationId:e,onClose:s,addSuccessMessage:a})}renderUpdateButtonWithConfirmation(){const{isSmartUpdateEnabled:e}=this.state;return(0,L.jsx)(ut,{"data-test-id":ov,intent:"primary",onClick:this.handleOpenConfirmation,size:"lg",children:e?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateButton"}):(0,L.jsx)(pp,{content:"controllers.index.detail.updateButton"})},ov)}render(){const{installation:{displayTitle:e,id:t},isOpen:n,onClose:s,title:a,backButton:i}=this.props,{backgroundTask:r,showTasksDetails:o}=this.state;let l=null;o&&r&&(l=QO(r,(()=>{this.setState({backgroundTask:null})})));const c=a||(0,L.jsx)(pp,{content:"controllers.index.detail.updatesFormSubtitle"});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(cr,{"data-test-id":"updates-drawer-section",title:c,subtitle:e,isOpen:n,onClose:s,backButton:i,"data-type":"updates",progress:l,hideButton:!1,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[this.renderSubmitButton()]},children:[this.props.renderDrawerMessages(),this.getDrawerContent()]}),this.renderAutoUpdatesSettingsDrawer(),this.renderSmartUpdatesDrawer()]})}}CB.propTypes={updateData:je().shape({applicable:je().bool,title:je().string,displayTitle:je().string,lastCheckUpdateTimestamp:je().number,multisite:je().bool,core:je().shape({version:je().string,availableVersion:je().string,restorePoint:je().shape({available:je().bool.isRequired})}),plugins:je().array,themes:je().array,tasks:je().object,autoUpdate:je().shape({available:je().bool}),smartUpdate:je().shape({status:je().bool.isRequired,taskStatus:je().string.isRequired})}),installation:je().shape({id:je().number.isRequired,url:je().string.isRequired,displayTitle:je().string.isRequired,installationType:je().oneOf(Object.values(u)).isRequired,features:je().shape({updates:je().shape({smart:je().shape({available:je().bool.isRequired,status:je().bool,promoAvailable:je().bool.isRequired}).isRequired}).isRequired}).isRequired}).isRequired,isSmartUpdatesUnpaid:je().bool.isRequired,onClose:je().func.isRequired,isOpen:je().bool.isRequired,openUpdatesType:je().string,backButton:je().bool,title:je().oneOfType([je().string,je().object]),showSmartUpdates:je().bool.isRequired,tasks:je().array,backgroundTasksActions:je().shape({fetchBackgroundTask:je().func.isRequired}).isRequired,appActions:je().shape({disableSmartUpdatePromoForUpdatesScreen:je().func.isRequired}).isRequired,instancesActions:je().shape({checkUpdates:je().func.isRequired,updateItems:je().func.isRequired,applySmartUpdate:je().func.isRequired,setSmartUpdatesStatus:je().func.isRequired,discardSmartUpdate:je().func.isRequired,instanceUpdateFinished:je().func.isRequired,instanceUpdateFailed:je().func.isRequired,getInstancesData:je().func.isRequired,fetchAvailableUpdates:je().func.isRequired}).isRequired,showSmartUpdatePromo:je().bool.isRequired,isSmartUpdatePromoAvailableForUpdatesScreen:je().bool.isRequired,isUpdateSettingsFormOpen:je().bool.isRequired,onOpenUpdatesSettingsDialog:je().func.isRequired,onCloseUpdatesSettingsDialog:je().func.isRequired,onAddDrawerSuccessMessage:je().func.isRequired,onAddDrawerErrorMessage:je().func.isRequired,onAddDrawerWarningMessage:je().func.isRequired,onClearDrawerMessages:je().func.isRequired,renderDrawerMessages:je().func.isRequired,addSuccessMessage:je().func.isRequired},CB.defaultProps={title:null,backButton:!1,tasks:null,openUpdatesType:null,updateData:null};const IB=Fc(((e,t)=>({updateData:e.updates.find((e=>e.id===t.installation.id)),isSmartUpdatesUnpaid:e.app.unpaidFeatures[Wp],assetsToChangingStatus:e.instances.assetsToChangingStatus,assetsToRemove:e.instances.assetsToRemove,showSmartUpdates:e.app.options.showSmartUpdates,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,isSmartUpdatePromoAvailableForUpdatesScreen:e.app.options.isSmartUpdatePromoAvailableForUpdatesScreen})),(e=>({appActions:(0,Cb.zH)(t,e),instancesActions:(0,Cb.zH)({checkUpdates:Ox,updateItems:Xx,applySmartUpdate:Zx,getSmartUpdateResult:tA,setSmartUpdatesStatus:Ax,discardSmartUpdate:eA,instanceUpdateFinished:HA,instanceUpdateFailed:VA,getInstancesData:Hx,fetchAvailableUpdates:Lx},e),backgroundTasksActions:(0,Cb.zH)({fetchBackgroundTask:aT},e),addSuccessMessage:(0,Cb.zH)(nb,e)})))(yC(CB));class TB extends R.Component{constructor(){super(...arguments),this.getIcon=()=>{const{showIcon:e,baseClassName:t}=this.props;if(e)return(0,L.jsx)(xe,{name:"folder-closed",className:`${t}__file-manager-link`})},this.renderPlesk=()=>{const{installation:{features:{fileManager:e}},children:t,scope:n,translate:s}=this.props;return(0,L.jsx)(_e,{href:e.url,icon:this.getIcon(),"data-test-id":mv,onClick:()=>this.context(`CRD-${n}-FILE_MANAGER-CLICKED`),"aria-label":s("instancesList.instanceCard.fileManager"),children:t})},this.renderCpanel=()=>{const{goToUri:e,installation:{features:{fileManager:t},owner:n},children:s,scope:a,translate:i}=this.props;if(!t.url)return null;const r=Yv({link:t.url,inNewWindow:!1,goToUri:e,accountUsername:null==n?void 0:n.login,onClick:()=>this.context(`CRD-${a}-FILE_MANAGER-CLICKED`)});return(0,L.jsx)(_e,Object.assign({},r,{icon:this.getIcon(),"data-test-id":mv,"aria-label":i("instancesList.instanceCard.fileManager"),children:s}))}}render(){const{installation:{features:{fileManager:e},installationType:t}}=this.props;return e.available&&e.url?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}TB.defaultProps={baseClassName:`${th}instance-file-manager`,showIcon:!0},TB.contextType=Q_;const DB=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(Nv(TB));class PB extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}}}=this.props;return e.backupManagerUrl?(0,L.jsx)(ut,{component:"a",href:e.backupManagerUrl,"data-test-id":TN,children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})}):null},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n}=this.props;if(!e.backupManagerUrl)return null;const s=Yv({link:e.backupManagerUrl,inNewWindow:!0,goToUri:n,accountUsername:t.login});return(0,L.jsx)(ut,Object.assign({component:"a","data-test-id":TN},s,{children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})}))}}render(){const{installation:{features:{backups:e},installationType:t}}=this.props;return e.panelBackupsAvailable&&e.backupManagerUrl?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}const OB=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(PB),LB=({isOpen:e,onSubmit:t,onClose:n,titleKey:s,descriptionKey:a,buttonYesKey:i,buttonNoKey:r,version:o=null})=>e?(0,L.jsx)(Wi,{isOpen:e,cancelTitle:(0,L.jsx)(pp,{content:r}),title:(0,L.jsx)(pp,{content:s}),buttons:(0,L.jsx)(ut,{"data-test-id":hv,onClick:t,children:(0,L.jsx)(pp,{content:i})}),size:"sm",onClose:n,children:(0,L.jsx)(pp,{content:a,params:{version:o}})}):null;const MB=({installationId:e,restorePoint:t=null,enableInstances:n,disableInstances:s,baseClassName:a=`${th}restore-point-item`})=>{const[i,r]=(0,R.useState)(!1),[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(null),d=vc((e=>e.backgroundTasks.tasks)),p=Wc();(0,R.useEffect)((()=>{if(!c)return;const e=nT(c,d);e&&ZI(e)&&"task\\restore"===e.code&&(u(null),p(Ux(e.publicParams.instanceId)).catch((()=>{})))}),[c,d,p]);const h=(0,R.useCallback)((()=>r(!0)),[]),m=(0,R.useCallback)((()=>l(!0)),[]),g=(0,R.useCallback)((()=>r(!1)),[]),f=(0,R.useCallback)((()=>l(!1)),[]),b=(0,R.useCallback)((()=>{g(),p(Ex(e)).then((e=>{e.status===Mp&&u(e.data.task.id)}))}),[p,e,g]),v=(0,R.useCallback)((()=>{return t=void 0,a=void 0,r=function*(){f(),s([e]);const t=yield p(Nx(e));return n([e]),t},new((i=void 0)||(i=Promise))((function(e,n){function s(e){try{l(r.next(e))}catch(e){n(e)}}function o(e){try{l(r.throw(e))}catch(e){n(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(s,o)}l((r=r.apply(t,a||[])).next())}));var t,a,i,r}),[p,e,s,n,f]);if(!t||!t.restorePointTimestamp)return null;const{displayTimestamp:y,fullSnapshot:S,message:w,previousVersion:x}=t;return(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"controllers.index.detail.restorePointTitle"}),className:a?`${a}-item`:void 0,children:(0,L.jsxs)("span",{children:[y," ",(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{icon:"info-circle",ghost:!0}),children:[(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(w||"",Object.assign(Object.assign({},up.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),!S&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("br",{}),(0,L.jsx)("br",{}),(0,L.jsx)(pp,{content:"controllers.index.detail.snapshotNote"})]})]})," ",(0,L.jsx)(ut,{icon:"refresh",tooltip:(0,L.jsx)(pp,{content:"controllers.index.detail.restorePointRestoreButton"}),"data-test-id":TN,onClick:e=>gp(e,h),ghost:!0})," ",(0,L.jsx)(ut,{icon:"recycle",tooltip:(0,L.jsx)(pp,{content:"controllers.index.detail.restorePointDeleteButton"}),onClick:e=>gp(e,m),ghost:!0}),(0,L.jsx)(LB,{isOpen:i,onClose:g,onSubmit:b,buttonYesKey:"controllers.index.detail.snapshotRollback.buttonYes",buttonNoKey:"controllers.index.detail.snapshotRollback.buttonNo",titleKey:"controllers.index.detail.snapshotRollback.title",descriptionKey:x?"controllers.index.detail.snapshotRollback.descriptionVersion":"controllers.index.detail.snapshotRollback.description",version:x}),(0,L.jsx)(LB,{isOpen:o,onClose:f,onSubmit:v,buttonYesKey:"controllers.index.detail.snapshotDelete.buttonYes",buttonNoKey:"controllers.index.detail.snapshotDelete.buttonNo",titleKey:"controllers.index.detail.snapshotDelete.title",descriptionKey:"controllers.index.detail.snapshotDelete.description"})]})})};class EB extends R.Component{constructor(e){super(e),this.getRemoteInstanceLocation=()=>{const{installation:{installationType:e,server:t,url:n}}=this.props;return CO(e)?n:kO(e)?t:null},this.handleToggleBackupDrawer=()=>{this.context("CRD-INOPERABLE_SITE-BACKUP-CLICKED"),this.setState((e=>({showBackupDrawer:!e.showBackupDrawer})))},this.renderRemoteInstanceActions=()=>{const{installation:{id:e},onToggleRemoteInstanceSettings:t,onDetach:n,checkWordPressIntegrityFeatureEnabled:s,onOpenCheckWordPressIntegrityDialog:a}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"detach",children:(0,L.jsx)(ut,{onClick:()=>n([e],"CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteInstance.buttonDetach"})})}),(0,L.jsx)(Ya,{title:"properties",children:(0,L.jsx)(_e,{onClick:t,"data-test-id":CN,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteInstance.linkProperties"})})}),s&&(0,L.jsx)(Ya,{title:"checkWordPressIntegrity",children:(0,L.jsx)(_e,{onClick:()=>a("CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteInstance.linkCheckWordPressIntegrity"})})})]})},this.renderRemoteAgentInstanceActions=()=>{const{installation:{id:e},onToggleRemoteAgentInstanceSettings:t,onDetach:n,checkWordPressIntegrityFeatureEnabled:s,onOpenCheckWordPressIntegrityDialog:a}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"detach",children:(0,L.jsx)(ut,{onClick:()=>n([e],"CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteAgentInstance.buttonDetach"})})}),(0,L.jsx)(Ya,{title:"properties",children:(0,L.jsx)(_e,{onClick:t,"data-test-id":IN,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteAgentInstance.linkProperties"})})}),s&&(0,L.jsx)(Ya,{title:"checkWordPressIntegrity",children:(0,L.jsx)(_e,{onClick:()=>a("CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenRemoteAgentInstance.linkCheckWordPressIntegrity"})})})]})},this.renderActions=()=>{const{installation:{domain:e,installationType:t,features:{backups:n,fileManager:s,malwareScan:a},status:{infected:i}},onOpenCheckWordPressIntegrityDialog:r,checkWordPressIntegrityFeatureEnabled:o}=this.props;return CO(t)?this.renderRemoteAgentInstanceActions():kO(t)?this.renderRemoteInstanceActions():i?(0,L.jsxs)(Ha,{children:[a.available&&a.url&&(0,L.jsx)(Ya,{title:"malwareScan",children:(0,L.jsx)(ut,{component:"a",href:a.url,children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.buttonMalwareScan"})})})})||null,s.available&&s.url&&(0,L.jsx)(Ya,{title:"fileManager",children:(0,L.jsx)(DB,{installation:this.props.installation,showIcon:!1,scope:"INOPERABLE_SITE",children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.linkFileManager"})})})||null,(null==e?void 0:e.url)&&(0,L.jsx)(Ya,{title:"domain",children:(0,L.jsx)(_e,{href:null==e?void 0:e.url,children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.linkDomain"})})})||null,o&&(0,L.jsx)(Ya,{title:"checkWordPressIntegrity",children:(0,L.jsx)(_e,{onClick:()=>r("CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.linkCheckWordPressIntegrity"})})})]}):(0,L.jsxs)(Ha,{children:[n.panelBackupsAvailable&&!n.wptBackupsAvailable&&(0,L.jsx)(Ya,{title:"restore",children:(0,L.jsx)(OB,{installation:this.props.installation})})||null,n.wptBackupsAvailable&&(0,L.jsx)(Ya,{title:"restore",children:(0,L.jsx)(ut,{component:"a",onClick:this.handleToggleBackupDrawer,"data-test-id":TN,children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.buttonRestore"})})})})||null,s.available&&s.url&&(0,L.jsx)(Ya,{title:"fileManager",children:(0,L.jsx)(DB,{installation:this.props.installation,showIcon:!1,scope:"INOPERABLE_SITE",children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.linkFileManager"})})})||null,(null==e?void 0:e.url)&&(0,L.jsx)(Ya,{title:"domain",children:(0,L.jsx)(_e,{href:null==e?void 0:e.url,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.linkDomain"})})})||null,o&&(0,L.jsx)(Ya,{title:"checkWordPressIntegrity",children:(0,L.jsx)(_e,{onClick:()=>r("CRD-INOPERABLE_SITE"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.linkCheckWordPressIntegrity"})})})]})},this.state={showBackupDrawer:!1}}render(){const{installation:{errorMessage:e,features:{restorePoint:t},id:n,path:s,status:{alive:a,infected:i}},disableInstances:r,enableInstances:o,baseClassName:l}=this.props;if(a&&!i)return null;const c=this.getRemoteInstanceLocation();return i?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.description",params:{refreshIcon:(0,L.jsx)(xe,{name:"refresh"})}})}),(0,L.jsx)(jl,{className:`${l}__panel`,children:(0,L.jsxs)(Ni,{className:`${l}__section`,children:[c&&(0,L.jsx)(vi,{className:`${l}__section-item`,title:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.remoteInstanceLocation"}),children:c})||null,(0,L.jsx)(vi,{className:`${l}__section-item`,title:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.path"}),children:s})]})}),this.renderActions()]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(_a,{children:[(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.filesFound"}),":"]}),(0,L.jsx)(jl,{className:`${l}__panel`,children:(0,L.jsxs)(Ni,{className:`${l}__section`,children:[c&&(0,L.jsx)(vi,{className:`${l}__section-item`,title:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.remoteInstanceLocation"}),children:c})||null,(0,L.jsx)(vi,{className:`${l}__section-item`,title:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.path"}),children:s})]})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.description"})}),e&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{className:`${l}__error-details`,children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.errorDetails"})}),children:e})||null,t&&t.restorePointTimestamp&&(0,L.jsx)(Ni,{children:(0,L.jsx)(MB,{installationId:n,restorePoint:t,disableInstances:r,enableInstances:o})})||null,this.renderActions(),(0,L.jsx)(aL,{installation:this.props.installation,onClose:this.handleToggleBackupDrawer,isOpen:this.state.showBackupDrawer})]})}}EB.defaultProps={checkWordPressIntegrityFeatureEnabled:!1,baseClassName:`${th}problem-instance-details`},EB.contextType=Q_;const RB=EB;class UB extends R.Component{constructor(e){super(e),this.clearMessages=()=>this.setState({messages:[]}),this.clearMessage=e=>{this.setState((t=>({messages:t.messages.filter((({key:t})=>t!==e))})))},this.setMessages=e=>this.setState((t=>{const n=[...e],s=e.map((e=>e.key));return t.messages.forEach((e=>{s.length&&-1===s.indexOf(e.key)&&n.push(e)})),{messages:n}})),this.addSuccessMessage=(e,t,n=xp(4))=>{this.setMessages([{key:n,status:Np,message:e,isTranslate:t}])},this.addErrorMessage=(e,t,n=xp(4))=>{this.setMessages([{key:n,status:Bp,message:e,isTranslate:t}])},this.addWarningMessage=(e,t,n=xp(4))=>{this.setMessages([{key:n,status:Fp,message:e,isTranslate:t}])},this.state={messages:[]}}renderMessage(){const{messages:e}=this.state;return e.length?e.map((({key:e,status:t,message:n,icon:s=null,isTranslate:a=!1})=>{if(!t||!n)return null;const i=a?(0,L.jsx)(pp,{content:n}):(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(n,Object.assign(Object.assign({},up.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),r=t===Ep?Bp:t;return(0,L.jsxs)(Fe,{intent:r,className:"wpt-drawer-alert",onClose:()=>this.clearMessage(e),children:[s&&(0,L.jsxs)(L.Fragment,{children:[s," "]}),i]},xp(4))})):null}render(){const e=this.props,{children:t,"data-type":n}=e,s=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["children","data-type"]);return(0,L.jsxs)(cr,Object.assign({"data-type":n},s,{children:[this.renderMessage(),(0,R.cloneElement)(t,{setMessages:this.setMessages,clearMessages:this.clearMessages,addSuccessMessage:this.addSuccessMessage,addErrorMessage:this.addErrorMessage,addWarningMessage:this.addWarningMessage})]}))}}const NB=UB;class FB extends R.Component{constructor(e){super(e),this.loadProperties=()=>this.props.getRemoteServerInstallationProperties(this.props.installation.id).then((e=>{this.setState({values:{remoteInstanceIp:e.ip||"",remoteInstanceSystemUser:e.systemUser||"",remoteInstancePhpBin:e.php.bin||"",remoteInstancePhpIni:e.php.ini||""}})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})})),this.handleSubmit=e=>{this.setState({isSending:!0});const{installation:{id:t},updateRemoteInstanceProperties:n}=this.props;this.drawer.clearMessages(),n(t,e).then((e=>{const t=e.data;e.status===Ep?(e.message&&this.drawer.addErrorMessage(e.message),t&&t.formErrors&&this.setState({errors:t.formErrors})):(this.drawer.addSuccessMessage("list-ui.instances.forms.remoteInstanceProperties.successfullySaved",!0,"remoteInstancePropertiesSuccessfullySaved"),this.setState({errors:null}))})).catch((()=>{})).finally((()=>{this.setState({isSending:!1})}))},this.handleRedetectInstanceProperties=()=>{this.setState({isLoading:!0});const{installation:{id:e},redetectRemoteInstanceProperties:t}=this.props;this.drawer.clearMessages(),t(e).then((e=>{e.status===Ep?e.message&&this.drawer.addErrorMessage(e.message):(this.setState({errors:null}),this.loadProperties().then((()=>{this.drawer.addSuccessMessage("list-ui.instances.forms.remoteInstanceProperties.successfullyRedetected",!0,"remoteInstancePropertiesSuccessfullyRedetected")})))})).catch((()=>{this.setState({isLoading:!1})}))},this.state={values:{remoteInstanceIp:"",remoteInstanceSystemUser:"",remoteInstancePhpBin:"",remoteInstancePhpIni:""},errors:null,isSending:!1,isLoading:!0}}componentDidMount(){this.loadProperties()}render(){const{values:e,errors:t,isSending:n,isLoading:s}=this.state,{onToggleRemoteInstancePropertiesForm:a,installation:i}=this.props;return(0,L.jsx)(NB,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.drawerTitle"}),subtitle:i.displayTitle,isOpen:!0,onClose:a,"data-test-id":ev,size:"sm","data-type":ev,form:s?null:{state:n?"submit":void 0,submitButton:{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.submitButton"}),"data-test-id":"remote-instance-submit-button"},cancelButton:{onClick:a},applyButton:!1,onSubmit:this.handleSubmit,values:e,errors:t,vertical:!0,"data-test-id":"remote-instance-properties-form"},ref:e=>this.drawer=e,children:s?(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.redetectingInstanceProperties"})}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("div",{children:(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.headDescription"})})}),(0,L.jsx)("div",{style:{margin:"8px 0 8px 0"},children:(0,L.jsx)(ut,{onClick:this.handleRedetectInstanceProperties,"data-test-id":"remote-instance-redetect-button",icon:"reload",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.redetectInstanceProperties"})})}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstanceIp"}),"data-test-id":"remote-instance-field-ip",name:"remoteInstanceIp",size:"lg",required:!0}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstanceSystemUser"}),"data-test-id":"remote-instance-field-system-user",name:"remoteInstanceSystemUser",size:"lg",required:!0}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstancePhpBin"}),"data-test-id":"remote-instance-field-php-bin",name:"remoteInstancePhpBin",size:"lg",required:!0}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteInstanceProperties.fieldRemoteInstancePhpIni"}),"data-test-id":"remote-instance-field-php-ini",name:"remoteInstancePhpIni",size:"lg",required:!0})]})},"remote-instance-properties-drawer")}}FB.propTypes={installation:je().shape({id:je().number.isRequired,displayTitle:je().string.isRequired}).isRequired,updateRemoteInstanceProperties:je().func.isRequired,redetectRemoteInstanceProperties:je().func.isRequired,onToggleRemoteInstancePropertiesForm:je().func.isRequired,getRemoteServerInstallationProperties:je().func.isRequired};const BB=Fc(null,{updateRemoteInstanceProperties:vA,redetectRemoteInstanceProperties:xA,getRemoteServerInstallationProperties:S_})(FB);class YB extends R.Component{constructor(e){super(e),this.loadProperties=()=>this.props.getRemoteAgentInstallationProperties(this.props.installation.id).then((e=>{this.setState({values:{pluginUrl:e.pluginUrl||"",token:e.token||"",ip:e.ip||""}})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})})),this.handleSubmit=e=>{this.setState({isSending:!0});const{installation:{id:t},updateRemoteAgentInstanceProperties:n}=this.props;this.drawer.clearMessages(),n(t,e).then((e=>{const t=e.data;e.status===Ep?(e.message&&this.drawer.addErrorMessage(e.message),t&&t.formErrors&&this.setState({errors:t.formErrors})):(this.drawer.addSuccessMessage("list-ui.instances.forms.remoteAgentInstanceProperties.successfullySaved",!0,"remoteAgentInstancePropertiesSuccessfullySaved"),this.setState({errors:null}))})).catch((()=>{})).finally((()=>{this.setState({isSending:!1})}))},this.state={values:{pluginUrl:"",token:"",ip:""},errors:null,isSending:!1,isLoading:!0}}componentDidMount(){this.loadProperties()}render(){const{values:e,errors:t,isSending:n,isLoading:s}=this.state,{onToggleRemoteAgentInstancePropertiesForm:a,installation:i}=this.props;return(0,L.jsx)(NB,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.drawerTitle"}),subtitle:i.displayTitle,isOpen:!0,onClose:a,"data-test-id":nv,size:"sm","data-type":nv,form:s?null:{state:n?"submit":void 0,onSubmit:this.handleSubmit,submitButton:{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.submitButton"}),"data-test-id":"remote-agent-instance-submit-button"},cancelButton:{onClick:a},applyButton:!1,values:e,errors:t,vertical:!0},ref:e=>this.drawer=e,children:s?(0,L.jsx)(Qn,{}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("div",{children:(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.headDescription"})})}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldPluginUrl"}),"data-test-id":"remote-agent-instance-field-plugin-url",name:"pluginUrl",size:"lg",required:!0}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldToken"}),"data-test-id":"remote-agent-instance-field-token",name:"token",size:"lg",required:!0}),(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.remoteAgentInstanceProperties.fieldIp"}),"data-test-id":"remote-agent-instance-field-ip",name:"ip",size:"lg"})]})},"remote-agent-instance-properties-drawer")}}YB.propTypes={installation:je().shape({id:je().number.isRequired,displayTitle:je().string.isRequired}).isRequired,updateRemoteAgentInstanceProperties:je().func.isRequired,onToggleRemoteAgentInstancePropertiesForm:je().func.isRequired,getRemoteAgentInstallationProperties:je().func.isRequired};const HB=Fc(null,{updateRemoteAgentInstanceProperties:yA,getRemoteAgentInstallationProperties:w_})(YB);class VB extends R.Component{constructor(e){super(e),this.getContent=()=>{const{url:e,urlToSynchronize:t,isLoading:n}=this.state;return n?(0,L.jsx)(Qn,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.description"})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.currentSiteUrl"}),children:(0,L.jsx)("a",{href:e,children:e})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.siteUrlAfterSynchronization"}),children:(0,L.jsx)("a",{href:t,children:t})})]})},this.state={url:void 0,urlToSynchronize:void 0,isInstanceUrlMatchesActualDomainUrl:!1,isLoading:!0}}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}handleLoadData(){this.setState({isLoading:!0}),this.props.getSynchronizeSiteUrlParams(this.props.installationId).then((({data:e})=>{this.setState({url:e?e.url:void 0,urlToSynchronize:e?e.urlToSynchronize:void 0,isInstanceUrlMatchesActualDomainUrl:!!e&&e.isInstanceUrlMatchesActualDomainUrl})})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{isOpen:e,onClose:t,onSynchronizeSiteUrl:n}=this.props,{isInstanceUrlMatchesActualDomainUrl:s,isLoading:a}=this.state;return(0,L.jsx)(Wi,{title:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.title"}),size:"xs",isOpen:e,onClose:t,cancelTitle:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.buttonBack"}),form:{vertical:!0,requiredMark:!1,onSubmit:n,submitButton:{children:(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.buttonSynchronize"}),"data-test-id":"synchronize-site-url-button-synchronize",disabled:s||a,tooltip:s?(0,L.jsx)(pp,{content:"synchronizeSiteUrlDialog.siteUrlMatchesCurrentDomain"}):null}},closable:!0,children:this.getContent()})}}const WB=Fc(null,(e=>({getSynchronizeSiteUrlParams:t=>e(s_(t))})))(VB),$B=Fc(((e,t)=>{const{installation:{id:n}}=t;return{apiUrl:e.app.urls.apiUrl,isScreenshotLoading:e.instances.installationsWithScreenshotLoading.has(n)}}),(e=>({instancesActions:(0,Cb.zH)({refreshScreenshot:_x},e)})))((e=>{const{apiUrl:t,baseClassName:n=`${th}instance-screenshot-preview-panel`,installation:{screenshot:s},isScreenshotLoading:a=!1}=e;return(0,L.jsxs)("div",{className:`${n}-wrapper`,children:[(0,L.jsx)(es,{className:n,image:(null==s?void 0:s.url)?`${t}/${null==s?void 0:s.url}`:null,style:a?{opacity:.2}:null,children:!a&&(()=>{const{installation:{url:t}}=e,a=(null==s?void 0:s.createdAt)?new Date(s.createdAt):null;return(0,L.jsxs)(L.Fragment,{children:[t&&(0,L.jsx)(ut,{intent:"primary",component:"a",href:t,target:"_blank",children:(0,L.jsx)(pp,{content:"controllers.index.detail.linkViewSite"})}),(0,L.jsx)("div",{className:`${n}__datetime`,children:a&&(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.screenshotPreview.datetime.description"}),children:(0,L.jsxs)("span",{children:[(0,L.jsx)(xe,{name:"clock"}),(0,L.jsx)("span",{children:a.toLocaleString()})]})})}),(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.screenshotPreview.refreshNow"}),children:(0,L.jsx)(xe,{className:`${n}__refresh-button`,name:"refresh",size:"16",onClick:()=>(()=>{const{installation:{id:t},instancesActions:{refreshScreenshot:n}}=e;n(t)})()})})]})})()}),a&&(0,L.jsx)("div",{className:`${n}__loader-spinner`,children:(0,L.jsx)(Qn,{})})]})})),zB=Fc((e=>({tasks:e.backgroundTasks.tasks.filter((e=>e.code===Zw))})),(e=>({installIntegrationPlugin:(0,Cb.zH)(zF,e)})))((e=>{const{wordPressVersion:t,installationId:n,installIntegrationPlugin:s,tasks:a,baseClassName:i=`${th}instance-left-column`}=e,r=cp(),o=J_(),[l,c]=(0,R.useState)(!1),[u,d]=(0,R.useState)(null),p=null!==u;return(0,R.useEffect)((()=>{if(null!==u){const e=nT(u,a);e&&ZI(e)&&d(null)}}),[a,u,d]),nM().compare(t,"4.4","<")?null:(0,L.jsxs)(vi,{className:`${i}-integration-plugin-promo-section-item`,children:[(0,L.jsxs)(Ns,{level:4,children:[r("integrationPlugin.ui.promoBlock.title"),(0,L.jsx)(NO,{code:"integration-plugin-promo",interacted:l})]}),(0,L.jsxs)(Ks,{title:r("integrationPlugin.ui.promoPopover.title"),placement:"bottom",onClose:()=>c(!1),visible:l,target:(0,L.jsx)(_e,{progress:p,onClick:()=>{o("CRD-INTEGRATION_PLUGIN_PROMO-CLICKED"),c(!0)},children:r(p?"integrationPlugin.ui.promoBlock.actionInstalling":"integrationPlugin.ui.promoBlock.action")}),children:[(0,L.jsx)(_a,{children:r("integrationPlugin.ui.promoPopover.description.paragraph1")}),(0,L.jsx)(_e,{onClick:()=>{o("CRD-INTEGRATION_PLUGIN_INSTALL-CLICKED"),c(!1),s(n).then((e=>d(e.id))).catch((()=>{}))},children:r("integrationPlugin.ui.promoPopover.description.action")})]})]})})),qB=Fc((e=>({isOwnerColumnAvailable:e.app.options.isOwnerColumnAvailable,isIntegrationPluginPromoVisible:e.app.options.integrationPluginSettings.isPromoVisible})))((e=>{var t;const{isOwnerColumnAvailable:n,installation:s,installation:{id:a,version:i,status:{alive:r,unsupported:o},owner:l,server:c,installationType:u,features:{integrationPlugin:{ui:{status:d}}}},onToggleRemoteInstanceSettings:p,baseClassName:h=`${th}instance-left-column`,initialShowAdminSettingsDrawer:m=!1,isIntegrationPluginPromoVisible:g}=e,f=g&&!d;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("div",{className:`${h}-preview-panel`,children:(0,L.jsx)($B,{installation:s})}),!o&&(0,L.jsxs)(Ni,{vertical:!1,className:`${h}-section`,children:[r&&(0,L.jsxs)(L.Fragment,{children:[f&&(0,L.jsx)(zB,{installationId:a,wordPressVersion:i}),(0,L.jsx)("div",{className:`${h}-admin-buttons`,children:(0,L.jsx)(aY,{installation:s,initialShowAdminSettingsDrawer:m})})]}),n&&(null==l?void 0:l.name)&&(0,L.jsx)(lY,{installation:s,baseClassName:h}),(null===(t=s.domain)||void 0===t?void 0:t.name)&&(0,L.jsx)(JB,{installation:s,baseClassName:h}),c&&!jO(u)&&(0,L.jsx)(cY,{installation:s,onToggleRemoteInstanceSettings:p,baseClassName:h}),(0,L.jsx)(dY,{installation:s,baseClassName:h})]})]})})),GB="instance-link-to-domain";class KB extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{domain:e},baseClassName:t}=this.props;return(null==e?void 0:e.url)?(0,L.jsx)(_e,{href:null==e?void 0:e.url,className:t,"data-test-id":GB,onClick:()=>this.context("CRD-DOMAIN-CLICKED"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.manageDomain"})}):(0,L.jsx)("span",{className:t,"data-test-id":GB,children:null==e?void 0:e.name})},this.renderCpanel=()=>{const{installation:{domain:e},baseClassName:t}=this.props;return(0,L.jsx)("span",{className:t,"data-test-id":GB,children:null==e?void 0:e.name})}}render(){const{installation:{installationType:e,domain:t}}=this.props;if(!(null==t?void 0:t.name))return null;let n=null==t?void 0:t.name;return xO(e)?n=this.renderPlesk():wO(e)&&(n=this.renderCpanel()),n}}KB.defaultProps={baseClassName:`${th}instance-domain-link`},KB.contextType=Q_;const QB=KB,JB=e=>{const{installation:t,baseClassName:n=`${th}instance-left-column`}=e;return(0,L.jsx)(vi,{className:`${n}-section-item`,children:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"web",size:"16"}),title:(0,L.jsx)(QB,{installation:t}),tooltip:(0,L.jsx)(pp,{content:"list-ui.instances.generalTab.linkDomain"})})})};const XB=e=>{var t,{children:n,onChange:s,value:a,ariaLabel:i}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["children","onChange","value","ariaLabel"]);if(!n||1!==n.length)return(0,L.jsx)(Li,Object.assign({},r,{children:(0,L.jsx)(Hr,{value:a,onChange:s,"aria-label":i,children:n})}));const[o]=n;return(0,L.jsx)(Li,Object.assign({},r,{children:null===(t=null==o?void 0:o.props)||void 0===t?void 0:t.children}))};class ZB extends R.Component{constructor(e){super(e),this.handleSubmit=e=>{this.state.isProcessing||(this.setState({values:e,errors:{},isProcessing:!0}),this.props.setAdminSettings(this.props.installationId,this.state.values).then((()=>{this.props.onClose()})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})})))},this.handleSwitchShowPassword=()=>(this.setState((e=>({showCurrentPassword:!e.showCurrentPassword}))),!1),this.handleChangeUser=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{login:e,password:""}),errors:{}})))},this.handleIntegrationPluginTokenIssue=()=>{this.setState({isTokenIssuing:!0}),this.props.issueIntegrationPluginToken(this.props.installationId).then((e=>{this.setState({apiTokenMeta:e}),this.props.addSuccessMessage((0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.apiToken.refreshSuccess"}))})).catch((()=>{})).finally((()=>{this.setState({isTokenIssuing:!1})}))};const{adminSettings:{currentLanguage:t,currentEmail:n,availableLogins:s}}=this.props;let a=s.find((e=>e.login===this.props.adminSettings.currentLogin));a||(s.length>0?[a]=this.props.adminSettings.availableLogins:a={login:"",title:""}),this.state={isProcessing:!1,isTokenIssuing:!1,errors:{},values:{email:n,language:t,login:a.login,password:""},showCurrentPassword:!1,apiTokenMeta:void 0},0===this.props.adminSettings.availableLogins.length&&(this.state.errors.login={isEmpty:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.errorAdminAccountDoesntExists"})})}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.setState({apiTokenMeta:void 0})}render(){const{values:e,errors:t,showCurrentPassword:n}=this.state,{adminSettings:{loginUrl:s,availableLogins:a,availableLanguages:i,currentLogin:r,currentPassword:o},isIntegrationPluginApiEnabled:l,installationHasPluginModulesRequireApiToken:c,wordpressSecureLoginFeature:u,isIntegrationPluginInstalled:d,isOpen:p,onClose:h,baseClassName:m,translate:g}=this.props;return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.title"}),onClose:h,"data-test-id":"admin-settings-popover","data-type":"admin-settings",size:"xs",className:m,isOpen:p,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{"data-test-id":"admin-settings-change-settings",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.change"})},values:e,errors:t,state:this.state.isProcessing?"submit":void 0,vertical:!0},children:[u&&d&&(0,L.jsx)(Fe,{intent:"info",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.oneTimeLoginNotice"})}),(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.loginUrl"}),description:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.loginUrlHint"}),children:[(0,L.jsx)(da,{children:s}),(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"toolbar.openInNewTab"}),children:(0,L.jsx)(Us,{href:s||"",target:"_blank",children:""})})]}),(0,L.jsx)(XB,{"data-test-id":"admin-settings-current-login",label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.Administrator"}),onChange:this.handleChangeUser,name:"login",disabled:!a.length||this.state.isProcessing,ariaLabel:g("list-ui.instances.forms.settings.Administrator"),children:a.map((e=>(0,L.jsx)(Nr,{value:e.login,children:e.login},e.login)))}),e.login===r&&o&&(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.currentPassword"}),children:[n?(0,L.jsx)("strong",{"data-test-id":"admin-settings-current-password",children:o}):o.replace(/./g,"*")," ",(0,L.jsx)(xe,{"data-test-id":"admin-settings-show-password-button",name:n?"eye-closed":"eye",style:{cursor:"pointer"},onClick:this.handleSwitchShowPassword})]}),(0,L.jsx)(Ar,{size:"fill",name:"password",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{password:t})}),label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.newPassword"}),disabled:!a.length||this.state.isProcessing,required:e.login!==r}),(0,L.jsx)(Dr,{size:"fill",name:"email",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{email:t})}),label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.adminEmail"}),disabled:!a.length||this.state.isProcessing,required:!0}),(0,L.jsx)(XB,{name:"language",label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.language"}),"data-test-id":"admin-settings-language-select",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{language:t})}),value:e.language?e.language:void 0,ariaLabel:g("list-ui.instances.forms.settings.language"),children:i.map((e=>(0,L.jsx)(Nr,{"data-test-value":e.code,value:e.code,children:e.title},e.code)))}),l&&c&&(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.apiToken.label"}),description:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.apiToken.description"}),children:[this.state.apiTokenMeta&&(0,L.jsx)(Tl,{intent:"info","data-test-id":"refresh-token-alert","data-datetime":this.state.apiTokenMeta.issueDate,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.apiToken.lastRefresh",params:{dateTime:xS().parseZone(this.state.apiTokenMeta.issueDate).local().format("YYYY-MM-DD HH:mm:ss")}})}),(0,L.jsx)(ut,{state:this.state.isTokenIssuing?"loading":void 0,onClick:()=>this.handleIntegrationPluginTokenIssue(),"data-test-id":"refresh-token-button",children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.integrationPlugin.apiToken.refreshButton.title"})})]})]})}}ZB.defaultProps={baseClassName:`${th}admin-settings-form`};const eY=Fc((e=>({isIntegrationPluginApiEnabled:e.app.options.integrationPluginApi,wordpressSecureLoginFeature:e.app.options.wordpressSecureLoginFeature})),{addSuccessMessage:nb,issueIntegrationPluginToken:e=>t=>Gf.issueIntegrationPluginToken(e,sx).then((n=>(t($F(e,n.data)),n.data))).catch((e=>(t(Zf(e)),Promise.reject()))),setAdminSettings:sA})(Nv(ZB));class tY extends R.Component{constructor(e){var t;super(e),this.handleSubmit=e=>{if(this.state.isProcessing)return;const{setWpUser:t}=this.props;this.setState({values:e,errors:{},isProcessing:!0},(()=>t(this.props.instanceId,this.state.values).then((()=>{this.props.onClose()})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})}))))},this.handleSwitchShowPassword=()=>{this.setState((e=>({showCurrentPassword:!e.showCurrentPassword})))};const{wpUser:n}=this.props;this.state={isProcessing:!1,errors:{},values:{email:n.email,login:n.login,password:null!==(t=n.password)&&void 0!==t?t:""},showCurrentPassword:!1}}render(){const{values:e,errors:t,showCurrentPassword:n}=this.state,{onClose:s,baseClassName:a,isOpen:i,wpUser:r}=this.props;return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.wp-account.title"}),onClose:s,"data-type":"admin-settings",size:"xs",className:a,isOpen:i,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.wp-account.submit"})},values:e,errors:t,state:this.state.isProcessing?"submit":void 0,vertical:!0},children:[(0,L.jsx)(Dr,{size:"fill",label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.wp-account.login"}),name:"login",disabled:!0}),(0,L.jsx)(Ar,{size:"fill",name:"password",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{password:t})}),label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.wp-account.password"}),disabled:this.state.isProcessing,required:!0}),(0,L.jsx)(Dr,{size:"fill",name:"email",onChange:t=>this.setState({values:Object.assign(Object.assign({},e),{email:t})}),label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.wp-account.email"}),disabled:this.state.isProcessing,required:!0})]})}}tY.defaultProps={baseClassName:`${th}wp-account-settings-form`};const nY=Fc(null,{setWpUser:rA})(tY);class sY extends R.Component{constructor(e){super(e),this.handleCloseAdminSettingsDrawer=()=>this.setState({showAdminSettingsDrawer:!1}),this.handleOpenAdminSettingsForm=()=>{this.state.showLoadingAdminSettings||(this.context("CRD-SITE_LOGIN_SETTINGS-CLICKED"),this.setState({showLoadingAdminSettings:!0}),this.props.getAdminSettings(this.props.installation.id).then((e=>{this.setState({adminSettingsFormData:Object.assign({},e),showAdminSettingsDrawer:!0})})).catch((()=>{})).finally((()=>{this.setState({showLoadingAdminSettings:!1})})))},this.handleCloseWpAccountSettingsDrawer=()=>this.setState({showWpAccountSettingsDrawer:!1}),this.handleOpenWpAccountSettingsDrawer=()=>{this.state.showLoadingWpAccountSettings||(this.setState({wpAccountFormData:null,showLoadingWpAccountSettings:!0}),this.props.getWpUser(this.props.installation.id).then((e=>{this.setState({wpAccountFormData:Object.assign({},e),showWpAccountSettingsDrawer:!0})})).catch((()=>{})).finally((()=>{this.setState({showLoadingWpAccountSettings:!1})})))},this.renderLoginButton=()=>{const{installation:{id:e,features:{maintenance:t,credentials:n}},isAuxiliaryUser:s}=this.props,a=t.status&&t.fullMode?(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.tooltip.loginToWordpress"}):null;return(0,L.jsx)(RN,{disabled:!!t.status&&!!t.fullMode,instanceId:e,type:"button",hasAdminCredentials:null==n?void 0:n.available,onOpenAdminSettings:s?this.handleOpenWpAccountSettingsDrawer:this.handleOpenAdminSettingsForm,tooltip:a,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.loginToWordpress"})})},this.renderAdminSettings=()=>{var e,t;const{installation:n}=this.props,s=null!==(e=n.features.integrationPlugin.event.status)&&void 0!==e&&e||null!==(t=n.features.integrationPlugin.ui.status)&&void 0!==t&&t;return(0,L.jsxs)(L.Fragment,{children:[this.state.showLoadingAdminSettings?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.setup"})," ",(0,L.jsx)(wI,{})]}):(0,L.jsx)(Us,{"data-test-id":"admin-settings-button",onClick:e=>gp(e,this.handleOpenAdminSettingsForm),tabIndex:0,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.setup"})}),this.state.adminSettingsFormData&&(0,L.jsx)(eY,{installationId:n.id,isIntegrationPluginInstalled:n.features.integrationPlugin.installed,installationHasPluginModulesRequireApiToken:s,adminSettings:this.state.adminSettingsFormData,isOpen:this.state.showAdminSettingsDrawer,onClose:this.handleCloseAdminSettingsDrawer})]})},this.renderWpAccountSettings=()=>{const{installation:{id:e}}=this.props,{showLoadingWpAccountSettings:t,showWpAccountSettingsDrawer:n,wpAccountFormData:s}=this.state;return(0,L.jsxs)(L.Fragment,{children:[t?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.setup"})," ",(0,L.jsx)(wI,{})]}):(0,L.jsx)(Us,{onClick:e=>gp(e,this.handleOpenWpAccountSettingsDrawer),tabIndex:0,children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.settings.setup"})}),s&&(0,L.jsx)(nY,{instanceId:e,wpUser:s,isOpen:n,onClose:this.handleCloseWpAccountSettingsDrawer})]})},this.state={showAdminSettingsDrawer:!1,showWpAccountSettingsDrawer:!1,showLoadingAdminSettings:!1,showLoadingWpAccountSettings:!1,adminSettingsFormData:null,wpAccountFormData:null}}componentDidMount(){const{initialShowAdminSettingsDrawer:e}=this.props;e&&this.handleOpenAdminSettingsForm()}render(){const{installation:{status:{unsupported:e}},baseClassName:t,isAuxiliaryUser:n}=this.props;return e?null:(0,L.jsxs)(vi,{className:t,children:[this.renderLoginButton(),!n&&this.renderAdminSettings(),n&&this.renderWpAccountSettings()]})}}sY.defaultProps={baseClassName:`${th}admin-buttons-section-item`,initialShowAdminSettingsDrawer:!1},sY.contextType=Q_;const aY=Fc((e=>({isAuxiliaryUser:e.app.isAuxiliaryUser})),{getAdminSettings:nA,getWpUser:iA})(sY),iY="instance-link-to-owner";class rY extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{owner:e},baseClassName:t,translate:n}=this.props;return(null==e?void 0:e.url)?(0,L.jsx)(_e,{href:e.url,className:t,"data-test-id":iY,"aria-label":n("list.instances.owner"),children:null==e?void 0:e.name}):(0,L.jsx)("span",{className:t,"data-test-id":iY,children:null==e?void 0:e.name})},this.renderCpanel=()=>{const{installation:{owner:e},goToUri:t,baseClassName:n,translate:s}=this.props;return Wv()?(0,L.jsx)(_e,{onClick:()=>t("/",e.login),className:n,"data-test-id":iY,"aria-label":s("list.instances.owner"),children:null==e?void 0:e.name}):(0,L.jsx)("span",{className:n,"data-test-id":iY,children:null==e?void 0:e.name})}}render(){const{installation:{installationType:e,owner:t}}=this.props;if(!(null==t?void 0:t.name))return null;let n=t.name;return xO(e)?n=this.renderPlesk():wO(e)&&(n=this.renderCpanel()),n}}rY.defaultProps={baseClassName:`${th}instance-owner-link`};const oY=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(Nv(rY)),lY=e=>{const{installation:t,baseClassName:n=`${th}instance-left-column`}=e;return(0,L.jsx)(vi,{className:`${n}-section-item`,children:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"user",size:"16"}),title:(0,L.jsx)(oY,{installation:t}),tooltip:(0,L.jsx)(pp,{content:"list.instances.owner"})})})},cY=e=>{const{installation:{server:t,installationType:n},onToggleRemoteInstanceSettings:s,baseClassName:a=`${th}instance-left-column`}=e;return(0,L.jsxs)(vi,{title:(0,L.jsx)(pp,{content:"list-ui.instances.generalTab.server"}),className:`${a}-section-item-tight`,children:[(0,L.jsx)("span",{"data-test-id":"instance-remote-server-host",children:t}),(0,L.jsx)(ut,{icon:"sliders",onClick:s,"data-test-id":CO(n)?IN:CN,className:`${a}-server-settings`,ghost:!0})]})},uY=Fc((e=>{var t;return{hireDeveloperFeatureEnabled:e.app.options.hireDeveloperFeature,href:null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href,canManageSettings:e.app.options.isAdmin}}),(e=>({instancesActions:(0,Cb.zH)({recordHireDeveloperTransition:x_},e)})))((e=>{const{hireDeveloperFeatureEnabled:t,installation:n,href:s,instancesActions:a,canManageSettings:i}=e,r=J_(),[o,l]=(0,R.useState)(!1);return t&&s?(0,L.jsx)(Wr,{className:"hire-developer-link",icon:(0,L.jsx)(xe,{name:"code",size:"16"}),title:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ks,{target:(0,L.jsx)(Us,{onClick:()=>l(!o),children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.action"})}),placement:"bottom",visible:o,onClose:()=>l(!1),children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.description"})}),(0,L.jsx)(Us,{href:s,target:"_blank",onClick:()=>{a.recordHireDeveloperTransition(n.id).catch((()=>{})),r("HIRE_DEVELOPER_POPUP-HIRE_DEVELOPER-CLICKED"),l(!1)},children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.action"})}),i&&(0,L.jsx)(Ks,{target:(0,L.jsxs)("span",{style:{float:"right"},onClick:()=>r("HIRE_DEVELOPER_POPUP-HIRE_DEVELOPER_HIDE-CLICKED"),children:[(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.hide"})," ",(0,L.jsx)(xe,{name:"question-mark-circle"})]}),children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.leftColumn.hireDeveloper.howToHide"})})]}),(0,L.jsx)(NO,{code:"hire-developer-link",interacted:o})]})}):null})),dY=Fc((e=>{var t;return{hidden:!e.app.options.hireDeveloperFeature||!(null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href)}}))((e=>{const{installation:t,baseClassName:n=`${th}instance-left-column`,hidden:s}=e;return s?null:(0,L.jsx)(vi,{className:`${n}-section-item`,children:(0,L.jsx)(uY,{installation:t})})})),pY="view",hY="edit",mY="processing";class gY extends R.Component{constructor(e){super(e),this.setElementState=e=>this.setState({elementState:e}),this.handleOpenEdit=()=>this.setState({newName:this.props.name,elementState:hY}),this.handleChange=e=>this.setState({newName:e.target.value}),this.handleEditKey=e=>{"Escape"===e.key?this.setElementState(pY):"Enter"===e.key&&this.handleSubmit()},this.handleSubmit=()=>{const{newName:e,elementState:t}=this.state;t!==mY&&this.setState({elementState:mY},(()=>{this.props.setInstanceName(this.props.installationId,e.trim()).then((e=>{if("error"===e.status&&e.formErrors){const t=[];Object.values(e.formErrors).forEach((e=>{Object.values(e).forEach((e=>{t.push(e)}))})),t.length>0&&this.props.addErrorMessage(t.join(". "))}})).finally((()=>{this.setState({elementState:pY})}))}))},this.state={elementState:pY,newName:""}}render(){const{newName:e,elementState:t}=this.state,{name:n,baseClassName:s,additionalButtons:a}=this.props,i=t===pY,r=t===hY,o=t===mY;let l=n.trim();return o&&(l=e.trim()),l||(l=(0,L.jsx)(pp,{content:"instancesList.instanceCard.noNameWebsite"})),(0,L.jsxs)("div",{className:`${s}__large`,children:[(i||o)&&(0,L.jsx)("span",{"data-test-id":PN,children:l}),r&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Os,{className:`${s}-input`,value:e,onChange:this.handleChange,onKeyDown:this.handleEditKey,autoFocus:!0}),(0,L.jsxs)("div",{className:`${s}-buttons`,children:[(0,L.jsx)(ut,{onClick:this.handleSubmit,tooltip:(0,L.jsx)(pp,{content:"instancesList.instanceCard.saveWebsiteName"}),icon:"check-mark",ghost:!0}),(0,L.jsx)(ut,{onClick:()=>this.setElementState(pY),tooltip:(0,L.jsx)(pp,{content:"instancesList.instanceCard.cancelWebsiteName"}),icon:"cross-mark",ghost:!0})]})]}),i&&(0,L.jsx)("div",{className:`${s}-buttons`,children:(0,L.jsx)(ut,{onClick:this.handleOpenEdit,tooltip:(0,L.jsx)(pp,{content:"instancesList.instanceCard.editWebsiteName"}),icon:"pencil",ghost:!0})}),o&&(0,L.jsx)(wI,{className:`${s}__loader`}),a&&(0,L.jsx)("div",{className:`${s}-buttons`,children:a})]})}}gY.defaultProps={baseClassName:`${th}instance-name-form`};const fY=gY,bY=({updates:e,openUpdates:t})=>e.amountOfThemesWithUpdates>0?(0,L.jsx)(_e,{onClick:e=>gp(e,(()=>t("CRD-DASHBOARD_THEMES",rS))),icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.themesUpdates.hasUpdate"})}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.themesUpdates.upToDate"}),vY=({installation:e,openUpdates:t,baseClassName:n=""})=>{const{features:{updates:s},status:{alive:a}}=e;return a?(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.themesUpdates.title"}),className:n?`${n}-item`:void 0,children:(0,L.jsx)(bY,{updates:s,openUpdates:t})}):null},yY=({updates:e,openUpdates:t})=>e.amountOfPluginsWithUpdates>0?(0,L.jsx)(_e,{onClick:e=>gp(e,(()=>t("CRD-DASHBOARD_PLUGINS",iS))),icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.pluginsUpdates.hasUpdate"})}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.pluginsUpdates.upToDate"}),SY=({installation:e,openUpdates:t,baseClassName:n=""})=>{const{features:{updates:s},status:{alive:a}}=e;return a?(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.pluginsUpdates.title"}),className:n?`${n}-item`:void 0,children:(0,L.jsx)(yY,{updates:s,openUpdates:t})}):null},wY=({installation:e,openUpdates:t,baseClassName:n=""})=>{const{features:{updates:s},status:{alive:a},version:i}=e;if(!a||!i)return null;let r=i;return s.availableVersion&&(r=(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsxs)(_a,{className:`${n}-paragraph`,children:[i," ",(0,L.jsx)(Us,{onClick:e=>gp(e,(()=>t("CRD-DASHBOARD_WORDPRESS",aS))),children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.wordpressCoreVersion.hasUpdate",params:{updateVersion:s.availableVersion}})})]})})),(0,L.jsx)(vi,{"data-test-id":"current-version-label",title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.wordpressCoreVersion.title"}),className:n?`${n}-item`:void 0,children:r})},xY=({installation:e,onEnableInstances:t,onDisableInstances:n,openUpdates:s,isCollapsible:a,baseClassName:i=`${th}instance-info-section`})=>{const r=(0,R.useCallback)((()=>{const{errorMessage:t,status:{alive:n}}=e;return n||!t?null:(0,L.jsx)(Fe,{intent:"danger",children:t})}),[e]);return(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.section.updates"}),className:"wpt-instance-card-section",collapsible:a,children:[r(),(0,L.jsx)(wY,{installation:e,openUpdates:s,baseClassName:i}),(0,L.jsx)(SY,{installation:e,openUpdates:s,baseClassName:i}),(0,L.jsx)(vY,{installation:e,openUpdates:s,baseClassName:i}),(0,L.jsx)(MB,{installationId:e.id,enableInstances:t,disableInstances:n,baseClassName:i,restorePoint:e.features.restorePoint})]})};class AY extends R.Component{constructor(){super(...arguments),this.renderPlesk=e=>(0,L.jsx)(Us,{href:e,children:(0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.linkName"})}),this.renderCpanel=e=>{const{installation:{owner:t},goToUri:n}=this.props,s=Yv({link:e,inNewWindow:!1,goToUri:n,accountUsername:t.login});return(0,L.jsx)(Us,Object.assign({},s,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.linkName"})}))}}render(){const{installation:{features:{php:e},installationType:t}}=this.props;return xO(t)?this.renderPlesk(e.settingsUrl):wO(t)?this.renderCpanel(e.settingsUrl):null}}const _Y=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(AY),kY=({installation:e,onOpenSmartPhpUpdatesDrawer:t})=>{const{id:n,installationType:s,features:{updates:a,php:i}}=e,r=i.settingsUrl?(0,L.jsx)(_Y,{installation:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{php:Object.assign(Object.assign({},i),{settingsUrl:i.settingsUrl})})})}):null;let o=null;const l=a.php.available&&!i.unsupported?(0,L.jsx)(dB,{installationId:n,installationType:s,applicable:a.php.applicable,ref:e=>o=e,children:(0,L.jsx)(Us,{onClick:a.php.applicable?t:()=>o&&o.handleTogglePopover(),"data-test-id":"try-another-php-version-link",children:kN(a.php.taskStatus)?(0,L.jsx)(pp,{content:"smartPhpUpdate.result.checkResult"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.php.tryAnotherVersion"})})}):null;return(0,L.jsxs)(L.Fragment,{children:[r,r&&l?(0,L.jsxs)(L.Fragment,{children:[" ",(0,L.jsx)(pp,{content:"instancesList.issues.updatePhp.openSettingsOrTryAnother"})," "]}):null,l]})},jY=e=>{const{installation:{installationType:t,features:{php:n}},minimalSupportedPhpVersion:s,onOpenSmartPhpUpdatesDrawer:a}=e;return(0,L.jsxs)(L.Fragment,{children:[(()=>{const e=[];return n.unsupported?e.push((0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.unsupportedPhpText",params:{minimalSupportedPhpVersion:s}},"unsupportedPhpText")):n.eoled?e.push((0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.outdatedPhpText"},"outdatedPhpText")):e.push((0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.normalPhpText"},"normalPhpText")),kO(t)&&e.push((0,L.jsx)(pp,{content:"controllers.index.detail.phpPopover.remoteInstancesNote",unsafe:!0},"remoteInstancesNote")),e})(),(0,L.jsx)("br",{}),(0,L.jsx)(kY,{installation:e.installation,onOpenSmartPhpUpdatesDrawer:a})]})},CY=e=>{const{target:t,actionLinkAttributes:n,baseClassName:s=`${ah}`}=e;return(0,L.jsx)(Ks,{target:t,children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notEnabled.description"})}),(0,L.jsx)(Us,Object.assign({},n,{className:`${s}__action-enable-ssl`,"data-test-id":"instance-ssl-status-popover__action-enable-ssl",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notEnabled.action"})}))]}):(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeEnabled"})})},"ssl-disabled")},IY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:a=`${ah}`}=e;return(0,L.jsx)(Ks,{target:t,children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.description"})}),(0,L.jsx)(Us,Object.assign({},n,{className:`${a}__action-get-certificate ${a}_no-certificate`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,L.jsx)(_a,{children:(i=s,wO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):xO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.description"}))})},"certificate-not-installed");var i},TY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:a=`${ah}`}=e;return(0,L.jsx)(Ks,{target:t,children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.selfSigned.description"})}),(0,L.jsx)(Us,Object.assign({},n,{className:`${a}__action-get-certificate ${a}_self-signed`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,L.jsx)(_a,{children:(i=s,wO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):xO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.selfSigned.description"}))})},"self-signed");var i},DY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:a=`${ah}`}=e;return(0,L.jsx)(Ks,{target:t,children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateExpired.description"})}),(0,L.jsx)(Us,Object.assign({},n,{className:`${a}__action-get-certificate ${a}_expired`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,L.jsx)(_a,{children:(i=s,wO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):xO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateExpired.description"}))})},"expired");var i},PY=e=>{const{target:t,actionLinkAttributes:n,instanceType:s,baseClassName:a=`${ah}`}=e;return(0,L.jsx)(Ks,{target:t,children:n?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.description"})}),(0,L.jsx)(Us,Object.assign({},n,{className:`${a}__action-get-certificate ${a}_no-suitable`,"data-test-id":"instance-ssl-status-popover__action-get-certificate",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.buyOrInstallAction"})}))]}):(0,L.jsx)(_a,{children:(i=s,wO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledCpanel"}):xO(i)?(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.cannotBeInstalledPlesk"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.description"}))})},"not-suitable");var i},OY=e=>{const{target:t,actionLinkAttributes:n,baseClassName:s=`${ah}`}=e;return(0,L.jsxs)(Ks,{target:t,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.description"})}),n&&(0,L.jsx)(Us,Object.assign({},n,{className:`${s}__action-enable-redirect`,"data-test-id":"instance-ssl-status-popover__action-enable-redirect",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.action"})}))]},"redirect-disabled")},LY=Fc(null,(e=>({synchronizeSiteUrlSync:t=>e(e_(t))})))((e=>{const{target:t,installationId:n,synchronizeSiteUrlSync:s,baseClassName:a=`${ah}`}=e,[i,r]=(0,R.useState)(void 0);return(0,L.jsxs)(Ks,{target:t,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.description"})}),(0,L.jsx)(ut,{intent:"primary",onClick:()=>{r("loading"),s(n).then((()=>{r(void 0)}))},state:i,className:`${a}__action-sync-url`,"data-test-id":"instance-ssl-status-popover__action-sync-url",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.action"})})]},"ssl-mismatch-protocol")})),MY=({url:e,instanceType:t,cpanelAccountUsername:n,goToUri:s,onClick:a})=>null===e?null:wO(t)?Yv({link:e,inNewWindow:!1,goToUri:s,accountUsername:n,onClick:a}):{href:e,target:"_self",onClick:a},EY=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))((e=>{var t,n,s,a,i,r,o,l,c,u,d,p,h,m,g,f,b,v,y,S,w,x;const{installation:{domain:A,id:_,installationType:k,owner:j},goToUri:C,baseClassName:I=`${th}instance-card-ssl-status`}=e,T=J_();return(null===(t=null==A?void 0:A.ssl)||void 0===t?void 0:t.enabled)?(null===(a=null===(s=null==A?void 0:A.ssl)||void 0===s?void 0:s.certificate)||void 0===a?void 0:a.installed)?(null===(o=null===(r=null==A?void 0:A.ssl)||void 0===r?void 0:r.certificate)||void 0===o?void 0:o.selfSigned)?(0,L.jsx)(TY,{target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_self-signed",className:`${I} ${I}_self-signed`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.selfSigned"})})}),actionLinkAttributes:(null===(l=null==A?void 0:A.ssl)||void 0===l?void 0:l.buyOrInstallSslActionUrl)?MY({url:A.ssl.buyOrInstallSslActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C}):null,instanceType:k}):(null===(u=null===(c=null==A?void 0:A.ssl)||void 0===c?void 0:c.certificate)||void 0===u?void 0:u.actual)?(null===(h=null===(p=null==A?void 0:A.ssl)||void 0===p?void 0:p.certificate)||void 0===h?void 0:h.suitableForDomain)?(null===(g=null==A?void 0:A.ssl)||void 0===g?void 0:g.redirectToHttpsEnabled)?(null===(y=null==A?void 0:A.ssl)||void 0===y?void 0:y.redirectToHttpsEnabled)&&!(null===(S=null==A?void 0:A.ssl)||void 0===S?void 0:S.urlProtocolHttps)?(0,L.jsx)(LY,{installationId:_,target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_mismatch-protocol",className:`${I} ${I}_mismatch-protocol`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol"})})})}):(null===(x=null===(w=null==A?void 0:A.ssl)||void 0===w?void 0:w.certificate)||void 0===x?void 0:x.issuerName)?(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"lock-closed-check",intent:"success",size:"16"}),title:A.ssl.certificate.issuerName}):null:(0,L.jsx)(OY,{target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_redirect-disabled",className:`${I} ${I}_redirect-disabled`,children:null===(b=null===(f=null==A?void 0:A.ssl)||void 0===f?void 0:f.certificate)||void 0===b?void 0:b.issuerName})}),actionLinkAttributes:(null===(v=null==A?void 0:A.ssl)||void 0===v?void 0:v.enableRedirectToHttpsActionUrl)?MY({url:A.ssl.enableRedirectToHttpsActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C}):null}):(0,L.jsx)(PY,{target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_no-suitable",className:`${I} ${I}_no-suitable`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notSuitableForDomain"})})}),actionLinkAttributes:(null===(m=null==A?void 0:A.ssl)||void 0===m?void 0:m.buyOrInstallSslActionUrl)?MY({url:A.ssl.buyOrInstallSslActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C}):null,instanceType:k}):(0,L.jsx)(DY,{target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_expired",className:`${I} ${I}_expired`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateExpired"})})}),actionLinkAttributes:(null===(d=null==A?void 0:A.ssl)||void 0===d?void 0:d.buyOrInstallSslActionUrl)?MY({url:A.ssl.buyOrInstallSslActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C}):null,instanceType:k}):(0,L.jsx)(IY,{target:(0,L.jsx)(_e,{"data-test-id":"instance-card-ssl_no-certificate",className:`${I} ${I}_no-certificate`,icon:{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"},children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateNotInstalled"})}),actionLinkAttributes:(null===(i=null==A?void 0:A.ssl)||void 0===i?void 0:i.buyOrInstallSslActionUrl)?MY({url:A.ssl.buyOrInstallSslActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C,onClick:()=>T("CRD-NO_CERT-DOMAIN_X_509-CLICKED")}):null,instanceType:k}):(0,L.jsx)(CY,{target:(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}),title:(0,L.jsx)(Us,{"data-test-id":"instance-card-ssl_disabled",className:`${I} ${I}_disabled`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notEnabled"})})}),actionLinkAttributes:(null===(n=null==A?void 0:A.ssl)||void 0===n?void 0:n.enableSslActionUrl)?MY({url:A.ssl.enableSslActionUrl,instanceType:k,cpanelAccountUsername:null==j?void 0:j.login,goToUri:C}):null})})),RY=({installation:e,baseClassName:t=""})=>{const{domain:n,status:{alive:s}}=e;return(null==n?void 0:n.ssl)&&s?(0,L.jsx)(vi,{className:t?`${t}-item`:void 0,children:(0,L.jsx)(EY,{installation:e})}):null},UY=({installationId:e,vulnerability:t,onOpenSecurityDialog:n,baseClassName:s})=>{if(!t.available)return null;const a=t.vulnerable?"security-status-vulnerable":void 0,i=t.highestActiveVulnerabilityRiskRank,r=i===Vf||i===Hf?(0,L.jsx)(jM,{riskRank:i,filled:!0}):void 0,o=t.vulnerable?(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.mitigateVulnerabilities"}):(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.vulnerabilities"}),l=(0,L.jsx)(_e,{onClick:t=>gp(t,(()=>n(e,"CRD-DASHBOARD_VULNERABILITIES",wM))),"data-test-id":"instance-link-vulnerability","data-test-security":a,icon:r,children:o}),c=t.vulnerable?(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.vulnerableWordPressHint"}),children:l}):l;return(0,L.jsx)(vi,{className:s?`${s}-item`:void 0,children:c})},NY=({installationId:e,security:t,onOpenSecurityDialog:n,baseClassName:s})=>{let a,i,r;switch(t.status){case"secureFull":a=(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.secureFull"}),i="security-status-success",r=void 0;break;case"secureRecommended":a=(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.secureRecommended"}),i="security-status-warning",r=void 0;break;case"insecure":a=(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.insecure"}),i="security-status-danger",r={name:"exclamation-mark-circle-filled",intent:"danger",size:"16"};break;case"unknown":a=(0,L.jsx)(pp,{content:"instancesList.instanceCard.securityStatus.performCheckSecurity"}),i="security-status-inactive",r={name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"};break;default:throw new Error(`Unexpected status: ${t.status}`)}return(0,L.jsx)(vi,{className:s?`${s}-item`:void 0,children:(0,L.jsx)(_e,{onClick:()=>n(e,"CRD-DASHBOARD_SECURITY_MEASURES"),"data-test-id":"instance-link-security","data-test-security":i,icon:r,children:a})})},FY=({installation:e,onOpenSecurityDialog:t,baseClassName:n=""})=>{const{features:{security:s,vulnerability:a},id:i,status:{alive:r}}=e;return r&&s.available?(0,L.jsxs)(Ni,{children:[(0,L.jsx)(UY,{installationId:i,vulnerability:a,onOpenSecurityDialog:t,baseClassName:n}),(0,L.jsx)(NY,{installationId:i,security:s,onOpenSecurityDialog:t,baseClassName:n})]}):null};var BY=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n};const YY=e=>WN(e),HY=e=>{try{return new URL(e).host}catch(e){}return $N(String.prototype.trim.apply(e||"")).toLowerCase()},VY=e=>e,WY=e=>String.prototype.trim.apply(e||""),$Y=e=>{var{opened:t,loading:n,onCancel:s,onReset:a,domains:i,readonlyDomains:r,fileExtensions:o,readonlyFileExtensions:l,defaultValues:c}=e,u=BY(e,["opened","loading","onCancel","onReset","domains","readonlyDomains","fileExtensions","readonlyFileExtensions","defaultValues"]);const[d,p]=(0,R.useState)({domains:[],fileExtensions:[],readonlyFileExtensions:[],readonlyDomains:[]}),[h,m]=(0,R.useState)({}),[g,f]=(0,R.useState)(),b=cp();return(0,R.useEffect)((()=>{p({domains:i.filter((e=>!r.includes(e))).map(YY),readonlyDomains:r.map(YY),fileExtensions:o.filter((e=>!l.includes(e))).map(VY),readonlyFileExtensions:l.map(VY)}),m({}),f(void 0)}),[i,r,o,l,t]),n?(0,L.jsx)(cr,{className:u.baseClassName,title:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.title",params:{instanceUrl:u.installation.displayTitle}}),onClose:s,size:"sm",isOpen:t,"data-type":"hotlink-protection-options",children:(0,L.jsx)(wI,{})}):(0,L.jsxs)(cr,{className:u.baseClassName,title:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.title",params:{instanceUrl:u.installation.displayTitle}}),onClose:s,size:"sm",isOpen:t,form:{onSubmit:e=>{p(e);const t={domains:e.domains.map(HY).filter((e=>!!e)),fileExtensions:e.fileExtensions.map(WY).filter((e=>!!e)),readonlyDomains:r,readonlyFileExtensions:l};(e=>{const t={};let n=!1;return e.domains.forEach(((e,s)=>{var a;t.domains=null!==(a=t.domains)&&void 0!==a?a:[],(e=>/^(?!:\/\/)(?=.{1,255}$)((.{1,63}\.){1,127}(?![0-9]*$)[a-z0-9-]+\.?)$/.test(e))(e)||(t.domains[s]={domainName:b("controllers.index.detail.hotlinkProtection.options.domains.validations.invalidName")},n=!0)})),e.fileExtensions.forEach(((e,s)=>{var a;t.fileExtensions=null!==(a=t.fileExtensions)&&void 0!==a?a:[],(e=>/^[a-z0-9]+$/i.test(e))(e)||(t.fileExtensions[s]={fileExtension:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.validations.invalidName")},n=!0)})),e.readonlyFileExtensions.length+e.fileExtensions.length===0&&(t.fileExtensions=[{min:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.validations.min")}],n=!0),m(t),!n})(t)&&(f("submit"),u.onSubmit({domains:r.concat(t.domains),fileExtensions:l.concat(t.fileExtensions)}).finally((()=>f(void 0))))},additionalButtons:[(0,L.jsx)(ut,{onClick:()=>(f("submit"),p((e=>Object.assign(Object.assign({},e),{domains:c.domains.filter((e=>!r.includes(e))).map(YY),fileExtensions:c.fileExtensions.filter((e=>!l.includes(e))).map(VY)}))),a().finally((()=>f(void 0)))),disabled:"submit"===g,children:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.resetToDefault"})},"reset")],errors:h,values:d,applyButton:!1,state:g},"data-type":"hotlink-protection-options",children:[r.length>0&&(0,L.jsx)(Dr,{name:"readonlyDomains",label:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.domains.title"}),fullDescription:b("controllers.index.detail.hotlinkProtection.options.domains.description"),disabled:!0,multi:{max:r.length},size:"md"}),(0,L.jsx)(Dr,{name:"domains",multi:!0,label:0===r.length&&(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.domains.title"}),fullDescription:0===r.length&&b("controllers.index.detail.hotlinkProtection.options.domains.description"),size:"md",onRemoveRow:()=>m(Object.assign(Object.assign({},h),{domains:[]}))}),l.length>0&&(0,L.jsx)(Dr,{name:"readonlyFileExtensions",label:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.fileExtensions.title"}),fullDescription:b("controllers.index.detail.hotlinkProtection.options.fileExtensions.description"),disabled:!0,multi:{max:l.length},size:"md"}),(0,L.jsx)(Dr,{name:"fileExtensions",label:0===l.length&&(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.options.fileExtensions.title"}),fullDescription:0===l.length&&b("controllers.index.detail.hotlinkProtection.options.fileExtensions.description"),multi:!0,size:"md",onRemoveRow:()=>m(Object.assign(Object.assign({},h),{fileExtensions:[]}))})]})},zY=Fc(void 0,(e=>({instanceActions:(0,Cb.zH)({toggleHotlinkProtection:bx,getHotlinkProtectionSettingsMeta:vx,setHotlinkProtectionSettings:yx},e),addSuccessMessage:(0,Cb.zH)(nb,e)})))((e=>{var t,n,{installation:s,instanceActions:a,addSuccessMessage:i}=e,r=BY(e,["installation","instanceActions","addSuccessMessage"]);const[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(!1),[d,p]=(0,R.useState)(!1),[h,m]=(0,R.useState)({domains:[],fileExtensions:[],readonlyDomains:[],readonlyFileExtensions:[]}),[g,f]=(0,R.useState)({domains:[],fileExtensions:[]}),b=J_(),v=(0,R.useCallback)((e=>{b("CRD-HOTLINK_PROTECTION-TOGGLED",{state:e}),u(!0),a.toggleHotlinkProtection(s.id,e).then((e=>{i(e?(0,L.jsx)(pp,{content:"features.hotlinkProtection.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.hotlinkProtection.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{u(!1)}))}),[b,a,s.id,i]),y=(0,R.useCallback)((e=>a.setHotlinkProtectionSettings(s.id,e).then((e=>(l(!1),m((t=>Object.assign(Object.assign({},t),e))),e))).catch((()=>{}))),[s.id,a]),S=(0,R.useCallback)((()=>Promise.resolve()),[]);return(0,R.useEffect)((()=>{o&&!d&&(u(!0),a.getHotlinkProtectionSettingsMeta(s.id).finally((()=>u(!1))).then((e=>{m({domains:e.value.domains.value.map((e=>e.value)),fileExtensions:e.value.fileExtensions.value.map((e=>e.value)),readonlyDomains:e.value.domains.value.filter((e=>e.meta.persistent)).map((e=>e.value)),readonlyFileExtensions:[]}),f({domains:e.value.domains.meta.defaults,fileExtensions:e.value.fileExtensions.meta.defaults}),p(!0)})).catch((()=>l(!1))))}),[s.id,a,d,o]),(null===(t=s.features.hotlinkProtection)||void 0===t?void 0:t.available)&&null!==(null===(n=s.features.hotlinkProtection)||void 0===n?void 0:n.status)?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(Dl,{checked:s.features.hotlinkProtection.status,loading:c,onChange:v,"data-test-id":"hotlink-protection-switcher",className:`${r.baseClassName}-section-item-element`})," ",(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.title",className:`${r.baseClassName}-section-item-element`})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${r.baseClassName}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>b("CRD-HOTLINK_PROTECTION_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.hotlinkProtection.description"})})," ",(0,L.jsx)(ut,{className:`${r.baseClassName}-section-item-element`,icon:"sliders",onClick:()=>{b("CRD-HOTLINK_PROTECTION_SETTINGS-CLICKED"),l(!0)},disabled:c,ghost:!0,"data-test-id":"hotlink-protection-settings-opener"}),(0,L.jsx)($Y,{opened:o,loading:c,onCancel:()=>l(!1),onSubmit:y,onReset:S,domains:h.domains,fileExtensions:h.fileExtensions,readonlyDomains:h.readonlyDomains,readonlyFileExtensions:h.readonlyFileExtensions,defaultValues:g,baseClassName:r.baseClassName,installation:s})]}):null})),qY=e=>{const{subscriptionStatus:t}=e;let n;if(t===Mf.Terminated&&(n=(0,L.jsx)(He,{className:e.baseClassName,icon:"exclamation-mark-circle-filled",size:"sm",view:"light",intent:"danger",children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.labels.terminated"})})),t===Mf.Suspended&&(n=(0,L.jsx)(He,{className:e.baseClassName,icon:"triangle-exclamation-mark-filled",size:"sm",view:"light",intent:"warning",children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.labels.overdue"})})),n){const s=t===Mf.Terminated?"controllers.index.detail.virtualPatches.labels.terminated.hint":"controllers.index.detail.virtualPatches.labels.overdue.hint";return(0,L.jsxs)(Ks,{target:n,children:[(0,L.jsx)("div",{style:{marginBottom:10},children:(0,L.jsx)(pp,{content:s})}),(0,L.jsx)(ut,{onClick:()=>e.onOpenVirtualPatchingLicenseInfoDrawer(),intent:"primary",children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.labels.popover.button.text"})})]})}return null},GY=e=>{const{isOpen:t,isButtonLocked:n,handleClose:s,handleEnableProtection:a,target:i,baseClassName:r=`${th}virtual-patches-enable-popover`}=e;return(0,L.jsxs)(Ks,{visible:t,onClose:s,target:i,children:[(0,L.jsx)("div",{className:`${r}__content-item`,children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.consentForm.description"})}),(0,L.jsx)("div",{className:`${r}__content-item`,children:(0,L.jsx)(RL,{})}),(0,L.jsx)(ut,{id:dv,disabled:n,onClick:a,icon:"shield",size:"md",intent:"primary",children:(0,L.jsx)(pp,{content:"controllers.index.detail.virtualPatches.consentForm.submitButtonTitle"})})]})},KY=Fc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller}}),(e=>({instanceActions:(0,Cb.zH)({updateVirtualPatchesProtectionStatus:aw},e),displayErrorMessageFromMeta:(0,Cb.zH)(Zf,e)})))((({installation:e,instanceActions:t,displayErrorMessageFromMeta:n,hasActiveTasks:s,onOpenVirtualPatchingUpsellDialog:a,onOpenVirtualPatchingLicenseInfoDrawer:i,showVirtualPatchesUpsellWhenRestrictedViaPlans:r,isAdmin:o,baseClassName:l=`${th}instance-settings-section-virtual-patches`})=>{var c,u,d;const[p,h]=(0,R.useState)(!1),[m,g]=(0,R.useState)(!1),[f,b]=(0,R.useState)(!1),v=uL(e,r,o),y=!!(null===(c=e.features.virtualPatches)||void 0===c?void 0:c.status),S=J_(),w=cp(),x=PL(),A=()=>h(!1),_=(0,R.useCallback)((s=>{S("CRD-VIRTUAL_PATCHING-TOGGLED",{state:s}),g(!0),t.updateVirtualPatchesProtectionStatus({installationsIds:[e.id],status:s,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&n(e)})).finally((()=>{A(),g(!1)}))}),[n,e.id,t,S]);if(!x("manage-vulnerability-protection"))return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"permissions.noPermissionToManageVulnerabilityProtection"}),children:(0,L.jsx)(Dl,{className:`${l}-section-item-element`,checked:y,disabled:!0,"data-test-id":uv})})," ",(0,L.jsx)(pp,{className:`${l}-section-item-element`,content:"controllers.index.detail.virtualPatches.title"})]});const k=()=>b(!0);if(null===(null===(u=e.features.virtualPatches)||void 0===u?void 0:u.status))return null;const j=(e,t)=>{const n=(0,L.jsx)(Dl,{className:`${l}-section-item-element`,checked:y,loading:s||m,onChange:()=>{k(),e&&!y?t&&t():y?_(!1):h(!0)},"data-test-id":uv});return e?(0,L.jsxs)("span",{children:[n," ",e]}):y?(0,L.jsx)("span",{children:n}):(0,L.jsx)(GY,{isOpen:p,isButtonLocked:m,handleClose:A,handleEnableProtection:()=>_(!0),target:n})};return(0,L.jsxs)(R.Fragment,{children:[v?j():j((0,L.jsx)(_e,{"data-test-id":"virtual-patching-lock-icon",onClick:()=>{k(),a(Gv,"CRD-DASHBOARD")},icon:"lock-closed","aria-label":w("controllers.index.detail.virtualPatches.title")}),(()=>{a(Gv,"CRD-DASHBOARD")}))," ",(0,L.jsx)(pp,{className:`${l}-section-item-element`,content:"controllers.index.detail.virtualPatches.title"})," ",(0,L.jsx)(NO,{code:"virtual-patching-switcher",interacted:f,className:`${l}-section-item-element`})," ",!!(null===(d=e.features.virtualPatches.subscription)||void 0===d?void 0:d.status)&&(0,L.jsx)(qY,{baseClassName:`${l}-section-item-element`,subscriptionStatus:e.features.virtualPatches.subscription.status,onOpenVirtualPatchingLicenseInfoDrawer:i})," ",(0,L.jsx)(VL,{target:(0,L.jsx)(ut,{className:`${l}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>S("CRD-VIRTUAL_PATCHING_INFO-CLICKED")})})," ",e.features.virtualPatches.subscription&&(0,L.jsx)(ut,{className:`${l}-section-item-element`,icon:"sliders",onClick:()=>i(),ghost:!0})]})}));const QY=({credentials:e,onSubmit:t})=>{const[n,s]=(0,R.useState)(!1),[a,i]=(0,R.useState)({username:(null==e?void 0:e.username)||"",password:""}),[r,o]=(0,R.useState)(),[l,c]=(0,R.useState)(),u=(0,R.useCallback)((()=>a.username.length&&a.password.length&&!(null==l?void 0:l.username)&&!(null==l?void 0:l.password)),[a,l]),d=(0,R.useCallback)(((e,t)=>{i(Object.assign(Object.assign({},a),{[e]:t})),c(Object.assign(Object.assign({},l),{[e]:null}))}),[a,l]),p=(0,R.useCallback)((e=>u()?(o("submit"),t(e).catch((e=>(o(void 0),e.formErrors&&c(e.formErrors),Promise.reject(e))))):Promise.reject()),[u,t]);return(0,L.jsxs)(Hi,{onSubmit:p,onFieldChange:d,values:a,hideRequiredLegend:!0,submitButton:{id:hv,children:(null==e?void 0:e.username)?(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.update"}):(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.protect"}),disabled:!u()},state:r,errors:l,applyButton:!1,cancelButton:!1,children:[(null==e?void 0:e.username)&&(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.username"}),children:(0,L.jsx)("strong",{children:e.username})}),!(null==e?void 0:e.username)&&(0,L.jsx)(Dr,{name:"username",label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.username"}),size:"fill"}),(null==e?void 0:e.password)&&(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.currentPassword"}),children:[n?(0,L.jsx)("strong",{children:e.password}):e.password.replace(/./g,"*")," ",(0,L.jsx)(ut,{icon:n?"eye":"eye-closed",onClick:()=>s(!n),ghost:!0,style:{float:"right"}})]}),(0,L.jsx)(Ar,{name:"password",label:(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.newPassword"})})]})},JY=Fc(void 0,(e=>({instanceActions:(0,Cb.zH)({getPasswordProtection:kA,updatePasswordProtection:jA,togglePasswordProtectionStatus:CA},e),addSuccessMessage:(0,Cb.zH)(nb,e)})))((e=>{var t,{installation:n,addSuccessMessage:s,instanceActions:a}=e,i=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["installation","addSuccessMessage","instanceActions"]);const[r,o]=(0,R.useState)(!1),[l,c]=(0,R.useState)(!1),[u,d]=(0,R.useState)(!1),[p,h]=(0,R.useState)({username:"",password:""}),m=J_(),g=(0,R.useCallback)((e=>{m("CRD-DIRECTORY_PROTECTION-TOGGLED",{state:e}),e?o(!0):(c(!0),a.togglePasswordProtectionStatus(n.id,e).then((e=>(e||h({username:"",password:""}),s(e?(0,L.jsx)(pp,{content:"features.passwordProtection.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.passwordProtection.disabledSuccessfully"})),e))).catch((()=>{})).finally((()=>{c(!1)})))}),[m,a,n.id,s]),f=(0,R.useCallback)((e=>(c(!0),a.updatePasswordProtection(n.id,{credentials:e}).finally((()=>c(!1))).catch((e=>{var t;return Promise.reject((null===(t=null==e?void 0:e.formErrors)||void 0===t?void 0:t.credentials)&&{formErrors:e.formErrors.credentials}||e)})).then((e=>{if(e.status){if(!e.credentials)return Promise.reject();h(e.credentials)}return o(!1),s(e.status?(0,L.jsx)(pp,{content:"features.passwordProtection.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.passwordProtection.disabledSuccessfully"})),e.credentials})))),[n.id,s,a]);if((0,R.useEffect)((()=>{r&&!u&&(c(!0),a.getPasswordProtection(n.id).then((e=>{e.credentials&&h(e.credentials),d(!0)})).catch((()=>o(!1))).finally((()=>c(!1))))}),[n.id,a,u,r]),!(null===(t=n.features.passwordProtection)||void 0===t?void 0:t.available))return null;const b=(0,L.jsx)(ut,{onClick:()=>{m("CRD-DIRECTORY_PROTECTION_SETTINGS-CLICKED"),o(!0)},icon:"sliders","data-test-id":"password-protection-settings",className:`${i.baseClassName}-section-item-element`,state:l?"loading":void 0,ghost:!0});return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Dl,{checked:!!n.features.passwordProtection.status,loading:l,onChange:g,"data-test-id":"password-protection-toggle",className:`${i.baseClassName}-section-item-element`})," ",(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.title",className:`${i.baseClassName}-section-item-element`})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${i.baseClassName}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>m("CRD-DIRECTORY_PROTECTION_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"list-ui.instances.forms.password-protection.fullDescription"})})," ",u&&(0,L.jsx)(Ks,{visible:r,onClose:()=>o(!1),target:b,children:(0,L.jsx)(QY,{credentials:p,onSubmit:f})}),!u&&b]})}));class XY extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:e,getWpCronTakeoverMeta:t,translate:n}=this.props,s=n("features.wpCronTakeover.windowPreloadMessage");return(0,L.jsx)(ut,{onClick:n=>gp(n,(()=>{const n=window.open("","_blank");n&&(n.document.body.innerText=s),t(e.id).then((e=>{var t,s,a;const i=null!==(a=null===(s=null===(t=e.value.status)||void 0===t?void 0:t.meta)||void 0===s?void 0:s.managementUri)&&void 0!==a?a:null;i&&n?n.location.href=i:null==n||n.close()})).catch((()=>null==n?void 0:n.close()))})),icon:"sliders",ghost:!0})},this.renderCpanel=()=>{const{installation:e,installation:{owner:t},goToUri:n,getWpCronTakeoverMeta:s,translate:a}=this.props,i=a("features.wpCronTakeover.windowPreloadMessage");return(0,L.jsx)(ut,{onClick:a=>gp(a,(()=>{const a=Wv()?null:window.open("","_blank");a&&(a.document.body.innerText=i),s(e.id).then((e=>{var s,i,r;const o=null!==(r=null===(i=null===(s=e.value.status)||void 0===s?void 0:s.meta)||void 0===i?void 0:i.managementUri)&&void 0!==r?r:null;if(!o)return void(null==a||a.close());const{href:l,onClick:c}=Yv({link:o,inNewWindow:!1,goToUri:n,accountUsername:t.login});l&&a?a.location.href=l:(null==a||a.close(),null==c||c({preventDefault:()=>{},stopPropagation:()=>{}}))})).catch((()=>null==a?void 0:a.close()))})),icon:"sliders",ghost:!0})}}render(){const{installation:{installationType:e,owner:t}}=this.props;return xO(e)?this.renderPlesk():wO(e)&&(null==t?void 0:t.login)?this.renderCpanel():null}}const ZY=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n)),getWpCronTakeoverMeta:t=>e(fx(t))})))(Nv(XY)),eH=Fc(void 0,(e=>({instanceActions:(0,Cb.zH)({toggleWpCronTakeoverStatus:gx},e),addSuccessMessage:(0,Cb.zH)(nb,e)})))((({installation:e,addSuccessMessage:t,instanceActions:n,baseClassName:s=`${th}wp-cron`})=>{const[a,i]=(0,R.useState)(!1),r=J_(),o=(0,R.useCallback)((s=>{r("CRD-SITE_WP_CRON-TOGGLED",{state:s}),i(!0),n.toggleWpCronTakeoverStatus(e.id,s).finally((()=>i(!1))).then((e=>(t(e?(0,L.jsx)(pp,{content:"features.wpCronTakeover.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.wpCronTakeover.disabledSuccessfully"})),e))).catch((()=>{}))}),[r,n,e.id,t]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Dl,{checked:!!e.features.wpCronTakeover.status,loading:a,onChange:o,"data-test-id":"reschedule-wp-cron-toggle",className:`${s}-section-item-element`})," ",(0,L.jsx)(pp,{content:"controllers.index.detail.disableWpCron.title",className:`${s}-section-item-element`})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{icon:"question-mark-circle",className:`${s}-section-item-element`,ghost:!0,onClick:()=>r("CRD-SITE_WP_CRON_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.disableWpCron.description"})})," ",e.features.wpCronTakeover.status&&(0,L.jsx)(ZY,{installation:e})]})})),tH=({installation:e,onOpenSecurityDialog:t,onOpenVirtualPatchingUpsellDialog:n,onOpenVirtualPatchingLicenseInfoDrawer:s,isCollapsible:a,baseClassName:i=`${th}instance-security-section`})=>{const r=vc((e=>e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans)),o=vc((e=>e.app.options.isAdmin&&!e.app.options.isReseller)),{features:l,features:{virtualPatches:{restrictions:c}}}=e,u=!dL(c,o,r);return(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.section.security"}),className:"wpt-instance-card-security-section",collapsible:a,children:[(0,L.jsx)(RY,{installation:e,baseClassName:i}),(0,L.jsx)(FY,{installation:e,onOpenSecurityDialog:t,baseClassName:i}),u&&(0,L.jsx)(vi,{className:i?`${i}-item`:void 0,children:(0,L.jsx)(KY,{baseClassName:i,installation:e,onOpenVirtualPatchingUpsellDialog:n,onOpenVirtualPatchingLicenseInfoDrawer:s})}),l.hotlinkProtection.available&&(0,L.jsx)(vi,{className:i?`${i}-item`:void 0,children:(0,L.jsx)(zY,{installation:e,baseClassName:`${i}`})})]})},nH=({installation:e,onOpenSmartPhpUpdates:t,baseClassName:n=""})=>{var s;const a=J_(),i=vc((e=>e.app.options.minimalSupportedPhpVersion)),{features:{php:r,updates:o},status:{alive:l}}=e,c=R.useMemo((()=>kN(o.php.taskStatus)?(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.smartPhpUpdateConflict.card"}),children:(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"})}):r.eoled?(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning",size:"16"}):null),[o.php.taskStatus,r.eoled]);return l&&(null===(s=r.handler)||void 0===s?void 0:s.version)?(0,L.jsx)(vi,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.php.title"}),className:n?`${n}-item`:void 0,children:(0,L.jsx)(Wr,{icon:c,className:`${n}-php`,title:(0,L.jsxs)(_a,{className:`${n}-paragraph`,children:[(0,L.jsx)(da,{"data-test-id":"current-php-version",children:r.handler.version})," ",(0,L.jsx)(da,{className:`${n}-php-details`,children:(0,L.jsx)(Ks,{target:(0,L.jsx)(Us,{"data-test-id":"php-details",onClick:()=>{a("CRD-DOMAIN_PHP-CLICKED")},children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.php.details"})}),children:(0,L.jsx)(jY,{installation:e,minimalSupportedPhpVersion:i,onOpenSmartPhpUpdatesDrawer:t})})})]})})}):null},sH="title",aH="header",iH="subheader";class rH extends R.Component{constructor(e){super(e),this.fetchMaintenanceSettings=()=>{this.props.instanceActions.getMaintenanceSettings(this.props.installation.id).then((e=>{this.setMaintenanceSettingsData(e)})).catch((()=>{this.props.onClose()}))},this.setMaintenanceSettingsData=e=>{const{fullMode:t,timer:n,texts:s,socialNetworks:a,defaultSocialNetworks:i,templateFilePath:r}=e,o={facebook:a.facebook,instagram:a.instagram,twitter:a.twitter},l={facebook:i.facebook,instagram:i.instagram,twitter:i.twitter},c={fullMode:t,isTimerEnabled:n.enabled,title:s.title,header:s.header,subheader:s.subheader,days:n.days,hours:n.hours,minutes:n.minutes,socialNetworks:o,defaultSocialNetworks:l,templateFilePath:r,isLoaded:!0};this.setState(c)},this.isFormProcessing=()=>this.state.isProcessing||this.state.isPreviewProcessing,this.onFullModeEnable=e=>this.setState({fullMode:e}),this.onTimerEnable=e=>this.setState({isTimerEnabled:e}),this.handleFormFieldChange=(e,t)=>this.setState((n=>Object.assign(Object.assign({},n),{[e]:t}))),this.handleSocialLinksFieldChange=(e,t)=>this.setState((n=>({socialNetworks:Object.assign(Object.assign({},n.socialNetworks),{[e]:t})}))),this.handleSubmit=e=>{if(this.state.isProcessing)return;const{onClose:t,installation:{id:n,title:s},instanceActions:{setMaintenanceFullMode:a,updateMaintenanceSettings:i},addSuccessMessage:r}=this.props;this.setState({isProcessing:!0}),this.state.errors&&this.setState({errors:void 0}),i(n,e).then((e=>{a(n,e.fullMode),t(),r((0,L.jsx)(pp,{content:"controllers.index.maintenance-mode.updateSuccess",params:{name:s}}))})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setState({errors:e.response.data.formErrors})})).finally((()=>{this.setState({isProcessing:!1})}))},this.getSocialNetworks=()=>{const e=[];return Object.keys(this.state.socialNetworks).forEach((t=>{e.push((0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:`forms.maintenance-mode.socialNetworks.${t}`}),name:`socialNetworks[${t}]`,onChange:e=>this.handleSocialLinksFieldChange(t,e),size:"fill"},`maintenance-socialNetworks-${t}`))})),e},this.handleRestoreValues=()=>{if(this.state.isTemplateRestoring)return;const{installation:{id:e},instanceActions:{restoreMaintenanceTemplate:t},addSuccessMessage:n}=this.props;this.setState({isTemplateRestoring:!0}),t(e).then((()=>{n((0,L.jsx)(pp,{content:"controllers.index.restore-maintenance-template.success"}))})).catch((()=>{})).finally((()=>this.setState({isTemplateRestoring:!1})))},this.handleDeleteSocialNetworks=()=>{this.setState((e=>{const t=Object.assign({},e.socialNetworks);return Object.keys(t).forEach((e=>{t[e]=""})),{socialNetworks:t}}))},this.handleRestoreSocialNetworks=()=>{const{defaultSocialNetworks:e}=this.state,t={};Object.keys(e).forEach((n=>{t[n]=e[n]})),this.setState({socialNetworks:Object.assign({},t)})},this.handleCustomizeValues=()=>{const{installation:e,instanceActions:{getMaintenanceTemplateCustomizationUrl:t}}=this.props;this.setState({isProcessing:!0},(()=>{t(e.id,e.owner.login).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1})}))}))},this.handlePreview=()=>{const{installation:{id:e},instanceActions:{createMaintenancePreview:t}}=this.props,n=this.getFormValues(),{fullMode:s}=n,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(n,["fullMode"]);this.setState({isPreviewProcessing:!0},(()=>{t(e,a).catch((()=>{})).finally((()=>{this.setState({isPreviewProcessing:!1})}))}))},this.getFormValues=()=>({texts:{title:this.state.title,header:this.state.header,subheader:this.state.subheader},timer:{enabled:this.state.isTimerEnabled,days:this.state.days,hours:this.state.hours,minutes:this.state.minutes},socialNetworks:{facebook:this.state.socialNetworks.facebook,instagram:this.state.socialNetworks.instagram,twitter:this.state.socialNetworks.twitter},fullMode:this.state.fullMode}),this.state={isLoaded:!1,isProcessing:!1,isPreviewProcessing:!1,isTemplateRestoring:!1,fullMode:!1,errors:void 0,isTimerEnabled:!1,title:"",header:"",subheader:"",days:0,hours:0,minutes:0,socialNetworks:{},defaultSocialNetworks:{},templateFilePath:null}}componentDidUpdate(e){this.props.isOpen!==e.isOpen&&this.props.isOpen&&this.fetchMaintenanceSettings()}getIntValue(e,t){if(!e)return 0;const n=parseInt(e.toString());return isNaN(n)?t:n}renderFullModeSection(){return(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.fullMode.description"})}),(0,L.jsx)(Li,{name:"fullMode",label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.fullMode.enable"}),children:(0,L.jsx)(Dl,{"data-test-id":"wpt-maintenance-fullMode-switch",checked:this.state.fullMode,onChange:e=>{this.onFullModeEnable(e)}})})]})}renderTemplateSection(){const{installation:{installationType:e}}=this.props;let t;return t=kO(e)?this.renderRemoteTemplateSectionContent("forms.maintenance-mode.template.remoteDescription"):CO(e)?this.renderRemoteTemplateSectionContent("forms.maintenance-mode.template.remoteAgentDescription"):this.renderLocalTemplateSectionContent(),(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.legend"}),children:t})}renderLocalTemplateSectionContent(){const{installation:{features:{fileManager:e}}}=this.props;return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.localDescription"})}),(0,L.jsxs)(vi,{title:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.fieldTitle"}),actions:!0,children:[e.available&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(ut,{onClick:this.handleCustomizeValues,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.customizeButtonTitle"})})," "]}),(0,L.jsx)(ut,{onClick:this.handleRestoreValues,state:this.state.isTemplateRestoring?"loading":void 0,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.restoreButtonTitle"})})]})]})}renderRemoteTemplateSectionContent(e){return(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:e,params:{templateFilePath:this.state.templateFilePath,server:this.props.installation.server}})}),(0,L.jsx)(vi,{actions:!0,children:(0,L.jsx)(ut,{onClick:this.handleRestoreValues,state:this.state.isTemplateRestoring?"loading":void 0,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.template.restoreButtonTitle"})})})]})}renderTextSection(){return(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"forms.maintenance-mode.texts.legend"}),vertical:!0,children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.texts.description"})}),(0,L.jsx)(Dr,{size:"fill",label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.texts.title"}),name:`texts[${sH}]`,onChange:e=>this.handleFormFieldChange(sH,e)}),(0,L.jsx)(Dr,{multiline:!0,size:"fill",name:`texts[${aH}]`,label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.texts.header"}),onChange:e=>this.handleFormFieldChange(aH,e),disabled:this.isFormProcessing()}),(0,L.jsx)(Dr,{multiline:!0,size:"fill",name:`texts[${iH}]`,label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.texts.subheader"}),onChange:e=>this.handleFormFieldChange(iH,e),disabled:this.isFormProcessing()})]})}renderTimerSection(){const{baseClassName:e}=this.props;return(0,L.jsxs)(Ni,{vertical:!0,children:[(0,L.jsx)(Dl,{"data-test-id":"wpt-maintenance-timer-switch",checked:this.state.isTimerEnabled,onChange:e=>{this.onTimerEnable(e)},children:(0,L.jsx)(Ns,{level:3,children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.timer.enabled"})})}),(0,L.jsx)(vi,{children:(0,L.jsxs)(ga,{sm:3,gap:"sm",className:`${e}-timers-grid`,children:[(0,L.jsx)(fa,{children:(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.timer.days"}),children:(0,L.jsx)(Rs,{"data-test-id":"wpt-maintenance-timer-days",min:0,max:99,onChange:e=>this.handleFormFieldChange("days",this.getIntValue(e,this.state.days)),disabled:!this.state.isTimerEnabled,value:this.state.days})})}),(0,L.jsx)(fa,{children:(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.timer.hours"}),children:(0,L.jsx)(Rs,{"data-test-id":"wpt-maintenance-timer-hours",min:0,max:23,onChange:e=>this.handleFormFieldChange("hours",this.getIntValue(e,this.state.hours)),disabled:!this.state.isTimerEnabled,value:this.state.hours})})}),(0,L.jsx)(fa,{children:(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.maintenance-mode.timer.minutes"}),children:(0,L.jsx)(Rs,{"data-test-id":"wpt-maintenance-timer-minutes",min:0,max:59,onChange:e=>this.handleFormFieldChange("minutes",this.getIntValue(e,this.state.minutes)),disabled:!this.state.isTimerEnabled,value:this.state.minutes})})})]})})]})}renderSocialLinksSection(){const{baseClassName:e}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ni,{className:`${e}-social-links-section-1`,title:(0,L.jsx)(pp,{content:"forms.maintenance-mode.socialNetworks.legend"}),children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.socialNetworks.descriptionNoPlaceholders"})}),(0,L.jsxs)(vi,{className:`${e}-social-links-section-1-last-item`,title:(0,L.jsx)(pp,{content:"forms.maintenance-mode.socialNetworks.NetworksFieldTitle"}),actions:!0,children:[(0,L.jsx)(ut,{onClick:this.handleDeleteSocialNetworks,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.socialNetworks.removeButtonTitle"})})," ",(0,L.jsx)(ut,{onClick:this.handleRestoreSocialNetworks,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.socialNetworks.restoreButtonTitle"})})]})]}),(0,L.jsx)(Ni,{vertical:!0,children:this.getSocialNetworks()})]})}renderPreviewButton(){return(0,L.jsx)(ut,{"data-test-id":"wpt-maintenance-button-preview",onClick:this.handlePreview,state:this.state.isPreviewProcessing?"loading":void 0,disabled:this.isFormProcessing(),children:(0,L.jsx)(pp,{content:"forms.maintenance-mode.preview"})},"maintenancePreviewButton")}render(){const{installation:{displayTitle:e},isOpen:t,onClose:n}=this.props,{isLoaded:s}=this.state;return(0,L.jsxs)(cr,{size:"sm",title:e,subtitle:(0,L.jsx)(pp,{content:"forms.maintenance-mode.maintenanceMode"}),isOpen:t,onClose:n,"data-type":"maintenance-mode",form:s?{onSubmit:this.handleSubmit,values:this.getFormValues(),state:this.isFormProcessing()?"submit":void 0,errors:this.state.errors,applyButton:!1,cancelButton:!1,submitButton:{id:hv,state:this.state.isProcessing?"loading":void 0},additionalButtons:[this.renderPreviewButton()]}:void 0,children:[s&&(0,L.jsxs)(L.Fragment,{children:[this.renderFullModeSection(),this.renderTemplateSection(),this.renderTextSection(),this.renderTimerSection(),this.renderSocialLinksSection()]}),!s&&(0,L.jsx)(Qn,{})]})}}rH.defaultProps={baseClassName:`${th}maintenance-mode-drawer`};const oH=Fc(null,(e=>({instanceActions:(0,Cb.zH)({createMaintenancePreview:cx,getMaintenanceTemplateCustomizationUrl:dx,setMaintenanceFullMode:ux,updateMaintenanceSettings:Kx,restoreMaintenanceTemplate:Qx,getMaintenanceSettings:i_},e),addSuccessMessage:t=>e(nb(t))})))(rH),lH=Fc(null,(e=>({updateMaintenanceStatus:(0,Cb.zH)(wx,e),addSuccessMessage:(0,Cb.zH)(nb,e)})))((e=>{const{installation:t,installation:{id:n,features:{maintenance:s}},updateMaintenanceStatus:a,addSuccessMessage:i,baseClassName:r=`${th}maintenance-mode-control`}=e,[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(!1),d=J_();return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Dl,{checked:!!s.status,loading:o,onChange:()=>{l(!0);const e=!0===(null==s?void 0:s.status);d("CRD-SITE_MAINTENANCE_MODE-TOGGLED",{state:!e}),a(n,!e,e).then((e=>{i((0,L.jsx)(pp,{content:e.status?"controllers.index.toggle-maintenance.enabledSuccessfully":"controllers.index.toggle-maintenance.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{l(!1)}))},"data-test-id":"maintenance-mode-toggle",className:`${r}-section-item-element`})," ",(0,L.jsx)(pp,{content:"controllers.index.detail.fieldMaintenance",className:`${r}-section-item-element`})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${r}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>d("CRD-SITE_MAINTENANCE_MODE_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.hintMaintenanceText"})})," ",(0,L.jsx)(ut,{className:`${r}-section-item-element`,icon:"sliders",onClick:e=>gp(e,(()=>{d("CRD-SITE_MAINTENANCE_MODE_SETTINGS-CLICKED"),u(!0)})),"data-test-id":"maintenance-mode-settings",ghost:!0})]}),(0,L.jsx)(oH,{installation:t,isOpen:c,onClose:()=>u(!1)})]})})),cH=Fc((e=>({purchaseDeluxeUrl:e.app.urls.purchaseDeluxeUrl,smartUpdateFeatureUpgradeLink:e.app.urls.featuresBuyLinks[Wp]})),(e=>({appActions:(0,Cb.zH)({disableSmartUpdatePromoForInstances:ub},e)})))((e=>{const{baseClassName:t=`${th}smart-update-trial-popover`,appActions:{disableSmartUpdatePromoForInstances:n},purchaseDeluxeUrl:s,smartUpdateFeatureUpgradeLink:a}=e,[i,r]=(0,R.useState)(!1);return(0,L.jsxs)(Ks,{visible:i,onClose:()=>{r(!1),Mv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON")},target:(0,L.jsx)(He,{intent:"warning",className:`${t}__smart-update__promo-label`,onClick:()=>{r(!0),Mv("SHOW_INSTANCES_SMART_UPDATE_PROMO_POPOVER")},tabIndex:0,children:(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdatePromoLabel"})}),className:`${t}__smart-update__promo-popover`,children:[(0,L.jsx)(pp,{content:"instancesSmartUpdatePromoPopover.text"}),(0,L.jsxs)("div",{className:`${t}__smart-update__promo-popover__button-group`,children:[(0,L.jsx)(ut,{component:"a",href:Ev(a),target:"_blank",onClick:()=>{r(!0),Mv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_TRY_NOW_BUTTON",{target:s})},className:`${t}__smart-update__promo-popover__try-now-button`,intent:"primary",children:(0,L.jsx)(pp,{content:"instancesSmartUpdatePromoPopover.tryNowButton"})}),(0,L.jsx)(_e,{onClick:()=>{r(!1),n(),Mv("CLICK_INSTANCES_SMART_UPDATE_PROMO_POPOVER_DO_NOT_SHOW_AGAIN_BUTTON")},className:`${t}__smart-update__promo-popover__do-not-show-again-link`,children:(0,L.jsx)(pp,{content:"instancesSmartUpdatePromoPopover.doNotShowAgainLink"})})]})]})}));class uH extends R.Component{constructor(e){super(e),this.smartUpdateUnpaidMarkRef=null,this.updateIsUpdating=()=>{var e,t;const n=null===(t=null===(e=this.props.installation.features.updates)||void 0===e?void 0:e.smart)||void 0===t?void 0:t.taskStatus;n===_N||kN(n)?this.setState({isUpdating:!1}):this.setState({isUpdating:!0})},this.isSmartUpdatesPreviewAvailable=(e,t)=>e&&!!t&&kN(t),this.handleToggleSmartUpdate=e=>{const{installation:{id:t,features:{updates:n}},instancesActions:{setSmartUpdatesStatus:s}}=this.props,{isSmartUpdateSwitchLoading:a}=this.state;a||(n.smart.status||n.smart.applicable?(this.context("CRD-SMART_UPDATES-TOGGLED"),this.setState({isSmartUpdateSwitchLoading:!0}),s(t,e).then((e=>{this.props.addSuccessMessage(e.status?(0,L.jsx)(pp,{content:"features.updates.smart.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.updates.smart.disabledSuccessfully"}))})).catch((()=>{})).finally((()=>{this.setState({isSmartUpdateSwitchLoading:!1})}))):this.smartUpdateUnpaidMarkRef&&this.smartUpdateUnpaidMarkRef.handleTogglePopover())},this.showForecastAvailable=()=>{const{baseClassName:e,onOpenUpdates:t,installation:{features:{updates:n}}}=this.props,s=n.smart.taskStatus&&!!n.smart.initiatedByAutoUpdater;return(0,L.jsx)(Xe,{title:s?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateStartedByAutoUpdaterConflictWarning"}):(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateConflictWarning"}),children:(0,L.jsx)(_e,{className:`${e}-section-item-element`,icon:(0,L.jsx)(xe,{size:"16",name:"signal-light",intent:"success"}),onClick:()=>t("CRD-SMART_UPDATES_RESULT"),children:(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateTestsDone.title"})})})},this.state={isSmartUpdateSwitchLoading:!1,isUpdating:!1}}componentDidMount(){this.updateIsUpdating()}componentDidUpdate(e){var t,n,s,a;(null===(n=null===(t=this.props.installation.features.updates)||void 0===t?void 0:t.smart)||void 0===n?void 0:n.taskStatus)!==(null===(a=null===(s=e.installation.features.updates)||void 0===s?void 0:s.smart)||void 0===a?void 0:a.taskStatus)&&this.updateIsUpdating()}render(){var e;const{installation:{id:t,installationType:n,status:s,features:{updates:a}},baseClassName:i,showSmartUpdatePromo:r,isSmartUpdatePromoAvailableForInstancesScreen:o}=this.props,{isSmartUpdateSwitchLoading:l,isUpdating:c}=this.state,u=s.multisite,d=!!a.smart.status,p=a.smart.taskStatus,h=this.isSmartUpdatesPreviewAvailable(d,p),m=d?c||h:c||u;let g=(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.description"});return u?g=(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.smartUpdateIsNotAvailableForMultisiteDescription"}):(c||h)&&(g=(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.inProgressDescription"})),(0,L.jsxs)(L.Fragment,{children:[c?(0,L.jsx)(xe,{name:"refresh",animation:"spin",size:"16",className:`${i}-section-item-element`}):(0,L.jsx)(Dl,{checked:d,disabled:m,loading:l,onChange:this.handleToggleSmartUpdate,"data-test-id":"smart-update-toggle",className:`${i}-section-item-element`})," ",u?(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.title",className:`${i}-section-item-element`}):(0,L.jsx)(dB,{uatAction:Gv,className:`${i}-section-item-element`,ref:e=>this.smartUpdateUnpaidMarkRef=e,installationId:t,installationType:n,applicable:!0===(null===(e=null==a?void 0:a.smart)||void 0===e?void 0:e.applicable),eventName:"CRD-SMART_UPDATES_PURCHASE-CLICKED",children:(0,L.jsx)(pp,{content:"controllers.index.detail.smartUpdateSwitchesPanelItem.title"})})," ",h&&this.showForecastAvailable(),r&&o&&(0,L.jsx)(cH,{}),(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${i}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>this.context("CRD-SMART_UPDATES_INFO-CLICKED")}),children:g})]})}}uH.defaultProps={baseClassName:`${th}smart-updates-control`},uH.contextType=Q_;const dH=Fc((e=>{const{showSmartUpdatePromo:t,isSmartUpdatePromoAvailableForInstancesScreen:n}=e.app.options;return{showSmartUpdatePromo:t,isSmartUpdatePromoAvailableForInstancesScreen:n}}),(e=>({instancesActions:(0,Cb.zH)({setSmartUpdatesStatus:Ax},e),addSuccessMessage:(0,Cb.zH)(nb,e)})))(uH);class pH extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>(0,L.jsx)(_e,{href:this.props.wpContentUrl,children:(0,L.jsx)(pp,{content:"forms.debugSettings.wpContentDirName"})}),this.renderCpanel=()=>{const{goToUri:e,installation:{owner:t},wpContentUrl:n}=this.props;if(!n)return null;const s=Yv({link:n,inNewWindow:!1,goToUri:e,accountUsername:t.login});return(0,L.jsx)(_e,Object.assign({},s,{children:(0,L.jsx)(pp,{content:"forms.debugSettings.wpContentDirName"})}))}}render(){const{installation:{features:{fileManager:e},installationType:t},wpContentUrl:n}=this.props,s=(0,L.jsx)(pp,{content:"forms.debugSettings.wpContentDirName"});return e.available&&n?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():s:s}}const hH=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(pH);class mH extends R.Component{constructor(e){super(e),this.handleChangeWpDebug=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugLog:e,wpDebugDisplay:e,wpDebug:e})})))},this.handleChangeWpDebugLog=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugLog:e})}))),e?this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebug:e})}))):this.state.values.wpDebugDisplay||this.setState((e=>({values:Object.assign(Object.assign({},e.values),{wpDebug:!1})})))},this.handleChangeWpDebugDisplay=e=>{this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebugDisplay:e})}))),e?this.setState((t=>({values:Object.assign(Object.assign({},t.values),{wpDebug:e})}))):this.state.values.wpDebugLog||this.setState((e=>({values:Object.assign(Object.assign({},e.values),{wpDebug:!1})})))},this.handleSubmit=e=>{const{onSetDebugSettings:t,onClose:n,isProcessing:s}=this.props;s||t(e).then((()=>n()))},this.renderForm=()=>{const{values:e,debugLogUrl:t,wpContentUrl:n,isLoading:s}=this.state,{installation:a,baseClassName:i}=this.props;return s?(0,L.jsx)(Qn,{}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugLabel"}),children:(0,L.jsx)(Tt,{name:"wpDebug",onChange:this.handleChangeWpDebug,checked:e.wpDebug,children:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugDescription"})})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugLogLabel"}),children:(0,L.jsx)(Tt,{name:"wpDebugLog",className:`${i}__wp-debug-log`,onChange:this.handleChangeWpDebugLog,checked:e.wpDebugLog,children:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugLogDescription",params:{debugLogFile:t?(0,L.jsx)(Us,{href:t,children:(0,L.jsx)(pp,{content:"forms.debugSettings.debugLogFilename"})}):(0,L.jsx)(pp,{content:"forms.debugSettings.debugLogFilename"}),wpContentDir:(0,L.jsx)(hH,{installation:a,wpContentUrl:n})}})})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugDisplayLabel"}),children:(0,L.jsx)(Tt,{name:"wpDebugDisplay",className:`${i}__wp-debug-display`,onChange:this.handleChangeWpDebugDisplay,checked:e.wpDebugDisplay,children:(0,L.jsx)(pp,{content:"forms.debugSettings.wpDebugDisplayDescription"})})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.debugSettings.scriptDebugLabel"}),children:(0,L.jsx)(Tt,{name:"scriptDebug",onChange:e=>this.setState((t=>({values:Object.assign(Object.assign({},t.values),{scriptDebug:e})}))),checked:e.scriptDebug,children:(0,L.jsx)(pp,{content:"forms.debugSettings.scriptDebugDescription"})})}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"forms.debugSettings.saveQueriesLabel"}),children:(0,L.jsx)(Tt,{name:"saveQueries",onChange:e=>this.setState((t=>({values:Object.assign(Object.assign({},t.values),{saveQueries:e})}))),checked:e.saveQueries,children:(0,L.jsx)(pp,{content:"forms.debugSettings.saveQueriesDescription"})})})]})},this.state={values:{wpDebug:!1,wpDebugLog:!1,wpDebugDisplay:!1,scriptDebug:!1,saveQueries:!1},debugLogUrl:null,wpContentUrl:null,isLoading:!1}}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.handleLoadData()}handleLoadData(){const{installation:{id:e},installationActions:{getWordPressDebugSettings:t}}=this.props;this.setState({isLoading:!0}),t(e).then((e=>{this.setState({values:{wpDebug:e.value.wpDebug.value,wpDebugLog:e.value.wpDebugLog.value,wpDebugDisplay:e.value.wpDebugDisplay.value,scriptDebug:e.value.scriptDebug.value,saveQueries:e.value.saveQueries.value},debugLogUrl:e.meta.debugLogUrl,wpContentUrl:e.meta.wpContentUrl})})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{values:e}=this.state,{installation:{displayTitle:t},debugCodexUrl:n,onClose:s,isOpen:a,isProcessing:i}=this.props;return(0,L.jsxs)(cr,{title:t,subtitle:(0,L.jsx)(pp,{content:"controllers.index.debugSettings.formSubtitle"}),isOpen:a,onClose:s,"data-type":"debug-settings",form:{onSubmit:this.handleSubmit,values:e,state:i?"submit":void 0,submitButton:{"data-test-id":"submit-button"},applyButton:!1,cancelButton:!1},children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"forms.debugSettings.title",params:{debugCodexUrl:(0,L.jsx)(Us,{href:n,target:"_blank",children:(0,L.jsx)(pp,{content:"forms.debugSettings.debuggingInWordPress"})})}})}),this.renderForm()]})}}mH.defaultProps={baseClassName:`${th}debug-settings-form`};const gH=Fc((e=>({debugCodexUrl:e.app.urls.debugCodexUrl})),(e=>({installationActions:(0,Cb.zH)({getWordPressDebugSettings:u_},e)})))(mH),fH=({installation:e,baseClassName:t=""})=>{const{features:n}=e,[s,a]=(0,R.useState)(!1),[i,r]=(0,R.useState)(!1),o=J_(),l=Wc(),c=(0,R.useCallback)((()=>{l(tb()).then((()=>r(!0)))}),[l]),u=(0,R.useCallback)((()=>r(!1)),[]),d=(0,R.useCallback)((t=>{o("CRD-SITE_DEBUG-TOGGLED",{state:t}),a(!0),l(uA(e.id,t)).then((e=>{l(nb(e?(0,L.jsx)(pp,{content:"features.debug.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.debug.disabledSuccessfully"})))})).catch((()=>{})).finally((()=>{a(!1)}))}),[o,l,e.id]),p=(0,R.useCallback)((t=>(a(!0),l(cA(e.id,t)).catch((()=>{})).finally((()=>{a(!1)})))),[l,e.id]);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(vi,{className:t?`${t}-item`:void 0,children:[(0,L.jsx)(Dl,{checked:!!n.debug.status,loading:s,onChange:d,"data-test-id":"debugging-toggle",className:`${t}-section-item-element`})," ",(0,L.jsx)("span",{className:`${t}-section-item-element`,children:(0,L.jsx)(pp,{content:"controllers.index.detail.fieldDebug"})})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${t}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>o("CRD-SITE_DEBUG_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.hintDebugText"})})," ",(0,L.jsx)(ut,{className:`${t}-section-item-element`,icon:"sliders",onClick:e=>{o("CRD-SITE_DEBUG_SETTINGS-CLICKED"),gp(e,c)},"data-test-id":"debugging-settings",ghost:!0})]}),(0,L.jsx)(gH,{isOpen:i,installation:e,isProcessing:s,onSetDebugSettings:p,onClose:u})]})},bH=({installation:e,onOpenSmartPhpUpdates:t,isCollapsible:n,isWpMode:s,onOpenUpdates:a,baseClassName:i=`${th}instance-dev-tools-section`})=>(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.section.devTools"}),className:"wpt-instance-card-section",collapsible:n,children:[(0,L.jsx)(nH,{installation:e,onOpenSmartPhpUpdates:t,baseClassName:i}),(0,L.jsx)(fH,{installation:e,baseClassName:i}),e.features.passwordProtection.available&&(0,L.jsx)(vi,{className:i?`${i}-item`:void 0,children:(0,L.jsx)(JY,{installation:e,baseClassName:i})}),s&&(0,L.jsx)(vi,{className:i?`${i}-item`:void 0,children:(0,L.jsx)(lH,{installation:e,baseClassName:i})}),s&&e.features.updates.smart.available&&(0,L.jsx)(vi,{className:i?`${i}-item`:void 0,children:(0,L.jsx)(dH,{installation:e,baseClassName:i,onOpenUpdates:a})})]}),vH=({installation:e,baseClassName:t})=>{const{features:n}=e,[s,a]=(0,R.useState)(!1),i=J_(),r=Wc(),o=(0,R.useCallback)((()=>{i("CRD-SITE_BLOG_PUBLICATION-TOGGLED",{state:!n.indexing.status}),a(!0),r(mx(e.id,!n.indexing.status)).then((e=>{r(nb(e?(0,L.jsx)(pp,{content:"controllers.index.feature.search-indexing.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"controllers.index.feature.search-indexing.disabledSuccessfully"})))})).catch((()=>{})).finally((()=>{a(!1)}))}),[i,n.indexing.status,r,e.id]);return(0,L.jsxs)(vi,{className:t?`${t}-item`:void 0,children:[(0,L.jsx)(Dl,{checked:!!n.indexing.status,loading:s,onChange:o,"data-test-id":"search-engine-indexing-toggle",className:`${t}-section-item-element`})," ",(0,L.jsx)("span",{className:`${t}-section-item-element`,children:(0,L.jsx)(pp,{content:"controllers.index.detail.fieldBlogPublic"})})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${t}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>i("CRD-SITE_BLOG_PUBLICATION_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.hintBlogPublicText"})})]})},yH=({installation:e,baseClassName:t})=>{const[n,s]=(0,R.useState)(!1),a=J_(),i=Wc(),{status:r,webServerSettingsUrl:o}=e.features.nginxCaching,l=(0,R.useCallback)((t=>{a("CRD-NGINX_CACHING-TOGGLED",{state:t}),s(!0),i(lA(e.id,t)).then((()=>{i(nb(t?(0,L.jsx)(pp,{content:"features.nginxCaching.enabledSuccessfully"}):(0,L.jsx)(pp,{content:"features.nginxCaching.disabledSuccessfully"})))})).catch((()=>{})).finally((()=>{s(!1)}))}),[a,i,e.id]);return(0,L.jsxs)(vi,{className:t?`${t}-item`:void 0,children:[(0,L.jsx)(Dl,{checked:!!r,loading:n,onChange:l,"data-test-id":"caching-toggle",className:`${t}-section-item-element`})," ",(0,L.jsx)(pp,{content:"controllers.index.detail.fieldCaching",className:`${t}-section-item-element`})," ",(0,L.jsx)(Ks,{target:(0,L.jsx)(ut,{className:`${t}-section-item-element`,icon:"question-mark-circle",ghost:!0,onClick:()=>a("CRD-NGINX_CACHING_INFO-CLICKED")}),children:(0,L.jsx)(pp,{content:"controllers.index.detail.hintCachingText"})})," ",o&&(0,L.jsx)(ut,{className:`${t}-section-item-element`,icon:"sliders",onClick:e=>gp(e,(()=>{a("CRD-NGINX_CACHING_SETTINGS-CLICKED"),window.open(o)})),ghost:!0})]})},SH=({installation:e,isCollapsible:t,baseClassName:n=`${th}instance-performance-section`})=>{var s;return(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"instancesList.instanceCard.section.performance"}),className:"wpt-instance-card-section",collapsible:t,children:[(0,L.jsx)(vH,{installation:e,baseClassName:n}),(null===(s=e.features.nginxCaching)||void 0===s?void 0:s.available)&&(0,L.jsx)(yH,{installation:e,baseClassName:n}),e.features.wpCronTakeover.available&&(0,L.jsx)(vi,{className:n?`${n}-item`:void 0,children:(0,L.jsx)(eH,{installation:e,baseClassName:n})})]})},wH=({isWpMode:e=!1,installation:t,openUpdates:n,onEnableInstances:s,onDisableInstances:a,onOpenSecurityDialog:i,onOpenSmartPhpUpdates:r,onOpenVirtualPatchingUpsellDialog:o,onOpenVirtualPatchingLicenseInfoDrawer:l})=>{const[c,u]=(0,R.useState)(2);return(0,L.jsxs)(ga,{gap:"md",minColumnWidth:280,onColumnsChange:u,children:[(0,L.jsxs)(fa,{xs:12,sm:12,md:12,lg:6,xl:5,children:[(0,L.jsx)(xY,{onEnableInstances:s,onDisableInstances:a,installation:t,openUpdates:n,isCollapsible:c<2}),(0,L.jsx)(tH,{installation:t,onOpenSecurityDialog:i,isCollapsible:c<2,onOpenVirtualPatchingUpsellDialog:o,onOpenVirtualPatchingLicenseInfoDrawer:l})]}),(0,L.jsxs)(fa,{xs:12,sm:12,md:12,lg:6,xl:5,children:[(0,L.jsx)(bH,{isWpMode:e,installation:t,isCollapsible:c<2,onOpenSmartPhpUpdates:r,onOpenUpdates:n}),(0,L.jsx)(SH,{installation:t,isCollapsible:c<2})]})]})},xH=e=>(0,L.jsx)(_e,{className:`${th}check-wordpress-integrity-link`,icon:"shield-chain",onClick:()=>e.onOpenCheckWpIntegrityDialog(),"data-test-id":"check-wordpress-integrity",children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.footer.checkWordPressIntegrity"})});class AH extends R.Component{constructor(){super(...arguments),this.renderCheckUpdates=()=>{const{onOpenUpdatesDialog:e}=this.props;return(0,L.jsx)(_e,{onClick:t=>gp(t,(()=>{e("CRD")})),"data-test-id":"updates-link",icon:(0,L.jsx)(xe,{name:"refresh",size:"16"}),className:`${this.props.baseClassName}-item-link`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.footer.checkUpdates"})})},this.renderAutoUpdatesSettings=()=>{const{installation:{features:{updates:e}},onOpenUpdatesDialog:t}=this.props;return e.autoUpdatesAvailable?(0,L.jsx)(_e,{onClick:e=>gp(e,(()=>{this.context("CRD-UPDATE_SETTINGS-CLICKED"),t("CRD",sS,!0)})),className:`${this.props.baseClassName}-item-link`,children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.footer.autoUpdateSettings.title"})}):null},this.renderMaintenance=()=>{const{installation:e,baseClassName:t}=this.props;return(0,L.jsx)(vi,{children:(0,L.jsx)(lH,{installation:e,baseClassName:t})},"maintenance")},this.renderCheckWordPressIntegrity=()=>{const{installation:{features:{integrity:e}},onOpenCheckWordPressIntegrityDialog:t,baseClassName:n}=this.props;return e.available?(0,L.jsx)("div",{className:`${n}__check-wordpress-integrity`,children:(0,L.jsx)(xH,{onOpenCheckWpIntegrityDialog:()=>t("CRD")})}):null},this.renderSmartUpdates=()=>{const{installation:e,installation:{features:{updates:{autoUpdatesAvailable:t,smart:{available:n}}}},baseClassName:s,onOpenUpdatesDialog:a}=this.props;return t&&n?(0,L.jsx)(Wr,{title:(0,L.jsx)(vi,{children:(0,L.jsx)(dH,{installation:e,baseClassName:s,onOpenUpdates:a})},"smart-update-toggle")}):null}}render(){const{baseClassName:e}=this.props;return(0,L.jsx)("div",{className:e,children:(0,L.jsxs)("div",{className:`${e}__list`,children:[this.renderCheckUpdates(),this.renderAutoUpdatesSettings(),this.renderSmartUpdates(),(0,L.jsx)(Wr,{title:(0,L.jsxs)(L.Fragment,{children:[this.renderCheckWordPressIntegrity()," ",this.renderMaintenance()]})})]})})}}AH.defaultProps={baseClassName:`${th}instance-card-footer`},AH.contextType=Q_;const _H=AH,kH=e=>{const{installation:{status:{unsupported:t},version:n},upgradingInstanceInstructionsUrl:s}=e;return n&&t?(0,L.jsxs)("div",{className:`${th}unsupported-instance-details`,children:[(0,L.jsx)(Tl,{intent:"danger",children:(0,L.jsx)(pp,{content:"controllers.index.detail.unsupportedInstance.description",params:{version:n}})}),s&&(0,L.jsxs)("div",{children:[(0,L.jsx)(pp,{content:"controllers.index.detail.unsupportedInstance.upgradingInstanceInstructionsLabel"}),":",(0,L.jsx)("br",{}),(0,L.jsx)(Us,{href:s,children:s})]}),(0,L.jsx)(uY,{installation:e.installation})]}):null},jH=Fc(null,(e=>({instancesActions:(0,Cb.zH)({getAvailablePhpHandlers:ox},e)})))((e=>{const[t,n]=(0,R.useState)(),[s,a]=(0,R.useState)(),[i]=(0,R.useState)(),[r,o]=(0,R.useState)(!1),l=cp(),{installation:c,installation:{id:u,features:{php:{handler:d}}},instancesActions:{getAvailablePhpHandlers:p}}=e,h=c.features.php.settingsUrl?(0,L.jsx)(_Y,{installation:Object.assign(Object.assign({},c),{features:Object.assign(Object.assign({},c.features),{php:Object.assign(Object.assign({},c.features.php),{settingsUrl:c.features.php.settingsUrl})})})}):null;return(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{onClick:()=>{void 0===s&&(o(!0),p(u).then((e=>a(e))).catch((()=>{})).finally((()=>o(!1))))},children:(0,L.jsx)(pp,{content:"instancesList.phpSelector.changePhpHandlerButton"})}),placement:"bottom",children:[r&&(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"instancesList.phpSelector.loadingListOfPhpHandlers"})}),!r&&s&&s.length>0&&(0,L.jsxs)(Hi,{vertical:!0,submitButton:{children:(0,L.jsx)(pp,{content:t?"phpVersionsForm.submitting":"phpVersionsForm.submit"}),intent:"primary",size:"md"},applyButton:!1,cancelButton:!1,state:t,values:{phpHandler:i},onSubmit:({phpHandler:t})=>{t&&(n("submit"),e.onSwitchPHPHandler(t).finally((()=>{n(void 0)})))},children:[d&&(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"phpVersionsForm.currentVersion.label"}),children:(0,L.jsx)(da,{children:d.name})}),(0,L.jsx)(Vr,{name:"phpHandler",label:l("phpVersionsForm.versions.label"),children:s.map((e=>(0,L.jsx)(Nr,{value:e.identifier,children:e.name},e.identifier)))})]}),!r&&s&&0===s.length&&(0,L.jsx)(Fe,{intent:"warning",children:(0,L.jsx)(pp,{content:"instancesList.phpSelector.noPhpHandlers"})}),h]})})),CH=e=>{var t;return(0,L.jsxs)(si,{gap:"md",children:[(0,L.jsx)(ii,{width:"300px",children:(0,L.jsx)($B,{installation:e.installation})}),(0,L.jsxs)(ii,{fill:!0,className:`${th}unsupported-wide-column`,children:[(0,L.jsxs)(Tl,{intent:"danger",children:[(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"instancesList.issues.errorUnsupportedPHP.title",params:{phpVersion:null===(t=e.installation.features.php.handler)||void 0===t?void 0:t.version}})})," ",(0,L.jsx)(pp,{content:"instancesList.issues.errorUnsupportedPHP.description",unsafe:!0})]}),(0,L.jsx)(jH,{installation:e.installation,onSwitchPHPHandler:e.onChangePHPHandler}),(0,L.jsx)(uY,{installation:e.installation})]})]})},IH=(e,t=null)=>()=>bf.actionLog.getInstanceActionLogRecords(e,t),TH=e=>t=>bf.actionLog.onOpenActionLogBrowser(e).then((({data:e})=>(t(eb(e)),e))),DH=e=>()=>bf.actionLog.onEnableRealTimeUpdates(e),PH=e=>()=>bf.actionLog.getInstanceActionLogRotationSettings(e),OH=(e,t)=>n=>bf.actionLog.saveInstanceActionLogRotationSettings(e,t).then((({data:e})=>(n(eb(e)),e)));var LH=r(59386),MH=r.n(LH);const EH={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 RH(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const UH={date:RH({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:RH({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:RH({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},NH={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function FH(e){return(t,n)=>{let s;if("formatting"===(n?.context?String(n.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,a=n?.width?String(n.width):t;s=e.formattingValues[a]||e.formattingValues[t]}else{const t=e.defaultWidth,a=n?.width?String(n.width):e.defaultWidth;s=e.values[a]||e.values[t]}return s[e.argumentCallback?e.argumentCallback(t):t]}}function BH(e){return(t,n={})=>{const s=n.width,a=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],i=t.match(a);if(!i)return null;const r=i[0],o=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(r))return t}(o):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(r))return t}(o);let c;return c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c,{value:c,rest:t.slice(r.length)}}}var YH;const HH={code:"en-US",formatDistance:(e,t,n)=>{let s;const a=EH[e];return s="string"==typeof a?a:1===t?a.one:a.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+s:s+" ago":s},formatLong:UH,formatRelative:(e,t,n,s)=>NH[e],localize:{ordinalNumber:(e,t)=>{const n=Number(e),s=n%100;if(s>20||s<10)switch(s%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:FH({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:FH({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:FH({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:FH({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:FH({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(YH={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const n=e.match(YH.matchPattern);if(!n)return null;const s=n[0],a=e.match(YH.parsePattern);if(!a)return null;let i=YH.valueCallback?YH.valueCallback(a[0]):a[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(s.length)}}),era:BH({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:BH({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:BH({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:BH({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:BH({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},VH=(0,R.forwardRef)((({value:e,onClick:t,disabled:n},s)=>{const a=cp();return(0,L.jsx)("span",{ref:s,children:(0,L.jsx)(Os,{disabled:n,placeholder:a("actionLog.filterDate.dateFrom"),onClick:t,value:e,readOnly:!0})})}));VH.displayName="InputDateFrom";const WH=(0,R.forwardRef)((({value:e,onClick:t,disabled:n},s)=>{const a=cp();return(0,L.jsx)("span",{ref:s,children:(0,L.jsx)(Os,{disabled:n,placeholder:a("actionLog.filterDate.dateTo"),onClick:t,value:e,readOnly:!0})})}));WH.displayName="InputDateTo";const $H=({title:e,disabled:t,onClick:n,onClear:s})=>{const a=cp();return(0,L.jsx)(Os,{size:"fill",disabled:t,placeholder:a("actionLog.filterDate.inputDate"),readOnly:!0,suffix:(0,L.jsx)(ut,{ghost:!0,icon:"cross-mark",disabled:t,onClick:s}),onClick:n,value:e?a(e):""})},zH=e=>{const{filterDateFrom:t=null,filterDateTo:n=null,onChangeDateFrom:s,onChangeDateTo:a,disabled:i=!1,title:r="",onChangeTitle:o,isVisible:l=!1,onToggleDateFilterVisibility:c}=e,u=cp(),d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"].map((e=>{const t=u(`actionLog.filterDate.months.${e}`);return"string"==typeof t?t:e})),p=["Su","Mo","Tu","We","Th","Fr","Sa"].map((e=>{const t=u(`actionLog.filterDate.days.${e}`);return"string"==typeof t?t:e})),h="yyyy-MM-dd HH:mm:ss",m="HH:mm",g=Object.assign(Object.assign({},HH),{localize:Object.assign(Object.assign({},HH.localize),{month:e=>d[e],day:e=>p[e]}),options:{weekStartsOn:(()=>{const e=u("actionLog.filterDate.firstDayOfWeek"),t=parseInt("string"==typeof e?e:"0");return(e=>e>=0&&e<=6)(t)?t:0})()}});return(0,L.jsxs)(Ks,{placement:"bottom-right",visible:l,canCloseOnOutsideClick:!1,wide:!0,target:(0,L.jsx)($H,{disabled:i,title:r,onClick:e=>{e.stopPropagation(),c()},onClear:e=>{e.stopPropagation(),c(),o(""),s(null),a(null)}}),onClick:e=>e.stopPropagation(),onClose:c,children:[(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"Filter Date From",children:(0,L.jsx)(MH(),{showTimeInput:!0,isClearable:!0,selected:t?xS().unix(t).toDate():null,onChange:e=>{o("actionLog.filterDate.range"),s(null===e?null:xS()(e).unix())},timeInputLabel:u("actionLog.filterDate.timeInputLabel"),dateFormat:h,timeFormat:m,customInput:(0,L.jsx)(VH,{disabled:i}),locale:g})}),(0,L.jsx)(Ya,{title:"Filter Date To",children:(0,L.jsx)(MH(),{showTimeInput:!0,isClearable:!0,selected:n?xS().unix(n).toDate():null,onChange:e=>{o("actionLog.filterDate.range"),a(null===e?null:xS()(e).unix())},timeInputLabel:u("actionLog.filterDate.timeInputLabel"),dateFormat:h,timeFormat:m,customInput:(0,L.jsx)(WH,{disabled:i}),locale:g})})]}),(0,L.jsxs)(dt,{children:[[{key:"hour",title:"actionLog.filterDate.hour",from:xS()().subtract(1,"hour"),to:xS()()},{key:"today",title:"actionLog.filterDate.today",from:xS()().startOf("day"),to:xS()()},{key:"yesterday",title:"actionLog.filterDate.yesterday",from:xS()().startOf("day").subtract(1,"day"),to:xS()().startOf("day").subtract(1,"second")},{key:"week",title:"actionLog.filterDate.week",from:xS()().subtract(1,"week"),to:xS()()}].map((e=>(0,L.jsx)(ut,{disabled:i,onClick:()=>{c(),o(e.title),s(e.from.unix()),a(e.to.unix())},children:(0,L.jsx)(pp,{content:e.title})},e.key))),(0,L.jsx)(ut,{intent:"primary",onClick:()=>c(),children:(0,L.jsx)(pp,{content:"actionLog.filterDate.closeButton"})})]})]})},qH="size",GH="time",KH="daily";class QH extends R.Component{constructor(e){super(e),this.loadLogRotationSettings=()=>{const{actionLogActions:{loadLogRotationSettings:e},installation:{id:t},appActions:{addErrorMessage:n}}=this.props;return this.setState({isLoadingLogRotationSettings:!0}),e(t).then((({data:e})=>{if(!e)return null;const{status:t,data:s}=e;return t===Mp?s&&s.actionLogRotationOptions?s.actionLogRotationOptions:null:(e.message&&n(e.message),null)})).finally((()=>{this.setState({isLoadingLogRotationSettings:!1})}))},this.handleSubmit=()=>{const{alwaysRotateLogs:e,maxNumberOfLogFiles:t,logRotationFileSize:n,logRotationTimePeriod:s,logRotationType:a,compressLogFiles:i}=this.state,{actionLogActions:{saveLogRotationSettings:r},installation:{id:o},onCloseLogRotationSettingsDrawer:l}=this.props,c={};0===n&&(c.logRotationFileSize={minValue:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationFileSizeMinValueError",params:{minValue:0}})}),0===t&&(c.maxNumberOfLogFiles={minValue:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.maxNumberOfLogFilesMinValueError",params:{minValue:0}})}),Object.keys(c).length?this.setState({formErrors:c}):r(o,{enabled:e,rotateCount:t,size:n,timePeriod:s,type:a,compress:i}).finally(l)},this.getDrawerContent=()=>{const{compressLogFiles:e,alwaysRotateLogs:t,logRotationType:n,logRotationTimePeriod:s,formErrors:a,isLoadingLogRotationSettings:i,maxNumberOfLogFiles:r,logRotationFileSize:o}=this.state,{baseClassName:l,translate:c}=this.props;return i?(0,L.jsx)(Qn,{}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationCondition"}),name:"logRotationCondition",children:[(0,L.jsx)("div",{className:`${l}__always-rotate-logs`,children:(0,L.jsx)(Tt,{checked:t,onChange:e=>this.setState({alwaysRotateLogs:e}),children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.alwaysRotateLogs"})})}),(0,L.jsx)("p",{children:(0,L.jsx)(Za,{name:"logRotationType",checked:n===qH,onChange:()=>this.setState({logRotationType:qH}),disabled:!t,children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationBySize"})})}),(0,L.jsxs)(Li,{name:"logRotationFileSize",label:null,children:[(0,L.jsx)(Rs,{className:`${l}__log-file-size`,defaultValue:200,step:100,min:0,disabled:!t||n!==qH,value:o,onChange:e=>this.setState({logRotationFileSize:e,formErrors:Object.assign(Object.assign({},a),{logRotationFileSize:{}})})})," ",(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.kbUnit"})]}),(0,L.jsx)("p",{children:(0,L.jsx)(Za,{name:"logRotationType",checked:n===GH,onChange:()=>this.setState({logRotationType:GH}),disabled:!t,children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationByTime"})})}),(0,L.jsx)("div",{children:(0,L.jsxs)(Hr,{className:`${l}__log-rotation-by-tyme-select`,size:"sm",value:s,onChange:e=>this.setState({logRotationTimePeriod:e}),disabled:!t||n!==GH,"aria-label":c("actionLog.logRotationSettings.logRotationByTime.ariaLabel"),children:[(0,L.jsx)(Nr,{value:KH,label:"daily",children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationDaily"})}),(0,L.jsx)(Nr,{value:"weekly",label:"weekly",children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationWeekly"})}),(0,L.jsx)(Nr,{value:"monthly",label:"monthly",children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationMonthly"})}),(0,L.jsx)(Nr,{value:"yearly",label:"yearly",children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.logRotationYearly"})})]})})]}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.maxNumberOfLogFiles"}),name:"maxNumberOfLogFiles",children:(0,L.jsx)(Rs,{defaultValue:10,min:0,disabled:!t,value:r,onChange:e=>this.setState({maxNumberOfLogFiles:e,formErrors:Object.assign(Object.assign({},a),{maxNumberOfLogFiles:{}})})})}),(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.diskSpaceEconomy"}),name:"diskSpaceEconomy",children:[(0,L.jsx)("p",{children:(0,L.jsx)(Za,{name:"diskSpaceEconomy",checked:e,onChange:()=>this.setState({compressLogFiles:!0}),disabled:!t,children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.compressLogFiles"})})}),(0,L.jsx)("p",{children:(0,L.jsx)(Za,{name:"diskSpaceEconomy",checked:!e,onChange:()=>this.setState({compressLogFiles:!1}),disabled:!t,children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.doNotCompressLogFiles"})})})]})]})},this.state={isLoadingLogRotationSettings:!1,alwaysRotateLogs:!0,maxNumberOfLogFiles:10,logRotationFileSize:200,logRotationTimePeriod:KH,logRotationType:qH,compressLogFiles:!0,formErrors:{}}}componentDidUpdate(e,t){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData()}handleOpenAndLoadData(){this.loadLogRotationSettings().then((e=>{e&&this.setState({alwaysRotateLogs:e.enabled,maxNumberOfLogFiles:e.rotateCount,logRotationFileSize:e.size,logRotationTimePeriod:e.timePeriod?e.timePeriod:KH,logRotationType:e.type,compressLogFiles:e.compress})}))}render(){const{formErrors:e}=this.state,{isOpen:t,onCloseLogRotationSettingsDrawer:n}=this.props;return(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"actionLog.logRotationSettingsDrawerTitle"}),onClose:n,size:"sm",isOpen:t,form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"actionLog.logRotationSettings.saveButton"})},errors:e},"data-type":"log-rotation-settings-drawer",children:this.getDrawerContent()})}}QH.defaultProps={baseClassName:`${th}log-rotation-settings-drawer`};const JH=Fc(null,(e=>({actionLogActions:(0,Cb.zH)({loadLogRotationSettings:PH,saveLogRotationSettings:OH},e),appActions:(0,Cb.zH)({addErrorMessage:ab},e)})))(Nv(QH)),XH="error",ZH="warning",eV="info",tV="severity",nV="actor",sV="message",aV="dateFrom",iV="dateTo",rV=e=>!e||"scrollHeight"in e&&e.scrollHeight>e.clientHeight?e:rV(e.parentNode),oV=({onChange:e,message:t="",className:n})=>{const s=cp();return(0,L.jsx)(Os,{type:"text",placeholder:s("actionLog.list.messageColumnTitle"),size:"fill",onChange:t=>{t.persist(),e(t.currentTarget.value)},className:n,suffix:(0,L.jsx)(ut,{ghost:!0,fill:!0,icon:"cross-mark",onClick:()=>e("")}),value:t})},lV=[{eventUid:xp(4),isFake:!0,datetime:"",severity:"",event:"",actor:"",message:"",hashSum:null}];class cV extends R.Component{constructor(e){super(e),this.getListData=e=>e.map((e=>Object.assign(Object.assign({},e),{eventUid:xp(15),ref:(0,R.createRef)(),isFake:!1}))),this.getActors=e=>Array.isArray(e)?e.reduce(((e,t)=>(t.actor&&-1===e.indexOf(t.actor)&&e.push(t.actor),e)),[]):[],this.getColumns=()=>{const{translate:e}=this.props;return[{key:"datetime",className:`${this.props.baseClassName}__datetime-column-header`,title:(0,L.jsx)(zH,{onChangeDateFrom:e=>{const{filters:{[aV]:t,[iV]:n}}=this.state;t!==e&&this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[aV]:e})})),(()=>this.setState({listData:this.fetchListData()}))),e||n||this.setState({dateFilterTitle:void 0})},onChangeDateTo:e=>{const{filters:{[aV]:t,[iV]:n}}=this.state;n!==e&&this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[iV]:e})})),(()=>this.setState({listData:this.fetchListData()}))),e||t||this.setState({dateFilterTitle:void 0})},title:this.state.dateFilterTitle,onChangeTitle:e=>this.setState({dateFilterTitle:e}),filterDateFrom:this.state.filters[aV],filterDateTo:this.state.filters[iV],isVisible:this.state.isDateFilterVisible,onToggleDateFilterVisibility:this.handleToggleDateFilterVisibility}),type:"controls",render:e=>e.isFake?(0,L.jsx)(pp,{content:"actionLog.list.noItemsFound"}):xS().parseZone(e.datetime).local().format("YYYY-MM-DD HH:mm:ss"),sortable:!0,sort:(e,t)=>xS().parseZone(e.datetime).isAfter(xS().parseZone(t.datetime))?1:xS().parseZone(e.datetime).isBefore(xS().parseZone(t.datetime))?-1:0},{key:"severity",className:`${this.props.baseClassName}__severity-column-header`,title:(0,L.jsxs)(Hr,{placeholder:(0,L.jsx)(pp,{content:"actionLog.list.severityColumnTitle"}),size:"sm",clearable:!0,onChange:e=>this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[tV]:e})})),(()=>this.setState({listData:this.fetchListData()}))),value:this.state.filters[tV],"data-test-id":"action-log-filter-severity","aria-label":e("actionLog.list.severityColumnTitle"),children:[(0,L.jsx)(Nr,{value:XH,label:XH,children:(0,L.jsx)(He,{intent:"danger",children:XH})}),(0,L.jsx)(Nr,{value:ZH,label:ZH,children:(0,L.jsx)(He,{intent:"warning",children:ZH})}),(0,L.jsx)(Nr,{value:eV,label:eV,children:(0,L.jsx)(He,{intent:"info",children:eV})})]}),type:"controls",render:e=>{if(!e.severity)return"";let t;switch(e.severity.toLowerCase()){case XH:t="danger";break;case ZH:t="warning";break;case eV:t="info";break;default:t="inactive"}return(0,L.jsx)(He,{className:`${this.props.baseClassName}__severity-label`,intent:t,children:e.severity},e.severity)},align:"center"},{key:"event",className:`${this.props.baseClassName}__event-column-header`,title:(0,L.jsx)(pp,{content:"actionLog.list.eventColumnTitle"}),type:"title"},{key:"actor",className:`${this.props.baseClassName}__actor-column-header`,title:(0,L.jsx)(Hr,{placeholder:(0,L.jsx)(pp,{content:"actionLog.list.actorColumnTitle"}),size:"md",clearable:!0,onChange:e=>this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[nV]:e})})),(()=>this.setState({listData:this.fetchListData()}))),value:this.state.filters[nV],disabled:0===this.state.actors.length,"data-test-id":"action-log-filter-actor","aria-label":e("actionLog.list.actorColumnTitle"),children:this.state.actors.map((e=>(0,L.jsx)(Nr,{value:e,children:e},e)))}),type:"controls",render:e=>(0,L.jsx)(da,{className:`${this.props.baseClassName}__actor-column`,children:e.actor})},{key:"message",className:`${this.props.baseClassName}__message-column-header`,title:(0,L.jsx)(oV,{message:this.state.filters[sV]?this.state.filters[sV]:"",className:`${this.props.baseClassName}__message-column`,onChange:e=>{this.setState((t=>({filters:Object.assign(Object.assign({},t.filters),{[sV]:e})})),(()=>this.setState({listData:this.fetchListData()})))}}),type:"controls",render:e=>(0,L.jsx)(da,{className:`${this.props.baseClassName}__message-column`,children:this.renderMessage(e.eventUid,e.message)})},{key:"actions",className:`${this.props.baseClassName}__actions-column-header`,type:"actions",render:e=>e.isFake||(0,L.jsx)("div",{ref:e.ref,children:(0,L.jsx)(ho,{children:this.hasFilters()&&(0,L.jsx)(po,{icon:"arrows-outward",primary:!0,onClick:()=>this.handleTransitionTo(e.ref),"data-test-id":"action-log-actions-go-to-record",children:(0,L.jsx)(pp,{content:"actionLog.list.actions.goToRecord"})})})})}]},this.handleTransitionTo=e=>{var t;this.ref=e,this.refOffset=(null===(t=null==e?void 0:e.current)||void 0===t?void 0:t.getBoundingClientRect().top)||0,this.setState({filters:{}})},this.renderMessage=(e,t)=>t.length<=300?t:this.state.showFullMessage[e]?(0,L.jsxs)(L.Fragment,{children:[t," ",(0,L.jsx)(_e,{onClick:()=>this.setState((t=>({showFullMessage:Object.assign(Object.assign({},t.showFullMessage),{[e]:!1})}))),children:(0,L.jsx)(pp,{content:"actionLog.list.messageShowLess"})})]}):(0,L.jsxs)(L.Fragment,{children:[t.substring(0,300),"... ",(0,L.jsx)(_e,{onClick:()=>this.setState((t=>({showFullMessage:Object.assign(Object.assign({},t.showFullMessage),{[e]:!0})}))),children:(0,L.jsx)(pp,{content:"actionLog.list.messageShowMore"})})]}),this.getToolbar=()=>{const{translate:e}=this.props;return(0,L.jsxs)(Ha,{children:[(0,L.jsxs)(Ya,{title:"Refresh",groupable:!1,children:[(0,L.jsx)(_e,{"aria-label":e("actionLog.toolbar.autoRefreshSwitcher"),children:(0,L.jsx)(Dl,{onChange:()=>this.handleToggleAutoRefreshEnabled(),checked:this.state.isAutoRefreshEnabled,tooltip:(0,L.jsx)(pp,{content:"actionLog.toolbar.autoRefreshSwitcher.tooltip",params:{seconds:this.props.actionLogRealTimeUpdatePeriod}})})}),(0,L.jsx)("span",{children:(0,L.jsx)(pp,{content:"actionLog.toolbar.autoRefreshSwitcher"})}),(0,L.jsx)(ut,{onClick:()=>this.handleRefresh(),icon:(0,L.jsx)(xe,{name:"refresh",animation:this.state.isActionLogRecordsListLoading||this.state.isAutoRefreshEnabled?"spin":void 0}),children:(0,L.jsx)(pp,{content:"actionLog.toolbar.refreshButton"})}),this.state.isAutoRefreshEnabled&&(0,L.jsx)(ut,{onClick:()=>this.handleClearItems(),icon:"clean",children:(0,L.jsx)(pp,{content:"actionLog.toolbar.clearButton"})})]}),(0,L.jsx)(Sa,{}),(0,L.jsx)(Ya,{title:"Download as file",groupable:!1,children:(0,L.jsx)(_e,{icon:"arrow-down-tray",href:`${this.props.apiUrl}/action-logs-file/id/${this.props.installation.id}`,children:(0,L.jsx)(pp,{content:"actionLog.toolbar.linkDownloadLogFile"})})}),!_O(this.props.installation.installationType)&&(0,L.jsx)(Ya,{title:"Log Rotation",groupable:!1,children:(0,L.jsx)(ut,{onClick:()=>this.handleOpenLogRotationSettingsDrawer(),children:(0,L.jsx)(pp,{content:"actionLog.toolbar.logRotationButton"})})})]})},this.handleToggleAutoRefreshEnabled=()=>{this.setState((e=>({isAutoRefreshEnabled:!e.isAutoRefreshEnabled})),(()=>{!0===this.state.isAutoRefreshEnabled?(this.props.actionLogActions.onEnableRealTimeUpdates(this.props.installation.id),this.handleAutoRefresh(),this.updateInterval=window.setInterval((()=>{this.handleAutoRefresh()}),1e3*this.props.actionLogRealTimeUpdatePeriod)):(clearInterval(this.updateInterval),this.setState({lastClearedRecord:null}))}))},this.handleToggleDateFilterVisibility=()=>this.setState((e=>({isDateFilterVisible:!e.isDateFilterVisible}))),this.loadInstanceActionLogRecords=(e=!0,t=null)=>{const{actionLogActions:{loadInstanceActionLogRecords:n},installation:{id:s},appActions:{addErrorMessage:a}}=this.props;return this.setState({isActionLogRecordsListLoading:e}),n(s,t).then((({data:e})=>{if(!e)return[];const{status:t,data:n}=e;return t===Mp?n&&n.actionLogRecords?n.actionLogRecords:[]:(e.message&&a(e.message),[])})).finally((()=>{this.setState({isActionLogRecordsListLoading:!1})}))},this.handleClearItems=()=>{this.setState({lastClearedRecord:this.getLastRecord()},(()=>{this.setState({listData:this.fetchListData()})}))},this.handleOpenLogRotationSettingsDrawer=()=>this.setState({isLogRotationSettingsDrawerVisible:!0}),this.handleCloseLogRotationSettingsDrawer=()=>this.setState({isLogRotationSettingsDrawerVisible:!1}),this.hasFilters=()=>Object.values(this.state.filters).some((e=>!!e)),this.fetchListData=()=>{const{filters:e,initialListData:t,lastClearedRecord:n}=this.state;let s=[...t||[]];if(null!==n&&(s=s.slice(s.indexOf(n)+1)),Object.keys(this.state.filters).length){const t=s.filter((({datetime:t,severity:n,actor:s,message:a,isFake:i})=>!(!i&&(e[tV]&&-1===e[tV].indexOf(n.toLowerCase())||e[nV]&&e[nV]!==s||e[sV]&&-1===a.toLowerCase().indexOf(e[sV].toLowerCase())||e[aV]&&xS()(t).isBefore(xS().unix(e[aV]))||e[iV]&&xS()(t).isAfter(xS().unix(e[iV]))))));return t.length?t:lV}return 0===s.length&&(s=lV),s},this.handleRefresh=(e=!0)=>{const{isAutoRefreshEnabled:t}=this.state;let n=null;const s=this.getLastRecord();null!==s&&t&&(n=s.hashSum),this.loadInstanceActionLogRecords(e,n).then((e=>{this.setState((n=>{const s=[...t&&n.initialListData?n.initialListData:[],...this.getListData(e)];return{actors:this.getActors(s),initialListData:s}}),(()=>this.setState({listData:this.fetchListData()})))}))},this.getLastRecord=()=>{const{initialListData:e}=this.state;return e&&e.length>0?e[e.length-1]:null},this.renderLogRotationSettingsDrawer=()=>this.props.isOpen?(0,L.jsx)(JH,{isOpen:this.state.isLogRotationSettingsDrawerVisible,installation:this.props.installation,onCloseLogRotationSettingsDrawer:this.handleCloseLogRotationSettingsDrawer}):null,this.ref=null,this.refOffset=0,this.state={initialListData:null,listData:null,actors:[],isActionLogRecordsListLoading:!1,filters:{},showFullMessage:{},isAutoRefreshEnabled:!1,lastClearedRecord:null,dateFilterTitle:void 0,isDateFilterVisible:!1,isLogRotationSettingsDrawerVisible:!1}}componentDidMount(){this.props.isOpen&&this.handleLoadData()}componentDidUpdate(e,t){var n;if(!e.isOpen&&this.props.isOpen&&this.handleLoadData(),e.isOpen&&!this.props.isOpen&&this.resetStateOnClose(),this.state.filters[aV]||this.state.filters[iV]||!this.state.dateFilterTitle||this.setState({dateFilterTitle:void 0}),this.state.filters!==t.filters&&this.state.listData&&this.state.listData===t.listData)this.setState({listData:this.fetchListData()});else if(null===(n=this.ref)||void 0===n?void 0:n.current){this.ref.current.scrollIntoView();const e=rV(this.ref.current);e&&e.scrollBy(0,this.ref.current.getBoundingClientRect().top-this.refOffset),this.ref=null}}componentWillUnmount(){clearInterval(this.updateInterval)}handleLoadData(){this.loadInstanceActionLogRecords().then((e=>{this.setState({actors:this.getActors(e),initialListData:this.getListData(e)},(()=>{this.setState({listData:this.fetchListData()})}))}))}resetStateOnClose(){this.setState({isAutoRefreshEnabled:!1})}handleAutoRefresh(){this.state.isAutoRefreshEnabled&&this.handleRefresh(!1)}render(){const{isActionLogRecordsListLoading:e,listData:t}=this.state,{installation:{url:n},onCloseActionLogDrawer:s,isOpen:a}=this.props;return(0,L.jsxs)(cr,{className:this.props.baseClassName,title:(0,L.jsx)(pp,{content:"actionLog.drawerTitle",params:{instanceUrl:n}}),onClose:()=>s(),size:"lg",isOpen:a,"data-type":"action-log-drawer",children:[t?(0,L.jsx)(uo,{data:t,loading:e,columns:this.getColumns(),rowKey:e=>e.eventUid,toolbar:this.getToolbar(),sortColumn:"datetime",sortDirection:"DESC"}):(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"actionLog.actionlogRecordsLoading"})}),this.renderLogRotationSettingsDrawer()]})}}cV.defaultProps={baseClassName:`${th}action-log-drawer`};const uV=Fc((e=>({actionLogRealTimeUpdatePeriod:e.app.options.actionLogRealTimeUpdatePeriod,apiUrl:e.app.urls.apiUrl})),(e=>({actionLogActions:(0,Cb.zH)({loadInstanceActionLogRecords:IH,onEnableRealTimeUpdates:DH},e),appActions:(0,Cb.zH)({addErrorMessage:ab},e)})))(Nv(cV));class dV extends R.Component{constructor(e){super(e),this.getBackupLink=()=>{const{installation:{features:{backups:{panelBackupsAvailable:e,wptBackupsAvailable:t}}},onOpenBackupDrawer:n}=this.props;return t?(0,L.jsx)(Us,{onClick:n,children:(0,L.jsx)(pp,{content:"reinstallCoreConfirmationDialog.backupLink"})}):e?(0,L.jsx)(rL,{installation:this.props.installation}):(0,L.jsx)(pp,{content:"reinstallCoreConfirmationDialog.backupLink"})},this.state={}}render(){const{onCloseReinstallCoreConfirmationDialog:e,onReinstallCore:t,isOpen:n}=this.props;return(0,L.jsx)(Wi,{size:"xs",isOpen:n,onClose:e,buttons:[(0,L.jsx)(ut,{intent:"danger",onClick:()=>{t(),e()},children:(0,L.jsx)(pp,{content:"reinstallCoreConfirmationDialog.reinstallCoreButton"})},"reinstallCoreButton")],cancelButton:{children:(0,L.jsx)(pp,{content:"reinstallCoreConfirmationDialog.cancelButton"})},children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"reinstallCoreConfirmationDialog.description",params:{link:this.getBackupLink()}})})})}}const pV=dV,hV=e=>()=>bf.checkWordPressIntegrity.verifyChecksums(e),mV=e=>t=>bf.checkWordPressIntegrity.reinstallCore(e).then((({data:n})=>(t(eb(n,(()=>t(gV(n.data.task,e))))),n))),gV=(e,t)=>n=>n({type:oI,task:e,instanceId:t}),fV=e=>t=>Gf.getIntegrity(e).then((({data:n})=>(t({type:Jy,installationId:e,available:n.available}),n))).catch((e=>(t(Zf(e)),Promise.reject())));class bV extends R.Component{constructor(e){super(e),this.fetchAndProcessExistingReinstallCoreBackgroundTask=(e,t)=>{const{backgroundTasksActions:{fetchBackgroundTask:n}}=this.props;n(bf.backgroundTask.getTaskData,e,t).then((e=>{null!==e?ZI(e)?this.handleOnCompleteReinstallCoreBackgroundTask():this.setState({reinstallCoreBackgroundTask:e,reinstallCoreBackgroundTaskId:e.id,isReinstallCoreBackgroundTaskProcessing:!0,isReinstallCoreBackgroundTaskProgressVisible:!0}):this.setState({reinstallCoreBackgroundTask:null,reinstallCoreBackgroundTaskId:null,isReinstallCoreBackgroundTaskProcessing:!1,isReinstallCoreBackgroundTaskProgressVisible:!1})}))},this.handleOnCompleteReinstallCoreBackgroundTask=()=>{this.setState({isReinstallCoreBackgroundTaskProcessing:!1})},this.handleOnReceiveReinstallCoreBackgroundTaskData=()=>{const{reinstallCoreBackgroundTaskId:e,reinstallCoreBackgroundTask:t}=this.state,{tasks:n}=this.props;if(!e)return;const s=nT(e,n);VO(s,Vw)&&t!==s&&this.setState({reinstallCoreBackgroundTask:s},(()=>{ZI(s)&&this.handleOnCompleteReinstallCoreBackgroundTask()}))},this.handleCloseReinstallCoreConfirmationDialog=()=>this.setState({isReinstallCoreConfirmationDialogVisible:!1}),this.handleOpenReinstallCoreConfirmationDialog=()=>this.setState({isReinstallCoreConfirmationDialogVisible:!0}),this.handleCloseChecksumsVerificationResult=()=>this.setState({isChecksumsVerificationResultVisible:!1}),this.handleVerifyChecksums=()=>{const{checkWordPressIntegrityActions:{verifyChecksums:e},installation:{id:t}}=this.props;this.resetResults(),this.setState({isVerifyingChecksums:!0,isChecksumsVerificationResultVisible:!1}),e(t).then((({data:e})=>{const{status:t,data:n}=e;this.setState({isChecksumsVerificationResultVisible:!0,checksumsMatch:t===Mp,checksumsVerificationResult:n?Object.values(n):null})})).finally((()=>{this.setState({isVerifyingChecksums:!1})}))},this.handleReinstallCore=()=>{const{isReinstallCoreBackgroundTaskProcessing:e}=this.state,{checkWordPressIntegrityActions:{reinstallCore:t},appActions:{addErrorMessage:n},installation:{id:s}}=this.props;e||(this.resetResults(),this.setState({isReinstallCoreBackgroundTaskProcessing:!0}),t(s).then((e=>{const{status:t,data:s}=e;if(t!==Mp)e.message&&n(e.message);else{const{task:e}=s;if(!e)return;this.setState({reinstallCoreBackgroundTask:null,reinstallCoreBackgroundTaskId:e.id,isReinstallCoreBackgroundTaskProgressVisible:!0})}})).catch((()=>{this.setState({isReinstallCoreBackgroundTaskProcessing:!1})})))},this.resetResults=()=>{this.setState({isReinstallCoreBackgroundTaskProgressVisible:!1,isChecksumsVerificationResultVisible:!1})},this.getReinstallCoreConfirmationDialog=()=>{const{isReinstallCoreConfirmationDialogVisible:e}=this.state,{onOpenBackupDrawer:t}=this.props;return(0,L.jsx)(pV,{isOpen:e,installation:this.props.installation,onCloseReinstallCoreConfirmationDialog:this.handleCloseReinstallCoreConfirmationDialog,onReinstallCore:this.handleReinstallCore,onOpenBackupDrawer:()=>t("SITE_INTEGRITY_CHECKING")})},this.getChecksumsVerificationResult=()=>{const{isChecksumsVerificationResultVisible:e,checksumsMatch:t,checksumsVerificationResult:n}=this.state;return e?t?(0,L.jsx)(Tl,{intent:"success",onClose:this.handleCloseChecksumsVerificationResult,children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.successfullyVerifiedAgainstChecksums"})}):(0,L.jsxs)(Tl,{intent:"danger",onClose:this.handleCloseChecksumsVerificationResult,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.verificationAgainstChecksumsFailedWithErrors"})}),n&&n.map((e=>(0,L.jsx)("p",{children:e},xp(5))))]}):null},this.getReinstallCoreBackgroundTaskResults=()=>{if(!this.state.reinstallCoreBackgroundTask)return null;const{reinstallCoreBackgroundTask:{publicParams:{coreReinstallationResult:e}},isReinstallCoreBackgroundTaskResultsVisible:t}=this.state,{baseClassName:n}=this.props;return(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:`${n}__divider`}),(0,L.jsx)(Ns,{level:3,children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.coreReinstallationFinishedSuccessfullyHeader"})}),t&&e?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{onClick:()=>this.setState({isReinstallCoreBackgroundTaskResultsVisible:!1}),children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.hideReinstallCoreResults"})}),(0,L.jsxs)("div",{className:`${n}__reinstall-core-results`,children:[(0,L.jsx)("p",{children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.coreReinstallationFinishedSuccessfully"})}),e.map((e=>(0,L.jsx)("p",{children:e},xp(5))))]})]}):(0,L.jsx)(_e,{onClick:()=>this.setState({isReinstallCoreBackgroundTaskResultsVisible:!0}),children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.showReinstallCoreResults"})})]})},this.getReinstallCoreBackgroundTaskProgress=()=>{const{reinstallCoreBackgroundTask:e,isReinstallCoreBackgroundTaskProgressVisible:t}=this.state,{baseClassName:n}=this.props;if(!e)return null;if(!t)return null;if(eT(e))return this.getReinstallCoreBackgroundTaskResults();const s=XO(e);return(0,L.jsxs)("div",{children:[(0,L.jsx)("div",{className:`${n}__divider`}),(0,L.jsx)(Ns,{level:3,children:e.title}),(0,L.jsx)(ir,{children:s.map((e=>(0,L.jsx)(sr,{title:e.title,status:e.status,progress:e.progress,statusText:e.statusText,children:e.children},xp(5))))})]})},this.state={isVerifyingChecksums:!1,checksumsMatch:!1,checksumsVerificationResult:null,isChecksumsVerificationResultVisible:!1,isReinstallCoreConfirmationDialogVisible:!1,reinstallCoreBackgroundTaskId:null,reinstallCoreBackgroundTask:null,isReinstallCoreBackgroundTaskProgressVisible:!1,isReinstallCoreBackgroundTaskResultsVisible:!1,isReinstallCoreBackgroundTaskProcessing:!1,isLoading:!0}}componentDidUpdate(e){e.tasks!==this.props.tasks&&this.handleOnReceiveReinstallCoreBackgroundTaskData(),e.isOpen!==this.props.isOpen&&this.props.isOpen&&this.props.checkWordPressIntegrityActions.getIntegrity(this.props.installation.id).then((e=>{var t,n;t=e.tasks.reinstall,n=Vw,(null==t?void 0:t.code)===n&&(this.setState({reinstallCoreBackgroundTask:e.tasks.reinstall,reinstallCoreBackgroundTaskId:e.tasks.reinstall.id,isReinstallCoreBackgroundTaskProcessing:!0,isReinstallCoreBackgroundTaskProgressVisible:!0}),this.fetchAndProcessExistingReinstallCoreBackgroundTask(e.tasks.reinstall.id,e.tasks.reinstall.code))})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}render(){const{isLoading:e,isVerifyingChecksums:t,isReinstallCoreBackgroundTaskProcessing:n}=this.state,{onCloseCheckWordPressIntegrityDialog:s,wordPressOrgUrl:a,publicUrl:i,baseClassName:r,isOpen:o,installation:l}=this.props;return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Wi,{title:l.title,subtitle:zN(l.url),size:"sm",banner:`${i}images/check-wordpress-integrity.png`,isOpen:o,onClose:s,buttons:[(0,L.jsx)(ut,{className:`${r}__dialog-button`,onClick:this.handleVerifyChecksums,state:t?"loading":void 0,disabled:t||n||e,children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.verifyChecksumsButton"})},"verifyChecksumsButton"),(0,L.jsx)(ut,{className:`${r}__dialog-button`,onClick:this.handleOpenReinstallCoreConfirmationDialog,disabled:t||n||e,children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.reinstallCoreButton"})},"reinstallCoreButton")],cancelButton:{children:n?(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.minimizeButton"}):(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.closeButton"}),className:`${r}__dialog-button`,disabled:e},children:[e&&(0,L.jsx)(Qn,{}),!e&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ns,{level:3,children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.title"})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.description",params:{link:(0,L.jsx)(Us,{href:a,target:"_blank",children:(0,L.jsx)(pp,{content:"checkWordPressIntegrityDialog.wordPressOrgLink"})})}})}),this.getChecksumsVerificationResult(),this.getReinstallCoreBackgroundTaskProgress()]})]}),this.getReinstallCoreConfirmationDialog()]})}}bV.defaultProps={baseClassName:`${th}check-wordpress-integrity-dialog`,tasks:[]};const vV=Fc((e=>({wordPressOrgUrl:e.app.urls.checkWordPressIntegrityWordpressOrgUrl,tasks:e.backgroundTasks.tasks,publicUrl:e.app.urls.publicUrl})),(e=>({checkWordPressIntegrityActions:(0,Cb.zH)({verifyChecksums:hV,reinstallCore:mV,getIntegrity:fV},e),appActions:(0,Cb.zH)({addErrorMessage:ab},e),backgroundTasksActions:(0,Cb.zH)({fetchBackgroundTask:aT},e)})))(bV),yV=e=>{const{installation:t,baseClassName:n=`${th}installation-card-status-message`,onOpenSmartPhpUpdatesDrawer:s}=e;return(0,L.jsxs)(Tl,{intent:"warning",className:`${n}-phpWarning`,children:[(0,L.jsx)(pp,{content:"controllers.index.detail.warningPhpReachedEndOfLife",unsafe:!0})," ",(0,L.jsx)(kY,{installation:t,onOpenSmartPhpUpdatesDrawer:s})]})},SV=()=>(0,L.jsx)(Tl,{intent:"warning",children:(0,L.jsx)(pp,{content:"controllers.index.detail.outdatedInstance.description"})}),wV=e=>()=>bf.sync.getSyncSettings(e),xV=e=>t=>t({type:HC,task:e}),AV=e=>t=>bf.sync.syncInstance((e=>{const t=new FormData;return Object.keys(e).forEach((n=>t.append(n,`${e[n]}`))),t})(e)).then((({data:e})=>(t(eb(e,(()=>t(xV(e.data.task))))),e))),_V=fp("sync/SYNC_FINISHED","instanceId");function kV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,s)}return n}function jV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kV(Object(n),!0).forEach((function(t){(0,Y.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var CV=r(80296),IV=r(80045),TV=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],DV=r(23029),PV=r(92901),OV=r(85501),LV=r(53954);function MV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(MV=function(){return!!e})()}var EV=r(56822),RV=r(45458),UV=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),NV=Math.abs,FV=String.fromCharCode,BV=Object.assign;function YV(e){return e.trim()}function HV(e,t,n){return e.replace(t,n)}function VV(e,t){return e.indexOf(t)}function WV(e,t){return 0|e.charCodeAt(t)}function $V(e,t,n){return e.slice(t,n)}function zV(e){return e.length}function qV(e){return e.length}function GV(e,t){return t.push(e),e}var KV=1,QV=1,JV=0,XV=0,ZV=0,eW="";function tW(e,t,n,s,a,i,r){return{value:e,root:t,parent:n,type:s,props:a,children:i,line:KV,column:QV,length:r,return:""}}function nW(e,t){return BV(tW("",null,null,"",null,null,0),e,{length:-e.length},t)}function sW(){return ZV=XV>0?WV(eW,--XV):0,QV--,10===ZV&&(QV=1,KV--),ZV}function aW(){return ZV=XV<JV?WV(eW,XV++):0,QV++,10===ZV&&(QV=1,KV++),ZV}function iW(){return WV(eW,XV)}function rW(){return XV}function oW(e,t){return $V(eW,e,t)}function lW(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function cW(e){return KV=QV=1,JV=zV(eW=e),XV=0,[]}function uW(e){return eW="",e}function dW(e){return YV(oW(XV-1,mW(91===e?e+2:40===e?e+1:e)))}function pW(e){for(;(ZV=iW())&&ZV<33;)aW();return lW(e)>2||lW(ZV)>3?"":" "}function hW(e,t){for(;--t&&aW()&&!(ZV<48||ZV>102||ZV>57&&ZV<65||ZV>70&&ZV<97););return oW(e,rW()+(t<6&&32==iW()&&32==aW()))}function mW(e){for(;aW();)switch(ZV){case e:return XV;case 34:case 39:34!==e&&39!==e&&mW(ZV);break;case 40:41===e&&mW(e);break;case 92:aW()}return XV}function gW(e,t){for(;aW()&&e+ZV!==57&&(e+ZV!==84||47!==iW()););return"/*"+oW(t,XV-1)+"*"+FV(47===e?e:aW())}function fW(e){for(;!lW(iW());)aW();return oW(e,XV)}var bW="-ms-",vW="-moz-",yW="-webkit-",SW="comm",wW="rule",xW="decl",AW="@keyframes";function _W(e,t){for(var n="",s=qV(e),a=0;a<s;a++)n+=t(e[a],a,e,t)||"";return n}function kW(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case xW:return e.return=e.return||e.value;case SW:return"";case AW:return e.return=e.value+"{"+_W(e.children,s)+"}";case wW:e.value=e.props.join(",")}return zV(n=_W(e.children,s))?e.return=e.value+"{"+n+"}":""}function jW(e){return uW(CW("",null,null,null,[""],e=cW(e),0,[0],e))}function CW(e,t,n,s,a,i,r,o,l){for(var c=0,u=0,d=r,p=0,h=0,m=0,g=1,f=1,b=1,v=0,y="",S=a,w=i,x=s,A=y;f;)switch(m=v,v=aW()){case 40:if(108!=m&&58==WV(A,d-1)){-1!=VV(A+=HV(dW(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:A+=dW(v);break;case 9:case 10:case 13:case 32:A+=pW(m);break;case 92:A+=hW(rW()-1,7);continue;case 47:switch(iW()){case 42:case 47:GV(TW(gW(aW(),rW()),t,n),l);break;default:A+="/"}break;case 123*g:o[c++]=zV(A)*b;case 125*g:case 59:case 0:switch(v){case 0:case 125:f=0;case 59+u:-1==b&&(A=HV(A,/\f/g,"")),h>0&&zV(A)-d&&GV(h>32?DW(A+";",s,n,d-1):DW(HV(A," ","")+";",s,n,d-2),l);break;case 59:A+=";";default:if(GV(x=IW(A,t,n,c,u,a,o,y,S=[],w=[],d),i),123===v)if(0===u)CW(A,t,x,x,S,i,d,o,w);else switch(99===p&&110===WV(A,3)?100:p){case 100:case 108:case 109:case 115:CW(e,x,x,s&&GV(IW(e,x,x,0,0,a,o,y,a,S=[],d),w),a,w,d,o,s?S:w);break;default:CW(A,x,x,x,[""],w,0,o,w)}}c=u=h=0,g=b=1,y=A="",d=r;break;case 58:d=1+zV(A),h=m;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==sW())continue;switch(A+=FV(v),v*g){case 38:b=u>0?1:(A+="\f",-1);break;case 44:o[c++]=(zV(A)-1)*b,b=1;break;case 64:45===iW()&&(A+=dW(aW())),p=iW(),u=d=zV(y=A+=fW(rW())),v++;break;case 45:45===m&&2==zV(A)&&(g=0)}}return i}function IW(e,t,n,s,a,i,r,o,l,c,u){for(var d=a-1,p=0===a?i:[""],h=qV(p),m=0,g=0,f=0;m<s;++m)for(var b=0,v=$V(e,d+1,d=NV(g=r[m])),y=e;b<h;++b)(y=YV(g>0?p[b]+" "+v:HV(v,/&\f/g,p[b])))&&(l[f++]=y);return tW(e,t,n,0===a?wW:o,l,c,u)}function TW(e,t,n){return tW(e,t,n,SW,FV(ZV),$V(e,2,-2),0)}function DW(e,t,n,s){return tW(e,t,n,xW,$V(e,0,s),$V(e,s+1,-1),s)}var PW=function(e,t,n){for(var s=0,a=0;s=a,a=iW(),38===s&&12===a&&(t[n]=1),!lW(a);)aW();return oW(e,XV)},OW=new WeakMap,LW=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,s=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||OW.get(n))&&!s){OW.set(e,!0);for(var a=[],i=function(e,t){return uW(function(e,t){var n=-1,s=44;do{switch(lW(s)){case 0:38===s&&12===iW()&&(t[n]=1),e[n]+=PW(XV-1,t,n);break;case 2:e[n]+=dW(s);break;case 4:if(44===s){e[++n]=58===iW()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=FV(s)}}while(s=aW());return e}(cW(e),t))}(t,a),r=n.props,o=0,l=0;o<i.length;o++)for(var c=0;c<r.length;c++,l++)e.props[l]=a[o]?i[o].replace(/&\f/g,r[c]):r[c]+" "+i[o]}}},MW=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function EW(e,t){switch(function(e,t){return 45^WV(e,0)?(((t<<2^WV(e,0))<<2^WV(e,1))<<2^WV(e,2))<<2^WV(e,3):0}(e,t)){case 5103:return yW+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return yW+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return yW+e+vW+e+bW+e+e;case 6828:case 4268:return yW+e+bW+e+e;case 6165:return yW+e+bW+"flex-"+e+e;case 5187:return yW+e+HV(e,/(\w+).+(:[^]+)/,yW+"box-$1$2"+bW+"flex-$1$2")+e;case 5443:return yW+e+bW+"flex-item-"+HV(e,/flex-|-self/,"")+e;case 4675:return yW+e+bW+"flex-line-pack"+HV(e,/align-content|flex-|-self/,"")+e;case 5548:return yW+e+bW+HV(e,"shrink","negative")+e;case 5292:return yW+e+bW+HV(e,"basis","preferred-size")+e;case 6060:return yW+"box-"+HV(e,"-grow","")+yW+e+bW+HV(e,"grow","positive")+e;case 4554:return yW+HV(e,/([^-])(transform)/g,"$1"+yW+"$2")+e;case 6187:return HV(HV(HV(e,/(zoom-|grab)/,yW+"$1"),/(image-set)/,yW+"$1"),e,"")+e;case 5495:case 3959:return HV(e,/(image-set\([^]*)/,yW+"$1$`$1");case 4968:return HV(HV(e,/(.+:)(flex-)?(.*)/,yW+"box-pack:$3"+bW+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+yW+e+e;case 4095:case 3583:case 4068:case 2532:return HV(e,/(.+)-inline(.+)/,yW+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zV(e)-1-t>6)switch(WV(e,t+1)){case 109:if(45!==WV(e,t+4))break;case 102:return HV(e,/(.+:)(.+)-([^]+)/,"$1"+yW+"$2-$3$1"+vW+(108==WV(e,t+3)?"$3":"$2-$3"))+e;case 115:return~VV(e,"stretch")?EW(HV(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==WV(e,t+1))break;case 6444:switch(WV(e,zV(e)-3-(~VV(e,"!important")&&10))){case 107:return HV(e,":",":"+yW)+e;case 101:return HV(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+yW+(45===WV(e,14)?"inline-":"")+"box$3$1"+yW+"$2$3$1"+bW+"$2box$3")+e}break;case 5936:switch(WV(e,t+11)){case 114:return yW+e+bW+HV(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return yW+e+bW+HV(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return yW+e+bW+HV(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return yW+e+bW+e+e}return e}var RW=[function(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case xW:e.return=EW(e.value,e.length);break;case AW:return _W([nW(e,{value:HV(e.value,"@","@"+yW)})],s);case wW:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return _W([nW(e,{props:[HV(t,/:(read-\w+)/,":-moz-$1")]})],s);case"::placeholder":return _W([nW(e,{props:[HV(t,/:(plac\w+)/,":"+yW+"input-$1")]}),nW(e,{props:[HV(t,/:(plac\w+)/,":-moz-$1")]}),nW(e,{props:[HV(t,/:(plac\w+)/,bW+"input-$1")]})],s)}return""}))}}],UW=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var s,a,i=e.stylisPlugins||RW,r={},o=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)r[t[n]]=!0;o.push(e)}));var l,c,u,d,p=[kW,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[LW,MW].concat(i,p),u=qV(c),function(e,t,n,s){for(var a="",i=0;i<u;i++)a+=c[i](e,t,n,s)||"";return a});a=function(e,t,n,s){l=n,_W(jW(e?e+"{"+t.styles+"}":t.styles),h),s&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new UV({key:t,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:r,registered:{},insert:a};return m.sheet.hydrate(o),m},NW=function(e,t,n){var s=e.key+"-"+t.name;!1===n&&void 0===e.registered[s]&&(e.registered[s]=t.styles)},FW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function BW(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var YW=/[A-Z]|^ms/g,HW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,VW=function(e){return 45===e.charCodeAt(1)},WW=function(e){return null!=e&&"boolean"!=typeof e},$W=BW((function(e){return VW(e)?e:e.replace(YW,"-$&").toLowerCase()})),zW=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(HW,(function(e,t,n){return GW={name:t,styles:n,next:GW},t}))}return 1===FW[e]||VW(e)||"number"!=typeof t||0===t?t:t+"px"};function qW(e,t,n){if(null==n)return"";var s=n;if(void 0!==s.__emotion_styles)return s;switch(typeof n){case"boolean":return"";case"object":var a=n;if(1===a.anim)return GW={name:a.name,styles:a.styles,next:GW},a.name;var i=n;if(void 0!==i.styles){var r=i.next;if(void 0!==r)for(;void 0!==r;)GW={name:r.name,styles:r.styles,next:GW},r=r.next;return i.styles+";"}return function(e,t,n){var s="";if(Array.isArray(n))for(var a=0;a<n.length;a++)s+=qW(e,t,n[a])+";";else for(var i in n){var r=n[i];if("object"!=typeof r){var o=r;null!=t&&void 0!==t[o]?s+=i+"{"+t[o]+"}":WW(o)&&(s+=$W(i)+":"+zW(i,o)+";")}else if(!Array.isArray(r)||"string"!=typeof r[0]||null!=t&&void 0!==t[r[0]]){var l=qW(e,t,r);switch(i){case"animation":case"animationName":s+=$W(i)+":"+l+";";break;default:s+=i+"{"+l+"}"}}else for(var c=0;c<r.length;c++)WW(r[c])&&(s+=$W(i)+":"+zW(i,r[c])+";")}return s}(e,t,n);case"function":if(void 0!==e){var o=GW,l=n(e);return GW=o,qW(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var GW,KW=/label:\s*([^\s;{]+)\s*(;|$)/g;function QW(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var s=!0,a="";GW=void 0;var i=e[0];null==i||void 0===i.raw?(s=!1,a+=qW(n,t,i)):a+=i[0];for(var r=1;r<e.length;r++)a+=qW(n,t,e[r]),s&&(a+=i[r]);KW.lastIndex=0;for(var o,l="";null!==(o=KW.exec(a));)l+="-"+o[1];var c=function(e){for(var t,n=0,s=0,a=e.length;a>=4;++s,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(s+2))<<16;case 2:n^=(255&e.charCodeAt(s+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(s)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:GW}}var JW,XW,ZW=!!U.useInsertionEffect&&U.useInsertionEffect,e$=ZW||function(e){return e()},t$=(ZW||R.useLayoutEffect,R.createContext("undefined"!=typeof HTMLElement?UW({key:"css"}):null)),n$=(t$.Provider,function(e){return(0,R.forwardRef)((function(t,n){var s=(0,R.useContext)(t$);return e(t,s,n)}))}),s$=R.createContext({}),a$={}.hasOwnProperty,i$="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",r$=function(e){var t=e.cache,n=e.serialized,s=e.isStringTag;return NW(t,n,s),e$((function(){return function(e,t,n){NW(e,t,n);var s=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+s:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}(t,n,s)})),null},o$=n$((function(e,t,n){var s=e.css;"string"==typeof s&&void 0!==t.registered[s]&&(s=t.registered[s]);var a=e[i$],i=[s],r="";"string"==typeof e.className?r=function(e,t,n){var s="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(s+=n+" ")})),s}(t.registered,i,e.className):null!=e.className&&(r=e.className+" ");var o=QW(i,void 0,R.useContext(s$));r+=t.key+"-"+o.name;var l={};for(var c in e)a$.call(e,c)&&"css"!==c&&c!==i$&&(l[c]=e[c]);return l.className=r,n&&(l.ref=n),R.createElement(R.Fragment,null,R.createElement(r$,{cache:t,serialized:o,isStringTag:"string"==typeof a}),R.createElement(a,l))})),l$=o$,c$=function(e,t){var n=arguments;if(null==t||!a$.call(t,"css"))return R.createElement.apply(void 0,n);var s=n.length,a=new Array(s);a[0]=l$,a[1]=function(e,t){var n={};for(var s in t)a$.call(t,s)&&(n[s]=t[s]);return n[i$]=e,n}(e,t);for(var i=2;i<s;i++)a[i]=n[i];return R.createElement.apply(null,a)};function u$(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return QW(t)}JW=c$||(c$={}),XW||(XW=JW.JSX||(JW.JSX={}));var d$=r(82284),p$=r(7315),h$=R.useLayoutEffect,m$=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],g$=function(){};function f$(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function b$(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),a=2;a<n;a++)s[a-2]=arguments[a];var i=[].concat(s);if(t&&e)for(var r in t)t.hasOwnProperty(r)&&t[r]&&i.push("".concat(f$(e,r)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var v$=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===(0,d$.A)(e)&&null!==e?[e]:[];var t},y$=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,jV({},(0,IV.A)(e,m$))},S$=function(e,t,n){var s=e.cx,a=e.getStyles,i=e.getClassNames,r=e.className;return{css:a(t,e),className:s(null!=n?n:{},i(t,e),r)}};function w$(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function x$(e){return w$(e)?window.pageYOffset:e.scrollTop}function A$(e,t){w$(e)?window.scrollTo(0,t):e.scrollTop=t}function _$(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:g$,a=x$(e),i=t-a,r=0;!function t(){var o=function(e,t,n,s){return n*((e=e/s-1)*e*e+1)+t}(r+=10,a,i,n);A$(e,o),r<n?window.requestAnimationFrame(t):s(e)}()}function k$(e,t){var n=e.getBoundingClientRect(),s=t.getBoundingClientRect(),a=t.offsetHeight/3;s.bottom+a>n.bottom?A$(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):s.top-a<n.top&&A$(e,Math.max(t.offsetTop-a,0))}function j$(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var C$=!1,I$={get passive(){return C$=!0}},T$="undefined"!=typeof window?window:{};T$.addEventListener&&T$.removeEventListener&&(T$.addEventListener("p",g$,I$),T$.removeEventListener("p",g$,!1));var D$=C$;function P$(e){return null!=e}function O$(e,t,n){return e?t:n}var L$=["children","innerProps"],M$=["children","innerProps"];for(var E$,R$=function(e){return"auto"===e?"bottom":e},U$=(0,R.createContext)(null),N$=function(e){var t=e.children,n=e.minMenuHeight,s=e.maxMenuHeight,a=e.menuPlacement,i=e.menuPosition,r=e.menuShouldScrollIntoView,o=e.theme,l=((0,R.useContext)(U$)||{}).setPortalPlacement,c=(0,R.useRef)(null),u=(0,R.useState)(s),d=(0,CV.A)(u,2),p=d[0],h=d[1],m=(0,R.useState)(null),g=(0,CV.A)(m,2),f=g[0],b=g[1],v=o.spacing.controlHeight;return h$((function(){var e=c.current;if(e){var t="fixed"===i,o=function(e){var t=e.maxHeight,n=e.menuEl,s=e.minHeight,a=e.placement,i=e.shouldScroll,r=e.isFixedPosition,o=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,s=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&s.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,m=p.height,g=p.top,f=n.offsetParent.getBoundingClientRect().top,b=r||w$(u=l)?window.innerHeight:u.clientHeight,v=x$(l),y=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),w=f-S,x=b-g,A=w+v,_=d-v-g,k=h-b+v+y,j=v+g-S,C=160;switch(a){case"auto":case"bottom":if(x>=m)return{placement:"bottom",maxHeight:t};if(_>=m&&!r)return i&&_$(l,k,C),{placement:"bottom",maxHeight:t};if(!r&&_>=s||r&&x>=s)return i&&_$(l,k,C),{placement:"bottom",maxHeight:r?x-y:_-y};if("auto"===a||r){var I=t,T=r?w:A;return T>=s&&(I=Math.min(T-y-o,t)),{placement:"top",maxHeight:I}}if("bottom"===a)return i&&A$(l,k),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(A>=m&&!r)return i&&_$(l,j,C),{placement:"top",maxHeight:t};if(!r&&A>=s||r&&w>=s){var D=t;return(!r&&A>=s||r&&w>=s)&&(D=r?w-S:A-S),i&&_$(l,j,C),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:s,menuEl:e,minHeight:n,placement:a,shouldScroll:r&&!t,isFixedPosition:t,controlHeight:v});h(o.maxHeight),b(o.placement),null==l||l(o.placement)}}),[s,a,i,r,n,l,v]),t({ref:c,placerProps:jV(jV({},e),{},{placement:f||R$(a),maxHeight:p})})},F$=function(e,t){var n=e.theme,s=n.spacing.baseUnit,a=n.colors;return jV({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*s,"px ").concat(3*s,"px")})},B$=F$,Y$=F$,H$=["size"],V$=["innerProps","isRtl","size"],W$={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},$$=function(e){var t=e.size,n=(0,IV.A)(e,H$);return c$("svg",(0,b.A)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:W$},n))},z$=function(e){return c$($$,(0,b.A)({size:20},e),c$("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},q$=function(e){return c$($$,(0,b.A)({size:20},e),c$("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},G$=function(e,t){var n=e.isFocused,s=e.theme,a=s.spacing.baseUnit,i=s.colors;return jV({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a,":hover":{color:n?i.neutral80:i.neutral40}})},K$=G$,Q$=G$,J$=function(){var e=u$.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(E$||(E$=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"]))),X$=function(e){var t=e.delay,n=e.offset;return c$("span",{css:u$({animation:"".concat(J$," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Z$=["data"],ez=["innerRef","isDisabled","isHidden","inputClassName"],tz={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},nz={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":jV({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},tz)},sz=function(e){return jV({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},tz)},az=function(e){var t=e.children,n=e.innerProps;return c$("div",n,t)},iz={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return c$("div",(0,b.A)({},S$(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||c$(z$,null))},Control:function(e){var t=e.children,n=e.isDisabled,s=e.isFocused,a=e.innerRef,i=e.innerProps,r=e.menuIsOpen;return c$("div",(0,b.A)({ref:a},S$(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":s,"control--menu-is-open":r}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return c$("div",(0,b.A)({},S$(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||c$(q$,null))},DownChevron:q$,CrossIcon:z$,Group:function(e){var t=e.children,n=e.cx,s=e.getStyles,a=e.getClassNames,i=e.Heading,r=e.headingProps,o=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return c$("div",(0,b.A)({},S$(e,"group",{group:!0}),o),c$(i,(0,b.A)({},r,{selectProps:u,theme:c,getStyles:s,getClassNames:a,cx:n}),l),c$("div",null,t))},GroupHeading:function(e){var t=y$(e);t.data;var n=(0,IV.A)(t,Z$);return c$("div",(0,b.A)({},S$(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return c$("div",(0,b.A)({},S$(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return c$("span",(0,b.A)({},t,S$(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,s=y$(e),a=s.innerRef,i=s.isDisabled,r=s.isHidden,o=s.inputClassName,l=(0,IV.A)(s,ez);return c$("div",(0,b.A)({},S$(e,"input",{"input-container":!0}),{"data-value":n||""}),c$("input",(0,b.A)({className:t({input:!0},o),ref:a,style:sz(r),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,s=e.size,a=void 0===s?4:s,i=(0,IV.A)(e,V$);return c$("div",(0,b.A)({},S$(jV(jV({},i),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),c$(X$,{delay:0,offset:n}),c$(X$,{delay:160,offset:!0}),c$(X$,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,s=e.innerProps;return c$("div",(0,b.A)({},S$(e,"menu",{menu:!0}),{ref:n},s),t)},MenuList:function(e){var t=e.children,n=e.innerProps,s=e.innerRef,a=e.isMulti;return c$("div",(0,b.A)({},S$(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:s},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,s=e.controlElement,a=e.innerProps,i=e.menuPlacement,r=e.menuPosition,o=(0,R.useRef)(null),l=(0,R.useRef)(null),c=(0,R.useState)(R$(i)),u=(0,CV.A)(c,2),d=u[0],p=u[1],h=(0,R.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=(0,R.useState)(null),g=(0,CV.A)(m,2),f=g[0],v=g[1],y=(0,R.useCallback)((function(){if(s){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(s),t="fixed"===r?0:window.pageYOffset,n=e[d]+t;n===(null==f?void 0:f.offset)&&e.left===(null==f?void 0:f.rect.left)&&e.width===(null==f?void 0:f.rect.width)||v({offset:n,rect:e})}}),[s,r,d,null==f?void 0:f.offset,null==f?void 0:f.rect.left,null==f?void 0:f.rect.width]);h$((function(){y()}),[y]);var S=(0,R.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),s&&o.current&&(l.current=(0,p$.ll)(s,o.current,y,{elementResize:"ResizeObserver"in window}))}),[s,y]);h$((function(){S()}),[S]);var w=(0,R.useCallback)((function(e){o.current=e,S()}),[S]);if(!t&&"fixed"!==r||!f)return null;var x=c$("div",(0,b.A)({ref:w},S$(jV(jV({},e),{},{offset:f.offset,position:r,rect:f.rect}),"menuPortal",{"menu-portal":!0}),a),n);return c$(U$.Provider,{value:h},t?(0,$e.createPortal)(x,t):x)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,s=e.innerProps,a=(0,IV.A)(e,M$);return c$("div",(0,b.A)({},S$(jV(jV({},a),{},{children:n,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,s=e.innerProps,a=(0,IV.A)(e,L$);return c$("div",(0,b.A)({},S$(jV(jV({},a),{},{children:n,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),n)},MultiValue:function(e){var t=e.children,n=e.components,s=e.data,a=e.innerProps,i=e.isDisabled,r=e.removeProps,o=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return c$(l,{data:s,innerProps:jV(jV({},S$(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),a),selectProps:o},c$(c,{data:s,innerProps:jV({},S$(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},t),c$(u,{data:s,innerProps:jV(jV({},S$(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},r),selectProps:o}))},MultiValueContainer:az,MultiValueLabel:az,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return c$("div",(0,b.A)({role:"button"},n),t||c$(z$,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,s=e.isFocused,a=e.isSelected,i=e.innerRef,r=e.innerProps;return c$("div",(0,b.A)({},S$(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":s,"option--is-selected":a}),{ref:i,"aria-disabled":n},r),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return c$("div",(0,b.A)({},S$(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,s=e.isDisabled,a=e.isRtl;return c$("div",(0,b.A)({},S$(e,"container",{"--is-disabled":s,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,s=e.innerProps;return c$("div",(0,b.A)({},S$(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),s),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,s=e.isMulti,a=e.hasValue;return c$("div",(0,b.A)({},S$(e,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":a}),n),t)}},rz={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},oz=function(e){return c$("span",(0,b.A)({css:rz},e))},lz={guidance:function(e){var t=e.isSearchable,n=e.isMulti,s=e.tabSelectsValue,a=e.context,i=e.isInitialFocus;switch(a){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,s=void 0===n?"":n,a=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(s,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,s=e.options,a=e.label,i=void 0===a?"":a,r=e.selectValue,o=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&r)return"value ".concat(i," focused, ").concat(u(r,n),".");if("menu"===t&&c){var d=o?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(s,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},cz=function(e){var t=e.ariaSelection,n=e.focusedOption,s=e.focusedValue,a=e.focusableOptions,i=e.isFocused,r=e.selectValue,o=e.selectProps,l=e.id,c=e.isAppleDevice,u=o.ariaLiveMessages,d=o.getOptionLabel,p=o.inputValue,h=o.isMulti,m=o.isOptionDisabled,g=o.isSearchable,f=o.menuIsOpen,b=o.options,v=o.screenReaderStatus,y=o.tabSelectsValue,S=o.isLoading,w=o["aria-label"],x=o["aria-live"],A=(0,R.useMemo)((function(){return jV(jV({},lz),u||{})}),[u]),_=(0,R.useMemo)((function(){var e,n="";if(t&&A.onChange){var s=t.option,a=t.options,i=t.removedValue,o=t.removedValues,l=t.value,c=i||s||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",p=a||o||void 0,h=p?p.map(d):[],g=jV({isDisabled:c&&m(c,r),label:u,labels:h},t);n=A.onChange(g)}return n}),[t,A,m,r,d]),k=(0,R.useMemo)((function(){var e="",t=n||s,i=!!(n&&r&&r.includes(n));if(t&&A.onFocus){var o={focused:t,label:d(t),isDisabled:m(t,r),isSelected:i,options:a,context:t===n?"menu":"value",selectValue:r,isAppleDevice:c};e=A.onFocus(o)}return e}),[n,s,d,m,A,a,r,c]),j=(0,R.useMemo)((function(){var e="";if(f&&b.length&&!S&&A.onFilter){var t=v({count:a.length});e=A.onFilter({inputValue:p,resultsMessage:t})}return e}),[a,p,f,A,b,v,S]),C="initial-input-focus"===(null==t?void 0:t.action),I=(0,R.useMemo)((function(){var e="";if(A.guidance){var t=s?"value":f?"menu":"input";e=A.guidance({"aria-label":w,context:t,isDisabled:n&&m(n,r),isMulti:h,isSearchable:g,tabSelectsValue:y,isInitialFocus:C})}return e}),[w,n,s,h,m,g,f,A,r,y,C]),T=c$(R.Fragment,null,c$("span",{id:"aria-selection"},_),c$("span",{id:"aria-focused"},k),c$("span",{id:"aria-results"},j),c$("span",{id:"aria-guidance"},I));return c$(R.Fragment,null,c$(oz,{id:l},C&&T),c$(oz,{"aria-live":x,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!C&&T))},uz=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],dz=new RegExp("["+uz.map((function(e){return e.letters})).join("")+"]","g"),pz={},hz=0;hz<uz.length;hz++)for(var mz=uz[hz],gz=0;gz<mz.letters.length;gz++)pz[mz.letters[gz]]=mz.base;var fz=function(e){return e.replace(dz,(function(e){return pz[e]}))},bz=Kr(fz),vz=function(e){return e.replace(/^\s+|\s+$/g,"")},yz=function(e){return"".concat(e.label," ").concat(e.value)},Sz=["innerRef"];function wz(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var a=Object.entries(e).filter((function(e){var t=(0,CV.A)(e,1)[0];return!n.includes(t)}));return a.reduce((function(e,t){var n=(0,CV.A)(t,2),s=n[0],a=n[1];return e[s]=a,e}),{})}((0,IV.A)(e,Sz),"onExited","in","enter","exit","appear");return c$("input",(0,b.A)({ref:t},n,{css:u$({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var xz=["boxSizing","height","overflow","paddingRight","position"],Az={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function _z(e){e.cancelable&&e.preventDefault()}function kz(e){e.stopPropagation()}function jz(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Cz(){return"ontouchstart"in window||navigator.maxTouchPoints}var Iz=!("undefined"==typeof window||!window.document||!window.document.createElement),Tz=0,Dz={capture:!1,passive:!1},Pz=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Oz={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Lz(e){var t=e.children,n=e.lockEnabled,s=e.captureEnabled,a=function(e){var t=e.isEnabled,n=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,i=e.onTopLeave,r=(0,R.useRef)(!1),o=(0,R.useRef)(!1),l=(0,R.useRef)(0),c=(0,R.useRef)(null),u=(0,R.useCallback)((function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,h=c.current,m=t>0,g=d-p-u,f=!1;g>t&&r.current&&(s&&s(e),r.current=!1),m&&o.current&&(i&&i(e),o.current=!1),m&&t>g?(n&&!r.current&&n(e),h.scrollTop=d,f=!0,r.current=!0):!m&&-t>u&&(a&&!o.current&&a(e),h.scrollTop=0,f=!0,o.current=!0),f&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,s,a,i]),d=(0,R.useCallback)((function(e){u(e,e.deltaY)}),[u]),p=(0,R.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,R.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)}),[u]),m=(0,R.useCallback)((function(e){if(e){var t=!!D$&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),g=(0,R.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,R.useEffect)((function(){if(t){var e=c.current;return m(e),function(){g(e)}}}),[t,m,g]),function(e){c.current=e}}({isEnabled:void 0===s||s,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,s=void 0===n||n,a=(0,R.useRef)({}),i=(0,R.useRef)(null),r=(0,R.useCallback)((function(e){if(Iz){var t=document.body,n=t&&t.style;if(s&&xz.forEach((function(e){var t=n&&n[e];a.current[e]=t})),s&&Tz<1){var i=parseInt(a.current.paddingRight,10)||0,r=document.body?document.body.clientWidth:0,o=window.innerWidth-r+i||0;Object.keys(Az).forEach((function(e){var t=Az[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(o,"px"))}t&&Cz()&&(t.addEventListener("touchmove",_z,Dz),e&&(e.addEventListener("touchstart",jz,Dz),e.addEventListener("touchmove",kz,Dz))),Tz+=1}}),[s]),o=(0,R.useCallback)((function(e){if(Iz){var t=document.body,n=t&&t.style;Tz=Math.max(Tz-1,0),s&&Tz<1&&xz.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&Cz()&&(t.removeEventListener("touchmove",_z,Dz),e&&(e.removeEventListener("touchstart",jz,Dz),e.removeEventListener("touchmove",kz,Dz)))}}),[s]);return(0,R.useEffect)((function(){if(t){var e=i.current;return r(e),function(){o(e)}}}),[t,r,o]),function(e){i.current=e}}({isEnabled:n});return c$(R.Fragment,null,n&&c$("div",{onClick:Pz,css:Oz}),t((function(e){a(e),i(e)})))}var Mz={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Ez=function(e){var t=e.name,n=e.onFocus;return c$("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:Mz,value:"",onChange:function(){}})};function Rz(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Uz(){return Rz(/^Mac/i)}var Nz={clearIndicator:Q$,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,s=e.isFocused,a=e.theme,i=a.colors,r=a.borderRadius;return jV({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:s?i.primary:i.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:s?i.primary:i.neutral30}})},dropdownIndicator:K$,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,s=n.colors,a=n.spacing;return jV({label:"group",cursor:"default",display:"block"},t?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,s=e.theme,a=s.spacing.baseUnit,i=s.colors;return jV({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var n=e.isDisabled,s=e.value,a=e.theme,i=a.spacing,r=a.colors;return jV(jV({visibility:n?"hidden":"visible",transform:s?"translateZ(0)":""},nz),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:r.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,s=e.size,a=e.theme,i=a.colors,r=a.spacing.baseUnit;return jV({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*r})},loadingMessage:Y$,menu:function(e,t){var n,s=e.placement,a=e.theme,i=a.borderRadius,r=a.spacing,o=a.colors;return jV((n={label:"menu"},(0,Y.A)(n,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(s),"100%"),(0,Y.A)(n,"position","absolute"),(0,Y.A)(n,"width","100%"),(0,Y.A)(n,"zIndex",1),n),t?{}:{backgroundColor:o.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:r.menuGutter,marginTop:r.menuGutter})},menuList:function(e,t){var n=e.maxHeight,s=e.theme.spacing.baseUnit;return jV({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:s,paddingTop:s})},menuPortal:function(e){var t=e.rect,n=e.offset,s=e.position;return{left:t.left,position:s,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,s=n.spacing,a=n.borderRadius,i=n.colors;return jV({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:a/2,margin:s.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,s=n.borderRadius,a=n.colors,i=e.cropWithEllipsis;return jV({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:s/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,s=n.spacing,a=n.borderRadius,i=n.colors,r=e.isFocused;return jV({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:r?i.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:B$,option:function(e,t){var n=e.isDisabled,s=e.isFocused,a=e.isSelected,i=e.theme,r=i.spacing,o=i.colors;return jV({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?o.primary:s?o.primary25:"transparent",color:n?o.neutral20:a?o.neutral0:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?o.primary:o.primary50}})},placeholder:function(e,t){var n=e.theme,s=n.spacing,a=n.colors;return jV({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,s=e.theme,a=s.spacing,i=s.colors;return jV({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,s=e.isMulti,a=e.hasValue,i=e.selectProps.controlShouldRenderValue;return jV({alignItems:"center",display:s&&a&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Fz={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Bz={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:j$(),captureMenuScroll:!j$(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=jV({ignoreCase:!0,ignoreAccents:!0,stringify:yz,trim:!0,matchFrom:"any"},void 0),s=n.ignoreCase,a=n.ignoreAccents,i=n.stringify,r=n.trim,o=n.matchFrom,l=r?vz(t):t,c=r?vz(i(e)):i(e);return s&&(l=l.toLowerCase(),c=c.toLowerCase()),a&&(l=bz(l),c=fz(c)),"start"===o?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Yz(e,t,n,s){return{type:"option",data:t,isDisabled:Kz(e,t,n),isSelected:Qz(e,t,n),label:qz(e,t),value:Gz(e,t),index:s}}function Hz(e,t){return e.options.map((function(n,s){if("options"in n){var a=n.options.map((function(n,s){return Yz(e,n,t,s)})).filter((function(t){return $z(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:s}:void 0}var i=Yz(e,n,t,s);return $z(e,i)?i:void 0})).filter(P$)}function Vz(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,(0,RV.A)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Wz(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,(0,RV.A)(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function $z(e,t){var n=e.inputValue,s=void 0===n?"":n,a=t.data,i=t.isSelected,r=t.label,o=t.value;return(!Xz(e)||!i)&&Jz(e,{label:r,value:o,data:a},s)}var zz=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},qz=function(e,t){return e.getOptionLabel(t)},Gz=function(e,t){return e.getOptionValue(t)};function Kz(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Qz(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var s=Gz(e,t);return n.some((function(t){return Gz(e,t)===s}))}function Jz(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Xz=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Zz=1,eq=function(e){(0,OV.A)(n,e);var t=function(e){var t=MV();return function(){var n,s=(0,LV.A)(e);if(t){var a=(0,LV.A)(this).constructor;n=Reflect.construct(s,arguments,a)}else n=s.apply(this,arguments);return(0,EV.A)(this,n)}}(n);function n(e){var s;if((0,DV.A)(this,n),(s=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(e){s.controlRef=e},s.focusedOptionRef=null,s.getFocusedOptionRef=function(e){s.focusedOptionRef=e},s.menuListRef=null,s.getMenuListRef=function(e){s.menuListRef=e},s.inputRef=null,s.getInputRef=function(e){s.inputRef=e},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(e,t){var n=s.props,a=n.onChange,i=n.name;t.name=i,s.ariaOnChange(e,t),a(e,t)},s.setValue=function(e,t,n){var a=s.props,i=a.closeMenuOnSelect,r=a.isMulti,o=a.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:o}),i&&(s.setState({inputIsHiddenAfterUpdate:!r}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(e,{action:t,option:n})},s.selectOption=function(e){var t=s.props,n=t.blurInputOnSelect,a=t.isMulti,i=t.name,r=s.state.selectValue,o=a&&s.isOptionSelected(e,r),l=s.isOptionDisabled(e,r);if(o){var c=s.getOptionValue(e);s.setValue(r.filter((function(e){return s.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void s.ariaOnChange(e,{action:"select-option",option:e,name:i});a?s.setValue([].concat((0,RV.A)(r),[e]),"select-option",e):s.setValue(e,"select-option")}n&&s.blurInput()},s.removeValue=function(e){var t=s.props.isMulti,n=s.state.selectValue,a=s.getOptionValue(e),i=n.filter((function(e){return s.getOptionValue(e)!==a})),r=O$(t,i,i[0]||null);s.onChange(r,{action:"remove-value",removedValue:e}),s.focusInput()},s.clearValue=function(){var e=s.state.selectValue;s.onChange(O$(s.props.isMulti,[],null),{action:"clear",removedValues:e})},s.popValue=function(){var e=s.props.isMulti,t=s.state.selectValue,n=t[t.length-1],a=t.slice(0,t.length-1),i=O$(e,a,a[0]||null);n&&s.onChange(i,{action:"pop-value",removedValue:n})},s.getFocusedOptionId=function(e){return zz(s.state.focusableOptionsWithIds,e)},s.getFocusableOptionsWithIds=function(){return Wz(Hz(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b$.apply(void 0,[s.props.classNamePrefix].concat(t))},s.getOptionLabel=function(e){return qz(s.props,e)},s.getOptionValue=function(e){return Gz(s.props,e)},s.getStyles=function(e,t){var n=s.props.unstyled,a=Nz[e](t,n);a.boxSizing="border-box";var i=s.props.styles[e];return i?i(a,t):a},s.getClassNames=function(e,t){var n,a;return null===(n=(a=s.props.classNames)[e])||void 0===n?void 0:n.call(a,t)},s.getElementId=function(e){return"".concat(s.state.instancePrefix,"-").concat(e)},s.getComponents=function(){return e=s.props,jV(jV({},iz),e.components);var e},s.buildCategorizedOptions=function(){return Hz(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return Vz(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(e,t){s.setState({ariaSelection:jV({value:e},t)})},s.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(e){s.blockOptionHover=!1},s.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&s.onMenuClose():t&&s.openMenu("first"):(t&&(s.openAfterFocus=!0),s.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},s.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||s.props.isDisabled)){var t=s.props,n=t.isMulti,a=t.menuIsOpen;s.focusInput(),a?(s.setState({inputIsHiddenAfterUpdate:!n}),s.onMenuClose()):s.openMenu("first"),e.preventDefault()}},s.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(s.clearValue(),e.preventDefault(),s.openAfterFocus=!1,"touchend"===e.type?s.focusInput():setTimeout((function(){return s.focusInput()})))},s.onScroll=function(e){"boolean"==typeof s.props.closeMenuOnScroll?e.target instanceof HTMLElement&&w$(e.target)&&s.props.onMenuClose():"function"==typeof s.props.closeMenuOnScroll&&s.props.closeMenuOnScroll(e)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(s.initialTouchX=n.clientX,s.initialTouchY=n.clientY,s.userIsDragging=!1)},s.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var a=Math.abs(n.clientX-s.initialTouchX),i=Math.abs(n.clientY-s.initialTouchY);s.userIsDragging=a>5||i>5}},s.onTouchEnd=function(e){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(e.target)&&s.menuListRef&&!s.menuListRef.contains(e.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(e){s.userIsDragging||s.onControlMouseDown(e)},s.onClearIndicatorTouchEnd=function(e){s.userIsDragging||s.onClearIndicatorMouseDown(e)},s.onDropdownIndicatorTouchEnd=function(e){s.userIsDragging||s.onDropdownIndicatorMouseDown(e)},s.handleInputChange=function(e){var t=s.props.inputValue,n=e.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(n,{action:"input-change",prevInputValue:t}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(e){s.props.onFocus&&s.props.onFocus(e),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(e){var t=s.props.inputValue;s.menuListRef&&s.menuListRef.contains(document.activeElement)?s.inputRef.focus():(s.props.onBlur&&s.props.onBlur(e),s.onInputChange("",{action:"input-blur",prevInputValue:t}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1}))},s.onOptionHover=function(e){if(!s.blockOptionHover&&s.state.focusedOption!==e){var t=s.getFocusableOptions().indexOf(e);s.setState({focusedOption:e,focusedOptionId:t>-1?s.getFocusedOptionId(e):null})}},s.shouldHideSelectedOptions=function(){return Xz(s.props)},s.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),s.focus()},s.onKeyDown=function(e){var t=s.props,n=t.isMulti,a=t.backspaceRemovesValue,i=t.escapeClearsValue,r=t.inputValue,o=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,h=s.state,m=h.focusedOption,g=h.focusedValue,f=h.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(s.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||r)return;s.focusValue("previous");break;case"ArrowRight":if(!n||r)return;s.focusValue("next");break;case"Delete":case"Backspace":if(r)return;if(g)s.removeValue(g);else{if(!a)return;n?s.popValue():o&&s.clearValue()}break;case"Tab":if(s.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&s.isOptionSelected(m,f))return;s.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(s.isComposing)return;s.selectOption(m);break}return;case"Escape":c?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:r}),s.onMenuClose()):o&&i&&s.clearValue();break;case" ":if(r)return;if(!c){s.openMenu("first");break}if(!m)return;s.selectOption(m);break;case"ArrowUp":c?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":c?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!c)return;s.focusOption("pageup");break;case"PageDown":if(!c)return;s.focusOption("pagedown");break;case"Home":if(!c)return;s.focusOption("first");break;case"End":if(!c)return;s.focusOption("last");break;default:return}e.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++Zz),s.state.selectValue=v$(e.value),e.menuIsOpen&&s.state.selectValue.length){var a=s.getFocusableOptionsWithIds(),i=s.buildFocusableOptions(),r=i.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=a,s.state.focusedOption=i[r],s.state.focusedOptionId=zz(a,i[r])}return s}return(0,PV.A)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&k$(this.menuListRef,this.focusedOptionRef),(Uz()||Rz(/^iPhone/i)||Rz(/^iPad/i)||Uz()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,s=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&s&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(k$(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,s=n.selectValue,a=n.isFocused,i=this.buildFocusableOptions(),r="first"===e?0:i.length-1;if(!this.props.isMulti){var o=i.indexOf(s[0]);o>-1&&(r=o)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[r],focusedOptionId:this.getFocusedOptionId(i[r])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,s=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(s);s||(a=-1);var i=n.length-1,r=-1;if(n.length){switch(e){case"previous":r=0===a?0:-1===a?i:a-1;break;case"next":a>-1&&a<i&&(r=a+1)}this.setState({inputIsHidden:-1!==r,focusedValue:n[r]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,s=this.getFocusableOptions();if(s.length){var a=0,i=s.indexOf(n);n||(i=-1),"up"===e?a=i>0?i-1:s.length-1:"down"===e?a=(i+1)%s.length:"pageup"===e?(a=i-t)<0&&(a=0):"pagedown"===e?(a=i+t)>s.length-1&&(a=s.length-1):"last"===e&&(a=s.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:s[a],focusedValue:null,focusedOptionId:this.getFocusedOptionId(s[a])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Fz):jV(jV({},Fz),this.props.theme):Fz}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,s=this.getClassNames,a=this.getValue,i=this.selectOption,r=this.setValue,o=this.props,l=o.isMulti,c=o.isRtl,u=o.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:s,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:o,setValue:r,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Kz(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Qz(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Jz(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,s=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:s})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,s=e.inputId,a=e.inputValue,i=e.tabIndex,r=e.form,o=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,h=this.commonProps,m=s||this.getElementId("input"),g=jV(jV(jV({"aria-autocomplete":"list","aria-expanded":o,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},o&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?R.createElement(c,(0,b.A)({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:m,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:r,type:"text",value:a},g)):R.createElement(wz,(0,b.A)({id:m,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:g$,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:r,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,s=t.MultiValueContainer,a=t.MultiValueLabel,i=t.MultiValueRemove,r=t.SingleValue,o=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,h=c.inputValue,m=c.placeholder,g=this.state,f=g.selectValue,v=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!u)return h?null:R.createElement(o,(0,b.A)({},l,{key:"placeholder",isDisabled:d,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return f.map((function(t,r){var o=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return R.createElement(n,(0,b.A)({},l,{components:{Container:s,Label:a,Remove:i},isFocused:o,isDisabled:d,key:c,index:r,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var S=f[0];return R.createElement(r,(0,b.A)({},l,{data:S,isDisabled:d}),this.formatOptionLabel(S,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,s=n.isDisabled,a=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||s||!this.hasValue()||a)return null;var r={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(e,(0,b.A)({},t,{innerProps:r,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,s=n.isDisabled,a=n.isLoading,i=this.state.isFocused;return e&&a?R.createElement(e,(0,b.A)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:s,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var s=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused;return R.createElement(n,(0,b.A)({},s,{isDisabled:a,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,s=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return R.createElement(e,(0,b.A)({},t,{innerProps:a,isDisabled:n,isFocused:s}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,s=t.GroupHeading,a=t.Menu,i=t.MenuList,r=t.MenuPortal,o=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,m=p.inputValue,g=p.isLoading,f=p.loadingMessage,v=p.minMenuHeight,y=p.maxMenuHeight,S=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,A=p.menuPortalTarget,_=p.menuShouldBlockScroll,k=p.menuShouldScrollIntoView,j=p.noOptionsMessage,C=p.onMenuScrollToTop,I=p.onMenuScrollToBottom;if(!S)return null;var T,D=function(t,n){var s=t.type,a=t.data,i=t.isDisabled,r=t.isSelected,o=t.label,l=t.value,p=d===a,h=i?void 0:function(){return e.onOptionHover(a)},m=i?void 0:function(){return e.selectOption(a)},g="".concat(e.getElementId("option"),"-").concat(n),f={id:g,onClick:m,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:r};return R.createElement(c,(0,b.A)({},u,{innerProps:f,data:a,isDisabled:i,isSelected:r,key:g,label:o,type:s,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())T=this.getCategorizedOptions().map((function(t){if("group"===t.type){var a=t.data,i=t.options,r=t.index,o="".concat(e.getElementId("group"),"-").concat(r),l="".concat(o,"-heading");return R.createElement(n,(0,b.A)({},u,{key:o,data:a,options:i,Heading:s,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return D(e,"".concat(r,"-").concat(e.index))})))}if("option"===t.type)return D(t,"".concat(t.index))}));else if(g){var P=f({inputValue:m});if(null===P)return null;T=R.createElement(o,u,P)}else{var O=j({inputValue:m});if(null===O)return null;T=R.createElement(l,u,O)}var L={minMenuHeight:v,maxMenuHeight:y,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:k},M=R.createElement(N$,(0,b.A)({},u,L),(function(t){var n=t.ref,s=t.placerProps,r=s.placement,o=s.maxHeight;return R.createElement(a,(0,b.A)({},u,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:r}),R.createElement(Lz,{captureEnabled:h,onTopArrive:C,onBottomArrive:I,lockEnabled:_},(function(t){return R.createElement(i,(0,b.A)({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:o,focusedOption:d}),T)})))}));return A||"fixed"===x?R.createElement(r,(0,b.A)({},u,{appendTo:A,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),M):M}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,s=t.isDisabled,a=t.isMulti,i=t.name,r=t.required,o=this.state.selectValue;if(r&&!this.hasValue()&&!s)return R.createElement(Ez,{name:i,onFocus:this.onValueInputFocus});if(i&&!s){if(a){if(n){var l=o.map((function(t){return e.getOptionValue(t)})).join(n);return R.createElement("input",{name:i,type:"hidden",value:l})}var c=o.length>0?o.map((function(t,n){return R.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):R.createElement("input",{name:i,type:"hidden",value:""});return R.createElement("div",null,c)}var u=o[0]?this.getOptionValue(o[0]):"";return R.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,s=t.focusedOption,a=t.focusedValue,i=t.isFocused,r=t.selectValue,o=this.getFocusableOptions();return R.createElement(cz,(0,b.A)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:s,focusedValue:a,isFocused:i,selectValue:r,focusableOptions:o,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,s=e.SelectContainer,a=e.ValueContainer,i=this.props,r=i.className,o=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return R.createElement(s,(0,b.A)({},d,{className:r,innerProps:{id:o,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),R.createElement(t,(0,b.A)({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),R.createElement(a,(0,b.A)({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),R.createElement(n,(0,b.A)({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,s=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,r=t.isFocused,o=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,m=v$(u),g={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var f=d?function(e,t){return Vz(Hz(e,t))}(e,m):[],b=d?Wz(Hz(e,m),"".concat(l,"-option")):[],v=s?function(e,t){var n=e.focusedValue,s=e.selectValue.indexOf(n);if(s>-1){if(t.indexOf(n)>-1)return n;if(s<t.length)return t[s]}return null}(t,m):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);g={selectValue:m,focusedOption:y,focusedOptionId:zz(b,y),focusableOptionsWithIds:b,focusedValue:v,clearFocusValueOnUpdate:!1}}var S=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},w=i,x=r&&o;return r&&!x&&(w={value:O$(h,m,m[0]||null),options:m,action:"initial-input-focus"},x=!o),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),jV(jV(jV({},g),S),{},{prevProps:e,ariaSelection:w,prevWasFocused:x})}}]),n}(R.Component);eq.defaultProps=Bz;var tq=(0,R.forwardRef)((function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,s=e.defaultMenuIsOpen,a=void 0!==s&&s,i=e.defaultValue,r=void 0===i?null:i,o=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,m=(0,IV.A)(e,TV),g=(0,R.useState)(void 0!==o?o:n),f=(0,CV.A)(g,2),b=f[0],v=f[1],y=(0,R.useState)(void 0!==l?l:a),S=(0,CV.A)(y,2),w=S[0],x=S[1],A=(0,R.useState)(void 0!==h?h:r),_=(0,CV.A)(A,2),k=_[0],j=_[1],C=(0,R.useCallback)((function(e,t){"function"==typeof c&&c(e,t),j(e)}),[c]),I=(0,R.useCallback)((function(e,t){var n;"function"==typeof u&&(n=u(e,t)),v(void 0!==n?n:e)}),[u]),T=(0,R.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),D=(0,R.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),P=void 0!==o?o:b,O=void 0!==l?l:w,L=void 0!==h?h:k;return jV(jV({},m),{},{inputValue:P,menuIsOpen:O,onChange:C,onInputChange:I,onMenuClose:D,onMenuOpen:T,value:L})}(e);return R.createElement(eq,(0,b.A)({ref:t},n))})),nq=tq;const sq={container:e=>Object.assign(Object.assign({},e),{width:"100%",maxWidth:"250px",display:"inline-block",verticalAlign:"middle"}),input:e=>Object.assign(Object.assign({},e),{margin:0,padding:0,"& input":{boxSizing:"border-box"}}),valueContainer:e=>Object.assign(Object.assign({},e),{padding:0}),singleValue:e=>Object.assign(Object.assign({},e),{marginRight:0,marginLeft:0,padding:"3px 0 4px"}),control:(e,{isFocused:t})=>Object.assign(Object.assign({},e),{height:"26px",minHeight:"26px",maxWidth:"100%",padding:"0 6px",borderStyle:"solid",borderColor:t?"#0f7faf":"#afbac1","&:hover":{borderColor:t?"#0f7faf":"#afbac1"},borderRadius:0,borderWidth:"0 0 1px",backgroundColor:t?"#ecf5f9":"#ededed",color:"#020202",outline:0,boxShadow:"none"}),indicatorSeparator:e=>Object.assign(Object.assign({},e),{display:"none"}),dropdownIndicator:e=>Object.assign(Object.assign({},e),{color:"#020202",padding:0,"&::before":{content:'""',display:"inline-block",width:0,height:0,marginLeft:"6px",borderTop:"4px solid currentColor",borderRight:"4px solid transparent",borderLeft:"4px solid transparent"},"& > svg":{display:"none"}}),menu:e=>Object.assign(Object.assign({},e),{backgroundColor:"#dedede",borderRadius:0,marginTop:"3px",marginBottom:"3px",padding:0,border:"none",boxShadow:"none"}),menuList:e=>Object.assign(Object.assign({},e),{padding:"5px 0"}),option:(e,{isFocused:t})=>Object.assign(Object.assign({},e),{backgroundColor:t?"#5aadd1":"#dedede",color:t?"#fff":"#373737",padding:"7px 10px",cursor:"pointer"})},aq="selected";class iq extends R.Component{constructor(e){super(e),this.componentDidMount=()=>{this.updateSelectAll()},this.handleSearch=e=>this.setState({search:e},this.setShowedTables),this.handleFilter=e=>this.setState({filter:e},this.setShowedTables),this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({tables:e}=this.state),e.filter((e=>!n||-1!==e.title.toLowerCase().indexOf(n)))},this.applyFilter=()=>{const{tables:e,selectedTables:t,filter:n}=this.state;return e.filter((e=>n!==aq||t[e.id]))},this.setShowedTables=()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedTables:t},this.updateSelectAll)},this.updateSelectAll=()=>{const{showedTables:e}=this.state,t=this.getSelectedTablesIds();this.setState({isSelectAll:e.length&&e.every((e=>-1!==t.indexOf(e.id)))})},this.getSelectedTablesIds=()=>Object.keys(this.state.selectedTables).filter((e=>this.state.selectedTables[e])),this.handleSelectTable=(e,t)=>this.setState((n=>{const s=Object.assign({},n.selectedTables);return s[e]=t,{selectedTables:s}}),this.setShowedTables),this.handleSelectAll=e=>this.setState((t=>({isSelectAll:e,selectedTables:t.showedTables.reduce(((t,n)=>(t[n.id]=e,t)),{})})),this.setShowedTables),this.handleSubmit=()=>{const{selectedTables:e}=this.state,{onClose:t,setSelectedTables:n}=this.props;n(e),t()},this.renderTablesList=()=>{const{selectedTables:e,showedTables:t,isSelectAll:n}=this.state,{baseClassName:s}=this.props;return t.length?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)("div",{className:`${s}__separator`}),(0,L.jsx)("div",{className:`${s}__select-all`,children:(0,L.jsx)(Tt,{onChange:this.handleSelectAll,checked:n,"data-test-id":"available-tables-all",children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.selectAll"})})}),t.map((t=>(0,L.jsx)("div",{className:`${s}__table-item`,children:(0,L.jsx)(Tt,{checked:e[t.id],onChange:e=>this.handleSelectTable(t.id,e),"data-test-id":`available-table-checkbox-${t.title.toLowerCase()}`,children:t.title})},t.id)))]}):(0,L.jsx)("div",{className:"wpt-mgt-15",children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.noItems"})})},this.state={isSelectAll:!1,filter:"all",search:"",tables:e.tables,showedTables:e.tables,selectedTables:e.selectedTables}}render(){const{filter:e,tables:t}=this.state,{baseClassName:n,onClose:s}=this.props,a=this.getSelectedTablesIds().length;return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.drawerTitle"}),subtitle:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.drawerSubTitle"}),backButton:!0,isOpen:!0,onClose:s,size:"sm","data-type":"instance-sync-db-tables",form:{className:n,onSubmit:this.handleSubmit,hideRequiredLegend:!0,vertical:!0,applyButton:!1,cancelButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.selectButton"}),disabled:0===a,"data-test-id":"confirm-select-button"}},children:[(0,L.jsx)(Yl,{onTyping:this.handleSearch}),(0,L.jsx)("span",{className:"separate-span"}),(0,L.jsx)(ua,{buttons:[{value:"all",title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.buttonShowAll",params:{count:t.length}}),disabled:0===t.length},{value:aq,title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTables.buttonShowSelected",params:{count:a}}),disabled:0===a}],selected:e,onChange:this.handleFilter}),this.renderTablesList()]})}}iq.propTypes={tables:je().array.isRequired,selectedTables:je().array.isRequired,setSelectedTables:je().func.isRequired,onClose:je().func.isRequired,baseClassName:je().string},iq.defaultProps={baseClassName:`${th}sync-db-tables-form`};const rq=iq,oq="files",lq="all",cq="selected",uq="except-tables-hint-action",dq={isLoading:!0,isValidating:!1,isProcessing:!1,isCompletedSuccessfully:!1,isFailed:!1,formErrors:null,syncTaskId:null,syncTask:null,showSyncDbTablesDrawer:!1,targetInstanceId:null,targetInstancesOptions:[],syncType:"all",syncTypeOptions:[],syncOptions:[],syncDbType:lq,syncDbTypeOptions:[],exceptTables:[],exceptTablesInfo:[],isExceptTables:!1,tables:[],selectedTables:{},isSnapshotRequired:!1,isFullSnapshot:!1,isSubmitButtonDisabled:!1};class pq extends R.Component{constructor(e){super(e),this.initSyncSettings=e=>{const{onAddDrawerErrorMessage:t}=this.props,{targetInstancesOptions:n,syncDbType:s,tables:a}=e;let i=!1;n&&0!==n.length||(t("list-ui.instanceSync.errorNoTarget",!0,"errorNoTarget"),i=!0);const r=s===cq?a.reduce(((e,t)=>(e[t.id]=t.selected,e)),{}):{};this.setState(Object.assign(Object.assign(Object.assign(Object.assign({},e),{targetInstancesOptions:this.getTargetInstanceOptions(n),syncOptions:Object.keys(e.syncOptions)}),e.syncOptions),{selectedTables:r,isSubmitButtonDisabled:i}),this.updateStatusMessages)},this.getTargetInstanceOptions=e=>e?e.map((({id:e,title:t,fullPath:n,isAlive:s,sameDb:a,cmpVersion:i,updatePrefix:r,refreshAfterSync:o})=>({value:e,label:t,fullPath:n,isAlive:s,sameDb:a,cmpVersion:i,updatePrefix:r,refreshAfterSync:o}))):[],this.getSelectedTargetInstance=()=>this.state.targetInstancesOptions.find((e=>e.value===this.state.targetInstanceId)),this.getSelectedTargetInstanceName=()=>{const e=this.getSelectedTargetInstance();return e?e.label:""},this.isSubmitDisabled=()=>{const{isSubmitButtonDisabled:e,isProcessing:t,isValidating:n}=this.state,{isUnpaid:s,isFeatureDisabled:a}=this.props;return e||t||n||s||a},this.setSelectedTables=e=>this.setState({selectedTables:e}),this.getSelectedTablesIds=()=>Object.keys(this.state.selectedTables).filter((e=>this.state.selectedTables[e])),this.getSelectedTablesTitles=()=>{const{tables:e}=this.state,t=this.getSelectedTablesIds();return e.filter((e=>-1!==t.indexOf(e.id))).map((e=>e.title))},this.getSyncDbTables=()=>{const{syncDbType:e,tables:t,isExceptTables:n,exceptTables:s}=this.state;let a={};switch(e){case"new":a=t.reduce(((e,t)=>(e[t.id]=!1,e)),{});break;case lq:a=t.reduce(((e,t)=>(e[t.id]=!!n&&!s.find((e=>e.toLowerCase()===t.id.toLowerCase())),e)),{});break;case cq:{const e=this.getSelectedTablesIds();a=t.reduce(((t,n)=>(t[n.id]=-1!==e.indexOf(n.id),t)),{});break}}return JSON.stringify(a)},this.setFormErrors=e=>{e&&this.setState({formErrors:Object.keys(e).reduce(((t,n)=>("tables"===n&&(t.syncDbType=e[n]),t)),Object.assign({},e))})},this.updateStatusMessages=()=>{const{onClearDrawerMessages:e,onAddDrawerErrorMessage:t,onAddDrawerWarningMessage:n}=this.props,{syncType:s}=this.state,a=this.getSelectedTargetInstance();if(!a)return;e(),this.setState({isSubmitButtonDisabled:!1});const i=s!==oq;return a.sameDb&&i?(t("list-ui.instanceSync.errorSameDb",!0,"errorSameDb"),void this.setState({isSubmitButtonDisabled:!0})):a.cmpVersion>0?(t("list-ui.instanceSync.errorSourceIsOlder",!0,"errorSameDb"),void this.setState({isSubmitButtonDisabled:!0})):(a.isAlive||this.setState({isSnapshotRequired:!1}),a.isAlive&&a.cmpVersion<0&&n("list-ui.instanceSync.warningTargetOlder",!0,"errorSameDb"),a.isAlive&&a.updatePrefix&&i&&n("list-ui.instanceSync.warningTargetHasOtherPrefix",!0,"warningTargetHasOtherPrefix"),void(a.isAlive||n("list-ui.instanceSync.warningTargetIsBroken",!0,"warningTargetIsBroken")))},this.handleChangeTargetInstance=e=>this.setState({targetInstanceId:e},this.updateStatusMessages),this.handleChangeSyncType=e=>this.setState({syncType:e},this.updateStatusMessages),this.handleToggleSyncDbTablesDrawer=()=>this.setState((e=>({showSyncDbTablesDrawer:!e.showSyncDbTablesDrawer}))),this.handleSubmit=()=>{if(this.isSubmitDisabled())return;const{installation:{id:e},instanceSyncActions:{syncInstance:t,syncFinished:n},onSetDrawerMessages:s,onClearDrawerMessages:a}=this.props,{targetInstanceId:i,syncType:r,syncDbType:o,syncOptions:l,isSnapshotRequired:c,isExceptTables:u}=this.state,d=l.reduce(((e,t)=>(e[t]=Number(this.state[t]),e)),{}),p=Object.assign(Object.assign({id:e,targetInstanceId:i||"",syncType:r},d),{syncDbType:o,tables:this.getSyncDbTables(),snapshot:c,isExceptTables:Number(u)});a(),this.setState({formErrors:null,isValidating:!0,syncTask:null}),t(p).then((e=>{if(e.status===Ep)return s(bp(e)),e.formErrors&&this.setFormErrors(e.formErrors),void this.setState({isValidating:!1});this.setState({isValidating:!1,isProcessing:!0,syncTaskId:e.data.task.id})})).catch((()=>{n(e),this.setState({isValidating:!1,isProcessing:!1})}))},this.getSubmitButtonConfig=()=>{const{isValidating:e,isProcessing:t,isCompletedSuccessfully:n,isLoading:s}=this.state;return!s&&!n&&{onClick:e=>gp(e,this.handleSubmit),children:t||e?(0,L.jsx)(pp,{content:"list-ui.instanceSync.processingButton"}):(0,L.jsx)(pp,{content:"list-ui.instanceSync.submitButton"}),disabled:this.isSubmitDisabled(),"data-test-id":"submit-button"}},this.getCancelButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isFailed:n,isLoading:s,isValidating:a}=this.state,{onClose:i}=this.props;return!(s||e||a)&&{onClick:e=>gp(e,i),children:t||n?(0,L.jsx)(pp,{content:"list-ui.instanceSync.closeButton"}):(0,L.jsx)(pp,{content:"list-ui.instanceSync.cancelButton"}),"data-test-id":t||n?"close-button":"cancel-button"}},this.renderObjectSwitcherControl=({name:e,options:t,disabled:n,defaultValue:s=null,onChange:a=null,placeholder:i=null})=>(0,L.jsx)(nq,{styles:sq,defaultValue:s,isClearable:!1,isSearchable:!0,backspaceRemovesValue:!1,name:e,id:`${e}-select-container`,inputId:`${e}-search-input`,placeholder:i,options:t,onChange:a,isDisabled:n,"data-test-id":e}),this.renderSourceInstancePath=()=>{const{installation:e}=this.props,{isProcessing:t,isCompletedSuccessfully:n}=this.state;return t||n?null:e.path?(0,L.jsx)(Ks,{target:(0,L.jsx)(Be,{className:"wpt-mgl-5",children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.showPath"})}),children:e.path}):null},this.renderSourceInstanceControl=()=>(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.sourceInstance"}),"data-test-id":"source-instance",children:[this.props.installation.displayTitle,this.renderSourceInstancePath()]}),this.renderTargetInstancePath=()=>{const e=this.getSelectedTargetInstance();return e&&e.fullPath?(0,L.jsx)(Ks,{target:(0,L.jsx)(Be,{className:"wpt-mgl-5",children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.showPath"})}),children:e.fullPath}):null},this.renderTargetInstanceControl=()=>{const{targetInstancesOptions:e,isProcessing:t,isCompletedSuccessfully:n}=this.state;if(!e||0===e.length)return null;if(t||n)return(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.targetInstance"}),children:this.getSelectedTargetInstanceName()});const s=this.getSelectedTargetInstance();return(0,L.jsxs)(Li,{name:"targetInstanceId",label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.targetInstance"}),required:!0,children:[this.renderObjectSwitcherControl({name:"targetInstanceId",placeholder:null,defaultValue:s,options:e,onChange:({value:e})=>this.handleChangeTargetInstance(e)}),this.renderTargetInstancePath()]})},this.handleToggleSyncTypeHint=(e,t)=>{const n=e.target.id,{syncTypeOptions:s}=this.state;n===`${t}-hint-action`&&this.setState(s.reduce(((e,n)=>(e[`${n}IsHintVisible`]=n===t,e)),{}))},this.handleToggleExceptTablesHint=e=>{e.target.id===uq&&this.setState((e=>({exceptTablesHintIsVisible:!e.exceptTablesHintIsVisible})))},this.renderSyncTypeControl=()=>{const{baseClassName:e}=this.props,{syncType:t,syncTypeOptions:n,syncOptions:s,isProcessing:a,isCompletedSuccessfully:i}=this.state,r=(e,t=!0)=>(0,L.jsxs)("span",{children:[(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncTypeOptions.${e}.title`}),t&&(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{id:`${e}-hint-action`,icon:"circle-info",className:"wpt-mgl-5",onClick:t=>gp(t,(()=>this.handleToggleSyncTypeHint(t,e)))}),visible:this.state[`${e}IsHintVisible`],children:(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncTypeOptions.${e}.description`})})]}),o=n=>{if(n!==t)return[];switch(n){case"all":case oq:return s.map((t=>(0,L.jsxs)("div",{children:[(0,L.jsx)(mr,{name:t,className:`${e}__form-field-checkbox`,label:(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncOptions.${t}.title`}),value:this.state[t],onChange:e=>this.setState({[t]:e})}),(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-mgl-5"}),children:(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncOptions.${t}.description`})})]},t)));default:return[]}};if(a||i)return(0,L.jsx)(Li,{label:r(t,!1),children:(()=>s.reduce(((e,t)=>(this.state[t]&&e.push((0,L.jsx)("div",{children:(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncOptions.${t}.title`})},t)),e)),[]))()});const l=n.map((e=>({value:e,label:r(e),indentFields:o(e)})));return(0,L.jsx)(_r,{name:"syncType",label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncType"}),value:t,options:l,onChange:this.handleChangeSyncType})},this.renderSyncTypeSection=()=>{const{baseClassName:e}=this.props,{syncTypeOptions:t}=this.state;return 0===t.length?null:(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncTypeSectionTitle"}),className:`${e}__section`,children:this.renderSyncTypeControl()})},this.renderSyncDbTypeControl=()=>{const{syncDbType:e,syncDbTypeOptions:t,isExceptTables:n,exceptTables:s,exceptTablesInfo:a,exceptWoocommerceTablesInfo:i,isProcessing:r,isCompletedSuccessfully:o}=this.state,l=e=>{if(e===cq){const t=this.getSelectedTablesTitles();if(t.length)return(0,L.jsxs)("span",{children:[(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncDbType.options.${e}`}),": ",(0,L.jsx)("b",{children:t.join(", ")})]})}return e===lq&&n&&0!==s.length&&(r||o)?(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncDbType.options.${e}`}),children:c(!1)}):(0,L.jsx)(pp,{content:`list-ui.instanceSync.syncDbType.options.${e}`})},c=(e=!0)=>(0,L.jsxs)("span",{children:[(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbType.exceptTables"}),e&&(0,L.jsxs)(Ks,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbType.exceptTablesDesc"}),target:(0,L.jsx)(_e,{id:uq,icon:"circle-info",className:"wpt-mgl-5",onClick:e=>gp(e,(()=>this.handleToggleExceptTablesHint(e)))}),visible:this.state.exceptTablesHintIsVisible,children:[(0,L.jsx)(_a,{children:Object.entries(a).map((([e,t])=>(0,L.jsx)("div",{children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.dbTableInfo.syntax",params:{tableName:e,description:t},unsafe:!0})},e)))}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.dbTableInfo.Woocommerce.subtitle"})},"wc-info-subtitle"),Object.entries(i).map((([e,t])=>(0,L.jsx)("div",{children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.dbTableInfo.syntax",params:{tableName:e,description:t},unsafe:!0})},e)))]})]}),u=t=>{if(t!==e)return[];switch(t){case lq:return 0===s.length?[]:[(0,L.jsx)("div",{children:(0,L.jsx)(mr,{name:"isExceptTables",label:c(),value:n,onChange:e=>this.setState({isExceptTables:e}),"data-test-id":"except-tables-checkbox"})},t)];case cq:return[(0,L.jsx)("div",{children:(0,L.jsx)(_e,{onClick:e=>gp(e,this.handleToggleSyncDbTablesDrawer),"data-test-id":"select-available-tables",children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbType.chooseTables"})})},t)];default:return[]}};if(r||o)return l(e);const d=t.map((e=>({value:e,label:l(e),indentFields:u(e)})));return(0,L.jsx)(_r,{name:"syncDbType",label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbType.label"}),value:e,options:d,onChange:e=>this.setState({syncDbType:e})})},this.renderSyncDbTypeSection=()=>{const{baseClassName:e}=this.props,{syncType:t,syncDbTypeOptions:n}=this.state;return 0===n.length||t===oq?null:(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.syncDbTypeSectionTitle"}),className:`${e}__section`,children:this.renderSyncDbTypeControl()})},this.renderSnapshotControl=()=>{const{baseClassName:e}=this.props,{isSnapshotRequired:t,isFullSnapshot:n,isProcessing:s,isCompletedSuccessfully:a}=this.state,i=this.getSelectedTargetInstance();return s||a?t?(0,L.jsx)(pp,{content:"list-ui.instanceSync.isSnapshotRequired"}):(0,L.jsx)(pp,{content:"list-ui.instanceSync.noSnapshot"}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(mr,{name:"isSnapshotRequired",className:`${e}__form-field-checkbox`,label:(0,L.jsx)(pp,{content:"list-ui.instanceSync.isSnapshotRequired"}),value:t,onChange:e=>this.setState({isSnapshotRequired:e}),disabled:!i,"data-test-id":"is-snapshot-required"}),(0,L.jsxs)(Ks,{target:(0,L.jsx)(_e,{icon:"circle-info",className:"wpt-mgl-5"}),children:[(0,L.jsx)(pp,{content:"list-ui.instanceSync.isSnapshotRequiredDesc"}),n&&(0,L.jsx)("div",{children:(0,L.jsx)(pp,{content:"list-ui.instanceSync.isSnapshotRequiredNote"})})]})]})},this.renderSnapshotSection=()=>{const{baseClassName:e}=this.props,t=this.getSelectedTargetInstance();return t&&!t.isAlive?null:(0,L.jsx)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.snapshotSectionTitle"}),className:`${e}__section`,children:this.renderSnapshotControl()})},this.state=dq}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),e.task!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}handleOpenAndLoadData(){const{installation:{id:e},instanceSyncActions:{getSyncSettings:t},onSetDrawerMessages:n}=this.props;this.setState(dq),t(e).then((({data:e})=>{if(n(bp(e)),e.status===Ep)return void this.setState({isSubmitButtonDisabled:!0});const t=Ap(e,"syncSettings");t&&this.initSyncSettings(t)})).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(e){const{syncTaskId:t,syncTask:n}=this.state;if(!t)return;const s=nT(t,e);s&&n!==s&&this.setState({syncTask:s},(()=>{this.handleUpdateSyncTask()}))}handleUpdateSyncTask(){const{syncTask:e,targetInstanceId:t}=this.state,{installation:{id:n},instancesActions:{setSelectedInstanceId:s,getInstancesData:a},instanceSyncActions:{syncFinished:i}}=this.props,r=this.getSelectedTargetInstance();eT(e)?(t&&s(t),a({instancesIds:r.refreshAfterSync?[n,t]:[n]}).then((()=>i(n))).catch((()=>{})).finally((()=>{this.setState({isProcessing:!1,isCompletedSuccessfully:!0})}))):tT(e)&&(i(n),this.setState({isProcessing:!1,isFailed:!0}))}renderSyncDbTablesDrawer(){const{showSyncDbTablesDrawer:e,tables:t,selectedTables:n}=this.state;return e&&t&&0!==t.length?(0,L.jsx)(rq,{tables:t,selectedTables:n,setSelectedTables:this.setSelectedTables,onClose:this.handleToggleSyncDbTablesDrawer}):null}renderPaidFeatureDesc(){const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,isFeatureDisabled:s,installation:a}=this.props;return e||s?(0,L.jsx)(Uv,{uatAction:"CLICK_EXT_BUY_FROM_SYNC_FORM",purchaseLicenseUrl:t,installationId:a.id,premiumFeaturesUrl:n,children:(0,L.jsx)(pp,{content:"paidFeature.copyDataFeatureDescription"})}):null}render(){const{isLoading:e,formErrors:t,targetInstanceId:n,syncType:s,syncOptions:a,syncDbType:i,isExceptTables:r,isSnapshotRequired:o,syncTask:l}=this.state,{installation:{title:c},onClose:u,isOpen:d,renderDrawerMessages:p,baseClassName:h}=this.props,m=a.reduce(((e,t)=>(e[t]=this.state[t],e)),{}),g=this.getSubmitButtonConfig(),f=[];return g&&f.push((0,L.jsx)(ut,Object.assign({intent:"primary"},g),"submit")),(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.drawerTitle",params:{instance:c}}),form:{onSubmit:this.handleSubmit,errors:t,values:Object.assign(Object.assign({targetInstanceId:n,syncType:s},m),{syncDbType:i,isExceptTables:r,isSnapshotRequired:o}),applyButton:!1,submitButton:g,cancelButton:this.getCancelButtonConfig(),hideRequiredLegend:!0},progress:QO(l,(()=>{this.setState({syncTask:null,syncTaskId:null})}),f),hideButton:!1,onClose:u,"data-test-id":"instance-sync-form","data-type":"instance-sync",size:"sm",isOpen:d,children:[this.renderPaidFeatureDesc(),p(),e&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instanceSync.loadingForm"})]}),!e&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceSync.locationSectionTitle"}),className:`${h}__section`,children:[this.renderSourceInstanceControl(),this.renderTargetInstanceControl()]}),this.renderSyncTypeSection(),this.renderSyncDbTypeSection(),this.renderSnapshotSection(),this.renderSyncDbTablesDrawer()]})]})}}pq.propTypes={installation:je().shape({displayTitle:je().string.isRequired,features:je().shape({copyData:je().shape({applicable:je().bool.isRequired})}).isRequired,id:je().number.isRequired,path:je().string.isRequired,title:je().string.isRequired}).isRequired,onClose:je().func.isRequired,instancesActions:je().shape({setSelectedInstanceId:je().func.isRequired,getInstancesData:je().func.isRequired}).isRequired,instanceSyncActions:je().shape({getSyncSettings:je().func.isRequired,syncInstance:je().func.isRequired,syncFinished:je().func.isRequired}).isRequired,onSetDrawerMessages:je().func.isRequired,onClearDrawerMessages:je().func.isRequired,onAddDrawerErrorMessage:je().func.isRequired,onAddDrawerWarningMessage:je().func.isRequired,renderDrawerMessages:je().func.isRequired,baseClassName:je().string,tasks:je().array,isUnpaid:je().bool.isRequired,upgradeUrl:je().string.isRequired,premiumFeaturesUrl:je().string,isFeatureDisabled:je().bool.isRequired,isOpen:je().bool.isRequired},pq.defaultProps={baseClassName:`${th}instance-sync-form`,tasks:[],premiumFeaturesUrl:null};const hq=Fc(((e,t)=>{var n;return{tasks:e.backgroundTasks.tasks,isUnpaid:e.app.unpaidFeatures[Hp],upgradeUrl:e.app.urls.featuresBuyLinks[Hp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isFeatureDisabled:!(null===(n=t.installation.features.copyData)||void 0===n?void 0:n.applicable)}}),(e=>({instancesActions:(0,Cb.zH)(i,e),instanceSyncActions:(0,Cb.zH)(g,e)})))(yC(pq)),mq=(e,t)=>n=>Gf.validateClonePath(e,t).catch((e=>422===e.response.status?Promise.reject(e):(n(Zf(e)),Promise.reject()))),gq=e=>t=>t({type:YC,task:e}),fq=e=>t=>Gf.cloneInstallation(e).then((({data:e})=>{const n=vp(e.task);return t(gq(n)),n})).catch((e=>422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))),bq=fp("clone/CLONE_FINISHED","instanceId"),vq=({installationId:e,databaseName:t,databaseServer:n,domainExisting:s,domainNewSubdomainName:a,domainNewSubdomainParentDomain:i,installationPath:r})=>o=>Gf.getCloneStub(e,t,n,s,a,i,r).then((({data:e})=>(o({type:"clone/CLONE_STUB_LOADED_SUCCESSFULLY"}),e))).catch((e=>(o(Zf(e)),Promise.reject())));var yq=r(17334);const Sq=e=>{const t=cp();return(0,L.jsx)(Os,Object.assign({},e,{placeholder:t(e.placeholder)}))},wq="newSubdomain",xq="existingDomainOrSubdomain",Aq={isLoading:!0,isProcessing:!1,isCompletedSuccessfully:!1,isFailed:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1,isCloningToSourceInstancePath:!1,isRewrite:!1,isDomainSettingsLoading:!1,formErrors:{},cloneTaskId:null,cloneTask:null,domains:[],parentDomains:[],dbServers:[],documentRoot:null,isNewSubdomain:!0,domainType:wq,installationPath:"",subdomainInstallationPath:"",databaseCreationAllowed:!1,dbNamePrefix:"",isWrongParams:!1,domain:{existing:"",newSubdomain:{name:"",parentDomain:""}},database:{name:"",server:""},messages:[]};class _q extends R.Component{constructor(e){super(e),this.getCloneStub=e=>{const{instanceCloneActions:{getCloneStub:t}}=this.props;return t(e).then((({value:{database:{value:{name:{value:e,meta:{creationAllowed:t}},server:{value:n,meta:{choices:s}},namePrefix:{value:a}}},domain:{value:{existing:{value:i,meta:{choices:r,documentRoot:o}},newSubdomain:{value:{parentDomain:{value:l,meta:{choices:c}},name:{value:u}}}}},installationPath:{value:d}},meta:{messages:p}})=>{this.setState((h=>{let m=h.isNewSubdomain;return c&&c.length||(m=!1),{domains:r,parentDomains:c,installationPath:null!=d?d:"",domain:{existing:i,newSubdomain:{name:u,parentDomain:l}},documentRoot:o,databaseCreationAllowed:t,dbServers:s,dbNamePrefix:a,database:{name:e,server:n},messages:p,isNewSubdomain:m,domainType:m?wq:xq}}),this.handleCloneStubUpdated)})).catch((()=>{this.setState({isWrongParams:!0})}))},this.handleCloneStubUpdated=()=>{const{databaseCreationAllowed:e,domains:t,parentDomains:n,messages:s}=this.state,{onAddDrawerErrorMessage:a,onSetDrawerMessages:i}=this.props;return this.setState({isWrongParams:!1}),(null==n?void 0:n.length)||(null==t?void 0:t.length)?e?void(s&&i(Object.keys(s).map((e=>{const t=s[e];return{key:e,status:t.intent,message:t.text}})))):(a("list-ui.instanceClone.dbSettings.dbSettingsError",!0,"databaseCreationNotAllowedError"),void this.setState({isWrongParams:!0})):(a("list-ui.instanceClone.domainSettings.domainSettingsError",!0,"emptyDomainsError"),void this.setState({isWrongParams:!0}))},this.setFormErrors=e=>{const{isNewSubdomain:t}=this.state,n=t?wq:xq,s=e.installationPath&&Object.keys(e.installationPath).length,a=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHidesAnotherWordpress"),i=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHidesAnotherApplication"),r=s&&-1!==Object.keys(e.installationPath).indexOf("directoryHasUserFiles"),o=s&&-1!==Object.keys(e.installationPath).indexOf("cloningToSourceInstancePath");this.setState({formErrors:Object.keys(e).reduce(((s,o)=>{if("domain"===o&&(delete s[o],s[n]=t?Object.assign(Object.assign({},e.domain.newSubdomain.name),e.domain.newSubdomain.parentDomain):e.domain.existing),"installationPath"===o){if(s[n])return s;delete s[o],a||i||r||(s[n]=e[o])}return s}),Object.assign({},e)),isWpInstalled:a,isAppInstalled:i,hasUserFiles:r,isCloningToSourceInstancePath:o})},this.handleChangeInstallationPath=e=>{const{domain:{existing:t}}=this.state,{installation:{id:n},instanceCloneActions:{validateClonePath:s}}=this.props;t&&(this.setState({installationPath:e,isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1,formErrors:{}}),this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),this.debounceValidatePrefix=(0,yq.debounce)((()=>s(n,{domain:t,installationPath:e}).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setFormErrors(e.response.data.formErrors)}))),500),this.debounceValidatePrefix())},this.handleChangeDomain=()=>this.setState({isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1},(()=>{const{isNewSubdomain:e,database:t,installationPath:n,domain:{existing:s,newSubdomain:{name:a,parentDomain:i}}}=this.state,{installation:{id:r},onClearDrawerMessages:o}=this.props,l={installationId:r,databaseName:t.name,databaseServer:t.server,installationPath:n};e?(l.domainNewSubdomainName=a,l.domainNewSubdomainParentDomain=i):l.domainExisting=s,o(),this.setState({isDomainSettingsLoading:!0}),this.getCloneStub(l).catch((()=>{})).finally((()=>{this.setState({isDomainSettingsLoading:!1})}))})),this.handleChangeDomainType=e=>{this.props.onClearDrawerMessages(),this.setState({domainType:e,isNewSubdomain:e===wq,isRewrite:!1,isWpInstalled:!1,isAppInstalled:!1,hasUserFiles:!1})},this.handleChangeDatabaseSettings=(e,t)=>this.setState((n=>({database:Object.assign(Object.assign({},n.database),{[e]:t})}))),this.handleSubmit=()=>{const{isRewrite:e,dbNamePrefix:t,isNewSubdomain:n,database:s,installationPath:a,subdomainInstallationPath:i,domain:{existing:r,newSubdomain:{name:o,parentDomain:l}}}=this.state,{installation:{id:c},instanceCloneActions:{cloneInstallation:u},onClearDrawerMessages:d,showDomainOverviewLinkOnDone:p}=this.props,h={installationId:c,showDomainOverviewLinkOnDone:p,database:{name:s.name,namePrefix:t,server:s.server},overwrite:e};n?(h.domain={newSubdomain:{parentDomain:l,name:o}},h.installationPath=i):(h.domain={existing:r},h.installationPath=a),d(),this.setState({cloneTaskId:null,cloneTask:null,formErrors:{},isProcessing:!0}),u(h).then((e=>this.setState({cloneTaskId:e.id}))).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&this.setFormErrors(e.response.data.formErrors),this.setState({isProcessing:!1})}))},this.isSubmitButtonDisabled=()=>{const{isWrongParams:e,isWpInstalled:t,isAppInstalled:n,hasUserFiles:s,isRewrite:a,isDomainSettingsLoading:i}=this.state,{isUnpaid:r,isFeatureDisabled:o}=this.props;return e||(t||n||s)&&!a||r||o||i},this.getSubmitButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isLoading:n}=this.state;return!n&&!t&&{onClick:this.handleSubmit,children:e?(0,L.jsx)(pp,{content:"list-ui.instanceClone.processingButton"}):(0,L.jsx)(pp,{content:"list-ui.instanceClone.submitButton"}),disabled:this.isSubmitButtonDisabled(),"data-test-id":"submit-button"}},this.getCancelButtonConfig=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isFailed:n,isLoading:s}=this.state,{onClose:a}=this.props;return!e&&!s&&{onClick:a,children:t||n?(0,L.jsx)(pp,{content:"list-ui.instanceClone.closeButton"}):(0,L.jsx)(pp,{content:"list-ui.instanceClone.cancelButton"}),"data-test-id":t||n?"close-button":"cancel-button"}},this.getDbServerName=()=>{const{database:e,dbServers:t}=this.state;if(!e.server||!t)return null;const n=t.find((t=>t.value===e.server));return n?n.title:null},this.getDomainInstallationUrl=()=>{const{domain:e,installationPath:t}=this.state;return t?`${e.existing}/${t}`:e.existing},this.getSubdomainInstallationUrl=()=>{const{domain:{newSubdomain:{name:e,parentDomain:t}},subdomainInstallationPath:n}=this.state;let s=`${e}.${t}`;return n&&(s=`${s}/${n}`),s},this.getTargetInstallationUrl=()=>this.state.isNewSubdomain?this.getSubdomainInstallationUrl():this.getDomainInstallationUrl(),this.getTargetInstallationFullPath=()=>{const{documentRoot:e,installationPath:t}=this.state;return t?`${e}/${t}`:e},this.renderTargetInstallationFullPath=()=>{const e=this.getTargetInstallationFullPath();return e?(0,L.jsx)(Ks,{target:(0,L.jsx)(Be,{className:"wpt-mgl-5",children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.showPath"})}),children:e}):null},this.renderDomainSettingsControl=()=>{const{isProcessing:e,isCompletedSuccessfully:t,isRewrite:n,isNewSubdomain:s,parentDomains:a,domains:i,isWpInstalled:r,isAppInstalled:o,hasUserFiles:l,domainType:c}=this.state,{baseClassName:u}=this.props,d=(r||o||l)&&!n;return e||t?(0,L.jsxs)(Li,{label:s?(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}):(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),children:[(0,L.jsx)(da,{className:`${u}__destination-domain-name`,children:this.getTargetInstallationUrl()}),e&&n&&(0,L.jsx)(He,{intent:"warning",className:`${u}__rewrite-label`,children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.isRewrite"})})]}):(null==a?void 0:a.length)&&(null==i?void 0:i.length)?(0,L.jsx)(_r,{name:"domainType",value:c,label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.title"}),options:[{value:wq,label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}),indentFields:s?[(0,L.jsx)(R.Fragment,{children:this.renderNewSubdomainSettings()},"newSubdomainSettings")]:[]},{value:xq,label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),indentFields:s?[]:[(0,L.jsxs)("div",{className:F()({[`${u}__domain-settings-indent-fields--warning`]:d}),children:[this.renderDomainSettings(),d&&this.renderWpInstalledWarning()]},"domainSettings")]}],onChange:this.handleChangeDomainType}):(null==a?void 0:a.length)?(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.createSubdomain"}),children:this.renderNewSubdomainSettings()}):(null==i?void 0:i.length)?(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.options.useExistingDomain"}),children:(0,L.jsxs)("div",{className:F()({[`${u}__domain-settings-indent-fields--warning`]:d}),children:[this.renderDomainSettings(),d&&this.renderWpInstalledWarning()]})}):null},this.renderDomainSettings=()=>{const{installationPath:e,domains:t}=this.state,{baseClassName:n}=this.props;return(0,L.jsxs)(Li,{label:null,name:xq,className:`${n}__existing-domain`,children:[(0,L.jsx)(Vr,{name:"domain[existing]",id:"domain-search-input",label:null,onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{existing:e}),installationPath:""})),this.handleChangeDomain),"data-test-id":"domain",searchable:!0,placeholder:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.selectDomainPlaceholder"}),className:`${n}__existing-domain__domain`,children:t.map((({value:e,title:t})=>(0,L.jsx)(Nr,{"data-test-value":e,value:e,children:t},e)))})," / ",(0,L.jsxs)(Li,{label:null,className:`${n}__path-prefix`,name:"installationPath",description:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.pathPrefixDescription"}),children:[(0,L.jsx)(Sq,{type:"text",className:`${n}__path-prefix__text`,onChange:e=>this.handleChangeInstallationPath(e.target.value),value:e,placeholder:"list-ui.instanceClone.domainSettings.pathPrefixPlaceholder","data-test-id":gv}),this.renderTargetInstallationFullPath()]})]})},this.renderNewSubdomainSettings=()=>{const{subdomainInstallationPath:e,parentDomains:t}=this.state,{baseClassName:n}=this.props;return(0,L.jsxs)(Li,{label:null,name:wq,className:`${n}__new-subdomain`,children:[(0,L.jsx)(Dr,{label:null,name:"domain[newSubdomain][name]",className:`${n}__new-subdomain__name`,onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{newSubdomain:Object.assign(Object.assign({},t.domain.newSubdomain),{name:e})})})))})," . ",(0,L.jsx)(Vr,{label:null,name:"domain[newSubdomain][parentDomain]",id:"subdomainParentDomain-search-input",onChange:e=>this.setState((t=>({domain:Object.assign(Object.assign({},t.domain),{newSubdomain:Object.assign(Object.assign({},t.domain.newSubdomain),{parentDomain:e})})})),this.handleChangeDomain),"data-test-id":"subdomainParentDomain",searchable:!0,placeholder:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.selectDomainPlaceholder"}),className:`${n}__new-subdomain__parent-domain`,children:t.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e,children:t},e)))})," / ",(0,L.jsx)(Li,{label:null,className:`${n}__path-prefix`,name:"installationPath",description:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.pathPrefixDescription"}),children:(0,L.jsx)(Sq,{type:"text",className:`${n}__path-prefix__text`,onChange:e=>this.setState({subdomainInstallationPath:e.target.value}),value:e,placeholder:"list-ui.instanceClone.domainSettings.pathPrefixPlaceholder","data-test-id":gv})})]})},this.renderWpInstalledWarning=()=>{const{isWpInstalled:e,isAppInstalled:t,hasUserFiles:n,isCloningToSourceInstancePath:s}=this.state,{baseClassName:a}=this.props;return s?(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.cloningToSourceInstancePathWarning"}):(0,L.jsxs)(R.Fragment,{children:[e&&(0,L.jsx)("span",{"data-test-id":"warning-wp-installed",children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.wpInstalledWarning"})}),t&&(0,L.jsx)("span",{"data-test-id":"warning-app-installed",children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.appInstalledWarning"})}),n&&(0,L.jsx)("span",{"data-test-id":"warning-user-files",children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.userFilesWarning"})}),(0,L.jsx)("div",{className:`${a}__wp-installed-warning-button-group`,children:(0,L.jsx)(ut,{className:`${a}__wp-installed-warning-button-group__is-rewrite-button`,onClick:()=>this.setState({isRewrite:!0}),"data-test-id":"rewrite-button",children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.domainSettings.isRewriteButton"})})})]})},this.renderSourceInstanceFullPath=()=>{const{installation:{path:e},baseClassName:t}=this.props,{isProcessing:n,isCompletedSuccessfully:s}=this.state;return n||s?null:e?(0,L.jsx)(Ks,{target:(0,L.jsx)(Be,{className:`${t}__show-path`,children:(0,L.jsx)(pp,{content:"list-ui.instanceClone.showPath"})}),children:e}):null},this.renderDbSettings=()=>{const{isCompletedSuccessfully:e,databaseCreationAllowed:t}=this.state,{baseClassName:n}=this.props;return!t||e?null:(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceClone.databaseSectionTitle"}),className:`${n}__section`,children:[this.renderDbName(),this.renderDbServer()]})},this.renderDbName=()=>{const{isProcessing:e,database:t,dbNamePrefix:n}=this.state,s=`${n}${t.name}`;return e&&s?(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.dbName"}),children:s}):(0,L.jsxs)(Li,{name:"database[name]",label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.dbName"}),children:[n?(0,L.jsx)(da,{children:n}):null,(0,L.jsx)(Os,{type:"text",value:t.name,onChange:e=>this.handleChangeDatabaseSettings("name",e.target.value),"data-test-id":"db-name"})]})},this.renderDbServer=()=>{const{isProcessing:e,dbServers:t}=this.state;if(!t||t.length<=1)return null;const n=this.getDbServerName();return e&&n?(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.dbServer"}),children:n}):(0,L.jsx)(Vr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.dbServer"}),name:"database[server]",onChange:e=>this.handleChangeDatabaseSettings("server",e),children:t.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e,children:t},e)))})},this.renderPaidFeatureDesc=()=>{const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,isFeatureDisabled:s,installation:a}=this.props;return e||s?(0,L.jsx)(Uv,{uatAction:"CLICK_EXT_BUY_FROM_CLONE_FORM",purchaseLicenseUrl:t,installationId:a.id,premiumFeaturesUrl:n,children:(0,L.jsx)(pp,{content:"paidFeature.cloneFeatureDescription"})}):null},this.renderForm=()=>{const{isLoading:e,isDomainSettingsLoading:t}=this.state,{installation:{displayTitle:n},baseClassName:s}=this.props;return e?(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list-ui.instanceClone.loadingForm"})}):(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceClone.locationSectionTitle"}),className:`${s}__section`,children:[(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceClone.sourceInstance"}),"data-test-id":"source-instance",children:[n,this.renderSourceInstanceFullPath()]}),this.renderDomainSettingsControl()]}),this.renderDbSettings(),t&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0})]})},this.state=Aq}componentDidMount(){this.props.isOpen&&this.handleOpenAndLoadData()}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),e.isOpen&&!this.props.isOpen&&this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),e.tasks!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}handleOpenAndLoadData(){this.setState(Aq),this.getCloneStub({installationId:this.props.installation.id}).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(e){const{cloneTaskId:t,cloneTask:n}=this.state;if(!t)return;const s=nT(t,e);s&&n!==s&&this.setState({cloneTask:s},this.handleCloneTaskUpdated)}handleCloneTaskUpdated(){const{cloneTask:e,domain:{existing:t=""},isNewSubdomain:n}=this.state,{isOpen:s,installation:a}=this.props;eT(e)?(this.setState({isCompletedSuccessfully:!0,isProcessing:!1}),s&&e.publicParams.redirect&&(n||t!==a.domain.name)&&(window.location=e.publicParams.redirect)):tT(e)&&this.setState({isFailed:!0,isProcessing:!1})}render(){const{formErrors:e,domainType:t,database:n,cloneTask:s,domain:a,installationPath:i,subdomainInstallationPath:r,isProcessing:o}=this.state,{installation:{title:l},onClose:c,renderDrawerMessages:u,isOpen:d}=this.props,p=this.getSubmitButtonConfig(),h=[];return p&&h.push((0,L.jsx)(ut,Object.assign({intent:"primary"},p),"submit")),(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instanceClone.drawerTitle",params:{instance:l}}),form:{onSubmit:this.handleSubmit,errors:e,values:{domainType:t,database:n,domain:a,installationPath:i,subdomainInstallationPath:r},applyButton:!1,submitButton:p,cancelButton:this.getCancelButtonConfig(),requiredMark:null,state:o?"submit":void 0},progress:QO(s,(()=>{this.setState({cloneTask:null,cloneTaskId:null})}),h),hideButton:!1,onClose:c,"data-test-id":"instance-clone-form","data-type":"instance-clone",size:"md",isOpen:d,children:[this.renderPaidFeatureDesc(),u(),this.renderForm()]})}}_q.propTypes={installation:je().shape({displayTitle:je().string.isRequired,features:je().shape({clone:je().shape({applicable:je().bool.isRequired})}).isRequired,id:je().number.isRequired,path:je().string.isRequired,title:je().string.isRequired}).isRequired,instanceCloneActions:je().shape({getCloneStub:je().func.isRequired,validateClonePath:je().func.isRequired,cloneInstallation:je().func.isRequired}).isRequired,onSetDrawerMessages:je().func.isRequired,onClearDrawerMessages:je().func.isRequired,onAddDrawerErrorMessage:je().func.isRequired,renderDrawerMessages:je().func.isRequired,baseClassName:je().string,tasks:je().array,isUnpaid:je().bool.isRequired,upgradeUrl:je().string.isRequired,premiumFeaturesUrl:je().string,isFeatureDisabled:je().bool.isRequired,isOpen:je().bool.isRequired,showDomainOverviewLinkOnDone:je().bool},_q.defaultProps={baseClassName:`${th}instance-clone-form`,tasks:[],premiumFeaturesUrl:null,showDomainOverviewLinkOnDone:!1};const kq=Fc(((e,t)=>{var n;return{tasks:e.backgroundTasks.tasks,isUnpaid:e.app.unpaidFeatures[Yp],upgradeUrl:e.app.urls.featuresBuyLinks[Yp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,isFeatureDisabled:!(null===(n=t.installation.features.clone)||void 0===n?void 0:n.applicable)}}),(e=>({instanceCloneActions:(0,Cb.zH)(f,e)})))(yC(_q)),jq=({localeKey:e,href:t,iconName:n,children:s=null,onClick:a,primary:i,dataTestId:r,target:o="_self"})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{href:t,target:o,icon:n,onClick:a,"data-test-id":r,primary:i,children:(0,L.jsx)(pp,{content:e})}),s]});class Cq extends R.Component{constructor(){super(...arguments),this.renderPlesk=()=>{const{installation:{features:{backups:e}},primary:t}=this.props;return(0,L.jsx)(jq,{onClick:()=>this.context("CRD-DASHBOARD-BACKUP-CLICKED"),href:e.backupManagerUrl,iconName:nO("backup"),localeKey:"controllers.index.detail.backupButton",dataTestId:"instance-link-backup",primary:t})},this.renderCpanel=()=>{const{installation:{features:{backups:e},owner:t},goToUri:n}=this.props;if(null===e.backupManagerUrl)return null;const s=Yv({link:e.backupManagerUrl,inNewWindow:!1,goToUri:n,accountUsername:t.login,onClick:()=>this.context("CRD-DASHBOARD-BACKUP-CLICKED")});return(0,L.jsx)(jq,Object.assign({iconName:nO("backup"),localeKey:"controllers.index.detail.backupButton",dataTestId:"instance-link-backup"},s))}}render(){const{installation:{features:{backups:e},installationType:t},onOpenBackupDrawer:n,primary:s}=this.props;return e.wptBackupsAvailable?(0,L.jsx)(jq,{onClick:n,iconName:"backup",localeKey:"list.instances.linkBackup",dataTestId:"instance-link-backup",primary:s},"list.instances.linkBackup"):e.panelBackupsAvailable&&e.backupManagerUrl?xO(t)?this.renderPlesk():wO(t)?this.renderCpanel():null:null}}Cq.defaultProps={primary:!1},Cq.contextType=Q_;const Iq=Fc(null,(e=>({goToUri:(t,n)=>e(mS(t,n))})))(Cq),Tq=Fc((e=>({unpaidFeatures:e.app.unpaidFeatures,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded})),(e=>({addErrorMessage:(0,Cb.zH)(ab,e)})))((({baseClassName:e=`${th}instance-links`,installation:t,unpaidFeatures:n,onOpenSyncDrawer:s,onOpenCloneDrawer:a,onOpenBackupDrawer:i,onOpenActionLogDrawer:r,onOpenWpCliDrawer:o,isWordPressInstancesLimitExceeded:l,addErrorMessage:c})=>{const{fileManager:u,copyData:d,clone:p,actionLog:h,wpCli:m}=t.features,[g,f]=(0,R.useState)(!1),b=J_(),v=(0,R.useCallback)((e=>{gp(e,l?()=>{var e,n;return c((0,L.jsx)(pp,{content:"common.wordPressSitesLimitForDomainExceeded",params:{count:null===(e=t.domain)||void 0===e?void 0:e.installationsCount,limit:null===(n=t.domain)||void 0===n?void 0:n.installationsLimit}}))}:a)}),[t,a,l,c]);return(0,L.jsxs)("div",{className:e,children:[u.available&&(0,L.jsx)(DB,{installation:t,scope:"DASHBOARD",children:(0,L.jsx)(pp,{content:"controllers.index.detail.linkFiles"})}),d.available&&(0,L.jsx)(Bv,{uatAction:Gv,featureName:Hp,installationId:t.id,isInstanceFeatureDisabled:!d.applicable,description:(0,L.jsx)(pp,{content:"paidFeature.copyDataFeatureDescription"}),children:(0,L.jsx)(jq,{onClick:e=>gp(e,s),iconName:n[Hp]||!d.applicable?void 0:"arrows-loop",localeKey:"list.instances.linkSync",dataTestId:"instance-link-sync"},"list.instances.linkSync")}),p.available&&(0,L.jsx)(Bv,{featureName:Yp,uatAction:Gv,installationId:t.id,isInstanceFeatureDisabled:!p.applicable,description:(0,L.jsx)(pp,{content:"paidFeature.cloneFeatureDescription"}),children:(0,L.jsx)(jq,{onClick:v,iconName:n[Yp]||!p.applicable?void 0:"copy",localeKey:"list.instances.linkClone",dataTestId:"instance-link-clone"},"list.instances.linkClone")}),(0,L.jsx)(Iq,{onOpenBackupDrawer:i,installation:t}),h.available&&(0,L.jsx)(jq,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"},"list.instances.linkActionLog"),m.available&&(0,L.jsxs)("span",{children:[(0,L.jsx)(jq,{onClick:()=>{b("CRD-DASHBOARD-WP_CLI-CLICKED"),f(!0),o()},iconName:"console",localeKey:"list.instances.linkWpCli",dataTestId:"instance-link-wp-cli"},"list.instances.linkWpCli"),(0,L.jsx)(NO,{code:"wp-cli-link",interacted:g})]})]})})),Dq=e=>{switch(e){case wN:return(0,L.jsxs)(Fe,{intent:dN,children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:dN})," ",(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updatePrognosis.success"})]});case xN:return(0,L.jsxs)(Fe,{intent:pN,children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:pN})," ",(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updatePrognosis.warning"})]});case AN:return(0,L.jsxs)(Fe,{intent:hN,children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:hN})," ",(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updatePrognosis.failed"})]})}return null},Pq=Fc((e=>({restApiUrl:e.app.urls.restApiUrl})),null)((({installationId:e,smartPhpUpdateStatus:t,installationUrl:n,smartPhpUpdateCloneInstallationId:s,smartPhpUpdateCloneInstallationUrl:a,targetPhpHandlerName:i,phpHandlerName:r,isPublic:o,instanceLink:l,restApiUrl:c=""})=>(0,L.jsxs)(L.Fragment,{children:[o&&l?(0,L.jsx)(Us,{href:l,target:"_blank","data-test-id":"view-details",children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.linkToPanel"})}):null,(()=>{if(!n||!a)return null;const e=VN(zN(a));return(0,L.jsxs)(_a,{children:[(0,L.jsx)(pp,{content:"smartPhpUpdate.result.switchedMessage",params:{fromHandler:(0,L.jsx)(da,{bold:!0,children:r}),toHandler:(0,L.jsx)(da,{bold:!0,children:i})}})," ",(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.topNotice.reviewStaging"})})," ",(0,L.jsx)(Us,{href:a,target:"_blank",children:e})]})})(),Dq(t.status),(0,L.jsx)(QN,{smartUpdatesStatus:t,instanceUrl:n,smartUpdatesCloneInstanceId:s,smartUpdatesCloneUrl:a,isPublic:o,downloadSummaryUrl:qg(c,e)})]}))),Oq=({isOpen:e,subtitle:t,installationId:n,smartPhpUpdateStatus:s,installationUrl:a,smartPhpUpdateCloneInstallationId:i,smartPhpUpdateCloneInstallationUrl:r,phpHandlerName:o,targetPhpHandlerName:l,onClose:c,onUpdate:u,onDiscard:d,isApplyInProcessing:p,baseClassName:h=`${th}smart-php-update-result-drawer`,isPhpHandlerManagementAllowed:m,warnings:g})=>{const[f,b]=(0,R.useState)(!1),[v,y]=(0,R.useState)(!1);return(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.drawerTitle"}),subtitle:t,isOpen:e,onClose:c,size:"lg","data-type":"smart-php-update-result",className:h,form:{cancelButton:!1,applyButton:!1,submitButton:!1,additionalButtons:[(()=>{const e=g||[];return(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{"data-test-id":"apply-smart-php-update",intent:"primary",onClick:()=>b(!0),size:"lg",state:p?"loading":void 0,children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.submitButtons.buttonApply"})}),placement:"bottom",visible:f,onClose:()=>b(!1),children:[e.length>0&&(0,L.jsx)("div",{"data-test-id":"smart-php-update-warnings",children:e.map((e=>(0,L.jsx)(Ni,{"data-test-id":`smart-php-update-warning-${e.key}`,children:(0,L.jsx)(Gi,{intent:e.intent,children:e.text})},e.key)))}),(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updateConfirmationDialog.description",params:{phpHandlerName:(0,L.jsx)(da,{bold:!0,children:o}),targetPhpHandlerName:(0,L.jsx)(da,{bold:!0,children:l})},component:"p"}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>{b(!1),u()},"data-test-id":"confirm-apply-smart-php-update",intent:"primary",children:m?(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updateConfirmationDialog.buttonOk"}):(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updateConfirmationDialog.buttonOkLock"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>b(!1),children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.updateConfirmationDialog.buttonCancel"})})})]})]},"apply-button")})(),(0,L.jsxs)(Ks,{target:(0,L.jsx)(ut,{"data-test-id":"discard-smart-php-update",onClick:()=>y(!0),size:"lg",disabled:p,children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.submitButtons.buttonDiscard"})}),placement:"bottom",visible:v,onClose:()=>y(!1),children:[(0,L.jsx)(pp,{content:"smartPhpUpdate.result.discardConfirmationDialog.description",component:"p"}),(0,L.jsxs)(Ha,{children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>{y(!1),d()},"data-test-id":"confirm-discard-smart-php-update",intent:"danger",children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.discardConfirmationDialog.buttonOk"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>y(!1),children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.discardConfirmationDialog.buttonCancel"})})})]})]},"discard-button")]},children:(0,L.jsx)(Pq,{installationId:n,installationUrl:a,phpHandlerName:o,targetPhpHandlerName:l,smartPhpUpdateStatus:s,smartPhpUpdateCloneInstallationId:i,smartPhpUpdateCloneInstallationUrl:r,isPublic:!1})})},Lq=Fc((e=>({upVotedFeatures:e.app.options.upVotedFeatures})),{upVoteForFeature:wb,addSuccessMessage:nb})((({label:e,featureName:t,upVotedFeatures:n,upVoteForFeature:s,addSuccessMessage:a})=>(0,L.jsx)(Fe,{intent:"info",children:(0,L.jsxs)(ga,{gap:"xs",children:[(0,L.jsx)(fa,{xs:11,children:e}),(0,L.jsx)(fa,{xs:1,children:(0,L.jsx)(ut,{state:"active",disabled:n.includes(t),onToggle:()=>{s(t).then((()=>{a((0,L.jsx)(pp,{content:"upVoteForFeature.successVoteUp"}))}))},children:(0,L.jsx)(pp,{content:"upVoteForFeature.voteButton"})})})]})}))),Mq=Object.assign({isLoading:!1,isProcessing:!1,isApplyInProcessing:!1,technicalDomainAvailable:!1,newSubdomainParentDomains:null,phpVersions:null,formValues:{parentDomain:null,phpVersion:null},messages:null,featureIsLimitedForThisConfiguration:!1,errorMessage:null,formErrors:{},smartPhpUpdateTaskId:null,smartPhpUpdateTask:null,smartPhpUpdateResultDrawerVisible:!1,isPhpHandlerManagementAllowed:!0},{installationUrl:null,installationDisplayTitle:null,phpHandler:null,targetPhpHandler:null,smartPhpUpdateStatus:null,smartPhpUpdateCloneInstallationUrl:null,smartPhpUpdateCloneInstallationId:null});class Eq extends R.Component{constructor(e){super(e),this.handleOpenAndLoadData=()=>{this.setState(Object.assign(Object.assign({},Mq),{isLoading:!0}));const{instancesActions:{smartPhpUpdateStubLoaded:e},installation:{id:t}}=this.props;this.getSmartPhpUpdateStub().then((n=>{var s;const a=null===(s=n.meta.messages)||void 0===s?void 0:s.some((e=>"phpHandlerManagementNotAllowed"===e.key));if(this.setState({messages:n.meta.messages,featureIsLimitedForThisConfiguration:n.meta.limited,isPhpHandlerManagementAllowed:!a}),null===n.meta.tasks.update){if(n.meta.taskStatus!==_N)return this.setState({isProcessing:!0}),void this.getSmartPhpUpdateResult().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}));this.setState({isLoading:!1}),e(t)}else this.setState({isLoading:!1,isProcessing:!0,smartPhpUpdateTask:n.meta.tasks.update,smartPhpUpdateTaskId:n.meta.tasks.update.id},(()=>this.handleSmartPhpUpdateTaskUpdated()))})).catch((e=>{var t;(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&400===e.response.status||this.props.onClose()}))},this.getSmartPhpUpdateResult=()=>{const{instancesActions:{getSmartPhpUpdateResult:e},installation:{id:t}}=this.props;return e(t).then((({url:e,displayTitle:t,clone:{id:n,url:s},phpUpdateStatus:a,details:i,phpHandler:r,targetPhpHandler:o})=>{this.setState({installationUrl:e,installationDisplayTitle:t,phpHandler:r,targetPhpHandler:o,smartPhpUpdateStatus:{status:a,details:i.reduce(((e,{pageUrl:t,before:n,after:s})=>(e.push({pageUrl:t,beforePageFetchingErrorCode:n.pageFetchingErrorCode,before:n,afterPageFetchingErrorCode:s.pageFetchingErrorCode,after:s}),e)),[])},smartPhpUpdateCloneInstallationId:n,smartPhpUpdateCloneInstallationUrl:s,smartPhpUpdateResultDrawerVisible:!0})}))},this.getSmartPhpUpdateStub=()=>{const{instancesActions:{getSmartPhpUpdateStub:e},installation:{id:t}}=this.props;return e(t).then((e=>{var t,n,s;e.value.newSubdomain?this.setState((t=>({technicalDomainAvailable:!1,newSubdomainParentDomains:e.value.newSubdomain.value.parentDomain.meta.choices,formValues:Object.assign(Object.assign({},t.formValues),{parentDomain:e.value.newSubdomain.value.parentDomain.value})}))):this.setState({technicalDomainAvailable:!0});const a=null===(s=null===(n=null===(t=this.props.installation.features)||void 0===t?void 0:t.php)||void 0===n?void 0:n.handler)||void 0===s?void 0:s.identifier,i=e.value.php.meta.versions.filter((e=>!a||e.value!==a));return 0===i.length&&this.setState({formErrors:{phpVersion:{noAlternates:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.noAlternativePhp"})}}}),this.setState({phpVersions:i}),e})).catch((e=>{var t,n,s;return(null===(s=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message)&&this.setState({errorMessage:e.response.data.meta.message}),Promise.reject(e)}))},this.handleUpdate=()=>{const{instancesActions:{acceptSmartPhpUpdate:e,setInstallationPhpHandler:t,smartPhpUpdateResultApplied:n},installation:{id:s},appActions:{addSuccessMessage:a}}=this.props,{targetPhpHandler:i,phpVersions:r}=this.state;this.setState({isLoading:!0,isProcessing:!1,isApplyInProcessing:!0}),e(s).then((()=>{const e=r.find((e=>e.value===i.identifier));t(s,Object.assign(Object.assign({},i),{eoled:null==e?void 0:e.eoled})),n(s),a((0,L.jsx)(pp,{content:"smartPhpUpdate.result.appliedSuccessfully"})),this.handleCloseSmartPhpUpdateResultDrawer(),this.props.onClose()})).catch((()=>{})).finally((()=>{this.setState({isApplyInProcessing:!1}),this.getSmartPhpUpdateStub().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}))},this.handleDiscard=()=>{const{instancesActions:{discardSmartPhpUpdate:e,smartPhpUpdateResultDiscarded:t},installation:{id:n}}=this.props;this.handleCloseSmartPhpUpdateResultDrawer(),this.setState({isLoading:!0,isProcessing:!1}),e(n).then((()=>{t(n)})).catch((()=>{})).finally((()=>{this.getSmartPhpUpdateStub().catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))}))},this.handleCloseSmartPhpUpdateResultDrawer=()=>this.setState({smartPhpUpdateResultDrawerVisible:!1}),this.getPhpHandlerTitle=e=>{let{title:t}=e;return!1===e.isFpmAvailable&&(t=(0,L.jsxs)(L.Fragment,{children:[t," ","(",(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.nonFpm"}),")"]})),e.eoled&&(t=(0,L.jsxs)(L.Fragment,{children:[t," ","(",(0,L.jsx)(xe,{name:"triangle-exclamation-mark-filled",intent:"warning"})," ",(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.phpVersionEoled"}),")"]})),t},this.renderErrorMessage=e=>(0,L.jsx)(Fe,{intent:"danger",children:e}),this.renderSmartPhpUpdateForm=()=>{var e,t,n,s;const{isLoading:a,newSubdomainParentDomains:i,phpVersions:r,technicalDomainAvailable:o}=this.state;return a?(0,L.jsx)(Qn,{}):(0,L.jsxs)(L.Fragment,{children:[!o&&i&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.subdomainWillCreated"})}),(0,L.jsx)(Vr,{name:"parentDomain",label:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.parentDomainLabel"}),fullDescription:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.parentDomainLabel.desc"}),required:!0,onChange:e=>this.setState((t=>({formValues:Object.assign(Object.assign({},t.formValues),{parentDomain:e})}))),"data-test-id":"smart-php-update-parent-domain-selector",children:i.map((e=>(0,L.jsx)(Nr,{"data-test-value":e.value,value:e.value,children:e.title},e.value)))})]}),o&&(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.techDomainWillCreated"})}),r&&(0,L.jsx)(Vr,{name:"phpVersion",label:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.phpVersionLabel"}),description:(null===(s=null===(n=null===(t=null===(e=this.props.installation)||void 0===e?void 0:e.features)||void 0===t?void 0:t.php)||void 0===n?void 0:n.handler)||void 0===s?void 0:s.name)?(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.currentHandler",params:{handler:this.props.installation.features.php.handler.name}})}):void 0,fullDescription:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.phpVersionLabel.desc"}),required:!0,onChange:e=>this.setState((t=>({formValues:Object.assign(Object.assign({},t.formValues),{phpVersion:e})}))),"data-test-id":"smart-php-update-php-version-selector",children:r.map((e=>(0,L.jsx)(Nr,{"data-test-value":e.value,value:e.value,label:e.title,children:this.getPhpHandlerTitle(e)},e.value)))})]})},this.renderHowItWorks=()=>(0,L.jsx)(Ks,{target:(0,L.jsxs)(ut,{ghost:!0,children:[(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.howItWorks.link"})," ",(0,L.jsx)(xe,{name:"question-mark-circle"})]}),placement:"top-right",children:(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.howItWorks.content"})})}),this.renderSmartUpdateResultsDrawer=()=>{const{installation:{id:e},onClose:t}=this.props,{isApplyInProcessing:n,installationUrl:s,installationDisplayTitle:a,phpHandler:i,targetPhpHandler:r,smartPhpUpdateStatus:o,smartPhpUpdateCloneInstallationUrl:l,smartPhpUpdateCloneInstallationId:c,smartPhpUpdateResultDrawerVisible:u,isPhpHandlerManagementAllowed:d,messages:p}=this.state;return o?(0,L.jsx)(Oq,{isOpen:u,subtitle:a,installationId:e,installationUrl:s,phpHandlerName:i.name,targetPhpHandlerName:r.name,smartPhpUpdateStatus:o,smartPhpUpdateCloneInstallationId:c,smartPhpUpdateCloneInstallationUrl:l,onClose:()=>this.setState({smartPhpUpdateResultDrawerVisible:!1},t),onUpdate:this.handleUpdate,onDiscard:this.handleDiscard,isApplyInProcessing:n,isPhpHandlerManagementAllowed:d,warnings:p}):null},this.handleSubmit=()=>{const{formValues:e}=this.state,{installation:{id:t},instancesActions:{runSmartPhpUpdate:n}}=this.props;this.setState({isProcessing:!0,formErrors:[]}),n({installationId:t,newSubDomain:e.parentDomain?{parentDomain:e.parentDomain}:null,php:e.phpVersion}).then((e=>{this.setState({smartPhpUpdateTaskId:e.id})})).catch((e=>{var t,n;(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)&&Object.keys(e.response.data.formErrors).length>0&&this.setState({formErrors:e.response.data.formErrors}),this.setState({isProcessing:!1})}))},this.handleUpdateBackgroundTasks=e=>{const{smartPhpUpdateTaskId:t}=this.state;if(!t)return;const n=nT(t,e);n&&this.setState({smartPhpUpdateTask:n},(()=>this.handleSmartPhpUpdateTaskUpdated()))},this.handleSmartPhpUpdateTaskUpdated=()=>{const{smartPhpUpdateTask:e}=this.state;eT(e)?this.getSmartPhpUpdateStub().then((e=>{e.meta.taskStatus!==_N&&(this.setState({isLoading:!0,smartPhpUpdateTaskId:null,smartPhpUpdateTask:null}),this.getSmartPhpUpdateResult().catch((()=>{})).then((()=>{this.setState({isProcessing:!1})})))})).catch((()=>{})):tT(e)&&this.setState((()=>({isProcessing:!1,smartPhpUpdateTaskId:null})))},this.renderUpVoteForFeature=()=>(0,L.jsx)(Lq,{label:(0,L.jsx)(pp,{content:"upVoteForFeature.smartPhpUpdate"}),featureName:"smartPhpUpdateFeature"}),this.renderDrawerContent=()=>{const{messages:e,errorMessage:t,featureIsLimitedForThisConfiguration:n,isLoading:s}=this.state;return n?(0,L.jsx)(L.Fragment,{children:this.renderUpVoteForFeature()}):t?(0,L.jsx)(L.Fragment,{children:this.renderErrorMessage(t)}):(0,L.jsxs)(L.Fragment,{children:[this.renderSmartPhpUpdateForm(),!s&&this.renderHowItWorks(),this.renderSmartUpdateResultsDrawer()]})},this.state=Mq}componentDidUpdate(e,t,n){!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),this.props.isOpen&&e.tasks!==this.props.tasks&&this.handleUpdateBackgroundTasks(this.props.tasks)}renderDrawerSubtitle(){const{installation:{displayTitle:e}}=this.props;return e}render(){const{isOpen:e,onClose:t}=this.props,{isLoading:n,isProcessing:s,featureIsLimitedForThisConfiguration:a,formValues:i,formErrors:r,smartPhpUpdateTask:o}=this.state;return(0,L.jsx)(cr,{"data-type":"smart-php-updates","data-test-id":"smart-php-update-stub-drawer",isOpen:e,onClose:t,title:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.drawerTitle"}),subtitle:this.renderDrawerSubtitle(),form:{onSubmit:this.handleSubmit,applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.submitButton"}),disabled:a||n,"data-test-id":"smart-php-update-run-button"},state:s?"submit":void 0,values:i,errors:r},progress:QO(o,(()=>{this.setState({smartPhpUpdateTask:null,smartPhpUpdateTaskId:null})}),[(0,L.jsx)(ut,{intent:"primary",state:s?"loading":void 0,onClick:this.handleSubmit,children:(0,L.jsx)(pp,{content:"forms.smartPhpUpdate.reSubmitButton"})},"reSubmitButton")]),children:this.renderDrawerContent()})}}Eq.propTypes={installation:je().shape({id:je().number.isRequired,displayTitle:je().string.isRequired,features:je().shape({php:je().shape({handler:je().shape({identifier:je().string.isRequired,name:je().string.isRequired})})}).isRequired}).isRequired,isOpen:je().bool.isRequired,onClose:je().func.isRequired,instancesActions:je().shape({getSmartPhpUpdateStub:je().func.isRequired,getSmartPhpUpdateResult:je().func.isRequired,runSmartPhpUpdate:je().func.isRequired,acceptSmartPhpUpdate:je().func.isRequired,discardSmartPhpUpdate:je().func.isRequired,setInstallationPhpHandler:je().func.isRequired,smartPhpUpdateTaskStatusUpdated:je().func.isRequired}).isRequired,tasks:je().array,appActions:je().shape({addSuccessMessage:je().func.isRequired}).isRequired},Eq.defaultProps={tasks:[]};const Rq=Fc((e=>({tasks:e.backgroundTasks.tasks})),(e=>({instancesActions:(0,Cb.zH)(i,e),appActions:(0,Cb.zH)(t,e)})))(Eq);var Uq=r(45192);const Nq=({baseClassName:e=`${th}wpcli-info`})=>(0,L.jsx)(Ks,{target:(0,L.jsx)(Us,{children:(0,L.jsx)(pp,{content:"drawer.wpcli.info.learnMore"})}),title:(0,L.jsx)(pp,{content:"drawer.wpcli.info.title"}),children:(0,L.jsxs)("div",{className:e,children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"drawer.wpcli.info.description",unsafe:!0})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"drawer.wpcli.info.important",unsafe:!0})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"drawer.wpcli.info.attention"})}),null]})}),Fq=e=>{(0,R.useEffect)(e,[])},Bq=({keyCode:e})=>13===e,Yq=({keyCode:e})=>38===e,Hq=({keyCode:e})=>40===e,Vq=({keyCode:e})=>32===e,Wq=({keyCode:e})=>33===e,$q=({keyCode:e})=>34===e,zq=(e,t)=>{const n=[...t],s=n.shift();if(!s)return e;const a=e.find((e=>e.name===s.name));return(null==a?void 0:a.subcommands)?zq(a.subcommands,n):[]},qq="# ",Gq=e=>"string"==typeof e?e:"",Kq=Fc(void 0,(e=>({getWpCliCommandsList:(0,Cb.zH)(D_,e),executeWpCliCommand:(0,Cb.zH)(P_,e)})))((({installationId:e,getWpCliCommandsList:t,executeWpCliCommand:n,baseClassName:s=`${th}wpcli-interface`})=>{const a=cp(),[i,r]=(0,R.useState)([]),[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(""),[d,p]=(0,R.useState)([]),[h,m]=(0,R.useState)([]),[g,f]=(0,R.useState)(!0),[b,v]=(0,R.useState)(-1),[y,S]=(0,R.useState)(qq),[w,x]=(0,R.useState)(!1),[A,_]=(0,R.useState)(!0),[k,j]=(0,R.useState)(!1),[C,I]=(0,R.useState)(!1),[T,D]=RO("wpt-storage-wp-cli-drawer",{isAlertVisible:!0}),[P,O]=(0,R.useState)(!1),M=(0,R.useRef)(null),E=(0,R.useRef)(null);Fq((()=>{O(!0),t(e).then((e=>r(e))).catch((()=>{})).finally((()=>O(!1)))})),(0,R.useEffect)((()=>{const e=e=>{var t,n;e.target instanceof HTMLElement&&!(null===(t=E.current)||void 0===t?void 0:t.contains(e.target))&&!(null===(n=M.current)||void 0===n?void 0:n.contains(e.target))&&(l(!1),B())};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[]);const U=zq(i,h).filter((({name:e})=>-1!==e.indexOf(c.trim())));(0,R.useEffect)((()=>{E.current&&b>=0&&b<U.length&&E.current.children[b].scrollIntoView({block:"center"})}),[b,U]);const N=o&&U.length>0,F=h[h.length-1],B=()=>v(-1),Y=(e,t=`\n${qq}`)=>{S(k?`${qq}${e}${t}`:n=>`${n}${e}${t}`)},H=()=>{let t=h.map((e=>e.name));c.length>0&&(t=t.concat((0,Uq.parse)(c).map(Gq)));const s={command:t,env:d.filter((e=>e&&(null==e?void 0:e.name.length))).reduce(((e,{name:t,value:n})=>(e[t]=n,e)),{})};O(!0),x(!0),Y(`wp ${s.command.join(" ")}`,"\n"),n(e,s).then((e=>{const t=k?`wp ${s.command.join(" ")}\n`:"";Y(`${t}${e.stdout}\n${e.stderr}\n< exit code: ${e.exitCode} >`)})).catch((()=>{})).finally((()=>{O(!1),x(!1)}))},V=e=>{var t;m((t=>[...t,e])),u(""),null===(t=M.current)||void 0===t||t.focus(),B()},W=(e,t)=>(0,L.jsx)(Xe,{title:a("drawer.wpcli.cliTab.commandPart.tooltip"),children:(0,L.jsx)(He,{className:`${s}__command-composer-items-command-part`,intent:"inactive",view:"outline",onClick:()=>((e,t)=>Y(((e,t)=>{let n=((e,t,n)=>`wp help ${e}\n## NAME\n\n wp ${e}\n \n## DESCRIPTION\n\n ${t}\n \n## SYNOPSYS\n\n ${n}`)(t,e.description.short,null===e.synopsis?`wp ${t} <command>`:`wp ${t} ${e.synopsis}`);return e.subcommands.length>0&&(n=((e,t)=>`${e}\n\n## SUBCOMMANDS\n\n${t}`)(n,(e=>{const t=e.length?Math.max(...e.map((e=>e.name.length))):16;return e.map((e=>`\t${e.name.padEnd(t+4)}${e.description.short}`)).join("\n")})(e.subcommands))),e.description.extra&&(n=((e,t)=>`${e}\n\n${t}`)(n,e.description.extra)),n})(e,h.map((e=>e.name)).slice(0,t+1).join(" "))))(e,t),children:(0,L.jsxs)(L.Fragment,{children:[e.name,(0,L.jsx)(Xe,{title:a("drawer.wpcli.cliTab.commandPart.remove"),children:(0,L.jsx)(_e,{onClick:e=>{(e=>{m((t=>[...t.slice(0,e)])),u(""),B()})(t),e.stopPropagation()},icon:(0,L.jsx)(xe,{name:"cross-mark-circle",size:"12"}),"aria-label":a("drawer.wpcli.cliTab.commandPart.remove")})})]})})},e.name),$=(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(ut,{icon:"clean",onClick:()=>{m([]),u("")},disabled:P||0===h.length&&0===c.length,tooltip:a("drawer.wpcli.cliTab.button.clearCommand.tooltip"),"data-test-id":"wp-cli-drawer-clear-btn"}),(0,L.jsx)(ut,{onClick:H,icon:"start",disabled:P,tooltip:a("drawer.wpcli.cliTab.button.execute.tooltip"),state:P?"loading":void 0,"data-test-id":"wp-cli-drawer-run-btn"}),(0,L.jsx)(ut,{onClick:()=>_(!A),icon:"unarchive",state:A?"active":void 0,tooltip:a("drawer.wpcli.cliTab.button.autoscroll.tooltip")}),(0,L.jsx)(ut,{onClick:()=>j(!k),icon:"reload",state:k?"active":void 0,tooltip:a("drawer.wpcli.cliTab.button.autoclear.tooltip")})]}),z=F&&F.synopsis?(0,L.jsx)(Li,{className:`${s}__usage`,label:(0,L.jsx)(Ns,{level:5,children:a("drawer.wpcli.cliTab.usage.title")}),vertical:!0,children:F.synopsis}):null,q=(0,L.jsx)(Li,{name:"environmentVariables",onChange:e=>{p((t=>e))},label:a("drawer.wpcli.cliTab.environment.title"),multi:!0,vertical:!0,disabled:P,className:`${s}__environment-variable`,children:({getId:e,getName:t,getValue:n,setValue:s,isDisabled:i})=>{var r;const{name:o,value:l}=null!==(r=n())&&void 0!==r?r:{name:"",value:""};return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Os,{id:`${e()}-name`,name:`${t()}-name`,value:o,disabled:i(),onChange:e=>s({name:e.target.value,value:l}),placeholder:a("drawer.wpcli.cliTab.environment.input.variable.placeholder").toString()})," ",(0,L.jsx)(Os,{id:`${e()}-value`,name:`${t()}-value`,value:l,disabled:i(),onChange:e=>s({name:o,value:e.target.value}),placeholder:a("drawer.wpcli.cliTab.environment.input.value.placeholder").toString(),size:"xl"})]})}}),G=(0,L.jsxs)(Li,{className:`${s}__command-composer`,label:(0,L.jsx)(Ns,{level:5,children:a("drawer.wpcli.cliTab.input.title")}),vertical:!0,children:[(0,L.jsxs)("div",{className:`${s}__command-composer-items`,children:[(0,L.jsx)(He,{intent:"inactive",view:"outline",children:"wp"}),h.length>0&&h.map(((e,t)=>W(e,t))),(0,L.jsx)(Os,{innerRef:M,size:"lg",value:c,onChange:e=>{u(e.target.value)},onKeyDown:e=>{if(Hq(e)||Yq(e)||Wq(e)||$q(e))return e.preventDefault(),void(e=>{let t=0;Yq(e)&&(t=b-1),Hq(e)&&(t=b+1),Wq(e)&&(t=b-5),$q(e)&&(t=b+5),t<0&&(t=0),t>U.length-1&&(t=U.length-1),v(t)})(e);if((({keyCode:e})=>27===e)(e))return e.preventDefault(),void l(!1);if((({keyCode:e})=>8===e)(e)&&""===c)return e.preventDefault(),m((e=>[...e.slice(0,-1)])),void B();if(N&&(Bq(e)||Vq(e))){e.preventDefault();const t=U[b];t&&V(t)}else!N&&Bq(e)&&(e.preventDefault(),H())},disabled:P,onFocus:()=>l(!0),placeholder:0===U.length&&0!==i.length?a("drawer.wpcli.cliTab.input.placeholder.enterArguments").toString():a("drawer.wpcli.cliTab.input.placeholder.findCommands").toString(),"data-test-id":"wp-cli-drawer-input"}),$]}),N?((b<-1||b>=U.length)&&B(),0!==b&&1===U.length&&v(0),(0,L.jsx)(aa,{className:`${s}__command-composer-menu`,overlay:!0,ref:E,onFocus:()=>I(!0),onBlur:()=>I(!1),children:U.map(((e,t)=>(0,L.jsxs)(Yn,{onClick:()=>V(e),onKeyDown:t=>((e,t)=>{(Bq(e)||Vq(e))&&(e.preventDefault(),V(t))})(t,e),active:!C&&b===t,"data-test-id":`wp-cli-drawer-cmd-${e.name}`,children:[(0,L.jsx)(da,{intent:"success",bold:!0,children:e.name}),e.description.short?` - ${e.description.short}`:null,e.synopsis?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("br",{}),(0,L.jsx)(da,{intent:"muted",children:e.synopsis})]}):null]},e.name)))})):null]});return(0,L.jsxs)("div",{className:s,children:[T.isAlertVisible?(0,L.jsx)(Fe,{className:`${s}__alert`,intent:"warning",onClose:()=>D({isAlertVisible:!1}),children:a("drawer.wpcli.info.attention")}):null,(0,L.jsx)(Nq,{}),G,z,(0,L.jsx)(Ni,{className:`${s}__additional-section`,collapsible:!0,collapsed:g,onToggle:e=>f(e),title:(0,L.jsx)(Ns,{level:5,children:a("drawer.wpcli.additionalSection.title")}),children:q}),(0,L.jsx)("hr",{}),(0,L.jsx)(li,{className:`${s}__console`,autoscroll:A,cursor:w,"data-test-id":"wp-cli-drawer-output",children:y}),(0,L.jsx)(ut,{onClick:()=>S(qq),tooltip:a("drawer.wpcli.cliTab.button.clear.tooltip"),"data-test-id":"wp-cli-drawer-clear-output-btn",children:a("drawer.wpcli.cliTab.button.clear.title")})]})})),Qq=({isOpen:e,onClose:t,installationId:n})=>(0,L.jsx)(cr,{isOpen:e,onClose:t,title:(0,L.jsx)(pp,{content:"drawer.wpcli.title"}),"data-type":"wp-cli-drawer",children:(0,L.jsx)(Kq,{installationId:n})});var Jq,Xq;(Xq=Jq||(Jq={}))[Xq.GENERAL=1]="GENERAL",Xq[Xq.PLUGINS=2]="PLUGINS",Xq[Xq.THEMES=3]="THEMES",Xq[Xq.DATABASE=4]="DATABASE";class Zq extends R.Component{constructor(e){super(e),this.setActiveTab=e=>{this.setState({activeTab:e})},this.handleOpenPluginsUpdates=()=>{this.props.onOpenUpdatesDialog("CRD-PLUGINS",iS)},this.handleOpenThemesUpdates=()=>{this.props.onOpenUpdatesDialog("CRD-THEMES",rS)},this.handleCloseUpdates=()=>{const{onCloseUpdatesDialog:e}=this.props;e()},this.handleRefresh=()=>this.props.onRefresh("CRD-DATABASE_TAB"),this.handleSwitchPhpHandler=e=>this.props.onSwitchPhpHandler(this.props.installation.id,e),this.handleRefreshAndOpenMainTab=()=>{this.handleRefresh(),this.setActiveTab(Jq.GENERAL)},this.handleOpenNativePlugins=()=>{this.props.onOpenNativeAssets(this.props.installation.id,Up)},this.handleOpenNativeThemes=()=>{this.props.onOpenNativeAssets(this.props.installation.id,Rp)},this.renderLicenseLimitsNotifier=()=>this.props.installation.features.remoteManagement.available?null:(0,L.jsx)("div",{className:"wpt-license-limit-exceeded-blocker","data-test-id":"remote-instance-license-limit-exceeded-blocker",children:(0,L.jsxs)(Fe,{intent:"info",children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle"}),(0,L.jsx)(pp,{content:"remote-servers.remoteManagementAllowedOnlyWithLicense"})]})}),this.handleToggleRemoteInstanceSettings=()=>this.setState((e=>({showRemoteInstancePropertiesForm:!e.showRemoteInstancePropertiesForm}))),this.handleToggleRemoteAgentInstanceSettings=()=>this.setState((e=>({showRemoteAgentInstancePropertiesForm:!e.showRemoteAgentInstancePropertiesForm}))),this.handleOpenWpCliDrawer=()=>this.setState({isWpCliDrawerOpen:!0}),this.handleCloseWpCliDrawer=()=>this.setState({isWpCliDrawerOpen:!1}),this.getPluginsTabLabel=()=>{const{installation:{features:{pluginsBlockList:e}}}=this.props;return e.amountOfBlockedPlugins&&e.amountOfBlockedPlugins>0?(0,L.jsx)(He,{intent:"warning",children:(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"general-ui.tabs.plugins.hintBlockedPluginsCount"}),children:(0,L.jsx)(da,{children:e.amountOfBlockedPlugins})})}):null},this.renderRemoteInstancePropertiesDrawer=()=>{const{showRemoteInstancePropertiesForm:e}=this.state,{installation:{server:t}}=this.props;return t&&e?(0,L.jsx)(BB,{installation:this.props.installation,onToggleRemoteInstancePropertiesForm:this.handleToggleRemoteInstanceSettings}):null},this.renderRemoteAgentInstancePropertiesDrawer=()=>{const{showRemoteAgentInstancePropertiesForm:e}=this.state,{installation:{server:t}}=this.props;return t&&e?(0,L.jsx)(HB,{installation:this.props.installation,onToggleRemoteAgentInstancePropertiesForm:this.handleToggleRemoteAgentInstanceSettings}):null},this.isSynchronizeSiteUrlAvailable=()=>this.props.isSynchronizeSiteUrlEnabled&&this.props.installation.features.synchronizeSiteUrl.available,this.renderSynchronizeSiteUrlDialog=()=>this.isSynchronizeSiteUrlAvailable()?(0,L.jsx)(WB,{installationId:this.props.installation.id,onClose:this.props.onCloseSynchronizeSiteUrlDialog,onSynchronizeSiteUrl:()=>{this.props.instanceActions.synchronizeSiteUrl(this.props.installation.id),this.props.onCloseSynchronizeSiteUrlDialog()},isOpen:this.props.showSynchronizeSiteUrlDialog}):null,this.renderScrollToElement=()=>{const{isSelected:e,onSetSelectedInstanceAnchor:t}=this.props;return e?(0,L.jsx)("div",{ref:t}):null},this.renderUpdatesDrawer=()=>{const{onOpenUpdatesSettingsDialog:e,onCloseUpdatesSettingsDialog:t,showUpdates:n,openUpdatesType:s,isUpdateSettingsFormOpen:a}=this.props;return(0,L.jsx)(E_,{children:(0,L.jsx)(IB,{onClose:this.handleCloseUpdates,onOpenUpdatesSettingsDialog:e,onCloseUpdatesSettingsDialog:t,installation:this.props.installation,openUpdatesType:s,isUpdateSettingsFormOpen:a,isOpen:n})})},this.renderSmartPhpUpdateDrawer=()=>{const{installation:e,isSmartPhpUpdatesDrawerOpen:t,onCloseSmartPhpDrawer:n,showSmartPhpUpdates:s}=this.props;return s&&(0,L.jsx)(Rq,{installation:e,isOpen:t,onClose:n})},this.renderSecurityDrawer=()=>{const{showSecurityForm:e,onCloseSecurityDialog:t,installation:n,securityDrawerActiveTab:s,onOpenVirtualPatchingUpsellDialog:a}=this.props;return(0,L.jsx)(kM,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.drawerTitle"}),subtitle:n.displayTitle,installation:n,isOpen:e,onClose:t,activeTab:s,onOpenVirtualPatchingUpsellDialog:a})},this.renderActionLogDrawer=()=>(0,L.jsx)(uV,{isOpen:this.props.isActionLogDrawerVisible,installation:this.props.installation,onCloseActionLogDrawer:this.props.onCloseActionLogDrawer}),this.renderCheckWordPressIntegrityDialog=()=>{const{isCheckWordPressIntegrityDialogVisible:e,onCloseCheckWordPressIntegrityDialog:t,onOpenBackupDrawer:n,installation:s}=this.props;return(0,L.jsx)(vV,{isOpen:e,installation:s,onCloseCheckWordPressIntegrityDialog:t,onOpenBackupDrawer:n})},this.renderBackupDrawer=()=>(0,L.jsx)(aL,{installation:this.props.installation,onClose:this.props.onCloseBackupDrawer,isOpen:this.props.isBackupDrawerVisible}),this.renderWpCliDrawer=()=>(0,L.jsx)(Qq,{isOpen:this.state.isWpCliDrawerOpen,onClose:()=>this.handleCloseWpCliDrawer(),installationId:this.props.installation.id}),this.renderContent=()=>{const{installation:e,installation:{id:t,features:{php:n,updates:s},status:{alive:a,infected:i,unsupported:r},title:o},onDetach:l,onDisableInstances:c,onEnableInstances:u,instanceActions:{setInstanceName:d},addErrorMessage:p,isCloneDrawerOpen:h,onOpenCloneDrawer:m,onCloseCloneDrawer:g,isSyncDrawerOpen:f,onOpenSyncDrawer:b,onCloseSyncDrawer:v,onOpenSecurityDialog:y,onOpenUpdatesDialog:S,onOpenActionLogDrawer:w,onOpenBackupDrawer:x,urls:{upgradingInstanceInstructionsUrl:A},onOpenCheckWordPressIntegrityDialog:_,checkWordPressIntegrityFeatureEnabled:k,onOpenSmartPhpUpdatesDrawer:j}=this.props;return r?(0,L.jsx)(kH,{installation:this.props.installation,upgradingInstanceInstructionsUrl:A}):!a||i?(0,L.jsx)(RB,{installation:this.props.installation,onDetach:l,onToggleRemoteInstanceSettings:this.handleToggleRemoteInstanceSettings,onToggleRemoteAgentInstanceSettings:this.handleToggleRemoteAgentInstanceSettings,onOpenCheckWordPressIntegrityDialog:_,disableInstances:c,enableInstances:u,checkWordPressIntegrityFeatureEnabled:k}):(0,L.jsxs)("div",{children:[(0,L.jsx)(fY,{installationId:t,name:o,setInstanceName:d,addErrorMessage:p}),n.eoled&&(0,L.jsx)(yV,{installation:e,onOpenSmartPhpUpdatesDrawer:j}),s.availableVersion&&(0,L.jsx)(SV,{}),(0,L.jsxs)(Nl,{active:this.state.activeTab,children:[(0,L.jsx)(Pl,{onActivate:()=>{this.context("CRD-TAB_DASHBOARD-CLICKED"),this.setActiveTab(Jq.GENERAL)},title:(0,L.jsx)(pp,{content:"controllers.index.detail.generalTabHeader"}),"data-test-id":"instance-tab-general",children:(0,L.jsxs)(E_,{children:[(0,L.jsx)(Tq,{installation:e,onOpenBackupDrawer:()=>x("CRD-DASHBOARD"),onOpenActionLogDrawer:()=>w("CRD-DASHBOARD"),onOpenSyncDrawer:()=>b(t,"CRD-DASHBOARD"),onOpenCloneDrawer:()=>m(t,"CRD-DASHBOARD"),onOpenWpCliDrawer:()=>this.handleOpenWpCliDrawer()}),(0,L.jsx)(hq,{isOpen:f,onClose:v,installation:this.props.installation}),(0,L.jsx)(kq,{isOpen:h,onClose:g,installation:this.props.installation}),(0,L.jsx)(wH,{installation:this.props.installation,openUpdates:S,onEnableInstances:u,onDisableInstances:c,onOpenSecurityDialog:y,onOpenSmartPhpUpdates:s.php.available?j:void 0,onOpenVirtualPatchingUpsellDialog:this.props.onOpenVirtualPatchingUpsellDialog,onOpenVirtualPatchingLicenseInfoDrawer:this.props.onOpenVirtualPatchingLicenseInfoDrawer})]})}),(0,L.jsx)(Pl,{onActivate:()=>{this.context("CRD-TAB_PLUGINS-CLICKED"),this.setActiveTab(Jq.PLUGINS)},title:(0,L.jsx)(pp,{content:"controllers.index.detail.pluginsTabHeader"}),label:this.getPluginsTabLabel(),"data-test-id":"instance-tab-plugins",children:(0,L.jsx)(E_,{children:(0,L.jsx)(QF,{installation:this.props.installation,onOpenNativePlugins:this.handleOpenNativePlugins,onUpdatesOpen:this.handleOpenPluginsUpdates,onOpenSecurityDialog:y})})}),(0,L.jsx)(Pl,{onActivate:()=>{this.context("CRD-TAB_THEMES-CLICKED"),this.setActiveTab(Jq.THEMES)},title:(0,L.jsx)(pp,{content:"controllers.index.detail.themesTabHeader"}),"data-test-id":"instance-tab-themes",children:(0,L.jsx)(E_,{children:(0,L.jsx)(ZF,{installation:this.props.installation,onOpenNativeThemes:this.handleOpenNativeThemes,onUpdatesOpen:this.handleOpenThemesUpdates,onOpenSecurityDialog:y})})}),(0,L.jsx)(Pl,{onActivate:()=>{this.context("CRD-TAB_DATABASE-CLICKED"),this.setActiveTab(Jq.DATABASE)},title:(0,L.jsx)(pp,{content:"controllers.index.detail.databaseTabHeader"}),"data-test-id":"instance-tab-database",children:(0,L.jsx)(E_,{children:(0,L.jsx)(iB,{installation:this.props.installation,onError:this.handleRefreshAndOpenMainTab})})})]})]})},this.renderFooter=()=>{const{installation:{status:{alive:e,unsupported:t}},installation:n,isLoading:s,onOpenUpdatesDialog:a,onOpenCheckWordPressIntegrityDialog:i}=this.props;return s?null:e?t?null:(0,L.jsx)(_H,{installation:n,onOpenUpdatesDialog:a,onOpenCheckWordPressIntegrityDialog:i}):null},this.renderLegacyView=()=>(0,L.jsxs)("div",{children:[(0,L.jsxs)(si,{gap:"md",children:[(0,L.jsx)(ii,{width:"316px",children:(0,L.jsx)(qB,{installation:this.props.installation,onToggleRemoteInstanceSettings:CO(this.props.installation.installationType)?this.handleToggleRemoteAgentInstanceSettings:this.handleToggleRemoteInstanceSettings,initialShowAdminSettingsDrawer:this.props.initialShowAdminSettingsDrawer})}),(0,L.jsx)(ii,{fill:!0,children:this.renderContent()})]}),this.renderFooter()]}),this.state={activeTab:this.props.activeTab,showRemoteInstancePropertiesForm:!1,showRemoteAgentInstancePropertiesForm:!1,isWpCliDrawerOpen:!1}}componentDidUpdate(e){e.activeTab!==this.props.activeTab&&this.props.activeTab&&this.setActiveTab(this.props.activeTab)}componentWillUnmount(){const{showSynchronizeSiteUrlDialog:e,onCloseSynchronizeSiteUrlDialog:t,showSecurityForm:n,onCloseSecurityDialog:s,isCloneDrawerOpen:a,onCloseCloneDrawer:i,isSyncDrawerOpen:r,onCloseSyncDrawer:o,showUpdates:l,onCloseUpdatesDialog:c}=this.props;e&&t(),n&&s(),a&&i(),r&&o(),l&&c()}renderView(){const{installation:{features:{php:e}}}=this.props;return e.unsupported?(0,L.jsx)(CH,{installation:this.props.installation,onChangePHPHandler:this.handleSwitchPhpHandler}):this.renderLegacyView()}render(){const{installation:{id:e,title:t},isLoading:n,baseClassName:s}=this.props;return(0,L.jsxs)("div",{className:s,"data-test-id":`instance-body-${e}`,"data-test-name":`instance-body-${t}`,"data-test-row":"body",children:[this.renderView(),n&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0}),this.renderUpdatesDrawer(),this.renderSmartPhpUpdateDrawer(),this.renderLicenseLimitsNotifier(),this.renderRemoteInstancePropertiesDrawer(),this.renderRemoteAgentInstancePropertiesDrawer(),this.renderScrollToElement(),this.renderSynchronizeSiteUrlDialog(),this.renderSecurityDrawer(),this.renderActionLogDrawer(),this.renderCheckWordPressIntegrityDialog(),this.renderBackupDrawer(),this.renderWpCliDrawer()]})}}Zq.defaultProps={baseClassName:`${th}instance-card`,openUpdatesType:null,initialShowAdminSettingsDrawer:!1,securityDrawerActiveTab:void 0},Zq.contextType=Q_;const eG=Fc(((e,t)=>({isSynchronizeSiteUrlEnabled:e.app.options.isSynchronizeSiteUrlEnabled,checkWordPressIntegrityFeatureEnabled:e.app.options.checkWordPressIntegrityFeature,urls:e.app.urls,activeTab:e.instances.activeTabs.get(t.installation.id)||Jq.GENERAL,showSmartPhpUpdates:e.app.options.smartPhpUpdateFeature})),(e=>({instanceActions:(0,Cb.zH)(i,e),addErrorMessage:t=>e(ab(t))})))(Zq),{CancelToken:tG}=Fg,nG={installingCustomAssetBackgroundTask:null,showInstallingCustomAssetBackgroundTaskDetails:!1,isInstallingCustomAssetBackgroundTaskProcessing:!1},sG={rating:0,numberOfInstallations:0,compatible:!1,lastUpdated:"all"};class aG extends R.Component{constructor(e){super(e),this.updateFilterState=e=>{const{filterState:t}=this.state;this.setState({filterState:Object.assign(Object.assign({},t),e)},this.fetchFirstPage)},this.isAssetsLoaded=()=>!(this.state&&this.state.type===Up&&(!this.props.pluginsV2||0===this.props.pluginsV2.length)||this.state&&this.state.type===Rp&&(!this.props.themesV2||0===this.props.themesV2.length)),this.getAvailableAssets=({page:e=1,pageSize:t=40,searchValue:n="",compatible:s=!1,rating:a=0,lastUpdated:i="all",numberOfInstallations:r=0})=>{const{installation:o,assetActions:{getAvailable:l}}=this.props,{type:c,source:u}=this.state;let d=u;return this.state.isLoading&&(u.cancel(),d=tG.source(),this.setState({source:d})),this.setState({isLoading:!0}),l({installationId:o.id,assetsType:c,page:e,pageSize:t,term:n,token:d.token,compatible:s,rating:a,lastUpdated:i,numberOfInstallations:r}).catch((()=>{}))},this.checkStickyFilter=()=>{const e=document.documentElement.clientHeight-150,t=document.querySelector("#assets-container .wpt-assets-filter-container > div");if(!t)return;const n=e>t.clientHeight;n!==this.state.isStickyFilter&&this.setState({isStickyFilter:n})},this.isAssetInstalling=(e,t)=>this.props.installingAssets.has(yp({slug:e.slug,instanceId:t})),this.showAssetDetails=e=>this.setState({selectedItem:e}),this.setLoading=e=>this.setState({isLoading:e}),this.setFiltered=e=>this.setState({isFiltered:e}),this.setSearching=e=>this.setState({isSearching:e}),this.handleSearchItems=(e="")=>{this.setState((t=>({isSearching:""!==e,[`${t.type}SearchValue`]:e.trim()})),(()=>{this.fetchFirstPage()}))},this.handleSearchTyping=e=>{const t=e.trim(),n=this.state[`${this.state.type}SearchValue`];clearTimeout(this.searchTimeout),n!==t&&(n.length<t.length&&t.length>=3||n.length>t.length)&&(this.searchTimeout=setTimeout((()=>this.handleSearchItems(t)),500))},this.handleCloseAssetDetails=()=>this.setState({selectedItem:null}),this.handleGoToPluginsTab=()=>{this.state.type!==Up&&this.setState({type:Up,activeTab:1,isFiltered:!1},this.fetchFirstPage)},this.handleGoToThemesTab=()=>{this.state.type!==Rp&&this.setState({type:Rp,activeTab:2,isFiltered:!1},this.fetchFirstPage)},this.handleClearFilter=()=>{this.setState({isFiltered:!1,filterState:sG},this.fetchFirstPage)},this.fetchFirstPage=()=>this.setState({assetsListKey:(new Date).getTime()}),this.handleFetchItems=({page:e,pageSize:t})=>{const{type:n,filterState:{compatible:s,rating:a,lastUpdated:i,numberOfInstallations:r}}=this.state;this.getAvailableAssets({page:e,pageSize:t,searchValue:this.state[`${n}SearchValue`],compatible:s,rating:a,lastUpdated:i,numberOfInstallations:r}).then((e=>(this.setState({items:e.items,totalItems:e.total}),e))).finally((()=>{this.setState({isLoading:!1,isSearching:!1}),this.checkStickyFilter()}))},this.updateInstallingCustomAssetBackgroundTaskOnFinish=()=>{const{installingCustomAssetBackgroundTask:{steps:e,publicParams:{websiteUrls:t,assetType:n}}}=this.state,{installation:s,instancesActions:{setSelectedInstanceId:a,setInstanceActiveTab:i},onClose:r}=this.props,o=n===Up?"installCustomPlugin":"installCustomTheme",l=n===Up?this.state.installingCustomAssetBackgroundTask.publicParams.pluginName:this.state.installingCustomAssetBackgroundTask.publicParams.themeName,c=Object.assign({},e);c[o].title=(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(pp,{content:n===Up?"general-ui.install-custom-asset.pluginInstalledSuccessfully":"general-ui.install-custom-asset.themeInstalledSuccessfully",params:{assetName:l,websiteUrls:t}})," ",(0,L.jsx)(_e,{onClick:()=>{a(s.id,n),i(s.id,n===Up?Jq.PLUGINS:Jq.THEMES),r()},children:n===Up?(0,L.jsx)(pp,{content:"general-ui.install-custom-asset.installedPluginsLink"}):(0,L.jsx)(pp,{content:"general-ui.install-custom-asset.installedThemesLink"})})]}),this.setState((e=>({installingCustomAssetBackgroundTask:Object.assign(Object.assign({},e.installingCustomAssetBackgroundTask),{steps:c})})))},this.handleOnReceiveInstallCustomAssetBackgroundTaskData=()=>{const{installingCustomAssetBackgroundTaskId:e,installingCustomAssetBackgroundTask:t}=this.state,{tasks:n,installation:s,assetActions:{uploadAndInstallAssetToSingleInstanceFinished:a,uploadAndInstallAssetToSingleInstanceFinishedWithError:i},type:r}=this.props;if(!e)return;const o=nT(e,n);o&&t!==o&&this.setState({installingCustomAssetBackgroundTask:o},(()=>{eT(o)?(this.setState({isInstallingCustomAssetBackgroundTaskProcessing:!1}),this.updateInstallingCustomAssetBackgroundTaskOnFinish(),a(s.id,r).catch((()=>{}))):tT(o)&&(this.setState({isInstallingCustomAssetBackgroundTaskProcessing:!1}),i())}))},this.handleInstallCustomAsset=(e,t)=>{const{isInstallingCustomAssetBackgroundTaskProcessing:n}=this.state,{installation:s,assetActions:{uploadAndInstallAssetToSingleInstance:a}}=this.props;n||1!==t.length||(this.props.onClearDrawerMessages(),a(s.id,e,t[0]).then((e=>{this.setState({showInstallingCustomAssetBackgroundTaskDetails:!0,isInstallingCustomAssetBackgroundTaskProcessing:!0,installingCustomAssetBackgroundTask:null,installingCustomAssetBackgroundTaskId:e.task.id})})).catch((()=>{})))},this.handleInstallCustomAssetRejected=e=>{this.props.onClearDrawerMessages(),this.props.onAddDrawerErrorMessage(e===Up?"general-ui.install-custom-asset.pluginFileWrongFormat":"general-ui.install-custom-asset.themeFileWrongFormat",!0)},this.getToolbarGroups=()=>{const e=[],{installingAssets:t}=this.props,{type:n}=this.state;return t.size>0&&e.push((0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{})," ",(0,L.jsx)(pp,{content:`general-ui.native-${n}.installing`,params:{number:t.size}},`native-${n}-installing-counter`)]},"installing-assets")),e},this.state=Object.assign(Object.assign({isLoading:!1,isSearching:!1,isFiltered:!1,filterState:sG,items:[],totalItems:0,type:e.type,assetsListKey:(new Date).getTime(),selectedItem:null,isStickyFilter:!1,activeTab:e.type===Up?1:2,source:tG.source(),pluginsSearchValue:"",themesSearchValue:""},nG),{isAssetsLoaded:this.isAssetsLoaded()})}componentDidMount(){window.addEventListener("resize",this.checkStickyFilter,!1),this.state.isAssetsLoaded||(this.state.type===Up?this.props.pluginsActions.getInstallationPlugins(this.props.installation.id).catch((()=>{})).finally((()=>this.setState({isAssetsLoaded:!0}))):this.props.themesActions.getInstallationThemes(this.props.installation.id).catch((()=>{})).finally((()=>this.setState({isAssetsLoaded:!0}))))}componentDidUpdate(e){e.tasks!==this.props.tasks&&this.handleOnReceiveInstallCustomAssetBackgroundTaskData()}componentWillUnmount(){window.removeEventListener("resize",this.checkStickyFilter)}render(){const{onClose:e,installation:{id:t,displayTitle:n,version:s},pluginsV2:a,themesV2:i,renderDrawerMessages:r}=this.props,{type:o,isLoading:l,isSearching:c,totalItems:u,items:d,selectedItem:p,isFiltered:h,isStickyFilter:m,assetsListKey:g,isInstallingCustomAssetBackgroundTaskProcessing:f,installingCustomAssetBackgroundTask:b,showInstallingCustomAssetBackgroundTaskDetails:v,isAssetsLoaded:y}=this.state;let S=null;return v&&b&&(S=b),(0,L.jsxs)(cr,{id:"native-assets-list",title:(0,L.jsx)(pp,{content:"general-ui.native-assets.title"}),isOpen:!0,subtitle:n,size:"lg",onClose:e,"data-type":"native-assets",progress:QO(S,(()=>{this.setState({installingCustomAssetBackgroundTask:null})})),hideButton:!1,children:[r(),!y&&(0,L.jsx)(Qn,{}),y&&(0,L.jsxs)(R.Fragment,{children:[(0,L.jsxs)(Nl,{className:"assets-drawer-tabs",search:(0,L.jsx)(Yl,{autoFocus:!0,loading:c,onSearch:this.handleSearchItems,onTyping:this.handleSearchTyping,style:{maxWidth:500},"data-test-id":o===Up?"plugendio-plugins-search-bar":"plugendio-themes-search-bar"}),active:this.state.activeTab,children:[(0,L.jsx)(Pl,{onActivate:this.handleGoToPluginsTab,title:(0,L.jsx)(pp,{content:"general-ui.tabs.plugins"}),children:(0,L.jsx)(DF,{assetType:o,disabled:f,onUpload:e=>this.handleInstallCustomAsset(o,e),onUploadRejected:()=>this.handleInstallCustomAssetRejected(o)})},1),(0,L.jsx)(Pl,{onActivate:this.handleGoToThemesTab,title:(0,L.jsx)(pp,{content:"general-ui.tabs.themes"}),children:(0,L.jsx)(DF,{assetType:o,disabled:f,onUpload:e=>this.handleInstallCustomAsset(o,e),onUploadRejected:()=>this.handleInstallCustomAssetRejected(o)})},2)]}),(0,L.jsxs)("div",{id:"assets-container",className:"wpt-display-flex",children:[(0,L.jsx)("div",{className:"wpt-assets-card-list-container",children:(0,L.jsx)(Ja,{items:d,totalItems:u,itemKey:"slug",loading:l,onItemsFetch:this.handleFetchItems,view:"row",toolbarGroups:this.getToolbarGroups(),itemRender:e=>(0,L.jsx)(vF,{installation:this.props.installation,item:e,type:o,handleDetailsClick:()=>this.showAssetDetails(e),installedAssets:o===Rp?i:a,isInstalling:this.isAssetInstalling(e,t)},`nativeAsset-${e.slug}`)},g)}),(0,L.jsx)("div",{className:"wpt-assets-filter-container","data-test-id":h?"filtered":"",children:(0,L.jsx)("div",{className:m?"wpt-assets-filter-sticky":"",children:(0,L.jsx)(IF,{type:o,onClearFilter:this.handleClearFilter,setLoading:this.setLoading,setFiltered:this.setFiltered,version:s,updateFilterState:this.updateFilterState})})})]}),p&&o===Up&&(0,L.jsx)(cr,{isOpen:!0,onClose:this.handleCloseAssetDetails,backButton:!0,className:"assetDetailDrawer","data-type":"asset-detail",title:"",children:(0,L.jsx)(xF,{instanceId:t,item:p,installedAssets:a,isInstalling:this.isAssetInstalling(p,t)})})]})]})}}aG.propTypes={type:je().oneOf([Up,Rp]).isRequired,onClose:je().func.isRequired,installation:je().shape({id:je().number.isRequired,displayTitle:je().string.isRequired,version:je().string.isRequired}).isRequired,pluginsV2:je().array,themesV2:je().array,installingAssets:je().object.isRequired,tasks:je().array,assetActions:je().shape({getAvailable:je().func.isRequired,uploadAndInstallAssetToSingleInstance:je().func.isRequired,uploadAndInstallAssetToSingleInstanceFinished:je().func.isRequired,uploadAndInstallAssetToSingleInstanceFinishedWithError:je().func.isRequired}).isRequired,instancesActions:je().shape({setSelectedInstanceId:je().func.isRequired,setInstanceActiveTab:je().func.isRequired,getInstancesData:je().func.isRequired}).isRequired,pluginsActions:je().shape({getInstallationPlugins:je().func.isRequired}).isRequired,themesActions:je().shape({getInstallationThemes:je().func.isRequired}).isRequired,onClearDrawerMessages:je().func.isRequired,onAddDrawerErrorMessage:je().func.isRequired,renderDrawerMessages:je().func.isRequired},aG.defaultProps={tasks:[],pluginsV2:[],themesV2:[]};const iG=Fc(((e,t)=>{var n,s;return{pluginsV2:null!==(n=e.instances.pluginsV2[t.installation.id])&&void 0!==n?n:[],themesV2:null!==(s=e.instances.themesV2[t.installation.id])&&void 0!==s?s:[],installingAssets:e.assets.installingAssets,tasks:e.backgroundTasks.tasks}}),(e=>({assetActions:(0,Cb.zH)(m,e),instancesActions:(0,Cb.zH)(i,e),pluginsActions:(0,Cb.zH)(s,e),themesActions:(0,Cb.zH)(a,e)})))(yC(aG)),rG="maintenance",oG="debug",lG="security",cG="broken",uG="infected",dG="updates",pG="total",hG="phpOutdated",mG="vulnerable",gG="securityRiskScore",fG="vulnerabilityProtection",bG="instances-filter",vG="instances-sort",yG="instances-sort-order",SG="doNotChange",wG="true",xG="false",AG="disabledWithUpdates",_G="true",kG="false";class jG extends R.Component{constructor(e){super(e),this.getPluginsAutoUpdateSettings=e=>{if(e.forceUpdates===SG)return null;const t=Object.assign(Object.assign({},e),{updateVulnerable:!1});return e.forceUpdates===AG&&(t.forceUpdates=xG,t.updateVulnerable=!0),e.forceUpdates===xG&&(t.deactivateVulnerable=!1),t.forceUpdates=e.forceUpdates===wG,t},this.getThemesAutoUpdateSettings=e=>{if(e.forceUpdates===SG)return null;const t=Object.assign(Object.assign({},e),{updateVulnerable:!1});return e.forceUpdates===AG&&(t.forceUpdates=xG,t.updateVulnerable=!0),t.forceUpdates=e.forceUpdates===_G,t},this.handleSubmit=({core:e,plugins:t,themes:n})=>{if(this.state.isProcessing)return;const{updates:s,updateInstallationsAutoUpdatesSettings:a,onClose:i,addSuccessMessage:r,onClearDrawerMessages:o}=this.props;if(e===SG&&t.forceUpdates===SG&&n.forceUpdates===SG)return void i();const l={};e!==SG&&(l.core=e);const c=this.getPluginsAutoUpdateSettings(t);null!==c&&(l.plugins=c);const u=this.getThemesAutoUpdateSettings(n);null!==u&&(l.themes=u);const d=s.map((e=>e.id));o(),this.setState({isProcessing:!0}),a(d,l).then((()=>{r("autoUpdatesSettings.autoUpdatesSettingsUpdatedSuccessfully",!0,"autoUpdatesSettingsUpdatedSuccessfully"),i()})).catch((()=>{this.setState({isProcessing:!1})}))},this.isUpdateFeatureDisabled=()=>{const{isUnpaid:e,updates:t}=this.props;return!(!t||!t.length||!e&&t.some((e=>e.autoUpdate.available)))},this.renderPaidFeatureDesc=()=>{const{upgradeUrl:e,premiumFeaturesUrl:t}=this.props;return this.isUpdateFeatureDisabled()?(0,L.jsx)(Uv,{uatAction:"CLICK_EXT_BUY_FROM_UPDATE_SETTINGS_FORM",purchaseLicenseUrl:e,premiumFeaturesUrl:t,children:(0,L.jsx)(pp,{content:"paidFeature.updateFeatureDescription"})}):null},this.getFormParams=()=>{const{core:e,plugins:t,themes:n,isProcessing:s}=this.state;return{onSubmit:this.handleSubmit,requiredMark:!1,values:{core:e,plugins:t,themes:n},state:s?"submit":void 0,applyButton:!1,cancelButton:!1,submitButton:{"data-test-id":lv,disabled:this.isUpdateFeatureDisabled()}}},this.renderPluginsFormFields=()=>{const{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,L.jsx)(_r,{name:"plugins[forceUpdates]",label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.doNotChangeOptionLabel"}),value:SG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.doNotChangeOptionDescription"})},{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionLabel"}),value:xG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},s?{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:AG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"plugins[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates"),(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]}:null,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionLabel"}),value:wG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"plugins[deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{deactivateVulnerable:e})})))},"deactivateVulnerable")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({plugins:Object.assign(Object.assign({},t.plugins),{forceUpdates:e})})))})},this.renderThemesFormFields=()=>{const{themes:{forceUpdates:e,newlyInstalledUpdates:t}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,L.jsx)(_r,{name:"themes[forceUpdates]",label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.doNotChangeOptionLabel"}),value:SG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.doNotChangeOptionDescription"})},{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionLabel"}),value:kG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]},n?{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:"disabledWithUpdates",description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"themes[newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{newlyInstalledUpdates:e})})))},"newlyInstalledUpdates")]}:null,{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionLabel"}),value:_G,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({themes:Object.assign(Object.assign({},t.themes),{forceUpdates:e})})))})},this.renderCoreFormFields=()=>{const{core:e}=this.state;return(0,L.jsx)(_r,{name:"core",label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.doNotChangeOptionLabel"}),value:SG,description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.doNotChangeOptionDescription"})},{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionLabel"}),value:"disabled",description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.disabledOptionDescription"})},{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionLabel"}),value:"minor",description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.minorOptionDescription"})},{label:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionLabel"}),value:"major",description:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState({core:e})})},this.state={isProcessing:!1,core:SG,plugins:{forceUpdates:SG,newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:SG,newlyInstalledUpdates:!1,updateVulnerable:!1}}}render(){const{title:e,subtitle:t,isOpen:n,onClose:s,renderDrawerMessages:a}=this.props;return(0,L.jsxs)(cr,{title:e,subtitle:t,isOpen:n,onClose:s,"data-type":"update-settings",form:this.getFormParams(),children:[this.renderPaidFeatureDesc(),a(),this.renderCoreFormFields(),this.renderPluginsFormFields(),this.renderThemesFormFields()]})}}jG.propTypes={updates:je().arrayOf(je().shape({id:je().number.isRequired,autoUpdate:je().shape({available:je().bool.isRequired}).isRequired})),onClose:je().func.isRequired,addSuccessMessage:je().func.isRequired,updateInstallationsAutoUpdatesSettings:je().func.isRequired,isUnpaid:je().bool.isRequired,upgradeUrl:je().string.isRequired,premiumFeaturesUrl:je().string,title:je().oneOfType([je().string,je().object]).isRequired,subtitle:je().oneOfType([je().string,je().object]).isRequired,isOpen:je().bool.isRequired,onClearDrawerMessages:je().func.isRequired,renderDrawerMessages:je().func.isRequired,vulnerabilityFeatureEnabled:je().bool},jG.defaultProps={updates:[],premiumFeaturesUrl:null,vulnerabilityFeatureEnabled:!1};const CG=Fc((e=>({isUnpaid:e.app.unpaidFeatures[zp],upgradeUrl:e.app.urls.featuresBuyLinks[zp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),(e=>({updateInstallationsAutoUpdatesSettings:(0,Cb.zH)(pA,e)})))(yC(jG));const IG=e=>{var{baseClassName:t=`${th}updates-list-col-icon`,className:n="",children:s=null,intent:a,description:i=null}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["baseClassName","className","children","intent","description"]);const o="inactive"===a?"muted":a,l=(0,L.jsx)("span",Object.assign({className:F()(t,{[`${t}--${o}`]:o},n)},r,{children:s}));return i?(0,L.jsx)(Xe,{className:"maximum-z-index",title:i,children:l}):l};class TG extends R.Component{constructor(){super(...arguments),this.renderPopoverRow=()=>{const{assets:e}=this.props;return(0,L.jsx)("div",{className:"wpt-instances-updates-list_col-popover",children:e.reduce(((e,t)=>(e.push((0,L.jsx)("p",{children:`${t.title} ${t.version} → ${t.availableVersion}`},t.slug)),e)),[])})}}render(){const e=this.props,{assets:t,needToUpdateAssets:n,forceUpdates:s,forceUpdatesDescription:a,translate:i}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["assets","needToUpdateAssets","forceUpdates","forceUpdatesDescription","translate"]);return(0,L.jsxs)("div",Object.assign({className:"wpt-display-flex"},r,{children:[n>0?(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{"aria-label":i("list-ui.instancesUpdates.updatesAvailable.ariaLabel"),children:n}),children:this.renderPopoverRow()}):(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.noUpdatesAvailable"}),children:(0,L.jsx)(Gi,{icon:"check-mark-circle",intent:"success"})}),(0,L.jsx)("span",{className:"wpt-mgl-5",children:"false"===s?null:(0,L.jsx)(IG,{intent:"success",description:a,children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.autoUpdateIsOn"})})})]}))}}TG.defaultProps={forceUpdatesDescription:null};const DG=Nv(TG);const PG=e=>{var{version:t,updateVersion:n=null,forceUpdates:s}=e,a=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["version","updateVersion","forceUpdates"]);const i=cp();return(0,L.jsxs)("div",Object.assign({className:"wpt-display-flex"},a,{children:[t&&n?(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{children:(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.updateVersionDescription"}),"aria-label":i("list-ui.instancesUpdates.updateVersionDescription"),children:(0,L.jsx)(Gi,{icon:"triangle-exclamation-mark",intent:"warning"})})}),children:(0,L.jsx)("div",{className:"wpt-instances-updates-list_col-popover",children:`${t} → ${n}`})}):(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.noUpdatesAvailable"}),children:(0,L.jsx)(Gi,{icon:"check-mark-circle",intent:"success"})}),(0,L.jsx)("span",{className:"wpt-mgl-5",children:"disabled"===s&&(0,L.jsx)(IG,{intent:"danger",description:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.autoUpdateForCoreIsOffDescription"}),children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.autoUpdateIsOff"})})||"major"===s&&(0,L.jsx)(IG,{intent:"success",description:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.majorAutoUpdateForCoreIsOnDescription"}),children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.majorAutoUpdateIsOn"})})})]}))},OG=({needToAcceptSmartUpdate:e})=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(IG,{intent:"success",description:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.smartUpdateDescription"}),children:"On"}),e&&(0,L.jsx)("span",{className:"wpt-mgl-5",children:(0,L.jsx)(Xe,{className:"maximum-z-index",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.waitingForAcceptSmartUpdate"}),children:(0,L.jsx)(Gi,{icon:"triangle-exclamation-mark",intent:"warning","data-test-id":"smart-update-waiting-for-accept"})})})]}),LG="WITH_UPDATES",MG="mass-updates-instance-row";class EG extends R.Component{constructor(e){super(e),this.fetchUpdatesAndProcessData=()=>{const e=()=>{this.fetchAndProcessExistentTasks(),this.setListData(),this.dispatchSmartUpdatePromoUAT()},{instancesActions:{fetchAvailableUpdates:t},selectedInstancesIds:n}=this.props;return t(n).finally((()=>e()))},this.fetchAndProcessExistentTasks=()=>{const{backgroundTasksActions:{fetchBackgroundTasks:e}}=this.props,t=this.getUpdateInstancesTasks();t.length>0&&(this.setState({isUpdating:!0}),e(bf.backgroundTask.getTasksData,t).then((e=>{if(0===e.length)return this.setState({isUpdating:!1}),void this.handleCheckForUpdates();this.setState({backgroundTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateBackgroundTasks(e)))})));const n=this.getInstancesWithCheckUpdateTasks();if(n.length>0){this.setIsCheckingForUpdates(!0);const t=n.reduce(((e,t)=>(e.some((({id:e})=>e===t.tasks.check.id))||e.push({id:t.tasks.check.id,code:yI}),e)),[]);e(bf.backgroundTask.getTasksData,t).then((e=>{0!==e.length?this.setState({massCheckUpdateTaskIds:e.map((e=>e.id))},(()=>this.handleOnUpdateMassCheckUpdateTasks(e))):this.setIsCheckingForUpdates(!1)}))}},this.isUpdateDisabled=e=>e.length&&this.props.updates.some((t=>e.includes(t.id.toString())&&!t.applicable)),this.isInstanceUpdateDisabled=e=>!e.applicable,this.isSmartUpdatePromoBannerVisible=()=>{const{showSmartUpdatePromo:e,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:t,installations:n}=this.props,s=n.some((({installationType:e,features:{updates:t}})=>jO(e)&&(Boolean(t.availableVersion)||t.amountOfPluginsWithUpdates>0||t.amountOfThemesWithUpdates>0)));return!(!e||!s)&&(!!t||n.some((({features:e})=>e.updates.smart.promoAvailable)))},this.dispatchSmartUpdatePromoUAT=()=>this.state.showSmartUpdatePromoBanner&&Mv("SHOW_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO"),this.setListData=()=>{const{updates:e}=this.props,t=[],n=e.map((e=>{const n=e.id.toString();return _B(e)&&!this.isInstanceUpdateDisabled(e)&&t.push(n),Object.assign(Object.assign({key:n},e),{id:n,needToAcceptSmartUpdate:this.showNeedToAcceptSmartUpdate(e.smartUpdate.taskStatus,e.smartUpdate.status),disabled:this.props.isUnpaid||this.isInstanceUpdateDisabled(e)})}));this.setState({listData:n,selection:t},(()=>{const e=this.applyFilter(),t=this.applySearch(e);this.setState({showedListData:t})}))},this.showNeedToAcceptSmartUpdate=(e,t=!1)=>t&&null!==e&&kN(e),this.getInstallationById=e=>this.props.installations.find((t=>t.id===+e)),this.getNeedToUpdateInstancesIds=()=>this.props.updates.reduce(((e,t)=>(_B(t)&&e.push(t.id),e)),[]),this.getNeedToUpdateSelectionInstancesIds=()=>this.getNeedToUpdateInstancesIds().filter((e=>-1!==this.state.selection.indexOf(e.toString()))),this.getInstallationUpdate=e=>this.props.updates.find((t=>+t.id==+e)),this.getUpdateInstancesTasks=()=>this.getInstancesWithUpdateTasks().reduce(((e,t)=>(e.some((({id:e})=>e===t.tasks.update.id))||e.push({id:t.tasks.update.id,code:t.tasks.update.code}),e)),[]),this.getInstancesWithUpdateTasks=()=>this.props.updates.filter((e=>e.tasks.update)),this.getInstancesWithCheckUpdateTasks=()=>this.props.updates.filter((e=>e.tasks.check)),this.clearSelection=()=>{this.setState({selection:[]})},this.applySearch=(e=null)=>{const{search:t}=this.state,n=t.toLowerCase();return e||({listData:e}=this.state),e.filter((e=>!n||-1!==e.displayTitle.toLowerCase().indexOf(n)))},this.applyFilter=(e=null)=>{const{filter:t}=this.state;return e||({listData:e}=this.state),e.filter((e=>{switch(t){case LG:return Boolean(e.core.availableVersion)||e.plugins.length>0||e.themes.length>0;case"ALL":return!0;default:return!1}}))},this.getListColumns=()=>{const e=[{key:"instance",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.instance"}),render:e=>this.props.isUnpaid||this.isInstanceUpdateDisabled(e)?(0,L.jsx)(Bv,{uatAction:qv,featureName:zp,description:(0,L.jsx)(pp,{content:"paidFeature.updateFeatureDescription"}),installationId:e.id,isInstanceFeatureDisabled:!1===e.applicable,children:(0,L.jsx)("span",{"data-test-id":MG,"data-test-instance-id":e.id,children:e.displayTitle})}):(0,L.jsx)("span",{"data-test-id":MG,"data-test-instance-id":e.id,children:e.displayTitle})},{key:"wordpress",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.wordpress"}),render:e=>(0,L.jsx)(PG,{version:e.core.version,updateVersion:e.core.availableVersion,forceUpdates:String(e.autoUpdate.core),"data-test-id":"mass-updates-core-column","data-test-version":e.core.version,"data-test-update-version":e.core.availableVersion})},{key:"plugins",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.plugins"}),render:e=>(0,L.jsx)(DG,{needToUpdateAssets:e.plugins.length,forceUpdates:String(e.autoUpdate.plugins.forceUpdates),forceUpdatesDescription:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.autoUpdateForPluginsIsOnDescription"}),assets:e.plugins,"data-test-id":"mass-updates-plugin-column"})},{key:"themes",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.themes"}),render:e=>(0,L.jsx)(DG,{needToUpdateAssets:e.themes.length,forceUpdates:String(e.autoUpdate.themes.forceUpdates),forceUpdatesDescription:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.autoUpdateForThemesIsOnDescription"}),assets:e.themes,"data-test-id":"mass-updates-theme-column"})},{key:"details",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.details"}),render:e=>-1===this.state.updateInstancesIds.indexOf(+e.id)?(0,L.jsx)(_e,{icon:"chevron-right",onClick:()=>this.handleOpenInstanceUpdatesDrawer(e.id)}):(0,L.jsx)(Gi,{progress:!0})}];return this.props.showSmartUpdates&&e.splice(-1,0,{key:"smart-update",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instancesList.columns.smart-update"}),render:e=>e.smartUpdate.status?(0,L.jsx)(OG,{needToAcceptSmartUpdate:e.needToAcceptSmartUpdate}):null}),e},this.handleSelectionChange=e=>this.setState({selection:e}),this.handleDisableSmartUpdatePromo=()=>{this.setState({showSmartUpdatePromoBanner:!1}),this.props.appActions.disableSmartUpdatePromoForMultipleSitesUpdatesScreen({instanceIds:this.getNeedToUpdateInstancesIds()}),Mv("CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_CLOSE_BUTTON")},this.handleOnUpdateBackgroundTasks=e=>{const{instancesActions:{fetchAvailableUpdates:t}}=this.props,{backgroundTaskIds:n,updateInstancesIds:s}=this.state;let a=s;const i=[],r=this.getInstancesWithUpdateTasks();n.forEach((t=>{const n=nT(t,e);if(!n)return;ZI(n)&&(n.errors.length>0&&(this.props.addErrorMessage(n.errors.join("\n")),this.setState({hasUpdateErrors:!0,isUpdating:!1,updateInstancesIds:[]})),this.setState((e=>({backgroundTaskIds:e.backgroundTaskIds.filter((e=>e!==n.id))}))));const{currentlyUpdatingInstallationId:s,successfullyUpdatedInstallationsIds:o=[]}=n.publicParams;a.filter((e=>!o.includes(e)||(i.includes(e)||i.push(e),!1))),s&&!a.includes(s)&&(a=a.concat(s));const l=r.filter((e=>e.tasks.update.id===n.id));l.length>0&&l.forEach((e=>{ZI(n)&&!i.includes(e.id)&&i.push(e.id),n.code===$w||ZI(n)||a.includes(e.id)||(a=a.concat(e.id))}))})),r.filter((e=>!a.includes(e.id))).forEach((e=>{n.includes(e.tasks.update.id)||i.includes(e.id)||i.push(e.id)})),s!==a&&this.setState({updateInstancesIds:a}),i.length&&t(i).then((()=>{this.setState((e=>({updateInstancesIds:Tp(e.updateInstancesIds,i)})),this.handleOnAllInstancesUpdated)}))},this.handleOnUpdateMassCheckUpdateTasks=e=>{const{massCheckUpdateTaskIds:t}=this.state,{addSuccessMessage:n,addErrorMessage:s}=this.props;let a=!0,i=!1;t.forEach((t=>{const n=nT(t,e);n&&(ZI(n)?(n.errors.length>0&&(s(n.errors.join("\n")),i=!0),a=a&&!0,this.setState((e=>({massCheckUpdateTaskIds:e.massCheckUpdateTaskIds.filter((e=>e!==n.id))})))):a=!1)})),a&&(i||n("common.task_mass_check_updates_done",!0,"resetCacheSuccess"),this.setIsCheckingForUpdates(!1))},this.handleOnAllInstancesUpdated=()=>{const{instancesActions:{instancesMassUpdateFinished:e,instancesMassUpdateFailed:t},addSuccessMessage:n}=this.props;this.state.updateInstancesIds.length>0||(this.state.hasUpdateErrors?t():(n("list-ui.instancesUpdates.updatingInstancesItems.success",!0,"updatingInstancesItemsSuccess"),e()),this.setState({isUpdating:!1,hasUpdateErrors:!1}))},this.handleUpdate=()=>{const{instancesActions:{updateItems:e},clearMessages:t}=this.props,n=this.getNeedToUpdateSelectionInstancesIds().map((e=>{var t;const n=this.getInstallationUpdate(e);return{installationId:+e,core:{update:null!==((null===(t=n.core)||void 0===t?void 0:t.availableVersion)||null),restorePoint:!1},plugins:n.plugins.map((e=>e.slug)),themes:n.themes.map((e=>e.slug))}}));t(),this.setState({isUpdating:!0}),e(n).then((e=>{this.setState((t=>({backgroundTaskIds:t.backgroundTaskIds.concat(e.id)})))})).catch((()=>{this.setState({isUpdating:!1})}))},this.handleCheckForUpdates=()=>{const{clearMessages:e,instancesActions:{checkUpdates:t}}=this.props;e();const n=this.state.selection.map((e=>+e));n.length<1||(this.setIsCheckingForUpdates(!0),t(n).then((e=>{this.setState((t=>({massCheckUpdateTaskIds:t.massCheckUpdateTaskIds.concat(e.id)})))})).catch((()=>{})))},this.handleSearch=e=>this.setState({search:e},(()=>{this.clearSelection(),this.setListData()})),this.handleFilter=e=>this.setState({filter:e},(()=>{this.clearSelection(),this.setListData()})),this.handleOpenInstanceUpdatesDrawer=e=>this.setState({instanceIdForSingleUpdatesDrawer:e,showInstanceUpdatesDrawer:!0}),this.handleCloseInstanceUpdatesDrawer=()=>{this.setState({showInstanceUpdatesDrawer:!1}),this.fetchUpdatesAndProcessData().catch((()=>{}))},this.handleToggleSettingsDrawer=()=>{this.setState((e=>({showSettingsDrawer:!e.showSettingsDrawer,settingsSelection:e.showSettingsDrawer?[]:[...e.selection]})))},this.renderToolbar=()=>{const{updates:e,isUnpaid:t}=this.props,{isUpdating:n,showedListData:s,selection:a,isCheckingForUpdates:i}=this.state,r=this.getNeedToUpdateSelectionInstancesIds(),o=e.some((e=>e.autoUpdate.available));return(0,L.jsxs)(Ha,{className:"wpt-mgt-10",children:[(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{intent:"primary",disabled:t||this.isUpdateDisabled(a)||i||0===r.length||0===s.length,state:n?"loading":void 0,onClick:this.handleUpdate,"data-test-id":"mass-updates-update-button",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.updateButton"})})}),o&&(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{disabled:0===a.length,onClick:this.handleToggleSettingsDrawer,"data-test-id":"mass-updates-settings-button",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.changeSettingsButton"})})}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{icon:"refresh",disabled:n||0===a.length,state:i?"loading":void 0,onClick:this.handleCheckForUpdates,"data-test-id":"mass-updates-check-updates-button",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.checkForUpdatesButton"})})}),(0,L.jsx)(Sa,{}),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(Yl,{onTyping:this.handleSearch})})]})},this.renderLastUpdatePanel=()=>{const{isCheckingForUpdates:e}=this.state,{updates:t}=this.props;if(e)return null;const n=t.reduce(((e,t)=>(t.lastCheckUpdateTimestamp&&e.push(t.lastCheckUpdateTimestamp),e)),[]);if(0===n.length)return(0,L.jsx)(jl,{className:"wpt-mgt-15",children:(0,L.jsx)(da,{className:"wpt-instances-updates_last-update-date",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.lastUpdateDateIsUnknown"})})});const s=new Date(1e3*Math.min(...n));return(0,L.jsx)(jl,{className:"wpt-mgt-15",children:(0,L.jsx)(da,{className:"wpt-instances-updates_last-update-date",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.lastUpdateDate",params:{lastUpdateDate:s.toLocaleString()}})})})},this.handleOpenUpdateSettings=()=>this.setState({isUpdateSettingsOpened:!0}),this.handleCloseUpdateSettings=()=>this.setState({isUpdateSettingsOpened:!1}),this.setIsCheckingForUpdates=e=>this.setState({isCheckingForUpdates:e}),this.renderInstanceUpdatesDrawer=()=>{const{instanceIdForSingleUpdatesDrawer:e,showInstanceUpdatesDrawer:t,isUpdateSettingsOpened:n}=this.state,s=this.getInstallationUpdate(e),a=this.getInstallationById(e);return a&&s?(0,L.jsx)(IB,{installation:a,title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.instanceUpdatesDrawerTitle"}),onClose:this.handleCloseInstanceUpdatesDrawer,backButton:!0,isOpen:t,openUpdatesType:"",onOpenUpdatesSettingsDialog:this.handleOpenUpdateSettings,onCloseUpdatesSettingsDialog:this.handleCloseUpdateSettings,isUpdateSettingsFormOpen:n}):null},this.renderInstancesList=()=>{const{showedListData:e,selection:t}=this.state,{isUpdating:n,isCheckingForUpdates:s}=this.state;return!n&&s?(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.checkingForUpdates"}):0===e.length?(0,L.jsx)("div",{className:"wpt-mgt-15","data-test-id":"mass-updates-updates-not-found",children:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.updatesNotFound"})}):(0,L.jsx)(uo,{className:"wpt-mgt-15",columns:this.getListColumns(),data:e,selection:t,onSelectionChange:this.handleSelectionChange,"data-test-id":"mass-updates-instances-list"})},this.renderMultipleSitesAutoUpdatesSettingsDrawer=()=>{const{settingsSelection:e,showSettingsDrawer:t}=this.state,n=e.length,s=this.props.updates.filter((t=>kp(e,t.id.toString())));return(0,L.jsx)(CG,{title:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.title",params:{sitesCount:n}}),subtitle:(0,L.jsx)(pp,{content:"multipleSitesAutoUpdatesSettingsDrawer.subtitle"}),isOpen:t,"data-type":"instances-updates-settings",updates:s,onClose:this.handleToggleSettingsDrawer,addSuccessMessage:this.props.addSuccessMessage})},this.renderFilter=()=>{const{filter:e}=this.state,{updates:t}=this.props,n=this.getNeedToUpdateInstancesIds();return(0,L.jsxs)(Ha,{className:"wpt-mgt-10",children:[(0,L.jsx)(Sa,{},"toolbarExpander"),(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ua,{label:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.filterByLabel"}),labelPlacement:"left",buttons:[{value:"ALL",title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.filterAll",params:{count:t.length}}),"data-test-id":"mass-updates-filter-all"},{value:LG,title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.filterUpdates",params:{count:n.length}}),disabled:!1,"data-test-id":"mass-updates-filter-outdated"}],selected:e,onChange:this.handleFilter})},"toolbarShowInstances")]})},this.renderSmartUpdatePromo=()=>(0,L.jsx)(AB,{isOpen:this.state.showSmartUpdatePromoBanner,onClose:this.handleDisableSmartUpdatePromo,uatActions:{showPopover:"SHOW_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER",clickPopoverCloseButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_CLOSE_BUTTON",clickOpenStoreButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_POPOVER_OPEN_STORE_BUTTON",clickTryNowButton:"CLICK_MULTIPLE_SITES_UPDATES_DRAWER_SMART_UPDATE_PROMO_TRY_NOW_BUTTON"}}),this.renderPaidFeatureDesc=()=>{const{isUnpaid:e,upgradeUrl:t,premiumFeaturesUrl:n,updates:s}=this.props,a=s.map((e=>e.id.toString()));return e||this.isUpdateDisabled(a)?(0,L.jsx)(Uv,{uatAction:qv,purchaseLicenseUrl:t,premiumFeaturesUrl:n,children:(0,L.jsx)(pp,{content:"paidFeature.updateFeatureDescription"})}):null},this.state={listData:[],showedListData:[],selection:[],search:"",instanceIdForSingleUpdatesDrawer:null,updateInstancesIds:[],isUpdating:!1,isCheckingForUpdates:!1,showInstanceUpdatesDrawer:!1,showSettingsDrawer:!1,settingsSelection:[],showSmartUpdatePromoBanner:this.isSmartUpdatePromoBannerVisible(),filter:LG,backgroundTaskIds:[],hasUpdateErrors:!1,massCheckUpdateTaskIds:[],isUpdateSettingsOpened:!1,isInitialDataLoading:!0}}componentDidMount(){this.props.instancesActions.cleanUpUpdatesStore(),this.fetchUpdatesAndProcessData().catch((()=>{})).finally((()=>this.setState({isInitialDataLoading:!1})))}componentDidUpdate(e){const{backgroundTaskIds:t,massCheckUpdateTaskIds:n}=this.state,{tasks:s,updates:a}=this.props;t.length&&s!==e.tasks&&this.handleOnUpdateBackgroundTasks(s),n.length&&this.handleOnUpdateMassCheckUpdateTasks(s),e.updates!==a&&this.setListData()}componentWillUnmount(){this.props.instancesActions.cleanUpUpdatesStore()}render(){return this.state.isInitialDataLoading?(0,L.jsx)(Qn,{}):(0,L.jsxs)(R.Fragment,{children:[this.renderPaidFeatureDesc(),this.renderSmartUpdatePromo(),(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.headDescription"}),this.renderToolbar(),this.renderFilter(),this.renderLastUpdatePanel(),this.renderInstancesList(),this.renderInstanceUpdatesDrawer(),this.renderMultipleSitesAutoUpdatesSettingsDrawer()]})}}EG.propTypes={selectedInstancesIds:je().array.isRequired,updates:je().array,installations:je().arrayOf(je().shape({id:je().number.isRequired,installationType:je().oneOf(Object.values(u)).isRequired,features:{updates:je().shape({availableVersion:je().string.isRequired,amountOfPluginsWithUpdates:je().number.isRequired,amountOfThemesWithUpdates:je().number.isRequired,smart:je().shape({available:je().bool.isRequired,status:je().bool,promoAvailable:je().bool.isRequired}).isRequired})}.isRequired})).isRequired,tasks:je().array,showSmartUpdates:je().bool.isRequired,showSmartUpdatePromo:je().bool.isRequired,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:je().bool.isRequired,clearMessages:je().func.isRequired,addSuccessMessage:je().func.isRequired,addErrorMessage:je().func.isRequired,appActions:je().shape({disableSmartUpdatePromoForMultipleSitesUpdatesScreen:je().func.isRequired}).isRequired,instancesActions:je().shape({updateItems:je().func.isRequired,getInstancesData:je().func.isRequired,fetchAvailableUpdates:je().func.isRequired,checkUpdates:je().func.isRequired,instancesMassUpdateFinished:je().func.isRequired,instancesMassUpdateFailed:je().func.isRequired,setInstanceActiveTab:je().func.isRequired,cleanUpUpdatesStore:je().func.isRequired}).isRequired,backgroundTasksActions:je().shape({fetchBackgroundTasks:je().func.isRequired}).isRequired,isUnpaid:je().bool.isRequired,upgradeUrl:je().string.isRequired,premiumFeaturesUrl:je().string},EG.defaultProps={tasks:[],premiumFeaturesUrl:null,updates:[]};const RG=Fc((e=>({installations:e.instances.installations,updates:e.updates,showSmartUpdates:e.app.options.showSmartUpdates,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:e.app.options.isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen,isUnpaid:e.app.unpaidFeatures[zp],upgradeUrl:e.app.urls.featuresBuyLinks[zp],premiumFeaturesUrl:e.app.urls.premiumFeaturesUrl})),(e=>({appActions:(0,Cb.zH)(t,e),instancesActions:(0,Cb.zH)(i,e),backgroundTasksActions:(0,Cb.zH)({fetchBackgroundTasks:iT},e)})))(EG);class UG extends R.Component{constructor(e){super(e),this.renderUrlColumn=e=>(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(e,Object.assign(Object.assign({},up.defaults),{transformTags:{a:(e,t)=>({tagName:"a",attribs:Object.assign(Object.assign({},t),{target:"_blank"})})}}))}}),this.getColumns=()=>[{key:"url",title:"",width:"90%",render:e=>this.renderUrlColumn(e.url||"")},{key:"status",title:"",width:"10%"}],this.getData=()=>this.props.installationsToRemove.map((e=>{const t=e.isPossibleToRemove?"success":"danger";return Object.assign(Object.assign({},e),{key:e.id.toString(),status:(0,L.jsx)(Ks,{target:(0,L.jsx)(Gi,{intent:t}),placement:"top-right",children:e.hintMessage})})})),this.handleChangeActionLogRemoveOption=e=>{var t,n;this.setState({actionLogChecked:e}),null===(n=(t=this.props).changeRemoveOptions)||void 0===n||n.call(t,{ActionLog:e})},this.state={actionLogChecked:!0}}render(){const{title:e,actionLogFeatureEnabled:t,actionLogRemoveLabel:n}=this.props,{actionLogChecked:s}=this.state;return(0,L.jsxs)(L.Fragment,{children:[e,(0,L.jsx)(uo,{columns:this.getColumns(),data:this.getData()}),t&&(0,L.jsx)(Tt,{checked:s,onChange:this.handleChangeActionLogRemoveOption,children:n})]})}}UG.defaultProps={actionLogFeatureEnabled:!1,actionLogRemoveLabel:null};const NG=UG,FG="https";var BG=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n};const YG="directoryHidesAnotherWordpress",HG="directoryHidesAnotherApplication",VG="directoryHasUserFiles",WG="major",$G="minor",zG="true",qG="false",GG="disabledWithUpdates",KG="true",QG="false",JG="disabledWithUpdates",XG="updateVulnerable",ZG="updateVulnerable";class eK extends R.Component{constructor(e){super(e),this.componentDidUpdate=(e,t)=>{!e.isOpen&&this.props.isOpen&&this.handleOpenAndLoadData(),this.state.installationPath!==t.installationPath&&this.updateInstallationPathStatus(this.state.domain,this.state.installationPath),this.state.domain!==t.domain&&this.updateInstallationPathStatus(this.state.domain,this.state.installationPath),this.state.pathLocked!==t.pathLocked&&this.setPathValidationProcessed(!0),this.props.tasks!==e.tasks&&this.handleUpdateBackgroundTasks()},this.getInstallationStub=(e=void 0,t=void 0)=>{const{getInstallationStub:n}=this.props;return this.setState({isWrongParams:!1}),n(e,t).then((({title:{value:e},installationPath:{value:t},admin:{value:{login:{value:n},password:{value:s},email:{value:a}}},database:{value:{name:{value:i,meta:{isCustomizationAllowed:r}},server:{value:o,meta:{choices:l}},userName:{value:c},userPassword:{value:u},tablePrefix:{value:d},namePrefix:{value:p},userNamePrefix:{value:h}}},autoUpdate:{value:{core:{value:m},plugins:{value:{forceUpdates:{value:g},newlyInstalledUpdates:{value:f},updateVulnerable:{value:b},deactivateVulnerable:{value:v}}},themes:{value:{forceUpdates:{value:y},newlyInstalledUpdates:{value:S},updateVulnerable:{value:w}}}},meta:{isCustomizationAllowed:x}},protocol:{value:A,meta:{choices:_}},domain:{value:k,meta:{choices:j}},version:{value:C,meta:{choices:I}},language:{value:T,meta:{choices:D}},set:{value:P,meta:{choices:O}}})=>{this.setState({title:e,installationPath:t,admin:{email:a,login:n,password:s},database:{name:i,userName:c,userPassword:u,tablePrefix:d,server:o},dbNamePrefix:p,dbUserNamePrefix:h,dbServers:l,isDatabaseCustomizationAllowed:r,autoUpdate:{core:m,plugins:{forceUpdates:!g&&b?GG:g.toString(),newlyInstalledUpdates:f,updateVulnerable:b,deactivateVulnerable:v},themes:{forceUpdates:!y&&w?JG:y.toString(),newlyInstalledUpdates:S,updateVulnerable:w}},isAutoUpdatesCustomizationAllowed:x,protocol:A,protocols:_,domain:k,domains:j,version:C,versions:I,language:T,languages:D,set:P,sets:O},this.checkDomain)})).catch((e=>{var t,n;if(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors){const t=e.response.data.formErrors,{domain:n}=t,s=BG(t,["domain"]);n&&(s.installationFullPath=n),this.setState((()=>({errors:s})))}this.setState({isWrongParams:!0})}))},this.setPathValidationProcessed=e=>this.setState({pathValidationProcessed:e}),this.setDatabaseSettings=(e,t)=>this.setState((n=>({database:Object.assign(Object.assign({},n.database),{[e]:t})}))),this.pathIsLocked=e=>e&&Object.keys(e).find((e=>-1!==[YG,HG,VG].indexOf(e)))||null,this.updateInstallationPathStatus=(e,t)=>{if(this.setState({overwrite:!1,pathLocked:!1,pathLockedReason:null}),this.state.errors&&this.state.errors.installationFullPath){const e=this.state.errors,{installationFullPath:t}=e,n=BG(e,["installationFullPath"]);this.setState({errors:n})}this.debounceValidatePrefix&&this.debounceValidatePrefix.clear(),this.debounceValidatePrefix=(0,yq.debounce)((()=>this.props.validateInstallationPath(e,t).catch((e=>{var t,n,s,a,i,r;if(null===(s=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)||void 0===s?void 0:s.installationPath){const t=this.pathIsLocked(e.response.data.formErrors.installationPath),n=!!t;this.setState((s=>({pathLocked:n,pathLockedReason:t,errors:Object.assign(Object.assign({},s.errors),{installationFullPath:!n&&e.response.data.formErrors.installationPath})})))}(null===(r=null===(i=null===(a=null==e?void 0:e.response)||void 0===a?void 0:a.data)||void 0===i?void 0:i.formErrors)||void 0===r?void 0:r.domain)&&this.setState((t=>({errors:Object.assign(Object.assign({},t.errors),{installationFullPath:Object.assign(Object.assign({},t.errors.installationFullPath),e.response.data.formErrors.domain)})})))}))),500),this.debounceValidatePrefix()},this.handleSubmit=e=>{if(this.isSubmitDisabled())return;const{createInstallation:t,onBeforeInstallation:n,addErrorMessage:s,onClearDrawerMessages:a,redirectToDomainOverviewOnDone:i}=this.props;a(),this.setState({isProcessing:!0}),n&&n(),(e=Object.assign(Object.assign({},e),{autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{plugins:Object.assign(Object.assign({},e.autoUpdate.plugins),{[XG]:!1}),themes:Object.assign(Object.assign({},e.autoUpdate.themes),{[ZG]:!1})})})).autoUpdate.plugins.forceUpdates===GG&&(e.autoUpdate.plugins.forceUpdates=qG,e.autoUpdate.plugins[XG]=!0),e.autoUpdate.themes.forceUpdates===JG&&(e.autoUpdate.themes.forceUpdates=QG,e.autoUpdate.themes[ZG]=!0);const r=Object.assign(Object.assign({},e),{domain:e.domain,set:parseInt(e.set),overwrite:this.state.overwrite,autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{plugins:Object.assign(Object.assign({},e.autoUpdate.plugins),{forceUpdates:"true"===e.autoUpdate.plugins.forceUpdates}),themes:Object.assign(Object.assign({},e.autoUpdate.themes),{forceUpdates:"true"===e.autoUpdate.themes.forceUpdates})}),showDomainOverviewLinkOnDone:i});this.setIsFirstInstallationOnDomain();let o=!1;t(r).then((e=>{o=!0,this.setState({installationTaskId:e.id})})).catch((e=>{var t,n,a,i;if(null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors){const{formErrors:t}=e.response.data,n={};t.installationPath&&Object.assign(n,t.installationPath),t.protocol&&Object.assign(n,t.protocol),t.domain&&Object.assign(n,t.domain),Object.keys(n).length>0&&(t.installationFullPath=n),this.setState({errors:t,isDatabaseSectionCollapsible:!this.isErrorsForDatabaseSectionExists(t)}),t.installationFullPath&&this.setState({pathLocked:!1})}else if(e instanceof cS){const t=(null===(i=null===(a=null==e?void 0:e.response)||void 0===a?void 0:a.data)||void 0===i?void 0:i.meta)||e.toString();s((0,L.jsx)(pp,{content:"list-ui.instanceInstall.failedBackgroundTask",params:{message:t}}))}else{const{message:t}=e.response.data.meta;s((0,L.jsx)(pp,{content:t}))}})).finally((()=>{o||this.setState({isProcessing:!1})}))},this.handleToggleSetPopover=()=>{var e;this.setState((e=>({showSetPopover:!e.showSetPopover}))),(null===(e=this.state.currentSet)||void 0===e?void 0:e.id)!==parseInt(this.state.set)&&(this.setState({currentSet:{}}),this.props.getSetDetails(this.state.set).then((e=>{this.setState({currentSet:e})})).catch((()=>{})))},this.handleToggleCoreUpdatesPopover=()=>this.setState((e=>({showCoreUpdatesPopover:!e.showCoreUpdatesPopover}))),this.handleChangeWpVersion=e=>{let t=WG;nM().compare(e,"5.6","<")&&(t=$G),this.setState((e=>({autoUpdate:Object.assign(Object.assign({},e.autoUpdate),{core:t})})))},this.checkDomain=()=>{const{protocols:e,protocol:t}=this.state,{onClearDrawerMessages:n,onAddDrawerWarningMessage:s}=this.props;n(),e.length>1&&"http"===t&&s("list-ui.instanceInstall.selectHTTPSProtocolDescription",!0,"installationFullPath"),1===e.length&&s("list-ui.instanceInstall.enableSSLSupportDescription",!0,"installationFullPath")},this.onChangeProtocol=e=>this.setState({protocol:e},this.checkDomain),this.onChangeDomain=e=>{const{version:t}=this.state;this.setState({isDomainSettingsLoading:!0}),this.getInstallationStub(e,t).finally((()=>{this.setState({isDomainSettingsLoading:!1})}))},this.renderInstallationFullPathControl=e=>{const{domains:t,protocols:n,installationPath:s}=this.state,{baseClassName:a,translate:i}=this.props;return(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.installationPrefix"}),name:"installationFullPath",className:`${a}__installation-path`,children:[this.renderDropdownControl({name:"protocol",options:n,disabled:e||1===n.length,onChange:e=>this.onChangeProtocol(e),size:"xs",ariaLabel:i("list-ui.instanceInstall.installationPrefix.ariaLabel")}),(0,L.jsx)("span",{className:`${a}__installation-path_separators`,children:"://"}),this.renderObjectSwitcherControl({name:"domain",options:t,disabled:e||1===t.length,onChange:e=>this.onChangeDomain(e)}),(0,L.jsx)("span",{className:`${a}__installation-path_separators`,children:"/"}),(0,L.jsx)(Sq,{type:"text",name:"installationPath",onChange:e=>gp(e,(()=>this.setState({installationPath:e.target.value}))),value:s,placeholder:"list-ui.instanceInstall.installationPrefixPlaceholder",disabled:e}),this.renderWpInstalledWarning()]})},this.renderObjectSwitcherControl=({name:e,options:t,disabled:n,onChange:s=null})=>{const{translate:a}=this.props;return(0,L.jsx)(Hr,{value:this.state.domain,name:e,id:`${e}-select-container`,onChange:s,"data-test-id":e,disabled:n,searchable:!0,className:`${this.props.baseClassName}__installation-path_domain-selector`,"aria-label":a("list-ui.instanceInstall.domainSettings.domainSelector.ariaLabel"),children:t?t.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e,children:t},e))):[]})},this.renderFormFieldText=({name:e,label:t,placeholder:n,prefix:s,disabled:a,dataTestId:i=""})=>(0,L.jsxs)(Li,{name:e,label:t,"data-test-id":i,children:[s?(0,L.jsx)(da,{children:s}):null,(0,L.jsx)(Sq,{type:"text",placeholder:n,value:this.state[e],onChange:t=>gp(t,(()=>this.setState({[e]:t.target.value}))),disabled:a})]}),this.renderFormFieldPassword=({name:e,label:t})=>(0,L.jsx)(Ar,{name:e,label:t,onChange:t=>this.setState({[e]:t})}),this.renderFormFieldDropdown=({name:e,label:t,options:n,onChange:s=null,disabled:a=!1,dataTestId:i=null,ariaLabel:r=""})=>(0,L.jsx)(Li,{label:t,name:e,children:this.renderDropdownControl({name:e,options:n,disabled:a,onChange:s,dataTestId:i,ariaLabel:r})}),this.renderDropdownControl=({name:e,options:t,disabled:n=!1,onChange:s=null,dataTestId:a=null,size:i=null,ariaLabel:r=""})=>(0,L.jsx)(Hr,{name:e,"data-test-id":a,value:this.state[e],onChange:t=>{"function"==typeof s&&s(t),this.setState({[e]:t})},disabled:n,size:i,"aria-label":r,children:t?t.map((({value:e,title:t})=>(0,L.jsx)(Nr,{"data-test-value":e,value:e.toString(),children:t},e))):[]}),this.isSubmitDisabled=()=>{const{isProcessing:e,isWrongParams:t,pathLocked:n,overwrite:s}=this.state;return e||t||n&&!s},this.isErrorsForDatabaseSectionExists=e=>!(!e||e.length<=0)&&["name","tablePrefix","dbUserName","dbUserPassword"].filter((t=>e&&e.hasOwnProperty("database")&&e.database.hasOwnProperty(t))).length>0,this.renderDbServerControl=({disabled:e})=>{const{database:t,dbServers:n}=this.state,{translate:s}=this.props;return!n||n.length<=1?null:(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.dbServer"}),children:(0,L.jsx)(Hr,{name:"database[server]","data-test-id":"instance-install-form-field-dbServerId",value:t.server,onChange:e=>this.setState((t=>({database:Object.assign(Object.assign({},t.database),{server:e})}))),disabled:e,"aria-label":s("list-ui.instanceInstall.dbServer.ariaLabel"),children:n.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e.toString(),children:t},e)))})})},this.renderAutoUpdates=()=>{const{isAutoUpdatesCustomizationAllowed:e}=this.state;return e?(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.autoUpdatesSettings.sectionTitle"}),collapsible:!0,collapsed:!0,className:"wp-instance-install_section",children:[(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.autoUpdatesSettings.description"})}),this.renderCoreAutoUpdates(),this.renderPluginsAutoUpdates(),this.renderThemesAutoUpdates()]}):null},this.renderCoreAutoUpdates=()=>{const{autoUpdate:{core:e},showCoreUpdatesPopover:t}=this.state,{translate:n}=this.props;return(0,L.jsx)(_r,{name:"autoUpdate[core]",label:(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdatesLabel"}),(0,L.jsx)(Ks,{visible:t,onClose:this.handleToggleCoreUpdatesPopover,target:(0,L.jsx)(_e,{onClick:e=>gp(e,this.handleToggleCoreUpdatesPopover),icon:"circle-info",className:"wpt-mgl-5","aria-label":n("list-ui.instanceInstall.coreAutoUpdatesPopoverContent")}),children:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdatesPopoverContent"})})]}),value:e,options:[{value:"disabled",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.disabledOptionLabel"}),description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.disabledOptionDescription"})},{value:$G,label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.minorOptionLabel"}),description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.minorOptionDescription"})},{value:WG,label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.majorOptionLabel"}),description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.coreAutoUpdates.majorOptionDescription"})}],onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{core:e})})))})},this.renderPluginsAutoUpdates=()=>{const{autoUpdate:{plugins:{forceUpdates:e,newlyInstalledUpdates:t,deactivateVulnerable:n}}}=this.state,{vulnerabilityFeatureEnabled:s}=this.props;return(0,L.jsx)(_r,{name:"autoUpdate[plugins][forceUpdates]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdatesLabel"}),value:e,options:[{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledOptionLabel"}),value:qG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"autoUpdate[plugins][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{newlyInstalledUpdates:e})})})))},"newlyInstalledPluginsAutoUpdates")]},s?{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:GG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.newlyInstalledPluginsAutoUpdates"}),name:"autoUpdate[plugins][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{newlyInstalledUpdates:e})})})))},"newlyInstalledPluginsAutoUpdates"),(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"autoUpdate[plugins][deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{deactivateVulnerable:e})})})))},"deactivateVulnerablePlugins")]}:null,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.enabledOptionLabel"}),value:zG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.enabledOptionDescription"}),indentFields:s?[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.pluginsAutoUpdates.deactivateVulnerablePlugins"}),name:"autoUpdate[plugins][deactivateVulnerable]",value:n,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{deactivateVulnerable:e})})})))},"deactivateVulnerablePlugins")]:[]}].filter((e=>e)),onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{plugins:Object.assign(Object.assign({},t.autoUpdate.plugins),{forceUpdates:e})})})))})},this.renderThemesAutoUpdates=()=>{const{autoUpdate:{themes:{forceUpdates:e,newlyInstalledUpdates:t}}}=this.state,{vulnerabilityFeatureEnabled:n}=this.props;return(0,L.jsx)(_r,{name:"autoUpdate[themes][forceUpdates]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdatesLabel"}),value:e.toString(),options:[{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledOptionLabel"}),value:QG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"autoUpdate[themes][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{newlyInstalledUpdates:e})})})))},"newlyInstalledThemesAutoUpdates")]},n?{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledWithSecureUpdatesOptionLabel"}),value:JG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.disabledWithSecureUpdatesOptionDescription"}),indentFields:[(0,L.jsx)(mr,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.newlyInstalledThemesAutoUpdates"}),name:"autoUpdate[themes][newlyInstalledUpdates]",value:t,onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{newlyInstalledUpdates:e})})})))},"newlyInstalledThemesAutoUpdates")]}:null,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.enabledOptionLabel"}),value:KG,description:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.themesAutoUpdates.enabledOptionDescription"})}].filter((e=>e)),onChange:e=>this.setState((t=>({autoUpdate:Object.assign(Object.assign({},t.autoUpdate),{themes:Object.assign(Object.assign({},t.autoUpdate.themes),{forceUpdates:e})})})))})},this.renderSetAssets=()=>{const{set:e,currentSet:t}=this.state;if(!e||"0"===e)return null;const n=(e,t)=>t&&t.length?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(pp,{content:`list-ui.instanceInstall.set.${e}`}),":",(0,L.jsx)("ul",{children:t.filter((e=>e.slug&&e.title)).map((e=>(0,L.jsx)("li",{children:e.title},e.slug)))})]}):null;return(0,L.jsxs)(Ks,{visible:this.state.showSetPopover,onClose:this.handleToggleSetPopover,target:(0,L.jsx)(_e,{onClick:e=>gp(e,this.handleToggleSetPopover),icon:"circle-info",className:"wpt-mgl-5"}),title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.set.popoverTitle"}),children:[!(null==t?void 0:t.id)&&(0,L.jsx)(wI,{}),n(Up,t.plugins),n(Rp,t.themes)]})},this.renderSetControl=e=>{const{sets:t}=this.state;return t&&t.length?(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.set.title"}),children:[this.renderDropdownControl({name:"set",options:t,dataTestId:"instance-install-form-field-set",disabled:e,ariaLabel:this.props.translate("list-ui.instanceInstall.set.ariaLabel")}),this.renderSetAssets()]}):null},this.renderWpInstalledWarning=()=>{if(!this.state.pathLocked||this.state.overwrite)return null;const{baseClassName:e}=this.props,{pathLockedReason:t}=this.state;return(0,L.jsxs)("div",{className:F()({[`${e}__domain-settings-indent-fields--warning`]:this.state.pathLocked}),children:[t===YG&&(0,L.jsx)(pp,{content:"list-ui.instanceInstall.domainSettings.wpInstalledWarning"}),t===HG&&(0,L.jsx)(pp,{content:"list-ui.instanceInstall.domainSettings.appInstalledWarning"}),t===VG&&(0,L.jsx)(pp,{content:"list-ui.instanceInstall.domainSettings.userFilesWarning"}),(0,L.jsx)("div",{className:`${e}__wp-install-warning-button-group`,children:(0,L.jsx)(ut,{className:`${e}__wp-install-warning-button-group__rewrite-button`,onClick:()=>this.setState({overwrite:!0}),children:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.domainSettings.overwriteButton"})})})]})},this.getFormParams=()=>{const{pathValidationProcessed:e,isLoading:t,isProcessing:n,isDomainSettingsLoading:s,errors:a,version:i,set:r,language:o,autoUpdate:l,protocol:c,domain:u,installationPath:d,title:p,admin:h,database:m}=this.state;return t?null:{onSubmit:this.handleSubmit,requiredMark:!1,errors:a,state:n?"submit":void 0,values:{version:i,set:r,language:o,autoUpdate:l,protocol:c,domain:u,installationPath:d,title:p,admin:h,database:m},applyButton:!1,submitButton:{children:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.installButton"}),disabled:this.isSubmitDisabled()||s,autoFocus:!e,"data-test-id":"instance-install-form-submit-button"},cancelButton:{onClick:this.props.onClose,children:(0,L.jsx)(pp,{content:"Form.cancelButton",fallback:"Cancel"}),disabled:s}}},this.renderFormFields=()=>{const{isLoading:e,isProcessing:t,isDomainSettingsLoading:n,languages:s,versions:a,dbNamePrefix:i,dbUserNamePrefix:r,database:o,isDatabaseSectionCollapsible:l,isDatabaseCustomizationAllowed:c}=this.state;return e?(0,L.jsxs)(R.Fragment,{children:[(0,L.jsx)(wI,{}),(0,L.jsx)(pp,{content:"list-ui.instanceInstall.loadingForm"})]}):(0,L.jsxs)(R.Fragment,{children:[!c&&(0,L.jsx)(Fe,{intent:"warning",children:(0,L.jsx)(pp,{content:"list.sites.services.dbWarning"})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.autoGeneratedFieldValues"})}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.mainSectionTitle"}),className:"wp-instance-install_section",children:[this.renderInstallationFullPathControl(t),this.renderFormFieldText({name:"title",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.title"}),placeholder:"forms.install.title",dataTestId:"instance-install-form-field-title",disabled:t}),this.renderSetControl(t),this.renderFormFieldDropdown({name:"language",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.language"}),options:s,dataTestId:"instance-install-form-field-language",disabled:t,ariaLabel:this.props.translate("list-ui.instanceInstall.language")}),this.renderFormFieldDropdown({name:"version",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.version"}),options:a,onChange:this.handleChangeWpVersion,dataTestId:"instance-install-form-field-version",disabled:t,ariaLabel:this.props.translate("list-ui.instanceInstall.version")})]}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.adminSectionTitle"}),className:"wp-instance-install_section",children:[(0,L.jsx)(KM,{name:"admin[login]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.adminUserName"}),placeholder:"forms.install.adminLogin",onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{login:e})}))),disabled:t}),(0,L.jsx)(Ar,{name:"admin[password]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.adminUserPassword"}),onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{password:e})})))}),(0,L.jsx)(KM,{name:"admin[email]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.adminEmail"}),placeholder:"forms.install.adminEmail",onChange:e=>this.setState((t=>({admin:Object.assign(Object.assign({},t.admin),{email:e})}))),disabled:t})]}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.dbSectionTitle"}),collapsible:l,collapsed:!0,className:"wp-instance-install_section",children:[this.renderDbServerControl({disabled:t}),(0,L.jsxs)(Li,{name:"database[name]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.dbName"}),children:[i?(0,L.jsx)(da,{children:i}):null,(0,L.jsx)(Sq,{type:"text",placeholder:"forms.install.dbName",value:o.name,onChange:e=>this.setDatabaseSettings("name",e.target.value),disabled:t})]}),(0,L.jsx)(Dr,{name:"database[tablePrefix]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.prefixOfTables"}),onChange:e=>this.setDatabaseSettings("tablePrefix",e),disabled:t}),(0,L.jsxs)(Li,{name:"database[userName]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.dbUserName"}),children:[r?(0,L.jsx)(da,{children:r}):null,(0,L.jsx)(Sq,{type:"text",placeholder:"list-ui.instanceInstall.dbUserNamePlaceholder",value:o.userName,onChange:e=>this.setDatabaseSettings("userName",e.target.value),disabled:t})]}),(0,L.jsx)(Ar,{name:"database[userPassword]",label:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.dbUserPassword"}),onChange:e=>this.setDatabaseSettings("userPassword",e)})]}),this.renderAutoUpdates(),n&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0})]})},this.handleClose=()=>{this.props.onClose(),this.props.redirectToDomainOverviewOnDone&&this.handleRedirectToDomainOverviewPage()},this.state={overwrite:!1,pathLocked:!1,pathLockedReason:null,pathValidationProcessed:!1,isLoading:!1,isDomainSettingsLoading:!1,isProcessing:!1,isWrongParams:!1,showCoreUpdatesPopover:!1,showSetPopover:!1,errors:null,protocols:[],domains:[],sets:[],versions:[],languages:[],dbServers:[],protocol:FG,domain:e.selectedDomain?e.selectedDomain:void 0,installationPath:"",title:"",admin:{email:"",login:"",password:""},database:{name:"",server:0,userName:"",userPassword:"",tablePrefix:""},autoUpdate:{core:"",plugins:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1,deactivateVulnerable:!1},themes:{forceUpdates:"",newlyInstalledUpdates:!1,updateVulnerable:!1}},set:"0",language:"",version:"",dbNamePrefix:"",dbUserNamePrefix:"",isAutoUpdatesCustomizationAllowed:!0,isDatabaseSectionCollapsible:!0,isDatabaseCustomizationAllowed:!1,currentSet:{},installationTaskId:null,installationTask:null,isFirstInstallationOnDomain:!1}}componentWillUnmount(){this.debounceValidatePrefix&&this.debounceValidatePrefix.clear()}handleOpenAndLoadData(){this.setState({isLoading:!0,isProcessing:!1,installationTask:null,installationTaskId:null}),this.getInstallationStub(this.props.selectedDomain?this.props.selectedDomain:void 0).finally((()=>{this.setState({isLoading:!1})}))}handleUpdateBackgroundTasks(){const{installationTaskId:e,installationTask:t}=this.state;if(!e)return;const n=nT(e,this.props.tasks);n&&t!==n&&this.setState({installationTask:n},this.handleInstallationTaskUpdated)}handleInstallationTaskUpdated(){ZI(this.state.installationTask)&&this.setState({isProcessing:!1})}handleRedirectToDomainOverviewPage(){var e;const{installationTask:t,isFirstInstallationOnDomain:n}=this.state;n&&t&&(null===(e=t.publicParams)||void 0===e?void 0:e.redirect)&&(window.location.href=this.state.installationTask.publicParams.redirect)}setIsFirstInstallationOnDomain(){const{domain:e}=this.state,{installations:t,redirectToDomainOverviewOnDone:n}=this.props;if(!n)return void this.setState({isFirstInstallationOnDomain:!1});if(!t)return void this.setState({isFirstInstallationOnDomain:!0});const s=t.filter((t=>{var n;return(null===(n=t.domain)||void 0===n?void 0:n.name)===e})),a=0===s.length;this.setState({isFirstInstallationOnDomain:a})}render(){return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.drawerTitle"}),subtitle:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.drawerSubTitle"}),isOpen:this.props.isOpen,onClose:()=>this.handleClose(),"data-type":"instance-install",form:this.getFormParams(),progress:QO(this.state.installationTask,(()=>{this.setState({installationTask:null,installationTaskId:null})})),children:[this.props.renderDrawerMessages(),this.renderFormFields()]})}}eK.propTypes={selectedDomain:je().string,onClose:je().func.isRequired,getInstallationStub:je().func.isRequired,createInstallation:je().func.isRequired,validateInstallationPath:je().func.isRequired,getSetDetails:je().func.isRequired,onBeforeInstallation:je().func,baseClassName:je().string,vulnerabilityFeatureEnabled:je().bool,addErrorMessage:je().func.isRequired,onAddDrawerWarningMessage:je().func.isRequired,onClearDrawerMessages:je().func.isRequired,renderDrawerMessages:je().func.isRequired,isOpen:je().bool.isRequired,tasks:je().array,redirectToDomainOverviewOnDone:je().bool,installations:je().array,translate:je().func},eK.defaultProps={selectedDomain:void 0,onBeforeInstallation:null,baseClassName:`${th}instance-install-form`,vulnerabilityFeatureEnabled:!1,tasks:[],redirectToDomainOverviewOnDone:!1};const tK=Fc((e=>({installations:e.instances.installations,tasks:e.backgroundTasks.tasks,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature})),{getSetDetails:c_,getInstallationStub:l_,createInstallation:PA,validateInstallationPath:o_,addErrorMessage:ab})(Nv(yC(eK))),nK="login",sK="password",aK="pluginUrl",iK="token",rK=({url:e,login:t,password:n,pluginUrl:s,token:a,ip:i,connectionType:r})=>o=>{const l=new FormData;return l.append("url",e),l.append("login",t),l.append("password",n),l.append("pluginUrl",s),l.append("token",a),l.append("ip",i),l.append("connectionType",r),bf.instance.connectRemoteAgentInstance(l).then((({data:e})=>(o(eb(e,(()=>o(oK(e.data.task))))),e)))},oK=e=>t=>t({type:ky,task:e}),lK=()=>e=>e({type:"instances/CONNECT_REMOTE_AGENT_INSTANCE_FINISHED"}),cK=()=>e=>e({type:"instances/CONNECT_REMOTE_AGENT_INSTANCE_FINISHED_WITH_ERRORS"}),uK=e=>t=>(t(EA(e)),t(Hx({instancesIds:[e]}))),dK={isInstallationErrorOccurred:!1,installationErrorMessage:null},pK=Object.assign({backgroundTaskId:null,backgroundTask:null,isFormSending:!1,isInstanceConnected:!1,isLongTaskFinishedWithError:!1,formValues:{url:"",login:"",password:"",pluginUrl:"",token:"",ip:"",connectionType:1},formErrors:{}},dK);class hK extends R.Component{constructor(e){super(e),this.handleFormFieldChange=(e,t)=>this.setState((n=>({formValues:Object.assign(Object.assign({},n.formValues),{[e]:t})}))),this.handleChangeConnectionType=e=>this.handleFormFieldChange("connectionType",e),this.handleFormSubmit=()=>{this.setState(Object.assign({isFormSending:!0,isLongTaskFinishedWithError:!1,formErrors:{},backgroundTaskId:null},dK),(()=>{const{formValues:e}=this.state,{remoteAgentInstancesActions:{connectRemoteAgentInstance:t}}=this.props;t(Object.assign(Object.assign({},e),{connectionType:e.connectionType.toString()})).then((e=>{const{status:t,data:n,formErrors:s}=e;"success"!==t?s&&this.setState({formErrors:s,isFormSending:!1}):this.setState({backgroundTaskId:n.task.id})}))}))},this.getBackgroundTaskError=e=>e.publicParams.error&&e.publicParams.error.text?{text:e.publicParams.error.text,type:e.publicParams.error.type}:null,this.getSubmitButton=()=>{const{isFormSending:e,isInstanceConnected:t,isLongTaskFinishedWithError:n}=this.state;return!t&&{children:n?(0,L.jsx)(pp,{content:"remote-agent-instances.formButtonRetry"}):(0,L.jsx)(pp,{content:"remote-agent-instances.formButtonSubmit"}),state:e?"loading":"active","data-test-id":"connect-instance-submit-button",onClick:e=>gp(e,this.handleFormSubmit)}},this.getCancelButton=()=>{const{isFormSending:e,isInstanceConnected:t}=this.state;return{children:t?(0,L.jsx)(pp,{content:"remote-agent-instances.formButtonClose"}):(0,L.jsx)(pp,{content:"remote-agent-instances.formButtonCancel"}),disabled:e}},this.getForm=()=>{const{formValues:e,formErrors:t}=this.state;return{values:e,errors:t,vertical:!0,onSubmit:this.handleFormSubmit,submitButton:this.getSubmitButton(),cancelButton:this.getCancelButton(),applyButton:!1}},this.renderInstallationError=()=>{const{isInstallationErrorOccurred:e,installationErrorMessage:t}=this.state;return e?(0,L.jsx)(Fe,{intent:"warning",children:(0,L.jsx)(pp,{content:"remote-agent-instances.errors.cannotInstallPluginAutomatically",params:{installationError:t},style:{whiteSpace:"pre-wrap"}})}):null},this.state=pK}componentDidUpdate(e){!e.isOpen&&this.props.isOpen&&this.setState(pK);const{backgroundTaskId:t,backgroundTask:n}=this.state;if(t&&e.tasks!==this.props.tasks){const e=nT(t,this.props.tasks);e&&n!==e&&VO(e,"task\\connectremoteagentinstance\\add")&&this.setState({backgroundTask:e},(()=>{eT(e)&&this.handleBackgroundTaskSuccess(e),tT(e)&&this.handleBackgroundTaskFail(e)}))}}handleBackgroundTaskSuccess(e){this.setState({isFormSending:!1,isInstanceConnected:!0},(()=>{const{remoteAgentInstancesActions:{loadInstanceToList:t,connectRemoteAgentInstanceFinished:n}}=this.props;e.publicParams.instanceId&&t(e.publicParams.instanceId).catch((()=>{})),n()}))}handleBackgroundTaskFail(e){const{remoteAgentInstancesActions:{connectRemoteAgentInstanceFailed:t}}=this.props,n=this.getBackgroundTaskError(e);n&&"installer"===n.type?this.setState((e=>({isInstallationErrorOccurred:!0,installationErrorMessage:n.text,formValues:Object.assign(Object.assign({},e.formValues),{connectionType:2}),backgroundTask:null,backgroundTaskId:null,isFormSending:!1}))):this.setState({isFormSending:!1,isLongTaskFinishedWithError:!0}),t()}render(){const{isFormSending:e,backgroundTask:t}=this.state,{isOpen:n,onClose:s,apiUrl:a}=this.props,i=`${a}/download-plugin`,r=this.getSubmitButton(),o=[];r&&o.push((0,L.jsx)(ut,Object.assign({type:"submit",intent:"primary"},r),"submit"));const l=t?QO(t,(()=>{this.setState({backgroundTask:null})}),o):null;return(0,L.jsxs)(cr,{title:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceDrawerTitle"}),form:this.getForm(),onClose:s,className:nh,size:"sm",isOpen:n,"data-type":"connect-remote-agent-instance",hideButton:!1,progress:l,children:[(0,L.jsxs)(Fe,{intent:"info",children:[(0,L.jsx)(xe,{name:"exclamation-mark-circle",size:"16"})," ",(0,L.jsx)(pp,{content:"remote-agent-instances.betaMessage",unsafe:!0})]}),(0,L.jsxs)(Nl,{active:this.state.formValues.connectionType,children:[(0,L.jsxs)(Pl,{title:(0,L.jsx)(pp,{content:"remote-agent-instances.connectViaCredentials"}),onActivate:()=>this.handleChangeConnectionType(1),"data-test-id":"connect-instance-tab-automatic",children:[(0,L.jsx)(Dr,{name:"url",label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldUrl"}),description:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldUrlDescription"}),size:"lg","data-test-id":"connect-instance-field-url",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange("url",e)}),(0,L.jsx)(Dr,{name:nK,label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldLogin"}),size:"md","data-test-id":"connect-instance-field-login",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(nK,e)}),(0,L.jsx)(MU,{name:sK,label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldPassword"}),description:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldPasswordDescription"}),size:"md","data-test-id":"connect-instance-field-password",disabled:e,hideGenerateButton:!0,hidePasswordMeter:!0,required:!0,onChange:e=>this.handleFormFieldChange(sK,e)})]}),(0,L.jsxs)(Pl,{title:(0,L.jsx)(pp,{content:"remote-agent-instances.connectViaPluginUrl"}),onActivate:()=>this.handleChangeConnectionType(2),"data-test-id":"connect-instance-tab-manual",children:[this.renderInstallationError(),(0,L.jsx)(yi,{children:(0,L.jsx)(pp,{content:"remote-agent-instances.howToInstallPluginManually",params:{urlToZipArchiveWithPlugin:i},unsafe:!0})}),(0,L.jsx)(Dr,{name:aK,label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldPluginUrl"}),size:"lg","data-test-id":"connect-instance-field-plugin-url",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(aK,e)}),(0,L.jsx)(Dr,{name:iK,label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldToken"}),size:"md","data-test-id":"connect-instance-field-token",disabled:e,required:!0,onChange:e=>this.handleFormFieldChange(iK,e)}),(0,L.jsx)(Dr,{name:"ip",label:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldIp"}),description:(0,L.jsx)(pp,{content:"remote-agent-instances.connectInstanceFieldIpDescription"}),size:"md","data-test-id":"connect-instance-field-ip",disabled:e,onChange:e=>this.handleFormFieldChange("ip",e)})]})]})]})}}const mK=Fc((e=>({tasks:e.backgroundTasks.tasks,apiUrl:e.app.urls.apiUrl})),(e=>({remoteAgentInstancesActions:(0,Cb.zH)({connectRemoteAgentInstance:rK,loadInstanceToList:uK,connectRemoteAgentInstanceFinished:lK,connectRemoteAgentInstanceFailed:cK},e)})))(hK),gK=fp(nS,"task"),fK=fp("instances/SITE_IMPORT_FINISHED");const bK=`${th}import-wordpress-site-drawer`,vK="directoryHidesAnotherWordpress",yK="directoryHidesAnotherApplication",SK="directoryHasUserFiles",wK={protocol:FG,domain:"",installationPath:"",siteUrl:"",adminLogin:"",adminPassword:"",dbName:"",dbUserName:"",dbUserPassword:"",dbServer:""},xK={siteUrl:["siteUrl"],adminLogin:["adminLogin"],adminPassword:["adminPassword"],domain:["domainPath"],dbName:["database"],dbUserName:["database"],dbServer:["database"],dbUserPassword:["dbUserPassword"]},AK=({isOpen:e,onClose:t})=>{var n;const s=Wc(),a=vc((e=>e.backgroundTasks.tasks)),[i,r]=(0,R.useState)(!1),[o,l]=(0,R.useState)(!1),[c,u]=(0,R.useState)(Object.assign({},wK)),[d,p]=(0,R.useState)({}),[h,m]=(0,R.useState)([]),[g,f]=(0,R.useState)(!1),[b,v]=(0,R.useState)(null),[y,S]=(0,R.useState)(""),[w,x]=(0,R.useState)(""),[A,_]=(0,R.useState)([]),[k,j]=(0,R.useState)(!0),[C,I]=(0,R.useState)(!1),[T,D]=(0,R.useState)(null),[P,O]=(0,R.useState)(!1),[M,E]=(0,R.useState)(!1),[U,N]=(0,R.useState)(!1),F=(0,R.useRef)(null),B=(0,R.useCallback)((()=>{r(!1),l(!1),u(Object.assign({},wK)),p({}),m([]),f(!1),v(null),S(""),x(""),_([]),j(!0),I(!1),D(null),O(!1),E(!1),N(!1)}),[]),Y=(0,R.useCallback)((e=>{N(!1),void 0!==e&&E(!0),s((e=>t=>Gf.getSiteImportStub(e).then((({data:e})=>e)).catch((e=>422===e.response.status?Promise.reject(e):(t(Zf(e)),Promise.reject()))))(e)).then((e=>{var t,n;const s=e.domain.meta.choices,a=e.domain.value||(s.length>0?s[0].value:""),i=e.protocol.value||FG,r=e.installationPath.value||"",o=e.database.value,l=o.name.value||"",c=o.userName.value||"",d=o.userPassword.value||"",p=(null===(t=o.namePrefix)||void 0===t?void 0:t.value)||"",h=(null===(n=o.userNamePrefix)||void 0===n?void 0:n.value)||"",g=o.server.value||"",b=o.server.meta.choices,v=o.name.meta.isCustomizationAllowed;m(s),f(!1),E(!1),S(p),x(h),_(b),j(v),u((e=>Object.assign(Object.assign({},e),{domain:a,protocol:i,installationPath:r,dbName:l,dbUserName:c,dbUserPassword:d,dbServer:g})))})).catch((e=>{var t,n;f(!1),E(!1),N(!0);const s=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors;if(s){const{domain:e}=s,t=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(s,["domain"]);p(e?Object.assign(Object.assign({},t),{domainPath:e}):t)}}))}),[s]),H=(0,R.useCallback)(((e,t)=>{O(!1),I(!1),D(null),F.current&&clearTimeout(F.current),F.current=setTimeout((()=>{s(o_(e,t)).catch((e=>{var t,n,s;const a=null===(s=null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors)||void 0===s?void 0:s.installationPath;if(a){const e=[vK,yK,SK].find((e=>a[e]))||null;I(!!e),D(e)}}))}),500)}),[s]),V=(0,R.useRef)(!1);(0,R.useEffect)((()=>{!V.current&&e&&(B(),f(!0),Y()),V.current=e}),[e,B,Y]);const W=b&&null!==(n=nT(b,a))&&void 0!==n?n:null;(0,R.useEffect)((()=>{W&&(eT(W)?(r(!1),l(!0)):tT(W)&&r(!1))}),[W]),(0,R.useEffect)((()=>()=>{F.current&&clearTimeout(F.current)}),[]);const $=(0,R.useCallback)(((e,t)=>{u((n=>Object.assign(Object.assign({},n),{[e]:t}))),p((t=>{const n=xK[e];return(null==n?void 0:n.some((e=>e in t)))?Object.fromEntries(Object.entries(t).filter((([e])=>!n.includes(e)))):t})),"domain"===e&&(Y(t),H(t,c.installationPath)),"installationPath"===e&&H(c.domain,t)}),[Y,H,c.domain,c.installationPath]),z=(0,R.useCallback)((()=>{const e={},t={required:(0,L.jsx)(pp,{content:"siteImport.drawer.fieldRequired"})};return c.siteUrl.trim()||(e.siteUrl=t),c.adminLogin.trim()||(e.adminLogin=t),c.adminPassword.trim()||(e.adminPassword=t),e}),[c.siteUrl,c.adminLogin,c.adminPassword]),q=(0,R.useCallback)((()=>{const e=z();if(Object.keys(e).length>0)return void p(e);r(!0),p({});const t=Object.assign({siteUrl:c.siteUrl,adminLogin:c.adminLogin,adminPassword:c.adminPassword,target:Object.assign({domain:c.domain,installationPath:c.installationPath},P?{overwrite:!0}:{})},c.dbName||c.dbUserName||c.dbUserPassword||c.dbServer?{database:Object.assign({name:c.dbName,userName:c.dbUserName,userPassword:c.dbUserPassword},c.dbServer?{server:c.dbServer}:{})}:{});let n=!1;s((e=>t=>Gf.siteImport(e).then((({data:e})=>{const n=vp(e.task);return t(gK(n)),n})).catch((e=>Promise.reject(e))))(t)).then((e=>{n=!0,v(e.id)})).catch((e=>{var t,n,a,i,r,o,l,c;const u=null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.formErrors;if(u){const e={};for(const t of["siteUrl","adminLogin","adminPassword"])u[t]&&(e[t]=u[t]);const t=[];Array.isArray(null===(a=u.target)||void 0===a?void 0:a.domain)&&t.push(...u.target.domain),Array.isArray(null===(i=u.target)||void 0===i?void 0:i.installationPath)&&t.push(...u.target.installationPath),t.length>0&&(e.domainPath=t),u.database&&(e.database=u.database),(null===(r=u.database)||void 0===r?void 0:r.userPassword)&&(e.dbUserPassword=u.database.userPassword),Object.keys(e).length>0&&p(e)}else{const t=null===(c=null===(l=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===l?void 0:l.meta)||void 0===c?void 0:c.message;s(ab(t||(0,L.jsx)(pp,{content:"siteImport.drawer.submitFailed"})))}})).finally((()=>{n||r(!1)}))}),[c,P,z,s]),G=W?QO(W,(()=>{v(null)})):null;return(0,L.jsx)(cr,{title:(0,L.jsx)(pp,{content:"siteImport.drawer.title"}),subtitle:(0,L.jsx)(pp,{content:"siteImport.drawer.subtitle"}),isOpen:e,onClose:t,"data-type":"import-wordpress-site",form:(()=>{if(g)return;const e=i||U||M||C&&!P;return{values:c,errors:d,onSubmit:q,submitButton:!o&&{children:(0,L.jsx)(pp,{content:"siteImport.drawer.importButton"}),state:i?"loading":"active",disabled:e,"data-test-id":"site-import-submit-button",onClick:e=>gp(e,q)},cancelButton:{children:o?(0,L.jsx)(pp,{content:"siteImport.drawer.closeButton"}):(0,L.jsx)(pp,{content:"siteImport.drawer.cancelButton"}),disabled:i||M},applyButton:!1}})(),progress:G,children:g?(0,L.jsx)(wI,{text:(0,L.jsx)(pp,{content:"list-ui.instanceInstall.loadingForm"})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"siteImport.drawer.generalSection"}),children:[(0,L.jsxs)(Li,{label:(0,L.jsx)(pp,{unsafe:!0,content:"siteImport.drawer.domainName"}),name:"domainPath",className:`${bK}__installation-path`,children:[(0,L.jsxs)("span",{className:`${bK}__installation-path_separators`,children:[c.protocol,"://"]}),(0,L.jsx)(Hr,{name:"domain",value:c.domain,onChange:e=>$("domain",String(null!=e?e:"")),disabled:i||h.length<=1,searchable:!0,className:`${bK}__installation-path_domain-selector`,"data-test-id":"site-import-field-domain",children:h.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e,children:t},e)))}),(0,L.jsx)("span",{className:`${bK}__installation-path_separators`,children:"/"}),(0,L.jsx)(Os,{name:"installationPath","data-test-id":"site-import-field-installation-path",value:c.installationPath,onChange:e=>$("installationPath",e.target.value),disabled:i}),!C||P?null:(0,L.jsxs)("div",{className:`${bK}__domain-settings-indent-fields--warning`,children:[T===vK&&(0,L.jsx)(pp,{content:"siteImport.drawer.wpInstalledWarning"}),T===yK&&(0,L.jsx)(pp,{content:"siteImport.drawer.appInstalledWarning"}),T===SK&&(0,L.jsx)(pp,{content:"siteImport.drawer.userFilesWarning"}),(0,L.jsx)("div",{className:`${bK}__wp-install-warning-button-group`,children:(0,L.jsx)(ut,{className:`${bK}__wp-install-warning-button-group__rewrite-button`,onClick:()=>O(!0),children:(0,L.jsx)(pp,{content:"siteImport.drawer.overwriteButton"})})})]})]}),(0,L.jsx)(Dr,{name:"siteUrl",label:(0,L.jsx)(pp,{content:"siteImport.drawer.remoteWpSiteUrl"}),size:"md","data-test-id":"site-import-field-remote-url",disabled:i,required:!0,onChange:e=>$("siteUrl",e)}),(0,L.jsx)(Dr,{name:"adminLogin",label:(0,L.jsx)(pp,{content:"siteImport.drawer.adminLogin"}),size:"md","data-test-id":"site-import-field-admin-login",disabled:i,required:!0,onChange:e=>$("adminLogin",e)}),(0,L.jsx)(MU,{name:"adminPassword",label:(0,L.jsx)(pp,{content:"siteImport.drawer.adminPassword"}),size:"md","data-test-id":"site-import-field-admin-password",disabled:i,hideGenerateButton:!0,hidePasswordMeter:!0,required:!0,onChange:e=>$("adminPassword",e)})]}),(0,L.jsxs)(Ni,{title:(0,L.jsx)(pp,{content:"siteImport.drawer.databaseSection"}),collapsible:!0,collapsed:!0,children:[!A||A.length<=1?null:(0,L.jsx)(Li,{name:"database[server]",label:(0,L.jsx)(pp,{content:"siteImport.drawer.localDbServer"}),children:(0,L.jsx)(Hr,{name:"dbServer","data-test-id":"site-import-field-db-server",value:c.dbServer,onChange:e=>$("dbServer",String(null!=e?e:"")),disabled:i||!k,children:A.map((({value:e,title:t})=>(0,L.jsx)(Nr,{value:e.toString(),children:t},e)))})}),(0,L.jsxs)(Li,{name:"database[name]",label:(0,L.jsx)(pp,{content:"siteImport.drawer.localDbName"}),children:[y?(0,L.jsx)(da,{children:y}):null,(0,L.jsx)(Os,{name:"dbName","data-test-id":"site-import-field-db-name",value:c.dbName,onChange:e=>$("dbName",e.target.value),disabled:i||!k})]}),(0,L.jsxs)(Li,{name:"database[userName]",label:(0,L.jsx)(pp,{content:"siteImport.drawer.localDbUserName"}),children:[w?(0,L.jsx)(da,{children:w}):null,(0,L.jsx)(Os,{name:"dbUserName","data-test-id":"site-import-field-db-user-name",value:c.dbUserName,onChange:e=>$("dbUserName",e.target.value),disabled:i||!k})]}),(0,L.jsx)(MU,{name:"dbUserPassword",label:(0,L.jsx)(pp,{content:"siteImport.drawer.localDbUserPassword"}),size:"md","data-test-id":"site-import-field-db-user-password",disabled:i||!k,hideGenerateButton:!0,hidePasswordMeter:!0,onChange:e=>$("dbUserPassword",e)})]}),M&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0})]})})};const _K=e=>{const t=[],n=[];return R.Children.forEach(e,(e=>{var s;if((0,R.isValidElement)(e))if(e.type===Yn)t.push(e);else if(e.type===Ks||"target"in e.props)n.push(e);else if(e.type===R.Fragment){const s=_K(e.props.children);t.push(...s.menuItems),n.push(...s.popovers)}else if(null===(s=e.props)||void 0===s?void 0:s.children){const s=_K(e.props.children);t.push(...s.menuItems),n.push(...s.popovers)}})),{menuItems:t,popovers:n}},kK=e=>{var t,n,{menu:s,children:a,icon:i}=e,r=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["menu","children","icon"]);const{menuItems:o,popovers:l}=_K(s.props.children);if(1===o.length+l.length){if(1===l.length){const[e]=l,n=e.props.target,s=(0,R.isValidElement)(n)&&n.type===Yn?null===(t=n.props)||void 0===t?void 0:t.onClick:void 0,o=(0,L.jsx)(He,Object.assign({},r,{icon:i,onClick:s,children:a}));return(0,R.cloneElement)(e,{target:o})}if(1===o.length){const e=null===(n=o[0].props)||void 0===n?void 0:n.onClick;return(0,L.jsx)(He,Object.assign({},r,{icon:i,onClick:e,children:a}))}}return(0,L.jsx)(zn,{menu:s,children:(0,L.jsx)(He,Object.assign({},r,{icon:i,children:a}))})};class jK extends R.Component{constructor(e){super(e),this.handleShowPopover=()=>{this.setState({isPopoverVisible:!0})},this.handleHidePopover=()=>{this.setState({isPopoverVisible:!1})},this.handleOpenSmartPhpUpdatesDrawer=()=>{const{onOpenSmartPhpUpdatesDrawer:e}=this.props;this.handleHidePopover(),e()},this.state={isPopoverVisible:!1}}render(){var e;const{title:t,installation:{features:{php:n}},minimalSupportedPhpVersion:s}=this.props,{isPopoverVisible:a}=this.state;return n.handler?(0,L.jsx)(Ks,{visible:a,onClose:this.handleHidePopover,target:(0,L.jsx)(Yn,{label:null===(e=n.handler)||void 0===e?void 0:e.version,onClick:this.handleShowPopover,children:t}),children:(0,L.jsx)(jY,{installation:this.props.installation,minimalSupportedPhpVersion:s,onOpenSmartPhpUpdatesDrawer:this.handleOpenSmartPhpUpdatesDrawer})},"ssl-disabled"):null}}const CK=Fc((e=>({minimalSupportedPhpVersion:e.app.options.minimalSupportedPhpVersion})),(()=>({})))(jK),IK=({installation:e,onEnableInstances:t,onDisableInstances:n,onOpenUpdates:s,onOpenSecurity:a,onOpenSmartPhpUpdatesDrawer:i,baseClassName:r=`${th}instances-list-issues-grouped`})=>{const o=Wc(),l=(0,R.useCallback)((()=>{n([e.id]),o(mx(e.id,!0)).then((()=>{o(nb((0,L.jsx)(pp,{content:"controllers.index.feature.search-indexing.enabledSuccessfully"})))})).catch((()=>{})).finally((()=>{t([e.id])}))}),[o,e.id,n,t]),c=(0,R.useCallback)((()=>{n([e.id]),o(uA(e.id,!1)).then((()=>{o(nb((0,L.jsx)(pp,{content:"features.debug.disabledSuccessfully"})))})).catch((()=>{})).finally((()=>{t([e.id])}))}),[o,e.id,n,t]),u=(0,R.useCallback)((()=>{const{id:s,features:{maintenance:a}}=e;n([s]),o(wx(s,!1,a.status)).catch((()=>{})).finally((()=>{t([s])}))}),[o,e,n,t]),d=(0,R.useCallback)((()=>{var t,n,s,a,i,r,l,c;const{domain:u,id:d,installationType:p,owner:h}=e;if(!(null==u?void 0:u.ssl))return[];const{ssl:m}=u,g=!!m&&{isActual:null!==(n=null===(t=m.certificate)||void 0===t?void 0:t.actual)&&void 0!==n&&n,isCertificateInstalled:null!==(a=null===(s=m.certificate)||void 0===s?void 0:s.installed)&&void 0!==a&&a,isSslEnabled:m.enabled,isRedirectToHttpsEnabled:m.redirectToHttpsEnabled,isSelfSigned:null!==(r=null===(i=m.certificate)||void 0===i?void 0:i.selfSigned)&&void 0!==r&&r,isSuitableForDomain:null!==(c=null===(l=m.certificate)||void 0===l?void 0:l.suitableForDomain)&&void 0!==c&&c,isUrlProtocolHttps:m.urlProtocolHttps},f=null==h?void 0:h.login,b=[];return g&&g.isSslEnabled||b.push((0,L.jsx)(CY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notEnabled.title","data-test-id":"instance-issue-ssl__disabled"})}),actionLinkAttributes:(null==m?void 0:m.enableSslActionUrl)?MY({url:null==m?void 0:m.enableSslActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null},"disabled")),g&&g.isSslEnabled&&!g.isRedirectToHttpsEnabled&&b.push((0,L.jsx)(OY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.redirectToHttpsDisabled.title","data-test-id":"instance-issue-ssl__redirect-disabled"})}),actionLinkAttributes:(null==m?void 0:m.enableRedirectToHttpsActionUrl)?MY({url:null==m?void 0:m.enableRedirectToHttpsActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null},"redirect-disabled")),g&&g.isSslEnabled&&g.isRedirectToHttpsEnabled&&!g.isUrlProtocolHttps&&b.push((0,L.jsx)(LY,{installationId:d,target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.mismatchUrlProtocol.title","data-test-id":"instance-issue-ssl__mismatch-protocol"})})},"mismatch-protocol")),g&&g.isCertificateInstalled?(g.isSelfSigned?b.push((0,L.jsx)(TY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.selfSigned.title","data-test-id":"instance-issue-ssl__self-signed"})}),actionLinkAttributes:(null==m?void 0:m.buyOrInstallSslActionUrl)?MY({url:null==m?void 0:m.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null,instanceType:p},"self-signed")):g.isSuitableForDomain||b.push((0,L.jsx)(PY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.notSuitableForDomain.title","data-test-id":"instance-issue-ssl__no-suitable"})}),actionLinkAttributes:(null==m?void 0:m.buyOrInstallSslActionUrl)?MY({url:null==m?void 0:m.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null,instanceType:p},"not-suitable")),g.isActual||b.push((0,L.jsx)(DY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateExpired.title","data-test-id":"instance-issue-ssl__expired"})}),actionLinkAttributes:(null==m?void 0:m.buyOrInstallSslActionUrl)?MY({url:null==m?void 0:m.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null,instanceType:p},"expired"))):b.push((0,L.jsx)(IY,{target:(0,L.jsx)(Yn,{children:(0,L.jsx)(pp,{content:"instancesList.instanceCard.ssl.certificateNotInstalled.title","data-test-id":"instance-issue-ssl__no-certificate"})}),actionLinkAttributes:(null==m?void 0:m.buyOrInstallSslActionUrl)?MY({url:null==m?void 0:m.buyOrInstallSslActionUrl,instanceType:p,cpanelAccountUsername:f,goToUri:(e,t)=>o(mS(e,t))}):null,instanceType:p},"not-installed")),b}),[e,o]),p=(0,R.useCallback)((()=>{const{id:t,features:{php:n,updates:a},version:r,status:o}=e,l=[];var c,u;if(c=!!a.smart.status,u=a.smart.taskStatus,c&&u&&kN(u)&&l.push((0,L.jsx)(Yn,{onClick:e=>gp(e,(()=>s(t,"LST-SGL_ISSUES_SMART_UPDATES"))),children:(0,L.jsx)(pp,{content:"instancesList.issues.smartUpdateConflict"})},"smart-update-conflict")),((e,t)=>e&&t&&kN(t))(a.php.available&&a.php.applicable,a.php.taskStatus)?l.push((0,L.jsx)(Yn,{onClick:e=>gp(e,(()=>i("LST-SGL_ISSUES_SMART_PHP_UPDATES_RESULT"))),children:(0,L.jsx)(pp,{content:"smartPhpUpdate.result.smartPhpUpdateConflict.issues"})},"smart-php-update-conflict")):n.unsupported?l.push((0,L.jsx)(CK,{title:(0,L.jsx)(pp,{content:"instancesList.issues.updateUnsupportedPhpVersion"}),installation:e,onOpenSmartPhpUpdatesDrawer:i},"php-unsupported")):n.eoled&&l.push((0,L.jsx)(CK,{title:(0,L.jsx)(pp,{content:"instancesList.issues.updateOutdatedPhpVersion"}),installation:e,onOpenSmartPhpUpdatesDrawer:i},"php-outdated")),o.alive){const{amountOfPluginsWithUpdates:e,amountOfThemesWithUpdates:n,availableVersion:i}=null!=a?a:{};i&&l.push((0,L.jsx)(Yn,{label:r,onClick:e=>gp(e,(()=>s(t,"LST-SGL_ISSUES_WORDPRESS",aS))),children:(0,L.jsx)(pp,{content:"instancesList.issues.updateWordpressCore"})},"wordpress-outdated")),e>0&&l.push((0,L.jsx)(Yn,{label:`${e}`,onClick:e=>gp(e,(()=>s(t,"LST-SGL_ISSUES_PLUGINS",iS))),children:(0,L.jsx)(pp,{content:"instancesList.issues.updateWordpressPlugins"})},"plugins-outdated")),n>0&&l.push((0,L.jsx)(Yn,{label:`${n}`,onClick:e=>gp(e,(()=>s(t,"LST-SGL_ISSUES_THEMES",rS))),children:(0,L.jsx)(pp,{content:"instancesList.issues.updateWordpressThemes"})},"themes-outdated"))}return l}),[e,s,i]),h=(0,R.useCallback)((()=>{const{status:t,features:{debug:n,indexing:s,maintenance:a}}=e,i=[];return t.alive?(n.status&&i.push((0,L.jsx)(Yn,{onClick:c,children:(0,L.jsx)(pp,{content:"instancesList.issues.debugEnabled"})},"debug-enabled")),s.status||i.push((0,L.jsx)(Yn,{onClick:l,children:(0,L.jsx)(pp,{content:"instancesList.issues.searchIndexingDisabled"})},"search-disabled")),a.status&&i.push((0,L.jsx)(Yn,{onClick:u,children:(0,L.jsx)(pp,{content:"instancesList.issues.maintenanceModeEnabled"})},"maintenance-enabled")),i):i}),[e,c,l,u]),m=(0,R.useCallback)((()=>{const{features:{php:t},status:{alive:n,infected:s,unsupported:a}}=e,i=[];return t.unsupported?(i.push((0,L.jsx)(He,{intent:"danger",view:"light",children:(0,L.jsx)(pp,{content:"controllers.index.detail.labelUnsupportedPhp"})},"label-warning-instance-on-unsupported-php")),i):a?(i.push((0,L.jsx)(He,{intent:"danger",view:"light","data-test-id":"unsupported-instance-label",children:(0,L.jsx)(pp,{content:"controllers.index.detail.labelInstanceUnsupported"})},"label-warning-instance-outdated")),i):(n||(s?i.push((0,L.jsx)(He,{intent:"danger",view:"light","data-test-id":"infected-instance-label",icon:"triangle-exclamation-mark",children:(0,L.jsx)(pp,{content:"controllers.index.detail.labelInstanceInfected"})},"label-warning-instance-infected")):i.push((0,L.jsx)(He,{intent:"danger",view:"light",icon:"exclamation-mark-circle",children:(0,L.jsx)(pp,{content:"controllers.index.detail.labelInstanceBroken"})},"label-warning-instance-broken"))),i)}),[e]),g=[...m()];if(0!==g.length)return(0,L.jsx)("div",{className:r,"data-test-id":"wp-toolkit-instances-list-issues",children:g});const f=d(),b=p(),v=h(),{id:y,status:S,features:{vulnerability:{securityRiskScore:w}}}=e;if(S.alive&&null!==w){const e=$S(w);g.push((0,L.jsxs)(He,{intent:e,view:"light",icon:zS(w),onClick:()=>a(y,"LST-SGL_ISSUES_SECURITY_RISK",wM),"data-test-id":"instances-list-issues-security-risk","data-test-value":(x=w,x.toFixed(1)),children:[(0,L.jsx)(pp,{content:"instancesList.issues.securityRisk",params:{securityRisk:w}}),(0,L.jsx)(nk,{children:(0,L.jsx)(ek,{eventOnMount:"LST-SGL_SECURITY-RISK-SHOWN"})})]},"security-risk"))}var x;return f.length>0&&g.push((0,L.jsxs)(kK,{intent:"warning",view:"light",menu:(0,L.jsx)(aa,{children:f}),"data-test-id":"wp-toolkit-instances-list-issues-ssl",children:[(0,L.jsx)(pp,{content:"instancesList.issues.certificate"}),(0,L.jsx)(nk,{children:(0,L.jsx)(ek,{eventOnMount:"LST-SGL_CERTIFICATE-ISSUES-SHOWN"})})]},"ssl")),b.length>0&&g.push((0,L.jsxs)(kK,{intent:"warning",view:"light",icon:"arrow-up-circle-filled",menu:(0,L.jsx)(aa,{children:b}),"data-test-id":"wp-toolkit-instances-list-issues-updates",children:[(0,L.jsx)(pp,{content:"instancesList.issues.updates"}),(0,L.jsx)(nk,{children:(0,L.jsx)(ek,{eventOnMount:"LST-SGL_UPDATES-ISSUES-SHOWN"})})]},"updates")),v.length>0&&g.push((0,L.jsx)(zn,{menu:(0,L.jsx)(aa,{children:v}),children:(0,L.jsxs)(He,{intent:"inactive",view:"light",icon:"exclamation-mark-circle",children:[(0,L.jsx)(pp,{content:"instancesList.issues.common",params:{count:v.length}}),(0,L.jsx)(nk,{children:(0,L.jsx)(ek,{eventOnMount:"LST-SGL-ISSUES-SHOWN"})})]})},"other-issues")),0===g.length&&g.push((0,L.jsx)(He,{intent:"success",view:"light",icon:"check-mark-circle",children:(0,L.jsx)(pp,{content:"instancesList.issues.common",params:{count:g.length}})},"label-warning-instance-infected")),(0,L.jsx)("div",{className:r,"data-test-id":"wp-toolkit-instances-list-issues",children:g})},TK=({baseClassName:e=`${th}tag`,className:t,children:n,prefix:s,backgroundColor:a,onClick:i})=>(0,L.jsxs)("span",{className:F()(e,{[`${e}--affix`]:s},t),style:{backgroundColor:a},onClick:i,"data-test-id":"installation-label",children:[s&&(0,L.jsx)("span",{className:`${e}__prefix`,children:s}),n]}),DK=({template:e,onSubmit:t,onRemove:n,onCancel:s,children:a,className:i})=>{const[r,o]=(0,R.useState)(e.value.color.value),[l,c]=(0,R.useState)("private"===e.value.type.value),[u,d]=(0,R.useState)(e.value.name.value),p=0===u.trim().length;return(0,L.jsx)(Ks,{visible:!0,target:a,placement:"bottom",onClose:s,children:(0,L.jsxs)(Hi,{style:{width:"100%"},className:i,onSubmit:()=>!p&&t({name:u,type:l?Df:"public",color:r}),values:{name:u},submitButton:{children:(0,L.jsx)(pp,{content:n?"installation.features.labels.form.buttons.update":"installation.features.labels.form.buttons.create"}),size:"md",disabled:p,"data-test-id":"installation-labels-menu-submit"},cancelButton:{size:"md",onClick:s},applyButton:!1,additionalButtons:[n&&(0,L.jsx)(ut,{size:"md",onClick:n,"data-test-id":"installation-remove-label",children:(0,L.jsx)(pp,{content:"installation.features.labels.form.buttons.remove"})})],"data-test-id":"installation-labels-menu",children:[(0,L.jsx)(Dr,{label:(0,L.jsx)(pp,{content:"installation.features.labels.form.name.label"}),size:"fill",name:"name",inputProps:{suffix:(0,L.jsx)(ut,{icon:"cross-mark",ghost:!0,onClick:()=>d("")})},onChange:d,autoFocus:!0,"data-test-id":"installation-labels-menu-label-name"}),(0,L.jsx)(Li,{label:(0,L.jsx)(pp,{content:"installation.features.labels.form.privacity.label"}),description:(0,L.jsx)(pp,{content:"installation.features.labels.form.privacity.description"}),fullDescription:(0,L.jsx)(pp,{content:"installation.features.labels.form.privacity.fullDescription"}),children:(0,L.jsxs)(Tt,{checked:l,onChange:c,children:[(0,L.jsx)(pp,{content:"installation.features.labels.form.privacity.text"})," ",(0,L.jsx)(xe,{name:"eye-closed"})]})}),(0,L.jsx)(Li,{label:"Color",className:"color-field",children:e.value.color.meta.choices.map((e=>(0,L.jsx)(Za,{name:"color",checked:e===r,onChange:t=>t&&o(e),style:{"--wpt-tag-radio-indicator-color":e}},e)))})]})})},PK=Fc(null,(e=>({instanceActions:(0,Cb.zH)({setInstallationLabels:QA,getInstallationLabelsMeta:KA},e)})))((({baseClassName:e=`${th}tag-manager`,installationId:t,tags:n,instanceActions:{getInstallationLabelsMeta:s,setInstallationLabels:a}})=>{const[i,r]=(0,R.useState)(),[o,l]=(0,R.useState)(),[c,u]=(0,R.useState)(n.length<=6),d=J_(),p=(0,L.jsx)(ut,{icon:"label-plus",size:"md",ghost:!0,component:"a",onClick:e=>gp(e,(()=>r(-1))),"data-test-id":"installation-add-label",children:0===n.length&&(0,L.jsx)(pp,{content:"installation.features.labels.addNewLabel"})});(0,R.useEffect)((()=>l(void 0)),[t]),(0,R.useEffect)((()=>r(void 0)),[n]),(0,R.useEffect)((()=>{o||void 0===i||s(t).then((({data:e})=>{l(JSON.parse(JSON.stringify(e.meta)))}))}),[o,i,t,s]);const h=(e,s)=>{r(void 0);const i=[...n];s?-1===e?(i.push(s),d("LABELS_POPUP-LABEL-SUBMITTED",s)):(i[e]=s,d("LABELS_POPUP-LABEL-SUBMITTED",s)):(d("LABELS_POPUP-LABEL-REMOVED",i[e]),i.splice(e,1)),a(t,i)};o&&(o.template.value.name.value="",o.template.value.type.value=Df,[o.template.value.color.value]=o.template.value.color.meta.choices);const m=c?n:n.slice(0,6);return(0,L.jsxs)("span",{className:e,children:[m.map(((t,n)=>{const s=(0,L.jsx)(TK,{prefix:(0,L.jsx)(xe,{name:"public"===t.type?"eye":"eye-closed",size:"12"}),backgroundColor:t.color,onClick:e=>gp(e,(()=>r(n))),children:t.name},t.name);return n===i&&o?(o.template.value.name.value=t.name,o.template.value.type.value=t.type,o.template.value.color.value=t.color,(0,L.jsx)(DK,{template:o.template,onSubmit:e=>h(n,e),onCancel:()=>r(void 0),onRemove:()=>h(n),className:e,children:s},xp(4))):s})),n.length<=6?null:c?(0,L.jsx)(_e,{onClick:()=>u(!1),className:`${e}__show-less-button`,children:(0,L.jsx)(pp,{content:"installation.features.labels.showLess"})}):(0,L.jsx)(_e,{onClick:()=>u(!0),className:`${e}__show-more-button`,children:(0,L.jsx)(pp,{content:"installation.features.labels.showMore"})}),-1!==i&&p,-1===i&&o&&(0,L.jsx)(DK,{template:o.template,onSubmit:e=>h(-1,e),onCancel:()=>r(void 0),className:e,children:p})]})}));class OK extends R.Component{constructor(e){super(e),this.state={isPopoverVisible:!1,isLoading:!1}}componentDidUpdate(e){var t,n;e.isUpdating===this.props.isUpdating||this.props.isUpdating||null===(n=null===(t=this.props.callbacks)||void 0===t?void 0:t.onApplyFinished)||void 0===n||n.call(t)}applyVirtualPatching(e,t=!1){var n,s,a;const{installation:i,applyVirtualPatchesConfig:r,updateVirtualPatchesProtectionStatus:o,callbacks:l}=this.props;return this.setState({isLoading:!0}),o({installationsIds:[i.id],status:e,skipBrokenInstallations:null===(n=null==r?void 0:r.skipBrokenInstallations)||void 0===n||n,skipInfectedInstallations:null===(s=null==r?void 0:r.skipInfectedInstallations)||void 0===s||s,skipUnsupportedInstallations:null===(a=null==r?void 0:r.skipUnsupportedInstallations)||void 0===a||a},t).then((e=>{var n;return null===(n=null==l?void 0:l.onApplySuccess)||void 0===n||n.call(l,e),this.setState({isPopoverVisible:t}),e})).catch((e=>{var t,n,s;(null==l?void 0:l.onApplyFailed)?l.onApplyFailed(e):this.setState({validationError:null===(s=null===(n=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.meta)||void 0===s?void 0:s.message,isPopoverVisible:!0})})).finally((()=>{this.setState({isLoading:!1})}))}renderComponent(e,t){if(!t)return e;const n=e.props.onClick;return(0,R.cloneElement)(e,{onClick:e=>{t(e),n&&n(e)}})}renderUnpaidComponent(){const{components:e,callbacks:t}=this.props;return this.renderComponent(e.unpaidComponent,t.onOpenVirtualPatchesUpsell)}renderNotActivatedComponent(){const{consent:e,components:t,isUpdating:n}=this.props,{isPopoverVisible:s,validationError:a,isLoading:i}=this.state,r=e.usePreValidation?()=>this.applyVirtualPatching(!0,!0):()=>this.setState({isPopoverVisible:!0});return(0,L.jsx)(Ks,{visible:s,onClose:()=>this.setState({isPopoverVisible:!1}),target:this.renderComponent(t.notActivatedComponent,r),children:a?(0,L.jsx)("div",{style:{textAlign:"justify"},children:a}):(0,L.jsx)(UL,{isButtonLoading:n||i,onSubmit:()=>this.applyVirtualPatching(!0),dataTestId:e.enableConsentDataTestId})})}renderActivatedComponent(){const{consent:e,components:t,isUpdating:n,disabling:s}=this.props,{isPopoverVisible:a,validationError:i,isLoading:r}=this.state;if(!s.isPossible)return this.renderComponent(t.activatedComponent);if(!s.showConsent)return this.renderComponent(t.activatedComponent,(()=>this.applyVirtualPatching(!1)));const o=e.usePreValidation?()=>this.applyVirtualPatching(!1,!0):()=>this.setState({isPopoverVisible:!0});return(0,L.jsx)(Ks,{visible:a,onClose:()=>this.setState({isPopoverVisible:!1}),target:this.renderComponent(t.activatedComponent,o),children:i?(0,L.jsx)("div",{style:{textAlign:"justify"},children:i}):(0,L.jsx)(NL,{isButtonLoading:n||r,onSubmit:()=>this.applyVirtualPatching(!1),dataTestId:e.disableConsentDataTestId})})}render(){const{installation:e,components:t,isUpdating:n,isAdmin:s,showVirtualPatchesUpsellWhenRestrictedViaPlans:a}=this.props,{isLoading:i}=this.state;return((e,t,n)=>{const{features:{php:s,virtualPatches:{restrictions:a}},status:{alive:i,infected:r,unsupported:o}}=e;return!(!i||r||o||s.unsupported||dL(a,t,n))})(e,s,a)?(n||i)&&t.loadingComponent?this.renderComponent(t.loadingComponent):uL(e,a,s)?(e=>{var t;return!!(null===(t=e.features.virtualPatches)||void 0===t?void 0:t.status)})(e)?this.renderActivatedComponent():this.renderNotActivatedComponent():this.renderUnpaidComponent():null}}const LK=Fc(((e,t)=>{const{installation:n}=t;return{isUpdating:e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id))),isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans}}),(e=>({updateVirtualPatchesProtectionStatus:(0,Cb.zH)(aw,e)})))(OK),MK=({installation:e,onOpenVulnerabilitiesDrawer:t,onOpenVirtualPatchesUpsell:n,baseClassName:s=`${th}instances-list-shield`})=>(0,L.jsx)(LK,{installation:e,consent:{usePreValidation:!1,enableConsentDataTestId:Lv,disableConsentDataTestId:Lv},disabling:{isPossible:!1},components:{unpaidComponent:(0,L.jsx)(ut,{ghost:!0,icon:(0,L.jsx)(TL,{}),"data-test-id":Ov}),notActivatedComponent:(0,L.jsx)(ut,{ghost:!0,icon:(0,L.jsx)(TL,{}),"data-test-id":Ov}),activatedComponent:(0,L.jsx)(ut,{ghost:!0,icon:"shield-filled","data-test-id":Ov,onClick:()=>t(),className:`${s}__active`}),loadingComponent:(0,L.jsx)(ut,{ghost:!0,"data-test-id":Ov,state:"loading"})},callbacks:{onOpenVirtualPatchesUpsell:n}}),EK=Fc((e=>({virtualPatchingCustomerPortalUrl:e.app.urls.virtualPatchingCustomerPortalUrl})))((e=>{const{virtualPatchingCustomerPortalUrl:t}=e,n=cp("drawer.vpatchesSubscription");return t?(0,L.jsxs)(Us,{target:"_blank",onClick:()=>{window.open(t)},children:[(0,L.jsx)(xe,{name:"check-list"})," ",n("infoPage.link.mySubscriptions")]}):null})),RK=e=>{const{storedSubscriptionId:t,detachSubscription:n,retrieveSubscriptionDataFromLicenseService:s,baseClassName:a=`${th}vpatches-upsell-activation`}=e,i=cp("drawer.vpatchesSubscription.activationPage"),[r,o]=(0,R.useState)(""),l=e=>(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_a,{className:`${a}-description`,children:e}),(0,L.jsx)(Os,{prefix:(0,L.jsx)(xe,{name:"key"}),size:"lg",placeholder:i("activationKeyPlaceholder").toString(),"data-test-id":"wpt-virtual-patching-upsell-dialog-subscription-id-input",onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&s(r)}})," ",(0,L.jsx)(ut,{onClick:()=>s(r),disabled:0===r.length,intent:"primary","data-test-id":"wpt-virtual-patching-upsell-dialog-subscription-by-id-activation-button",children:i("button.applyActivationCode")})]}),c=(0,L.jsx)("div",{className:a,children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:l(i("descriptionText"))}),(0,L.jsxs)(vi,{children:[(0,L.jsx)(_a,{children:i("descriptionText.findOutYourId")}),(0,L.jsx)(EK,{})]})]})});return t?(u=t,(0,L.jsx)("div",{className:a,children:(0,L.jsxs)(Ni,{children:[(0,L.jsxs)(vi,{children:[(0,L.jsx)(_a,{className:`${a}-description`,children:i("descriptionText.knownId")}),(0,L.jsx)(Os,{prefix:(0,L.jsx)(xe,{name:"key"}),size:"lg",defaultValue:u,disabled:!0,readOnly:!0})," ",(0,L.jsx)(ut,{onClick:()=>s(u),children:i("button.reactivate")})]}),(0,L.jsx)(vi,{children:(0,L.jsx)(ut,{onClick:()=>n(),children:i("button.detachSubscriptionId")})}),(0,L.jsx)(vi,{children:l(i("descriptionText.enterYouId"))}),(0,L.jsxs)(vi,{children:[(0,L.jsx)(_a,{children:i("descriptionText.findOutYourId")}),(0,L.jsx)(EK,{})]})]})})):c;var u},UK=({baseClassName:e=`${th}vpatches-upsell-main-page`})=>(0,L.jsx)("div",{className:e,children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{className:`${e}__feature-description`,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.upsellPage.featureDescription"})}),(0,L.jsx)(vi,{children:(0,L.jsx)(HL,{})})]})}),NK=e=>{const{loaderText:t,description:n,baseClassName:s=`${th}vpatches-upsell-waiting-page`}=e;return(0,L.jsx)("div",{className:s,children:(0,L.jsxs)("div",{className:`${s}-item`,children:[(0,L.jsx)(Qn,{loader:{type:"icons",icons:["sand-clock","dollar","shield"],size:"64"},text:t}),n&&(0,L.jsx)(da,{children:n})]})})},FK=e=>{const{showNoteForAdmin:t,baseClassName:n=`${th}vpatches-upsell-purchasingGuardianPage`}=e;return(0,L.jsx)("div",{className:n,children:(0,L.jsx)(Ni,{children:(0,L.jsxs)(vi,{children:[(0,L.jsx)(_a,{className:`${n}-description`,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.purchasingGuardianPage.cPanel.description"})}),t&&(0,L.jsx)(_a,{className:`${n}-description`,children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.purchasingGuardianPage.cPanel.noteForAdmin"})})})]})})})},BK=({uatAction:e,children:t,icon:n,onClick:s,purchaseLicenseUrl:a})=>(0,L.jsx)(Yn,{icon:n,component:"a",href:a,target:"_blank",onClick:()=>{e&&Mv(e),null==s||s()},"data-test-id":cv,children:t}),YK=Fc((e=>({isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller,publicUrl:e.app.urls.publicUrl,isVirtualPatchesLicensingForEndCustomersEnabled:e.app.options.isVirtualPatchesLicensingForEndCustomersEnabled,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,upgradePleskUrl:e.app.urls.upgradePleskUrl,purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl})))((e=>{const{installation:t,publicUrl:n,isVirtualPatchesLicensingForEndCustomersEnabled:s,showVirtualPatchesUpsellWhenRestrictedViaPlans:a,startPurchasingGuardian:i,startPurchasingSubscription:r,wordPressToolkitLiteEdition:o,upgradePleskUrl:l,purchaseDeluxeGuardianUrl:c,isAdmin:u,uatAction:d,baseClassName:p=`${th}vpatches-upsell-dialog-subscribe-button`}=e,h=cp("drawer.vpatchesSubscription.mainPage.button"),m=u||a,g=s&&!a,f=(()=>{var e;const n=o?l:c;try{const s=new URL(n,window.location.href);return(null===(e=t.domain)||void 0===e?void 0:e.name)&&s.searchParams.set("domain",t.domain.name),s.toString()}catch(e){return n}})();return m&&g?(0,L.jsx)(zn,{menu:(0,L.jsxs)(aa,{children:[(0,L.jsx)(ba,{children:h("buySubscription.menu.title")}),(0,L.jsxs)(BK,{uatAction:d,icon:(0,L.jsx)(xe,{src:`${n}images/crown.svg`}),onClick:()=>i(),purchaseLicenseUrl:f,children:[h("buySubscription.menu.bundle"),(0,L.jsxs)("ul",{className:`${p}__menu-item-ul`,children:[(0,L.jsx)("li",{children:h("buySubscription.menu.bundle.description.cpanel.1")}),(0,L.jsx)("li",{children:h("buySubscription.menu.bundle.description.cpanel.2")})]})]}),(0,L.jsxs)(Yn,{icon:"shield",onClick:()=>r(),"data-test-id":"wpt-virtual-patching-upsell-dialog-buy-subscription-item",children:[h("buySubscription.menu.single"),(0,L.jsxs)("ul",{className:`${p}__menu-item-ul`,children:[(0,L.jsx)("li",{children:h("buySubscription.menu.single.description.1")}),(0,L.jsx)("li",{children:h("buySubscription.menu.single.description.2")})]})]})]}),children:(0,L.jsx)(ut,{intent:"primary","data-test-id":jv,children:h("buySubscription")})}):!m&&g?(0,L.jsx)(ut,{intent:"primary",onClick:r,"data-test-id":jv,children:h("buySubscription")}):(0,L.jsx)(Rv,{installationId:t.id,uatAction:Gv,onClick:()=>i(),purchaseLicenseUrl:f,intent:"primary","data-test-id":jv,featureType:"virtualPatches",children:h("buySubscription")})})),HK=(Fc((e=>({purchaseWordPressToolkitUrl:e.app.urls.purchaseWordPressToolkitUrl,upgradePleskUrl:e.app.urls.upgradePleskUrl})))((({uatAction:e,upgradePleskUrl:t,purchaseWordPressToolkitUrl:n,baseClassName:s=`${th}vpatches-upsell-wptLite-page`})=>(0,L.jsxs)(Ni,{className:s,children:[(0,L.jsx)(vi,{className:`${s}-description`,children:(0,L.jsx)(da,{children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.featureDescription"})})}),(0,L.jsxs)(vi,{children:[(0,L.jsx)(_a,{children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.title"})})}),(0,L.jsxs)("ol",{children:[(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1",params:{buyWpToolkitLink:(0,L.jsx)(_e,{onClick:()=>{Mv(e),window.open(n)},children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1.buyWpToolkitLinkText"})})}),upgradePleskLicenseLink:(0,L.jsx)(_e,{onClick:()=>window.open(t),children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.1.upgradePleskLicenseLinkText"})})})}})}),(0,L.jsx)("li",{children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.wptLitePage.instruction.steps.2"})})]})]})]}))),Fc((e=>({publicUrl:e.app.urls.publicUrl,isVirtualPatchesLicensingForEndCustomersEnabled:e.app.options.isVirtualPatchesLicensingForEndCustomersEnabled,showVirtualPatchesUpsellWhenRestrictedViaPlans:e.app.options.showVirtualPatchesUpsellWhenRestrictedViaPlans,wordPressToolkitLiteEdition:e.app.options.wordPressToolkitLiteEdition,isAdmin:e.app.options.isAdmin&&!e.app.options.isReseller})),(e=>({getVirtualPatchesSubscriptionGuid:(0,Cb.zH)(__,e),getVirtualPatchesSubscriptionPurchaseUrlAndGuid:(0,Cb.zH)(k_,e),activateVirtualPatchesSubscription:(0,Cb.zH)(C_,e),detachVirtualPatchesSubscription:(0,Cb.zH)(I_,e),displayErrorMessageFromMeta:(0,Cb.zH)(Zf,e),updateVirtualPatchesProtectionStatus:(0,Cb.zH)(aw,e)})))((e=>{const{installation:t,isOpen:n,onClose:s,onOpen:a,onOpenLicenseInfoDrawer:i,publicUrl:r,isVirtualPatchesLicensingForEndCustomersEnabled:o,showVirtualPatchesUpsellWhenRestrictedViaPlans:l,uatAction:c,wordPressToolkitLiteEdition:u,activateVirtualPatchesSubscription:d,detachVirtualPatchesSubscription:p,getVirtualPatchesSubscriptionGuid:h,getVirtualPatchesSubscriptionPurchaseUrlAndGuid:m,displayErrorMessageFromMeta:g,updateVirtualPatchesProtectionStatus:f,isAdmin:b,baseClassName:v=`${th}vpatches-upsell-dialog`}=e,y=cp("drawer.vpatchesSubscription"),[S,w]=(cp("controllers.index.detail.virtualPatches"),(0,R.useState)(!1)),[x,A]=(0,R.useState)(!1),[_,k]=(0,R.useState)(!1),[j,C]=(0,R.useState)(!1),[I,T]=(0,R.useState)(null),D=o&&!l;(0,R.useEffect)((()=>{n&&(A(!1),k(!1),C(!1),T(null),w(!1))}),[n]);const P=e=>{const t=(e=>{const t=window.open("about:blank","_blank");return t&&(t.document.title=e,t.document.body.textContent=e),t})(y("loadingWindow.message"));t&&((e,t)=>{k(!0),m(e).then((n=>{if(t.closed)return void k(!1);const s=((e,t,n=1500)=>{let s,a;if(t.closed)s=Promise.resolve(),a=()=>{};else{t.location.href=e;let i=null,r=null;s=new Promise(((e,s)=>{r=s,i=window.setInterval((()=>{t.closed&&(i&&clearInterval(i),r=null,e())}),n)})),a=()=>{i&&clearInterval(i),t.closed||t.close(),r&&r()}}return{window:t,promise:s,close:a}})(n.purchaseUrl,t);s.promise.then((()=>{a(e,c,"REOPEN"),k(!1),O(e)})).catch((()=>{k(!1)}))})).catch((()=>{t.closed||t.close(),k(!1)}))})(e,t)},O=(e,t)=>{A(!0),d(e,t?t.trim():void 0).then((t=>{[Mf.Active,Mf.Suspended].includes(t.status)?((e=>{f({installationsIds:[e],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&g(e)}))})(e),A(!1),s(),i(e)):(T(t.id),A(!1),C(!0))})).catch((n=>{t&&g(n),h(e).then((({guid:e})=>{T(e)})).catch((()=>T(null))).finally((()=>{C(!0),A(!1)}))}))};return(0,L.jsx)(Wi,{isOpen:n,title:y(j?"activationPage.title":"mainPage.title"),subtitle:t?(E=t.displayTitle,y("common.subtitle",{installationName:E})):"",sideBanner:(0,L.jsx)("div",{className:`${v}-sideBannerImage`,style:{backgroundImage:`url('${r}images/virtual-patching.png')`}}),size:"xs",onClose:s,buttons:t?(e=>{return _||x||j||S?null:(0,L.jsxs)("div",{className:`${v}-buttons-container`,children:[(0,L.jsx)(YK,{installation:e,startPurchasingGuardian:()=>w(!0),startPurchasingSubscription:()=>P(e.id),uatAction:c}),D&&(t=e.id,(0,L.jsx)(ut,{onClick:()=>O(t),children:y("mainPage.button.iHaveSubscription")}))]});var t})(t):void 0,form:j?{submitButton:!1,applyButton:!1,cancelButton:{onClick:()=>C(!1),children:y("activationPage.button.back"),arrow:"backward"}}:S?{submitButton:!1,applyButton:!1,cancelButton:{children:y("purchasingGuardianPage.button.cancel")}}:void 0,cancelButton:j||S,"data-test-id":"wpt-virtual-patching-upsell-dialog",children:(0,L.jsx)("div",{className:`${v}-content`,children:t?(M=t.id,x?(0,L.jsx)(NK,{loaderText:(0,L.jsx)(da,{bold:!0,children:y("common.status.updating")})}):_?(0,L.jsx)(NK,{loaderText:(0,L.jsx)(da,{bold:!0,children:y("common.status.waitingPurchasingEnd")}),description:y("common.status.waitingPurchasingEnd.description")}):j?(0,L.jsx)(RK,{storedSubscriptionId:I,retrieveSubscriptionDataFromLicenseService:e=>O(M,e),detachSubscription:()=>(e=>{A(!0),p(e).then((()=>T(null))).catch((()=>{})).finally((()=>A(!1)))})(M)}):S?(0,L.jsx)(FK,{showNoteForAdmin:b}):(0,L.jsx)(UK,{})):void 0})});var M,E})));var VK=r(59399);const WK=({text:e,baseClassName:t=`${th}copyable-text`})=>{const[n,s]=R.useState(!1),a=R.useCallback((()=>{s(!0),setTimeout((()=>{s(!1)}),700)}),[]);return(0,L.jsxs)("span",{className:t,children:[e,(0,L.jsx)(VK.CopyToClipboard,{text:e,onCopy:a,children:(0,L.jsx)(xe,{name:"copy-indicator",className:n?"pulse":""})})]})},$K=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:a=`${th}vpatches-subscription-info-view`}=e,i=cp("drawer.vpatchesSubscription.infoPage");return(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"check-mark-circle-filled",intent:"success",size:"16"}),"data-test-id":"virtual-patching-active-subscription-item",title:(0,L.jsx)(da,{bold:!0,fontSize:"md",children:i("subscriptionInfo.status.active")}),children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.id"),"data-test-id":"virtual-patching-subscription-info-subscription-id",children:(0,L.jsx)(WK,{text:t.id})}),(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.paidAt"),children:n(t.startDate)}),(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.nextPaymentAt"),children:n(t.endDate)}),(0,L.jsx)(vi,{children:s()}),(0,L.jsx)(vi,{children:(0,L.jsx)(EK,{})})]})})},zK=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:a=`${th}vpatches-subscription-info-view`}=e,i=cp("drawer.vpatchesSubscription.infoPage");return(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"cross-mark-circle",intent:"danger",size:"16"}),title:(0,L.jsx)(da,{bold:!0,fontSize:"md",children:i("subscriptionInfo.status.cancelled")}),children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.id"),children:(0,L.jsx)(WK,{text:t.id})}),(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.cancelledAt"),children:n(t.cancellationDate)}),(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.validUntil"),children:n(t.endDate)}),(0,L.jsx)(vi,{children:s()}),(0,L.jsx)(vi,{children:(0,L.jsx)(EK,{})})]})})},qK=e=>{const{subscription:t,formatDate:n,handleDetachSubscription:s,handleBuyNewSubscription:a,baseClassName:i=`${th}vpatches-subscription-info-view`}=e,r=cp("drawer.vpatchesSubscription.infoPage"),o=(0,L.jsxs)(Ks,{className:`${i}-detach-popover`,target:(0,L.jsx)(ut,{children:r("subscriptionInfo.button.detachSubscription")}),children:[(0,L.jsx)(_a,{children:r("subscriptionInfo.removeSubscriptionConfirmationPopover.text")}),(0,L.jsx)(ut,{intent:"danger",size:"md",onClick:()=>s(),children:r("subscriptionInfo.removeSubscriptionConfirmationPopover.submitButton")})]});return(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"exclamation-mark-circle",intent:"danger",size:"16"}),title:(0,L.jsx)(da,{bold:!0,fontSize:"md",children:r("subscriptionInfo.status.terminated")}),children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{className:`${i}-item`,title:r("subscriptionInfo.id"),children:(0,L.jsx)(WK,{text:t.id})}),!!t.cancellationDate&&(0,L.jsx)(vi,{className:`${i}-item`,title:r("subscriptionInfo.cancelledAt"),children:n(t.cancellationDate)}),(0,L.jsx)(vi,{className:`${i}-item`,title:r("subscriptionInfo.terminatedAt"),children:n(t.endDate)}),(0,L.jsx)(vi,{children:(0,L.jsx)(ut,{intent:"primary",onClick:()=>a(),children:r("subscriptionInfo.button.buyNewSubscription")})}),(0,L.jsx)(vi,{children:(0,L.jsx)(EK,{})}),(0,L.jsx)(vi,{children:o})]})})},GK=(e,t,n,s,a)=>(0,L.jsx)(Wr,{icon:t,title:(0,L.jsx)(da,{bold:!0,fontSize:"md",children:(0,L.jsx)(pp,{content:n})}),children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{unsafe:!0,content:s,params:{siteName:e}})}),!!a&&(0,L.jsx)(vi,{children:a})]})}),KK=Fc((e=>({publicUrl:e.app.urls.publicUrl})))((e=>e.isProtectionStatusUpdating?GK(e.installationTitle,(0,L.jsx)(xe,{name:"reload",animation:"spin",intent:"info",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.updating","drawer.vpatchesSubscription.infoPage.protectionStatus.updating.description"):e.isProtectionEnabled?GK(e.installationTitle,(0,L.jsx)(xe,{name:"shield-filled",intent:"success",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.enabled","drawer.vpatchesSubscription.infoPage.protectionStatus.enabled.description"):GK(e.installationTitle,(0,L.jsx)(xe,{src:`${e.publicUrl}images/shield-attention.svg`,intent:"danger",size:"16"}),"drawer.vpatchesSubscription.infoPage.protectionStatus.disabled","drawer.vpatchesSubscription.infoPage.protectionStatus.disabled.description",(0,L.jsx)(ut,{disabled:!e.isProtectionAvailable,intent:"primary",onClick:e.handleEnableProtection,children:(0,L.jsx)(pp,{content:"drawer.vpatchesSubscription.infoPage.protectionStatus.disabled.button.enable"})})))),QK=e=>{const{subscription:t,formatDate:n,renderRefreshButton:s,baseClassName:a=`${th}vpatches-subscription-info-view`}=e,i=cp("drawer.vpatchesSubscription.infoPage");return(0,L.jsx)(Wr,{icon:(0,L.jsx)(xe,{name:"triangle-exclamation-mark",intent:"warning",size:"16"}),title:(0,L.jsx)(da,{bold:!0,fontSize:"md",children:i("subscriptionInfo.status.renewalFailed")}),children:(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:i("subscriptionInfo.renewalFailed.description")}),(0,L.jsx)(vi,{className:`${a}-item`,title:i("subscriptionInfo.id"),children:(0,L.jsx)(WK,{text:t.id})}),(0,L.jsx)(vi,{children:s()}),(0,L.jsx)(vi,{children:(0,L.jsx)(EK,{})})]})})},JK=e=>{const{subscription:t,protectionStatus:n,isProtectionAvailable:s,installationTitle:a,refreshSubscriptionData:i,detachSubscription:r,handleBuyNewSubscription:o,handleEnableProtection:l,isUpdating:c,isProtectionStatusUpdating:u}=e,d=cp("drawer.vpatchesSubscription.infoPage"),{languages:p}=navigator,h=e=>new Date(e).toLocaleString(p),m=()=>(0,L.jsx)(_e,{icon:"refresh",onClick:()=>i(),children:d("subscriptionInfo.button.refresh")});return c||!t?(0,L.jsx)(Qn,{}):(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(KK,{isProtectionAvailable:s,isProtectionEnabled:n,isProtectionStatusUpdating:u,installationTitle:a,handleEnableProtection:l})}),(0,L.jsx)(vi,{children:t.status===Mf.Terminated?(0,L.jsx)(qK,{subscription:t,formatDate:h,handleDetachSubscription:r,handleBuyNewSubscription:o}):t.status===Mf.Suspended?(0,L.jsx)(QK,{subscription:t,formatDate:h,renderRefreshButton:m}):t.cancellationDate?(0,L.jsx)(zK,{subscription:Object.assign(Object.assign({},t),{cancellationDate:t.cancellationDate}),formatDate:h,renderRefreshButton:m}):(0,L.jsx)($K,{subscription:t,formatDate:h,renderRefreshButton:m})})]})},XK=Fc(((e,t)=>{const{installation:n}=t;return{hasActiveTasks:null!==n&&e.vulnerabilities.virtualPatchesUpdatingStatuses.some((e=>e.installationIds.includes(n.id)))}}),(e=>({getVirtualPatchesSubscriptionInfo:(0,Cb.zH)(A_,e),activateVirtualPatchesSubscription:(0,Cb.zH)(C_,e),detachVirtualPatchesSubscription:(0,Cb.zH)(I_,e),displayErrorMessageFromMeta:(0,Cb.zH)(Zf,e),updateVirtualPatchesProtectionStatus:(0,Cb.zH)(aw,e)})))((e=>{var t,n;const{isOpen:s,onClose:a,installation:i,onOpenUpsellDialog:r,activateVirtualPatchesSubscription:o,detachVirtualPatchesSubscription:l,getVirtualPatchesSubscriptionInfo:c,displayErrorMessageFromMeta:u,updateVirtualPatchesProtectionStatus:d,hasActiveTasks:p,baseClassName:h=`${th}vpatches-subscription-drawer`}=e,m=cp("drawer.vpatchesSubscription"),[g,f]=(0,R.useState)(!1),[b,v]=(0,R.useState)(void 0),[y,S]=(0,R.useState)(!1),w=(0,R.useCallback)((e=>{f(!0),c(e).then((e=>{v(e)})).catch((e=>{u(e),a()})).finally((()=>f(!1)))}),[u,c,a]);(0,R.useEffect)((()=>{s&&(null==i?void 0:i.id)&&(x(),w(i.id))}),[s,null==i?void 0:i.id,w]);const x=()=>{f(!1),v(void 0)};return(0,L.jsx)(cr,{className:h,"data-type":"virtual-protection-subscription-info",title:m("infoPage.title"),subtitle:i?i.displayTitle:void 0,isOpen:s,onClose:a,size:"xs",children:i?(0,L.jsx)(JK,{subscription:b,installationTitle:i.displayTitle,protectionStatus:null!==(t=i.features.virtualPatches.status)&&void 0!==t&&t,isProtectionAvailable:null!==(n=i.features.virtualPatches.available)&&void 0!==n&&n,refreshSubscriptionData:()=>{return e=i.id,f(!0),void o(e,t).then((e=>v(e))).catch((e=>{a()})).finally((()=>f(!1)));var e,t},detachSubscription:()=>{return e=i.id,f(!0),void l(e).catch((()=>{})).finally((()=>{f(!1),a()}));var e},handleBuyNewSubscription:()=>{return e=i.id,a(),void r(e,Gv,"VP_SUBSCRIPTION_DRAWER");var e},handleEnableProtection:()=>{return e=i.id,S(!0),void d({installationsIds:[e],status:!0,skipBrokenInstallations:!0,skipInfectedInstallations:!0,skipUnsupportedInstallations:!0}).catch((e=>{var t;422===(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.status)&&u(e)})).finally((()=>S(!1)));var e},isUpdating:g,isProtectionStatusUpdating:y||p}):void 0})})),ZK=e=>{if(e===LM||e===MM||e===EM)return e},eQ=e=>{if(e===MM||e===EM)return e},tQ={isOpen:!1,title:"",cancelTitle:"",buttons:null,content:""},nQ={DbUser:!0,Db:!0,ActionLog:!0},sQ={isOpen:!1,installationId:null,type:null};class aQ extends R.Component{constructor(e){super(e),this.isSmartUpdatePromoVisible=()=>{const{installations:e,showSmartUpdates:t,showSmartUpdatePromo:n,isSmartUpdatePromoAvailable:s}=this.props;return!!e&&!!(t&&n&&s)&&e.some((e=>xO(e.installationType)&&e.features.updates.autoUpdatesAvailable))},this.dispatchSmartUpdatePromoUAT=()=>{this.isSmartUpdatePromoVisible()&&Mv(zv)},this.handleOnReceiveScanBackgroundTaskData=e=>{const{scanBackgroundTasksIds:t}=this.state;t.length&&t.forEach((t=>{const n=nT(t,e);n&&ZI(n)&&(this.updateWordPressLimitsData().then(),this.setState((e=>({scanBackgroundTasksIds:e.scanBackgroundTasksIds.filter((e=>e!==n.id))})),(()=>{this.props.instancesActions.scanFinished();const e=this.isSmartUpdatePromoVisible();this.props.instancesActions.getInstancesData().then((()=>{!e&&this.isSmartUpdatePromoVisible()&&Mv(zv)})).catch((()=>{}))})))}))},this.loadInstancesList=()=>{const{instancesActions:{loadInstancesList:e}}=this.props;return this.setState({isLoading:!0}),e().then((e=>{this.applyGuiState(e),this.updateItemsList()})).catch((()=>{})).finally((()=>{this.setState({isLoading:!1})}))},this.processRouteParams=e=>{var t;const n=null!=e?e:this.props.installations,{id:s,instancesIds:a,domain:i,plugins:r,themes:o,checkSecurity:l,install:c,clone:u,sync:d,update:p,logs:h,backup:m,setupAdminSettings:g,activeTab:f}=(e=>{const t={};if(!e)return t;const n=e.split("/");let s;for(let e=0;e<n.length;e++)e%2!=0?s&&(t[s]=n[e]):(s=n[e],s&&(t[s]=void 0));return t})(null===(t=this.props.match)||void 0===t?void 0:t.params.params);let b=null;s&&(b=parseInt(s));const v=new URLSearchParams(this.props.location.search);if(v.has("sort-by")||v.has("sort-order")){this.sortByField(v.get("sort-by")||void 0,v.get("sort-order")||void 0);const e=new URLSearchParams(location.search);e.delete("sort-by"),e.delete("sort-order"),this.props.history.replace({pathname:this.props.location.pathname,search:e.toString()})}if(v.has("security-risk-from")){this.props.instancesActions.setInstancesFilter(gG,[parseFloat(v.get("security-risk-from"))]);const e=new URLSearchParams(location.search);e.delete("security-risk-from"),this.props.history.replace({pathname:this.props.location.pathname,search:e.toString()})}if(v.has("vulnerability-protection")){this.props.instancesActions.setInstancesFilter(fG,"false"!==v.get("vulnerability-protection"));const e=new URLSearchParams(location.search);e.delete("vulnerability-protection"),this.props.history.replace({pathname:this.props.location.pathname,search:e.toString()})}const y=l&&a&&!b?decodeURIComponent(a).split(",").map((e=>parseInt(e))).filter((e=>!isNaN(e))):[];let S=y,w=0;if(y.length>0&&n){const e=new Set(n.map((e=>e.id)));S=y.filter((t=>e.has(t))),w=y.length-S.length}w>0&&(this.props.appActions.addErrorMessage((0,L.jsx)(pp,{content:0===S.length?"list-ui.instances.forms.instancesSecurity.allInstancesNotFound":"list-ui.instances.forms.instancesSecurity.someInstancesNotFound",params:{count:w}})),0===S.length&&l&&this.props.history.replace("/list"));const x=!!l&&!b&&S.length>0,A={showInstanceNativeAssets:!(!r&&!o||!b),checkSecurity:!!l,selectedInstancesIdsForSecuring:S,showInstancesSecurityDrawer:x,securityDrawerActiveTab:eQ(f),instancesSecurityDrawerActiveTab:ZK(f),selectedDomainNameForInstallation:i||null,forceInstall:!!c,showInstanceInstallDrawer:!(!c||!i)};this.setState(A,(()=>{b?(this.setSelectedInstanceId(b),l&&b?this.handleOpenSecurityDialog(b,"DIRECT_LINK",A.securityDrawerActiveTab):u?this.handleOpenCloneDialog(b,"DIRECT_LINK"):d?this.handleOpenSyncDialog(b,"DIRECT_LINK"):r?this.handleOpenNativeAssets(b,Up):o?this.handleOpenNativeAssets(b,Rp):p?this.handleOpenUpdatesDialog(b,"DIRECT_LINK",sS):h?this.handleOpenActionLogDrawer(b,"DIRECT_LINK"):m?this.handleOpenBackupDrawer(b,"DIRECT_LINK"):g?this.handleInitialOpenAdminSettingsDrawer(b):this.expandRow(b,!1)):x&&this.handleOpenInstancesSecurityDrawer("DIRECT_LINK",A.instancesSecurityDrawerActiveTab)}))},this.handleShowImportSiteDrawer=()=>{this.setState({isImportWordPressSiteDrawerVisible:!0})},this.handleHideImportWordPressSiteDrawer=()=>{this.setState({isImportWordPressSiteDrawerVisible:!1})},this.handleScan=e=>{this.context(`${e}-SCAN-CLICKED`),!this.checkWpLimitExceeded()&&this.props.instancesActions.scan().then((e=>{this.setState((t=>({scanBackgroundTasksIds:t.scanBackgroundTasksIds.concat(e.task.id)})))})).catch((()=>{}))},this.sortByField=(e="",t="")=>{const{cookies:n}=this.props;this.getAllowedSortFields().includes(e)&&(null==n||n.set(vG,e,{path:"/"})),["asc","desc"].includes(t)&&(null==n||n.set(yG,t,{path:"/"})),this.setState({selection:[],selectedInstancesIdsForSecuring:[],selectedInstanceId:null}),this.loadInstancesList()},this.updateItemsList=()=>{Promise.all([this.getFilterData()]).then((()=>{this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize})}))},this.filterByField=(e=null)=>{const{instancesActions:{setInstancesFilter:t},cookies:n}=this.props;this.setState({selectedInstanceId:null},(()=>{null==n||n.set(bG,e,{path:"/"}),t(e,void 0)}))},this.getAllowedSortFields=()=>{const{isOwnerColumnAvailable:e,vulnerabilityFeatureEnabled:t}=this.props,n=["title","version","displayTitle"];return e&&n.push("ownerName"),t&&n.push("securityRiskScore"),n},this.getSortDropdownMenuItems=()=>{const e=this.getCurrentSortField(),t=this.getCurrentSortOrder(),n=[];return this.getAllowedSortFields().forEach((t=>{n.push((0,L.jsx)(Yn,{icon:t===e?nO("check-mark"):void 0,onClick:()=>this.sortByField(t),children:(0,L.jsx)(pp,{content:`toolbar.sort.by.${t}`})},`toolbarSort${t}`))})),n.push((0,L.jsx)(Fn,{},"toolbarSortDivider")),n.push((0,L.jsx)(Yn,{icon:"asc"===t?nO("check-mark"):void 0,onClick:()=>this.sortByField("","asc"),children:(0,L.jsx)(pp,{content:"toolbar.sort.ascending"})},"toolbarSortAscending")),n.push((0,L.jsx)(Yn,{icon:"desc"===t?nO("check-mark"):void 0,onClick:()=>this.sortByField("","desc"),children:(0,L.jsx)(pp,{content:"toolbar.sort.descending"})},"toolbarSortDescending")),n},this.getFilterDropdownMenuItems=e=>{const t=[];return[oG,rG].forEach((n=>{t.push(this.getFilterMenuItem(n,"info",e))})),t.push((0,L.jsx)(ba,{children:(0,L.jsx)(pp,{content:"toolbar.filter.problems"})},"toolbarSortProblemsHeader")),[mG,cG,uG,dG,lG,hG].forEach((n=>{t.push(this.getFilterMenuItem(n,"danger",e))})),t.push((0,L.jsx)(Fn,{},"toolbarSortDivider")),t.push((0,L.jsx)(Yn,{onClick:()=>this.filterByField(pG),icon:"cross-mark",label:(0,L.jsx)(He,{children:e[pG]}),children:(0,L.jsx)(pp,{content:"toolbar.filter.reset"})},"toolbarFilterReset")),t},this.getFilterMenuItem=(e,t,n)=>{const{filter:s}=this.props;return(0,L.jsx)(Yn,{disabled:n[e]<=0,icon:s&&e===s?nO("check-mark"):void 0,onClick:()=>this.filterByField(e),label:(0,L.jsx)(He,{intent:t,children:n[e]}),children:(0,L.jsx)(pp,{content:`toolbar.filter.${e}`})},`toolbarFilter${e}`)},this.getCurrentSortOrder=()=>{var e;return(null===(e=this.props.cookies)||void 0===e?void 0:e.get(yG))||"asc"},this.getCurrentSortField=()=>{var e;return(null===(e=this.props.cookies)||void 0===e?void 0:e.get(vG))||"title"},this.handleOpenNativeAssets=(e,t)=>{this.setState({nativeAssets:{isOpen:!0,installationId:e,type:t}})},this.handleCloseNativeAssets=()=>{this.state.nativeAssets.isOpen&&this.state.showInstanceNativeAssets&&(this.props.history.replace("/list"),this.setState({showInstanceNativeAssets:!1})),this.setState({nativeAssets:Object.assign({},sQ)})},this.handleOpenVirtualPatchingUpsellDialog=(e,t,n)=>{"REOPEN"!==n&&this.context(`${n}-VIRTUAL_PATCHING-CLICKED`),this.setState({isVirtualPatchingUpsellDialogVisible:!0,showVirtualPatchingUpsellDialogForInstallationId:e,virtualPatchingUpsellDialogUatAction:t})},this.handleCloseVirtualPatchingUpsellDialog=()=>{this.setState({isVirtualPatchingUpsellDialogVisible:!1,virtualPatchingUpsellDialogUatAction:""})},this.handleOpenVirtualPatchingLicenseInfoDrawer=e=>{this.setState({showVirtualPatchingLicenseInfoDrawerForInstallation:e,isVirtualPatchingLicenseInfoDrawerVisible:!0})},this.handleCloseVirtualPatchingLicenseInfoDrawer=()=>{this.setState({isVirtualPatchingLicenseInfoDrawerVisible:!1})},this.handleRefresh=(e,t)=>(this.context(`${t}-REFRESH-CLICKED`),this.handleAddInstanceToDisabledInstancesSet([e]),this.props.instancesActions.refresh(e).catch((()=>{})).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet([e])}))),this.handleSwitchPhpHandler=(e,t)=>(this.handleAddInstanceToDisabledInstancesSet([e]),this.props.instancesActions.switchPhpHandler(e,t).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet([e])}))),this.handleAddInstanceToDisabledInstancesSet=e=>{const{disabledInstancesSet:t}=this.state;e.forEach((e=>t.add(e))),this.setState({disabledInstancesSet:t})},this.handleRemoveInstanceFromDisabledInstancesSet=e=>{const{disabledInstancesSet:t}=this.state;e.forEach((e=>t.delete(e))),this.setState({disabledInstancesSet:t})},this.removeInstances=e=>{const{remove:t}=this.props.instancesActions,{Db:n,DbUser:s,ActionLog:a}=this.state.removeOptions,i={removeDb:n,removeUser:s,removeActionLog:a,checkShared:e.length>1};return this.handleAddInstanceToDisabledInstancesSet(e),this.handleCloseDialog(),t(e,i).catch((()=>{})).finally((()=>{this.updateWordPressLimitsData().then(),this.handleRemoveInstanceFromDisabledInstancesSet(e),this.getFilterData(),this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize}),this.setState((t=>{const n=t.selection.filter((t=>!e.includes(t)));return{selection:n,selectedInstancesIdsForSecuring:n}})),this.removeInstancesFromExpandedRows(e),this.forgetExpandedInstanceIds(e)}))},this.handleBulkRemove=()=>{const{selection:e}=this.state,{installations:t,instancesActions:{getInstallationsRemoveConfiguration:n},appActions:{addWarningMessage:s},actionLogFeatureEnabled:a}=this.props;this.context("LST-MLT-REMOVE-CLICKED"),0!==e.length?n(e).then((e=>{const n=e.map((e=>{const n=this.getInstallationFromProps(e.id);if(!n)return{id:e.id,url:null,isPossibleToRemove:!1,hintMessage:null};const s=e.database.removingAllowed&&e.user.removingAllowed,a={id:e.id,url:`<a target='_blank' href="${n.url}">${n.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,L.jsx)(pp,{content:"remove-confirmation.hintWillRemoveSuccess",params:{site:n.displayTitle}})};if(!s){const n=e.database.sharedWithInstallationsIds,s=e.user.sharedWithInstallationsIds,i=(t||[]).filter((e=>n.includes(e.id)||s.includes(e.id)));a.hintMessage=(0,L.jsx)(pp,{content:"remove-confirmation.hintSharedInstanceError",params:{sharedInstance:i.map((e=>e.displayTitle)).join(", ")}})}return CO(n.installationType)&&(a.isPossibleToRemove=!1,a.hintMessage=(0,L.jsx)(pp,{content:"remove-confirmation.hintRemoteAgentInstanceRemoveUnsupported"})),a})),s=n.every((e=>!1===e.isPossibleToRemove)),i=n.filter((e=>e.isPossibleToRemove)).map((e=>e.id));this.setState({dialog:{isOpen:!0,title:(0,L.jsx)(pp,{content:"remove-confirmation.titleMass"}),cancelTitle:(0,L.jsx)(pp,{content:"controllers.index.detail.buttonConfirmationNo"}),content:(0,L.jsx)(NG,{title:(0,L.jsx)(pp,{content:"controllers.index.detail.massRemoveConfirmationDescription"}),installationsToRemove:n,actionLogFeatureEnabled:a,actionLogRemoveLabel:(0,L.jsx)(pp,{content:"massRemoveConfirmation.removeActionLog"}),changeRemoveOptions:this.changeRemoveOptions}),buttons:(0,L.jsx)(ut,{"data-test-id":Gb,onClick:()=>this.removeInstances(i),disabled:s,children:(0,L.jsx)(pp,{content:"controllers.index.detail.removeButton"})})}})})).catch((()=>{})):s((0,L.jsx)(pp,{content:"remove-confirmation.noItemsSelectedToast"}))},this.handleRemove=(e,t)=>{const{id:n,displayTitle:s,features:{actionLog:a}}=e,{appActions:{addWarningMessage:i},instancesActions:{getInstallationsRemoveConfiguration:r}}=this.props;this.context(`${t}-REMOVE-CLICKED`),r([n]).then((e=>{const t=e.find((e=>e.id===n));t?this.setState({dialog:{isOpen:!0,title:(0,L.jsx)(pp,{content:"remove-confirmation.titleSingle"}),cancelTitle:(0,L.jsx)(pp,{content:"remove-confirmation.buttonNo"}),content:(0,L.jsx)(iF,{changeRemoveOptions:this.changeRemoveOptions,db:t.database,dbUser:t.user,isInstanceDatabaseDeletionAllowed:t.database.removingAllowed&&t.user.removingAllowed,isDatabaseWillBeRemovedAutomatically:t.database.willBeRemovedAutomatically,installationId:n,installationTitle:s,isActionLogAvailable:a.available}),buttons:(0,L.jsx)(ut,{onClick:()=>this.removeInstances([n]),"data-test-id":Gb,children:(0,L.jsx)(pp,{content:"remove-confirmation.buttonYes"})})}}):i((0,L.jsx)(pp,{content:"remove-confirmation.error.getConfirmationDetails"}))})).catch((()=>{}))},this.changeRemoveOptions=e=>{this.setState((t=>({removeOptions:Object.assign(Object.assign({},t.removeOptions),e)})))},this.handleBulkDetach=(e,t)=>{if(this.context(`${t}-DETACH-CLICKED`),0===e.length)return void this.props.appActions.addWarningMessage((0,L.jsx)(pp,{content:"remove-confirmation.noItemsSelectedToast"}));const{installations:n}=this.props,s=(n||[]).filter((t=>e.includes(t.id))).map((e=>({id:e.id,url:`<a target='_blank' href="${e.url}">${e.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,L.jsx)(pp,{content:"detach-confirmation.hintWillDetachSuccess"})})));this.setState({dialog:{isOpen:!0,title:(0,L.jsx)(pp,{content:"controllers.index.detail.detachConfirmationTitle"}),cancelTitle:(0,L.jsx)(pp,{content:"controllers.index.detail.buttonConfirmationNo"}),content:(0,L.jsx)(NG,{installationsToRemove:s,title:(0,L.jsx)(pp,{content:"controllers.index.detail.massDetachConfirmationDescription"})}),buttons:(0,L.jsx)(ut,{onClick:()=>(this.handleAddInstanceToDisabledInstancesSet(e),this.handleCloseDialog(),this.props.instancesActions.detach(e).then((t=>(this.updateWordPressLimitsData().then(),this.getFilterData(),this.handleUpdateVisibleItems({page:this.state.currentPage,pageSize:this.state.pageSize}),this.setState((e=>{const n=e.selection.filter((e=>!t.data.detachedInstances.includes(e)));return{selection:n,selectedInstancesIdsForSecuring:n}})),this.removeInstancesFromExpandedRows(e),this.forgetExpandedInstanceIds(e),t))).finally((()=>{this.handleRemoveInstanceFromDisabledInstancesSet(e)}))),"data-test-id":Kb,children:(0,L.jsx)(pp,{content:"controllers.index.detail.detachButton"})})}})},this.handleCloseDialog=()=>{this.setState((e=>({dialog:Object.assign(Object.assign({},e.dialog),{isOpen:!1}),removeOptions:Object.assign({},nQ)})))},this.getFilterData=(e=!0)=>{const{search:t,filter:n,filterValue:s,installations:a,isMultipleSiteManagementUnpaid:i}=this.props,r={[oG]:0,[rG]:0,[lG]:0,[dG]:0,[cG]:0,[uG]:0,[hG]:0,[mG]:0},{selectedInstanceId:o}=this.state;let l,c=a;if(c){if(t){const e=t.toLowerCase(),n=$N(t).toLowerCase();c=c.filter((({displayTitle:t,path:s,title:a,domain:i,server:r})=>-1!==t.toLowerCase().indexOf(e)||-1!==$N(t).toLowerCase().indexOf(n)||-1!==s.toLowerCase().indexOf(e)||-1!==a.toLowerCase().indexOf(e)||-1!==((null==i?void 0:i.name)||"").toLowerCase().indexOf(e)||-1!==$N((null==i?void 0:i.name)||"").toLowerCase().indexOf(n)||r&&-1!==r.toLowerCase().indexOf(e)))}c=c.filter((e=>{const{features:{debug:t,maintenance:a,php:i,vulnerability:u},labels:d,status:{alive:p,infected:h}}=e,m=!1===p,g=u.available&&!!u.vulnerable,{securityRiskScore:f}=u,b=!m&&!!a.status,v=!m&&this.hasUpdates(e),y=!m&&this.hasSecurityIssues(e),S=!0===t.status,w=!0===i.eoled;if(o===e.id&&(l=e),g&&r[mG]++,m&&!h&&r[cG]++,h&&r[uG]++,b&&r[rG]++,v&&r[dG]++,y&&r[lG]++,S&&r[oG]++,w&&r[hG]++,!n||(c||[]).length<2)return!0;switch(n){case mG:return g;case cG:return m&&!h;case uG:return h;case rG:return b;case dG:return v;case lG:return y;case oG:return S;case hG:return w;case gG:if("number"!=typeof f)return!0;if(Array.isArray(s)){const[e,t]=s;return("number"!=typeof e||e<=f)&&("number"!=typeof t||f<=t)}return!1;case fG:return e.features.virtualPatches.status===s;default:return!0}})),r[pG]=(a||[]).length,l&&(c=[l,...c.filter((e=>e.id!==(null==l?void 0:l.id)))]),c=c.map((e=>Object.assign(Object.assign({},e),{disabled:i||!e.features.multipleSitesManagement.applicable}))),e?this.setState({items:c,filterCounters:r}):this.setState({filterCounters:r})}else this.setState({items:[],filterCounters:r})},this.updateWordPressLimitsData=()=>this.props.appActions.getInitialOptions(),this.setSelectedInstanceId=e=>{this.setState({selectedInstanceId:e},(()=>this.getFilterData(!0)))},this.handleSelection=e=>{this.setState({selection:e,selectedInstancesIdsForSecuring:e})},this.handleOnSelectPage=e=>{const{pageSize:t}=this.state;this.setState({isRefreshing:!0,selection:[]},(()=>this.handleUpdateVisibleItems({page:e,pageSize:t})))},this.handleSelectItemsPerPage=e=>{const{items:t,pageSize:n,currentPage:s}=this.state;"all"===e&&(e=t.length);const a=Math.floor(n*(s-1)/e)+1;this.setState({isRefreshing:!0,selection:[]},(()=>this.handleUpdateVisibleItems({page:a,pageSize:e})))},this.handleUpdateVisibleItems=({page:e,pageSize:t})=>{this.setState((n=>{const s=(e-1)*t,a=Math.min(s+t,n.items.length);return{isRefreshing:!1,pageSize:t,currentPage:e,showedItems:n.items.slice(s,a)}}))},this.handleOpenInstancesSecurityDrawer=(e,t=void 0)=>{this.context(`${e}-SECURITY-CLICKED`),this.setState({showInstancesSecurityDrawer:!0,instancesSecurityDrawerActiveTab:t})},this.handleCloseInstancesSecurityDrawer=()=>{this.state.showInstancesSecurityDrawer&&this.state.checkSecurity&&(this.props.history.replace("/list"),this.setState({selectedInstancesIdsForSecuring:[],checkSecurity:!1})),this.setState({showInstancesSecurityDrawer:!1,instancesSecurityDrawerActiveTab:void 0})},this.handleToggleInstancesUpdatesDrawer=()=>{this.state.showInstancesUpdatesDrawer||this.context("LST-MLT-UPDATES-CLICKED"),this.setState((e=>({showInstancesUpdatesDrawer:!e.showInstancesUpdatesDrawer})))},this.handleToggleInstanceInstallDrawer=e=>{!this.state.showInstanceInstallDrawer&&e&&this.context(`${e}-INSTALL-CLICKED`),this.checkWpLimitExceeded()||(this.state.showInstanceInstallDrawer&&this.state.forceInstall&&(this.props.history.replace("/list"),this.setState({selectedDomainNameForInstallation:null,forceInstall:!1})),this.setState((e=>({showInstanceInstallDrawer:!e.showInstanceInstallDrawer}))))},this.handleOpenInstallationCompletedDialog=()=>{this.setState({showInstallationCompletedDialog:!0})},this.handleCloseInstallationCompletedDialog=()=>{this.setState({showInstallationCompletedDialog:!1})},this.handleShowConnectRemoteAgentInstanceDrawer=()=>{this.context("DSH-CONNECT_VIA_PLUGIN-CLICKED"),this.setState({isConnectRemoteAgentInstanceDrawerVisible:!0})},this.handleHideConnectRemoteAgentInstanceDrawer=()=>{this.setState({isConnectRemoteAgentInstanceDrawerVisible:!1})},this.handleBeforeInstallation=()=>this.setState({isSmartUpdatePromoVisibleBeforeInstallation:this.isSmartUpdatePromoVisible()}),this.handleInstallationCompleted=e=>{this.expandRow(e),this.updateWordPressLimitsData().then((()=>this.handleOpenInstallationCompletedDialog())),!this.state.isSmartUpdatePromoVisibleBeforeInstallation&&this.isSmartUpdatePromoVisible()&&Mv(zv)},this.handleSetSelectedInstanceAnchor=e=>e&&e.scrollIntoView(!1),this.renderFileManagerListAction=e=>{const{installationType:t,features:{fileManager:{url:n}},owner:s}=e;if(!n)return null;const{goToUri:a}=this.props;let i={};if(xO(t))i={onClick:e=>gp(e,(()=>{window.open(n),this.context("LST-SGL-FILE_MANAGER-CLICKED")}))};else{const{href:e,onClick:t}=Yv({link:n,inNewWindow:!1,goToUri:a,accountUsername:s.login});i={onClick:e?t=>gp(t,(()=>{window.open(e),this.context("LST-SGL-FILE_MANAGER-CLICKED")})):e=>{null==t||t(e),this.context("LST-SGL-FILE_MANAGER-CLICKED")}}}return(0,R.createElement)(po,Object.assign({},i,{"data-test-id":mv,icon:"folder-closed",key:"filemanager",primary:!0}),(0,L.jsx)(pp,{content:"instancesList.instanceCard.fileManager"}))},this.getInstallationUrl=e=>{const{url:t}=e;return t?(0,L.jsx)(po,{component:"a","data-test-id":"instance-title-link",href:t,onClick:()=>this.context("LST-SGL-SITE_URL-CLICKED"),target:"_blank",icon:"box-diagonal-top-in",primary:!0,children:(0,L.jsx)(Xe,{title:(0,L.jsx)(pp,{content:"toolbar.openInNewTab"}),children:(0,L.jsx)(pp,{content:"instancesList.openWordpress"})})},"follow"):null},this.renderLabels=e=>{const{features:{php:t}}=e,{alive:n,infected:s,unsupported:a,multisite:i}=e.status,{baseClassName:r}=this.props,o=[];return n&&i&&o.push((0,L.jsx)(ii,{children:(0,L.jsx)(He,{intent:"info",className:`${r}-aligned`,children:(0,L.jsx)(pp,{content:"controllers.index.detail.labelMultisite"})})},"label-multisite-instance")),o.push((0,L.jsx)(ii,{children:(0,L.jsx)(PK,{installationId:e.id,tags:e.labels})},"installationLabels")),o},this.getInstallationTitle=e=>{const t=this.getInstallationFromProps(e.id);if(!t)return null;const{displayTitle:n}=t,{baseClassName:s}=this.props,a=!this.state.disabledInstancesSet.has(t.id);return(0,L.jsxs)(si,{gap:"md","data-test-id":`instance-header-${e.id}`,"data-test-name":`instance-header-${t.title}`,"data-test-row":"header",children:[(0,L.jsx)(ii,{fill:!0,children:(0,L.jsxs)(si,{gap:"xxs",style:{flexWrap:"wrap",rowGap:"8px",columnGap:"16px"},children:[(0,L.jsx)(ii,{style:{flexShrink:10},children:(0,L.jsx)(Bv,{uatAction:Kv,featureName:Gp,description:(0,L.jsx)(pp,{content:"paidFeature.multipleSitesManagementFeatureDescription"}),installationId:t.id,isInstanceFeatureDisabled:!t.features.multipleSitesManagement.applicable,className:`${s}-instance-name`,children:(0,L.jsx)("span",{"data-test-id":"instance-card-title",children:n})})}),a&&this.renderLabels(t)]})}),a&&(0,L.jsx)(ii,{style:{flexShrink:1},children:(0,L.jsx)(IK,{installation:t,onOpenUpdates:this.handleOpenUpdatesDialog,onOpenSecurity:this.handleOpenSecurityDialog,onEnableInstances:this.handleRemoveInstanceFromDisabledInstancesSet,onDisableInstances:this.handleAddInstanceToDisabledInstancesSet,onOpenSmartPhpUpdatesDrawer:e=>this.handleOpenSmartPhpUpdatesDrawer(t.id,e)})})]})},this.removeInstancesFromExpandedRows=e=>this.setState((t=>{const n=new Set;return e.forEach((e=>n.add(e))),{expandedRows:t.expandedRows.filter((e=>!n.has(e)))}})),this.expandRow=(e,t=!1)=>this.setState((n=>{const s=n.expandedRows.filter((t=>parseInt(`${t}`)!==parseInt(`${e}`)));return s.push(parseInt(`${e}`)),t&&this.props.instancesActions.keepExpandedInstanceId(e),{expandedRows:s}})),this.handleOpenSynchronizeSiteUrlDialog=e=>{this.context("LST-SGL-SYNC_URL-CLICKED"),this.expandRow(e,!0),this.setState({showSynchronizeSiteUrlDialogForInstanceId:e})},this.handleCloseSynchronizeSiteUrlDialog=()=>this.setState({showSynchronizeSiteUrlDialogForInstanceId:null}),this.handleOpenSecurityDialog=(e,t,n=void 0)=>{this.context(`${t}-SECURITY-CLICKED`),this.expandRow(e,!0),this.setState({selectedInstanceIdSecuring:e,checkSecurity:!0,securityDrawerActiveTab:n},(()=>this.getFilterData(!0)))},this.handleCloseSecurityDialog=()=>{this.state.selectedInstanceIdSecuring&&this.state.checkSecurity&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdSecuring:null,checkSecurity:!1,securityDrawerActiveTab:void 0}))},this.handleOpenCloneDialog=(e,t)=>{this.expandRow(e),this.context(`${t}-CLONE-CLICKED`),this.setState({selectedInstanceIdCloning:e,isCloneDrawerOpen:!0},(()=>this.getFilterData(!0)))},this.handleCloseCloneDrawer=()=>{this.state.selectedInstanceIdCloning&&this.state.isCloneDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdCloning:null,isCloneDrawerOpen:!1}))},this.handleOpenSyncDialog=(e,t)=>{this.expandRow(e),this.context(`${t}-SYNC-CLICKED`),this.setState({selectedInstanceIdSyncing:e,isSyncDrawerOpen:!0},(()=>this.getFilterData(!0)))},this.handleCloseSyncDrawer=()=>{this.state.selectedInstanceIdSyncing&&this.state.isSyncDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdSyncing:null,isSyncDrawerOpen:!1}))},this.handleOpenUpdatesDialog=(e,t,n=null,s=!1)=>{s?this.context(`${t}-UPDATE_SETTINGS-CLICKED`):this.context(`${t}-UPDATES-CLICKED`),this.expandRow(e,!0),this.setState({selectedInstanceIdUpdating:e,isUpdatesDrawerOpen:!s,openUpdatesType:n,isUpdateSettingsFormOpen:s},(()=>this.getFilterData(!0)))},this.handleCloseUpdatesDialog=()=>{this.state.selectedInstanceIdUpdating&&this.state.isUpdatesDrawerOpen&&(this.props.history.replace("/list"),this.setState({selectedInstanceIdUpdating:null,isUpdatesDrawerOpen:!1,openUpdatesType:null,isUpdateSettingsFormOpen:!1}))},this.handleOpenUpdatesSettingsDialog=()=>this.setState({isUpdateSettingsFormOpen:!0}),this.handleCloseUpdatesSettingsDialog=()=>this.setState({isUpdateSettingsFormOpen:!1}),this.getKebabListActions=e=>{const{id:t,installationType:n,features:{security:s,synchronizeSiteUrl:a},status:{alive:i,unsupported:r}}=e,{isSynchronizeSiteUrlEnabled:o}=this.props,l=[];return l.push((0,L.jsx)(po,{onClick:()=>this.handleOpenUpdatesDialog(t,"LST-SGL"),disabled:!i||r,children:(0,L.jsx)(pp,{content:"instancesList.instanceActions.checkUpdates"})},"checkUpdates")),s.available&&l.push((0,L.jsx)(po,{onClick:()=>this.handleOpenSecurityDialog(t,"LST-SGL"),"data-test-id":Xb,disabled:!i||r,children:(0,L.jsx)(pp,{content:"toolbar.checkSecurity"})},Xb)),o&&a.available&&l.push((0,L.jsx)(po,{onClick:()=>this.handleOpenSynchronizeSiteUrlDialog(t),"data-test-id":"instance-synchronize-site-url",children:(0,L.jsx)(pp,{content:"toolbar.synchronizeSiteUrl"})},"synchronizeSiteUrl")),l.push((0,L.jsx)(po,{onClick:()=>{this.handleBulkDetach([t],"LST-SGL")},"data-test-id":Zb,children:(0,L.jsx)(pp,{content:"toolbar.detach"})},Zb)),CO(n)||(l.push((0,L.jsx)(Fn,{},"instanceCardMenuDevider")),l.push((0,L.jsx)(po,{icon:"cross-mark",onClick:()=>this.handleRemove(e,"LST-SGL"),"data-test-id":Jb,children:(0,L.jsx)(pp,{content:"toolbar.remove"})},Jb))),l},this.renderActionLogListAction=e=>(0,L.jsx)(po,{onClick:()=>this.handleOpenActionLogDrawer(e,"LST-SGL"),icon:"list","data-test-id":"instance-link-action-log",primary:!0,children:(0,L.jsx)(pp,{content:"list.instances.linkActionLog"})},"instance-link-action-log"),this.getColumns=()=>{const{disabledInstancesSet:e}=this.state;return[{key:"title",title:(0,L.jsx)(pp,{content:"instancesList.columnTitle"}),sortable:!1,type:"title",render:this.getInstallationTitle},{key:"actions",type:"actions",render:t=>{const n=this.getInstallationFromProps(t.id);if(!n||e.has(n.id))return null;const{installationType:s,features:{fileManager:a,actionLog:i}}=n,r=[];return r.push((0,L.jsx)(po,{primary:!0,icon:void 0,children:()=>(0,L.jsx)(MK,{installation:n,onOpenVulnerabilitiesDrawer:()=>this.handleOpenSecurityDialog(n.id,"LST-SGL_VIRTUAL_PATCHING",MM),onOpenVirtualPatchesUpsell:()=>{this.handleOpenVirtualPatchingUpsellDialog(n.id,Kv,"LST-SGL_VIRTUAL_PATCHING")}})},"vulnerability-shield")),i.available&&r.push(this.renderActionLogListAction(n.id)),a.available&&a.url&&(xO(s)||wO(s))&&r.push(this.renderFileManagerListAction(n)),r.push((0,L.jsx)(po,{icon:"refresh",onClick:()=>this.handleRefresh(n.id,"LST-SGL"),"data-test-id":pv,primary:!0,children:(0,L.jsx)(pp,{content:"Card.refreshCardTooltip"})},"refresh")),r.push(this.getInstallationUrl(n)),(0,L.jsxs)(ho,{children:[r,this.getKebabListActions(n)]})}}]},this.updateKeptExpandedInstanceIds=e=>{const t=e.filter((e=>!this.state.expandedRows.includes(e)));t.length&&t.forEach((e=>this.props.instancesActions.keepExpandedInstanceId(e)));const n=this.state.expandedRows.filter((t=>!e.includes(t)));n.length&&this.forgetExpandedInstanceIds(n)},this.forgetExpandedInstanceIds=e=>{e.forEach((e=>this.props.instancesActions.forgetExpandedInstanceId(e)))},this.handleOnExpandedRowsChange=e=>{this.updateKeptExpandedInstanceIds(e),this.setState({expandedRows:e})},this.handleOpenActionLogDrawer=(e,t)=>{const{actionLogActions:{onOpenActionLogBrowser:n}}=this.props;this.context(`${t}-ACTION_LOGS-CLICKED`),n(e),this.expandRow(e,!0),this.setState({isActionLogDrawerVisible:!0,showActionLogDrawerForInstanceId:e})},this.handleCloseActionLogDrawer=()=>this.setState({isActionLogDrawerVisible:!1,showActionLogDrawerForInstanceId:null}),this.handleOpenBackupDrawer=(e,t)=>{this.context(`${t}-BACKUP-CLICKED`),this.expandRow(e,!0),this.setState({isBackupDrawerVisible:!0,showBackupDrawerForInstanceId:e})},this.handleCloseBackupDrawer=()=>this.setState({isBackupDrawerVisible:!1,showBackupDrawerForInstanceId:null}),this.handleInitialOpenAdminSettingsDrawer=e=>{this.expandRow(e,!0),this.setState({initialShowAdminSettingsDrawer:!0,showInitialShowAdminSettingsDrawerForInstanceId:e})},this.handleOpenCheckWordPressIntegrityDialog=(e,t)=>{this.context(`${t}-SITE_INTEGRITY_CHECKING-CLICKED`),this.expandRow(e,!0),this.setState({isCheckWordPressIntegrityDialogVisible:!0,showCheckWordPressIntegrityDialogForInstanceId:e})},this.handleCloseCheckWordPressIntegrityDialog=()=>this.setState({isCheckWordPressIntegrityDialogVisible:!1,showCheckWordPressIntegrityDialogForInstanceId:null}),this.renderEmptyView=()=>{const{isInstallButtonAvailable:e,search:t,filter:n}=this.props,{isLoading:s,items:a}=this.state;if(s)return(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list.instances.loading"})});if((t||n!==pG)&&0===a.length)return(0,L.jsx)(no,{title:(0,L.jsx)(pp,{content:"instancesList.emptyList.nothingFound"}),image:null});const i=[];return e&&i.push((0,L.jsx)(ut,{onClick:()=>this.handleToggleInstanceInstallDrawer("LST-EMPTY"),tooltip:(0,L.jsx)(pp,{content:"instancesList.emptyList.installButton.hint"}),intent:"primary",children:(0,L.jsx)(pp,{content:"instancesList.emptyList.installButton.title"})},"install")),i.push((0,L.jsx)(ut,{icon:"eye",onClick:()=>this.handleScan("LST-EMPTY"),tooltip:(0,L.jsx)(pp,{content:"instancesList.emptyList.scanButton.hint"}),children:(0,L.jsx)(pp,{content:"instancesList.emptyList.scanButton.title"})},"scan")),(0,L.jsx)(no,{title:(0,L.jsx)(pp,{content:"instancesList.emptyList.suggestInstall"}),actions:i})},this.handleOpenSmartPhpUpdatesDrawer=(e,t)=>{t&&this.context(`${t}-DOMAIN_PHP-CLICKED`),this.setState({isSmartPhpUpdateDrawerVisible:!0,showSmartPhpUpdateDrawerForInstanceId:e})},this.handleCloseSmartPhpUpdatesDrawer=()=>this.setState({isSmartPhpUpdateDrawerVisible:!1,showSmartPhpUpdateDrawerForInstanceId:null}),this.getLoadingRowsAsArray=()=>{const{disabledInstancesSet:e}=this.state,t=[];return e.forEach((e=>{t.push(e)})),t},this.getInstallationFromProps=e=>(this.props.installations||[]).find((t=>t.id===e))||null,this.state={selection:[],selectedInstancesIdsForSecuring:[],openUpdatesType:null,isUpdateSettingsFormOpen:!1,dialog:Object.assign({},tQ),removeOptions:Object.assign({},nQ),nativeAssets:Object.assign({},sQ),disabledInstancesSet:new Set,items:[],filterCounters:{},showedItems:[],currentPage:1,pageSize:10,selectedInstanceId:null,selectedInstanceIdCloning:null,selectedInstanceIdSyncing:null,selectedInstanceIdSecuring:null,selectedInstanceIdUpdating:null,selectedDomainNameForInstallation:null,showInstancesSecurityDrawer:!1,showInstancesUpdatesDrawer:!1,showInstanceInstallDrawer:!1,showInstallationCompletedDialog:!1,isLoading:!1,isRefreshing:!1,isCloneDrawerOpen:!1,isSyncDrawerOpen:!1,isUpdatesDrawerOpen:!1,checkSecurity:!1,forceInstall:!1,showInstanceNativeAssets:!1,isConnectRemoteAgentInstanceDrawerVisible:!1,isImportWordPressSiteDrawerVisible:!1,scanBackgroundTasksIds:[],isSmartUpdatePromoVisibleBeforeInstallation:!1,expandedRows:[],showSynchronizeSiteUrlDialogForInstanceId:null,showActionLogDrawerForInstanceId:null,isActionLogDrawerVisible:!1,showBackupDrawerForInstanceId:null,isBackupDrawerVisible:!1,initialShowAdminSettingsDrawer:!0,showInitialShowAdminSettingsDrawerForInstanceId:null,showCheckWordPressIntegrityDialogForInstanceId:null,isCheckWordPressIntegrityDialogVisible:!1,securityDrawerActiveTab:void 0,instancesSecurityDrawerActiveTab:void 0,showSmartPhpUpdateDrawerForInstanceId:null,isSmartPhpUpdateDrawerVisible:!1,isVirtualPatchingUpsellDialogVisible:!1,showVirtualPatchingUpsellDialogForInstallationId:null,virtualPatchingUpsellDialogUatAction:"",isVirtualPatchingLicenseInfoDrawerVisible:!1,showVirtualPatchingLicenseInfoDrawerForInstallation:null}}componentDidMount(){var e;const{isAdmin:t}=this.props,n=()=>{var e;1===(null===(e=this.props.installations)||void 0===e?void 0:e.length)&&this.props.installations.map((e=>this.expandRow(e.id)))},s=()=>{this.props.installations&&this.props.installations.length>1&&this.props.keptExpandedInstanceIds.length>0&&this.props.keptExpandedInstanceIds.forEach((e=>this.expandRow(e)))},a=()=>{this.props.instancesActions.checkExpiredExpandedInstanceIds((this.props.installations||[]).map((e=>e.id)))};switch(t&&this.props.installations&&jb(),null===(e=this.props.cookies)||void 0===e?void 0:e.get(vG)){case"name":this.props.cookies.set(vG,"title",{path:"/"});break;case"shortUrl":this.props.cookies.set(vG,"displayTitle",{path:"/"})}this.props.installations?(this.applyGuiState(),n(),s(),a()):this.loadInstancesList().finally((()=>{n(),s(),a()}))}componentDidUpdate(e){const{isAdmin:t,tasks:n,lastInstalledInstanceId:s}=this.props;this.handleOnReceiveScanBackgroundTaskData(n),s!==e.lastInstalledInstanceId&&s&&this.handleInstallationCompleted(s),t&&this.props.installations&&jb(),e.search===this.props.search&&e.filter===this.props.filter||(this.updateItemsList(),this.handleUpdateVisibleItems({page:1,pageSize:this.state.pageSize})),!1===e.needToUpdateInstancesList&&this.props.needToUpdateInstancesList&&(this.props.instancesActions.setIsNeedToUpdateInstancesList(!1),this.updateItemsList()),!1===e.needToUpdateInstancesFilter&&this.props.needToUpdateInstancesFilter&&(this.props.instancesActions.setIsNeedToUpdateInstancesFilter(!1),this.getFilterData(!1)),e.selectedInstanceId!==this.props.selectedInstanceId&&this.setSelectedInstanceId(this.props.selectedInstanceId),e.expandedInstanceId!==this.props.expandedInstanceId&&this.props.expandedInstanceId&&this.expandRow(this.props.expandedInstanceId)}componentWillUnmount(){const{instancesActions:{resetInstancesList:e}}=this.props;e()}applyGuiState(e){const{instancesActions:{setInstancesFilter:t},cookies:n}=this.props;t((null==n?void 0:n.get(bG))||pG,void 0),this.getFilterData(),this.processRouteParams(e),this.dispatchSmartUpdatePromoUAT()}hasUpdates(e){const{features:{updates:t}}=e;return t.amountOfPluginsWithUpdates>0||t.amountOfThemesWithUpdates>0||t.availableVersion}hasSecurityIssues(e){const{features:{security:t}}=e;return t.available&&"secureRecommended"!==t.status&&"secureFull"!==t.status}checkWpLimitExceeded(){return!!this.props.isWordPressInstancesLimitExceeded&&(this.props.appActions.addErrorMessage((0,L.jsx)(pp,{content:"common.wordPressSitesLimitExceeded"})),!0)}renderInstallToolbarGroup(){return(0,L.jsx)(Ya,{title:"",children:(0,L.jsx)(ut,{onClick:()=>this.handleToggleInstanceInstallDrawer("DSH"),tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonInstall"}),"data-test-id":"instances-toolbar-install-button",children:(0,L.jsx)(pp,{content:"list.instances.buttonInstall"})})},"toolbarInstallAction")}renderImportToolbarButton(){return(0,L.jsx)(ut,{"data-type":"import-button",onClick:this.handleShowImportSiteDrawer,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonImport"}),children:(0,L.jsx)(pp,{content:"list.instances.buttonImport"})})}renderLegacyImportToolbarButton(){return(0,L.jsx)(ut,{component:"a","data-type":"import-button",href:this.props.urls.importUrl,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonImport"}),children:(0,L.jsx)(pp,{content:"list.instances.buttonImport"})})}renderScanToolbarButton(){return(0,L.jsx)(ut,{icon:"eye","data-type":"scan-button",onClick:()=>this.handleScan("DSH"),tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonScan"}),"data-test-id":"instances-toolbar-scan-button",children:(0,L.jsx)(pp,{content:"list.instances.buttonScan"})})}renderUpdatesToolbarButton(){return(0,L.jsx)(ut,{onClick:this.handleToggleInstancesUpdatesDrawer,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonUpdates"}),"data-test-id":"instances-toolbar-update-button",icon:this.props.isUpdatesUnpaid||this.props.isUpdatesDisabled?"lock-closed":void 0,children:(0,L.jsx)(pp,{content:"list.instances.buttonUpdates"})})}renderSecurityToolbarButton(){const{isSecurityUnpaid:e,isSecurityDisabled:t,baseClassName:n}=this.props;return(0,L.jsxs)(ut,{onClick:()=>this.handleOpenInstancesSecurityDrawer("LST-MLT"),tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonSecurity"}),"data-test-id":"instances-toolbar-security-button",children:[e||t?(0,L.jsx)(xe,{name:"lock-closed",className:`${n}__security-button-icon`,size:"16"}):null,(0,L.jsx)(pp,{content:"list.instances.buttonSecurity"})]})}renderDetachToolbarButton(){const{selection:e}=this.state;return(0,L.jsx)(ut,{onClick:()=>this.handleBulkDetach(e,"LST-MLT"),icon:this.props.isDetachUnpaid?"lock-closed":void 0,disabled:this.props.isDetachUnpaid,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonDetach"}),"data-test-id":"instances-toolbar-detach-button",children:(0,L.jsx)(pp,{content:"list.instances.buttonDetach"})})}renderRemoveToolbarButton(){return(0,L.jsx)(ut,{onClick:this.handleBulkRemove,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonRemove"}),icon:this.props.isRemoveUnpaid?"lock-closed":"cross-mark",disabled:this.props.isRemoveUnpaid,"data-test-id":"instances-toolbar-remove-button",children:(0,L.jsx)(pp,{content:"list.instances.buttonRemove"})})}renderConnectRemoteAgentInstanceToolbarButton(){return this.props.isRemoteWptAgentAvailable?(0,L.jsx)(ut,{onClick:this.handleShowConnectRemoteAgentInstanceDrawer,tooltip:(0,L.jsx)(pp,{content:"list.instances.hintButtonConnectRemoteAgentInstance"}),"data-test-id":"connect-instance-open-button",children:(0,L.jsx)(pp,{content:"list.instances.buttonConnectRemoteAgentInstance"})}):null}renderSortToolbarGroup(){return(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"toolbar.sort.title"}),children:(0,L.jsx)(zn,{menu:(0,L.jsx)(aa,{children:this.getSortDropdownMenuItems()}),children:(0,L.jsx)(ut,{caret:!0,onClick:()=>this.context("LST-SORT-CLICKED"),children:(0,L.jsx)(pp,{content:"toolbar.sort.title"})})})},"toolbarSortAction")}renderFilterToolbarGroup(){const{filterCounters:e}=this.state,{filter:t}=this.props,n=(0,L.jsxs)(ut,{caret:!0,icon:(0,L.jsx)(xe,{name:this.props.filter===pG?nO("filter"):nO("filter-check-mark")}),onClick:()=>this.context("LST-FILTER-CLICKED"),children:[(0,L.jsx)(pp,{content:"toolbar.filter.title"}),t!==pG&&t?(0,L.jsxs)(L.Fragment,{children:[": ",(0,L.jsx)(pp,{content:`toolbar.filter.shortNames.${t}`})]}):""]});return(0,L.jsx)(Ya,{title:(0,L.jsx)(pp,{content:"toolbar.filter.title"}),children:(0,L.jsx)(zn,{menu:(0,L.jsx)(aa,{children:this.getFilterDropdownMenuItems(e)}),children:t!==pG&&t?(0,L.jsx)(Ve,{label:(0,L.jsx)(He,{intent:"danger",children:e[t]}),children:n}):n})},"toolbarFilterAction")}renderToolbarGroups(){const{installations:e,isInstallButtonAvailable:t}=this.props,n=null!==e&&e.length>1,s=null!==e&&e.some((e=>e.features.security.available));return[t?this.renderInstallToolbarGroup():null,(0,L.jsxs)(Ya,{title:(0,L.jsx)(ut,{caret:!0,children:(0,L.jsx)(pp,{content:"list.instances.collapsedToolbarActions"})}),children:[this.props.isSiteImportAvailable?!this.props.isWordPressInstancesLimitExceeded&&this.renderImportToolbarButton():Boolean(this.props.urls.importUrl)&&this.renderLegacyImportToolbarButton(),this.renderConnectRemoteAgentInstanceToolbarButton(),this.renderScanToolbarButton(),this.renderUpdatesToolbarButton(),s&&this.renderSecurityToolbarButton(),this.renderDetachToolbarButton(),this.renderRemoveToolbarButton()]},"collapsibleToolbarGroup"),(0,L.jsx)(Sa,{},"toolbarMainToolbarExpander"),n?this.renderFilterToolbarGroup():null,n?this.renderSortToolbarGroup():null]}renderInstancesUpdatesDrawer(){return(0,L.jsx)(NB,{title:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.drawerTitle"}),subtitle:(0,L.jsx)(pp,{content:"list-ui.instancesUpdates.drawerSubTitle"}),isOpen:this.state.showInstancesUpdatesDrawer,onClose:this.handleToggleInstancesUpdatesDrawer,"data-type":"instances-updates",children:(0,L.jsx)(RG,{selectedInstancesIds:this.state.selection})})}render(){const{dialog:e,nativeAssets:t,items:n,showedItems:s,isCloneDrawerOpen:a,isSyncDrawerOpen:i,isUpdatesDrawerOpen:r,checkSecurity:o,selectedInstanceId:l,selectedInstanceIdCloning:c,selectedInstanceIdSyncing:u,selectedInstanceIdSecuring:d,selectedInstanceIdUpdating:p,selectedDomainNameForInstallation:h,selectedInstancesIdsForSecuring:m,openUpdatesType:g,isUpdateSettingsFormOpen:f,showInstancesSecurityDrawer:b,showInstanceInstallDrawer:v,showInstallationCompletedDialog:y,selection:S,isConnectRemoteAgentInstanceDrawerVisible:w,expandedRows:x,showSynchronizeSiteUrlDialogForInstanceId:A,currentPage:_,pageSize:k,isRefreshing:j,isActionLogDrawerVisible:C,showActionLogDrawerForInstanceId:I,isBackupDrawerVisible:T,showBackupDrawerForInstanceId:D,initialShowAdminSettingsDrawer:P,showInitialShowAdminSettingsDrawerForInstanceId:O,isCheckWordPressIntegrityDialogVisible:M,showCheckWordPressIntegrityDialogForInstanceId:E,securityDrawerActiveTab:R,instancesSecurityDrawerActiveTab:U,isSmartPhpUpdateDrawerVisible:N,showSmartPhpUpdateDrawerForInstanceId:F,isVirtualPatchingUpsellDialogVisible:B,showVirtualPatchingUpsellDialogForInstallationId:Y,isVirtualPatchingLicenseInfoDrawerVisible:H,showVirtualPatchingLicenseInfoDrawerForInstallation:V}=this.state,{filter:W,baseClassName:$,installations:z}=this.props;let q=null;t.isOpen&&(q=(this.props.installations||[]).find((e=>e.id===t.installationId)));const G=n.length,K=S.length;return(0,L.jsxs)(ak,{activeTab:$_,children:[this.state.isLoading?(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"list.instances.loading"})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Ha,{children:this.renderToolbarGroups()}),(0,L.jsx)(uo,{className:$,columns:this.getColumns(),data:s,rowKey:"id",renderRowBody:e=>{const t=this.getInstallationFromProps(e.id);return t?(0,L.jsx)(eG,{installation:t,isLoading:this.state.disabledInstancesSet.has(t.id),isCloneDrawerOpen:a&&t.id===c,onOpenCloneDrawer:this.handleOpenCloneDialog,onCloseCloneDrawer:this.handleCloseCloneDrawer,isSyncDrawerOpen:i&&t.id===u,onOpenSyncDrawer:this.handleOpenSyncDialog,onCloseSyncDrawer:this.handleCloseSyncDrawer,showSecurityForm:o&&t.id===d,onOpenSecurityDialog:this.handleOpenSecurityDialog,onCloseSecurityDialog:this.handleCloseSecurityDialog,showUpdates:r&&t.id===p,openUpdatesType:g,isUpdateSettingsFormOpen:f&&t.id===p,onOpenUpdatesDialog:(e,n,s)=>this.handleOpenUpdatesDialog(t.id,e,n,s),onCloseUpdatesDialog:this.handleCloseUpdatesDialog,onOpenUpdatesSettingsDialog:this.handleOpenUpdatesSettingsDialog,onCloseUpdatesSettingsDialog:this.handleCloseUpdatesSettingsDialog,showSynchronizeSiteUrlDialog:t.id===A,onCloseSynchronizeSiteUrlDialog:this.handleCloseSynchronizeSiteUrlDialog,onDetach:()=>this.handleBulkDetach([t.id],"CRD-INOPERABLE_SITE"),onRefresh:e=>this.handleRefresh(t.id,e),onSwitchPhpHandler:(e,t)=>this.handleSwitchPhpHandler(e,t),onOpenNativeAssets:this.handleOpenNativeAssets,onEnableInstances:this.handleRemoveInstanceFromDisabledInstancesSet,onDisableInstances:this.handleAddInstanceToDisabledInstancesSet,isSelected:t.id===l,onSetSelectedInstanceAnchor:this.handleSetSelectedInstanceAnchor,isActionLogDrawerVisible:C&&t.id===I,onOpenActionLogDrawer:e=>this.handleOpenActionLogDrawer(t.id,e),onCloseActionLogDrawer:this.handleCloseActionLogDrawer,isBackupDrawerVisible:T&&t.id===D,onOpenBackupDrawer:e=>this.handleOpenBackupDrawer(t.id,e),onCloseBackupDrawer:this.handleCloseBackupDrawer,initialShowAdminSettingsDrawer:P&&t.id===O,isCheckWordPressIntegrityDialogVisible:M&&t.id===E,onOpenCheckWordPressIntegrityDialog:e=>this.handleOpenCheckWordPressIntegrityDialog(t.id,e),onCloseCheckWordPressIntegrityDialog:this.handleCloseCheckWordPressIntegrityDialog,securityDrawerActiveTab:R,isSmartPhpUpdatesDrawerOpen:N&&F===t.id,onOpenSmartPhpUpdatesDrawer:()=>this.handleOpenSmartPhpUpdatesDrawer(t.id),onCloseSmartPhpDrawer:()=>this.handleCloseSmartPhpUpdatesDrawer(),onOpenVirtualPatchingUpsellDialog:(e,n)=>this.handleOpenVirtualPatchingUpsellDialog(t.id,e,n),onOpenVirtualPatchingLicenseInfoDrawer:()=>this.handleOpenVirtualPatchingLicenseInfoDrawer(t.id)},t.id):(0,L.jsx)("span",{},`removed-${e.id}`)},expandedRows:x,onExpandedRowsChange:this.handleOnExpandedRowsChange,selection:S,onSelectionChange:this.handleSelection,emptyViewMode:"all",emptyView:this.renderEmptyView(),loadingRows:this.getLoadingRowsAsArray(),totalRows:G,pagination:(0,L.jsx)(ha,{total:Math.ceil(G/k),current:_,onSelect:this.handleOnSelectPage,itemsPerPage:k,onItemsPerPageChange:this.handleSelectItemsPerPage,itemsPerPageOptions:[10,25,50,100,"all"],"data-test-id":"pagination"}),loading:j,locale:{selectAll:(0,L.jsx)(pp,{content:"instancesList.selectAll"}),deselectAll:(0,L.jsx)(pp,{content:"instancesList.deselectAll"}),all:(0,L.jsx)(pp,{content:"instancesList.all"}),totalRows:(0,L.jsx)(pp,{content:"instancesList.totalRows",params:{totalRows:G}}),selectedRows:(0,L.jsx)(pp,{content:"instancesList.selectedRows",params:{selectedRows:(0,L.jsx)(da,{bold:!0,children:K}),totalRows:G}})}}),W!==pG&&n.length>1&&(0,L.jsx)("div",{style:{marginTop:10},children:(0,L.jsx)(ut,{onClick:()=>this.filterByField(pG),intent:"primary",children:(0,L.jsx)(pp,{content:"toolbar.filter.clearFilterButton"})})}),(0,L.jsx)(Wi,{isOpen:e.isOpen,title:e.title,buttons:e.buttons,size:"sm",onClose:this.handleCloseDialog,"data-test-id":Qb,children:e.content}),t.isOpen&&(0,L.jsx)(iG,{installation:q,type:t.type,onClose:this.handleCloseNativeAssets}),(0,L.jsx)(NM,{isOpen:b,onClose:this.handleCloseInstancesSecurityDrawer,installationsIds:m,activeTab:U,onOpenVirtualPatchingUpsellDialog:this.handleOpenVirtualPatchingUpsellDialog}),(0,L.jsx)(HK,{installation:(null==z?void 0:z.find((e=>e.id===Y)))||null,isOpen:B,onOpen:this.handleOpenVirtualPatchingUpsellDialog,onClose:this.handleCloseVirtualPatchingUpsellDialog,uatAction:this.state.virtualPatchingUpsellDialogUatAction,onOpenLicenseInfoDrawer:this.handleOpenVirtualPatchingLicenseInfoDrawer}),(0,L.jsx)(XK,{installation:(null==z?void 0:z.find((e=>e.id===V)))||null,isOpen:H,onClose:this.handleCloseVirtualPatchingLicenseInfoDrawer,onOpenUpsellDialog:this.handleOpenVirtualPatchingUpsellDialog}),this.renderInstancesUpdatesDrawer()]}),(0,L.jsx)(tK,{isOpen:v,selectedDomain:h,onClose:this.handleToggleInstanceInstallDrawer,onBeforeInstallation:this.handleBeforeInstallation}),(0,L.jsxs)(Wi,{title:(0,L.jsx)(pp,{content:"common.installation-completed.title"}),size:"sm",isOpen:y,onClose:this.handleCloseInstallationCompletedDialog,cancelTitle:(0,L.jsx)(pp,{content:"common.installation-completed.buttonNo"}),buttons:(0,L.jsx)(ut,{onClick:()=>{l&&this.handleOpenNativeAssets(l,Up),this.handleCloseInstallationCompletedDialog()},"data-test-id":"install-plugins-button",children:(0,L.jsx)(pp,{content:"common.installation-completed.buttonYes"})}),children:[(0,L.jsx)(_a,{children:(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"common.installation-completed.description"})})}),(0,L.jsx)(_a,{children:(0,L.jsx)(pp,{content:"common.installation-completed.hint"})})]}),(0,L.jsx)(mK,{isOpen:w,onClose:this.handleHideConnectRemoteAgentInstanceDrawer}),(0,L.jsx)(AK,{isOpen:this.state.isImportWordPressSiteDrawerVisible,onClose:this.handleHideImportWordPressSiteDrawer})]})}}aQ.defaultProps={installations:null,selectedInstanceId:null,expandedInstanceId:null,lastInstalledInstanceId:null,tasks:[],isSynchronizeSiteUrlEnabled:!1,actionLogFeatureEnabled:!1,baseClassName:`${th}instances-list`},aQ.contextType=Q_;const iQ=Fc((e=>{const t=e.app.unpaidFeatures[zp],n=e.app.unpaidFeatures[qp],s=e.app.unpaidFeatures[qp],a=!!e.instances.installations&&e.instances.installations.length&&!e.instances.installations.some((e=>e.features.updates.applicable)),i=e.app.unpaidFeatures[Vp],r=!!e.instances.installations&&e.instances.installations.length&&!e.instances.installations.some((e=>e.features.security.applicable)),o=e.app.unpaidFeatures[Gp];return{search:e.app.search,installations:e.instances.installations,needToUpdateInstancesList:e.instances.needToUpdateInstancesList,needToUpdateInstancesFilter:e.instances.needToUpdateInstancesFilter,filter:e.instances.filter,filterValue:e.instances.filterValue,urls:e.app.urls,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded,isInstallButtonAvailable:e.app.options.isInstallButtonAvailable,isSiteImportAvailable:e.app.options.isSiteImportAvailable,isOwnerColumnAvailable:e.app.options.isOwnerColumnAvailable,selectedInstanceId:e.instances.selectedInstanceId,expandedInstanceId:e.instances.expandedInstanceId,keptExpandedInstanceIds:e.instances.keptExpandedInstanceIds,lastInstalledInstanceId:e.instances.lastInstalledInstanceId,isRemoteWptAgentAvailable:e.app.options.isRemoteWptAgentAvailable,tasks:e.backgroundTasks.tasks,showSmartUpdatePromo:e.app.options.showSmartUpdatePromo,showSmartUpdates:e.app.options.showSmartUpdates,isSmartUpdatePromoAvailable:e.app.options.isSmartUpdatePromoAvailableForInstancesScreen,isSynchronizeSiteUrlEnabled:e.app.options.isSynchronizeSiteUrlEnabled,actionLogFeatureEnabled:e.app.options.actionLogFeature,vulnerabilityFeatureEnabled:e.app.options.vulnerabilityFeature,isUpdatesUnpaid:t,isDetachUnpaid:n,isRemoveUnpaid:s,isUpdatesDisabled:a,isSecurityUnpaid:i,isSecurityDisabled:r,isMultipleSiteManagementUnpaid:o,isAdmin:e.app.options.isAdmin}}),(e=>({instancesActions:(0,Cb.zH)({refresh:ix,switchPhpHandler:rx,setIsNeedToUpdateInstancesList:IA,setIsNeedToUpdateInstancesFilter:TA,remove:lx,detach:px,getInstancesData:Hx,scan:Tx,scanFinished:Px,resetInstancesList:LA,loadInstancesList:MA,setInstancesFilter:Jx,setInstallationLabels:QA,keepExpandedInstanceId:NA,forgetExpandedInstanceId:FA,checkExpiredExpandedInstanceIds:BA,getInstallationsRemoveConfiguration:Cx},e),actionLogActions:(0,Cb.zH)({onOpenActionLogBrowser:TH},e),appActions:(0,Cb.zH)({addWarningMessage:ib,addErrorMessage:ab,getInitialOptions:hb},e),goToUri:(t,n)=>e(mS(t,n))})))(_k(aQ)),rQ=Fc((e=>({purchaseDeluxeGuardianUrl:e.app.urls.purchaseDeluxeGuardianUrl,publicUrl:e.app.urls.publicUrl})))((({purchaseDeluxeGuardianUrl:e,publicUrl:t,onClose:n,baseClassName:s=`${th}vpatches-banner`})=>{const[a,i]=(0,R.useState)(!1);return(0,L.jsx)("div",{className:s,children:(0,L.jsx)(Aa,{title:(0,L.jsx)(Ns,{level:3,children:(0,L.jsx)(pp,{content:"banner.virtualPatches.title"})}),titleAddon:(0,L.jsx)(_e,{icon:"cross-mark",onClick:n}),image:(0,L.jsx)(xe,{src:`${t}images/virtual-patches-banner.png`,size:"192"}),children:a?(0,L.jsx)(kl,{children:(0,L.jsx)(pp,{content:"banner.virtualPatches.whatToDoNext",unsafe:!0})}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(kl,{children:(0,L.jsx)(pp,{content:"banner.virtualPatches.promo.paragraph1"})}),(0,L.jsx)(kl,{children:(0,L.jsx)(pp,{content:"banner.virtualPatches.promo.paragraph2"})}),(0,L.jsx)(kl,{children:(0,L.jsx)(ut,{intent:"primary",onClick:()=>{i(!0),window.open(e)},size:"lg",children:(0,L.jsx)(pp,{content:"banner.virtualPatches.promo.buttonBuy"})})})]})})})}));class oQ extends R.Component{constructor(){super(...arguments),this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED="alert-cpanel-cloud-linux-6-deprecated",this.ALERT_PLESK_18_0_40_DEPRECATED="alert-plesk-18-0-40-deprecated",this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE="alert-whm-virtual-patches-feature-available",this.renderWhmVirtualPatchesFeatureAvailable=()=>(0,L.jsx)(rQ,{onClose:()=>this.props.onCloseAlert(this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE)},this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE)}renderAlert(e){return e===this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED?this.renderCpanelCloudLinux6DeprecatedAlert():e===this.ALERT_PLESK_18_0_40_DEPRECATED?this.renderPlesk18040DeprecatedAlert():e===this.ALERT_WHM_VIRTUAL_PATCHES_FEATURE_AVAILABLE?this.renderWhmVirtualPatchesFeatureAvailable():null}renderCpanelCloudLinux6DeprecatedAlert(){return(0,L.jsx)(Fe,{intent:"warning",onClose:()=>this.props.onCloseAlert(this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED),children:(0,L.jsx)(pp,{content:"globalAlert.cpanelCloudLinux6Deprecated"})},this.ALERT_CPANEL_CLOUD_LINUX_6_DEPRECATED)}renderPlesk18040DeprecatedAlert(){return(0,L.jsx)(Fe,{intent:"warning",onClose:()=>this.props.onCloseAlert(this.ALERT_PLESK_18_0_40_DEPRECATED),children:(0,L.jsx)(pp,{content:"globalAlert.plesk18040Deprecated",params:{link:(0,L.jsx)("a",{href:"/admin/update/product",target:"_blank",children:(0,L.jsx)(pp,{content:"globalAlert.plesk18040Deprecated.updateLink"})})}})},this.ALERT_PLESK_18_0_40_DEPRECATED)}render(){const{globalAlerts:e}=this.props;return(0,L.jsx)("div",{"data-test-id":"global-alerts",children:e.map((e=>this.renderAlert(e)))})}}const lQ=oQ;class cQ extends R.Component{constructor(e){super(e),this.startPollingBackgroundTasks=()=>{const{tasks:e,pollBackgroundTasks:t,fetchBackgroundTask:n}=this.props},this.setApiInitialized=()=>this.setState({isApiInitialized:!0}),this.renderFlashMessages=()=>{const{flashMessages:e,closeFlashMessage:t}=this.props;if(0===e.length)return null;const n=[];return e.forEach(((e,s)=>{n.push((0,L.jsx)(Fe,{intent:e.status,onClose:e.closable?()=>t(s):void 0,children:(0,L.jsx)("span",{dangerouslySetInnerHTML:{__html:dp()(e.message)}})},e.message))})),n},this.state={isApiInitialized:!1}}componentDidMount(){const{urls:e,options:t,addErrorMessage:n,pathname:s,isWebspaceContext:a}=this.props;window.WPT_INITIAL_ROUTE_PATHNAME||(window.WPT_INITIAL_ROUTE_PATHNAME=s),Zg(e.apiUrl),ef(n);let i=null;t.hasOwnProperty("isPerformanceTestingFrontendEnabled")&&!0===t.isPerformanceTestingFrontendEnabled&&(i={endpoint:t.performanceTestingEndpoint,key:t.performanceTestingKey,type:t.performanceTestingType,initialInstancesCount:t.performanceTestingInitialInstancesCount}),tf(i),Jf(e.restApiUrl,n,a),this.setApiInitialized(),this.startPollingBackgroundTasks()}render(){const{isApiInitialized:e}=this.state,{baseClassName:t,urls:n,globalAlerts:s,closeGlobalAlert:a}=this.props;return e?(0,L.jsxs)("div",{className:t,children:[(0,L.jsx)(lQ,{globalAlerts:s,onCloseAlert:a}),(0,L.jsx)(tF,{}),this.renderFlashMessages(),(0,L.jsx)(sF,{}),(0,L.jsxs)(ru,{children:[(0,L.jsx)(iu,{path:`${n.publicUrl}public/index.php`,render:e=>(0,L.jsx)(XN,{})}),(0,L.jsx)(iu,{path:`${pj}/:params*`,render:e=>(0,L.jsx)(iQ,Object.assign({},e))}),(0,L.jsx)(iu,{path:"/servers/:params*",render:e=>(0,L.jsx)(SN,Object.assign({},e))}),(0,L.jsx)(iu,{path:"/plugins/:params*",render:e=>(0,L.jsx)(iE,Object.assign({},e))}),(0,L.jsx)(iu,{path:"/themes/:params*",render:e=>(0,L.jsx)(EE,Object.assign({},e))}),(0,L.jsx)(iu,{path:"/sets/:params*",render:e=>(0,L.jsx)(sU,Object.assign({},e))}),(0,L.jsx)(iu,{exact:!0,path:"/",render:e=>(0,L.jsx)(iQ,Object.assign({},e))}),(0,L.jsx)(iu,{path:"*",render:e=>(0,L.jsx)(ZN,{})})]})]}):(0,L.jsx)(Qn,{text:(0,L.jsx)(pp,{content:"general-ui.initializingApplication"})})}}cQ.defaultProps={globalAlerts:[],flashMessages:[],baseClassName:`${th}app-container`,isWebspaceContext:!1};const uQ=Fc((e=>({tasks:e.backgroundTasks.tasks,urls:e.app.urls,options:e.app.options,globalAlerts:e.app.globalAlerts,flashMessages:e.app.flashMessages,pathname:e.router.location.pathname,isWebspaceContext:e.app.options.isWebspaceContext})),{closeFlashMessage:mb,addErrorMessage:ab,pollBackgroundTasks:rT,fetchBackgroundTask:aT,closeGlobalAlert:gb})(ou(cQ));function dQ(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}const pQ=function(e){return function(t){return function(t){return function(n){if(n.type!==hu)return t(n);var s,a=n.payload,i=a.method,r=a.args;e[i].apply(e,function(e){if(Array.isArray(e))return dQ(e)}(s=r)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return dQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dQ(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}}}},hQ=e=>{const t={message:null,search:"",unpaidFeatures:{},flashMessages:[],cpanel:{},licenseInfo:{virtualPatches:null},options:Object.assign({},e.options),urls:{importUrl:"",debugCodexUrl:"",featuresBuyLinks:{clone:"",sync:"",secure:"",sets:"",smart_update:"",update:"",wp_toolkit:"",multiple_sites_management:"",vulnerability:""},premiumFeaturesUrl:"",purchaseDeluxeUrl:"",purchaseDeluxeGuardianUrl:"",purchaseWordPressToolkitUrl:"",upgradePleskUrl:"",defaultAssetImageUrl:"",publicUrl:"",baseUrl:"",apiUrl:"",restApiUrl:"",upgradingInstanceInstructionsUrl:"",checkWordPressIntegrityWordpressOrgUrl:"",updatePleskUrl:"",virtualPatchingCustomerPortalUrl:""},settings:{},globalAlerts:[],buildMeta:{},premiumUsers:void 0,isAuxiliaryUser:!1};return e.urls&&(t.urls=Object.assign({},e.urls)),e.unpaidFeatures&&(t.unpaidFeatures=Object.assign({},e.unpaidFeatures)),e.settings&&(t.settings=Object.assign({},e.settings)),e.buildMeta&&(t.buildMeta=Object.assign({},e.buildMeta)),e.isAuxiliaryUser&&(t.isAuxiliaryUser=e.isAuxiliaryUser),e.flashMessages&&(t.flashMessages=[...e.flashMessages]),e.globalAlerts&&(t.globalAlerts=[...e.globalAlerts]),e.licenseInfo&&(t.licenseInfo=e.licenseInfo),(e=t,n)=>{switch(n.type){case oh:{const{intent:t,message:s}=n;return Object.assign(Object.assign({},e),{message:{intent:t,message:s}})}case ch:return Object.assign(Object.assign({},e),{search:n.search});case lh:return Object.assign(Object.assign({},e),{message:null});case IC:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isRemoteWptBetaDialogVisible:!1})});case uh:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForInstancesScreen:!1})});case dh:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForUpdatesScreen:!1})});case ph:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{isSmartUpdatePromoAvailableForMultipleSitesUpdatesScreen:!1})});case hh:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),n.options),urls:Object.assign(Object.assign({},e.urls),n.urls)});case mh:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{changelog:n.changelog})});case gh:return Object.assign(Object.assign({},e),{flashMessages:e.flashMessages.filter(((e,t)=>t!==n.index))});case bh:return Object.assign(Object.assign({},e),{globalAlerts:e.globalAlerts.filter((e=>e!==n.alertId))});case pS:return Object.assign(Object.assign({},e),{cpanel:Object.assign(Object.assign({},e.cpanel),{applicationUri:n.applicationUri,accountUsername:n.accountUsername})});case hS:return Object.assign(Object.assign({},e),{cpanel:Object.assign(Object.assign({},e.cpanel),{applicationUri:null,accountUsername:null})});case fh:return Object.assign(Object.assign({},e),{premiumUsers:n.premiumUsers});case Eb:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{pluginsBlocklistFeatureSettings:Object.assign(Object.assign({},e.options.pluginsBlocklistFeatureSettings),{pluginsList:n.settings.development.pluginsBlocklist.value.split(",").map((e=>e.trim())).filter((e=>!!e))})})});case vh:return Object.assign(Object.assign({},e),{options:Object.assign(Object.assign({},e.options),{upVotedFeatures:[...e.options.upVotedFeatures,n.featureName]})});case yh:return Object.assign(Object.assign({},e),{licenseInfo:n.info});default:return e}}},mQ=e=>{var t;const n={installations:null,installationsWithScreenshotLoading:new Set,activeTabs:new Map,pluginsV2:{},themesV2:{},filter:null,filterValue:null,assetsToRemove:new Set,assetsToChangingStatus:new Set,needToUpdateInstancesList:!1,needToUpdateInstancesFilter:!1,isCheckingForUpdates:!1,needToSecure:0,selectedInstanceId:null,expandedInstanceId:null,keptExpandedInstanceIds:Object.keys(yS()).map((e=>parseInt(e))),lastInstalledInstanceId:null,domainsInstallationsIds:{}};return(null===(t=e.installations)||void 0===t?void 0:t.length)&&(n.installations=[...e.installations]),e.domainsInstallationsIds&&(n.domainsInstallationsIds=Object.assign({},e.domainsInstallationsIds)),(e=n,t)=>{switch(t.type){case Oy:{const{updates:n}=t,s=e=>e.filter((e=>null!==e.availableVersion)).length,a={},i={},r=(e.installations||[]).map((e=>{var t;const a=n.find((t=>t.id===e.id));return a?Object.assign(Object.assign({},e),{version:a.core.version,features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{applicable:a.applicable,availableVersion:a.core.availableVersion,autoUpdatesAvailable:a.autoUpdate.available,amountOfPluginsWithUpdates:s(a.plugins),amountOfThemesWithUpdates:s(a.themes),smart:Object.assign(Object.assign({},e.features.updates.smart),{status:a.smartUpdate.status,taskStatus:a.smartUpdate.taskStatus,applicable:a.smartUpdate.applicable})}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:a.vulnerable}),restorePoint:Object.assign(Object.assign({},null===(t=e.features)||void 0===t?void 0:t.restorePoint),a.core.restorePoint)})}):e}));return Object.assign(Object.assign({},e),{installations:r,pluginsV2:Object.assign(Object.assign({},e.pluginsV2),a),themesV2:Object.assign(Object.assign({},e.themesV2),i)})}case wy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{restorePoint:{available:e.features.restorePoint.available,restorePointTimestamp:null,previousVersion:null,version:null,errorMessage:null,displayTimestamp:null,fullSnapshot:null,message:null,sourceUrl:null}})})));return Object.assign(Object.assign({},e),{installations:n})}case vy:{const n=(e.installations||[]).map((e=>e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{screenshot:Object.assign({},t.screenshot)})));return Object.assign(Object.assign({},e),{installations:n})}case yy:{const n=new Set(e.installationsWithScreenshotLoading.values());return t.isScreenShotLoading?n.add(t.instanceId):n.delete(t.instanceId),Object.assign(Object.assign({},e),{installationsWithScreenshotLoading:n})}case oy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{indexing:Object.assign(Object.assign({},e.features.indexing),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case xy:return Object.assign(Object.assign({},e),{needToUpdateInstancesList:t.value});case Ay:return Object.assign(Object.assign({},e),{needToUpdateInstancesFilter:t.value});case ly:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{nginxCaching:Object.assign(Object.assign({},e.features.nginxCaching),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case cy:{const n=(e.installations||[]).map((e=>+e.id!=+t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),t.values)})})})));return Object.assign(Object.assign({},e),{installations:n})}case uy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{wpCronTakeover:Object.assign(Object.assign({},e.features.wpCronTakeover),t.values)})})));return Object.assign(Object.assign({},e),{installations:n})}case py:{const n=(e.installations||[]).map((e=>e.id!==+t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{maintenance:Object.assign(Object.assign({},e.features.maintenance),{status:t.status})})})));return Object.assign(Object.assign({},e),{needToUpdateInstancesFilter:!0,installations:n})}case Vy:{const n=(e.installations||[]).map((e=>e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{maintenance:Object.assign(Object.assign({},e.features.maintenance),{fullMode:t.value})})})));return Object.assign(Object.assign({},e),{installations:n})}case dy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{hotlinkProtection:Object.assign(Object.assign({},e.features.hotlinkProtection),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n})}case ry:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{debug:Object.assign(Object.assign({},e.features.debug),{status:t.status})})})));return Object.assign(Object.assign({},e),{installations:n,needToUpdateInstancesFilter:!0})}case gy:{const n=(e.installations||[]).map((e=>{var n;return+e.id==+t.installationId&&(null===(n=e.features.updates)||void 0===n?void 0:n.smart)?Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),{taskStatus:"started"})})})}):e}));return Object.assign(Object.assign({},e),{installations:n})}case fy:{const n=(e.installations||[]).map((e=>{var n,s;return+e.id==+t.installationId&&(null===(s=null===(n=e.features)||void 0===n?void 0:n.updates)||void 0===s?void 0:s.smart)?Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{smart:Object.assign(Object.assign({},e.features.updates.smart),{taskStatus:Pf})})})}):e}));return Object.assign(Object.assign({},e),{installations:n})}case Zv:{const n=(e.installations||[]).filter((e=>!t.installationsIds.includes(e.id)));return Object.assign(Object.assign({},e),{installations:n})}case ey:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{title:t.name})));return Object.assign(Object.assign({},e),{installations:n})}case ty:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{passwordProtection:t.values})})));return Object.assign(Object.assign({},e),{installations:n})}case AS:{const{slugs:n,installationId:s}=t;return Object.assign(Object.assign({},e),{pluginsV2:Object.assign(Object.assign({},e.pluginsV2),{[s]:e.pluginsV2[s].filter((e=>!n.includes(e.slug)))})})}case RS:{const{slugs:n,installationId:s}=t;return Object.assign(Object.assign({},e),{themesV2:Object.assign(Object.assign({},e.themesV2),{[s]:e.themesV2[s].filter((e=>!n.includes(e.slug)))})})}case _S:{const{slug:n,installationId:s,status:a}=t,{pluginsV2:i}=e,r=i[s].map((e=>e.slug===n?Object.assign(Object.assign({},e),{status:a}):e));return i[s]=[...r],Object.assign(Object.assign({},e),{pluginsV2:i})}case US:{const{slug:n,installationId:s}=t,{themesV2:a}=e,i=a[s].map((e=>Object.assign(Object.assign({},e),{status:e.slug===n})));return a[s]=[...i],Object.assign(Object.assign({},e),{themesV2:a})}case ay:{const n=new Set(e.assetsToChangingStatus.values());return n.add(yp(t)),Object.assign(Object.assign({},e),{assetsToChangingStatus:n})}case iy:{const n=new Set(e.assetsToChangingStatus.values());return n.delete(yp(t)),Object.assign(Object.assign({},e),{assetsToChangingStatus:n})}case ny:{const n=new Set(e.assetsToRemove.values());return Sp(t).forEach((e=>n.add(e))),Object.assign(Object.assign({},e),{assetsToRemove:n})}case sy:{const n=new Set(e.assetsToRemove.values());return Sp(t).forEach((e=>n.delete(e))),Object.assign(Object.assign({},e),{assetsToRemove:n})}case Xv:{const{filter:n,filterValue:s}=t;return Object.assign(Object.assign({},e),{filter:n,filterValue:s})}case _y:return Object.assign(Object.assign({},e),{installations:null,pluginsV2:{},themesV2:{}});case Cy:return Object.assign(Object.assign({},e),{selectedInstanceId:t.value});case Iy:return Object.assign(Object.assign({},e),{expandedInstanceId:t.value});case Ty:return Object.assign(Object.assign({},e),{keptExpandedInstanceIds:t.keptExpandedInstanceIds});case Dy:return Object.assign(Object.assign({},e),{lastInstalledInstanceId:t.value});case Ly:{const n=new Map(e.activeTabs.entries());return n.delete(t.installationId),n.set(t.installationId,t.activeTab),Object.assign(Object.assign({},e),{activeTabs:n})}case Ry:{const n=(e.installations||[]).map((e=>e.id!==t.id?e:Object.assign(Object.assign({},e),{labels:t.labels})));return Object.assign(Object.assign({},e),{installations:n})}case Fy:return Object.assign(Object.assign({},e),{loginToInstanceId:t.instanceId,loginUrl:t.loginUrl,loginCredentials:t.credentials,windowTarget:t.windowTarget});case By:return Object.assign(Object.assign({},e),{loginToInstanceId:null,loginUrl:null,loginCredentials:null,windowTarget:null});case kS:{const{pluginsSlugs:n,installationId:s,value:a}=t,{pluginsV2:i}=e,r=i[s].map((e=>n.includes(e.slug)?Object.assign(Object.assign({},e),{autoUpdates:a}):e));return i[s]=[...r],Object.assign(Object.assign({},e),{pluginsV2:i})}case NS:{const{themesSlugs:n,installationId:s,value:a}=t,{themesV2:i}=e,r=i[s].map((e=>n.includes(e.slug)?Object.assign(Object.assign({},e),{autoUpdates:a}):e));return i[s]=[...r],Object.assign(Object.assign({},e),{themesV2:i})}case My:{const{installations:n}=t;return Object.assign(Object.assign({},e),{installations:n})}case Ey:{const{installations:n,installationsIds:s}=t,a=new Map;n.forEach((e=>{a.set(e.id,e)}));const i=new Map;s.forEach((e=>{e=parseInt(`${e}`),a.has(e)||i.set(e,!0)}));const r=(e.installations||[]).reduce(((e,t)=>{const n=a.get(t.id);return n?(a.delete(t.id),e.push(n)):i.has(t.id)||e.push(t),e}),[]);return a.forEach((e=>{r.push(e)})),Object.assign(Object.assign({},e),{installations:r})}case jS:{const{installationId:n,data:s}=t,{pluginsV2:a}=e;return a[n]=s,Object.assign(Object.assign({},e),{pluginsV2:a})}case CS:{const{installationId:n,data:s}=t;let{pluginsV2:a}=e;const i=[...a[n]||[],s];return a=Object.assign(Object.assign({},a),{[n]:i}),Object.assign(Object.assign({},e),{pluginsV2:a})}case FS:{const{installationId:n,data:s}=t,{themesV2:a}=e;return a[n]=s,Object.assign(Object.assign({},e),{themesV2:a})}case BS:{const{installationId:n,data:s}=t;let{themesV2:a}=e;const i=[...a[n]||[],s];return a=Object.assign(Object.assign({},a),{[n]:i}),Object.assign(Object.assign({},e),{themesV2:a})}case"instances/RESET_ASSETS_CACHE_FOR_INSTALLATIONS":{const n={},s={},a=t.installationsIds.map((e=>`${e}`));return Object.keys(e.pluginsV2).forEach((t=>{a.includes(t)||(n[t]=e.pluginsV2[t])})),Object.keys(e.themesV2).forEach((t=>{a.includes(t)||(s[t]=e.themesV2[t])})),Object.assign(Object.assign({},e),{pluginsV2:n,themesV2:s})}case Wy:{const n=(e.installations||[]).map((e=>{if(void 0===t.vulnerabilityStatuses[e.id])return e;const n=t.vulnerabilityStatuses[e.id];return Object.assign(Object.assign({},e),{version:n.version,features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},e.features.updates),{availableVersion:n.availableVersion,amountOfPluginsWithUpdates:n.amountOfPluginsWithUpdates,amountOfThemesWithUpdates:n.amountOfThemesWithUpdates}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:n.vulnerable,highestActiveVulnerabilityRiskRank:n.highestActiveVulnerabilityRiskRank})})})}));return Object.assign(Object.assign({},e),{installations:n})}case $y:{const n=(e.installations||[]).map((e=>{var n;const s=null===(n=t.installationsSecurityRiskStatuses.find((t=>t.id===e.id)))||void 0===n?void 0:n.securityRisk.normalized;return void 0===s?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{securityRiskScore:s})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Qy:{const n=(e.installations||[]).map((e=>{var n,s;return e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{updates:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.updates),{php:Object.assign(Object.assign({},null===(s=e.features)||void 0===s?void 0:s.updates.php),{taskStatus:t.taskStatus})})})})}));return Object.assign(Object.assign({},e),{installations:n})}case IS:{const{pluginsV2:n}=e,s=Object.keys(n);return Object.keys(t.pluginsVulnerabilityStatuses).forEach((e=>{if(s.includes(e)){const s=t.pluginsVulnerabilityStatuses[e],a=Object.keys(s),i=n[e].map((e=>a.includes(e.slug)?Object.assign(Object.assign({},e),{vulnerable:s[e.slug].vulnerable,version:s[e.slug].version,availableVersion:s[e.slug].availableVersion}):e));n[e]=[...i]}})),Object.assign(Object.assign({},e),{pluginsV2:n})}case YS:{const{themesV2:n}=e,s=Object.keys(n);return Object.keys(t.themesVulnerabilityStatuses).forEach((e=>{if(s.includes(e)){const s=t.themesVulnerabilityStatuses[e],a=Object.keys(s),i=n[e].map((e=>a.includes(e.slug)?Object.assign(Object.assign({},e),{vulnerable:s[e.slug].vulnerable,version:s[e.slug].version,availableVersion:s[e.slug].availableVersion}):e));n[e]=[...i]}})),Object.assign(Object.assign({},e),{themesV2:n})}case Hy:{const n=(e.installations||[]).map((e=>{var n;return e.id!==t.instanceId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{credentials:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.credentials),{available:t.hasAdminCredentials})})})}));return Object.assign(Object.assign({},e),{installations:n})}case MP:{let n=!1;const s=(e.installations||[]).map((e=>{const s=t.installationSecurityStatuses.find((t=>+t.id==+e.id));return s?(n=!0,Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{security:Object.assign(Object.assign({},e.features.security),{status:s.securityStatus}),vulnerability:Object.assign(Object.assign({},e.features.vulnerability),{vulnerable:s.vulnerable})})})):e}));return n?Object.assign(Object.assign({},e),{installations:s}):e}case Gy:{const n=(e.installations||[]).map((e=>{var n,s,a,i,r;return e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{php:Object.assign(Object.assign({},null===(n=e.features)||void 0===n?void 0:n.php),{handler:Object.assign(Object.assign({},null===(a=null===(s=e.features)||void 0===s?void 0:s.php)||void 0===a?void 0:a.handler),t.phpHandler),eoled:null!==(i=t.phpHandler.eoled)&&void 0!==i?i:null===(r=e.features)||void 0===r?void 0:r.php.eoled})})})}));return Object.assign(Object.assign({},e),{installations:n})}case Jy:{const n=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{integrity:Object.assign(Object.assign({},e.features.integrity),{available:t.available})})})));return Object.assign(Object.assign({},e),{installations:n})}case Xy:{const{domainsInstallationsIds:n}=e,{domainId:s,installationId:a}=t;return n.hasOwnProperty(s)||(n[s]=[]),n[s]=[...new Set([...n[s],a])],Object.assign(Object.assign({},e),{domainsInstallationsIds:n})}case Zy:{let n=null;t.subscriptionInfo&&(n={status:t.subscriptionInfo.status});const s=(e.installations||[]).map((e=>e.id!==t.installationId?e:Object.assign(Object.assign({},e),{features:Object.assign(Object.assign({},e.features),{virtualPatches:Object.assign(Object.assign({},e.features.virtualPatches),{subscription:n})})})));return Object.assign(Object.assign({},e),{installations:s})}default:return e}}};let gQ={smartUpdateResults:{},instanceLink:null,instanceId:null,instanceUrl:null};const fQ=e=>(e.smartUpdateResultsPublic&&(gQ=Object.assign({},e.smartUpdateResultsPublic)),(e=gQ,t)=>e),bQ=e=>{const t={installingAssets:new Set};return(e=t,n)=>{switch(n.type){case VC:return e;case WC:{const t=new Set(e.installingAssets.values());return Sp(n).forEach((e=>t.add(e))),Object.assign(Object.assign({},e),{installingAssets:t})}case $C:{const t=new Set(e.installingAssets.values());return t.delete(yp(n)),Object.assign(Object.assign({},e),{installingAssets:t})}default:return e}}},vQ=e=>{const t={list:null,instances:null,sets:null};return void 0!==e.plugins&&(t.list=[...e.plugins.list],t.instances=[...e.plugins.instances],e.plugins.sets?t.sets=[...e.plugins.sets]:t.sets=[]),(e=t,n)=>{switch(n.type){case jk:return Object.assign(Object.assign({},e),{list:null,instances:null,sets:null});case kk:return Object.assign(Object.assign({},e),{list:n.plugins,instances:n.instances,sets:n.sets});default:return((e,t)=>{if(null===e.list)return e;if(t.type===Ck){let n=e.list.filter((e=>!fF(t.pluginsToUpdate,e)));return n=[...t.newPluginsData,...n],Object.assign(Object.assign({},e),{list:n})}return e})(e,n)}}},yQ=e=>{const t={list:null,instances:null,sets:null};return void 0!==e.themes&&(t.list=[...e.themes.list],t.instances=[...e.themes.instances],e.themes.sets?t.sets=[...e.themes.sets]:t.sets=[]),(e=t,n)=>{switch(n.type){case KC:return Object.assign(Object.assign({},e),{list:null,instances:null,sets:null});case GC:return Object.assign(Object.assign({},e),{list:n.themes,instances:n.instances,sets:n.sets});default:return((e,t)=>{if(null===e.list)return e;if(t.type===QC){const n=t.newThemesData.map((e=>e.instances.filter((({isAssetActive:e})=>e)).map((({id:e})=>e)))).flat();let s=e.list.filter((e=>!fF(t.themesToUpdate,e))).map((e=>(e.instances=e.instances.map((e=>(n.includes(e.id)&&(e.isAssetActive=!1),e))),e)));return s=[...t.newThemesData,...s],Object.assign(Object.assign({},e),{list:s})}return e})(e,n)}}},SQ=e=>{const t={list:null,remoteInstancesLog:{}};return void 0!==e.servers&&(t.list=[...e.servers.list]),(e=t,n)=>{switch(n.type){case xC:return Object.assign(Object.assign({},e),{list:(e.list||[]).concat(n.server)});case AC:return Object.assign(Object.assign({},e),{list:(e.list||[]).map((e=>e.id===n.server.id?n.server:e))});case jC:return Object.assign(Object.assign({},e),{list:(e.list||[]).map((e=>n.scanningServers.includes(e.id)?Object.assign(Object.assign({},e),{isScanning:!0}):e))});case"servers/SCAN_SERVERS":return e;case kC:{const t=(e.list||[]).map((e=>n.updatedServers.find((t=>t.id===e.id))||e));return Object.assign(Object.assign({},e),{list:t})}case CC:return Object.assign(Object.assign({},e),{list:n.servers});case TC:return Object.assign(Object.assign({},e),{list:null});case DC:{const t=(e.list||[]).filter((e=>!n.serverIds.includes(e.id)));return Object.assign(Object.assign({},e),{list:t})}case LC:return Object.assign(Object.assign({},e),{remoteInstancesLog:Object.assign(Object.assign({},e.remoteInstancesLog),{[n.serverId]:n.remoteInstancesLog})});case MC:return Object.assign(Object.assign({},e),{remoteInstancesLog:Object.assign(Object.assign({},e.remoteInstancesLog),{[n.serverId]:null})});default:return e}}},wQ=e=>{const t={list:{}};return(e=t,n)=>{switch(n.type){case"longTask/UPDATE_LONG_TASK_DATA":if(n.longTaskData){const t=n.longTaskData.id;if(t){const s=Object.assign({},e.list);return s[t]=n.longTaskData,Object.assign(Object.assign({},e),{list:s})}}return e;case"longTask/DELETE_LONG_TASK_DATA":if(n.longTaskId&&e.list[n.longTaskId]){const t=Object.assign({},e.list);return delete t[n.longTaskId],Object.assign(Object.assign({},e),{list:t})}return e;default:return e}}},xQ=e=>{const t={list:[],limits:{backupsLimit:0,backupsCount:0,backupsLimitExceeded:!1}};return(e=t,n)=>{switch(n.type){case sI:return n.backups?Object.assign(Object.assign({},e),{list:n.backups,limits:void 0===n.limits?t.limits:Object.assign(Object.assign({},n.limits),{backupsLimitExceeded:null!==n.limits.backupsLimit&&n.limits.backupsLimit-n.limits.backupsCount<=0})}):e;case aI:{const t=e.list.filter((e=>!n.fileNames.includes(e.fileName)));return Object.assign(Object.assign({},e),{list:t})}default:return e}}},AQ=e=>{const t={status:Qp,drawerIsOpen:!1,messages:null,formErrors:null,settings:null};return(e=t,n)=>{switch(n.type){case Tb:return Object.assign(Object.assign({},e),{drawerIsOpen:!0});case Db:return Object.assign(Object.assign({},e),{drawerIsOpen:!1,messages:null,formErrors:null});case Pb:return Object.assign(Object.assign({},e),{status:Jp,messages:null});case Ob:return Object.assign(Object.assign({},e),{status:"loaded",messages:n.messages,settings:n.settings});case Lb:return Object.assign(Object.assign({},e),{status:Zp,messages:n.messages});case Mb:return Object.assign(Object.assign({},e),{status:Xp,messages:null,formErrors:null});case Eb:return Object.assign(Object.assign({},e),{status:eh,settings:n.settings,messages:n.messages});case Rb:return Object.assign(Object.assign({},e),{status:"update_error",messages:n.messages,formErrors:n.formErrors});default:return e}}},_Q={[jw]:[(e,t)=>{e.publicParams&&e.publicParams.installedThemes&&t(uE(e.publicParams.installedThemes.map((e=>({name:e.name}))),(()=>t(mE()))))}],[Cw]:[(e,t)=>{e.publicParams&&e.publicParams.uninstalledThemes&&t(uE(e.publicParams.uninstalledThemes.map((e=>({name:e.name,version:e.version}))),(()=>t(xE()))))}],[Iw]:[(e,t)=>{e.publicParams&&e.publicParams.updatedThemes&&t(uE(e.publicParams.updatedThemes.map((e=>({name:e.name}))),(()=>t(IE()))))}],[Tw]:[(e,t)=>{t(oE()).finally((()=>t(PE())))}],[Dw]:[(e,t)=>{t(oE()).finally((()=>t(kE())))}],[Pw]:[(e,t)=>{e.publicParams&&e.publicParams.installedPlugins&&t(Fk(e.publicParams.installedPlugins.map((e=>({name:e.name}))),(()=>t(Vk()))))}],[Ow]:[(e,t)=>{e.publicParams&&e.publicParams.uninstalledPlugins&&t(Fk(e.publicParams.uninstalledPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(sj()))))}],[Lw]:[(e,t)=>{e.publicParams&&e.publicParams.updatedPlugins&&t(Fk(e.publicParams.updatedPlugins.map((e=>({name:e.name}))),(()=>t(cj()))))}],[Mw]:[(e,t)=>{e.publicParams&&e.publicParams.activatedPlugins&&t(Fk(e.publicParams.activatedPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(Jk()))))}],[Ew]:[(e,t)=>{e.publicParams&&e.publicParams.deactivatedPlugins&&t(Fk(e.publicParams.deactivatedPlugins.map((e=>({name:e.name,version:e.version}))),(()=>t(ej()))))}],[Rw]:[(e,t)=>{t(Rk()).finally((()=>t(rj())))}],[Uw]:[(e,t)=>{e.publicParams&&e.publicParams.pluginName&&e.publicParams.pluginVersion&&t(Fk([{name:e.publicParams.pluginName}],(()=>t(qk()))))}],[Nw]:[(e,t)=>{e.publicParams&&e.publicParams.themeName&&e.publicParams.themeVersion&&t(oE()).finally((()=>t(vE())))}],[Fw]:[(e,t)=>{if(e.publicParams){const{installationId:n,domainId:s}=e.publicParams;eT(e)&&n&&t(Hx({instancesIds:[n]})).then((()=>{t(EA(n)),t(YA(n)),t(IA(!0))})).catch((()=>{})),e.publicParams.installSetTaskInfo&&t(OA(e.publicParams.installSetTaskInfo)),n&&s&&t(UA(s,n))}}],[Bw]:[(e,t)=>{if(e.publicParams){const{instanceId:n}=e.publicParams;eT(e)&&n&&t(Hx({instancesIds:[n]})).catch((()=>{})).finally((()=>t(n_())))}}],[Yw]:[(e,t)=>{eT(e)&&t(HR())}],[Hw]:[(e,t)=>{if(e.publicParams){const{sourceInstallationId:n,targetInstallationId:s,refreshTargetInstallationInUi:a,targetDomainId:i}=e.publicParams;eT(e)&&(s&&(t(EA(s)),t(RA(s))),a&&s?t(Hx({instancesIds:[s]})).catch((()=>{})).finally((()=>{n&&t(bq(n))})):n&&t(bq(n)),i&&s&&t(UA(i,s)),t(hb())),tT(e)&&n&&t(bq(n))}}],[Vw]:[(e,t)=>{eT(e)&&(t((e=>e({type:"checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_FINISHED"}))),e.publicParams.installationId&&t(ix(e.publicParams.installationId)).catch((()=>{}))),tT(e)&&t((e=>e({type:"checkWordPressIntegrity/INSTANCE_CORE_REINSTALLATION_FINISHED_WITH_ERRORS"})))}],[Ww]:[(e,t)=>{if(eT(e)){if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n=[]}=e.publicParams;n.length>0&&t(Lx(n)).catch((()=>{}))}t(HA())}if(tT(e)){if(e.publicParams&&e.publicParams.currentlyUpdatingInstallationId){const{currentlyUpdatingInstallationId:n}=e.publicParams;n&&t(Lx([n])).catch((()=>{}))}t(VA())}}],[Kw]:[(e,t)=>{if(eT(e)){if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n=[]}=e.publicParams;n.length>0&&t(Lx(n)).catch((()=>{}))}t(HA())}if(tT(e)){if(e.publicParams&&e.publicParams.currentlyUpdatingInstallationId){const{currentlyUpdatingInstallationId:n}=e.publicParams;n&&t(Lx([n])).catch((()=>{}))}t(VA())}}],[$w]:[(e,t)=>{if(e.publicParams&&e.publicParams.successfullyUpdatedInstallationsIds){const{successfullyUpdatedInstallationsIds:n}=e.publicParams;t(Lx(n)).catch((()=>{}))}eT(e)&&t(WA()),tT(e)&&t($A())}],[qw]:[(e,t)=>{var n;if(eT(e))if(null===(n=e.publicParams)||void 0===n?void 0:n.processedInstallationsIds){const{processedInstallationsIds:n}=e.publicParams;t(ew(n)).catch((()=>{})).finally((()=>t({type:zy,task:e}))),t(nw(n)).catch((()=>{}))}else t({type:zy,task:e})}],[Gw]:[(e,t)=>{var n;if(null===(n=e.publicParams)||void 0===n?void 0:n.installationsIds){const{installationsIds:n}=e.publicParams;t(Lx(n)).catch((()=>{}))}eT(e)&&t(zA()),tT(e)&&t(qA())}],[Qw]:[(e,t)=>{var n;if(null===(n=e.publicParams)||void 0===n?void 0:n.installationsIds){const{installationsIds:n}=e.publicParams;t(ew(n)).catch((()=>{})).finally((()=>t({type:OS,task:e}))),t(nw(n)).catch((()=>{}))}else t({type:OS,task:e})}],[Jw]:[(e,t)=>{const n=e.publicParams.processedInstallationsIds;eT(e)&&n?(t(Hx({instancesIds:n})).catch((()=>{})).finally((()=>{t({type:MS,task:e})})),t(ew(n)).catch((()=>{})),t(nw(n)).catch((()=>{}))):ZI(e)&&t({type:MS,task:e})}],[Xw]:[(e,t)=>{const n=e.publicParams.processedInstallationsIds;eT(e)&&n?(t(Hx({instancesIds:n})).catch((()=>{})).finally((()=>{t({type:MS,task:e})})),t(ew(n)).catch((()=>{})),t(nw(n)).catch((()=>{}))):ZI(e)&&t({type:MS,task:e})}],[zw]:[(e,t)=>{f_(e.publicParams.installationId,e)(t)}],[Zw]:[(e,t)=>{if(ZI(e)){const{processedInstallationsIds:n}=e.publicParams;n&&t(Hx({instancesIds:n})).catch((()=>{})).finally((()=>t(HF(n))))}}],[ex]:[(e,t)=>{if(!ZI(e))return;const{successfullyProcessedInstallationsIds:n=[],failedToProcessInstallationsIds:s=[]}=e.publicParams,a=[...n,...s];0!==a.length&&(a.forEach((e=>{n.includes(e)&&t(uw(e,[xh])),t(lw(e,[xh]))})),t(Hx({instancesIds:a})).catch((()=>{})).finally((()=>t(WF(a)))))}],[tx]:[(e,t)=>{const{installationId:n}=e.publicParams;eT(e)&&n&&t(Hx({instancesIds:[n]})).then((()=>{t(EA(n)),t(RA(n)),t(IA(!0))})).catch((()=>{})).finally((()=>{t(fK())}))}]},kQ=e=>{const t={list:null,instances:null};return void 0!==e.sets&&(t.list=[...e.sets.list],t.instances=[],e.sets.instances&&e.sets.instances.length?t.instances=[...e.sets.instances]:e.instances&&e.instances.list&&e.instances.list.length&&(t.instances=e.instances.list.map((e=>({id:e.id,name:e.name,url:e.url}))))),(e=t,n)=>{switch(n.type){case UE:return Object.assign(Object.assign({},e),{list:null,instances:null});case RE:return Object.assign(Object.assign({},e),{list:n.sets,instances:n.instances});default:return((e,t)=>{if(null===e.list)return e;switch(t.type){case NE:return Object.assign(Object.assign({},e),{list:[t.addedSet,...e.list]});case FE:return Object.assign(Object.assign({},e),{list:e.list.filter((e=>!kp(t.removedSetIds,e.id)))});case BE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{name:t.newName}):e))});case YE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{isProcessing:!0}):e))}):e))});case HE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{active:t.active,isProcessing:!1}):e))}):e))});case VE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{isProcessing:!0}):e))}):e))});case WE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.map((e=>e.id===t.assetId?Object.assign(Object.assign({},e),{active:t.active,isProcessing:!1}):Object.assign(Object.assign({},e),{active:!1})))}):e))});case $E:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[...e.plugins,...t.plugins.map((e=>Object.assign(Object.assign({},e),{active:!0})))]}):e))});case zE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[...e.themes,...t.themes]}):e))});case KE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:e.plugins.filter((e=>e.id.toString()!==t.pluginId.toString()))}):e))});case QE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:e.themes.filter((e=>e.id.toString()!==t.themeId.toString()))}):e))});case qE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[...e.plugins,{id:t.pluginId,name:t.pluginName,title:t.pluginTitle,isUploaded:!0}]}):e))});case GE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[...e.themes,{id:t.themeId,name:t.themeName,title:t.themeTitle,isUploaded:!0}]}):e))});case JE:return Object.assign(Object.assign({},e),{list:e.list.filter((e=>e.id.toString()!==t.setId.toString()))});case XE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{plugins:[]}):e))});case ZE:return Object.assign(Object.assign({},e),{list:e.list.map((e=>e.id.toString()===t.setId.toString()?Object.assign(Object.assign({},e),{themes:[]}):e))});default:return e}})(e,n)}}},jQ=()=>e=>t=>(window.__wpToolkitAutotestsLastActions=window.__wpToolkitAutotestsLastActions||[],window.__wpToolkitAutotestsLastActions=window.__wpToolkitAutotestsLastActions.slice(-50),(e=>"object"==typeof e&&null!==e&&"type"in e)(t)&&window.__wpToolkitAutotestsLastActions.push(t.type),e(t)),CQ=e=>{const t=[];return(e=t,n)=>{switch(n.type){case oS:{const{updates:t}=n,s=e=>Object.assign(Object.assign({},e),{core:null===e.core.availableVersion?{}:e.core,plugins:e.plugins.filter((e=>null!==e.availableVersion)),themes:e.themes.filter((e=>null!==e.availableVersion))}),a=[];return e.forEach((e=>{const n=t.find((t=>t.id===e.id));n?a.push(s(n)):a.push(e)})),t.forEach((t=>{e.some((e=>e.id===t.id))||a.push(s(t))})),[...a]}case lS:return[];case cy:return[...e.map((e=>+e.id==+n.instanceId?Object.assign(Object.assign({},e),{smartUpdate:Object.assign(Object.assign({},e.smartUpdate),n.values)}):e))];case fy:return[...e.map((e=>+e.id==+n.installationId?Object.assign(Object.assign({},e),{smartUpdate:Object.assign(Object.assign({},e.smartUpdate),{taskStatus:Pf})}):e))];case my:return[...e.map((e=>{const t=n.settings.find((t=>t.id===e.id));return t?Object.assign(Object.assign({},e),{autoUpdate:Object.assign(Object.assign({},e.autoUpdate),t)}):e}))];default:return e}}};const IQ=e=>e.map((e=>{var t,n,s;const{resolveApplicable:a,checkApplicable:i,revertApplicable:r,tasks:o}=e,l=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["resolveApplicable","checkApplicable","revertApplicable","tasks"]);return Object.assign(Object.assign({},l),{resolveAndRevertAvailable:a&&r,checkSecurityTaskId:null===(t=o.check)||void 0===t?void 0:t.id,resolveSecurityTaskId:null===(n=o.resolve)||void 0===n?void 0:n.id,revertSecurityTaskId:null===(s=o.revert)||void 0===s?void 0:s.id})})),TQ=e=>{const t={securityMeasures:[],isLoadingSecurityMeasuresList:!1,securityMeasuresInstallationStatuses:[],pendingCheckIds:[]};return(e=t,n)=>{switch(n.type){case uI:return Object.assign(Object.assign({},e),{isLoadingSecurityMeasuresList:n.isLoading});case dI:return Object.assign(Object.assign({},e),{isLoadingSecurityMeasuresList:!1,securityMeasures:n.securityMeasures});case pI:{if(!n.securityMeasuresInstallationStatuses)return e;const t=IQ(n.securityMeasuresInstallationStatuses),s=[],a=e.securityMeasuresInstallationStatuses.map((e=>{const n=t.find((t=>t.id===e.id));return n?(s.push(n.id),n):e}));return t.forEach((e=>{s.includes(e.id)||a.push(e)})),Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:a})}case hI:{if(!n.securityMeasuresInstallationStatuses)return e;const t=IQ(n.securityMeasuresInstallationStatuses),s=[],a=e.securityMeasuresInstallationStatuses.map((e=>{const n=t.find((t=>t.id===e.id));return n?(s.push(n.id),n):e}));return t.forEach((e=>{s.includes(e.id)||a.push(e)})),Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:a})}case mI:return Object.assign(Object.assign({},e),{pendingCheckIds:n.isPending?[...e.pendingCheckIds,...n.installationsIds.filter((t=>!e.pendingCheckIds.includes(t)))]:e.pendingCheckIds.filter((e=>!n.installationsIds.includes(e)))});case gI:return n.installationsIds?Object.assign(Object.assign({},e),{pendingCheckIds:e.pendingCheckIds.filter((e=>{var t;return!(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e))})),securityMeasuresInstallationStatuses:e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{checkSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}))}):e;case fI:{if(!n.installationsIds)return e;const t=e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{resolveSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}));return Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:t})}case bI:{if(!n.installationsIds)return e;const t=e.securityMeasuresInstallationStatuses.map((e=>{var t,s;return(null===(t=n.installationsIds)||void 0===t?void 0:t.includes(e.id))?Object.assign(Object.assign({},e),{revertSecurityTaskId:null===(s=n.task)||void 0===s?void 0:s.id}):e}));return Object.assign(Object.assign({},e),{securityMeasuresInstallationStatuses:t})}default:return e}}},DQ=e=>{const t={installationsVulnerabilityStatuses:[],runningCheckVulnerabilitiesTasks:[],vulnerabilityMitigationsUpdatingStatuses:[],virtualPatchesUpdatingStatuses:[],installationsSecurityRiskStatuses:[]};return(e=t,n)=>{switch(n.type){case TS:return n.installationsVulnerabilityStatuses?Object.assign(Object.assign({},e),{installationsVulnerabilityStatuses:n.installationsVulnerabilityStatuses}):e;case DS:{if(!n.installationsVulnerabilityStatuses)return e;const t=[],s=void 0===e.installationsVulnerabilityStatuses?n.installationsVulnerabilityStatuses.map((e=>(t.push(e.id),e))):e.installationsVulnerabilityStatuses.map((e=>{const s=n.installationsVulnerabilityStatuses.find((t=>t.id===e.id));return s?(t.push(s.id),s):e}));return n.installationsVulnerabilityStatuses.forEach((e=>{t.includes(e.id)||s.push(e)})),Object.assign(Object.assign({},e),{installationsVulnerabilityStatuses:s})}case PS:{const t=[...e.vulnerabilityMitigationsUpdatingStatuses];return n.vulnerabilities.forEach((e=>{t.push({vulnerabilityId:e.vulnerabilityId,mitigations:e.mitigations,installationIds:e.installationsIds,task:n.task})})),Object.assign(Object.assign({},e),{vulnerabilityMitigationsUpdatingStatuses:t})}case OS:return Object.assign(Object.assign({},e),{vulnerabilityMitigationsUpdatingStatuses:e.vulnerabilityMitigationsUpdatingStatuses.filter((e=>e.task.id!==n.task.id))});case LS:{const t=[...e.virtualPatchesUpdatingStatuses];return t.push({installationIds:n.installationIds,task:n.task}),Object.assign(Object.assign({},e),{virtualPatchesUpdatingStatuses:t})}case MS:{let t=[...e.virtualPatchesUpdatingStatuses];return t=t.filter((e=>e.task.id!==n.task.id)),Object.assign(Object.assign({},e),{virtualPatchesUpdatingStatuses:t})}case qy:{const t=[...e.runningCheckVulnerabilitiesTasks];return t.push({task:n.task,installationsIds:n.installationsIds}),Object.assign(Object.assign({},e),{runningCheckVulnerabilitiesTasks:t})}case zy:{const t=[...e.runningCheckVulnerabilitiesTasks];return Object.assign(Object.assign({},e),{runningCheckVulnerabilitiesTasks:t.filter((e=>n.task.id!==e.task.id))})}case ES:{if(!n.installationsSecurityRiskStatuses)return e;const t=[],s=void 0===e.installationsSecurityRiskStatuses?n.installationsSecurityRiskStatuses.map((e=>(t.push(e.id),e))):e.installationsSecurityRiskStatuses.map((e=>{const s=n.installationsSecurityRiskStatuses.find((t=>t.id===e.id));return s?(t.push(s.id),s):e}));return n.installationsSecurityRiskStatuses.forEach((e=>{t.includes(e.id)||s.push(e)})),Object.assign(Object.assign({},e),{installationsSecurityRiskStatuses:s})}default:return e}}};function PQ(e){return({dispatch:t,getState:n})=>s=>a=>"function"==typeof a?a(t,n,e):s(a)}var OQ=PQ(),LQ=PQ,MQ="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Cb.Zz:Cb.Zz.apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var EQ=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},RQ=e=>t=>{setTimeout(t,e)};function UQ(e){const t=function(e){const{thunk:t=!0,immutableCheck:n=!0,serializableCheck:s=!0,actionCreatorCheck:a=!0}=e??{};let i=new EQ;return t&&("boolean"==typeof t?i.push(OQ):i.push(LQ(t.extraArgument))),i},{reducer:n,middleware:s,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:r,enhancers:o}=e||{};let l,c;if("function"==typeof n)l=n;else{if(!(0,Cb.Qd)(n))throw new Error(`Minified Redux Toolkit error #${u=1}; visit https://redux-toolkit.js.org/Errors?code=${u} for the full message or use the non-minified dev environment for full errors. `);l=(0,Cb.HY)(n)}var u;c="function"==typeof s?s(t):t();let d=Cb.Zz;a&&(d=MQ({trace:!1,..."object"==typeof a&&a}));const p=(h=(0,Cb.Tw)(...c),function(e){const{autoBatch:t=!0}=e??{};let n=new EQ(h);return t&&n.push(((e={type:"raf"})=>t=>(...n)=>{const s=t(...n);let a=!0,i=!1,r=!1;const o=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?(c=window.requestAnimationFrame,e=>{let t=!1;const n=()=>{t||(t=!0,cancelAnimationFrame(s),clearTimeout(a),e())},s=c(n),a=setTimeout(n,100)}):RQ(10):"callback"===e.type?e.queueNotification:RQ(e.timeout);var c;const u=()=>{r=!1,i&&(i=!1,o.forEach((e=>e())))};return Object.assign({},s,{subscribe(e){const t=s.subscribe((()=>a&&e()));return o.add(e),()=>{t(),o.delete(e)}},dispatch(e){try{return a=!e?.meta?.RTK_autoBatch,i=!a,i&&(r||(r=!0,l(u))),s.dispatch(e)}finally{a=!0}}})})("object"==typeof t?t:void 0)),n});var h;const m=d(..."function"==typeof o?o(p):p());return(0,Cb.y$)(l,r,m)}var{assign:NQ}=Object;const FQ=(e,t)=>({router:Eu(t),app:hQ(e),instances:mQ(e),smartUpdateResultsPublic:fQ(e),assets:bQ(),servers:SQ(e),plugins:vQ(e),themes:yQ(e),sets:kQ(e),longTasks:wQ(),settings:AQ(),backgroundTasks:LP(e),backup:xQ(),securityMeasures:TQ(),vulnerabilities:DQ(),updates:CQ()}),BQ=r(6864),YQ={DbUser:!0,Db:!0,ActionLog:!0},HQ=Fc(void 0,(e=>({instancesActions:(0,Cb.zH)({getInstallationsRemoveConfiguration:Cx},e),addWarningMessage:t=>e(ib(t))})))((({installation:e,isOpen:t,onClose:n,onRemove:s,instancesActions:{getInstallationsRemoveConfiguration:a},addWarningMessage:i})=>{const[r,o]=(0,R.useState)(YQ),[l,c]=(0,R.useState)(),[u,d]=(0,R.useState)(!1);return(0,R.useEffect)((()=>{t&&(d(!0),a([e.id]).then((t=>{const s=t.find((t=>t.id===e.id));s||(i((0,L.jsx)(pp,{content:"remove-confirmation.error.getConfirmationDetails"})),n()),c(s)})).catch((()=>{})).finally((()=>d(!1))))}),[a,d,e,t,i,n]),(0,L.jsx)(Wi,{isOpen:t,title:(0,L.jsx)(pp,{content:"remove-confirmation.titleSingle"}),cancelButton:{onClick:n,children:(0,L.jsx)(pp,{content:"remove-confirmation.buttonNo"})},buttons:(0,L.jsx)(ut,{onClick:()=>(()=>{const{Db:e,DbUser:t,ActionLog:a}=r,i={removeDb:e,removeUser:t,removeActionLog:a,checkShared:!1};n(),s(i)})(),"data-test-id":Gb,children:(0,L.jsx)(pp,{content:"remove-confirmation.buttonYes"})}),size:"sm",onClose:n,"data-test-id":Qb,children:!l||u?(0,L.jsx)(Qn,{}):(0,L.jsx)(iF,{changeRemoveOptions:o,db:l.database,dbUser:l.user,isInstanceDatabaseDeletionAllowed:l.database.removingAllowed&&l.user.removingAllowed,isDatabaseWillBeRemovedAutomatically:l.database.willBeRemovedAutomatically,installationId:e.id,installationTitle:e.displayTitle,isActionLogAvailable:e.features.actionLog.available})})})),VQ=({isOpen:e,onClose:t,onDetach:n,installation:s})=>{const a=r(74728)(s.url);return(0,L.jsx)(Wi,{isOpen:e,title:(0,L.jsx)(pp,{content:"controllers.index.detail.detachConfirmationTitle"}),cancelButton:{children:(0,L.jsx)(pp,{content:"controllers.index.detail.buttonConfirmationNo"}),onClick:t},buttons:(0,L.jsx)(ut,{onClick:n,"data-test-id":Kb,children:(0,L.jsx)(pp,{content:"controllers.index.detail.detachButton"})}),size:"sm",onClose:t,"data-test-id":Qb,children:(0,L.jsx)(NG,{installationsToRemove:[{id:s.id,url:`<a target='_blank' href='${a}'>${s.displayTitle}</a>`,isPossibleToRemove:!0,hintMessage:(0,L.jsx)(pp,{content:"detach-confirmation.hintWillDetachSuccess"})}],title:(0,L.jsx)(pp,{content:"controllers.index.detail.massDetachConfirmationDescription"})})})};const WQ=e=>{const{maxChars:t,children:n}=e,s=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["maxChars","children"]);if("string"!=typeof n)return(0,L.jsx)(L.Fragment,{children:n});const a=n.toString(),i=a.length>t,r=i?`${a.slice(0,t-1)}...`:a,o=(0,L.jsx)(da,Object.assign({},s,{children:r}));return i?(0,L.jsx)(Xe,{title:a,children:o}):o},$Q=({installation:e,className:t})=>{const n=cp(),s=Op(e),a=`${"httpdocs"===s?"":"..."}${_O(e.installationType)?"\\":"/"}${s}`;return(0,L.jsx)(WQ,{"data-test-id":"instance-at-folder-text",className:t,intent:"muted",fontSize:"sm",maxChars:30,children:n("instancesList.instanceCard.files.atFolder",{folder:a})})},zQ=()=>{const e=cp("appMode.installationDisplayTitle");return t=>t.features.php.unsupported?e("unsupportedPhp"):t.status.infected?e("infected"):t.status.unsupported?e("unsupported"):t.status.alive?t.title:e("broken")},qQ=Fc((e=>({installations:e.instances.installations})))((({installations:e,installationId:t,installationsIds:n,onChangeInstallation:s,domainId:a,baseClassName:i=`${th}installation-selector`})=>{const r=cp(),o=zQ();return n.length<=1?null:(0,L.jsx)(zn,{"data-test-id":"installation-selector",baseClassName:i,menu:(0,L.jsx)(aa,{"data-test-id":"installation-selector-menu",children:(()=>{const t=[];return t.push((0,L.jsx)(ba,{children:r("instancesList.instanceCard.instanceSelector.menuHeader").toString().toUpperCase()})),t.push(n.map((t=>{const n=null==e?void 0:e.find((e=>e.id===t));if(!n)return null;const r=n.status.unsupported||!n.status.alive;return(0,L.jsx)(Yn,{"data-test-id":`installation-selector-menu-item__installation-id-${t}`,onClick:()=>s(a,t),icon:r?(0,L.jsx)(xe,{name:"exclamation-mark-circle-filled",intent:"danger"}):null,children:(0,L.jsxs)("div",{className:`${i}__menu-item`,children:[(0,L.jsx)(da,{fontSize:"md",children:o(n)}),(0,L.jsx)($Q,{className:`${i}__at-folder-text`,installation:n})]})},`${t}`)}))),t})()}),children:(()=>{const e=n.findIndex((e=>e===t))+1,s=n.length;return(0,L.jsx)(ut,{icon:"wordpress",caret:!0,children:`${e} / ${s}`})})()})})),GQ=e=>{const{selector:t,title:n,statusMessages:s,linksSection:a,body:i,baseClassName:r=`${th}wpt-card`}=e;return(0,L.jsxs)(Ni,{className:`${r}-section`,children:[(0,L.jsx)(vi,{children:(0,L.jsxs)("div",{className:`${r}-header`,children:[t,n]})}),s,(0,L.jsx)(vi,{children:a}),i]})},KQ=e=>{const{installation:t,onCacheRefresh:n,baseClassName:s=`${th}wpt-card-title`}=e,a=zQ();return(0,L.jsxs)("div",{className:s,children:[(0,L.jsx)(Ns,{"data-test-id":PN,icon:(0,L.jsx)(xe,{name:"info-circle",intent:"danger"}),level:2,children:a(t)}),(0,L.jsx)(ut,{"data-test-id":pv,icon:"refresh",tooltip:(0,L.jsx)(pp,{content:"Card.refreshCardTooltip"}),onClick:()=>n(),ghost:!0})]})},QQ=e=>{const{installation:t,installation:{domain:n,path:s,features:{fileManager:a},installationType:i},primary:r=!1,baseClassName:o=`${th}installation-files-button`}=e;return a.available?(0,L.jsx)("div",{className:o,children:(0,L.jsx)(jq,{href:a.url,iconName:"folder-closed",dataTestId:mv,localeKey:"instancesList.instanceCard.files.title",primary:r,children:(()=>{const e=Op(t);return e&&"httpdocs"!==e&&n&&e!==WN(n.name)&&e!==$N(n.name)?(0,L.jsx)($Q,{installation:t,className:`${o}__at-folder-text`}):null})()})}):null},JQ=e=>{const{selector:t,installation:n,installation:{features:s},onCacheRefresh:a,onOpenCheckWpIntegrityDialog:i,onOpenActionLogDrawer:r,onOpenDetachDialog:o,onOpenRemoveDialog:l}=e,c=(0,L.jsx)(KQ,{installation:n,onCacheRefresh:a}),u=`${th}instance-links-section`,d=(0,L.jsxs)("div",{className:u,children:[s.fileManager.available&&(0,L.jsx)("div",{className:`${u}-element`,children:(0,L.jsx)(QQ,{installation:n,primary:!0})}),s.actionLog.available&&(0,L.jsx)("div",{className:`${u}-element`,children:(0,L.jsx)(jq,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"})}),s.integrity.available&&(0,L.jsx)("div",{className:`${u}-element`,children:(0,L.jsx)(xH,{onOpenCheckWpIntegrityDialog:()=>i("CRD-INOPERABLE_SITE")})}),(0,L.jsx)("div",{className:`${u}-element`,children:(0,L.jsx)(jq,{onClick:o,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,L.jsx)("div",{className:`${u}-element`,children:(0,L.jsx)(jq,{onClick:l,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),p=(0,L.jsx)(Ni,{children:(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.infectedInstance.description",params:{refreshIcon:(0,L.jsx)(xe,{name:"refresh"})}})})});return(0,L.jsx)(GQ,{selector:t,title:c,linksSection:d,body:p})},XQ=e=>{var t,n;const{selector:s,installation:a,installation:{id:i,path:r,errorMessage:o,features:l},onCacheRefresh:c,onOpenBackupDrawer:u,onOpenCheckWpIntegrityDialog:d,onOpenActionLogDrawer:p,onOpenDetachDialog:h,onOpenRemoveDialog:m,onEnable:g,onDisable:f}=e,b=(0,L.jsx)(KQ,{installation:a,onCacheRefresh:c}),v=`${th}instance-links-section`,y=(0,L.jsxs)("div",{className:v,children:[(l.backups.wptBackupsAvailable||l.backups.panelBackupsAvailable&&l.backups.backupManagerUrl)&&(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(Iq,{onOpenBackupDrawer:u,installation:a,primary:!0})}),l.fileManager.available&&(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(QQ,{installation:a})}),l.actionLog.available&&(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(jq,{onClick:p,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log"})}),l.integrity.available&&(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(xH,{onOpenCheckWpIntegrityDialog:d})}),(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(jq,{onClick:h,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,L.jsx)("div",{className:`${v}-element`,children:(0,L.jsx)(jq,{onClick:m,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),S=(0,L.jsxs)(Ni,{children:[(0,L.jsxs)(vi,{children:[(0,L.jsxs)(_a,{children:[(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.filesFound"}),":",(0,L.jsx)("br",{}),(0,L.jsx)(Us,{href:null!==(n=null===(t=l.fileManager)||void 0===t?void 0:t.url)&&void 0!==n?n:void 0,children:r})]}),(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.description"})]}),l.restorePoint&&l.restorePoint.restorePointTimestamp&&(0,L.jsx)(MB,{installationId:i,restorePoint:l.restorePoint,enableInstances:g,disableInstances:f})||null,o&&(0,L.jsx)(vi,{children:(0,L.jsx)(Ks,{target:(0,L.jsx)(_e,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.brokenInstance.errorDetails"})}),children:o})})||null]});return(0,L.jsx)(GQ,{selector:s,title:b,linksSection:y,body:S})},ZQ=Fc((e=>({upgradingInstanceInstructionsUrl:e.app.urls.upgradingInstanceInstructionsUrl})))((e=>{const{selector:t,installation:n,installation:{status:{unsupported:s},features:a,version:i},onCacheRefresh:r,onOpenDetachDialog:o,onOpenRemoveDialog:l,upgradingInstanceInstructionsUrl:c}=e,u=cp();if(!i)return null;if(!s)return null;const d=(0,L.jsx)(KQ,{installation:n,onCacheRefresh:r}),p=`${th}instance-links-section`,h=(0,L.jsxs)("div",{className:p,children:[a.fileManager.available&&(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(QQ,{installation:n,primary:!0})}),(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(jq,{onClick:o,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(jq,{onClick:l,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),m=(0,L.jsxs)(Ni,{children:[(0,L.jsx)(vi,{children:(0,L.jsx)(pp,{content:"controllers.index.detail.unsupportedInstance.description",params:{version:i}})}),c&&(0,L.jsxs)(vi,{children:[(0,L.jsxs)(_a,{children:[(0,L.jsx)(pp,{content:"controllers.index.detail.unsupportedInstance.upgradingInstanceInstructionsLabel"}),":"]}),(0,L.jsx)(_e,{icon:"site-page",target:"_blank",href:c,children:u("controllers.index.detail.unsupportedInstance.upgradingInstructionsLinkText")})]})]});return(0,L.jsx)(GQ,{selector:t,title:d,linksSection:h,body:m})})),eJ=e=>{var t;const{installation:n,onOpenPluginsUpdates:s,onOpenSecurityDialog:a}=e,i=cp(),[r,o]=(0,R.useState)(!1),[l,c]=(0,R.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{"data-test-id":"instance-manage-plugins",icon:"puzzle",onClick:()=>o(!0),primary:!0,children:i("list.sites.linkManagePlugins")}),(0,L.jsx)(cr,{isOpen:r,onClose:()=>o(!1),title:i("drawer.managePlugins.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-plugins-drawer",children:(0,L.jsx)(QF,{isPaginationEnabled:!1,installation:n,onOpenNativePlugins:()=>c(!0),onUpdatesOpen:s,onOpenSecurityDialog:a,showTitle:!1})}),l&&(0,L.jsx)(iG,{installation:n,type:Up,onClose:()=>c(!1)})]})},tJ=e=>{var t;const{installation:n,onOpenThemesUpdates:s,onOpenSecurityDialog:a}=e,i=cp(),[r,o]=(0,R.useState)(!1),[l,c]=(0,R.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{"data-test-id":"instance-manage-themes",icon:"brush",onClick:()=>o(!0),primary:!0,children:i("list.sites.linkManageThemes")}),(0,L.jsx)(cr,{isOpen:r,onClose:()=>o(!1),title:i("drawer.manageThemes.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-themes-drawer",children:(0,L.jsx)(ZF,{installation:n,onOpenNativeThemes:()=>c(!0),onUpdatesOpen:s,onOpenSecurityDialog:a,showTitle:!1})}),l&&(0,L.jsx)(iG,{installation:n,type:Rp,onClose:()=>c(!1)})]})},nJ=e=>{var t;const{installation:n}=e,s=cp(),[a,i]=(0,R.useState)(!1);return(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(_e,{icon:"database",onClick:()=>i(!0),primary:!0,children:s("list.sites.linkManageDatabase")}),(0,L.jsx)(cr,{isOpen:a,onClose:()=>i(!1),title:s("drawer.manageDatabase.title"),subtitle:null===(t=n.domain)||void 0===t?void 0:t.name,"data-type":"wpt-database-drawer",size:"xs",children:(0,L.jsx)(iB,{installation:n,onError:()=>i(!1),showTitle:!1})})]})},sJ=Fc((e=>({unpaidFeatures:e.app.unpaidFeatures,isWordPressInstancesLimitExceeded:e.app.options.isWordPressInstancesLimitExceeded})),(e=>({addErrorMessage:(0,Cb.zH)(ab,e)})))((({baseClassName:e=`${th}instance-links-section`,installation:t,unpaidFeatures:n,onOpenSyncDrawer:s,onOpenCloneDrawer:a,onOpenBackupDrawer:i,onOpenActionLogDrawer:r,onOpenSecurityDialog:o,isWordPressInstancesLimitExceeded:l,addErrorMessage:c,onOpenCheckWpIntegrityDialog:u,onOpenUpdates:d,onOpenDetachDialog:p,onOpenRemoveDialog:h,onOpenWpCliDrawer:m})=>{const{fileManager:g,copyData:f,clone:b,backups:v,actionLog:y,integrity:S,security:w,wpCli:x}=t.features,A=(0,R.useCallback)((e=>{gp(e,l?()=>{var e,n;return c((0,L.jsx)(pp,{content:"common.wordPressSitesLimitForDomainExceeded",params:{count:null===(e=t.domain)||void 0===e?void 0:e.installationsCount,limit:null===(n=t.domain)||void 0===n?void 0:n.installationsLimit}}))}:a)}),[t,a,l,c]);return(0,L.jsxs)("div",{className:e,children:[(0,L.jsxs)("div",{children:[g.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(QQ,{installation:t,primary:!0})}),(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(eJ,{installation:t,onOpenPluginsUpdates:()=>d("CRD_PLUGINS",iS),onOpenSecurityDialog:o})}),(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(tJ,{installation:t,onOpenThemesUpdates:()=>d("CRD_THEMES",rS),onOpenSecurityDialog:o})}),(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(nJ,{installation:t})}),y.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(jq,{onClick:r,iconName:"list",localeKey:"list.instances.linkActionLog",dataTestId:"instance-link-action-log",primary:!0},"list.instances.linkActionLog")}),x.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(jq,{onClick:m,iconName:"console",localeKey:"list.instances.linkWpCli",dataTestId:"instance-link-action-wpCli",primary:!0},"list.instances.wpCli")})]}),(0,L.jsxs)("div",{children:[f.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(Bv,{uatAction:Gv,featureName:Hp,installationId:t.id,isInstanceFeatureDisabled:!f.applicable,description:(0,L.jsx)(pp,{content:"paidFeature.copyDataFeatureDescription"}),children:(0,L.jsx)(jq,{onClick:e=>gp(e,s),iconName:n[Hp]||!f.applicable?void 0:"arrows-loop",localeKey:"list.instances.linkSync",dataTestId:"instance-link-sync"},"list.instances.linkSync")})}),b.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(Bv,{featureName:Yp,uatAction:Gv,installationId:t.id,isInstanceFeatureDisabled:!b.applicable,description:(0,L.jsx)(pp,{content:"paidFeature.cloneFeatureDescription"}),children:(0,L.jsx)(jq,{onClick:A,iconName:n[Yp]||!b.applicable?void 0:"copy",localeKey:"list.instances.linkClone",dataTestId:"instance-link-clone"},"list.instances.linkClone")})}),(v.wptBackupsAvailable||v.panelBackupsAvailable&&v.backupManagerUrl)&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(Iq,{onOpenBackupDrawer:i,installation:t})}),S.available&&(0,L.jsx)("div",{className:`${e}-element`,children:(0,L.jsx)(xH,{onOpenCheckWpIntegrityDialog:()=>u("CRD")})}),(0,L.jsx)(zn,{"data-test-id":"instance-dropdown-menu",className:`${e}-element`,menu:(0,L.jsxs)(aa,{children:[(0,L.jsx)(Yn,{icon:"refresh",onClick:()=>d("CRD_DASHBOARD"),children:(0,L.jsx)(pp,{content:"instancesList.instanceActions.checkUpdates"})}),w.available&&(0,L.jsx)(Yn,{icon:"shield",onClick:()=>o(0,"CRD_DASHBOARD",xM),children:(0,L.jsx)(pp,{content:"toolbar.checkSecurity"})}),(0,L.jsx)(Fn,{}),(0,L.jsx)(Yn,{"data-test-id":"instance-detach",icon:"chain-broken",onClick:p,children:(0,L.jsx)(pp,{content:"toolbar.detachFromWpToolkit"})}),(0,L.jsx)(Yn,{icon:"wordpress-minus",onClick:h,children:(0,L.jsx)(pp,{content:"toolbar.uninstallWordPress"})})]}),children:(0,L.jsx)(_e,{icon:"three-dots-horizontal",children:(0,L.jsx)(pp,{content:"list.instances.linkDropDownMenuMore"})})})]})]})})),aJ=Fc(void 0,(e=>({switchPhpHandler:(0,Cb.zH)(rx,e)})))((e=>{const{selector:t,installation:n,installation:{features:{fileManager:s,php:{handler:a}}},onEnable:i,onDisable:r,onCacheRefresh:o,onOpenDetachDialog:l,onOpenRemoveDialog:c,switchPhpHandler:u}=e,d=(0,L.jsx)(KQ,{installation:n,onCacheRefresh:o}),p=`${th}instance-links-section`,h=(0,L.jsxs)("div",{className:p,children:[s.available&&(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(QQ,{installation:n,primary:!0})}),(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(jq,{onClick:l,iconName:"chain-broken",localeKey:"toolbar.detachFromWpToolkit",dataTestId:"instance-detach"})}),(0,L.jsx)("div",{className:`${p}-element`,children:(0,L.jsx)(jq,{onClick:c,iconName:"wordpress-minus",localeKey:"toolbar.uninstallWordPress",dataTestId:"instance-uninstall"})})]}),m=(0,L.jsxs)(Ni,{children:[(0,L.jsxs)(vi,{children:[(0,L.jsx)(da,{bold:!0,children:(0,L.jsx)(pp,{content:"instancesList.issues.errorUnsupportedPHP.title",params:{phpVersion:null==a?void 0:a.version}})})," ",(0,L.jsx)(pp,{content:"instancesList.issues.errorUnsupportedPHP.description",unsafe:!0})]}),(0,L.jsx)(vi,{children:(0,L.jsx)(jH,{installation:n,onSwitchPHPHandler:e=>(r(),u(n.id,e).finally((()=>{i()})))})})]});return(0,L.jsx)(GQ,{selector:t,title:d,linksSection:h,body:m})})),iJ=e=>{const{installation:t,selector:n,onOpenBackupDrawer:s,onOpenActionLogDrawer:a,onOpenCheckWpIntegrityDialog:i,onOpenDetachDialog:r,onOpenRemoveDialog:o,onCacheRefresh:l,onEnable:c,onDisable:u,onSetInstanceName:d,onAddErrorMessage:p,statusMessages:h,onOpenSyncDrawer:m,onOpenCloneDrawer:g,onOpenSecurityDialog:f,onOpenUpdates:b,onOpenSmartPhpUpdates:v,onOpenVirtualPatchingUpsellDialog:y,onOpenVirtualPatchingLicenseInfoDrawer:S,onOpenWpCliDrawer:w}=e;return t.features.php.unsupported?(0,L.jsx)(aJ,{installation:t,selector:n,onCacheRefresh:l,onOpenDetachDialog:r,onOpenRemoveDialog:o,onEnable:c,onDisable:u}):t.status.unsupported?(0,L.jsx)(ZQ,{installation:t,selector:n,onCacheRefresh:l,onOpenDetachDialog:r,onOpenRemoveDialog:o}):t.status.infected?(0,L.jsx)(JQ,{installation:t,selector:n,onCacheRefresh:l,onOpenActionLogDrawer:()=>a("CRD-INOPERABLE_SITE"),onOpenCheckWpIntegrityDialog:i,onOpenDetachDialog:r,onOpenRemoveDialog:o}):t.status.alive?(0,L.jsx)(GQ,{selector:n,title:(0,L.jsx)(fY,{installationId:t.id,name:t.title,setInstanceName:d,addErrorMessage:p,additionalButtons:(0,L.jsx)(ut,{"data-test-id":pv,icon:"refresh",tooltip:(0,L.jsx)(pp,{content:"Card.refreshCardTooltip"}),onClick:l,ghost:!0})}),statusMessages:h,linksSection:(0,L.jsx)(sJ,{installation:t,onOpenCloneDrawer:g,onOpenSyncDrawer:m,onOpenBackupDrawer:()=>s("CRD"),onOpenActionLogDrawer:()=>a("CRD"),onOpenUpdates:b,onOpenSecurityDialog:f,onOpenCheckWpIntegrityDialog:()=>i("CRD"),onOpenDetachDialog:r,onOpenRemoveDialog:o,onOpenWpCliDrawer:w}),body:(0,L.jsx)(wH,{isWpMode:!0,installation:t,openUpdates:b,onEnableInstances:c,onDisableInstances:u,onOpenSecurityDialog:f,onOpenSmartPhpUpdates:v,onOpenVirtualPatchingUpsellDialog:y,onOpenVirtualPatchingLicenseInfoDrawer:S})}):(0,L.jsx)(XQ,{installation:t,selector:n,onCacheRefresh:l,onOpenBackupDrawer:()=>s("CRD-INOPERABLE_SITE"),onOpenActionLogDrawer:()=>a("CRD-INOPERABLE_SITE"),onOpenCheckWpIntegrityDialog:()=>i("CRD-INOPERABLE_SITE"),onOpenDetachDialog:r,onOpenRemoveDialog:o,onEnable:c,onDisable:u})},rJ=Fc(null,(e=>({instanceActions:(0,Cb.zH)({setInstanceName:AA,refresh:ix,detach:px,getInstallationsRemoveConfiguration:Cx,remove:lx},e),addErrorMessage:t=>e(ab(t))})))((({installation:e,installation:{features:{php:t,updates:n}},instanceActions:{setInstanceName:s,refresh:a,remove:i,detach:r},addErrorMessage:o,domainInstallationsIds:l,onChangeInstallation:c,domainId:u})=>{const[d,p]=(0,R.useState)(!1),[h,m]=(0,R.useState)(!1),[g,f]=(0,R.useState)(!1),[b,v]=(0,R.useState)(void 0),[y,S]=(0,R.useState)(!1),[w,x]=(0,R.useState)(!1),[A,_]=(0,R.useState)(!1),[k,j]=(0,R.useState)(void 0),[C,I]=(0,R.useState)(!1),[T,D]=(0,R.useState)(!1),[P,O]=(0,R.useState)(!1),[M,E]=(0,R.useState)(!1),[U,N]=(0,R.useState)(!1),[F,B]=(0,R.useState)(!1),[Y,H]=(0,R.useState)(!1),[V,W]=(0,R.useState)(!1),[$,z]=(0,R.useState)(!1),q=J_(),G=(0,L.jsxs)(L.Fragment,{children:[t.eoled&&(0,L.jsx)(yV,{installation:e,onOpenSmartPhpUpdatesDrawer:()=>D(!0)}),n.availableVersion&&(0,L.jsx)(SV,{})]}),K=(0,L.jsx)(qQ,{installationId:e.id,installationsIds:l,domainId:u,onChangeInstallation:c});return(0,L.jsxs)(E_,{children:[(0,L.jsx)(iJ,{installation:e,onAddErrorMessage:o,onCacheRefresh:()=>(O(!0),void a(e.id).catch((()=>{})).finally((()=>{O(!1)}))),onDisable:()=>O(!0),onEnable:()=>O(!1),onOpenActionLogDrawer:()=>p(!0),onOpenBackupDrawer:()=>m(!0),onOpenCheckWpIntegrityDialog:()=>E(!0),onOpenCloneDrawer:()=>x(!0),onOpenDetachDialog:()=>N(!0),onOpenRemoveDialog:()=>B(!0),onOpenSecurityDialog:(e,t,n)=>{v(n),f(!0),q(`${t}-SECURITY-CLICKED`)},onOpenSmartPhpUpdates:()=>D(!0),onOpenSyncDrawer:()=>S(!0),onOpenUpdates:(e,t)=>{j(t),_(!0),q(`${e}-UPDATES-CLICKED`)},onOpenVirtualPatchingUpsellDialog:()=>H(!0),onOpenVirtualPatchingLicenseInfoDrawer:()=>W(!0),onOpenWpCliDrawer:()=>z(!0),onSetInstanceName:s,selector:K,statusMessages:G}),(0,L.jsx)(uV,{isOpen:d,installation:e,onCloseActionLogDrawer:()=>p(!1)}),(0,L.jsx)(aL,{installation:e,onClose:()=>m(!1),isOpen:h}),(0,L.jsx)(kM,{title:(0,L.jsx)(pp,{content:"list-ui.instances.forms.security.drawerTitle"}),subtitle:e.displayTitle,installation:e,isOpen:g,onClose:()=>f(!1),activeTab:b,onOpenVirtualPatchingUpsellDialog:()=>H(!0)}),(0,L.jsx)(IB,{onClose:()=>_(!1),isUpdateSettingsFormOpen:C,onOpenUpdatesSettingsDialog:()=>I(!0),onCloseUpdatesSettingsDialog:()=>I(!1),installation:e,openUpdatesType:k,isOpen:A}),(0,L.jsx)(Rq,{installation:e,isOpen:T,onClose:()=>D(!1)}),(0,L.jsx)(hq,{onClose:()=>S(!1),installation:e,isOpen:y}),(0,L.jsx)(kq,{onClose:()=>x(!1),installation:e,isOpen:w,showDomainOverviewLinkOnDone:!0}),(0,L.jsx)(vV,{isOpen:M,installation:e,onCloseCheckWordPressIntegrityDialog:()=>E(!1),onOpenBackupDrawer:()=>m(!0)}),(0,L.jsx)(VQ,{isOpen:U,onClose:()=>N(!1),onDetach:()=>(O(!0),N(!1),void r([e.id]).then((()=>window.location.reload())).finally((()=>O(!1)))),installation:e}),(0,L.jsx)(HQ,{installation:e,isOpen:F,onClose:()=>B(!1),onRemove:t=>{O(!0),i([e.id],t).then((()=>window.location.reload())).catch((()=>{})).finally((()=>O(!1)))}}),(0,L.jsx)(HK,{installation:e,isOpen:Y,onClose:()=>H(!1),onOpen:()=>H(!0),onOpenLicenseInfoDrawer:()=>W(!0),uatAction:Gv}),(0,L.jsx)(XK,{installation:e,isOpen:V,onOpenUpsellDialog:()=>H(!0),onClose:()=>W(!1)}),(0,L.jsx)(Qq,{isOpen:$,onClose:()=>z(!1),installationId:e.id}),P&&(0,L.jsx)(Qn,{overlay:!0,backdrop:!0})]})})),oJ=Fc((e=>{var t;return{hireDeveloperFeatureShown:e.app.options.hireDeveloperFeature&&!!(null===(t=e.app.options.hireDeveloperFeatureSettings)||void 0===t?void 0:t.href),isIntegrationPluginPromoVisible:e.app.options.integrationPluginSettings.isPromoVisible}}))((e=>{const{domainId:t,installation:n,hireDeveloperFeatureShown:s,isIntegrationPluginPromoVisible:a,baseClassName:i=`${th}sidebar-section`}=e,r=(0,L.jsxs)(vi,{className:`${i}-sectionItem`,children:[(0,L.jsx)(Ns,{level:4,children:(0,L.jsx)(pp,{content:"common.loginToWordpress"})}),(0,L.jsx)(aY,{installation:n,initialShowAdminSettingsDrawer:!1})]}),o=(0,L.jsx)(vi,{className:`${i}-sectionItem`,children:(0,L.jsx)(uY,{installation:n})}),l=a&&!n.features.integrationPlugin.ui.status&&(0,L.jsx)(zB,{installationId:n.id,wordPressVersion:n.version});return(0,L.jsxs)(Ni,{baseClassName:i,children:[l,n.status.alive&&r,s&&o]},`sidebar-${t}-${n.id}`)})),lJ=()=>{const e=cu(),[t,n]=(0,R.useState)(!1),[s,a]=(0,R.useState)(void 0);return(0,R.useEffect)((()=>{const t=new URLSearchParams(location.search),s=t.get(Sh),i=t.get(wh);"install-wp"===s&&(i&&a(i),t.delete(Sh),t.delete(wh),e.replace(Object.assign(Object.assign({},location),{search:t.toString()}),{}),n(!0))}),[e,n]),(0,L.jsx)(tK,{isOpen:t,onClose:()=>n(!1),selectedDomain:s,redirectToDomainOverviewOnDone:!0})};Fc((e=>({urls:e.app.urls,installations:e.instances.installations,selectedInstanceId:e.instances.selectedInstanceId,domainsInstallationsIds:e.instances.domainsInstallationsIds})),(e=>({addErrorMessage:t=>e(ab(t)),setSelectedInstanceId:t=>e(EA(t))})))(ou((e=>{var{baseClassName:t=`${th}app-container`,urls:n,domainsInstallationsIds:s,installations:a,selectedInstanceId:i,setSelectedInstanceId:r}=e;!function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}}(e,["baseClassName","urls","domainsInstallationsIds","installations","selectedInstanceId","setSelectedInstanceId"]);const[o,l]=(0,R.useState)({}),c=(()=>{const[e,t]=(0,R.useState)({});return(0,R.useEffect)((()=>{const n=setInterval((()=>{window.wpModePlaceholders&&window.wpModePlaceholders!==e&&t(window.wpModePlaceholders)}),500);return()=>{clearInterval(n)}}),[e]),e})(),u=lu(eu).location,d=cu();(0,R.useEffect)((()=>{Zg(n.apiUrl),ef(ab),tf(null),Jf(n.restApiUrl,ab,!0)}),[n]),(0,R.useEffect)((()=>{const e=((e,t)=>{const n=new URLSearchParams(e.search),s=n.get("installationId");return s?(n.delete("installationId"),t.replace(Object.assign(Object.assign({},e),{search:n.toString()}),{}),s?parseInt(s,10):null):null})(u,d);e&&e!==i&&r(e)}),[u,d]),(0,R.useEffect)((()=>{const e={};for(const t in s)if(i&&s[t].some((e=>e===i)))e[t]=i,r(null);else if(!o.hasOwnProperty(t)){const[n]=s[t];e[t]=n}Object.keys(e).length>0&&l((t=>Object.assign(Object.assign({},t),e)))}),[s,i]);const p=(0,R.useMemo)((()=>{const e=(e,t)=>r(t),t=[];for(const n in c){const i=null==a?void 0:a.find((e=>e.id===o[n]));if(!i)continue;const r=c[n].tab;r&&t.push((0,$e.createPortal)((0,L.jsx)(rJ,{domainId:parseInt(n),installation:i,onChangeInstallation:e,domainInstallationsIds:s[n]}),r,`tab-domain-${n}-installation-${i.id}`));const l=c[n].sidebar;l&&t.push((0,$e.createPortal)((0,L.jsx)(oJ,{installation:i,domainId:parseInt(n)}),l,`sidebar-domain-${n}-installation-${i.id}`))}return t}),[r,c,a,o,s]);return(0,L.jsxs)("div",{className:t,children:[(0,L.jsx)(tF,{}),p,(0,L.jsx)(W_,{}),(0,L.jsx)(lJ,{})]})})));var cJ=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n};const uJ=(0,L.jsx)("img",{style:{marginTop:"-3px"},src:"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.00016 14.6666C4.31816 14.6666 1.3335 11.682 1.3335 7.99998C1.3335 4.31798 4.31816 1.33331 8.00016 1.33331C11.6822 1.33331 14.6668 4.31798 14.6668 7.99998C14.6668 11.682 11.6822 14.6666 8.00016 14.6666ZM7.3335 9.99998V11.3333H8.66683V9.99998H7.3335ZM7.3335 4.66665V8.66665H8.66683V4.66665H7.3335Z' fill='%23212529'/%3E%3C/svg%3E",alt:"!"}),dJ=(0,L.jsx)("img",{style:{marginTop:"-3px"},src:"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6665 1.66666L15.3332 7.99999L11.6665 14.3333H4.33317L0.666504 7.99999L4.33317 1.66666H11.6665ZM7.33317 9.99999V11.3333H8.6665V9.99999H7.33317ZM7.33317 4.66666V8.66666H8.6665V4.66666H7.33317Z' fill='%23212529'/%3E%3C/svg%3E",alt:"!"}),pJ=(0,L.jsx)("img",{style:{marginTop:"-3px"},src:"data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.793 1.64844C11.9225 1.67723 12.039 1.74905 12.1221 1.85254C12.2051 1.95603 12.25 2.0851 12.25 2.21777V8.04395C12.2499 8.62 12.1078 9.18743 11.8359 9.69531C11.564 10.2032 11.1708 10.6365 10.6914 10.9561L7 13.417L3.30859 10.9561C2.82925 10.6365 2.43596 10.2032 2.16406 9.69531C1.89219 9.18746 1.75014 8.61999 1.75 8.04395V2.21777C1.75004 2.0851 1.7949 1.95603 1.87793 1.85254C1.96097 1.74905 2.07751 1.67723 2.20703 1.64844L7 0.583008L11.793 1.64844ZM4.57812 4.68945L6.17578 6.39062L4.47559 7.98828L5.27344 8.83887L6.97461 7.24023L8.57129 8.94141L9.42188 8.14258L7.8252 6.44238L9.52539 4.84473L8.72559 3.99512L7.02539 5.59277L5.42773 3.8916L4.57812 4.68945Z' fill='%23E64950'/%3E%3C/svg%3E",alt:"x"}),hJ=e=>{var{backgroundColor:t,children:n,icon:s}=e,a=cJ(e,["backgroundColor","children","icon"]);return(0,L.jsxs)("a",Object.assign({style:{backgroundColor:t,color:"#08193e",borderRadius:"100px",fontSize:"12px",display:"inline-block",padding:"2px 8px",textDecoration:"none"},target:"_blank"},a,{children:[s," ",n]}))},mJ=e=>{var{children:t,score:n}=e,s=cJ(e,["children","score"]);let a="#E7E7E8";return n>=8?a="#FADBDC":n>=6&&(a="#FCF2D9"),(0,L.jsx)(hJ,Object.assign({},s,{backgroundColor:a,children:t}))},gJ=e=>{var{wpToolkitHomeUrl:t}=e,n=cJ(e,["wpToolkitHomeUrl"]);const s=J_();return Fq((()=>s("CPANEL_HOME-WIDGET-SHOWN"))),t=Hv()+t,n&&0===n.securityRiskMaxScore&&0===n.blockedAttacksCount&&0===n.notProtectedSitesCount&&0===n.securityUpdatesCount?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"cp-stat__details-title",children:(0,L.jsx)(pp,{content:"cpanelHomePage.title"})}),(0,L.jsx)("span",{className:"cp-stat__details-value",children:(0,L.jsx)(Gi,{intent:"success",children:(0,L.jsx)(pp,{content:"cpanelHomePage.noIssues"})})})]}):(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)("span",{className:"cp-stat__details-title",children:(0,L.jsx)(pp,{content:"cpanelHomePage.title"})}),(0,L.jsxs)("span",{className:"cp-stat__details-value",style:{display:"flex",gap:"6px",flexFlow:"column"},children:[n.securityRiskMaxScore>0&&(0,L.jsx)("div",{style:{height:"22px"},children:(0,L.jsx)(mJ,{score:n.securityRiskMaxScore,icon:uJ,href:`${t}list?security-risk-from=${n.securityRiskMaxScore}`,onClick:()=>s("CPANEL_HOME-WIDGET_MAX_SECURITY_RISK-INSTALLATION_LIST-CLICKED"),"data-test-id":"max-security-risk-label",children:(0,L.jsx)(pp,{content:"cpanelHomePage.securityRiskMax",params:{securityRisk:n.securityRiskMaxScore}})})}),n.securityRiskMedianScore>0&&(0,L.jsx)("div",{style:{height:"22px"},children:(0,L.jsx)(mJ,{score:n.securityRiskMedianScore,icon:uJ,href:`${t}list?sort-by=securityRiskScore&sort-order=desc`,onClick:()=>s("CPANEL_HOME-WIDGET_MEDIAN_SECURITY_RISK-INSTALLATION_LIST-CLICKED"),children:(0,L.jsx)(pp,{content:"cpanelHomePage.securityRiskMedian",params:{securityRisk:n.securityRiskMedianScore}})})}),n.securityUpdatesCount>0&&(0,L.jsx)("div",{style:{height:"22px"},children:(0,L.jsx)(hJ,{backgroundColor:"#FCF2D9",icon:dJ,href:`${t}list/checkSecurity/1/activeTab/${MM}`,onClick:()=>s("CPANEL_HOME-WIDGET_SECURITY_UPDATES-SECURITY-CLICKED"),children:(0,L.jsx)(pp,{content:"cpanelHomePage.securityUpdates",params:{securityUpdates:n.securityUpdatesCount}})})}),n.blockedAttacksCount>0&&(0,L.jsx)("div",{style:{height:"22px"},children:(0,L.jsx)(Gi,{intent:"success",compact:!0,children:(0,L.jsx)(pp,{content:"cpanelHomePage.blockedAttacks",params:{blockedAttacksCount:n.blockedAttacksCount},style:{fontSize:"14px"}})})}),n.notProtectedSitesCount>0&&(0,L.jsxs)("div",{style:{height:"22px"},children:[pJ," ",(0,L.jsx)("a",{target:"_blank",href:`${t}list?vulnerability-protection=false`,onClick:()=>s("CPANEL_HOME-WIDGET_NOT_PROTECTED_SITES-INSTALLATION_LIST-CLICKED"),children:(0,L.jsx)(pp,{content:"cpanelHomePage.notProtectedSites",params:{count:n.notProtectedSitesCount}})})]}),(0,L.jsx)("div",{style:{height:"22px"},children:(0,L.jsx)("a",{href:t,target:"_blank",onClick:()=>s("CPANEL_HOME-WIDGET-INSTALLATION_LIST-CLICKED"),children:(0,L.jsx)(pp,{content:"cpanelHomePage.seeAll",params:{sitesCount:n.sitesCount}})})})]})]})};const fJ=e=>(0,L.jsxs)(E_,{children:[(0,L.jsx)(Mu,{history:e,children:(0,L.jsx)(uQ,{})}),(0,L.jsx)(uT,{removeTaskApi:bf.backgroundTask.removeTask,removeTasksApi:bf.backgroundTask.removeTasks})]}),bJ=({history:e,container:t})=>(0,L.jsx)(qe.Provider,{value:t,children:fJ(e)});const vJ=({apiUrl:e,restApiUrl:t})=>((e,t)=>{const n=(()=>{const e=document.getElementById("main"),t=document.createElement("div");if(t.classList.add(rh),t.textContent="Loading...",!e)throw Error("WP Toolkit initialization error: main container does not exist");return e.appendChild(t),t})(),s=(0,Hl.H)(n);_b(e.urls.apiUrl).then((a=>{const i=((e,t)=>UQ({reducer:(0,Cb.HY)(FQ(e,t)),middleware:e=>{return e({serializableCheck:!1}).concat([pQ(t),(s=SI,a=bf.backgroundTask.getTasksData,function(e){return function(t){return function(n){t(n);var i=new dT((function(){return e.getState().backgroundTasks.tasks}),(function(t){return e.dispatch({type:qI,task:t})}),(function(t){return e.dispatch({type:GI,task:t})}),a);return(KI===n.type||s.includes(n.type))&&function(e){if(i.startPolling(e),"undefined"!=typeof Jsw){var t=Jsw.getComponent("asyncProgressBarWrapper");t&&t.update()}}(n.task),!0}}}),(n=_Q,e=>t=>s=>{const a=e.getState().backgroundTasks.tasks;t(s);const i=e.getState().backgroundTasks.tasks;a!==i&&i.forEach((t=>{const s=a.find((e=>e.id===t.id));if(ZI(t)&&(!s||!ZI(s))){const s=n[t.code];s&&s.forEach((n=>n(t,e.dispatch)))}}))}),jQ]);var n,s,a}}))(a=BQ(a,e),t);(({store:e,data:t,history:n,container:s,root:a,analyticsApplication:i})=>{a.render((0,L.jsx)(Bc,{store:e,children:(0,L.jsx)(hk,{children:(0,L.jsx)(lp,{messages:t.locale,localeCode:t.localeCode,parameters:t.localizationVariables,children:(0,L.jsx)(Z_,{application:i,globals:t.options.AB,children:bJ({history:n,container:s})})})})}))})({store:i,data:a,history:t,container:n,root:s,analyticsApplication:"WPTK"})})).catch((e=>{(0,Hl.H)(n).render((0,L.jsx)(Fe,{intent:"danger",children:e.toString()}))}))})({urls:{apiUrl:Hv()+e,restApiUrl:Hv()+t},options:{isRemoteWptAvailable:!1}},O({})),yJ=({restApiUrl:e})=>{const t=()=>{return t=void 0,n=void 0,a=function*(){const t=document.querySelector(".cp-stats");if(!t)return;const n=(e=>{const t=document.createElement("div");return t.className="cp-stat__details wp-toolkit-context",t.setAttribute("data-test-id",sv),t.innerHTML='<span class="cp-stat__details-title">WP Toolkit</span><span class="cp-stat__details-value"><div class="vanilla-spinner"><svg viewBox="0 0 48 48"><circle fill="none" stroke-width="6" stroke-linecap="round" cx="24" cy="24" r="21"></circle></svg></div></span>',e.appendChild(t),t})(t),s=Hv()+e,a=Jf(s,(()=>{}));try{const e=yield a.getCpanelHomeWidget();n.remove(),(e=>{var{container:t}=e,n=function(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(n[s[a]]=e[s[a]])}return n}(e,["container"]);const s=document.createElement("div");s.classList.add("cp-stat__details",rh),s.setAttribute("data-test-id",sv),t.appendChild(s),(0,Hl.H)(s).render((0,L.jsx)(E_,{children:(0,L.jsx)(lp,{messages:n.locale,localeCode:n.localeCode,parameters:n.localizationVariables,children:(0,L.jsx)(Z_,{application:"WPTK",children:(0,L.jsx)(nk,{children:(0,L.jsx)(gJ,Object.assign({},n))})})})}))})(Object.assign({container:t},e.data))}catch(e){n.remove()}},new((s=void 0)||(s=Promise))((function(e,i){function r(e){try{l(a.next(e))}catch(e){i(e)}}function o(e){try{l(a.throw(e))}catch(e){i(e)}}function l(t){var n;t.done?e(t.value):(n=t.value,n instanceof s?n:new s((function(e){e(n)}))).then(r,o)}l((a=a.apply(t,n||[])).next())}));var t,n,s,a};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}})(),wptCpanelMain=o})();
Back to Directory
File Manager